@weng-lab/genomebrowser 1.2.4 → 1.2.5
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 +636 -635
- package/dist/genomebrowser.es.js.map +1 -1
- package/package.json +1 -1
package/dist/genomebrowser.es.js
CHANGED
|
@@ -208,13 +208,13 @@ function au() {
|
|
|
208
208
|
if ($)
|
|
209
209
|
if (F(U)) {
|
|
210
210
|
for ($ = 0; $ < U.length; $++)
|
|
211
|
-
|
|
211
|
+
h(U[$]);
|
|
212
212
|
Object.freeze && Object.freeze(U);
|
|
213
213
|
} else
|
|
214
214
|
console.error(
|
|
215
215
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
216
216
|
);
|
|
217
|
-
else
|
|
217
|
+
else h(U);
|
|
218
218
|
if (I.call(L, "key")) {
|
|
219
219
|
U = e(T);
|
|
220
220
|
var Z = Object.keys(L).filter(function(Le) {
|
|
@@ -252,19 +252,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
J
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function h(T) {
|
|
256
256
|
typeof T == "object" && T !== null && T.$$typeof === p && T._store && (T._store.validated = 1);
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var f = de, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), E = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), C = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, F = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
259
259
|
return null;
|
|
260
260
|
};
|
|
261
|
-
|
|
261
|
+
f = {
|
|
262
262
|
react_stack_bottom_frame: function(T) {
|
|
263
263
|
return T();
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
var ce, G = {}, fe =
|
|
267
|
-
|
|
266
|
+
var ce, G = {}, fe = f.react_stack_bottom_frame.bind(
|
|
267
|
+
f,
|
|
268
268
|
o
|
|
269
269
|
)(), ye = B(n(o)), H = {};
|
|
270
270
|
Xt.Fragment = y, Xt.jsx = function(T, L, P, $, N) {
|
|
@@ -341,15 +341,15 @@ function nt(e, t, r, n) {
|
|
|
341
341
|
function s(l) {
|
|
342
342
|
try {
|
|
343
343
|
u(n.next(l));
|
|
344
|
-
} catch (
|
|
345
|
-
a(
|
|
344
|
+
} catch (h) {
|
|
345
|
+
a(h);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
function c(l) {
|
|
349
349
|
try {
|
|
350
350
|
u(n.throw(l));
|
|
351
|
-
} catch (
|
|
352
|
-
a(
|
|
351
|
+
} catch (h) {
|
|
352
|
+
a(h);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function u(l) {
|
|
@@ -571,22 +571,22 @@ function du(e) {
|
|
|
571
571
|
}
|
|
572
572
|
function os(e, t) {
|
|
573
573
|
const r = e.locationOffset.column - 1, n = "".padStart(r) + e.body, i = t.line - 1, o = e.locationOffset.line - 1, a = t.line + o, s = t.line === 1 ? r : 0, c = t.column + s, u = `${e.name}:${a}:${c}
|
|
574
|
-
`, l = n.split(/\r\n|[\n\r]/g),
|
|
575
|
-
if (
|
|
576
|
-
const
|
|
577
|
-
for (let y = 0; y <
|
|
578
|
-
m.push(
|
|
574
|
+
`, l = n.split(/\r\n|[\n\r]/g), h = l[i];
|
|
575
|
+
if (h.length > 120) {
|
|
576
|
+
const f = Math.floor(c / 80), p = c % 80, m = [];
|
|
577
|
+
for (let y = 0; y < h.length; y += 80)
|
|
578
|
+
m.push(h.slice(y, y + 80));
|
|
579
579
|
return u + ho([
|
|
580
580
|
[`${a} |`, m[0]],
|
|
581
|
-
...m.slice(1,
|
|
581
|
+
...m.slice(1, f + 1).map((y) => ["|", y]),
|
|
582
582
|
["|", "^".padStart(p)],
|
|
583
|
-
["|", m[
|
|
583
|
+
["|", m[f + 1]]
|
|
584
584
|
]);
|
|
585
585
|
}
|
|
586
586
|
return u + ho([
|
|
587
587
|
// Lines specified like this: ["prefix", "string"],
|
|
588
588
|
[`${a - 1} |`, l[i - 1]],
|
|
589
|
-
[`${a} |`,
|
|
589
|
+
[`${a} |`, h],
|
|
590
590
|
["|", "^".padStart(c)],
|
|
591
591
|
[`${a + 1} |`, l[i + 1]]
|
|
592
592
|
]);
|
|
@@ -648,18 +648,18 @@ class ki extends Error {
|
|
|
648
648
|
*/
|
|
649
649
|
constructor(t, ...r) {
|
|
650
650
|
var n, i, o;
|
|
651
|
-
const { nodes: a, source: s, positions: c, path: u, originalError: l, extensions:
|
|
651
|
+
const { nodes: a, source: s, positions: c, path: u, originalError: l, extensions: h } = pu(r);
|
|
652
652
|
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = l ?? void 0, this.nodes = po(
|
|
653
653
|
Array.isArray(a) ? a : a ? [a] : void 0
|
|
654
654
|
);
|
|
655
|
-
const
|
|
655
|
+
const f = po(
|
|
656
656
|
(n = this.nodes) === null || n === void 0 ? void 0 : n.map((m) => m.loc).filter((m) => m != null)
|
|
657
657
|
);
|
|
658
|
-
this.source = s ?? (
|
|
658
|
+
this.source = s ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? (f == null ? void 0 : f.map((m) => m.start)), this.locations = c && s ? c.map((m) => Un(s, m)) : f == null ? void 0 : f.map((m) => Un(m.source, m.start));
|
|
659
659
|
const p = lu(
|
|
660
660
|
l == null ? void 0 : l.extensions
|
|
661
661
|
) ? l == null ? void 0 : l.extensions : void 0;
|
|
662
|
-
this.extensions = (o =
|
|
662
|
+
this.extensions = (o = h ?? p) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
663
663
|
message: {
|
|
664
664
|
writable: !0,
|
|
665
665
|
enumerable: !0
|
|
@@ -924,11 +924,11 @@ function xu(e, t) {
|
|
|
924
924
|
// add leading and trailing new lines only if it improves readability
|
|
925
925
|
!i || e.length > 70 || u || o || a
|
|
926
926
|
);
|
|
927
|
-
let
|
|
928
|
-
const
|
|
929
|
-
return (l && !
|
|
930
|
-
`),
|
|
931
|
-
`), '"""' +
|
|
927
|
+
let h = "";
|
|
928
|
+
const f = i && Yn(e.charCodeAt(0));
|
|
929
|
+
return (l && !f || o) && (h += `
|
|
930
|
+
`), h += r, (l || u) && (h += `
|
|
931
|
+
`), '"""' + h + '"""';
|
|
932
932
|
}
|
|
933
933
|
var M;
|
|
934
934
|
(function(e) {
|
|
@@ -2779,13 +2779,13 @@ function qe(e, t, r = ss) {
|
|
|
2779
2779
|
const n = /* @__PURE__ */ new Map();
|
|
2780
2780
|
for (const g of Object.values(A))
|
|
2781
2781
|
n.set(g, Hu(t, g));
|
|
2782
|
-
let i, o = Array.isArray(e), a = [e], s = -1, c = [], u = e, l,
|
|
2783
|
-
const
|
|
2782
|
+
let i, o = Array.isArray(e), a = [e], s = -1, c = [], u = e, l, h;
|
|
2783
|
+
const f = [], p = [];
|
|
2784
2784
|
do {
|
|
2785
2785
|
s++;
|
|
2786
2786
|
const g = s === a.length, b = g && c.length !== 0;
|
|
2787
2787
|
if (g) {
|
|
2788
|
-
if (l = p.length === 0 ? void 0 :
|
|
2788
|
+
if (l = p.length === 0 ? void 0 : f[f.length - 1], u = h, h = p.pop(), b)
|
|
2789
2789
|
if (o) {
|
|
2790
2790
|
u = u.slice();
|
|
2791
2791
|
let _ = 0;
|
|
@@ -2799,33 +2799,33 @@ function qe(e, t, r = ss) {
|
|
|
2799
2799
|
u[_] = x;
|
|
2800
2800
|
}
|
|
2801
2801
|
s = i.index, a = i.keys, c = i.edits, o = i.inArray, i = i.prev;
|
|
2802
|
-
} else if (
|
|
2803
|
-
if (l = o ? s : a[s], u =
|
|
2802
|
+
} else if (h) {
|
|
2803
|
+
if (l = o ? s : a[s], u = h[l], u == null)
|
|
2804
2804
|
continue;
|
|
2805
|
-
|
|
2805
|
+
f.push(l);
|
|
2806
2806
|
}
|
|
2807
2807
|
let E;
|
|
2808
2808
|
if (!Array.isArray(u)) {
|
|
2809
2809
|
var m, y;
|
|
2810
2810
|
mo(u) || Ar(!1, `Invalid AST Node: ${Oi(u)}.`);
|
|
2811
2811
|
const _ = g ? (m = n.get(u.kind)) === null || m === void 0 ? void 0 : m.leave : (y = n.get(u.kind)) === null || y === void 0 ? void 0 : y.enter;
|
|
2812
|
-
if (E = _ == null ? void 0 : _.call(t, u, l,
|
|
2812
|
+
if (E = _ == null ? void 0 : _.call(t, u, l, h, f, p), E === rn)
|
|
2813
2813
|
break;
|
|
2814
2814
|
if (E === !1) {
|
|
2815
2815
|
if (!g) {
|
|
2816
|
-
|
|
2816
|
+
f.pop();
|
|
2817
2817
|
continue;
|
|
2818
2818
|
}
|
|
2819
2819
|
} else if (E !== void 0 && (c.push([l, E]), !g))
|
|
2820
2820
|
if (mo(E))
|
|
2821
2821
|
u = E;
|
|
2822
2822
|
else {
|
|
2823
|
-
|
|
2823
|
+
f.pop();
|
|
2824
2824
|
continue;
|
|
2825
2825
|
}
|
|
2826
2826
|
}
|
|
2827
2827
|
if (E === void 0 && b && c.push([l, u]), g)
|
|
2828
|
-
|
|
2828
|
+
f.pop();
|
|
2829
2829
|
else {
|
|
2830
2830
|
var v;
|
|
2831
2831
|
i = {
|
|
@@ -2834,7 +2834,7 @@ function qe(e, t, r = ss) {
|
|
|
2834
2834
|
keys: a,
|
|
2835
2835
|
edits: c,
|
|
2836
2836
|
prev: i
|
|
2837
|
-
}, o = Array.isArray(u), a = o ? u : (v = r[u.kind]) !== null && v !== void 0 ? v : [], s = -1, c = [],
|
|
2837
|
+
}, o = Array.isArray(u), a = o ? u : (v = r[u.kind]) !== null && v !== void 0 ? v : [], s = -1, c = [], h && p.push(h), h = u;
|
|
2838
2838
|
}
|
|
2839
2839
|
} while (i !== void 0);
|
|
2840
2840
|
return c.length !== 0 ? c[c.length - 1][1] : e;
|
|
@@ -4034,14 +4034,14 @@ function Gl(...e) {
|
|
|
4034
4034
|
}
|
|
4035
4035
|
const bn = /* @__PURE__ */ new Set();
|
|
4036
4036
|
function yr(e, { max: t = Math.pow(2, 16), keyArgs: r, makeCacheKey: n = Gl, normalizeResult: i, subscribe: o, cache: a = Gn } = /* @__PURE__ */ Object.create(null)) {
|
|
4037
|
-
const s = typeof a == "function" ? new a(t, (
|
|
4038
|
-
const
|
|
4039
|
-
if (
|
|
4037
|
+
const s = typeof a == "function" ? new a(t, (f) => f.dispose()) : a, c = function() {
|
|
4038
|
+
const f = n.apply(null, r ? r.apply(null, arguments) : arguments);
|
|
4039
|
+
if (f === void 0)
|
|
4040
4040
|
return e.apply(null, arguments);
|
|
4041
|
-
let p = s.get(
|
|
4042
|
-
p || (s.set(
|
|
4041
|
+
let p = s.get(f);
|
|
4042
|
+
p || (s.set(f, p = new cn(e)), p.normalizeResult = i, p.subscribe = o, p.forget = () => s.delete(f));
|
|
4043
4043
|
const m = p.recompute(Array.prototype.slice.call(arguments));
|
|
4044
|
-
return s.set(
|
|
4044
|
+
return s.set(f, p), bn.add(s), sn.hasValue() || (bn.forEach((y) => y.clean()), bn.clear()), m;
|
|
4045
4045
|
};
|
|
4046
4046
|
Object.defineProperty(c, "size", {
|
|
4047
4047
|
get: () => s.size,
|
|
@@ -4055,26 +4055,26 @@ function yr(e, { max: t = Math.pow(2, 16), keyArgs: r, makeCacheKey: n = Gl, nor
|
|
|
4055
4055
|
subscribe: o,
|
|
4056
4056
|
cache: s
|
|
4057
4057
|
});
|
|
4058
|
-
function u(
|
|
4059
|
-
const p =
|
|
4058
|
+
function u(f) {
|
|
4059
|
+
const p = f && s.get(f);
|
|
4060
4060
|
p && p.setDirty();
|
|
4061
4061
|
}
|
|
4062
4062
|
c.dirtyKey = u, c.dirty = function() {
|
|
4063
4063
|
u(n.apply(null, arguments));
|
|
4064
4064
|
};
|
|
4065
|
-
function l(
|
|
4066
|
-
const p =
|
|
4065
|
+
function l(f) {
|
|
4066
|
+
const p = f && s.get(f);
|
|
4067
4067
|
if (p)
|
|
4068
4068
|
return p.peek();
|
|
4069
4069
|
}
|
|
4070
4070
|
c.peekKey = l, c.peek = function() {
|
|
4071
4071
|
return l(n.apply(null, arguments));
|
|
4072
4072
|
};
|
|
4073
|
-
function f
|
|
4074
|
-
return
|
|
4073
|
+
function h(f) {
|
|
4074
|
+
return f ? s.delete(f) : !1;
|
|
4075
4075
|
}
|
|
4076
|
-
return c.forgetKey =
|
|
4077
|
-
return
|
|
4076
|
+
return c.forgetKey = h, c.forget = function() {
|
|
4077
|
+
return h(n.apply(null, arguments));
|
|
4078
4078
|
}, c.makeCacheKey = n, c.getKey = r ? function() {
|
|
4079
4079
|
return n.apply(null, r.apply(null, arguments));
|
|
4080
4080
|
} : n, Object.freeze(c);
|
|
@@ -4213,15 +4213,15 @@ function As(e, t) {
|
|
|
4213
4213
|
return Ne(g) && g.map(s).some(function(b) {
|
|
4214
4214
|
return b && b.remove;
|
|
4215
4215
|
});
|
|
4216
|
-
}, u = /* @__PURE__ */ new Map(), l = !1,
|
|
4216
|
+
}, u = /* @__PURE__ */ new Map(), l = !1, h = {
|
|
4217
4217
|
enter: function(g) {
|
|
4218
4218
|
if (c(g.directives))
|
|
4219
4219
|
return l = !0, null;
|
|
4220
4220
|
}
|
|
4221
|
-
},
|
|
4221
|
+
}, f = qe(t, {
|
|
4222
4222
|
// These two AST node types share the same implementation, defined above.
|
|
4223
|
-
Field:
|
|
4224
|
-
InlineFragment:
|
|
4223
|
+
Field: h,
|
|
4224
|
+
InlineFragment: h,
|
|
4225
4225
|
VariableDefinition: {
|
|
4226
4226
|
enter: function() {
|
|
4227
4227
|
return !1;
|
|
@@ -4276,7 +4276,7 @@ function As(e, t) {
|
|
|
4276
4276
|
});
|
|
4277
4277
|
})), g;
|
|
4278
4278
|
}, m = /* @__PURE__ */ new Set();
|
|
4279
|
-
|
|
4279
|
+
f.definitions.forEach(function(g) {
|
|
4280
4280
|
g.kind === A.OPERATION_DEFINITION ? p(r(g.name && g.name.value)).fragmentSpreads.forEach(function(b) {
|
|
4281
4281
|
m.add(b);
|
|
4282
4282
|
}) : g.kind === A.FRAGMENT_DEFINITION && // If there are no operations in the document, then all fragment
|
|
@@ -4300,7 +4300,7 @@ function As(e, t) {
|
|
|
4300
4300
|
return null;
|
|
4301
4301
|
}
|
|
4302
4302
|
};
|
|
4303
|
-
return Jl(qe(
|
|
4303
|
+
return Jl(qe(f, {
|
|
4304
4304
|
// If the fragment is going to be removed, then leaving any dangling
|
|
4305
4305
|
// FragmentSpread nodes with the same name would be a mistake.
|
|
4306
4306
|
FragmentSpread: v,
|
|
@@ -4696,19 +4696,19 @@ var uf = /* @__PURE__ */ (function() {
|
|
|
4696
4696
|
var o = Kt(this), a = arguments.length > 1, s = !1, c = arguments[1], u = c;
|
|
4697
4697
|
return new o(function(l) {
|
|
4698
4698
|
return i.subscribe({
|
|
4699
|
-
next: function(
|
|
4700
|
-
var
|
|
4701
|
-
if (s = !0, !
|
|
4699
|
+
next: function(h) {
|
|
4700
|
+
var f = !s;
|
|
4701
|
+
if (s = !0, !f || a)
|
|
4702
4702
|
try {
|
|
4703
|
-
u = n(u,
|
|
4703
|
+
u = n(u, h);
|
|
4704
4704
|
} catch (p) {
|
|
4705
4705
|
return l.error(p);
|
|
4706
4706
|
}
|
|
4707
4707
|
else
|
|
4708
|
-
u =
|
|
4708
|
+
u = h;
|
|
4709
4709
|
},
|
|
4710
|
-
error: function(
|
|
4711
|
-
l.error(
|
|
4710
|
+
error: function(h) {
|
|
4711
|
+
l.error(h);
|
|
4712
4712
|
},
|
|
4713
4713
|
complete: function() {
|
|
4714
4714
|
if (!s && !a) return l.error(new TypeError("Cannot reduce an empty sequence"));
|
|
@@ -4722,8 +4722,8 @@ var uf = /* @__PURE__ */ (function() {
|
|
|
4722
4722
|
var s = Kt(this);
|
|
4723
4723
|
return new s(function(c) {
|
|
4724
4724
|
var u, l = 0;
|
|
4725
|
-
function f
|
|
4726
|
-
u =
|
|
4725
|
+
function h(f) {
|
|
4726
|
+
u = f.subscribe({
|
|
4727
4727
|
next: function(p) {
|
|
4728
4728
|
c.next(p);
|
|
4729
4729
|
},
|
|
@@ -4731,11 +4731,11 @@ var uf = /* @__PURE__ */ (function() {
|
|
|
4731
4731
|
c.error(p);
|
|
4732
4732
|
},
|
|
4733
4733
|
complete: function() {
|
|
4734
|
-
l === o.length ? (u = void 0, c.complete()) :
|
|
4734
|
+
l === o.length ? (u = void 0, c.complete()) : h(s.from(o[l++]));
|
|
4735
4735
|
}
|
|
4736
4736
|
});
|
|
4737
4737
|
}
|
|
4738
|
-
return
|
|
4738
|
+
return h(n), function() {
|
|
4739
4739
|
u && (u.unsubscribe(), u = void 0);
|
|
4740
4740
|
};
|
|
4741
4741
|
});
|
|
@@ -4749,22 +4749,22 @@ var uf = /* @__PURE__ */ (function() {
|
|
|
4749
4749
|
if (n)
|
|
4750
4750
|
try {
|
|
4751
4751
|
l = n(l);
|
|
4752
|
-
} catch (
|
|
4753
|
-
return a.error(
|
|
4752
|
+
} catch (f) {
|
|
4753
|
+
return a.error(f);
|
|
4754
4754
|
}
|
|
4755
|
-
var
|
|
4756
|
-
next: function(
|
|
4757
|
-
a.next(
|
|
4755
|
+
var h = o.from(l).subscribe({
|
|
4756
|
+
next: function(f) {
|
|
4757
|
+
a.next(f);
|
|
4758
4758
|
},
|
|
4759
|
-
error: function(
|
|
4760
|
-
a.error(
|
|
4759
|
+
error: function(f) {
|
|
4760
|
+
a.error(f);
|
|
4761
4761
|
},
|
|
4762
4762
|
complete: function() {
|
|
4763
|
-
var
|
|
4764
|
-
|
|
4763
|
+
var f = s.indexOf(h);
|
|
4764
|
+
f >= 0 && s.splice(f, 1), u();
|
|
4765
4765
|
}
|
|
4766
4766
|
});
|
|
4767
|
-
s.push(
|
|
4767
|
+
s.push(h);
|
|
4768
4768
|
},
|
|
4769
4769
|
error: function(l) {
|
|
4770
4770
|
a.error(l);
|
|
@@ -4943,16 +4943,16 @@ function En(e, t, r) {
|
|
|
4943
4943
|
function o(c, u) {
|
|
4944
4944
|
return function(l) {
|
|
4945
4945
|
if (c) {
|
|
4946
|
-
var
|
|
4946
|
+
var h = function() {
|
|
4947
4947
|
return n.closed ? (
|
|
4948
4948
|
/* will be swallowed */
|
|
4949
4949
|
0
|
|
4950
4950
|
) : c(l);
|
|
4951
4951
|
};
|
|
4952
|
-
i = i.then(
|
|
4953
|
-
return n.next(
|
|
4954
|
-
}, function(
|
|
4955
|
-
return n.error(
|
|
4952
|
+
i = i.then(h, h).then(function(f) {
|
|
4953
|
+
return n.next(f);
|
|
4954
|
+
}, function(f) {
|
|
4955
|
+
return n.error(f);
|
|
4956
4956
|
});
|
|
4957
4957
|
} else
|
|
4958
4958
|
n[u](l);
|
|
@@ -5242,42 +5242,42 @@ function kf(e) {
|
|
|
5242
5242
|
}
|
|
5243
5243
|
function Of(e) {
|
|
5244
5244
|
var t = null, r = null, n = !1, i = [], o = [];
|
|
5245
|
-
function a(
|
|
5245
|
+
function a(h) {
|
|
5246
5246
|
if (!r) {
|
|
5247
5247
|
if (o.length) {
|
|
5248
|
-
var
|
|
5249
|
-
if (Array.isArray(
|
|
5250
|
-
return
|
|
5248
|
+
var f = o.shift();
|
|
5249
|
+
if (Array.isArray(f) && f[0])
|
|
5250
|
+
return f[0]({ value: h, done: !1 });
|
|
5251
5251
|
}
|
|
5252
|
-
i.push(
|
|
5252
|
+
i.push(h);
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
function s(
|
|
5256
|
-
r =
|
|
5257
|
-
var
|
|
5258
|
-
|
|
5259
|
-
p[1](
|
|
5255
|
+
function s(h) {
|
|
5256
|
+
r = h;
|
|
5257
|
+
var f = o.slice();
|
|
5258
|
+
f.forEach(function(p) {
|
|
5259
|
+
p[1](h);
|
|
5260
5260
|
}), !t || t();
|
|
5261
5261
|
}
|
|
5262
5262
|
function c() {
|
|
5263
5263
|
n = !0;
|
|
5264
|
-
var
|
|
5265
|
-
|
|
5266
|
-
|
|
5264
|
+
var h = o.slice();
|
|
5265
|
+
h.forEach(function(f) {
|
|
5266
|
+
f[0]({ value: void 0, done: !0 });
|
|
5267
5267
|
}), !t || t();
|
|
5268
5268
|
}
|
|
5269
5269
|
t = function() {
|
|
5270
5270
|
t = null, e.removeListener("data", a), e.removeListener("error", s), e.removeListener("end", c), e.removeListener("finish", c), e.removeListener("close", c);
|
|
5271
5271
|
}, e.on("data", a), e.on("error", s), e.on("end", c), e.on("finish", c), e.on("close", c);
|
|
5272
5272
|
function u() {
|
|
5273
|
-
return new Promise(function(
|
|
5273
|
+
return new Promise(function(h, f) {
|
|
5274
5274
|
if (r)
|
|
5275
|
-
return
|
|
5275
|
+
return f(r);
|
|
5276
5276
|
if (i.length)
|
|
5277
|
-
return
|
|
5277
|
+
return h({ value: i.shift(), done: !1 });
|
|
5278
5278
|
if (n)
|
|
5279
|
-
return
|
|
5280
|
-
o.push([
|
|
5279
|
+
return h({ value: void 0, done: !0 });
|
|
5280
|
+
o.push([h, f]);
|
|
5281
5281
|
});
|
|
5282
5282
|
}
|
|
5283
5283
|
var l = {
|
|
@@ -5378,7 +5378,7 @@ var Af = function(e) {
|
|
|
5378
5378
|
), No = Object.prototype.hasOwnProperty;
|
|
5379
5379
|
function Ff(e, t) {
|
|
5380
5380
|
return nt(this, void 0, void 0, function() {
|
|
5381
|
-
var r, n, i, o, a, s, c, u, l,
|
|
5381
|
+
var r, n, i, o, a, s, c, u, l, h, f, p, m, y, v, g, b, E, _, x, O, w, S, D;
|
|
5382
5382
|
return it(this, function(j) {
|
|
5383
5383
|
switch (j.label) {
|
|
5384
5384
|
case 0:
|
|
@@ -5389,7 +5389,7 @@ function Ff(e, t) {
|
|
|
5389
5389
|
case 1:
|
|
5390
5390
|
return u ? [4, c.next()] : [3, 3];
|
|
5391
5391
|
case 2:
|
|
5392
|
-
for (l = j.sent(),
|
|
5392
|
+
for (l = j.sent(), h = l.value, f = l.done, p = typeof h == "string" ? h : r.decode(h), m = s.length - a.length + 1, u = !f, s += p, y = s.indexOf(a, m); y > -1; ) {
|
|
5393
5393
|
if (v = void 0, w = [
|
|
5394
5394
|
s.slice(0, y),
|
|
5395
5395
|
s.slice(y + a.length)
|
|
@@ -5518,8 +5518,8 @@ function Hf(e, t) {
|
|
|
5518
5518
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5519
5519
|
r[n - 2] = arguments[n];
|
|
5520
5520
|
var i = {}, o = {};
|
|
5521
|
-
r.forEach(function(
|
|
5522
|
-
i = k(k(k({}, i),
|
|
5521
|
+
r.forEach(function(h) {
|
|
5522
|
+
i = k(k(k({}, i), h.options), { headers: k(k({}, i.headers), h.headers) }), h.credentials && (i.credentials = h.credentials), o = k(k({}, o), h.http);
|
|
5523
5523
|
}), i.headers && (i.headers = Yf(i.headers, o.preserveHeaderCase));
|
|
5524
5524
|
var a = e.operationName, s = e.extensions, c = e.variables, u = e.query, l = { operationName: a, variables: c };
|
|
5525
5525
|
return o.includeExtensions && (l.extensions = s), o.includeQuery && (l.query = t(u, vt)), {
|
|
@@ -5554,15 +5554,15 @@ var Gf = function(e) {
|
|
|
5554
5554
|
return n || (typeof t == "function" ? t(e) : t || "/graphql");
|
|
5555
5555
|
};
|
|
5556
5556
|
function Jf(e, t) {
|
|
5557
|
-
var r = [], n = function(
|
|
5558
|
-
r.push("".concat(
|
|
5557
|
+
var r = [], n = function(h, f) {
|
|
5558
|
+
r.push("".concat(h, "=").concat(encodeURIComponent(f)));
|
|
5559
5559
|
};
|
|
5560
5560
|
if ("query" in t && n("query", t.query), t.operationName && n("operationName", t.operationName), t.variables) {
|
|
5561
5561
|
var i = void 0;
|
|
5562
5562
|
try {
|
|
5563
5563
|
i = ai(t.variables, "Variables map");
|
|
5564
|
-
} catch (
|
|
5565
|
-
return { parseError:
|
|
5564
|
+
} catch (h) {
|
|
5565
|
+
return { parseError: h };
|
|
5566
5566
|
}
|
|
5567
5567
|
n("variables", i);
|
|
5568
5568
|
}
|
|
@@ -5570,8 +5570,8 @@ function Jf(e, t) {
|
|
|
5570
5570
|
var o = void 0;
|
|
5571
5571
|
try {
|
|
5572
5572
|
o = ai(t.extensions, "Extensions map");
|
|
5573
|
-
} catch (
|
|
5574
|
-
return { parseError:
|
|
5573
|
+
} catch (h) {
|
|
5574
|
+
return { parseError: h };
|
|
5575
5575
|
}
|
|
5576
5576
|
n("extensions", o);
|
|
5577
5577
|
}
|
|
@@ -5584,13 +5584,13 @@ var Po = Ae(function() {
|
|
|
5584
5584
|
return fetch;
|
|
5585
5585
|
}), Kf = function(e) {
|
|
5586
5586
|
e === void 0 && (e = {});
|
|
5587
|
-
var t = e.uri, r = t === void 0 ? "/graphql" : t, n = e.fetch, i = e.print, o = i === void 0 ? Uf : i, a = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u,
|
|
5587
|
+
var t = e.uri, r = t === void 0 ? "/graphql" : t, n = e.fetch, i = e.print, o = i === void 0 ? Uf : i, a = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u, h = Fe(e, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
|
|
5588
5588
|
globalThis.__DEV__ !== !1 && Gf(n || Po);
|
|
5589
|
-
var
|
|
5589
|
+
var f = {
|
|
5590
5590
|
http: { includeExtensions: a, preserveHeaderCase: s },
|
|
5591
|
-
options:
|
|
5592
|
-
credentials:
|
|
5593
|
-
headers:
|
|
5591
|
+
options: h.fetchOptions,
|
|
5592
|
+
credentials: h.credentials,
|
|
5593
|
+
headers: h.headers
|
|
5594
5594
|
};
|
|
5595
5595
|
return new _r(function(p) {
|
|
5596
5596
|
var m = Xf(p, r), y = p.getContext(), v = {};
|
|
@@ -5611,7 +5611,7 @@ var Po = Ae(function() {
|
|
|
5611
5611
|
return wn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
5612
5612
|
p.query = O;
|
|
5613
5613
|
}
|
|
5614
|
-
var w = Hf(p, o, zf,
|
|
5614
|
+
var w = Hf(p, o, zf, f, x), S = w.options, D = w.body;
|
|
5615
5615
|
D.variables && !l && (D.variables = wf(D.variables, p.query));
|
|
5616
5616
|
var j;
|
|
5617
5617
|
!S.signal && typeof AbortController < "u" && (j = new AbortController(), S.signal = j.signal);
|
|
@@ -5795,14 +5795,14 @@ function $r(e, t, r, n) {
|
|
|
5795
5795
|
var a = Ge(o), s = t && t[a], c = r && r[a], u = o.selectionSet;
|
|
5796
5796
|
if (!u)
|
|
5797
5797
|
return ue(s, c);
|
|
5798
|
-
var l = Array.isArray(s),
|
|
5799
|
-
if (l !==
|
|
5798
|
+
var l = Array.isArray(s), h = Array.isArray(c);
|
|
5799
|
+
if (l !== h)
|
|
5800
5800
|
return !1;
|
|
5801
|
-
if (l &&
|
|
5802
|
-
var
|
|
5803
|
-
if (c.length !==
|
|
5801
|
+
if (l && h) {
|
|
5802
|
+
var f = s.length;
|
|
5803
|
+
if (c.length !== f)
|
|
5804
5804
|
return !1;
|
|
5805
|
-
for (var p = 0; p <
|
|
5805
|
+
for (var p = 0; p < f; ++p)
|
|
5806
5806
|
if (!$r(u, s[p], c[p], n))
|
|
5807
5807
|
return !1;
|
|
5808
5808
|
return !0;
|
|
@@ -5850,13 +5850,13 @@ function ar(e, t, r, n, i) {
|
|
|
5850
5850
|
var o, a = r.knownChanged, s = oh(e, r.mutableTargets);
|
|
5851
5851
|
if (Array.isArray(e)) {
|
|
5852
5852
|
for (var c = 0, u = Array.from(e.entries()); c < u.length; c++) {
|
|
5853
|
-
var l = u[c],
|
|
5854
|
-
if (
|
|
5855
|
-
s[
|
|
5853
|
+
var l = u[c], h = l[0], f = l[1];
|
|
5854
|
+
if (f === null) {
|
|
5855
|
+
s[h] = null;
|
|
5856
5856
|
continue;
|
|
5857
5857
|
}
|
|
5858
|
-
var p = ar(
|
|
5859
|
-
a.has(p) && a.add(s), s[
|
|
5858
|
+
var p = ar(f, t, r, n, globalThis.__DEV__ !== !1 ? "".concat(i || "", "[").concat(h, "]") : void 0);
|
|
5859
|
+
a.has(p) && a.add(s), s[h] = p;
|
|
5860
5860
|
}
|
|
5861
5861
|
return a.has(s) ? s : e;
|
|
5862
5862
|
}
|
|
@@ -5971,15 +5971,15 @@ var ec = (
|
|
|
5971
5971
|
return n.read(k(k({}, t), { rootId: t.id || "ROOT_QUERY", optimistic: r }));
|
|
5972
5972
|
});
|
|
5973
5973
|
}, e.prototype.watchFragment = function(t) {
|
|
5974
|
-
var r = this, n = t.fragment, i = t.fragmentName, o = t.from, a = t.optimistic, s = a === void 0 ? !0 : a, c = Fe(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(n, i), l = typeof o > "u" || typeof o == "string" ? o : this.identify(o),
|
|
5974
|
+
var r = this, n = t.fragment, i = t.fragmentName, o = t.from, a = t.optimistic, s = a === void 0 ? !0 : a, c = Fe(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(n, i), l = typeof o > "u" || typeof o == "string" ? o : this.identify(o), h = !!t[Symbol.for("apollo.dataMasking")];
|
|
5975
5975
|
if (globalThis.__DEV__ !== !1) {
|
|
5976
|
-
var
|
|
5977
|
-
l || globalThis.__DEV__ !== !1 && R.warn(1,
|
|
5976
|
+
var f = i || _s(n).name.value;
|
|
5977
|
+
l || globalThis.__DEV__ !== !1 && R.warn(1, f);
|
|
5978
5978
|
}
|
|
5979
5979
|
var p = k(k({}, c), { returnPartialData: !0, id: l, query: u, optimistic: s }), m;
|
|
5980
5980
|
return new he(function(y) {
|
|
5981
5981
|
return r.watch(k(k({}, p), { immediate: !0, callback: function(v) {
|
|
5982
|
-
var g =
|
|
5982
|
+
var g = h ? Zs(v.result, n, r, i) : v.result;
|
|
5983
5983
|
if (
|
|
5984
5984
|
// Always ensure we deliver the first result
|
|
5985
5985
|
!(m && Ys(
|
|
@@ -6201,14 +6201,14 @@ var Br = /* @__PURE__ */ Object.create(null), _n = function() {
|
|
|
6201
6201
|
}
|
|
6202
6202
|
};
|
|
6203
6203
|
if (Object.keys(i).forEach(function(u) {
|
|
6204
|
-
var l = ft(u),
|
|
6205
|
-
if (
|
|
6206
|
-
var
|
|
6207
|
-
if (
|
|
6208
|
-
var p =
|
|
6204
|
+
var l = ft(u), h = i[u];
|
|
6205
|
+
if (h !== void 0) {
|
|
6206
|
+
var f = typeof r == "function" ? r : r[u] || r[l];
|
|
6207
|
+
if (f) {
|
|
6208
|
+
var p = f === _n ? Br : f(Wt(h), k(k({}, c), { fieldName: l, storeFieldName: u, storage: n.getStorage(t, u) }));
|
|
6209
6209
|
if (p === Wo)
|
|
6210
6210
|
n.group.dirty(t, u);
|
|
6211
|
-
else if (p === Br && (p = void 0), p !==
|
|
6211
|
+
else if (p === Br && (p = void 0), p !== h && (o[u] = p, a = !0, h = p, globalThis.__DEV__ !== !1)) {
|
|
6212
6212
|
var m = function(x) {
|
|
6213
6213
|
if (n.lookup(x.__ref) === void 0)
|
|
6214
6214
|
return globalThis.__DEV__ !== !1 && R.warn(3, x), !0;
|
|
@@ -6232,7 +6232,7 @@ var Br = /* @__PURE__ */ Object.create(null), _n = function() {
|
|
|
6232
6232
|
}
|
|
6233
6233
|
}
|
|
6234
6234
|
}
|
|
6235
|
-
|
|
6235
|
+
h !== void 0 && (s = !1);
|
|
6236
6236
|
}
|
|
6237
6237
|
}), a)
|
|
6238
6238
|
return this.merge(t, o), s && (this instanceof rt ? this.data[t] = void 0 : delete this.data[t], this.group.dirty(t, "__exists")), !0;
|
|
@@ -6462,10 +6462,10 @@ var zo = (
|
|
|
6462
6462
|
});
|
|
6463
6463
|
var a = this.pool.lookupArray(c);
|
|
6464
6464
|
if (!a.object) {
|
|
6465
|
-
var
|
|
6466
|
-
this.known.add(
|
|
6467
|
-
|
|
6468
|
-
}), globalThis.__DEV__ !== !1 && Object.freeze(
|
|
6465
|
+
var h = a.object = Object.create(s);
|
|
6466
|
+
this.known.add(h), u.sorted.forEach(function(p, m) {
|
|
6467
|
+
h[p] = c[l + m];
|
|
6468
|
+
}), globalThis.__DEV__ !== !1 && Object.freeze(h);
|
|
6469
6469
|
}
|
|
6470
6470
|
return a.object;
|
|
6471
6471
|
}
|
|
@@ -6533,13 +6533,13 @@ var ph = (
|
|
|
6533
6533
|
return e.prototype.resetCanon = function() {
|
|
6534
6534
|
this.canon = new zo();
|
|
6535
6535
|
}, e.prototype.diffQueryAgainstStore = function(t) {
|
|
6536
|
-
var r = t.store, n = t.query, i = t.rootId, o = i === void 0 ? "ROOT_QUERY" : i, a = t.variables, s = t.returnPartialData, c = s === void 0 ? !0 : s, u = t.canonizeResults, l = u === void 0 ? this.config.canonizeResults : u,
|
|
6536
|
+
var r = t.store, n = t.query, i = t.rootId, o = i === void 0 ? "ROOT_QUERY" : i, a = t.variables, s = t.returnPartialData, c = s === void 0 ? !0 : s, u = t.canonizeResults, l = u === void 0 ? this.config.canonizeResults : u, h = this.config.cache.policies;
|
|
6537
6537
|
a = k(k({}, ji(ws(n))), a);
|
|
6538
|
-
var
|
|
6538
|
+
var f = Pt(o), p = this.executeSelectionSet({
|
|
6539
6539
|
selectionSet: wr(n).selectionSet,
|
|
6540
|
-
objectOrReference:
|
|
6541
|
-
enclosingRef:
|
|
6542
|
-
context: k({ store: r, query: n, policies:
|
|
6540
|
+
objectOrReference: f,
|
|
6541
|
+
enclosingRef: f,
|
|
6542
|
+
context: k({ store: r, query: n, policies: h, variables: a, varString: st(a), canonizeResults: l }, ac(n, this.config.fragments))
|
|
6543
6543
|
}), m;
|
|
6544
6544
|
if (p.missing && (m = [
|
|
6545
6545
|
new tc(mh(p.missing), p.missing, n, a)
|
|
@@ -6572,11 +6572,11 @@ var ph = (
|
|
|
6572
6572
|
result: this.canon.empty,
|
|
6573
6573
|
missing: "Dangling reference to missing ".concat(i.__ref, " object")
|
|
6574
6574
|
};
|
|
6575
|
-
var s = a.variables, c = a.policies, u = a.store, l = u.getFieldValue(i, "__typename"),
|
|
6576
|
-
this.config.addTypename && typeof l == "string" && !c.rootIdsByTypename[l] &&
|
|
6575
|
+
var s = a.variables, c = a.policies, u = a.store, l = u.getFieldValue(i, "__typename"), h = [], f, p = new lt();
|
|
6576
|
+
this.config.addTypename && typeof l == "string" && !c.rootIdsByTypename[l] && h.push({ __typename: l });
|
|
6577
6577
|
function m(E, _) {
|
|
6578
6578
|
var x;
|
|
6579
|
-
return E.missing && (
|
|
6579
|
+
return E.missing && (f = p.merge(f, (x = {}, x[_] = E.missing, x))), E.result;
|
|
6580
6580
|
}
|
|
6581
6581
|
var y = new Set(n.selections);
|
|
6582
6582
|
y.forEach(function(E) {
|
|
@@ -6589,7 +6589,7 @@ var ph = (
|
|
|
6589
6589
|
variables: a.variables,
|
|
6590
6590
|
from: i
|
|
6591
6591
|
}, a), w = Ge(E);
|
|
6592
|
-
O === void 0 ? Pi.added(E) || (
|
|
6592
|
+
O === void 0 ? Pi.added(E) || (f = p.merge(f, (_ = {}, _[w] = "Can't find field '".concat(E.name.value, "' on ").concat(se(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), _))) : ge(O) ? O.length > 0 && (O = m(r.executeSubSelectedArray({
|
|
6593
6593
|
field: E,
|
|
6594
6594
|
array: O,
|
|
6595
6595
|
enclosingRef: o,
|
|
@@ -6599,7 +6599,7 @@ var ph = (
|
|
|
6599
6599
|
objectOrReference: O,
|
|
6600
6600
|
enclosingRef: se(O) ? O : o,
|
|
6601
6601
|
context: a
|
|
6602
|
-
}), w)) : a.canonizeResults && (O = r.canon.pass(O)), O !== void 0 &&
|
|
6602
|
+
}), w)) : a.canonizeResults && (O = r.canon.pass(O)), O !== void 0 && h.push((x = {}, x[w] = O, x));
|
|
6603
6603
|
} else {
|
|
6604
6604
|
var S = on(E, a.lookupFragment);
|
|
6605
6605
|
if (!S && E.kind === A.FRAGMENT_SPREAD)
|
|
@@ -6607,26 +6607,26 @@ var ph = (
|
|
|
6607
6607
|
S && c.fragmentMatches(S, l) && S.selectionSet.selections.forEach(y.add, y);
|
|
6608
6608
|
}
|
|
6609
6609
|
});
|
|
6610
|
-
var v = un(
|
|
6610
|
+
var v = un(h), g = { result: v, missing: f }, b = a.canonizeResults ? this.canon.admit(g) : Wt(g);
|
|
6611
6611
|
return b.result && this.knownResults.set(b.result, n), b;
|
|
6612
6612
|
}, e.prototype.execSubSelectedArrayImpl = function(t) {
|
|
6613
6613
|
var r = this, n = t.field, i = t.array, o = t.enclosingRef, a = t.context, s, c = new lt();
|
|
6614
|
-
function u(l,
|
|
6615
|
-
var
|
|
6616
|
-
return l.missing && (s = c.merge(s, (
|
|
6614
|
+
function u(l, h) {
|
|
6615
|
+
var f;
|
|
6616
|
+
return l.missing && (s = c.merge(s, (f = {}, f[h] = l.missing, f))), l.result;
|
|
6617
6617
|
}
|
|
6618
|
-
return n.selectionSet && (i = i.filter(a.store.canRead)), i = i.map(function(l,
|
|
6618
|
+
return n.selectionSet && (i = i.filter(a.store.canRead)), i = i.map(function(l, h) {
|
|
6619
6619
|
return l === null ? null : ge(l) ? u(r.executeSubSelectedArray({
|
|
6620
6620
|
field: n,
|
|
6621
6621
|
array: l,
|
|
6622
6622
|
enclosingRef: o,
|
|
6623
6623
|
context: a
|
|
6624
|
-
}),
|
|
6624
|
+
}), h) : n.selectionSet ? u(r.executeSelectionSet({
|
|
6625
6625
|
selectionSet: n.selectionSet,
|
|
6626
6626
|
objectOrReference: l,
|
|
6627
6627
|
enclosingRef: se(l) ? l : o,
|
|
6628
6628
|
context: a
|
|
6629
|
-
}),
|
|
6629
|
+
}), h) : (globalThis.__DEV__ !== !1 && vh(a.store, n, l), l);
|
|
6630
6630
|
}), {
|
|
6631
6631
|
result: a.canonizeResults ? this.canon.admit(i) : i,
|
|
6632
6632
|
missing: s
|
|
@@ -6737,11 +6737,11 @@ function Jo(e) {
|
|
|
6737
6737
|
var t = Qi(e);
|
|
6738
6738
|
return t.keyArgsFn || (t.keyArgsFn = function(r, n) {
|
|
6739
6739
|
var i = n.field, o = n.variables, a = n.fieldName, s = zi(e, function(u) {
|
|
6740
|
-
var l = u[0],
|
|
6741
|
-
if (
|
|
6740
|
+
var l = u[0], h = l.charAt(0);
|
|
6741
|
+
if (h === "@") {
|
|
6742
6742
|
if (i && Ne(i.directives)) {
|
|
6743
|
-
var
|
|
6744
|
-
return g.name.value ===
|
|
6743
|
+
var f = l.slice(1), p = i.directives.find(function(g) {
|
|
6744
|
+
return g.name.value === f;
|
|
6745
6745
|
}), m = p && an(p, o);
|
|
6746
6746
|
return m && qt(
|
|
6747
6747
|
m,
|
|
@@ -6753,7 +6753,7 @@ function Jo(e) {
|
|
|
6753
6753
|
}
|
|
6754
6754
|
return;
|
|
6755
6755
|
}
|
|
6756
|
-
if (
|
|
6756
|
+
if (h === "$") {
|
|
6757
6757
|
var y = l.slice(1);
|
|
6758
6758
|
if (o && we.call(o, y)) {
|
|
6759
6759
|
var v = u.slice(0);
|
|
@@ -6828,19 +6828,19 @@ var xh = function() {
|
|
|
6828
6828
|
if (o === this.rootTypenamesById.ROOT_QUERY)
|
|
6829
6829
|
return ["ROOT_QUERY"];
|
|
6830
6830
|
var a = r && r.storeObject || t, s = k(k({}, r), { typename: o, storeObject: a, readField: r && r.readField || function() {
|
|
6831
|
-
var
|
|
6832
|
-
return i.readField(
|
|
6831
|
+
var h = Ui(arguments, a);
|
|
6832
|
+
return i.readField(h, {
|
|
6833
6833
|
store: i.cache.data,
|
|
6834
|
-
variables:
|
|
6834
|
+
variables: h.variables
|
|
6835
6835
|
});
|
|
6836
6836
|
} }), c, u = o && this.getTypePolicy(o), l = u && u.keyFn || this.config.dataIdFromObject;
|
|
6837
6837
|
return Bi.withValue(!0, function() {
|
|
6838
6838
|
for (; l; ) {
|
|
6839
|
-
var
|
|
6840
|
-
if (ge(
|
|
6841
|
-
l = Xo(
|
|
6839
|
+
var h = l(k(k({}, t), a), s);
|
|
6840
|
+
if (ge(h))
|
|
6841
|
+
l = Xo(h);
|
|
6842
6842
|
else {
|
|
6843
|
-
c =
|
|
6843
|
+
c = h;
|
|
6844
6844
|
break;
|
|
6845
6845
|
}
|
|
6846
6846
|
}
|
|
@@ -6864,10 +6864,10 @@ var xh = function() {
|
|
|
6864
6864
|
if (typeof l == "function")
|
|
6865
6865
|
u.read = l;
|
|
6866
6866
|
else {
|
|
6867
|
-
var
|
|
6867
|
+
var h = l.keyArgs, f = l.read, p = l.merge;
|
|
6868
6868
|
u.keyFn = // Pass false to disable argument-based differentiation of
|
|
6869
6869
|
// field identities.
|
|
6870
|
-
|
|
6870
|
+
h === !1 ? Ko : ge(h) ? Jo(h) : typeof h == "function" ? h : u.keyFn, typeof f == "function" && (u.read = f), s(u, p);
|
|
6871
6871
|
}
|
|
6872
6872
|
u.read && u.merge && (u.keyFn = u.keyFn || Ko);
|
|
6873
6873
|
});
|
|
@@ -6925,17 +6925,17 @@ var xh = function() {
|
|
|
6925
6925
|
for (var s = this.getSupertypeSet(r, !0), c = [s], u = function(m) {
|
|
6926
6926
|
var y = o.getSupertypeSet(m, !1);
|
|
6927
6927
|
y && y.size && c.indexOf(y) < 0 && c.push(y);
|
|
6928
|
-
}, l = !!(n && this.fuzzySubtypes.size),
|
|
6929
|
-
var p = c[
|
|
6928
|
+
}, l = !!(n && this.fuzzySubtypes.size), h = !1, f = 0; f < c.length; ++f) {
|
|
6929
|
+
var p = c[f];
|
|
6930
6930
|
if (p.has(a))
|
|
6931
|
-
return s.has(a) || (
|
|
6931
|
+
return s.has(a) || (h && globalThis.__DEV__ !== !1 && R.warn(7, r, a), s.add(a)), !0;
|
|
6932
6932
|
p.forEach(u), l && // Start checking fuzzy subtypes only after exhausting all
|
|
6933
6933
|
// non-fuzzy subtypes (after the final iteration of the loop).
|
|
6934
|
-
|
|
6934
|
+
f === c.length - 1 && // We could wait to compare fragment.selectionSet to result
|
|
6935
6935
|
// after we verify the supertype, but this check is often less
|
|
6936
6936
|
// expensive than that search, and we will have to do the
|
|
6937
6937
|
// comparison anyway whenever we find a potential match.
|
|
6938
|
-
ui(t.selectionSet, n, i) && (l = !1,
|
|
6938
|
+
ui(t.selectionSet, n, i) && (l = !1, h = !0, this.fuzzySubtypes.forEach(function(m, y) {
|
|
6939
6939
|
var v = r.match(m);
|
|
6940
6940
|
v && v[0] === r && u(y);
|
|
6941
6941
|
}));
|
|
@@ -6973,10 +6973,10 @@ var xh = function() {
|
|
|
6973
6973
|
}
|
|
6974
6974
|
var a = this.getStoreFieldName(t), s = ft(a), c = r.store.getFieldValue(n, a), u = this.getFieldPolicy(t.typename, s), l = u && u.read;
|
|
6975
6975
|
if (l) {
|
|
6976
|
-
var
|
|
6976
|
+
var h = ta(this, n, t, r, r.store.getStorage(se(n) ? n.__ref : n, a));
|
|
6977
6977
|
return Wi.withValue(this.cache, l, [
|
|
6978
6978
|
c,
|
|
6979
|
-
|
|
6979
|
+
h
|
|
6980
6980
|
]);
|
|
6981
6981
|
}
|
|
6982
6982
|
return c;
|
|
@@ -7076,26 +7076,26 @@ var wh = (
|
|
|
7076
7076
|
return e.prototype.writeToStore = function(t, r) {
|
|
7077
7077
|
var n = this, i = r.query, o = r.result, a = r.dataId, s = r.variables, c = r.overwrite, u = bt(i), l = lh();
|
|
7078
7078
|
s = k(k({}, ji(u)), s);
|
|
7079
|
-
var
|
|
7079
|
+
var h = k(k({ store: t, written: /* @__PURE__ */ Object.create(null), merge: function(p, m) {
|
|
7080
7080
|
return l.merge(p, m);
|
|
7081
|
-
}, variables: s, varString: st(s) }, ac(i, this.fragments)), { overwrite: !!c, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }),
|
|
7081
|
+
}, variables: s, varString: st(s) }, ac(i, this.fragments)), { overwrite: !!c, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }), f = this.processSelectionSet({
|
|
7082
7082
|
result: o || /* @__PURE__ */ Object.create(null),
|
|
7083
7083
|
dataId: a,
|
|
7084
7084
|
selectionSet: u.selectionSet,
|
|
7085
7085
|
mergeTree: { map: /* @__PURE__ */ new Map() },
|
|
7086
|
-
context:
|
|
7086
|
+
context: h
|
|
7087
7087
|
});
|
|
7088
|
-
if (!se(
|
|
7088
|
+
if (!se(f))
|
|
7089
7089
|
throw je(12, o);
|
|
7090
|
-
return
|
|
7090
|
+
return h.incomingById.forEach(function(p, m) {
|
|
7091
7091
|
var y = p.storeObject, v = p.mergeTree, g = p.fieldNodeSet, b = Pt(m);
|
|
7092
7092
|
if (v && v.map.size) {
|
|
7093
|
-
var E = n.applyMerges(v, b, y,
|
|
7093
|
+
var E = n.applyMerges(v, b, y, h);
|
|
7094
7094
|
if (se(E))
|
|
7095
7095
|
return;
|
|
7096
7096
|
y = E;
|
|
7097
7097
|
}
|
|
7098
|
-
if (globalThis.__DEV__ !== !1 && !
|
|
7098
|
+
if (globalThis.__DEV__ !== !1 && !h.overwrite) {
|
|
7099
7099
|
var _ = /* @__PURE__ */ Object.create(null);
|
|
7100
7100
|
g.forEach(function(w) {
|
|
7101
7101
|
w.selectionSet && (_[w.name.value] = !0);
|
|
@@ -7107,15 +7107,15 @@ var wh = (
|
|
|
7107
7107
|
return !!(S && S.info && S.info.merge);
|
|
7108
7108
|
};
|
|
7109
7109
|
Object.keys(y).forEach(function(w) {
|
|
7110
|
-
x(w) && !O(w) && _h(b, y, w,
|
|
7110
|
+
x(w) && !O(w) && _h(b, y, w, h.store);
|
|
7111
7111
|
});
|
|
7112
7112
|
}
|
|
7113
7113
|
t.merge(m, y);
|
|
7114
|
-
}), t.retain(
|
|
7114
|
+
}), t.retain(f.__ref), f;
|
|
7115
7115
|
}, e.prototype.processSelectionSet = function(t) {
|
|
7116
7116
|
var r = this, n = t.dataId, i = t.result, o = t.selectionSet, a = t.context, s = t.mergeTree, c = this.cache.policies, u = /* @__PURE__ */ Object.create(null), l = n && c.rootTypenamesById[n] || Zn(i, o, a.fragmentMap) || n && a.store.get(n, "__typename");
|
|
7117
7117
|
typeof l == "string" && (u.__typename = l);
|
|
7118
|
-
var
|
|
7118
|
+
var h = function() {
|
|
7119
7119
|
var E = Ui(arguments, u, a.variables);
|
|
7120
7120
|
if (se(E.from)) {
|
|
7121
7121
|
var _ = a.incomingById.get(E.from.__ref);
|
|
@@ -7126,7 +7126,7 @@ var wh = (
|
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
7128
|
return c.readField(E, a);
|
|
7129
|
-
},
|
|
7129
|
+
}, f = /* @__PURE__ */ new Set();
|
|
7130
7130
|
this.flattenFields(
|
|
7131
7131
|
o,
|
|
7132
7132
|
i,
|
|
@@ -7137,7 +7137,7 @@ var wh = (
|
|
|
7137
7137
|
l
|
|
7138
7138
|
).forEach(function(E, _) {
|
|
7139
7139
|
var x, O = Ge(_), w = i[O];
|
|
7140
|
-
if (
|
|
7140
|
+
if (f.add(_), w !== void 0) {
|
|
7141
7141
|
var S = c.getStoreFieldName({
|
|
7142
7142
|
typename: l,
|
|
7143
7143
|
fieldName: _.name.value,
|
|
@@ -7151,7 +7151,7 @@ var wh = (
|
|
|
7151
7151
|
_.selectionSet ? Tn(E, !1, !1) : E,
|
|
7152
7152
|
D
|
|
7153
7153
|
), C = void 0;
|
|
7154
|
-
_.selectionSet && (se(j) || jt(j)) && (C =
|
|
7154
|
+
_.selectionSet && (se(j) || jt(j)) && (C = h("__typename", j));
|
|
7155
7155
|
var I = c.getMergeFunction(l, _.name.value, C);
|
|
7156
7156
|
I ? D.info = {
|
|
7157
7157
|
// TODO Check compatibility against any existing childTree.field?
|
|
@@ -7170,7 +7170,7 @@ var wh = (
|
|
|
7170
7170
|
selectionSet: o,
|
|
7171
7171
|
fragmentMap: a.fragmentMap,
|
|
7172
7172
|
storeObject: u,
|
|
7173
|
-
readField:
|
|
7173
|
+
readField: h
|
|
7174
7174
|
}), m = p[0], y = p[1];
|
|
7175
7175
|
n = n || m, y && (u = a.merge(u, y));
|
|
7176
7176
|
} catch (E) {
|
|
@@ -7182,7 +7182,7 @@ var wh = (
|
|
|
7182
7182
|
if (g.indexOf(o) >= 0 || (g.push(o), this.reader && this.reader.isFresh(i, v, o, a)))
|
|
7183
7183
|
return v;
|
|
7184
7184
|
var b = a.incomingById.get(n);
|
|
7185
|
-
return b ? (b.storeObject = a.merge(b.storeObject, u), b.mergeTree = fi(b.mergeTree, s),
|
|
7185
|
+
return b ? (b.storeObject = a.merge(b.storeObject, u), b.mergeTree = fi(b.mergeTree, s), f.forEach(function(E) {
|
|
7186
7186
|
return b.fieldNodeSet.add(E);
|
|
7187
7187
|
})) : a.incomingById.set(n, {
|
|
7188
7188
|
storeObject: u,
|
|
@@ -7190,7 +7190,7 @@ var wh = (
|
|
|
7190
7190
|
// empty MergeTrees may be recycled by maybeRecycleChildMergeTree and
|
|
7191
7191
|
// reused for entirely different parts of the result tree.
|
|
7192
7192
|
mergeTree: Yr(s) ? void 0 : s,
|
|
7193
|
-
fieldNodeSet:
|
|
7193
|
+
fieldNodeSet: f
|
|
7194
7194
|
}), v;
|
|
7195
7195
|
}
|
|
7196
7196
|
return u;
|
|
@@ -7209,7 +7209,7 @@ var wh = (
|
|
|
7209
7209
|
i === void 0 && (i = Zn(r, t, n.fragmentMap));
|
|
7210
7210
|
var o = /* @__PURE__ */ new Map(), a = this.cache.policies, s = new Xe(!1);
|
|
7211
7211
|
return (function c(u, l) {
|
|
7212
|
-
var
|
|
7212
|
+
var h = s.lookup(
|
|
7213
7213
|
u,
|
|
7214
7214
|
// Because we take inheritedClientOnly and inheritedDeferred into
|
|
7215
7215
|
// consideration here (in addition to selectionSet), it's possible for
|
|
@@ -7218,27 +7218,27 @@ var wh = (
|
|
|
7218
7218
|
l.clientOnly,
|
|
7219
7219
|
l.deferred
|
|
7220
7220
|
);
|
|
7221
|
-
|
|
7222
|
-
if (Er(
|
|
7221
|
+
h.visited || (h.visited = !0, u.selections.forEach(function(f) {
|
|
7222
|
+
if (Er(f, n.variables)) {
|
|
7223
7223
|
var p = l.clientOnly, m = l.deferred;
|
|
7224
7224
|
if (
|
|
7225
7225
|
// Since the presence of @client or @defer on this field can only
|
|
7226
7226
|
// cause clientOnly or deferred to become true, we can skip the
|
|
7227
7227
|
// forEach loop if both clientOnly and deferred are already true.
|
|
7228
|
-
!(p && m) && Ne(
|
|
7228
|
+
!(p && m) && Ne(f.directives) && f.directives.forEach(function(g) {
|
|
7229
7229
|
var b = g.name.value;
|
|
7230
7230
|
if (b === "client" && (p = !0), b === "defer") {
|
|
7231
7231
|
var E = an(g, n.variables);
|
|
7232
7232
|
(!E || E.if !== !1) && (m = !0);
|
|
7233
7233
|
}
|
|
7234
|
-
}), ct(
|
|
7234
|
+
}), ct(f)
|
|
7235
7235
|
) {
|
|
7236
|
-
var y = o.get(
|
|
7237
|
-
y && (p = p && y.clientOnly, m = m && y.deferred), o.set(
|
|
7236
|
+
var y = o.get(f);
|
|
7237
|
+
y && (p = p && y.clientOnly, m = m && y.deferred), o.set(f, Tn(n, p, m));
|
|
7238
7238
|
} else {
|
|
7239
|
-
var v = on(
|
|
7240
|
-
if (!v &&
|
|
7241
|
-
throw je(14,
|
|
7239
|
+
var v = on(f, n.lookupFragment);
|
|
7240
|
+
if (!v && f.kind === A.FRAGMENT_SPREAD)
|
|
7241
|
+
throw je(14, f.name.value);
|
|
7242
7242
|
v && a.fragmentMatches(v, i, r, n.variables) && c(v.selectionSet, Tn(n, p, m));
|
|
7243
7243
|
}
|
|
7244
7244
|
}
|
|
@@ -7257,18 +7257,18 @@ var wh = (
|
|
|
7257
7257
|
(se(r) || jt(r)) ? r : void 0
|
|
7258
7258
|
), u = n;
|
|
7259
7259
|
c && !o && (o = [se(c) ? c.__ref : c]);
|
|
7260
|
-
var l,
|
|
7261
|
-
return ge(
|
|
7260
|
+
var l, h = function(f, p) {
|
|
7261
|
+
return ge(f) ? typeof p == "number" ? f[p] : void 0 : i.store.getFieldValue(f, String(p));
|
|
7262
7262
|
};
|
|
7263
|
-
t.map.forEach(function(
|
|
7264
|
-
var m =
|
|
7263
|
+
t.map.forEach(function(f, p) {
|
|
7264
|
+
var m = h(c, p), y = h(u, p);
|
|
7265
7265
|
if (y !== void 0) {
|
|
7266
7266
|
o && o.push(p);
|
|
7267
|
-
var v = s.applyMerges(
|
|
7267
|
+
var v = s.applyMerges(f, m, y, i, o);
|
|
7268
7268
|
v !== y && (l = l || /* @__PURE__ */ new Map(), l.set(p, v)), o && R(o.pop() === p);
|
|
7269
7269
|
}
|
|
7270
|
-
}), l && (n = ge(u) ? u.slice(0) : k({}, u), l.forEach(function(
|
|
7271
|
-
n[p] =
|
|
7270
|
+
}), l && (n = ge(u) ? u.slice(0) : k({}, u), l.forEach(function(f, p) {
|
|
7271
|
+
n[p] = f;
|
|
7272
7272
|
}));
|
|
7273
7273
|
}
|
|
7274
7274
|
return t.info ? this.cache.policies.runMergeFunction(r, n, t.info, i, o && (a = i.store).getStorage.apply(a, o)) : n;
|
|
@@ -7304,22 +7304,22 @@ function na(e, t) {
|
|
|
7304
7304
|
}
|
|
7305
7305
|
var ia = /* @__PURE__ */ new Set();
|
|
7306
7306
|
function _h(e, t, r, n) {
|
|
7307
|
-
var i = function(
|
|
7308
|
-
var
|
|
7309
|
-
return typeof
|
|
7307
|
+
var i = function(h) {
|
|
7308
|
+
var f = n.getFieldValue(h, r);
|
|
7309
|
+
return typeof f == "object" && f;
|
|
7310
7310
|
}, o = i(e);
|
|
7311
7311
|
if (o) {
|
|
7312
7312
|
var a = i(t);
|
|
7313
|
-
if (a && !se(o) && !ue(o, a) && !Object.keys(o).every(function(
|
|
7314
|
-
return n.getFieldValue(a,
|
|
7313
|
+
if (a && !se(o) && !ue(o, a) && !Object.keys(o).every(function(h) {
|
|
7314
|
+
return n.getFieldValue(a, h) !== void 0;
|
|
7315
7315
|
})) {
|
|
7316
7316
|
var s = n.getFieldValue(e, "__typename") || n.getFieldValue(t, "__typename"), c = ft(r), u = "".concat(s, ".").concat(c);
|
|
7317
7317
|
if (!ia.has(u)) {
|
|
7318
7318
|
ia.add(u);
|
|
7319
7319
|
var l = [];
|
|
7320
|
-
!ge(o) && !ge(a) && [o, a].forEach(function(
|
|
7321
|
-
var
|
|
7322
|
-
typeof
|
|
7320
|
+
!ge(o) && !ge(a) && [o, a].forEach(function(h) {
|
|
7321
|
+
var f = n.getFieldValue(h, "__typename");
|
|
7322
|
+
typeof f == "string" && !l.includes(f) && l.push(f);
|
|
7323
7323
|
}), globalThis.__DEV__ !== !1 && R.warn(15, c, s, l.length ? "either ensure all objects of type " + l.join(" and ") + " have an ID or a custom merge function, or " : "", u, k({}, o), k({}, a));
|
|
7324
7324
|
}
|
|
7325
7325
|
}
|
|
@@ -7450,22 +7450,22 @@ var dc = (
|
|
|
7450
7450
|
var n = this.optimisticData.removeLayer(r);
|
|
7451
7451
|
n !== this.optimisticData && (this.optimisticData = n, this.broadcastWatches());
|
|
7452
7452
|
}, t.prototype.batch = function(r) {
|
|
7453
|
-
var n = this, i = r.update, o = r.optimistic, a = o === void 0 ? !0 : o, s = r.removeOptimistic, c = r.onWatchUpdated, u, l = function(
|
|
7453
|
+
var n = this, i = r.update, o = r.optimistic, a = o === void 0 ? !0 : o, s = r.removeOptimistic, c = r.onWatchUpdated, u, l = function(f) {
|
|
7454
7454
|
var p = n, m = p.data, y = p.optimisticData;
|
|
7455
|
-
++n.txCount,
|
|
7455
|
+
++n.txCount, f && (n.data = n.optimisticData = f);
|
|
7456
7456
|
try {
|
|
7457
7457
|
return u = i(n);
|
|
7458
7458
|
} finally {
|
|
7459
7459
|
--n.txCount, n.data = m, n.optimisticData = y;
|
|
7460
7460
|
}
|
|
7461
|
-
},
|
|
7462
|
-
return c && !this.txCount && this.broadcastWatches(k(k({}, r), { onWatchUpdated: function(
|
|
7463
|
-
return
|
|
7464
|
-
} })), typeof a == "string" ? this.optimisticData = this.optimisticData.addLayer(a, l) : a === !1 ? l(this.data) : l(), typeof s == "string" && (this.optimisticData = this.optimisticData.removeLayer(s)), c &&
|
|
7465
|
-
var m = c.call(this,
|
|
7466
|
-
return m !== !1 &&
|
|
7467
|
-
} })),
|
|
7468
|
-
return n.maybeBroadcastWatch.dirty(
|
|
7461
|
+
}, h = /* @__PURE__ */ new Set();
|
|
7462
|
+
return c && !this.txCount && this.broadcastWatches(k(k({}, r), { onWatchUpdated: function(f) {
|
|
7463
|
+
return h.add(f), !1;
|
|
7464
|
+
} })), typeof a == "string" ? this.optimisticData = this.optimisticData.addLayer(a, l) : a === !1 ? l(this.data) : l(), typeof s == "string" && (this.optimisticData = this.optimisticData.removeLayer(s)), c && h.size ? (this.broadcastWatches(k(k({}, r), { onWatchUpdated: function(f, p) {
|
|
7465
|
+
var m = c.call(this, f, p);
|
|
7466
|
+
return m !== !1 && h.delete(f), m;
|
|
7467
|
+
} })), h.size && h.forEach(function(f) {
|
|
7468
|
+
return n.maybeBroadcastWatch.dirty(f);
|
|
7469
7469
|
})) : this.broadcastWatches(r), u;
|
|
7470
7470
|
}, t.prototype.performTransaction = function(r, n) {
|
|
7471
7471
|
return this.batch({
|
|
@@ -7528,7 +7528,7 @@ var oa = Object.assign, Sh = Object.hasOwnProperty, dr = (
|
|
|
7528
7528
|
}) || this, a.observers = /* @__PURE__ */ new Set(), a.subscriptions = /* @__PURE__ */ new Set(), a.dirty = !1, a._getOrCreateQuery = function() {
|
|
7529
7529
|
return s && (n.queries.set(a.queryId, i), s = !1), a.queryManager.getOrCreateQuery(a.queryId);
|
|
7530
7530
|
}, a.queryInfo = i, a.queryManager = n, a.waitForOwnResult = kn(o.fetchPolicy), a.isTornDown = !1, a.subscribeToMore = a.subscribeToMore.bind(a), a.maskResult = a.maskResult.bind(a);
|
|
7531
|
-
var c = n.defaultOptions.watchQuery, u = c === void 0 ? {} : c, l = u.fetchPolicy,
|
|
7531
|
+
var c = n.defaultOptions.watchQuery, u = c === void 0 ? {} : c, l = u.fetchPolicy, h = l === void 0 ? "cache-first" : l, f = o.fetchPolicy, p = f === void 0 ? h : f, m = o.initialFetchPolicy, y = m === void 0 ? p === "standby" ? h : p : m;
|
|
7532
7532
|
a.options = k(k({}, o), {
|
|
7533
7533
|
// Remember the initial options.fetchPolicy so we can revert back to this
|
|
7534
7534
|
// policy when variables change. This information can also be specified
|
|
@@ -7655,7 +7655,7 @@ var oa = Object.assign, Sh = Object.hasOwnProperty, dr = (
|
|
|
7655
7655
|
var a = this.queryInfo, s = a.networkStatus;
|
|
7656
7656
|
a.networkStatus = ie.fetchMore, i.notifyOnNetworkStatusChange && this.observe();
|
|
7657
7657
|
var c = /* @__PURE__ */ new Set(), u = r == null ? void 0 : r.updateQuery, l = this.options.fetchPolicy !== "no-cache";
|
|
7658
|
-
return l || R(u, 29), this.queryManager.fetchQuery(o, i, ie.fetchMore).then(function(
|
|
7658
|
+
return l || R(u, 29), this.queryManager.fetchQuery(o, i, ie.fetchMore).then(function(h) {
|
|
7659
7659
|
if (n.queryManager.removeQuery(o), a.networkStatus === ie.fetchMore && (a.networkStatus = s), l)
|
|
7660
7660
|
n.queryManager.cache.batch({
|
|
7661
7661
|
update: function(m) {
|
|
@@ -7667,13 +7667,13 @@ var oa = Object.assign, Sh = Object.hasOwnProperty, dr = (
|
|
|
7667
7667
|
optimistic: !1
|
|
7668
7668
|
}, function(v) {
|
|
7669
7669
|
return y(v, {
|
|
7670
|
-
fetchMoreResult:
|
|
7670
|
+
fetchMoreResult: h.data,
|
|
7671
7671
|
variables: i.variables
|
|
7672
7672
|
});
|
|
7673
7673
|
}) : m.writeQuery({
|
|
7674
7674
|
query: i.query,
|
|
7675
7675
|
variables: i.variables,
|
|
7676
|
-
data:
|
|
7676
|
+
data: h.data
|
|
7677
7677
|
});
|
|
7678
7678
|
},
|
|
7679
7679
|
onWatchUpdated: function(m) {
|
|
@@ -7681,13 +7681,13 @@ var oa = Object.assign, Sh = Object.hasOwnProperty, dr = (
|
|
|
7681
7681
|
}
|
|
7682
7682
|
});
|
|
7683
7683
|
else {
|
|
7684
|
-
var
|
|
7685
|
-
fetchMoreResult:
|
|
7684
|
+
var f = n.getLast("result"), p = u(f.data, {
|
|
7685
|
+
fetchMoreResult: h.data,
|
|
7686
7686
|
variables: i.variables
|
|
7687
7687
|
});
|
|
7688
|
-
n.reportResult(k(k({},
|
|
7688
|
+
n.reportResult(k(k({}, f), { networkStatus: s, loading: Rt(s), data: p }), n.variables);
|
|
7689
7689
|
}
|
|
7690
|
-
return n.maskResult(
|
|
7690
|
+
return n.maskResult(h);
|
|
7691
7691
|
}).finally(function() {
|
|
7692
7692
|
l && !c.has(n.query) && n.reobserveCacheFirst();
|
|
7693
7693
|
});
|
|
@@ -7822,14 +7822,14 @@ var oa = Object.assign, Sh = Object.hasOwnProperty, dr = (
|
|
|
7822
7822
|
(u.fetchPolicy === s || // A `nextFetchPolicy` function has even higher priority, though,
|
|
7823
7823
|
// so in that case `applyNextFetchPolicy` must be called.
|
|
7824
7824
|
typeof u.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", u), n === void 0 && (n = ie.setVariables))), this.waitForOwnResult && (this.waitForOwnResult = kn(u.fetchPolicy));
|
|
7825
|
-
var
|
|
7825
|
+
var h = function() {
|
|
7826
7826
|
i.concast === m && (i.waitForOwnResult = !1);
|
|
7827
|
-
},
|
|
7827
|
+
}, f = u.variables && k({}, u.variables), p = this.fetch(u, n, l), m = p.concast, y = p.fromLink, v = {
|
|
7828
7828
|
next: function(g) {
|
|
7829
|
-
ue(i.variables,
|
|
7829
|
+
ue(i.variables, f) && (h(), i.reportResult(g, f));
|
|
7830
7830
|
},
|
|
7831
7831
|
error: function(g) {
|
|
7832
|
-
ue(i.variables,
|
|
7832
|
+
ue(i.variables, f) && (Us(g) || (g = new He({ networkError: g })), h(), i.reportError(g, f));
|
|
7833
7833
|
}
|
|
7834
7834
|
};
|
|
7835
7835
|
return !o && (y || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = m, this.observer = v), m.addObserver(v), m;
|
|
@@ -8020,9 +8020,9 @@ var Cn = (
|
|
|
8020
8020
|
var l = this.getDiff();
|
|
8021
8021
|
t.data = s.merge(l.result, t.data);
|
|
8022
8022
|
}
|
|
8023
|
-
this.graphQLErrors = c, n.fetchPolicy === "no-cache" ? this.updateLastDiff({ result: t.data, complete: !0 }, this.getDiffOptions(n.variables)) : i !== 0 && (hi(t, n.errorPolicy) ? this.cache.performTransaction(function(
|
|
8023
|
+
this.graphQLErrors = c, n.fetchPolicy === "no-cache" ? this.updateLastDiff({ result: t.data, complete: !0 }, this.getDiffOptions(n.variables)) : i !== 0 && (hi(t, n.errorPolicy) ? this.cache.performTransaction(function(h) {
|
|
8024
8024
|
if (o.shouldWrite(t, n.variables))
|
|
8025
|
-
|
|
8025
|
+
h.writeQuery({
|
|
8026
8026
|
query: r,
|
|
8027
8027
|
data: t.data,
|
|
8028
8028
|
variables: n.variables,
|
|
@@ -8036,10 +8036,10 @@ var Cn = (
|
|
|
8036
8036
|
t.data = o.lastDiff.diff.result;
|
|
8037
8037
|
return;
|
|
8038
8038
|
}
|
|
8039
|
-
var
|
|
8040
|
-
return
|
|
8039
|
+
var f = o.getDiffOptions(n.variables), p = Se("canonizeResults", function() {
|
|
8040
|
+
return h.diff(f);
|
|
8041
8041
|
});
|
|
8042
|
-
!o.stopped && ue(o.variables, n.variables) && o.updateWatch(n.variables), o.updateLastDiff(p,
|
|
8042
|
+
!o.stopped && ue(o.variables, n.variables) && o.updateWatch(n.variables), o.updateLastDiff(p, f), p.complete && (t.data = p.result);
|
|
8043
8043
|
}) : this.lastWrite = void 0);
|
|
8044
8044
|
}, e.prototype.markReady = function() {
|
|
8045
8045
|
return this.networkError = null, this.networkStatus = ie.ready;
|
|
@@ -8085,23 +8085,23 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8085
8085
|
}), this.fetchCancelFns.clear();
|
|
8086
8086
|
}, e.prototype.mutate = function(t) {
|
|
8087
8087
|
return nt(this, arguments, void 0, function(r) {
|
|
8088
|
-
var n, i, o, a, s, c, u, l = r.mutation,
|
|
8088
|
+
var n, i, o, a, s, c, u, l = r.mutation, h = r.variables, f = r.optimisticResponse, p = r.updateQueries, m = r.refetchQueries, y = m === void 0 ? [] : m, v = r.awaitRefetchQueries, g = v === void 0 ? !1 : v, b = r.update, E = r.onQueryUpdated, _ = r.fetchPolicy, x = _ === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.fetchPolicy) || "network-only" : _, O = r.errorPolicy, w = O === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.errorPolicy) || "none" : O, S = r.keepRootFields, D = r.context;
|
|
8089
8089
|
return it(this, function(j) {
|
|
8090
8090
|
switch (j.label) {
|
|
8091
8091
|
case 0:
|
|
8092
|
-
return R(l, 36), R(x === "network-only" || x === "no-cache", 37), n = this.generateMutationId(), l = this.cache.transformForLink(this.transform(l)), i = this.getDocumentInfo(l).hasClientExports,
|
|
8092
|
+
return R(l, 36), R(x === "network-only" || x === "no-cache", 37), n = this.generateMutationId(), l = this.cache.transformForLink(this.transform(l)), i = this.getDocumentInfo(l).hasClientExports, h = this.getVariables(l, h), i ? [4, this.localState.addExportedVariables(l, h, D)] : [3, 2];
|
|
8093
8093
|
case 1:
|
|
8094
|
-
|
|
8094
|
+
h = j.sent(), j.label = 2;
|
|
8095
8095
|
case 2:
|
|
8096
8096
|
return o = this.mutationStore && (this.mutationStore[n] = {
|
|
8097
8097
|
mutation: l,
|
|
8098
|
-
variables:
|
|
8098
|
+
variables: h,
|
|
8099
8099
|
loading: !0,
|
|
8100
8100
|
error: null
|
|
8101
|
-
}), a =
|
|
8101
|
+
}), a = f && this.markMutationOptimistic(f, {
|
|
8102
8102
|
mutationId: n,
|
|
8103
8103
|
document: l,
|
|
8104
|
-
variables:
|
|
8104
|
+
variables: h,
|
|
8105
8105
|
fetchPolicy: x,
|
|
8106
8106
|
errorPolicy: w,
|
|
8107
8107
|
context: D,
|
|
@@ -8109,7 +8109,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8109
8109
|
update: b,
|
|
8110
8110
|
keepRootFields: S
|
|
8111
8111
|
}), this.broadcastQueries(), s = this, [2, new Promise(function(C, I) {
|
|
8112
|
-
return En(s.getObservableFromLink(l, k(k({}, D), { optimisticResponse: a ?
|
|
8112
|
+
return En(s.getObservableFromLink(l, k(k({}, D), { optimisticResponse: a ? f : void 0 }), h, {}, !1), function(F) {
|
|
8113
8113
|
if (Vr(F) && w === "none")
|
|
8114
8114
|
throw new He({
|
|
8115
8115
|
graphQLErrors: ni(F)
|
|
@@ -8120,7 +8120,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8120
8120
|
mutationId: n,
|
|
8121
8121
|
result: B,
|
|
8122
8122
|
document: l,
|
|
8123
|
-
variables:
|
|
8123
|
+
variables: h,
|
|
8124
8124
|
fetchPolicy: x,
|
|
8125
8125
|
errorPolicy: w,
|
|
8126
8126
|
context: D,
|
|
@@ -8180,10 +8180,10 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8180
8180
|
}));
|
|
8181
8181
|
}
|
|
8182
8182
|
var u = t.updateQueries;
|
|
8183
|
-
u && this.queries.forEach(function(
|
|
8184
|
-
var p =
|
|
8183
|
+
u && this.queries.forEach(function(h, f) {
|
|
8184
|
+
var p = h.observableQuery, m = p && p.queryName;
|
|
8185
8185
|
if (!(!m || !kh.call(u, m))) {
|
|
8186
|
-
var y = u[m], v = n.queries.get(
|
|
8186
|
+
var y = u[m], v = n.queries.get(f), g = v.document, b = v.variables, E = r.diff({
|
|
8187
8187
|
query: g,
|
|
8188
8188
|
variables: b,
|
|
8189
8189
|
returnPartialData: !0,
|
|
@@ -8208,14 +8208,14 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8208
8208
|
if (o.length > 0 || (t.refetchQueries || "").length > 0 || t.update || t.onQueryUpdated || t.removeOptimistic) {
|
|
8209
8209
|
var l = [];
|
|
8210
8210
|
if (this.refetchQueries({
|
|
8211
|
-
updateCache: function(
|
|
8211
|
+
updateCache: function(h) {
|
|
8212
8212
|
a || o.forEach(function(y) {
|
|
8213
|
-
return
|
|
8213
|
+
return h.write(y);
|
|
8214
8214
|
});
|
|
8215
|
-
var
|
|
8216
|
-
if (
|
|
8215
|
+
var f = t.update, p = !gf(i) || At(i) && !i.hasNext;
|
|
8216
|
+
if (f) {
|
|
8217
8217
|
if (!a) {
|
|
8218
|
-
var m =
|
|
8218
|
+
var m = h.diff({
|
|
8219
8219
|
id: "ROOT_MUTATION",
|
|
8220
8220
|
// The cache complains if passed a mutation where it expects a
|
|
8221
8221
|
// query, so we transform mutations and subscriptions to queries
|
|
@@ -8227,12 +8227,12 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8227
8227
|
});
|
|
8228
8228
|
m.complete && (i = k(k({}, i), { data: m.result }), "incremental" in i && delete i.incremental, "hasNext" in i && delete i.hasNext);
|
|
8229
8229
|
}
|
|
8230
|
-
p && h
|
|
8230
|
+
p && f(h, i, {
|
|
8231
8231
|
context: t.context,
|
|
8232
8232
|
variables: t.variables
|
|
8233
8233
|
});
|
|
8234
8234
|
}
|
|
8235
|
-
!a && !t.keepRootFields && p &&
|
|
8235
|
+
!a && !t.keepRootFields && p && h.modify({
|
|
8236
8236
|
id: "ROOT_MUTATION",
|
|
8237
8237
|
fields: function(y, v) {
|
|
8238
8238
|
var g = v.fieldName, b = v.DELETE;
|
|
@@ -8251,8 +8251,8 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8251
8251
|
// If no onQueryUpdated function was provided for this mutation, pass
|
|
8252
8252
|
// null instead of undefined to disable the default refetching behavior.
|
|
8253
8253
|
onQueryUpdated: t.onQueryUpdated || null
|
|
8254
|
-
}).forEach(function(
|
|
8255
|
-
return l.push(
|
|
8254
|
+
}).forEach(function(h) {
|
|
8255
|
+
return l.push(h);
|
|
8256
8256
|
}), t.awaitRefetchQueries || t.onQueryUpdated)
|
|
8257
8257
|
return Promise.all(l).then(function() {
|
|
8258
8258
|
return i;
|
|
@@ -8379,10 +8379,10 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8379
8379
|
n.set(c, u);
|
|
8380
8380
|
return;
|
|
8381
8381
|
}
|
|
8382
|
-
var
|
|
8383
|
-
if (
|
|
8382
|
+
var h = u.queryName, f = u.options.fetchPolicy;
|
|
8383
|
+
if (f === "standby" || t === "active" && !u.hasObservers())
|
|
8384
8384
|
return;
|
|
8385
|
-
(t === "active" ||
|
|
8385
|
+
(t === "active" || h && o.has(h) || l && o.has(vt(l))) && (n.set(c, u), h && o.set(h, !0), l && o.set(vt(l), !0));
|
|
8386
8386
|
}
|
|
8387
8387
|
}), a.size && a.forEach(function(s) {
|
|
8388
8388
|
var c = zn("legacyOneTimeQuery"), u = r.getOrCreateQuery(c).init({
|
|
@@ -8411,10 +8411,10 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8411
8411
|
}), (t || a !== "standby" && a !== "cache-only") && n.push(i.refetch()), (r.queries.get(o) || i.queryInfo).setDiff(null);
|
|
8412
8412
|
}), this.broadcastQueries(), Promise.all(n);
|
|
8413
8413
|
}, e.prototype.startGraphQLSubscription = function(t) {
|
|
8414
|
-
var r = this, n = t.query, i = t.variables, o = t.fetchPolicy, a = t.errorPolicy, s = a === void 0 ? "none" : a, c = t.context, u = c === void 0 ? {} : c, l = t.extensions,
|
|
8414
|
+
var r = this, n = t.query, i = t.variables, o = t.fetchPolicy, a = t.errorPolicy, s = a === void 0 ? "none" : a, c = t.context, u = c === void 0 ? {} : c, l = t.extensions, h = l === void 0 ? {} : l;
|
|
8415
8415
|
n = this.transform(n), i = this.getVariables(n, i);
|
|
8416
|
-
var
|
|
8417
|
-
return r.getObservableFromLink(n, u, m,
|
|
8416
|
+
var f = function(m) {
|
|
8417
|
+
return r.getObservableFromLink(n, u, m, h).map(function(y) {
|
|
8418
8418
|
o !== "no-cache" && (hi(y, s) && r.cache.write({
|
|
8419
8419
|
query: n,
|
|
8420
8420
|
result: y.data,
|
|
@@ -8431,7 +8431,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8431
8431
|
});
|
|
8432
8432
|
};
|
|
8433
8433
|
if (this.getDocumentInfo(n).hasClientExports) {
|
|
8434
|
-
var p = this.localState.addExportedVariables(n, i, u).then(
|
|
8434
|
+
var p = this.localState.addExportedVariables(n, i, u).then(f);
|
|
8435
8435
|
return new he(function(m) {
|
|
8436
8436
|
var y = null;
|
|
8437
8437
|
return p.then(function(v) {
|
|
@@ -8441,7 +8441,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8441
8441
|
};
|
|
8442
8442
|
});
|
|
8443
8443
|
}
|
|
8444
|
-
return
|
|
8444
|
+
return f(i);
|
|
8445
8445
|
}, e.prototype.stopQuery = function(t) {
|
|
8446
8446
|
this.stopQueryNoBroadcast(t), this.broadcastQueries();
|
|
8447
8447
|
}, e.prototype.stopQueryNoBroadcast = function(t) {
|
|
@@ -8459,9 +8459,9 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8459
8459
|
}, e.prototype.getObservableFromLink = function(t, r, n, i, o) {
|
|
8460
8460
|
var a = this, s;
|
|
8461
8461
|
o === void 0 && (o = (s = r == null ? void 0 : r.queryDeduplication) !== null && s !== void 0 ? s : this.queryDeduplication);
|
|
8462
|
-
var c, u = this.getDocumentInfo(t), l = u.serverQuery,
|
|
8462
|
+
var c, u = this.getDocumentInfo(t), l = u.serverQuery, h = u.clientQuery;
|
|
8463
8463
|
if (l) {
|
|
8464
|
-
var
|
|
8464
|
+
var f = this, p = f.inFlightLinkObservables, m = f.link, y = {
|
|
8465
8465
|
query: l,
|
|
8466
8466
|
variables: n,
|
|
8467
8467
|
operationName: or(l) || void 0,
|
|
@@ -8484,9 +8484,9 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8484
8484
|
]);
|
|
8485
8485
|
} else
|
|
8486
8486
|
c = new Ct([he.of({ data: {} })]), r = this.prepareContext(r);
|
|
8487
|
-
return
|
|
8487
|
+
return h && (c = En(c, function(_) {
|
|
8488
8488
|
return a.localState.runResolvers({
|
|
8489
|
-
document:
|
|
8489
|
+
document: h,
|
|
8490
8490
|
remoteResult: _,
|
|
8491
8491
|
context: r,
|
|
8492
8492
|
variables: n
|
|
@@ -8516,11 +8516,11 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8516
8516
|
}, e.prototype.fetchConcastWithInfo = function(t, r, n, i) {
|
|
8517
8517
|
var o = this;
|
|
8518
8518
|
n === void 0 && (n = ie.loading), i === void 0 && (i = r.query);
|
|
8519
|
-
var a = this.getVariables(i, r.variables), s = this.defaultOptions.watchQuery, c = r.fetchPolicy, u = c === void 0 ? s && s.fetchPolicy || "cache-first" : c, l = r.errorPolicy,
|
|
8519
|
+
var a = this.getVariables(i, r.variables), s = this.defaultOptions.watchQuery, c = r.fetchPolicy, u = c === void 0 ? s && s.fetchPolicy || "cache-first" : c, l = r.errorPolicy, h = l === void 0 ? s && s.errorPolicy || "none" : l, f = r.returnPartialData, p = f === void 0 ? !1 : f, m = r.notifyOnNetworkStatusChange, y = m === void 0 ? !1 : m, v = r.context, g = v === void 0 ? {} : v, b = Object.assign({}, r, {
|
|
8520
8520
|
query: i,
|
|
8521
8521
|
variables: a,
|
|
8522
8522
|
fetchPolicy: u,
|
|
8523
|
-
errorPolicy:
|
|
8523
|
+
errorPolicy: h,
|
|
8524
8524
|
returnPartialData: p,
|
|
8525
8525
|
notifyOnNetworkStatusChange: y,
|
|
8526
8526
|
context: g
|
|
@@ -8557,13 +8557,13 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8557
8557
|
};
|
|
8558
8558
|
}, e.prototype.refetchQueries = function(t) {
|
|
8559
8559
|
var r = this, n = t.updateCache, i = t.include, o = t.optimistic, a = o === void 0 ? !1 : o, s = t.removeOptimistic, c = s === void 0 ? a ? zn("refetchQueries") : void 0 : s, u = t.onQueryUpdated, l = /* @__PURE__ */ new Map();
|
|
8560
|
-
i && this.getObservableQueries(i).forEach(function(
|
|
8560
|
+
i && this.getObservableQueries(i).forEach(function(f, p) {
|
|
8561
8561
|
l.set(p, {
|
|
8562
|
-
oq:
|
|
8563
|
-
lastDiff: (r.queries.get(p) ||
|
|
8562
|
+
oq: f,
|
|
8563
|
+
lastDiff: (r.queries.get(p) || f.queryInfo).getDiff()
|
|
8564
8564
|
});
|
|
8565
8565
|
});
|
|
8566
|
-
var
|
|
8566
|
+
var h = /* @__PURE__ */ new Map();
|
|
8567
8567
|
return n && this.cache.batch({
|
|
8568
8568
|
update: n,
|
|
8569
8569
|
// Since you can perform any combination of cache reads and/or writes in
|
|
@@ -8604,23 +8604,23 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8604
8604
|
// true, the removeOptimistic string will determine the ID of the
|
|
8605
8605
|
// temporary optimistic layer, in case that ever matters.
|
|
8606
8606
|
removeOptimistic: c,
|
|
8607
|
-
onWatchUpdated: function(
|
|
8608
|
-
var y =
|
|
8607
|
+
onWatchUpdated: function(f, p, m) {
|
|
8608
|
+
var y = f.watcher instanceof Cn && f.watcher.observableQuery;
|
|
8609
8609
|
if (y) {
|
|
8610
8610
|
if (u) {
|
|
8611
8611
|
l.delete(y.queryId);
|
|
8612
8612
|
var v = u(y, p, m);
|
|
8613
|
-
return v === !0 && (v = y.refetch()), v !== !1 &&
|
|
8613
|
+
return v === !0 && (v = y.refetch()), v !== !1 && h.set(y, v), v;
|
|
8614
8614
|
}
|
|
8615
8615
|
u !== null && l.set(y.queryId, { oq: y, lastDiff: m, diff: p });
|
|
8616
8616
|
}
|
|
8617
8617
|
}
|
|
8618
|
-
}), l.size && l.forEach(function(
|
|
8619
|
-
var m =
|
|
8618
|
+
}), l.size && l.forEach(function(f, p) {
|
|
8619
|
+
var m = f.oq, y = f.lastDiff, v = f.diff, g;
|
|
8620
8620
|
u && (v || (v = Se("canonizeResults", function() {
|
|
8621
8621
|
return r.cache.diff(m.queryInfo.getDiffOptions());
|
|
8622
|
-
})), g = u(m, v, y)), (!u || g === !0) && (g = m.refetch()), g !== !1 &&
|
|
8623
|
-
}), c && this.cache.removeOptimistic(c),
|
|
8622
|
+
})), g = u(m, v, y)), (!u || g === !0) && (g = m.refetch()), g !== !1 && h.set(m, g), p.indexOf("legacyOneTimeQuery") >= 0 && r.stopQueryNoBroadcast(p);
|
|
8623
|
+
}), c && this.cache.removeOptimistic(c), h;
|
|
8624
8624
|
}, e.prototype.maskOperation = function(t) {
|
|
8625
8625
|
var r, n, i, o = t.document, a = t.data;
|
|
8626
8626
|
if (globalThis.__DEV__ !== !1) {
|
|
@@ -8635,7 +8635,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8635
8635
|
var r = t.data, n = t.fragment, i = t.fragmentName;
|
|
8636
8636
|
return this.dataMasking ? Zs(r, n, this.cache, i) : r;
|
|
8637
8637
|
}, e.prototype.fetchQueryByPolicy = function(t, r, n) {
|
|
8638
|
-
var i = this, o = r.query, a = r.variables, s = r.fetchPolicy, c = r.refetchWritePolicy, u = r.errorPolicy, l = r.returnPartialData,
|
|
8638
|
+
var i = this, o = r.query, a = r.variables, s = r.fetchPolicy, c = r.refetchWritePolicy, u = r.errorPolicy, l = r.returnPartialData, h = r.context, f = r.notifyOnNetworkStatusChange, p = t.networkStatus;
|
|
8639
8639
|
t.init({
|
|
8640
8640
|
document: o,
|
|
8641
8641
|
variables: a,
|
|
@@ -8653,7 +8653,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8653
8653
|
return O && i.getDocumentInfo(o).hasForcedResolvers ? i.localState.runResolvers({
|
|
8654
8654
|
document: o,
|
|
8655
8655
|
remoteResult: { data: O },
|
|
8656
|
-
context:
|
|
8656
|
+
context: h,
|
|
8657
8657
|
variables: a,
|
|
8658
8658
|
onlyRunForcedResolvers: !0
|
|
8659
8659
|
}).then(function(S) {
|
|
@@ -8663,11 +8663,11 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8663
8663
|
return i.getResultsFromLink(t, v, {
|
|
8664
8664
|
query: o,
|
|
8665
8665
|
variables: a,
|
|
8666
|
-
context:
|
|
8666
|
+
context: h,
|
|
8667
8667
|
fetchPolicy: s,
|
|
8668
8668
|
errorPolicy: u
|
|
8669
8669
|
});
|
|
8670
|
-
}, b =
|
|
8670
|
+
}, b = f && typeof p == "number" && p !== n && Rt(n);
|
|
8671
8671
|
switch (s) {
|
|
8672
8672
|
default:
|
|
8673
8673
|
case "cache-first": {
|
|
@@ -8787,18 +8787,18 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8787
8787
|
}).result;
|
|
8788
8788
|
}, e.prototype.resolveDocument = function(t, r) {
|
|
8789
8789
|
return nt(this, arguments, void 0, function(n, i, o, a, s, c) {
|
|
8790
|
-
var u, l,
|
|
8790
|
+
var u, l, h, f, p, m, y, v, g, b, E;
|
|
8791
8791
|
return o === void 0 && (o = {}), a === void 0 && (a = {}), s === void 0 && (s = function() {
|
|
8792
8792
|
return !0;
|
|
8793
8793
|
}), c === void 0 && (c = !1), it(this, function(_) {
|
|
8794
|
-
return u = wr(n), l = Ht(n),
|
|
8795
|
-
fragmentMap:
|
|
8794
|
+
return u = wr(n), l = Ht(n), h = zt(l), f = this.collectSelectionsToResolve(u, h), p = u.operation, m = p ? p.charAt(0).toUpperCase() + p.slice(1) : "Query", y = this, v = y.cache, g = y.client, b = {
|
|
8795
|
+
fragmentMap: h,
|
|
8796
8796
|
context: k(k({}, o), { cache: v, client: g }),
|
|
8797
8797
|
variables: a,
|
|
8798
8798
|
fragmentMatcher: s,
|
|
8799
8799
|
defaultOperationType: m,
|
|
8800
8800
|
exportedVariables: {},
|
|
8801
|
-
selectionsToResolve:
|
|
8801
|
+
selectionsToResolve: f,
|
|
8802
8802
|
onlyRunForcedResolvers: c
|
|
8803
8803
|
}, E = !1, [2, this.resolveSelectionSet(u.selectionSet, E, i, b).then(function(x) {
|
|
8804
8804
|
return {
|
|
@@ -8811,18 +8811,18 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8811
8811
|
}, e.prototype.resolveSelectionSet = function(t, r, n, i) {
|
|
8812
8812
|
return nt(this, void 0, void 0, function() {
|
|
8813
8813
|
var o, a, s, c, u, l = this;
|
|
8814
|
-
return it(this, function(
|
|
8815
|
-
return o = i.fragmentMap, a = i.context, s = i.variables, c = [n], u = function(
|
|
8814
|
+
return it(this, function(h) {
|
|
8815
|
+
return o = i.fragmentMap, a = i.context, s = i.variables, c = [n], u = function(f) {
|
|
8816
8816
|
return nt(l, void 0, void 0, function() {
|
|
8817
8817
|
var p, m;
|
|
8818
8818
|
return it(this, function(y) {
|
|
8819
|
-
return !r && !i.selectionsToResolve.has(
|
|
8819
|
+
return !r && !i.selectionsToResolve.has(f) ? [
|
|
8820
8820
|
2
|
|
8821
8821
|
/*return*/
|
|
8822
|
-
] : Er(
|
|
8822
|
+
] : Er(f, s) ? ct(f) ? [2, this.resolveField(f, r, n, i).then(function(v) {
|
|
8823
8823
|
var g;
|
|
8824
|
-
typeof v < "u" && c.push((g = {}, g[Ge(
|
|
8825
|
-
})] : (Fl(
|
|
8824
|
+
typeof v < "u" && c.push((g = {}, g[Ge(f)] = v, g));
|
|
8825
|
+
})] : (Fl(f) ? p = f : (p = o[f.name.value], R(p, 21, f.name.value)), p && p.typeCondition && (m = p.typeCondition.name.value, i.fragmentMatcher(n, m, a)) ? [2, this.resolveSelectionSet(p.selectionSet, r, n, i).then(function(v) {
|
|
8826
8826
|
c.push(v);
|
|
8827
8827
|
})] : [
|
|
8828
8828
|
2
|
|
@@ -8840,9 +8840,9 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8840
8840
|
});
|
|
8841
8841
|
}, e.prototype.resolveField = function(t, r, n, i) {
|
|
8842
8842
|
return nt(this, void 0, void 0, function() {
|
|
8843
|
-
var o, a, s, c, u, l,
|
|
8843
|
+
var o, a, s, c, u, l, h, f, p, m = this;
|
|
8844
8844
|
return it(this, function(y) {
|
|
8845
|
-
return n ? (o = i.variables, a = t.name.value, s = Ge(t), c = a !== s, u = n[s] || n[a], l = Promise.resolve(u), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(t)) && (
|
|
8845
|
+
return n ? (o = i.variables, a = t.name.value, s = Ge(t), c = a !== s, u = n[s] || n[a], l = Promise.resolve(u), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(t)) && (h = n.__typename || i.defaultOperationType, f = this.resolvers && this.resolvers[h], f && (p = f[c ? a : s], p && (l = Promise.resolve(
|
|
8846
8846
|
// In case the resolve function accesses reactive variables,
|
|
8847
8847
|
// set cacheSlot to the current cache instance.
|
|
8848
8848
|
Wi.withValue(this.cache, p, [
|
|
@@ -8887,16 +8887,16 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8887
8887
|
if (!i.has(a)) {
|
|
8888
8888
|
var s = /* @__PURE__ */ new Set();
|
|
8889
8889
|
i.set(a, s), qe(a, {
|
|
8890
|
-
Directive: function(c, u, l,
|
|
8891
|
-
c.name.value === "client" &&
|
|
8890
|
+
Directive: function(c, u, l, h, f) {
|
|
8891
|
+
c.name.value === "client" && f.forEach(function(p) {
|
|
8892
8892
|
n(p) && yo(p) && s.add(p);
|
|
8893
8893
|
});
|
|
8894
8894
|
},
|
|
8895
|
-
FragmentSpread: function(c, u, l,
|
|
8895
|
+
FragmentSpread: function(c, u, l, h, f) {
|
|
8896
8896
|
var p = r[c.name.value];
|
|
8897
8897
|
R(p, 22, c.name.value);
|
|
8898
8898
|
var m = o(p);
|
|
8899
|
-
m.size > 0 && (
|
|
8899
|
+
m.size > 0 && (f.forEach(function(y) {
|
|
8900
8900
|
n(y) && yo(y) && s.add(y);
|
|
8901
8901
|
}), s.add(c), m.forEach(function(y) {
|
|
8902
8902
|
s.add(y);
|
|
@@ -8916,10 +8916,10 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8916
8916
|
var r = this, n, i, o;
|
|
8917
8917
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !t.cache)
|
|
8918
8918
|
throw je(16);
|
|
8919
|
-
var a = t.uri, s = t.credentials, c = t.headers, u = t.cache, l = t.documentTransform,
|
|
8919
|
+
var a = t.uri, s = t.credentials, c = t.headers, u = t.cache, l = t.documentTransform, h = t.ssrMode, f = h === void 0 ? !1 : h, p = t.ssrForceFetchDelay, m = p === void 0 ? 0 : p, y = t.connectToDevTools, v = t.queryDeduplication, g = v === void 0 ? !0 : v, b = t.defaultOptions, E = t.defaultContext, _ = t.assumeImmutableResults, x = _ === void 0 ? u.assumeImmutableResults : _, O = t.resolvers, w = t.typeDefs, S = t.fragmentMatcher, D = t.clientAwareness, j = t.name, C = t.version, I = t.devtools, F = t.dataMasking;
|
|
8920
8920
|
globalThis.__DEV__ !== !1 && (me(t, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), me(t, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), me(t, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), me(t, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), me(t, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), me(t, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), me(t, "typeDefs", "ApolloClient"), t.link || globalThis.__DEV__ !== !1 && R.warn(17));
|
|
8921
8921
|
var B = t.link;
|
|
8922
|
-
B || (B = a ? new Zf({ uri: a, credentials: s, headers: c }) : _r.empty()), this.link = B, this.cache = u, this.disableNetworkFetches =
|
|
8922
|
+
B || (B = a ? new Zf({ uri: a, credentials: s, headers: c }) : _r.empty()), this.link = B, this.cache = u, this.disableNetworkFetches = f || m > 0, this.queryDeduplication = g, this.defaultOptions = b || /* @__PURE__ */ Object.create(null), this.typeDefs = w, this.devtoolsConfig = k(k({}, I), { enabled: (n = I == null ? void 0 : I.enabled) !== null && n !== void 0 ? n : y }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), m && setTimeout(function() {
|
|
8923
8923
|
return r.disableNetworkFetches = !1;
|
|
8924
8924
|
}, m), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = _i, this.localState = new Ch({
|
|
8925
8925
|
cache: u,
|
|
@@ -8933,7 +8933,7 @@ var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8933
8933
|
defaultContext: E,
|
|
8934
8934
|
documentTransform: l,
|
|
8935
8935
|
queryDeduplication: g,
|
|
8936
|
-
ssrMode:
|
|
8936
|
+
ssrMode: f,
|
|
8937
8937
|
dataMasking: !!F,
|
|
8938
8938
|
clientAwareness: {
|
|
8939
8939
|
name: (i = D == null ? void 0 : D.name) !== null && i !== void 0 ? i : j,
|
|
@@ -9265,21 +9265,21 @@ function xc(e) {
|
|
|
9265
9265
|
var r, n, i;
|
|
9266
9266
|
R(!!e && !!e.kind, 95, e);
|
|
9267
9267
|
for (var o = [], a = [], s = [], c = [], u = 0, l = e.definitions; u < l.length; u++) {
|
|
9268
|
-
var
|
|
9269
|
-
if (
|
|
9270
|
-
o.push(
|
|
9268
|
+
var h = l[u];
|
|
9269
|
+
if (h.kind === "FragmentDefinition") {
|
|
9270
|
+
o.push(h);
|
|
9271
9271
|
continue;
|
|
9272
9272
|
}
|
|
9273
|
-
if (
|
|
9274
|
-
switch (
|
|
9273
|
+
if (h.kind === "OperationDefinition")
|
|
9274
|
+
switch (h.operation) {
|
|
9275
9275
|
case "query":
|
|
9276
|
-
a.push(
|
|
9276
|
+
a.push(h);
|
|
9277
9277
|
break;
|
|
9278
9278
|
case "mutation":
|
|
9279
|
-
s.push(
|
|
9279
|
+
s.push(h);
|
|
9280
9280
|
break;
|
|
9281
9281
|
case "subscription":
|
|
9282
|
-
c.push(
|
|
9282
|
+
c.push(h);
|
|
9283
9283
|
break;
|
|
9284
9284
|
}
|
|
9285
9285
|
}
|
|
@@ -9291,9 +9291,9 @@ function xc(e) {
|
|
|
9291
9291
|
c.length,
|
|
9292
9292
|
s.length
|
|
9293
9293
|
), n = a.length ? Ye.Query : Ye.Mutation, !a.length && !s.length && (n = Ye.Subscription);
|
|
9294
|
-
var
|
|
9295
|
-
R(
|
|
9296
|
-
var p =
|
|
9294
|
+
var f = a.length ? a : s.length ? s : c;
|
|
9295
|
+
R(f.length === 1, 98, e, f.length);
|
|
9296
|
+
var p = f[0];
|
|
9297
9297
|
r = p.variableDefinitions || [], p.name && p.name.kind === "Name" ? i = p.name.value : i = "data";
|
|
9298
9298
|
var m = { name: i, type: n, variables: r };
|
|
9299
9299
|
return gt.set(e, m), m;
|
|
@@ -9361,8 +9361,8 @@ function Jh(e, t) {
|
|
|
9361
9361
|
}, [n, i]);
|
|
9362
9362
|
}
|
|
9363
9363
|
function Kh(e, t, r, n, i) {
|
|
9364
|
-
function o(
|
|
9365
|
-
var
|
|
9364
|
+
function o(h) {
|
|
9365
|
+
var f;
|
|
9366
9366
|
Wh(t, Ye.Query);
|
|
9367
9367
|
var p = {
|
|
9368
9368
|
client: e,
|
|
@@ -9380,19 +9380,19 @@ function Kh(e, t, r, n, i) {
|
|
|
9380
9380
|
resultData: {
|
|
9381
9381
|
// Reuse previousData from previous InternalState (if any) to provide
|
|
9382
9382
|
// continuity of previousData even if/when the query or client changes.
|
|
9383
|
-
previousData: (
|
|
9383
|
+
previousData: (f = h == null ? void 0 : h.resultData.current) === null || f === void 0 ? void 0 : f.data
|
|
9384
9384
|
}
|
|
9385
9385
|
};
|
|
9386
9386
|
return p;
|
|
9387
9387
|
}
|
|
9388
9388
|
var a = re.useState(o), s = a[0], c = a[1];
|
|
9389
|
-
function u(
|
|
9390
|
-
var
|
|
9391
|
-
Object.assign(s.observable, (
|
|
9389
|
+
function u(h) {
|
|
9390
|
+
var f, p;
|
|
9391
|
+
Object.assign(s.observable, (f = {}, f[Qr] = h, f));
|
|
9392
9392
|
var m = s.resultData;
|
|
9393
9393
|
c(k(k({}, s), {
|
|
9394
9394
|
// might be a different query
|
|
9395
|
-
query:
|
|
9395
|
+
query: h.query,
|
|
9396
9396
|
resultData: Object.assign(m, {
|
|
9397
9397
|
// We need to modify the previous `resultData` object as we rely on the
|
|
9398
9398
|
// object reference in other places
|
|
@@ -9408,29 +9408,29 @@ function Kh(e, t, r, n, i) {
|
|
|
9408
9408
|
return [s, u];
|
|
9409
9409
|
}
|
|
9410
9410
|
function Ec(e, t) {
|
|
9411
|
-
var r = bc(t.client), n = re.useContext(Hi()).renderPromises, i = !!n, o = r.disableNetworkFetches, a = t.ssr !== !1 && !t.skip, s = t.partialRefetch, c = wc(r, e, t, i), u = Kh(r, e, t, n, c), l = u[0],
|
|
9411
|
+
var r = bc(t.client), n = re.useContext(Hi()).renderPromises, i = !!n, o = r.disableNetworkFetches, a = t.ssr !== !1 && !t.skip, s = t.partialRefetch, c = wc(r, e, t, i), u = Kh(r, e, t, n, c), l = u[0], h = l.observable, f = l.resultData, p = u[1], m = c(h);
|
|
9412
9412
|
td(
|
|
9413
|
-
h,
|
|
9414
|
-
// might get mutated during render
|
|
9415
9413
|
f,
|
|
9416
9414
|
// might get mutated during render
|
|
9415
|
+
h,
|
|
9416
|
+
// might get mutated during render
|
|
9417
9417
|
r,
|
|
9418
9418
|
t,
|
|
9419
9419
|
m
|
|
9420
9420
|
);
|
|
9421
9421
|
var y = re.useMemo(function() {
|
|
9422
|
-
return od(
|
|
9423
|
-
}, [
|
|
9424
|
-
ed(
|
|
9425
|
-
var v = Zh(
|
|
9422
|
+
return od(h);
|
|
9423
|
+
}, [h]);
|
|
9424
|
+
ed(h, n, a);
|
|
9425
|
+
var v = Zh(f, h, r, t, m, o, s, i, {
|
|
9426
9426
|
onCompleted: t.onCompleted || ha,
|
|
9427
9427
|
onError: t.onError || ha
|
|
9428
9428
|
});
|
|
9429
9429
|
return {
|
|
9430
9430
|
result: v,
|
|
9431
9431
|
obsQueryFields: y,
|
|
9432
|
-
observable:
|
|
9433
|
-
resultData:
|
|
9432
|
+
observable: h,
|
|
9433
|
+
resultData: f,
|
|
9434
9434
|
client: r,
|
|
9435
9435
|
onQueryExecuted: p
|
|
9436
9436
|
};
|
|
@@ -9456,9 +9456,9 @@ function Zh(e, t, r, n, i, o, a, s, c) {
|
|
|
9456
9456
|
// changing this is breaking, so we'll have to wait until Apollo Client 4.0
|
|
9457
9457
|
// to address this.
|
|
9458
9458
|
Sc
|
|
9459
|
-
) : void 0,
|
|
9460
|
-
return l && Xr(l,
|
|
9461
|
-
}, [r, t, l,
|
|
9459
|
+
) : void 0, h = e.previousData, f = re.useMemo(function() {
|
|
9460
|
+
return l && Xr(l, h, t, r);
|
|
9461
|
+
}, [r, t, l, h]);
|
|
9462
9462
|
return Bh(re.useCallback(function(p) {
|
|
9463
9463
|
if (s)
|
|
9464
9464
|
return function() {
|
|
@@ -9490,9 +9490,9 @@ function Zh(e, t, r, n, i, o, a, s, c) {
|
|
|
9490
9490
|
a,
|
|
9491
9491
|
r
|
|
9492
9492
|
]), function() {
|
|
9493
|
-
return
|
|
9493
|
+
return f || da(e, t, u.current, a, r);
|
|
9494
9494
|
}, function() {
|
|
9495
|
-
return
|
|
9495
|
+
return f || da(e, t, u.current, a, r);
|
|
9496
9496
|
});
|
|
9497
9497
|
}
|
|
9498
9498
|
function ed(e, t, r) {
|
|
@@ -9612,11 +9612,11 @@ function dt(e, t) {
|
|
|
9612
9612
|
}
|
|
9613
9613
|
var i = re.useRef(void 0), o = re.useRef(void 0), a = re.useRef(void 0), s = Ft(t, i.current || {}), c = (r = s == null ? void 0 : s.query) !== null && r !== void 0 ? r : e;
|
|
9614
9614
|
o.current = t, a.current = c;
|
|
9615
|
-
var u = k(k({}, s), { skip: !i.current }), l = Ec(c, u),
|
|
9615
|
+
var u = k(k({}, s), { skip: !i.current }), l = Ec(c, u), h = l.obsQueryFields, f = l.result, p = l.client, m = l.resultData, y = l.observable, v = l.onQueryExecuted, g = y.options.initialFetchPolicy || mi(u.defaultOptions, p.defaultOptions), b = re.useReducer(function(C) {
|
|
9616
9616
|
return C + 1;
|
|
9617
9617
|
}, 0)[1], E = re.useMemo(function() {
|
|
9618
9618
|
for (var C = {}, I = function(G) {
|
|
9619
|
-
var fe =
|
|
9619
|
+
var fe = h[G];
|
|
9620
9620
|
C[G] = function() {
|
|
9621
9621
|
return globalThis.__DEV__ !== !1 && G === "reobserve" && globalThis.__DEV__ !== !1 && R.warn(80), i.current || (i.current = /* @__PURE__ */ Object.create(null), b()), fe.apply(this, arguments);
|
|
9622
9622
|
};
|
|
@@ -9625,9 +9625,9 @@ function dt(e, t) {
|
|
|
9625
9625
|
I(ce);
|
|
9626
9626
|
}
|
|
9627
9627
|
return C;
|
|
9628
|
-
}, [b,
|
|
9629
|
-
return k(k(k({},
|
|
9630
|
-
}, [
|
|
9628
|
+
}, [b, h]), _ = !!i.current, x = re.useMemo(function() {
|
|
9629
|
+
return k(k(k({}, f), E), { called: _ });
|
|
9630
|
+
}, [f, E, _]), O = Uh(), w = re.useRef(/* @__PURE__ */ new Set()), S = re.useCallback(function(C) {
|
|
9631
9631
|
if (globalThis.__DEV__ !== !1) {
|
|
9632
9632
|
O() && globalThis.__DEV__ !== !1 && R.warn(81);
|
|
9633
9633
|
for (var I = 0, F = sd; I < F.length; I++) {
|
|
@@ -9672,8 +9672,8 @@ function ud(e, t, r, n, i, o) {
|
|
|
9672
9672
|
return o(s), new Promise(function(u) {
|
|
9673
9673
|
var l;
|
|
9674
9674
|
c.subscribe({
|
|
9675
|
-
next: function(
|
|
9676
|
-
l =
|
|
9675
|
+
next: function(h) {
|
|
9676
|
+
l = h;
|
|
9677
9677
|
},
|
|
9678
9678
|
error: function() {
|
|
9679
9679
|
u(Xr(t.getCurrentResult(), e.previousData, t, r));
|
|
@@ -9981,14 +9981,14 @@ function Td(e, t, r) {
|
|
|
9981
9981
|
}
|
|
9982
9982
|
function kd(e, t, r) {
|
|
9983
9983
|
var o, a, s, c, u, l;
|
|
9984
|
-
const n = e.filter((
|
|
9984
|
+
const n = e.filter((h) => h.trackType === K.Importance);
|
|
9985
9985
|
if (n.length === 0) return [];
|
|
9986
9986
|
const i = r ? null : {
|
|
9987
9987
|
sequence: (s = (a = (o = t == null ? void 0 : t.bigRequests) == null ? void 0 : o[0]) == null ? void 0 : a.data) == null ? void 0 : s[0],
|
|
9988
|
-
importance: ((l = (u = (c = t == null ? void 0 : t.bigRequests) == null ? void 0 : c[1]) == null ? void 0 : u.data) == null ? void 0 : l.map((
|
|
9988
|
+
importance: ((l = (u = (c = t == null ? void 0 : t.bigRequests) == null ? void 0 : c[1]) == null ? void 0 : u.data) == null ? void 0 : l.map((h) => h.value)) || []
|
|
9989
9989
|
};
|
|
9990
|
-
return n.map((
|
|
9991
|
-
trackId:
|
|
9990
|
+
return n.map((h) => ({
|
|
9991
|
+
trackId: h.id,
|
|
9992
9992
|
data: i,
|
|
9993
9993
|
error: r
|
|
9994
9994
|
}));
|
|
@@ -9999,12 +9999,12 @@ function Od(e, t, r) {
|
|
|
9999
9999
|
let i = 0;
|
|
10000
10000
|
return n.map((o) => {
|
|
10001
10001
|
var u, l;
|
|
10002
|
-
const a = o.datasets.map((
|
|
10003
|
-
name: `Dataset ${
|
|
10004
|
-
url:
|
|
10005
|
-
})), s = a.length, c = r ? null : ((l = (u = t == null ? void 0 : t.bigRequests) == null ? void 0 : u.slice(i, i + s)) == null ? void 0 : l.map((
|
|
10002
|
+
const a = o.datasets.map((h, f) => ({
|
|
10003
|
+
name: `Dataset ${f + 1}`,
|
|
10004
|
+
url: h.url
|
|
10005
|
+
})), s = a.length, c = r ? null : ((l = (u = t == null ? void 0 : t.bigRequests) == null ? void 0 : u.slice(i, i + s)) == null ? void 0 : l.map((h, f) => ((h == null ? void 0 : h.data) || []).map((m) => ({
|
|
10006
10006
|
...m,
|
|
10007
|
-
datasetName: a[
|
|
10007
|
+
datasetName: a[f].name
|
|
10008
10008
|
})))) || [];
|
|
10009
10009
|
return i += s, {
|
|
10010
10010
|
trackId: o.id,
|
|
@@ -10044,7 +10044,7 @@ function Ld(e, t) {
|
|
|
10044
10044
|
return r.push(..._d(e, t.bigData, t.bigError)), r.push(...Sd(e, t.geneData, t.geneError)), r.push(...Td(e, t.motifData, t.motifError)), r.push(...kd(e, t.importanceData, t.importanceError)), r.push(...Od(e, t.bulkBedData, t.bulkBedError)), r.push(...Dd(e, t.snpData, t.snpError)), r.push(...Cd(e, t.methylCData, t.methylCError)), r;
|
|
10045
10045
|
}
|
|
10046
10046
|
function Md() {
|
|
10047
|
-
const [e, { data: t, loading: r, error: n }] = dt(Mr), [i, { data: o, loading: a, error: s }] = dt(hd), [c, { data: u, loading: l, error:
|
|
10047
|
+
const [e, { data: t, loading: r, error: n }] = dt(Mr), [i, { data: o, loading: a, error: s }] = dt(hd), [c, { data: u, loading: l, error: h }] = dt(fd), [f, { data: p, loading: m, error: y }] = dt(Mr), [v, { data: g, loading: b, error: E }] = dt(Mr), [_, { data: x, loading: O, error: w }] = dt(ze(dd)), [S, { data: D, loading: j, error: C }] = dt(Mr), I = ne((N) => N.tracks), F = ne((N) => N.editTrack), B = Y((N) => N.domain), ce = Y((N) => N.getExpandedDomain), G = Y((N) => N.setDelta), fe = We((N) => N.setDataById), ye = We((N) => N.setLoading), H = We((N) => N.setFetching), T = Y((N) => N.trackWidth), L = Y((N) => N.multiplier), P = z(() => T * L, [T, L]), $ = z(() => r || l || a || m || b || O || j, [r, l, a, m, b, O, j]);
|
|
10048
10048
|
return pe(() => {
|
|
10049
10049
|
if (I.length === 0 || $)
|
|
10050
10050
|
return;
|
|
@@ -10055,7 +10055,7 @@ function Md() {
|
|
|
10055
10055
|
fetchBigData: e,
|
|
10056
10056
|
fetchGene: c,
|
|
10057
10057
|
fetchMotif: i,
|
|
10058
|
-
fetchImportance:
|
|
10058
|
+
fetchImportance: f,
|
|
10059
10059
|
fetchBulkBed: v,
|
|
10060
10060
|
fetchSnps: _,
|
|
10061
10061
|
fetchMethylC: S
|
|
@@ -10073,7 +10073,7 @@ function Md() {
|
|
|
10073
10073
|
snpData: x,
|
|
10074
10074
|
methylCData: D,
|
|
10075
10075
|
bigError: n,
|
|
10076
|
-
geneError:
|
|
10076
|
+
geneError: h,
|
|
10077
10077
|
motifError: s,
|
|
10078
10078
|
importanceError: y,
|
|
10079
10079
|
bulkBedError: E,
|
|
@@ -10092,7 +10092,7 @@ function Md() {
|
|
|
10092
10092
|
x,
|
|
10093
10093
|
D,
|
|
10094
10094
|
n,
|
|
10095
|
-
|
|
10095
|
+
h,
|
|
10096
10096
|
s,
|
|
10097
10097
|
y,
|
|
10098
10098
|
E,
|
|
@@ -10108,10 +10108,10 @@ function Md() {
|
|
|
10108
10108
|
const pa = (e) => {
|
|
10109
10109
|
let t;
|
|
10110
10110
|
const r = /* @__PURE__ */ new Set(), n = (u, l) => {
|
|
10111
|
-
const
|
|
10112
|
-
if (!Object.is(
|
|
10113
|
-
const
|
|
10114
|
-
t = l ?? (typeof
|
|
10111
|
+
const h = typeof u == "function" ? u(t) : u;
|
|
10112
|
+
if (!Object.is(h, t)) {
|
|
10113
|
+
const f = t;
|
|
10114
|
+
t = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((p) => p(t, f));
|
|
10115
10115
|
}
|
|
10116
10116
|
}, i = () => t, s = { setState: n, getState: i, getInitialState: () => c, subscribe: (u) => (r.add(u), () => r.delete(u)) }, c = t = e(n, i, s);
|
|
10117
10117
|
return s;
|
|
@@ -10205,10 +10205,10 @@ function Je({
|
|
|
10205
10205
|
tooltip: n
|
|
10206
10206
|
}) {
|
|
10207
10207
|
const i = Nt((u) => u.showTooltip), o = Nt((u) => u.hideTooltip), a = Be(
|
|
10208
|
-
(u, l,
|
|
10208
|
+
(u, l, h) => {
|
|
10209
10209
|
t && t(u);
|
|
10210
|
-
const
|
|
10211
|
-
i(
|
|
10210
|
+
const f = n ? wi(n, u) : /* @__PURE__ */ d.jsx(Fd, { value: l });
|
|
10211
|
+
i(f, h.clientX, h.clientY);
|
|
10212
10212
|
},
|
|
10213
10213
|
[t, n, i]
|
|
10214
10214
|
), s = Be(
|
|
@@ -10361,13 +10361,13 @@ function Rc({
|
|
|
10361
10361
|
onLeave: c,
|
|
10362
10362
|
tooltip: u
|
|
10363
10363
|
}) {
|
|
10364
|
-
const { totalWidth: l, sideWidth:
|
|
10364
|
+
const { totalWidth: l, sideWidth: h } = i, { x: f, reverseX: p } = St(l), m = z(() => zd(t || [], f), [t, f]), y = De((E) => E.background), { handleClick: v, handleHover: g, handleLeave: b } = Je({
|
|
10365
10365
|
onClick: a,
|
|
10366
10366
|
onHover: s,
|
|
10367
10367
|
onLeave: c,
|
|
10368
10368
|
tooltip: u
|
|
10369
10369
|
});
|
|
10370
|
-
return /* @__PURE__ */ d.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${
|
|
10370
|
+
return /* @__PURE__ */ d.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${h}, 0)`, children: [
|
|
10371
10371
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: y }),
|
|
10372
10372
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: l, height: r }) }),
|
|
10373
10373
|
m.map((E, _) => {
|
|
@@ -10462,13 +10462,13 @@ function Gd(e, t, r, n) {
|
|
|
10462
10462
|
}
|
|
10463
10463
|
function Xd({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o }) {
|
|
10464
10464
|
var j;
|
|
10465
|
-
const { sideWidth: a, viewWidth: s, totalWidth: c } = i, u = (c / s - 1) / 2, l = Y((C) => C.multiplier),
|
|
10465
|
+
const { sideWidth: a, viewWidth: s, totalWidth: c } = i, u = (c / s - 1) / 2, l = Y((C) => C.multiplier), h = ne((C) => C.editTrack), f = Y((C) => C.delta), p = Y((C) => C.marginWidth), m = Y((C) => C.svgRef), y = z(() => {
|
|
10466
10466
|
const I = ((t == null ? void 0 : t.length) ?? 0) / l, F = Math.floor(u * I), B = Math.floor((u + 1) * I), ce = t == null ? void 0 : t.slice(F, B);
|
|
10467
10467
|
return Mc(ce ?? []);
|
|
10468
10468
|
}, [t, l, u]);
|
|
10469
10469
|
pe(() => {
|
|
10470
|
-
|
|
10471
|
-
}, [y, e,
|
|
10470
|
+
h(e, { range: y });
|
|
10471
|
+
}, [y, e, h]);
|
|
10472
10472
|
const v = z(() => t.some((C) => C.min < 0), [t]), g = z(
|
|
10473
10473
|
() => Qd(t),
|
|
10474
10474
|
// data && data.length && dataType(data) === DataType.ValuedPoint ?
|
|
@@ -10492,7 +10492,7 @@ function Xd({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o })
|
|
|
10492
10492
|
return /* @__PURE__ */ d.jsxs("g", { width: c, height: n, transform: `translate(-${a}, 0)`, children: [
|
|
10493
10493
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("linearGradient", { id: e, children: b.map((C, I) => /* @__PURE__ */ d.jsx("stop", { offset: `${I}%`, stopColor: C }, `${e}_pt_${I}`)) }) }),
|
|
10494
10494
|
/* @__PURE__ */ d.jsx("rect", { width: c, x: 0, y: n / 3, height: n / 3, fill: `url('#${e}')` }),
|
|
10495
|
-
!
|
|
10495
|
+
!f && w && /* @__PURE__ */ d.jsx("line", { stroke: E, x1: w, x2: w, y1: 0, y2: n }),
|
|
10496
10496
|
/* @__PURE__ */ d.jsx(
|
|
10497
10497
|
"rect",
|
|
10498
10498
|
{
|
|
@@ -10531,7 +10531,7 @@ var ga;
|
|
|
10531
10531
|
function Jd() {
|
|
10532
10532
|
if (ga) return oe;
|
|
10533
10533
|
ga = 1;
|
|
10534
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112,
|
|
10534
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
10535
10535
|
function E(x) {
|
|
10536
10536
|
if (typeof x == "object" && x !== null) {
|
|
10537
10537
|
var O = x.$$typeof;
|
|
@@ -10543,7 +10543,7 @@ function Jd() {
|
|
|
10543
10543
|
case n:
|
|
10544
10544
|
case o:
|
|
10545
10545
|
case i:
|
|
10546
|
-
case
|
|
10546
|
+
case h:
|
|
10547
10547
|
return x;
|
|
10548
10548
|
default:
|
|
10549
10549
|
switch (x = x && x.$$typeof, x) {
|
|
@@ -10565,7 +10565,7 @@ function Jd() {
|
|
|
10565
10565
|
function _(x) {
|
|
10566
10566
|
return E(x) === u;
|
|
10567
10567
|
}
|
|
10568
|
-
return oe.AsyncMode = c, oe.ConcurrentMode = u, oe.ContextConsumer = s, oe.ContextProvider = a, oe.Element = t, oe.ForwardRef = l, oe.Fragment = n, oe.Lazy = m, oe.Memo = p, oe.Portal = r, oe.Profiler = o, oe.StrictMode = i, oe.Suspense =
|
|
10568
|
+
return oe.AsyncMode = c, oe.ConcurrentMode = u, oe.ContextConsumer = s, oe.ContextProvider = a, oe.Element = t, oe.ForwardRef = l, oe.Fragment = n, oe.Lazy = m, oe.Memo = p, oe.Portal = r, oe.Profiler = o, oe.StrictMode = i, oe.Suspense = h, oe.isAsyncMode = function(x) {
|
|
10569
10569
|
return _(x) || E(x) === c;
|
|
10570
10570
|
}, oe.isConcurrentMode = _, oe.isContextConsumer = function(x) {
|
|
10571
10571
|
return E(x) === s;
|
|
@@ -10588,9 +10588,9 @@ function Jd() {
|
|
|
10588
10588
|
}, oe.isStrictMode = function(x) {
|
|
10589
10589
|
return E(x) === i;
|
|
10590
10590
|
}, oe.isSuspense = function(x) {
|
|
10591
|
-
return E(x) ===
|
|
10591
|
+
return E(x) === h;
|
|
10592
10592
|
}, oe.isValidElementType = function(x) {
|
|
10593
|
-
return typeof x == "string" || typeof x == "function" || x === n || x === u || x === o || x === i || x ===
|
|
10593
|
+
return typeof x == "string" || typeof x == "function" || x === n || x === u || x === o || x === i || x === h || x === f || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === p || x.$$typeof === a || x.$$typeof === s || x.$$typeof === l || x.$$typeof === v || x.$$typeof === g || x.$$typeof === b || x.$$typeof === y);
|
|
10594
10594
|
}, oe.typeOf = E, oe;
|
|
10595
10595
|
}
|
|
10596
10596
|
var ae = {};
|
|
@@ -10605,10 +10605,10 @@ var ae = {};
|
|
|
10605
10605
|
var ya;
|
|
10606
10606
|
function Kd() {
|
|
10607
10607
|
return ya || (ya = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
10608
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112,
|
|
10608
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
10609
10609
|
function E(q) {
|
|
10610
10610
|
return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10611
|
-
q === n || q === u || q === o || q === i || q ===
|
|
10611
|
+
q === n || q === u || q === o || q === i || q === h || q === f || typeof q == "object" && q !== null && (q.$$typeof === m || q.$$typeof === p || q.$$typeof === a || q.$$typeof === s || q.$$typeof === l || q.$$typeof === v || q.$$typeof === g || q.$$typeof === b || q.$$typeof === y);
|
|
10612
10612
|
}
|
|
10613
10613
|
function _(q) {
|
|
10614
10614
|
if (typeof q == "object" && q !== null) {
|
|
@@ -10622,7 +10622,7 @@ function Kd() {
|
|
|
10622
10622
|
case n:
|
|
10623
10623
|
case o:
|
|
10624
10624
|
case i:
|
|
10625
|
-
case
|
|
10625
|
+
case h:
|
|
10626
10626
|
return Tr;
|
|
10627
10627
|
default:
|
|
10628
10628
|
var oo = Tr && Tr.$$typeof;
|
|
@@ -10642,7 +10642,7 @@ function Kd() {
|
|
|
10642
10642
|
}
|
|
10643
10643
|
}
|
|
10644
10644
|
}
|
|
10645
|
-
var x = c, O = u, w = s, S = a, D = t, j = l, C = n, I = m, F = p, B = r, ce = o, G = i, fe =
|
|
10645
|
+
var x = c, O = u, w = s, S = a, D = t, j = l, C = n, I = m, F = p, B = r, ce = o, G = i, fe = h, ye = !1;
|
|
10646
10646
|
function H(q) {
|
|
10647
10647
|
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(q) || _(q) === c;
|
|
10648
10648
|
}
|
|
@@ -10680,7 +10680,7 @@ function Kd() {
|
|
|
10680
10680
|
return _(q) === i;
|
|
10681
10681
|
}
|
|
10682
10682
|
function Le(q) {
|
|
10683
|
-
return _(q) ===
|
|
10683
|
+
return _(q) === h;
|
|
10684
10684
|
}
|
|
10685
10685
|
ae.AsyncMode = x, ae.ConcurrentMode = O, ae.ContextConsumer = w, ae.ContextProvider = S, ae.Element = D, ae.ForwardRef = j, ae.Fragment = C, ae.Lazy = I, ae.Memo = F, ae.Portal = B, ae.Profiler = ce, ae.StrictMode = G, ae.Suspense = fe, ae.isAsyncMode = H, ae.isConcurrentMode = T, ae.isContextConsumer = L, ae.isContextProvider = P, ae.isElement = $, ae.isForwardRef = N, ae.isFragment = Q, ae.isLazy = X, ae.isMemo = J, ae.isPortal = U, ae.isProfiler = Z, ae.isStrictMode = ee, ae.isSuspense = Le, ae.isValidElementType = E, ae.typeOf = _;
|
|
10686
10686
|
})()), ae;
|
|
@@ -10729,12 +10729,12 @@ function Zd() {
|
|
|
10729
10729
|
return Rn = i() ? Object.assign : function(o, a) {
|
|
10730
10730
|
for (var s, c = n(o), u, l = 1; l < arguments.length; l++) {
|
|
10731
10731
|
s = Object(arguments[l]);
|
|
10732
|
-
for (var
|
|
10733
|
-
t.call(s,
|
|
10732
|
+
for (var h in s)
|
|
10733
|
+
t.call(s, h) && (c[h] = s[h]);
|
|
10734
10734
|
if (e) {
|
|
10735
10735
|
u = e(s);
|
|
10736
|
-
for (var
|
|
10737
|
-
r.call(s, u[
|
|
10736
|
+
for (var f = 0; f < u.length; f++)
|
|
10737
|
+
r.call(s, u[f]) && (c[u[f]] = s[u[f]]);
|
|
10738
10738
|
}
|
|
10739
10739
|
}
|
|
10740
10740
|
return c;
|
|
@@ -10772,25 +10772,25 @@ function e0() {
|
|
|
10772
10772
|
if (process.env.NODE_ENV !== "production") {
|
|
10773
10773
|
for (var l in o)
|
|
10774
10774
|
if (n(o, l)) {
|
|
10775
|
-
var
|
|
10775
|
+
var h;
|
|
10776
10776
|
try {
|
|
10777
10777
|
if (typeof o[l] != "function") {
|
|
10778
|
-
var
|
|
10778
|
+
var f = Error(
|
|
10779
10779
|
(c || "React class") + ": " + s + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
10780
10780
|
);
|
|
10781
|
-
throw
|
|
10781
|
+
throw f.name = "Invariant Violation", f;
|
|
10782
10782
|
}
|
|
10783
|
-
|
|
10783
|
+
h = o[l](a, l, c, s, null, t);
|
|
10784
10784
|
} catch (m) {
|
|
10785
|
-
|
|
10785
|
+
h = m;
|
|
10786
10786
|
}
|
|
10787
|
-
if (
|
|
10788
|
-
(c || "React class") + ": type specification of " + s + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
10789
|
-
),
|
|
10790
|
-
r[
|
|
10787
|
+
if (h && !(h instanceof Error) && e(
|
|
10788
|
+
(c || "React class") + ": type specification of " + s + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
10789
|
+
), h instanceof Error && !(h.message in r)) {
|
|
10790
|
+
r[h.message] = !0;
|
|
10791
10791
|
var p = u ? u() : "";
|
|
10792
10792
|
e(
|
|
10793
|
-
"Failed " + s + " type: " +
|
|
10793
|
+
"Failed " + s + " type: " + h.message + (p ?? "")
|
|
10794
10794
|
);
|
|
10795
10795
|
}
|
|
10796
10796
|
}
|
|
@@ -10819,12 +10819,12 @@ function t0() {
|
|
|
10819
10819
|
}
|
|
10820
10820
|
return An = function(s, c) {
|
|
10821
10821
|
var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
10822
|
-
function
|
|
10822
|
+
function h(T) {
|
|
10823
10823
|
var L = T && (u && T[u] || T[l]);
|
|
10824
10824
|
if (typeof L == "function")
|
|
10825
10825
|
return L;
|
|
10826
10826
|
}
|
|
10827
|
-
var
|
|
10827
|
+
var f = "<<anonymous>>", p = {
|
|
10828
10828
|
array: g("array"),
|
|
10829
10829
|
bigint: g("bigint"),
|
|
10830
10830
|
bool: g("boolean"),
|
|
@@ -10856,7 +10856,7 @@ function t0() {
|
|
|
10856
10856
|
if (process.env.NODE_ENV !== "production")
|
|
10857
10857
|
var L = {}, P = 0;
|
|
10858
10858
|
function $(Q, X, J, U, Z, ee, Le) {
|
|
10859
|
-
if (U = U ||
|
|
10859
|
+
if (U = U || f, ee = ee || J, Le !== r) {
|
|
10860
10860
|
if (c) {
|
|
10861
10861
|
var q = new Error(
|
|
10862
10862
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -10935,7 +10935,7 @@ function t0() {
|
|
|
10935
10935
|
function O(T) {
|
|
10936
10936
|
function L(P, $, N, Q, X) {
|
|
10937
10937
|
if (!(P[$] instanceof T)) {
|
|
10938
|
-
var J = T.name ||
|
|
10938
|
+
var J = T.name || f, U = H(P[$]);
|
|
10939
10939
|
return new y("Invalid " + Q + " `" + X + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected ") + ("instance of `" + J + "`."));
|
|
10940
10940
|
}
|
|
10941
10941
|
return null;
|
|
@@ -11062,7 +11062,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
11062
11062
|
return T.every(B);
|
|
11063
11063
|
if (T === null || s(T))
|
|
11064
11064
|
return !0;
|
|
11065
|
-
var L =
|
|
11065
|
+
var L = h(T);
|
|
11066
11066
|
if (L) {
|
|
11067
11067
|
var P = L.call(T), $;
|
|
11068
11068
|
if (L !== T.entries) {
|
|
@@ -11116,7 +11116,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
11116
11116
|
}
|
|
11117
11117
|
}
|
|
11118
11118
|
function H(T) {
|
|
11119
|
-
return !T.constructor || !T.constructor.name ?
|
|
11119
|
+
return !T.constructor || !T.constructor.name ? f : T.constructor.name;
|
|
11120
11120
|
}
|
|
11121
11121
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
11122
11122
|
}, An;
|
|
@@ -11131,12 +11131,12 @@ function r0() {
|
|
|
11131
11131
|
function r() {
|
|
11132
11132
|
}
|
|
11133
11133
|
return r.resetWarningCache = t, Fn = function() {
|
|
11134
|
-
function n(a, s, c, u, l,
|
|
11135
|
-
if (
|
|
11136
|
-
var
|
|
11134
|
+
function n(a, s, c, u, l, h) {
|
|
11135
|
+
if (h !== e) {
|
|
11136
|
+
var f = new Error(
|
|
11137
11137
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
11138
11138
|
);
|
|
11139
|
-
throw
|
|
11139
|
+
throw f.name = "Invariant Violation", f;
|
|
11140
11140
|
}
|
|
11141
11141
|
}
|
|
11142
11142
|
n.isRequired = n;
|
|
@@ -11259,7 +11259,7 @@ function Ji() {
|
|
|
11259
11259
|
if (La) return be;
|
|
11260
11260
|
La = 1, Object.defineProperty(be, "__esModule", {
|
|
11261
11261
|
value: !0
|
|
11262
|
-
}), be.addClassName = x, be.addEvent = a, be.addUserSelectStyles = b, be.createCSSTransform = p, be.createSVGTransform = m, be.getTouch = v, be.getTouchIdentifier = g, be.getTranslation = y, be.innerHeight = l, be.innerWidth =
|
|
11262
|
+
}), be.addClassName = x, be.addEvent = a, be.addUserSelectStyles = b, be.createCSSTransform = p, be.createSVGTransform = m, be.getTouch = v, be.getTouchIdentifier = g, be.getTranslation = y, be.innerHeight = l, be.innerWidth = h, be.matchesSelector = i, be.matchesSelectorAndParentsTo = o, be.offsetXYFromParent = f, be.outerHeight = c, be.outerWidth = u, be.removeClassName = O, be.removeEvent = s, be.scheduleRemoveUserSelectStyles = E;
|
|
11263
11263
|
var e = fn(), t = r(i0());
|
|
11264
11264
|
function r(w, S) {
|
|
11265
11265
|
if (typeof WeakMap == "function") var D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap();
|
|
@@ -11321,12 +11321,12 @@ function Ji() {
|
|
|
11321
11321
|
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11322
11322
|
return S -= (0, e.int)(D.paddingTop), S -= (0, e.int)(D.paddingBottom), S;
|
|
11323
11323
|
}
|
|
11324
|
-
function
|
|
11324
|
+
function h(w) {
|
|
11325
11325
|
let S = w.clientWidth;
|
|
11326
11326
|
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11327
11327
|
return S -= (0, e.int)(D.paddingLeft), S -= (0, e.int)(D.paddingRight), S;
|
|
11328
11328
|
}
|
|
11329
|
-
function
|
|
11329
|
+
function f(w, S, D) {
|
|
11330
11330
|
const C = S === S.ownerDocument.body ? {
|
|
11331
11331
|
left: 0,
|
|
11332
11332
|
top: 0
|
|
@@ -11402,13 +11402,13 @@ function Fc() {
|
|
|
11402
11402
|
value: !0
|
|
11403
11403
|
}), $e.canDragX = i, $e.canDragY = o, $e.createCoreData = s, $e.createDraggableData = c, $e.getBoundPosition = r, $e.getControlPosition = a, $e.snapToGrid = n;
|
|
11404
11404
|
var e = fn(), t = Ji();
|
|
11405
|
-
function r(
|
|
11406
|
-
if (!
|
|
11405
|
+
function r(h, f, p) {
|
|
11406
|
+
if (!h.props.bounds) return [f, p];
|
|
11407
11407
|
let {
|
|
11408
11408
|
bounds: m
|
|
11409
|
-
} =
|
|
11409
|
+
} = h.props;
|
|
11410
11410
|
m = typeof m == "string" ? m : u(m);
|
|
11411
|
-
const y = l(
|
|
11411
|
+
const y = l(h);
|
|
11412
11412
|
if (typeof m == "string") {
|
|
11413
11413
|
const {
|
|
11414
11414
|
ownerDocument: v
|
|
@@ -11424,69 +11424,69 @@ function Fc() {
|
|
|
11424
11424
|
bottom: (0, t.innerHeight)(E) - (0, t.outerHeight)(y) - y.offsetTop + (0, e.int)(x.paddingBottom) - (0, e.int)(_.marginBottom)
|
|
11425
11425
|
};
|
|
11426
11426
|
}
|
|
11427
|
-
return (0, e.isNum)(m.right) && (
|
|
11427
|
+
return (0, e.isNum)(m.right) && (f = Math.min(f, m.right)), (0, e.isNum)(m.bottom) && (p = Math.min(p, m.bottom)), (0, e.isNum)(m.left) && (f = Math.max(f, m.left)), (0, e.isNum)(m.top) && (p = Math.max(p, m.top)), [f, p];
|
|
11428
11428
|
}
|
|
11429
|
-
function n(
|
|
11430
|
-
const m = Math.round(
|
|
11429
|
+
function n(h, f, p) {
|
|
11430
|
+
const m = Math.round(f / h[0]) * h[0], y = Math.round(p / h[1]) * h[1];
|
|
11431
11431
|
return [m, y];
|
|
11432
11432
|
}
|
|
11433
|
-
function i(
|
|
11434
|
-
return
|
|
11433
|
+
function i(h) {
|
|
11434
|
+
return h.props.axis === "both" || h.props.axis === "x";
|
|
11435
11435
|
}
|
|
11436
|
-
function o(
|
|
11437
|
-
return
|
|
11436
|
+
function o(h) {
|
|
11437
|
+
return h.props.axis === "both" || h.props.axis === "y";
|
|
11438
11438
|
}
|
|
11439
|
-
function a(
|
|
11440
|
-
const m = typeof
|
|
11441
|
-
if (typeof
|
|
11439
|
+
function a(h, f, p) {
|
|
11440
|
+
const m = typeof f == "number" ? (0, t.getTouch)(h, f) : null;
|
|
11441
|
+
if (typeof f == "number" && !m) return null;
|
|
11442
11442
|
const y = l(p), v = p.props.offsetParent || y.offsetParent || y.ownerDocument.body;
|
|
11443
|
-
return (0, t.offsetXYFromParent)(m ||
|
|
11443
|
+
return (0, t.offsetXYFromParent)(m || h, v, p.props.scale);
|
|
11444
11444
|
}
|
|
11445
|
-
function s(
|
|
11446
|
-
const m = !(0, e.isNum)(
|
|
11445
|
+
function s(h, f, p) {
|
|
11446
|
+
const m = !(0, e.isNum)(h.lastX), y = l(h);
|
|
11447
11447
|
return m ? {
|
|
11448
11448
|
node: y,
|
|
11449
11449
|
deltaX: 0,
|
|
11450
11450
|
deltaY: 0,
|
|
11451
|
-
lastX:
|
|
11451
|
+
lastX: f,
|
|
11452
11452
|
lastY: p,
|
|
11453
|
-
x:
|
|
11453
|
+
x: f,
|
|
11454
11454
|
y: p
|
|
11455
11455
|
} : {
|
|
11456
11456
|
node: y,
|
|
11457
|
-
deltaX:
|
|
11458
|
-
deltaY: p -
|
|
11459
|
-
lastX:
|
|
11460
|
-
lastY:
|
|
11461
|
-
x:
|
|
11457
|
+
deltaX: f - h.lastX,
|
|
11458
|
+
deltaY: p - h.lastY,
|
|
11459
|
+
lastX: h.lastX,
|
|
11460
|
+
lastY: h.lastY,
|
|
11461
|
+
x: f,
|
|
11462
11462
|
y: p
|
|
11463
11463
|
};
|
|
11464
11464
|
}
|
|
11465
|
-
function c(
|
|
11466
|
-
const p =
|
|
11465
|
+
function c(h, f) {
|
|
11466
|
+
const p = h.props.scale;
|
|
11467
11467
|
return {
|
|
11468
|
-
node:
|
|
11469
|
-
x:
|
|
11470
|
-
y:
|
|
11471
|
-
deltaX:
|
|
11472
|
-
deltaY:
|
|
11473
|
-
lastX:
|
|
11474
|
-
lastY:
|
|
11468
|
+
node: f.node,
|
|
11469
|
+
x: h.state.x + f.deltaX / p,
|
|
11470
|
+
y: h.state.y + f.deltaY / p,
|
|
11471
|
+
deltaX: f.deltaX / p,
|
|
11472
|
+
deltaY: f.deltaY / p,
|
|
11473
|
+
lastX: h.state.x,
|
|
11474
|
+
lastY: h.state.y
|
|
11475
11475
|
};
|
|
11476
11476
|
}
|
|
11477
|
-
function u(
|
|
11477
|
+
function u(h) {
|
|
11478
11478
|
return {
|
|
11479
|
-
left:
|
|
11480
|
-
top:
|
|
11481
|
-
right:
|
|
11482
|
-
bottom:
|
|
11479
|
+
left: h.left,
|
|
11480
|
+
top: h.top,
|
|
11481
|
+
right: h.right,
|
|
11482
|
+
bottom: h.bottom
|
|
11483
11483
|
};
|
|
11484
11484
|
}
|
|
11485
|
-
function l(
|
|
11486
|
-
const
|
|
11487
|
-
if (!
|
|
11485
|
+
function l(h) {
|
|
11486
|
+
const f = h.findDOMNode();
|
|
11487
|
+
if (!f)
|
|
11488
11488
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
11489
|
-
return
|
|
11489
|
+
return f;
|
|
11490
11490
|
}
|
|
11491
11491
|
return $e;
|
|
11492
11492
|
}
|
|
@@ -11528,10 +11528,10 @@ function o0() {
|
|
|
11528
11528
|
return (v = l(v)) in y ? Object.defineProperty(y, v, { value: g, enumerable: !0, configurable: !0, writable: !0 }) : y[v] = g, y;
|
|
11529
11529
|
}
|
|
11530
11530
|
function l(y) {
|
|
11531
|
-
var v =
|
|
11531
|
+
var v = h(y, "string");
|
|
11532
11532
|
return typeof v == "symbol" ? v : v + "";
|
|
11533
11533
|
}
|
|
11534
|
-
function
|
|
11534
|
+
function h(y, v) {
|
|
11535
11535
|
if (typeof y != "object" || !y) return y;
|
|
11536
11536
|
var g = y[Symbol.toPrimitive];
|
|
11537
11537
|
if (g !== void 0) {
|
|
@@ -11541,7 +11541,7 @@ function o0() {
|
|
|
11541
11541
|
}
|
|
11542
11542
|
return (v === "string" ? String : Number)(y);
|
|
11543
11543
|
}
|
|
11544
|
-
const
|
|
11544
|
+
const f = {
|
|
11545
11545
|
touch: {
|
|
11546
11546
|
start: "touchstart",
|
|
11547
11547
|
move: "touchmove",
|
|
@@ -11553,7 +11553,7 @@ function o0() {
|
|
|
11553
11553
|
stop: "mouseup"
|
|
11554
11554
|
}
|
|
11555
11555
|
};
|
|
11556
|
-
let p =
|
|
11556
|
+
let p = f.mouse, m = class extends e.Component {
|
|
11557
11557
|
constructor() {
|
|
11558
11558
|
super(...arguments), u(this, "dragging", !1), u(this, "lastX", NaN), u(this, "lastY", NaN), u(this, "touchIdentifier", null), u(this, "mounted", !1), u(this, "handleDragStart", (v) => {
|
|
11559
11559
|
if (this.props.onMouseDown(v), !this.props.allowAnyClick && typeof v.button == "number" && v.button !== 0) return !1;
|
|
@@ -11614,12 +11614,12 @@ function o0() {
|
|
|
11614
11614
|
if (this.props.onStop(v, _) === !1 || this.mounted === !1) return !1;
|
|
11615
11615
|
const O = this.findDOMNode();
|
|
11616
11616
|
O && this.props.enableUserSelectHack && (0, n.scheduleRemoveUserSelectStyles)(O.ownerDocument), (0, a.default)("DraggableCore: handleDragStop: %j", _), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, O && ((0, a.default)("DraggableCore: Removing handlers"), (0, n.removeEvent)(O.ownerDocument, p.move, this.handleDrag), (0, n.removeEvent)(O.ownerDocument, p.stop, this.handleDragStop));
|
|
11617
|
-
}), u(this, "onMouseDown", (v) => (p =
|
|
11617
|
+
}), u(this, "onMouseDown", (v) => (p = f.mouse, this.handleDragStart(v))), u(this, "onMouseUp", (v) => (p = f.mouse, this.handleDragStop(v))), u(this, "onTouchStart", (v) => (p = f.touch, this.handleDragStart(v))), u(this, "onTouchEnd", (v) => (p = f.touch, this.handleDragStop(v)));
|
|
11618
11618
|
}
|
|
11619
11619
|
componentDidMount() {
|
|
11620
11620
|
this.mounted = !0;
|
|
11621
11621
|
const v = this.findDOMNode();
|
|
11622
|
-
v && (0, n.addEvent)(v,
|
|
11622
|
+
v && (0, n.addEvent)(v, f.touch.start, this.onTouchStart, {
|
|
11623
11623
|
passive: !1
|
|
11624
11624
|
});
|
|
11625
11625
|
}
|
|
@@ -11630,7 +11630,7 @@ function o0() {
|
|
|
11630
11630
|
const {
|
|
11631
11631
|
ownerDocument: g
|
|
11632
11632
|
} = v;
|
|
11633
|
-
(0, n.removeEvent)(g,
|
|
11633
|
+
(0, n.removeEvent)(g, f.mouse.move, this.handleDrag), (0, n.removeEvent)(g, f.touch.move, this.handleDrag), (0, n.removeEvent)(g, f.mouse.stop, this.handleDragStop), (0, n.removeEvent)(g, f.touch.stop, this.handleDragStop), (0, n.removeEvent)(v, f.touch.start, this.onTouchStart, {
|
|
11634
11634
|
passive: !1
|
|
11635
11635
|
}), this.props.enableUserSelectHack && (0, n.scheduleRemoveUserSelectStyles)(g);
|
|
11636
11636
|
}
|
|
@@ -11812,13 +11812,13 @@ function a0() {
|
|
|
11812
11812
|
return c.default;
|
|
11813
11813
|
}
|
|
11814
11814
|
}), e.default = void 0;
|
|
11815
|
-
var t =
|
|
11815
|
+
var t = h(de), r = l(/* @__PURE__ */ Ac()), n = l(Ka), i = n0(), o = Ji(), a = Fc(), s = fn(), c = l(o0()), u = l(qc());
|
|
11816
11816
|
function l(g) {
|
|
11817
11817
|
return g && g.__esModule ? g : { default: g };
|
|
11818
11818
|
}
|
|
11819
|
-
function
|
|
11819
|
+
function h(g, b) {
|
|
11820
11820
|
if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
11821
|
-
return (
|
|
11821
|
+
return (h = function(x, O) {
|
|
11822
11822
|
if (!O && x && x.__esModule) return x;
|
|
11823
11823
|
var w, S, D = { __proto__: null, default: x };
|
|
11824
11824
|
if (x === null || typeof x != "object" && typeof x != "function") return D;
|
|
@@ -11830,14 +11830,14 @@ function a0() {
|
|
|
11830
11830
|
return D;
|
|
11831
11831
|
})(g, b);
|
|
11832
11832
|
}
|
|
11833
|
-
function
|
|
11834
|
-
return
|
|
11833
|
+
function f() {
|
|
11834
|
+
return f = Object.assign ? Object.assign.bind() : function(g) {
|
|
11835
11835
|
for (var b = 1; b < arguments.length; b++) {
|
|
11836
11836
|
var E = arguments[b];
|
|
11837
11837
|
for (var _ in E) ({}).hasOwnProperty.call(E, _) && (g[_] = E[_]);
|
|
11838
11838
|
}
|
|
11839
11839
|
return g;
|
|
11840
|
-
},
|
|
11840
|
+
}, f.apply(null, arguments);
|
|
11841
11841
|
}
|
|
11842
11842
|
function p(g, b, E) {
|
|
11843
11843
|
return (b = m(b)) in g ? Object.defineProperty(g, b, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : g[b] = E, g;
|
|
@@ -11979,7 +11979,7 @@ function a0() {
|
|
|
11979
11979
|
[w]: this.state.dragging,
|
|
11980
11980
|
[S]: this.state.dragged
|
|
11981
11981
|
});
|
|
11982
|
-
return /* @__PURE__ */ t.createElement(c.default,
|
|
11982
|
+
return /* @__PURE__ */ t.createElement(c.default, f({}, I, {
|
|
11983
11983
|
onStart: this.onDragStart,
|
|
11984
11984
|
onDrag: this.onDrag,
|
|
11985
11985
|
onStop: this.onDragStop
|
|
@@ -12140,9 +12140,9 @@ function Vc({ children: e, id: t }) {
|
|
|
12140
12140
|
pe(() => {
|
|
12141
12141
|
r || o({ x: s, y: 0 });
|
|
12142
12142
|
}, [s, r]);
|
|
12143
|
-
const
|
|
12143
|
+
const h = (y, v) => {
|
|
12144
12144
|
y.preventDefault(), n(!0), c(s + v.deltaX);
|
|
12145
|
-
},
|
|
12145
|
+
}, f = () => {
|
|
12146
12146
|
if (n(!1), Math.abs(s) < 10) {
|
|
12147
12147
|
c(0);
|
|
12148
12148
|
return;
|
|
@@ -12158,8 +12158,8 @@ function Vc({ children: e, id: t }) {
|
|
|
12158
12158
|
position: i,
|
|
12159
12159
|
axis: "x",
|
|
12160
12160
|
onStart: m,
|
|
12161
|
-
onDrag: (y, v) =>
|
|
12162
|
-
onStop:
|
|
12161
|
+
onDrag: (y, v) => h(y, v),
|
|
12162
|
+
onStop: f,
|
|
12163
12163
|
children: /* @__PURE__ */ d.jsx("g", { id: `drag-track-${t}`, ref: a, height: "100%", style: { cursor: p }, children: e })
|
|
12164
12164
|
}
|
|
12165
12165
|
);
|
|
@@ -12276,9 +12276,9 @@ function h0({
|
|
|
12276
12276
|
onLeave: a,
|
|
12277
12277
|
verticalMargin: s
|
|
12278
12278
|
}) {
|
|
12279
|
-
const c = Y((j) => j.marginWidth), u = 10, l = sr((j) => j.showModal),
|
|
12280
|
-
if (j.stopPropagation(),
|
|
12281
|
-
const C =
|
|
12279
|
+
const c = Y((j) => j.marginWidth), u = 10, l = sr((j) => j.showModal), h = Te(null), f = ne((j) => j.getTrackIndex), p = ne((j) => j.tracks.length), m = ne((j) => j.shiftTracks), y = f(t), v = y > 0, g = y < p - 1, b = (j) => {
|
|
12280
|
+
if (j.stopPropagation(), h.current) {
|
|
12281
|
+
const C = h.current.getBoundingClientRect(), I = {
|
|
12282
12282
|
x: C.left,
|
|
12283
12283
|
y: C.top - 100
|
|
12284
12284
|
};
|
|
@@ -12319,7 +12319,7 @@ function h0({
|
|
|
12319
12319
|
/* @__PURE__ */ d.jsx("rect", { x: 0, y: 0, width: c / 15, height: r, stroke: "#000000", strokeWidth: 0.5, fill: n }),
|
|
12320
12320
|
/* @__PURE__ */ d.jsx("text", { fill: D, fontSize: `${u}px`, y: r / 2, x: c / 10, alignmentBaseline: "middle", children: e }),
|
|
12321
12321
|
/* @__PURE__ */ d.jsxs("g", { id: `margin-buttons-${t}`, children: [
|
|
12322
|
-
t !== "ruler" && /* @__PURE__ */ d.jsxs("g", { ref:
|
|
12322
|
+
t !== "ruler" && /* @__PURE__ */ d.jsxs("g", { ref: h, onClick: b, style: { cursor: "pointer" }, children: [
|
|
12323
12323
|
/* @__PURE__ */ d.jsx(u0, { x: c / 10, y: r / 2 + 2, height: 15, width: 15, fill: D }),
|
|
12324
12324
|
/* @__PURE__ */ d.jsx("circle", { cx: c / 10 + 7.5, cy: r / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" })
|
|
12325
12325
|
] }),
|
|
@@ -12384,13 +12384,13 @@ function Pa({
|
|
|
12384
12384
|
}
|
|
12385
12385
|
const xe = 80;
|
|
12386
12386
|
function d0() {
|
|
12387
|
-
const e = Y((
|
|
12387
|
+
const e = Y((h) => h.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = Y((h) => h.getExpandedDomain), i = Y((h) => h.getDomain), [o, a] = le(n()), s = We((h) => h.fetching), { x: c } = St(r);
|
|
12388
12388
|
pe(() => {
|
|
12389
12389
|
s || a(n());
|
|
12390
12390
|
}, [s, n]);
|
|
12391
|
-
const u = De((
|
|
12391
|
+
const u = De((h) => h.text);
|
|
12392
12392
|
return z(() => {
|
|
12393
|
-
const
|
|
12393
|
+
const h = o.end - o.start, p = Math.pow(10, Math.floor(Math.log10(Math.ceil(h / 20)))) * 6, m = i(), y = (Math.ceil(m.end / p) - Math.ceil(m.start / p)) * p / 2, v = { start: m.start + y / 2, end: m.end - y / 2 }, g = [];
|
|
12394
12394
|
for (let b = Math.ceil(o.start / p); b < Math.ceil(o.end / p); ++b)
|
|
12395
12395
|
g.push(
|
|
12396
12396
|
/* @__PURE__ */ d.jsxs("g", { children: [
|
|
@@ -12491,12 +12491,12 @@ function m0({
|
|
|
12491
12491
|
children: t,
|
|
12492
12492
|
setSwapping: r
|
|
12493
12493
|
}) {
|
|
12494
|
-
const [n, i] = le({ x: 0, y: 0 }), [o, a] = le(!1), [s, c] = le(0), u = Te(null), l = Ki(),
|
|
12494
|
+
const [n, i] = le({ x: 0, y: 0 }), [o, a] = le(!1), [s, c] = le(0), u = Te(null), l = Ki(), h = ne((b) => b.shiftTracks), f = ne((b) => b.getDistances), p = ne((b) => b.getTrackIndex), m = ne((b) => b.getPrevHeights(e)), y = (b, E) => {
|
|
12495
12495
|
b.preventDefault(), a(!0), r(!0), i({ x: 0, y: E.y }), c(E.y);
|
|
12496
12496
|
}, v = () => {
|
|
12497
12497
|
if (i({ x: 0, y: 0 }), a(!1), r(!1), Math.abs(s) <= 5) return;
|
|
12498
|
-
const b =
|
|
12499
|
-
E !== _ && (
|
|
12498
|
+
const b = f(e), E = b.reduce((x, O, w) => Math.abs(O - s) < Math.abs(b[x] - s) ? w : x, 0), _ = p(e);
|
|
12499
|
+
E !== _ && (h(e, E), c(0));
|
|
12500
12500
|
}, g = e === "ruler" ? () => !1 : () => {
|
|
12501
12501
|
};
|
|
12502
12502
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -12570,13 +12570,13 @@ function w0({
|
|
|
12570
12570
|
] });
|
|
12571
12571
|
}
|
|
12572
12572
|
function $c({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
12573
|
-
const [o, a] = le(!1), [s, c] = le(!1), u = Y((C) => C.marginWidth), l = Y((C) => C.browserWidth),
|
|
12573
|
+
const [o, a] = le(!1), [s, c] = le(!1), u = Y((C) => C.marginWidth), l = Y((C) => C.browserWidth), h = z(() => l - u, [l, u]), f = ne((C) => C.getDimensions), p = ne((C) => C.createShortLabel), m = ne((C) => {
|
|
12574
12574
|
var I;
|
|
12575
12575
|
return (I = C.getTrack(r)) == null ? void 0 : I.color;
|
|
12576
12576
|
}) || "", y = ne((C) => {
|
|
12577
12577
|
var I;
|
|
12578
12578
|
return (I = C.getTrack(r)) == null ? void 0 : I.title;
|
|
12579
|
-
}) || "", { trackMargin: v, titleSize: g, totalVerticalMargin: b, wrapperHeight: E } =
|
|
12579
|
+
}) || "", { trackMargin: v, titleSize: g, totalVerticalMargin: b, wrapperHeight: E } = f(r), _ = p(r), x = E / 3, O = Dt((C) => C.setContextMenu), w = De((C) => C.text), S = De((C) => C.background), D = Be(() => {
|
|
12580
12580
|
c(!0);
|
|
12581
12581
|
}, []), j = Be(() => {
|
|
12582
12582
|
c(!1);
|
|
@@ -12586,14 +12586,14 @@ function $c({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12586
12586
|
n && !i && /* @__PURE__ */ d.jsx(
|
|
12587
12587
|
"g",
|
|
12588
12588
|
{
|
|
12589
|
-
transform: `translate(${u + (
|
|
12589
|
+
transform: `translate(${u + (h - x) / 2},${(E - x) / 2})`,
|
|
12590
12590
|
children: /* @__PURE__ */ d.jsx(b0, { color: w, width: x, height: x })
|
|
12591
12591
|
}
|
|
12592
12592
|
),
|
|
12593
12593
|
i && /* @__PURE__ */ d.jsxs(
|
|
12594
12594
|
"g",
|
|
12595
12595
|
{
|
|
12596
|
-
transform: `translate(${u + (
|
|
12596
|
+
transform: `translate(${u + (h - x) / 2},${(E - x) / 2})`,
|
|
12597
12597
|
children: [
|
|
12598
12598
|
/* @__PURE__ */ d.jsx(w0, { outline: w, inside: S, width: x, height: x }),
|
|
12599
12599
|
/* @__PURE__ */ d.jsx("g", { transform: `translate(${x / 2},${x + 10})`, children: /* @__PURE__ */ d.jsx("text", { fill: w, textAnchor: "middle", fontSize: `${g}px`, children: i }) })
|
|
@@ -12614,7 +12614,7 @@ function $c({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12614
12614
|
"text",
|
|
12615
12615
|
{
|
|
12616
12616
|
fill: w,
|
|
12617
|
-
x: u +
|
|
12617
|
+
x: u + h / 2,
|
|
12618
12618
|
y: g / 2 + 5,
|
|
12619
12619
|
fontSize: `${g}px`,
|
|
12620
12620
|
textAnchor: "middle",
|
|
@@ -12666,17 +12666,17 @@ function _0({
|
|
|
12666
12666
|
onLeave: s,
|
|
12667
12667
|
tooltip: c
|
|
12668
12668
|
}) {
|
|
12669
|
-
const { totalWidth: u, sideWidth: l } = n,
|
|
12669
|
+
const { totalWidth: u, sideWidth: l } = n, h = De((E) => E.background), { x: f, reverseX: p } = St(u), m = z(() => {
|
|
12670
12670
|
const E = t ? [...t] : [];
|
|
12671
|
-
return Ud(E,
|
|
12672
|
-
}, [t,
|
|
12671
|
+
return Ud(E, f);
|
|
12672
|
+
}, [t, f]), y = dn(m.length, e), { handleClick: v, handleHover: g, handleLeave: b } = Je({
|
|
12673
12673
|
onClick: o,
|
|
12674
12674
|
onHover: a,
|
|
12675
12675
|
onLeave: s,
|
|
12676
12676
|
tooltip: c
|
|
12677
12677
|
});
|
|
12678
12678
|
return /* @__PURE__ */ d.jsxs("g", { width: u, height: r, clipPath: `url(#${e})`, transform: `translate(-${l}, 0)`, children: [
|
|
12679
|
-
/* @__PURE__ */ d.jsx("rect", { width: u, height: r, fill:
|
|
12679
|
+
/* @__PURE__ */ d.jsx("rect", { width: u, height: r, fill: h }),
|
|
12680
12680
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: u, height: r }) }),
|
|
12681
12681
|
m.map((E, _) => /* @__PURE__ */ d.jsx("g", { transform: `translate(0, ${_ * y})`, children: E.map((x, O) => {
|
|
12682
12682
|
const w = jc(x, p);
|
|
@@ -12789,9 +12789,9 @@ function D0(e, t, r, n, i, o) {
|
|
|
12789
12789
|
return a + " M " + e + " " + n + " L " + t + " " + n;
|
|
12790
12790
|
}
|
|
12791
12791
|
function L0(e, t, r, n) {
|
|
12792
|
-
var
|
|
12792
|
+
var h, f;
|
|
12793
12793
|
if (e.coordinates.start > n || e.coordinates.end < 0) return "";
|
|
12794
|
-
const i = ((
|
|
12794
|
+
const i = ((h = e.UTRs) == null ? void 0 : h.filter((p) => p.coordinates.start === e.coordinates.start)) || [], o = ((f = e.UTRs) == null ? void 0 : f.filter((p) => p.coordinates.end === e.coordinates.end)) || [], a = t - r * 0.2, s = t + r * 0.2, c = t - r * 0.3, u = t + r * 0.3;
|
|
12795
12795
|
if (!i[0] && !o[0])
|
|
12796
12796
|
return Me(e.coordinates.start, c) + W(e.coordinates.end, c) + W(e.coordinates.end, u) + W(e.coordinates.start, u) + W(e.coordinates.start, c);
|
|
12797
12797
|
if (i[0] && i[0].coordinates.end === e.coordinates.end)
|
|
@@ -12821,19 +12821,19 @@ function M0({
|
|
|
12821
12821
|
onLeave: c,
|
|
12822
12822
|
tooltip: u
|
|
12823
12823
|
}) {
|
|
12824
|
-
const { totalWidth: l, sideWidth:
|
|
12824
|
+
const { totalWidth: l, sideWidth: h } = i, { x: f, reverseX: p } = St(l), m = 10, y = z(() => t == null ? void 0 : t.map((w) => T0(w, r)), [t, r]), v = z(() => ln(y, f, m), [y, f, m]), g = dn(v.length, e), b = z(
|
|
12825
12825
|
() => v.map((w, S) => ({
|
|
12826
12826
|
y: S * g,
|
|
12827
|
-
transcripts: w.map((D) => Bc(D,
|
|
12827
|
+
transcripts: w.map((D) => Bc(D, f, g, l))
|
|
12828
12828
|
})),
|
|
12829
|
-
[v, g, l,
|
|
12829
|
+
[v, g, l, f]
|
|
12830
12830
|
), E = De((w) => w.background), { handleClick: _, handleHover: x, handleLeave: O } = Je({
|
|
12831
12831
|
onClick: a,
|
|
12832
12832
|
onHover: s,
|
|
12833
12833
|
onLeave: c,
|
|
12834
12834
|
tooltip: u
|
|
12835
12835
|
});
|
|
12836
|
-
return /* @__PURE__ */ d.jsxs("g", { width: l, height: n, transform: `translate(-${
|
|
12836
|
+
return /* @__PURE__ */ d.jsxs("g", { width: l, height: n, transform: `translate(-${h},0)`, children: [
|
|
12837
12837
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: n, fill: E }),
|
|
12838
12838
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: l, height: v.length * g }) }),
|
|
12839
12839
|
b.map((w, S) => /* @__PURE__ */ d.jsx(
|
|
@@ -12896,12 +12896,12 @@ function j0({
|
|
|
12896
12896
|
onLeave: s,
|
|
12897
12897
|
tooltip: c
|
|
12898
12898
|
}) {
|
|
12899
|
-
const { totalWidth: u, sideWidth: l } = n, { x:
|
|
12899
|
+
const { totalWidth: u, sideWidth: l } = n, { x: h, reverseX: f } = St(u), p = 10, m = z(() => C0(t || []), [t]), y = z(() => ln(m, h, p), [m, h, p]), v = dn(y.length, e), g = z(
|
|
12900
12900
|
() => y.map((O, w) => ({
|
|
12901
12901
|
y: w * v,
|
|
12902
|
-
transcripts: O.map((S) => Bc(S,
|
|
12902
|
+
transcripts: O.map((S) => Bc(S, h, v, u))
|
|
12903
12903
|
})),
|
|
12904
|
-
[y, v, u,
|
|
12904
|
+
[y, v, u, h]
|
|
12905
12905
|
), b = De((O) => O.background), { handleClick: E, handleHover: _, handleLeave: x } = Je({
|
|
12906
12906
|
onClick: o,
|
|
12907
12907
|
onHover: a,
|
|
@@ -12919,7 +12919,7 @@ function j0({
|
|
|
12919
12919
|
height: v,
|
|
12920
12920
|
width: u,
|
|
12921
12921
|
children: O.transcripts.map((S, D) => {
|
|
12922
|
-
const j = Wc(S.transcript,
|
|
12922
|
+
const j = Wc(S.transcript, f);
|
|
12923
12923
|
return /* @__PURE__ */ d.jsxs("g", { children: [
|
|
12924
12924
|
/* @__PURE__ */ d.jsx(
|
|
12925
12925
|
"path",
|
|
@@ -13372,14 +13372,14 @@ const tm = ({
|
|
|
13372
13372
|
onSymbolMouseOut: u,
|
|
13373
13373
|
onSymbolClick: l
|
|
13374
13374
|
}) => {
|
|
13375
|
-
let
|
|
13375
|
+
let h = e, f = t / 100;
|
|
13376
13376
|
a = a || 1;
|
|
13377
13377
|
let p = r.map((m) => {
|
|
13378
13378
|
if (!n[m] || !n[m].component || i[m] === 0)
|
|
13379
13379
|
return null;
|
|
13380
|
-
|
|
13381
|
-
const y = s ?
|
|
13382
|
-
let v =
|
|
13380
|
+
h -= i[m] * 100;
|
|
13381
|
+
const y = s ? h + i[m] * 100 : h;
|
|
13382
|
+
let v = f * 0.8 / n[m].component.length;
|
|
13383
13383
|
return n[m].component.map((g, b) => /* @__PURE__ */ d.jsx(
|
|
13384
13384
|
"g",
|
|
13385
13385
|
{
|
|
@@ -13424,10 +13424,10 @@ const tm = ({
|
|
|
13424
13424
|
numberofgridlines: a,
|
|
13425
13425
|
stroke: s
|
|
13426
13426
|
}) => {
|
|
13427
|
-
const c = rm([e, t], [r, n]), u = t - e, l = o + i,
|
|
13427
|
+
const c = rm([e, t], [r, n]), u = t - e, l = o + i, h = Math.ceil(u) / a, f = Math.ceil(u / h), p = Array.from(Array(f).keys());
|
|
13428
13428
|
return /* @__PURE__ */ d.jsxs("g", { stroke: s || "#000000", children: [
|
|
13429
13429
|
p.map((m) => {
|
|
13430
|
-
const y = e +
|
|
13430
|
+
const y = e + h * m;
|
|
13431
13431
|
return /* @__PURE__ */ d.jsx("line", { x1: c(y), x2: c(y), y1: o, y2: l }, m);
|
|
13432
13432
|
}),
|
|
13433
13433
|
/* @__PURE__ */ d.jsx("line", { x1: c(t), x2: c(t), y1: o, y2: l }),
|
|
@@ -13629,16 +13629,16 @@ const tm = ({
|
|
|
13629
13629
|
/* @__PURE__ */ d.jsx("g", { transform: "rotate(-90)", children: /* @__PURE__ */ d.jsx("text", { y: "15", x: -e.height / 2, textAnchor: "middle", fontSize: "18", children: "frequency" }) })
|
|
13630
13630
|
] });
|
|
13631
13631
|
}, hm = (e, t, r, n) => (i, o, a, s, c, u) => {
|
|
13632
|
-
const l = u ? cm(i) : sm(i), { onSymbolMouseOver:
|
|
13632
|
+
const l = u ? cm(i) : sm(i), { onSymbolMouseOver: h, onSymbolMouseOut: f, onSymbolClick: p } = s;
|
|
13633
13633
|
return /* @__PURE__ */ d.jsx(
|
|
13634
13634
|
tm,
|
|
13635
13635
|
{
|
|
13636
13636
|
indices: l,
|
|
13637
13637
|
alphabet: a,
|
|
13638
13638
|
alpha: r,
|
|
13639
|
-
onSymbolMouseOver: (m) =>
|
|
13639
|
+
onSymbolMouseOver: (m) => h && h(m),
|
|
13640
13640
|
onSymbolClick: (m) => p && p(m),
|
|
13641
|
-
onSymbolMouseOut: (m) =>
|
|
13641
|
+
onSymbolMouseOut: (m) => f && f(m),
|
|
13642
13642
|
lv: i,
|
|
13643
13643
|
transform: c,
|
|
13644
13644
|
width: e,
|
|
@@ -13716,8 +13716,8 @@ const tm = ({
|
|
|
13716
13716
|
glyphWidth: c,
|
|
13717
13717
|
scale: u,
|
|
13718
13718
|
startPos: l,
|
|
13719
|
-
showGridLines:
|
|
13720
|
-
backgroundFrequencies:
|
|
13719
|
+
showGridLines: h,
|
|
13720
|
+
backgroundFrequencies: f,
|
|
13721
13721
|
constantPseudocount: p,
|
|
13722
13722
|
smallSampleCorrectionOff: m,
|
|
13723
13723
|
yAxisMax: y,
|
|
@@ -13751,13 +13751,13 @@ const tm = ({
|
|
|
13751
13751
|
})), !e || e && (e.length === 0 || e[0].length === 0))
|
|
13752
13752
|
return /* @__PURE__ */ d.jsx("div", {});
|
|
13753
13753
|
let j = e[0].length;
|
|
13754
|
-
|
|
13754
|
+
f || (f = e[0].map((H) => 1 / j));
|
|
13755
13755
|
let C = r || (i !== Vn ? e.map(
|
|
13756
|
-
(H, T) => am(
|
|
13756
|
+
(H, T) => am(f)(H, D ? D[T] : void 0)
|
|
13757
13757
|
) : e.map(
|
|
13758
13758
|
(H) => H.map((T) => T * Math.log2(j))
|
|
13759
13759
|
));
|
|
13760
|
-
const I = i === Vn ? [Math.log2(j)] :
|
|
13760
|
+
const I = i === Vn ? [Math.log2(j)] : f.map((H) => Math.log2(1 / (H || 0.01))), F = y || Math.max(...I), B = Math.min(...I), ce = B < 0 ? F / (F - B) : 1;
|
|
13761
13761
|
l = l && !isNaN(parseFloat(l.toString())) && isFinite(l) ? l : 1;
|
|
13762
13762
|
let G = 100 * F;
|
|
13763
13763
|
c = G / 6 * (c || 1);
|
|
@@ -13770,7 +13770,7 @@ const tm = ({
|
|
|
13770
13770
|
viewBox: "0 0 " + fe + " " + ye,
|
|
13771
13771
|
ref: x,
|
|
13772
13772
|
children: [
|
|
13773
|
-
|
|
13773
|
+
h && /* @__PURE__ */ d.jsx(
|
|
13774
13774
|
nm,
|
|
13775
13775
|
{
|
|
13776
13776
|
minrange: l,
|
|
@@ -13867,8 +13867,8 @@ const Qa = /* @__PURE__ */ new Map([
|
|
|
13867
13867
|
] }) : null;
|
|
13868
13868
|
}, Em = de.memo(xm, (e, t) => e.base === t.base && e.importance === t.importance && e.x === t.x && e.totalHeight === t.totalHeight && e.totalWidth === t.totalWidth && e.xScale === t.xScale && e.transform === t.transform && e.onMouseOver === t.onMouseOver && e.onMouseOut === t.onMouseOut && e.onMouseUp === t.onMouseUp && e.onClick === t.onClick);
|
|
13869
13869
|
function wm({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps: i }) {
|
|
13870
|
-
const { viewWidth: o } = r, [a] = le(null), [s, c, u] = I0(e, n), l = R0(t || [], s, u),
|
|
13871
|
-
const _ = 100 *
|
|
13870
|
+
const { viewWidth: o } = r, [a] = le(null), [s, c, u] = I0(e, n), l = R0(t || [], s, u), h = z(() => o / s.length / 100, [o, s.length]), f = Be(c, [c]), p = z(() => l.map((b, E) => {
|
|
13871
|
+
const _ = 100 * h * Math.abs(b.coordinates[1] - b.coordinates[0]), x = Math.min(...b.coordinates) * h * 100, O = b.y + b.height, w = 80;
|
|
13872
13872
|
return /* @__PURE__ */ d.jsxs(ru, { children: [
|
|
13873
13873
|
/* @__PURE__ */ d.jsx(
|
|
13874
13874
|
"rect",
|
|
@@ -13891,25 +13891,25 @@ function wm({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps:
|
|
|
13891
13891
|
),
|
|
13892
13892
|
/* @__PURE__ */ d.jsx("g", { transform: `translate(${x - _},${O + w})`, children: b.children })
|
|
13893
13893
|
] }, E);
|
|
13894
|
-
}), [l,
|
|
13894
|
+
}), [l, h]), m = z(
|
|
13895
13895
|
() => ({
|
|
13896
|
-
totalWidth:
|
|
13896
|
+
totalWidth: h * 100,
|
|
13897
13897
|
totalHeight: n,
|
|
13898
|
-
xScale:
|
|
13899
|
-
transform:
|
|
13898
|
+
xScale: h,
|
|
13899
|
+
transform: f
|
|
13900
13900
|
}),
|
|
13901
|
-
[
|
|
13901
|
+
[h, n, f]
|
|
13902
13902
|
), y = z(() => s.map(
|
|
13903
|
-
(b, E) => b.importance ? /* @__PURE__ */ wi(Em, { ...m, key: E, x: E *
|
|
13904
|
-
), [s,
|
|
13903
|
+
(b, E) => b.importance ? /* @__PURE__ */ wi(Em, { ...m, key: E, x: E * h * 100, ...b }) : null
|
|
13904
|
+
), [s, h, n, f]), v = z(() => c(0)[0], [c]), g = z(() => s.filter((b) => b.importance).length > 0 ? /* @__PURE__ */ d.jsx("line", { stroke: "#ff0000", strokeWidth: 1, ...i, x1: 0, x2: o, y1: v, y2: v }) : /* @__PURE__ */ d.jsx("text", { x: 0, y: n / 2, children: "No importance track data" }), [s, o, v, n, i]);
|
|
13905
13905
|
return /* @__PURE__ */ d.jsxs("g", { width: o, height: n, children: [
|
|
13906
13906
|
a !== null && /* @__PURE__ */ d.jsx(
|
|
13907
13907
|
"rect",
|
|
13908
13908
|
{
|
|
13909
13909
|
fill: "#93ceed",
|
|
13910
13910
|
fillOpacity: 0.4,
|
|
13911
|
-
x: Math.min(...a) *
|
|
13912
|
-
width: 100 *
|
|
13911
|
+
x: Math.min(...a) * h * 100,
|
|
13912
|
+
width: 100 * h * Math.abs(a[1] - a[0]),
|
|
13913
13913
|
height: n
|
|
13914
13914
|
}
|
|
13915
13915
|
),
|
|
@@ -13971,13 +13971,13 @@ function _m({
|
|
|
13971
13971
|
onLeave: c,
|
|
13972
13972
|
tooltip: u
|
|
13973
13973
|
}) {
|
|
13974
|
-
const { totalWidth: l, sideWidth:
|
|
13974
|
+
const { totalWidth: l, sideWidth: h } = n, { x: f } = St(l), p = z(() => Ua(t.occurrenceRect, f), [t]), m = z(() => Ua(t.peaks, f), [t]), { handleClick: y, handleHover: v, handleLeave: g } = Je({
|
|
13975
13975
|
onClick: a,
|
|
13976
13976
|
onHover: s,
|
|
13977
13977
|
onLeave: c,
|
|
13978
13978
|
tooltip: u || zc
|
|
13979
13979
|
});
|
|
13980
|
-
return /* @__PURE__ */ d.jsxs("g", { id: e, height: r, width: l, clipPath: `url(#${e})`, transform: `translate(-${
|
|
13980
|
+
return /* @__PURE__ */ d.jsxs("g", { id: e, height: r, width: l, clipPath: `url(#${e})`, transform: `translate(-${h}, 0)`, children: [
|
|
13981
13981
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: "white" }),
|
|
13982
13982
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: l, height: r }) }),
|
|
13983
13983
|
m.map((b, E) => /* @__PURE__ */ d.jsx(
|
|
@@ -14023,13 +14023,13 @@ function Sm({
|
|
|
14023
14023
|
onLeave: c,
|
|
14024
14024
|
tooltip: u
|
|
14025
14025
|
}) {
|
|
14026
|
-
const { totalWidth: l, sideWidth:
|
|
14026
|
+
const { totalWidth: l, sideWidth: h } = n, { x: f } = St(l), p = z(() => za(t.occurrenceRect, f), [t, f]), m = z(() => za(t.peaks, f), [t, f]), y = dn(p.length, e), { handleClick: v, handleHover: g, handleLeave: b } = Je({
|
|
14027
14027
|
onClick: a,
|
|
14028
14028
|
onHover: s,
|
|
14029
14029
|
onLeave: c,
|
|
14030
14030
|
tooltip: u || zc
|
|
14031
14031
|
});
|
|
14032
|
-
return /* @__PURE__ */ d.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${
|
|
14032
|
+
return /* @__PURE__ */ d.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${h}, 0)`, children: [
|
|
14033
14033
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: "white" }),
|
|
14034
14034
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: l, height: r }) }),
|
|
14035
14035
|
m.map((E, _) => /* @__PURE__ */ d.jsx("g", { transform: `translate(0, ${_ * y})`, children: E.map((x, O) => /* @__PURE__ */ d.jsx(
|
|
@@ -14078,10 +14078,10 @@ function Tm({
|
|
|
14078
14078
|
}) {
|
|
14079
14079
|
if (!e || e.length === 0)
|
|
14080
14080
|
return null;
|
|
14081
|
-
const
|
|
14081
|
+
const h = a * (e.length - 1), f = (i - h) / e.length;
|
|
14082
14082
|
return /* @__PURE__ */ d.jsx("g", { id: r, children: e.map((p, m) => {
|
|
14083
14083
|
var x;
|
|
14084
|
-
const y = m * (
|
|
14084
|
+
const y = m * (f + a), v = ((x = t[m]) == null ? void 0 : x.name) || `Dataset ${m + 1}`, g = (O) => {
|
|
14085
14085
|
const w = { ...O, datasetName: v };
|
|
14086
14086
|
c && c(w);
|
|
14087
14087
|
}, b = (O) => {
|
|
@@ -14100,7 +14100,7 @@ function Tm({
|
|
|
14100
14100
|
data: p,
|
|
14101
14101
|
id: `${v}`,
|
|
14102
14102
|
color: n,
|
|
14103
|
-
height:
|
|
14103
|
+
height: f,
|
|
14104
14104
|
dimensions: o,
|
|
14105
14105
|
verticalPadding: 0,
|
|
14106
14106
|
onClick: E,
|
|
@@ -14116,9 +14116,9 @@ function kt(e, t, r, n = !1, i) {
|
|
|
14116
14116
|
if (!o) return null;
|
|
14117
14117
|
const { range: a, rangeSize: s } = o, c = n ? 0 : t;
|
|
14118
14118
|
let u = Me(0, c), l = Me(0, c);
|
|
14119
|
-
return e.forEach((
|
|
14120
|
-
const
|
|
14121
|
-
(
|
|
14119
|
+
return e.forEach((h) => {
|
|
14120
|
+
const f = Hc(h, a, s, t, n), p = n ? 0 : t;
|
|
14121
|
+
(h.max !== null || h.min !== null) && (l += W(f.x, p) + W(f.x, n ? t : 0) + W(f.x + 1, n ? t : 0) + W(f.x + 1, p)), u += W(f.x, p) + W(f.x, f.y) + W(f.x + 1, f.y) + W(f.x + 1, p);
|
|
14122
14122
|
}), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
14123
14123
|
/* @__PURE__ */ d.jsx("path", { d: l, fill: Sr(r, 0.5), fillOpacity: 0.2 }),
|
|
14124
14124
|
/* @__PURE__ */ d.jsx("path", { d: u, fill: r })
|
|
@@ -14130,8 +14130,8 @@ function Ha(e, t, r, n = !1, i) {
|
|
|
14130
14130
|
const { range: a, rangeSize: s } = o;
|
|
14131
14131
|
let c = "";
|
|
14132
14132
|
return e.forEach((u, l) => {
|
|
14133
|
-
const
|
|
14134
|
-
l === 0 ? c += Me(
|
|
14133
|
+
const h = Hc(u, a, s, t, n);
|
|
14134
|
+
l === 0 ? c += Me(h.x, h.y) : c += W(h.x, h.y);
|
|
14135
14135
|
}), /* @__PURE__ */ d.jsx("path", { d: c, stroke: r, fill: "none", strokeWidth: "1" });
|
|
14136
14136
|
}
|
|
14137
14137
|
function Uc(e, t) {
|
|
@@ -14159,12 +14159,12 @@ const tt = {
|
|
|
14159
14159
|
depth: "#696969"
|
|
14160
14160
|
};
|
|
14161
14161
|
function Cm({ tooltipValues: e }) {
|
|
14162
|
-
var u, l,
|
|
14162
|
+
var u, l, h, f, p, m, y, v;
|
|
14163
14163
|
const t = De((g) => g.text), r = De((g) => g.background), n = {
|
|
14164
14164
|
depth: (u = e[3]) == null ? void 0 : u.max,
|
|
14165
14165
|
cg: (l = e[0]) == null ? void 0 : l.max,
|
|
14166
|
-
chg: (
|
|
14167
|
-
chh: (
|
|
14166
|
+
chg: (h = e[1]) == null ? void 0 : h.max,
|
|
14167
|
+
chh: (f = e[2]) == null ? void 0 : f.max
|
|
14168
14168
|
}, i = {
|
|
14169
14169
|
depth: (p = e[7]) == null ? void 0 : p.max,
|
|
14170
14170
|
cg: (m = e[4]) == null ? void 0 : m.max,
|
|
@@ -14205,7 +14205,7 @@ function Cm({ tooltipValues: e }) {
|
|
|
14205
14205
|
}
|
|
14206
14206
|
function Dm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, tooltip: a }) {
|
|
14207
14207
|
var O, w;
|
|
14208
|
-
const { sideWidth: s, totalWidth: c, viewWidth: u } = i, l = Y((S) => S.svgRef),
|
|
14208
|
+
const { sideWidth: s, totalWidth: c, viewWidth: u } = i, l = Y((S) => S.svgRef), h = Y((S) => S.delta), f = Y((S) => S.marginWidth), p = De((S) => S.text), m = z(() => {
|
|
14209
14209
|
const S = t / 2;
|
|
14210
14210
|
return {
|
|
14211
14211
|
cpgPlus: kt(n[0], S, r.cpg, !1, o),
|
|
@@ -14217,10 +14217,10 @@ function Dm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14217
14217
|
chhMinus: kt(n[6], S, r.chh, !0, o),
|
|
14218
14218
|
depthMinus: Ha(n[7], S, r.depth, !0, o)
|
|
14219
14219
|
};
|
|
14220
|
-
}, [n, t, r, o]), { mouseState: y, updateMouseState: v, clearMouseState: g } = Gi(l, c,
|
|
14220
|
+
}, [n, t, r, o]), { mouseState: y, updateMouseState: v, clearMouseState: g } = Gi(l, c, f, s), b = z(() => {
|
|
14221
14221
|
var S;
|
|
14222
|
-
return (S = y.pos) != null && S.x ? y.pos.x -
|
|
14223
|
-
}, [(O = y.pos) == null ? void 0 : O.x,
|
|
14222
|
+
return (S = y.pos) != null && S.x ? y.pos.x - f + s : 0;
|
|
14223
|
+
}, [(O = y.pos) == null ? void 0 : O.x, f, s]), E = z(() => {
|
|
14224
14224
|
const S = y.index;
|
|
14225
14225
|
return S === null ? [] : n.map((D) => D[S]);
|
|
14226
14226
|
}, [n, y.index]), { handleHover: _, handleLeave: x } = Je({
|
|
@@ -14243,7 +14243,7 @@ function Dm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14243
14243
|
m.chhMinus,
|
|
14244
14244
|
m.depthMinus
|
|
14245
14245
|
] }),
|
|
14246
|
-
!
|
|
14246
|
+
!h && ((w = y.pos) == null ? void 0 : w.x) && /* @__PURE__ */ d.jsx(d.Fragment, { children: /* @__PURE__ */ d.jsx("line", { stroke: p, x1: b, x2: b, y1: 0, y2: t }) }),
|
|
14247
14247
|
/* @__PURE__ */ d.jsx(
|
|
14248
14248
|
"rect",
|
|
14249
14249
|
{
|
|
@@ -14263,13 +14263,13 @@ function Dm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14263
14263
|
}
|
|
14264
14264
|
function Lm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o, tooltip: a }) {
|
|
14265
14265
|
var j;
|
|
14266
|
-
const { sideWidth: s, totalWidth: c, viewWidth: u } = o, l = Y((C) => C.svgRef),
|
|
14266
|
+
const { sideWidth: s, totalWidth: c, viewWidth: u } = o, l = Y((C) => C.svgRef), h = Y((C) => C.delta), f = Y((C) => C.marginWidth), p = De((C) => C.background), m = z(() => e.some((C) => C.min < 0), [e]), y = ne((C) => C.editTrack), v = z(() => {
|
|
14267
14267
|
const C = e.slice(s, s + u), I = Mc(C);
|
|
14268
14268
|
return y(r, { range: I }), I;
|
|
14269
|
-
}, [e, s, u, r, y]), g = z(() => Mm(e, n, i, t || v, p), [e, n, i, t, v]), { mouseState: b, updateMouseState: E, clearMouseState: _ } = Gi(l, c,
|
|
14269
|
+
}, [e, s, u, r, y]), g = z(() => Mm(e, n, i, t || v, p), [e, n, i, t, v]), { mouseState: b, updateMouseState: E, clearMouseState: _ } = Gi(l, c, f, s), x = z(() => {
|
|
14270
14270
|
var C;
|
|
14271
|
-
return (C = b.pos) != null && C.x ? b.pos.x -
|
|
14272
|
-
}, [(j = b.pos) == null ? void 0 : j.x,
|
|
14271
|
+
return (C = b.pos) != null && C.x ? b.pos.x - f + s : 0;
|
|
14272
|
+
}, [(j = b.pos) == null ? void 0 : j.x, f, s]), O = De((C) => C.background), w = De((C) => C.text), { handleHover: S, handleLeave: D } = Je({
|
|
14273
14273
|
onClick: void 0,
|
|
14274
14274
|
onHover: void 0,
|
|
14275
14275
|
onLeave: void 0,
|
|
@@ -14279,7 +14279,7 @@ function Lm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o
|
|
|
14279
14279
|
/* @__PURE__ */ d.jsx("rect", { width: c, height: n, fill: O }),
|
|
14280
14280
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: r, width: c, height: n }) }),
|
|
14281
14281
|
g,
|
|
14282
|
-
!
|
|
14282
|
+
!h && x && /* @__PURE__ */ d.jsx("line", { stroke: w, x1: x, x2: x, y1: 0, y2: n }),
|
|
14283
14283
|
/* @__PURE__ */ d.jsx(
|
|
14284
14284
|
"rect",
|
|
14285
14285
|
{
|
|
@@ -14307,19 +14307,19 @@ function Lm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o
|
|
|
14307
14307
|
}
|
|
14308
14308
|
function Mm(e, t, r, n, i) {
|
|
14309
14309
|
const o = {
|
|
14310
|
-
min: e.map((
|
|
14311
|
-
max: e.map((
|
|
14310
|
+
min: e.map((f) => f.min).reduce((f, p) => Math.min(f, p), 1 / 0),
|
|
14311
|
+
max: e.map((f) => f.max).reduce((f, p) => Math.max(f, p), -1 / 0)
|
|
14312
14312
|
}, a = n || o, s = t - $n(0, a, { min: 0, max: t });
|
|
14313
|
-
let c = Me(0, s), u = Me(0, s), l = Me(0, 0),
|
|
14314
|
-
return e.forEach((
|
|
14315
|
-
const p = $n(
|
|
14316
|
-
c += W(
|
|
14313
|
+
let c = Me(0, s), u = Me(0, s), l = Me(0, 0), h = Me(0, t);
|
|
14314
|
+
return e.forEach((f) => {
|
|
14315
|
+
const p = $n(f.min, a, { min: 0, max: t }), m = $n(f.max, a, { min: 0, max: t });
|
|
14316
|
+
c += W(f.x, s) + W(f.x, t - p) + W(f.x + 1, t - p) + W(f.x + 1, s), u += W(f.x, s) + W(f.x, t - m) + W(f.x + 1, t - m) + W(f.x + 1, s), n && f.min < n.min && (h += Me(f.x, t) + W(f.x, t) + W(f.x + 1, t)), n && f.max > n.max && (l += Me(f.x, 0) + W(f.x, 0) + W(f.x + 1, 0));
|
|
14317
14317
|
}), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
14318
14318
|
a.min < 0 ? /* @__PURE__ */ d.jsx("path", { d: c, fill: Sr(r, 0.2) }) : null,
|
|
14319
14319
|
/* @__PURE__ */ d.jsx("line", { x1: 0, y1: s, x2: 4190, y2: s, stroke: i, strokeWidth: 1 }),
|
|
14320
14320
|
/* @__PURE__ */ d.jsx("path", { d: u, fill: r }),
|
|
14321
14321
|
/* @__PURE__ */ d.jsx("path", { d: l, fill: "red" }),
|
|
14322
|
-
/* @__PURE__ */ d.jsx("path", { d:
|
|
14322
|
+
/* @__PURE__ */ d.jsx("path", { d: h, fill: "red" })
|
|
14323
14323
|
] });
|
|
14324
14324
|
}
|
|
14325
14325
|
function $n(e, t, r) {
|
|
@@ -14329,11 +14329,11 @@ function $n(e, t, r) {
|
|
|
14329
14329
|
return r.min + o * i;
|
|
14330
14330
|
}
|
|
14331
14331
|
function jm({ id: e }) {
|
|
14332
|
-
const t = ne((
|
|
14332
|
+
const t = ne((h) => h.getTrack(e)), r = We((h) => h.data.get(e)), [n, i] = le(void 0), o = We((h) => h.loading), s = Y((h) => h.getTrackDimensions)();
|
|
14333
14333
|
pe(() => {
|
|
14334
14334
|
o || !r || i(r.error);
|
|
14335
14335
|
}, [o, r]);
|
|
14336
|
-
const c = ne((
|
|
14336
|
+
const c = ne((h) => h.getPrevHeights(e)), u = z(() => `translate(0, ${c + xe})`, [c]), l = z(
|
|
14337
14337
|
() => t && r ? Rm(t, r, s) : /* @__PURE__ */ d.jsx(d.Fragment, {}),
|
|
14338
14338
|
[t, r, s]
|
|
14339
14339
|
);
|
|
@@ -14450,7 +14450,7 @@ function Yc(e, t, r = !0) {
|
|
|
14450
14450
|
c.href = "data:image/svg+xml;base64," + btoa(s), c.download = `${t}.svg`, c.click();
|
|
14451
14451
|
}
|
|
14452
14452
|
function qm() {
|
|
14453
|
-
const e = Dt((v) => v.open), t = Dt((v) => v.id), r = Dt((v) => v.x), n = Dt((v) => v.y), i = Dt((v) => v.setContextMenu), o = Te(null), a = ne((v) => v.getTrack(t || "")), s = We((v) => v.data.get(t || "")), c = ne((v) => v.editTrack), u = ne((v) => v.removeTrack), [l,
|
|
14453
|
+
const e = Dt((v) => v.open), t = Dt((v) => v.id), r = Dt((v) => v.x), n = Dt((v) => v.y), i = Dt((v) => v.setContextMenu), o = Te(null), a = ne((v) => v.getTrack(t || "")), s = We((v) => v.data.get(t || "")), c = ne((v) => v.editTrack), u = ne((v) => v.removeTrack), [l, h] = le(null);
|
|
14454
14454
|
if (pe(() => {
|
|
14455
14455
|
const v = (g) => {
|
|
14456
14456
|
o.current && !o.current.contains(g.target) && i(!1, t || "", r, n);
|
|
@@ -14459,7 +14459,7 @@ function qm() {
|
|
|
14459
14459
|
document.removeEventListener("mousedown", v);
|
|
14460
14460
|
};
|
|
14461
14461
|
}, [e, i, t, r, n]), !a || !s) return null;
|
|
14462
|
-
const
|
|
14462
|
+
const f = a.displayMode, p = no[a.trackType], m = Object.keys(p), y = (v) => {
|
|
14463
14463
|
t && (i(!1, t, r, n), v === "remove" ? u(t) : v === "download" ? Yc(t, a.title, !0) : c(t, { displayMode: v }));
|
|
14464
14464
|
};
|
|
14465
14465
|
return /* @__PURE__ */ d.jsxs(
|
|
@@ -14480,9 +14480,9 @@ function qm() {
|
|
|
14480
14480
|
Bn,
|
|
14481
14481
|
{
|
|
14482
14482
|
mode: v,
|
|
14483
|
-
currentMode:
|
|
14483
|
+
currentMode: f,
|
|
14484
14484
|
hovered: l,
|
|
14485
|
-
setHovered:
|
|
14485
|
+
setHovered: h,
|
|
14486
14486
|
handleClick: y
|
|
14487
14487
|
},
|
|
14488
14488
|
v
|
|
@@ -14491,9 +14491,9 @@ function qm() {
|
|
|
14491
14491
|
Bn,
|
|
14492
14492
|
{
|
|
14493
14493
|
mode: "remove",
|
|
14494
|
-
currentMode:
|
|
14494
|
+
currentMode: f,
|
|
14495
14495
|
hovered: l,
|
|
14496
|
-
setHovered:
|
|
14496
|
+
setHovered: h,
|
|
14497
14497
|
handleClick: y
|
|
14498
14498
|
}
|
|
14499
14499
|
),
|
|
@@ -14501,9 +14501,9 @@ function qm() {
|
|
|
14501
14501
|
Bn,
|
|
14502
14502
|
{
|
|
14503
14503
|
mode: "download",
|
|
14504
|
-
currentMode:
|
|
14504
|
+
currentMode: f,
|
|
14505
14505
|
hovered: l,
|
|
14506
|
-
setHovered:
|
|
14506
|
+
setHovered: h,
|
|
14507
14507
|
handleClick: y
|
|
14508
14508
|
}
|
|
14509
14509
|
)
|
|
@@ -14597,10 +14597,10 @@ var xr = function(e, t, r) {
|
|
|
14597
14597
|
var g = v.which || v.keyCode;
|
|
14598
14598
|
g < 37 || g > 40 || (v.preventDefault(), a({ left: g === 39 ? 0.05 : g === 37 ? -0.05 : 0, top: g === 40 ? 0.05 : g === 38 ? -0.05 : 0 }));
|
|
14599
14599
|
}, y];
|
|
14600
|
-
}, [a, o]), l = u[0],
|
|
14600
|
+
}, [a, o]), l = u[0], h = u[1], f = u[2];
|
|
14601
14601
|
return pe(function() {
|
|
14602
|
-
return
|
|
14603
|
-
}, [
|
|
14602
|
+
return f;
|
|
14603
|
+
}, [f]), de.createElement("div", pn({}, n, { onTouchStart: l, onMouseDown: l, className: "react-colorful__interactive", ref: i, onKeyDown: h, tabIndex: 0, role: "slider" }));
|
|
14604
14604
|
}), io = function(e) {
|
|
14605
14605
|
return e.filter(Boolean).join(" ");
|
|
14606
14606
|
}, Jc = function(e) {
|
|
@@ -14690,8 +14690,8 @@ var Xm = typeof window < "u" ? nu : pe, Jm = function() {
|
|
|
14690
14690
|
}, Zm = function(e) {
|
|
14691
14691
|
var t = e.className, r = e.colorModel, n = e.color, i = n === void 0 ? r.defaultColor : n, o = e.onChange, a = Gc(e, ["className", "colorModel", "color", "onChange"]), s = Te(null);
|
|
14692
14692
|
Km(s);
|
|
14693
|
-
var c = Gm(r, i, o), u = c[0], l = c[1],
|
|
14694
|
-
return de.createElement("div", pn({}, a, { ref: s, className:
|
|
14693
|
+
var c = Gm(r, i, o), u = c[0], l = c[1], h = io(["react-colorful", t]);
|
|
14694
|
+
return de.createElement("div", pn({}, a, { ref: s, className: h }), de.createElement(Hm, { hsva: u, onChange: l }), de.createElement(Um, { hue: u.h, onChange: l, className: "react-colorful__last-control" }));
|
|
14695
14695
|
}, ev = { defaultColor: "000", toHsva: Vm, fromHsva: function(e) {
|
|
14696
14696
|
return $m({ h: e.h, s: e.s, v: e.v, a: 1 });
|
|
14697
14697
|
}, equal: Ym }, tv = function(e) {
|
|
@@ -14836,7 +14836,7 @@ function Zr({
|
|
|
14836
14836
|
);
|
|
14837
14837
|
}
|
|
14838
14838
|
function sv(e) {
|
|
14839
|
-
return Number.isNaN(e)
|
|
14839
|
+
return Number.isNaN(e) ? "" : Number.isInteger(e) ? e.toString() : Number(e.toFixed(2)).toString();
|
|
14840
14840
|
}
|
|
14841
14841
|
function cv({ id: e, defaultHeight: t }) {
|
|
14842
14842
|
const r = ne((s) => s.editTrack), n = 20, i = 300, o = (s) => {
|
|
@@ -14974,21 +14974,21 @@ function dv({ track: e }) {
|
|
|
14974
14974
|
Yc(e.id, e.title, !0);
|
|
14975
14975
|
}, l = () => {
|
|
14976
14976
|
e.trackType === K.BigWig && (navigator.clipboard.writeText(e.url || ""), alert("Copied URL to clipboard!"));
|
|
14977
|
-
}, [
|
|
14977
|
+
}, [h, f] = le(-1);
|
|
14978
14978
|
return /* @__PURE__ */ d.jsx(Ke, { title: "Download", children: /* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: [
|
|
14979
14979
|
e.trackType === K.BigWig || e.trackType === K.BigBed ? /* @__PURE__ */ d.jsx(
|
|
14980
14980
|
"button",
|
|
14981
14981
|
{
|
|
14982
14982
|
style: {
|
|
14983
14983
|
...Wn,
|
|
14984
|
-
backgroundColor:
|
|
14984
|
+
backgroundColor: h === 0 ? a : i,
|
|
14985
14985
|
color: s
|
|
14986
14986
|
},
|
|
14987
14987
|
onMouseEnter: () => {
|
|
14988
|
-
|
|
14988
|
+
f(0);
|
|
14989
14989
|
},
|
|
14990
14990
|
onMouseLeave: () => {
|
|
14991
|
-
|
|
14991
|
+
f(-1);
|
|
14992
14992
|
},
|
|
14993
14993
|
onClick: c,
|
|
14994
14994
|
children: "Locus Data"
|
|
@@ -14999,14 +14999,14 @@ function dv({ track: e }) {
|
|
|
14999
14999
|
{
|
|
15000
15000
|
style: {
|
|
15001
15001
|
...Wn,
|
|
15002
|
-
backgroundColor:
|
|
15002
|
+
backgroundColor: h === 1 ? a : i,
|
|
15003
15003
|
color: s
|
|
15004
15004
|
},
|
|
15005
15005
|
onMouseEnter: () => {
|
|
15006
|
-
|
|
15006
|
+
f(1);
|
|
15007
15007
|
},
|
|
15008
15008
|
onMouseLeave: () => {
|
|
15009
|
-
|
|
15009
|
+
f(-1);
|
|
15010
15010
|
},
|
|
15011
15011
|
onClick: u,
|
|
15012
15012
|
children: "Locus SVG"
|
|
@@ -15017,14 +15017,14 @@ function dv({ track: e }) {
|
|
|
15017
15017
|
{
|
|
15018
15018
|
style: {
|
|
15019
15019
|
...Wn,
|
|
15020
|
-
backgroundColor:
|
|
15020
|
+
backgroundColor: h === 2 ? a : i,
|
|
15021
15021
|
color: s
|
|
15022
15022
|
},
|
|
15023
15023
|
onMouseEnter: () => {
|
|
15024
|
-
|
|
15024
|
+
f(2);
|
|
15025
15025
|
},
|
|
15026
15026
|
onMouseLeave: () => {
|
|
15027
|
-
|
|
15027
|
+
f(-1);
|
|
15028
15028
|
},
|
|
15029
15029
|
onClick: l,
|
|
15030
15030
|
children: "Copy File URL"
|
|
@@ -15049,32 +15049,32 @@ function mv({ datasets: e }) {
|
|
|
15049
15049
|
return /* @__PURE__ */ d.jsx(Ke, { title: "Datasets", children: /* @__PURE__ */ d.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: e.map((t, r) => /* @__PURE__ */ d.jsx("div", { style: { fontSize: "12px", color: "#666" }, children: t.name }, r)) }) });
|
|
15050
15050
|
}
|
|
15051
15051
|
function vv() {
|
|
15052
|
-
const e = sr((f) => f.id), t = sr((f) => f.open), r = sr((f) => f.closeModal), n = sr((f) => f.position),
|
|
15053
|
-
f.preventDefault(),
|
|
15052
|
+
const e = sr((f) => f.id), t = sr((f) => f.open), r = sr((f) => f.closeModal), n = sr((f) => f.position), i = 40, [o, a] = le(n), [s, c] = le(!1), u = (f, p) => {
|
|
15053
|
+
f.preventDefault(), a({ x: p.x, y: p.y }), c(!0);
|
|
15054
15054
|
};
|
|
15055
15055
|
pe(() => {
|
|
15056
|
-
t &&
|
|
15056
|
+
t && a(n);
|
|
15057
15057
|
}, [t, n]), pe(() => {
|
|
15058
|
-
const f = (
|
|
15059
|
-
(
|
|
15058
|
+
const f = (p) => {
|
|
15059
|
+
(p.key === "Escape" || p.key === "Enter") && r();
|
|
15060
15060
|
};
|
|
15061
15061
|
return document.addEventListener("keydown", f), () => {
|
|
15062
15062
|
document.removeEventListener("keydown", f);
|
|
15063
15063
|
};
|
|
15064
15064
|
}, [r]);
|
|
15065
|
-
const
|
|
15066
|
-
return !
|
|
15065
|
+
const l = ne((f) => f.getTrack(e)), h = Te(null);
|
|
15066
|
+
return !l || !t ? null : /* @__PURE__ */ d.jsx(
|
|
15067
15067
|
hn,
|
|
15068
15068
|
{
|
|
15069
15069
|
handle: ".modal-handle",
|
|
15070
|
-
position:
|
|
15071
|
-
onDrag:
|
|
15072
|
-
onStop: () =>
|
|
15073
|
-
nodeRef:
|
|
15070
|
+
position: o,
|
|
15071
|
+
onDrag: u,
|
|
15072
|
+
onStop: () => c(!1),
|
|
15073
|
+
nodeRef: h,
|
|
15074
15074
|
children: /* @__PURE__ */ d.jsxs(
|
|
15075
15075
|
"div",
|
|
15076
15076
|
{
|
|
15077
|
-
ref:
|
|
15077
|
+
ref: h,
|
|
15078
15078
|
style: {
|
|
15079
15079
|
width: "auto",
|
|
15080
15080
|
height: "auto",
|
|
@@ -15092,19 +15092,20 @@ function vv() {
|
|
|
15092
15092
|
{
|
|
15093
15093
|
className: "modal-handle",
|
|
15094
15094
|
style: {
|
|
15095
|
-
backgroundColor:
|
|
15096
|
-
color: Kr(
|
|
15097
|
-
cursor:
|
|
15095
|
+
backgroundColor: l.color || "white",
|
|
15096
|
+
color: Kr(l.color || "white"),
|
|
15097
|
+
cursor: s ? "grabbing" : "grab",
|
|
15098
15098
|
display: "flex",
|
|
15099
15099
|
flexDirection: "row",
|
|
15100
15100
|
justifyContent: "flex-start",
|
|
15101
15101
|
alignItems: "center"
|
|
15102
15102
|
},
|
|
15103
15103
|
children: [
|
|
15104
|
-
/* @__PURE__ */ d.jsx(yv, { handleClose: r, color: Kr(
|
|
15104
|
+
/* @__PURE__ */ d.jsx(yv, { handleClose: r, color: Kr(l.color || "transparent") }),
|
|
15105
15105
|
/* @__PURE__ */ d.jsx("div", { style: { margin: "10px" }, children: /* @__PURE__ */ d.jsxs("div", { style: { paddingBottom: "0px", fontSize: "1.2em", fontWeight: "bold" }, children: [
|
|
15106
|
-
"Configure
|
|
15107
|
-
|
|
15106
|
+
"Configure",
|
|
15107
|
+
" ",
|
|
15108
|
+
l.shortLabel || l.title.length > i ? l.title.slice(0, i) + "..." : l.title
|
|
15108
15109
|
] }) })
|
|
15109
15110
|
]
|
|
15110
15111
|
}
|
|
@@ -15180,12 +15181,12 @@ function yv({ handleClose: e, color: t }) {
|
|
|
15180
15181
|
);
|
|
15181
15182
|
}
|
|
15182
15183
|
function bv() {
|
|
15183
|
-
const e = Nt((p) => p.content), t = Nt((p) => p.x), r = Nt((p) => p.y), n = Nt((p) => p.show), [i, o] = le(0), [a, s] = le(0), c = Y((p) => p.svgRef), u = Te(null), l = Y((p) => p.delta),
|
|
15184
|
+
const e = Nt((p) => p.content), t = Nt((p) => p.x), r = Nt((p) => p.y), n = Nt((p) => p.show), [i, o] = le(0), [a, s] = le(0), c = Y((p) => p.svgRef), u = Te(null), l = Y((p) => p.delta), h = Y((p) => p.browserWidth), f = 15;
|
|
15184
15185
|
return pe(() => {
|
|
15185
15186
|
if (!u.current || !c || !c.current) return;
|
|
15186
|
-
const p = Ic(c.current, t, r), m = p[0], y = p[1], v = u.current.getBoundingClientRect().width, g = m >
|
|
15187
|
+
const p = Ic(c.current, t, r), m = p[0], y = p[1], v = u.current.getBoundingClientRect().width, g = m > h - v - f ? m - v - f : m + f, b = y;
|
|
15187
15188
|
o(g), s(b);
|
|
15188
|
-
}, [n, e, t, r,
|
|
15189
|
+
}, [n, e, t, r, h, c]), !n || l ? null : /* @__PURE__ */ d.jsx("g", { ref: u, id: "tooltip", transform: `translate(${i}, ${a})`, children: e });
|
|
15189
15190
|
}
|
|
15190
15191
|
function xv({ children: e }) {
|
|
15191
15192
|
const t = Y((a) => a.setSvgRef), r = Te(null), n = ne((a) => a.getTotalHeight()), i = Y((a) => a.browserWidth), o = We((a) => a.fetching);
|
|
@@ -15219,11 +15220,11 @@ function xv({ children: e }) {
|
|
|
15219
15220
|
);
|
|
15220
15221
|
}
|
|
15221
15222
|
function Ev() {
|
|
15222
|
-
const e = Y((m) => m.browserWidth), t = Y((m) => m.marginWidth), r = xe, n = ne((m) => m.getTotalHeight()) + xe, [i, o] = le([0, 0]), [a, s] = le(!1), c = Y((m) => m.svgRef), u = Y((m) => m.domain), l = Y((m) => m.setDomain),
|
|
15223
|
+
const e = Y((m) => m.browserWidth), t = Y((m) => m.marginWidth), r = xe, n = ne((m) => m.getTotalHeight()) + xe, [i, o] = le([0, 0]), [a, s] = le(!1), c = Y((m) => m.svgRef), u = Y((m) => m.domain), l = Y((m) => m.setDomain), h = (m) => {
|
|
15223
15224
|
if (!c || !c.current) return null;
|
|
15224
15225
|
const y = Ja(m, c.current);
|
|
15225
15226
|
y && (o([y.x, y.x]), s(!0));
|
|
15226
|
-
},
|
|
15227
|
+
}, f = (m) => {
|
|
15227
15228
|
if (!c || !c.current) return null;
|
|
15228
15229
|
if (!a) return;
|
|
15229
15230
|
const y = Ja(m, c.current);
|
|
@@ -15240,9 +15241,9 @@ function Ev() {
|
|
|
15240
15241
|
const g = u.end - u.start, b = e - t, E = (y - t) / b, _ = (v - t) / b, x = u.start + E * g, O = u.start + _ * g, w = { chromosome: u.chromosome, start: Math.round(x), end: Math.round(O) };
|
|
15241
15242
|
o([0, 0]), l(w);
|
|
15242
15243
|
};
|
|
15243
|
-
return pe(() => (document.addEventListener("mousemove",
|
|
15244
|
-
document.removeEventListener("mousemove",
|
|
15245
|
-
}), [
|
|
15244
|
+
return pe(() => (document.addEventListener("mousemove", f), document.addEventListener("mouseup", p), () => {
|
|
15245
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
15246
|
+
}), [f, p]), !c || !c.current ? null : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
15246
15247
|
a ? Za(
|
|
15247
15248
|
/* @__PURE__ */ d.jsx(
|
|
15248
15249
|
"rect",
|
|
@@ -15268,7 +15269,7 @@ function Ev() {
|
|
|
15268
15269
|
height: r,
|
|
15269
15270
|
x: t,
|
|
15270
15271
|
y: 0,
|
|
15271
|
-
onMouseDown:
|
|
15272
|
+
onMouseDown: h
|
|
15272
15273
|
}
|
|
15273
15274
|
)
|
|
15274
15275
|
] });
|
|
@@ -15280,25 +15281,25 @@ function Ja(e, t) {
|
|
|
15280
15281
|
return n ? r.matrixTransform(n.inverse()) : null;
|
|
15281
15282
|
}
|
|
15282
15283
|
function wv() {
|
|
15283
|
-
const e = We((
|
|
15284
|
+
const e = We((f) => f.fetching), t = Y((f) => f.getExpandedDomain), [r, n] = le(t()), i = Y((f) => f.delta);
|
|
15284
15285
|
pe(() => {
|
|
15285
15286
|
i !== 0 || e || n(t());
|
|
15286
15287
|
}, [i, t, e]);
|
|
15287
|
-
const o = Y((
|
|
15288
|
-
return /* @__PURE__ */ d.jsxs("g", { id: "highlights", width:
|
|
15289
|
-
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("clipPath", { id: "highlight-clip", children: /* @__PURE__ */ d.jsx("rect", { width:
|
|
15290
|
-
/* @__PURE__ */ d.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ d.jsx(Vc, { id: "highlights", children: o.map((
|
|
15291
|
-
let p =
|
|
15288
|
+
const o = Y((f) => f.highlights), a = ne((f) => f.getTotalHeight()) + xe, s = Y((f) => f.marginWidth), c = Y((f) => f.getTrackDimensions), { totalWidth: u, sideWidth: l, viewWidth: h } = c();
|
|
15289
|
+
return /* @__PURE__ */ d.jsxs("g", { id: "highlights", width: h + s, height: a, transform: `translate(${-l}, 0)`, children: [
|
|
15290
|
+
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("clipPath", { id: "highlight-clip", children: /* @__PURE__ */ d.jsx("rect", { width: h, height: a, transform: `translate(${h + s}, 0)` }) }) }),
|
|
15291
|
+
/* @__PURE__ */ d.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ d.jsx(Vc, { id: "highlights", children: o.map((f) => {
|
|
15292
|
+
let p = f.domain.chromosome;
|
|
15292
15293
|
return p || (p = r.chromosome), p !== r.chromosome ? null : /* @__PURE__ */ d.jsx(
|
|
15293
15294
|
_v,
|
|
15294
15295
|
{
|
|
15295
|
-
highlight:
|
|
15296
|
+
highlight: f,
|
|
15296
15297
|
totalWidth: u,
|
|
15297
15298
|
browserDomain: r,
|
|
15298
15299
|
totalHeight: a,
|
|
15299
15300
|
marginWidth: s
|
|
15300
15301
|
},
|
|
15301
|
-
|
|
15302
|
+
f.id
|
|
15302
15303
|
);
|
|
15303
15304
|
}) }) })
|
|
15304
15305
|
] });
|
|
@@ -15446,7 +15447,7 @@ function zv(e = []) {
|
|
|
15446
15447
|
return u;
|
|
15447
15448
|
}), a = i.getTrackIndex(n);
|
|
15448
15449
|
let s = new Array(o.length).fill(0);
|
|
15449
|
-
return s = o.map((c, u) => u < a ? -o.slice(u, a).reduce((l,
|
|
15450
|
+
return s = o.map((c, u) => u < a ? -o.slice(u, a).reduce((l, h) => l + h, 0) : u > a ? o.slice(a + 1, u + 1).reduce((l, h) => l + h, 0) : 0), s;
|
|
15450
15451
|
},
|
|
15451
15452
|
shiftTracks: (n, i) => {
|
|
15452
15453
|
const o = r(), a = [...o.tracks], s = a.find((u) => u.id === n);
|
|
@@ -15584,7 +15585,7 @@ function Hv({
|
|
|
15584
15585
|
"Error: ",
|
|
15585
15586
|
c.message
|
|
15586
15587
|
] }) });
|
|
15587
|
-
const l = { start: 0, end: Math.max(...a.cytoband.map((p) => p.coordinates.end)) },
|
|
15588
|
+
const l = { start: 0, end: Math.max(...a.cytoband.map((p) => p.coordinates.end)) }, h = Iv(
|
|
15588
15589
|
{
|
|
15589
15590
|
start: l.start,
|
|
15590
15591
|
end: l.end,
|
|
@@ -15592,10 +15593,10 @@ function Hv({
|
|
|
15592
15593
|
},
|
|
15593
15594
|
700
|
|
15594
15595
|
);
|
|
15595
|
-
let
|
|
15596
|
+
let f = 0;
|
|
15596
15597
|
return /* @__PURE__ */ d.jsxs("g", { id: "cytobands", width: 700, height: 20, transform: o, children: [
|
|
15597
15598
|
a.cytoband.map((p, m) => {
|
|
15598
|
-
const y =
|
|
15599
|
+
const y = h(p.coordinates.start), v = h(p.coordinates.end) - y;
|
|
15599
15600
|
return p.stain === "acen" ? /* @__PURE__ */ d.jsx(
|
|
15600
15601
|
Ov,
|
|
15601
15602
|
{
|
|
@@ -15603,7 +15604,7 @@ function Hv({
|
|
|
15603
15604
|
x: y,
|
|
15604
15605
|
height: 20,
|
|
15605
15606
|
color: u.centromere,
|
|
15606
|
-
opening:
|
|
15607
|
+
opening: f++ === 0
|
|
15607
15608
|
},
|
|
15608
15609
|
m
|
|
15609
15610
|
) : /* @__PURE__ */ d.jsx(Dv, { type: p.stain, width: v, x: y, height: 20, colors: u, opacity: 1 }, m);
|
|
@@ -15614,7 +15615,7 @@ function Hv({
|
|
|
15614
15615
|
onMouseOut: () => {
|
|
15615
15616
|
},
|
|
15616
15617
|
highlight: i,
|
|
15617
|
-
x:
|
|
15618
|
+
x: h,
|
|
15618
15619
|
height: 20,
|
|
15619
15620
|
width: 700
|
|
15620
15621
|
}
|