@genome-spy/app 0.73.0 → 0.74.0
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/AbortablePromiseCache-3gHJdF3E.js +96 -0
- package/dist/blosc-oa0DlI6G.js +692 -0
- package/dist/browser-Dvlo92rx.js +126 -0
- package/dist/chunk-CPXzm0be.js +11 -0
- package/dist/chunk-INHXZS53-fPMmEwMt.js +13 -0
- package/dist/esm-B8-vSu-c.js +369 -0
- package/dist/esm-BDFRLEuD.js +1248 -0
- package/dist/esm-BygJiwh0.js +573 -0
- package/dist/esm-CGX-qz1d.js +155 -0
- package/dist/esm-Cmo4qEPr.js +1015 -0
- package/dist/esm-CuMSzCHy.js +298 -0
- package/dist/esm-D-WfYOx7.js +461 -0
- package/dist/esm-DCCYNvaz.js +1426 -0
- package/dist/esm-n0auOe11.js +121 -0
- package/dist/index.es.js +41039 -52718
- package/dist/index.js +1088 -1095
- package/dist/lz4-jZ0zyLBa.js +626 -0
- package/dist/parquetRead-CJe1UPsz.js +1609 -0
- package/dist/schema.json +8821 -2763
- package/dist/style.css +2 -1
- package/dist/zstd-C6ksIG9r.js +583 -0
- package/package.json +14 -5
- package/dist/AbortablePromiseCache-Dj0vzLnp.js +0 -149
- package/dist/blosc-D1xNXZJs.js +0 -719
- package/dist/browser-0iNU5Wit.js +0 -138
- package/dist/chunk-INHXZS53-DiyuLb3Z.js +0 -14
- package/dist/index-BUsSzlHg.js +0 -1771
- package/dist/index-BYsZN7b0.js +0 -1597
- package/dist/index-C7wOh6y1.js +0 -657
- package/dist/index-CRaQAuki.js +0 -326
- package/dist/index-D9v1PCj9.js +0 -507
- package/dist/index-GDOuv_D5.js +0 -266
- package/dist/index-Gt44EOIH.js +0 -628
- package/dist/inflate-GtwLkvSP.js +0 -1048
- package/dist/lz4-1Ws5oVWR.js +0 -640
- package/dist/parquetRead-BnAGCa4_.js +0 -1663
- package/dist/unzip-Bac01w6X.js +0 -1492
- package/dist/zstd-C4EcZnjq.js +0 -603
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
//#region ../../node_modules/@jbrowse/quick-lru/esm/index.js
|
|
2
|
+
var e = function(e, t, n, r, i) {
|
|
3
|
+
if (r === "m") throw TypeError("Private method is not writable");
|
|
4
|
+
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
7
|
+
}, t = function(e, t, n, r) {
|
|
8
|
+
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
11
|
+
}, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _ = class extends Map {
|
|
12
|
+
constructor(t = {}) {
|
|
13
|
+
if (super(), n.add(this), r.set(this, 0), i.set(this, /* @__PURE__ */ new Map()), a.set(this, /* @__PURE__ */ new Map()), o.set(this, void 0), s.set(this, void 0), c.set(this, void 0), !(t.maxSize && t.maxSize > 0)) throw TypeError("`maxSize` must be a number greater than 0");
|
|
14
|
+
if (typeof t.maxAge == "number" && t.maxAge === 0) throw TypeError("`maxAge` must be a number greater than 0");
|
|
15
|
+
e(this, o, t.maxSize, "f"), e(this, s, t.maxAge || Infinity, "f"), e(this, c, t.onEviction, "f");
|
|
16
|
+
}
|
|
17
|
+
get __oldCache() {
|
|
18
|
+
return t(this, a, "f");
|
|
19
|
+
}
|
|
20
|
+
get(e) {
|
|
21
|
+
if (t(this, i, "f").has(e)) {
|
|
22
|
+
let r = t(this, i, "f").get(e);
|
|
23
|
+
return t(this, n, "m", f).call(this, e, r);
|
|
24
|
+
}
|
|
25
|
+
if (t(this, a, "f").has(e)) {
|
|
26
|
+
let r = t(this, a, "f").get(e);
|
|
27
|
+
if (!t(this, n, "m", u).call(this, e, r)) return t(this, n, "m", h).call(this, e, r), r.value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
set(e, r, { maxAge: a = t(this, s, "f") } = {}) {
|
|
31
|
+
let o = typeof a == "number" && a !== Infinity ? Date.now() + a : void 0;
|
|
32
|
+
return t(this, i, "f").has(e) ? t(this, i, "f").set(e, {
|
|
33
|
+
value: r,
|
|
34
|
+
expiry: o
|
|
35
|
+
}) : t(this, n, "m", m).call(this, e, {
|
|
36
|
+
value: r,
|
|
37
|
+
expiry: o
|
|
38
|
+
}), this;
|
|
39
|
+
}
|
|
40
|
+
has(e) {
|
|
41
|
+
return t(this, i, "f").has(e) ? !t(this, n, "m", u).call(this, e, t(this, i, "f").get(e)) : t(this, a, "f").has(e) ? !t(this, n, "m", u).call(this, e, t(this, a, "f").get(e)) : !1;
|
|
42
|
+
}
|
|
43
|
+
peek(e) {
|
|
44
|
+
if (t(this, i, "f").has(e)) return t(this, n, "m", p).call(this, e, t(this, i, "f"));
|
|
45
|
+
if (t(this, a, "f").has(e)) return t(this, n, "m", p).call(this, e, t(this, a, "f"));
|
|
46
|
+
}
|
|
47
|
+
expiresIn(e) {
|
|
48
|
+
let n = t(this, i, "f").get(e) ?? t(this, a, "f").get(e);
|
|
49
|
+
if (n) return n.expiry ? n.expiry - Date.now() : Infinity;
|
|
50
|
+
}
|
|
51
|
+
delete(n) {
|
|
52
|
+
var o;
|
|
53
|
+
let s = t(this, i, "f").delete(n);
|
|
54
|
+
return s && e(this, r, (o = t(this, r, "f"), o--, o), "f"), t(this, a, "f").delete(n) || s;
|
|
55
|
+
}
|
|
56
|
+
clear() {
|
|
57
|
+
t(this, i, "f").clear(), t(this, a, "f").clear(), e(this, r, 0, "f");
|
|
58
|
+
}
|
|
59
|
+
resize(s) {
|
|
60
|
+
if (!(s && s > 0)) throw TypeError("`maxSize` must be a number greater than 0");
|
|
61
|
+
let c = [...t(this, n, "m", g).call(this)], u = c.length - s;
|
|
62
|
+
u < 0 ? (e(this, i, new Map(c), "f"), e(this, a, /* @__PURE__ */ new Map(), "f"), e(this, r, c.length, "f")) : (u > 0 && t(this, n, "m", l).call(this, c.slice(0, u)), e(this, a, new Map(c.slice(u)), "f"), e(this, i, /* @__PURE__ */ new Map(), "f"), e(this, r, 0, "f")), e(this, o, s, "f");
|
|
63
|
+
}
|
|
64
|
+
evict(o = 1) {
|
|
65
|
+
let s = o;
|
|
66
|
+
if (!s || s <= 0) return;
|
|
67
|
+
let c = [...t(this, n, "m", g).call(this)], u = Math.trunc(Math.min(s, Math.max(c.length - 1, 0)));
|
|
68
|
+
u <= 0 || (t(this, n, "m", l).call(this, c.slice(0, u)), e(this, a, new Map(c.slice(u)), "f"), e(this, i, /* @__PURE__ */ new Map(), "f"), e(this, r, 0, "f"));
|
|
69
|
+
}
|
|
70
|
+
*keys() {
|
|
71
|
+
for (let [e] of this) yield e;
|
|
72
|
+
}
|
|
73
|
+
*values() {
|
|
74
|
+
for (let [, e] of this) yield e;
|
|
75
|
+
}
|
|
76
|
+
*[(r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakSet(), l = function(e) {
|
|
77
|
+
if (typeof t(this, c, "f") == "function") for (let [n, r] of e) t(this, c, "f").call(this, n, r.value);
|
|
78
|
+
}, u = function(e, n) {
|
|
79
|
+
return typeof n.expiry == "number" && n.expiry <= Date.now() ? (typeof t(this, c, "f") == "function" && t(this, c, "f").call(this, e, n.value), this.delete(e)) : !1;
|
|
80
|
+
}, d = function(e, r) {
|
|
81
|
+
if (!t(this, n, "m", u).call(this, e, r)) return r.value;
|
|
82
|
+
}, f = function(e, r) {
|
|
83
|
+
return r.expiry ? t(this, n, "m", d).call(this, e, r) : r.value;
|
|
84
|
+
}, p = function(e, r) {
|
|
85
|
+
let i = r.get(e);
|
|
86
|
+
return t(this, n, "m", f).call(this, e, i);
|
|
87
|
+
}, m = function(s, c) {
|
|
88
|
+
var u;
|
|
89
|
+
t(this, i, "f").set(s, c), e(this, r, (u = t(this, r, "f"), u++, u), "f"), t(this, r, "f") >= t(this, o, "f") && (e(this, r, 0, "f"), t(this, n, "m", l).call(this, t(this, a, "f")), e(this, a, t(this, i, "f"), "f"), e(this, i, /* @__PURE__ */ new Map(), "f"));
|
|
90
|
+
}, h = function(e, r) {
|
|
91
|
+
t(this, a, "f").delete(e), t(this, n, "m", m).call(this, e, r);
|
|
92
|
+
}, g = function* () {
|
|
93
|
+
for (let e of t(this, a, "f")) {
|
|
94
|
+
let [r, a] = e;
|
|
95
|
+
t(this, i, "f").has(r) || t(this, n, "m", u).call(this, r, a) || (yield e);
|
|
96
|
+
}
|
|
97
|
+
for (let e of t(this, i, "f")) {
|
|
98
|
+
let [r, i] = e;
|
|
99
|
+
t(this, n, "m", u).call(this, r, i) || (yield e);
|
|
100
|
+
}
|
|
101
|
+
}, Symbol.iterator)]() {
|
|
102
|
+
for (let e of t(this, i, "f")) {
|
|
103
|
+
let [r, i] = e;
|
|
104
|
+
t(this, n, "m", u).call(this, r, i) || (yield [r, i.value]);
|
|
105
|
+
}
|
|
106
|
+
for (let e of t(this, a, "f")) {
|
|
107
|
+
let [r, a] = e;
|
|
108
|
+
t(this, i, "f").has(r) || t(this, n, "m", u).call(this, r, a) || (yield [r, a.value]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
*entriesDescending() {
|
|
112
|
+
let e = [...t(this, i, "f")];
|
|
113
|
+
for (let r = e.length - 1; r >= 0; --r) {
|
|
114
|
+
let [i, a] = e[r];
|
|
115
|
+
t(this, n, "m", u).call(this, i, a) || (yield [i, a.value]);
|
|
116
|
+
}
|
|
117
|
+
e = [...t(this, a, "f")];
|
|
118
|
+
for (let r = e.length - 1; r >= 0; --r) {
|
|
119
|
+
let [a, o] = e[r];
|
|
120
|
+
t(this, i, "f").has(a) || t(this, n, "m", u).call(this, a, o) || (yield [a, o.value]);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
*entriesAscending() {
|
|
124
|
+
for (let [e, r] of t(this, n, "m", g).call(this)) yield [e, r.value];
|
|
125
|
+
}
|
|
126
|
+
get size() {
|
|
127
|
+
if (!t(this, r, "f")) return t(this, a, "f").size;
|
|
128
|
+
let e = 0;
|
|
129
|
+
for (let n of t(this, a, "f").keys()) t(this, i, "f").has(n) || e++;
|
|
130
|
+
return Math.min(t(this, r, "f") + e, t(this, o, "f"));
|
|
131
|
+
}
|
|
132
|
+
get maxSize() {
|
|
133
|
+
return t(this, o, "f");
|
|
134
|
+
}
|
|
135
|
+
get maxAge() {
|
|
136
|
+
return t(this, s, "f");
|
|
137
|
+
}
|
|
138
|
+
entries() {
|
|
139
|
+
return this.entriesAscending();
|
|
140
|
+
}
|
|
141
|
+
forEach(e, t = this) {
|
|
142
|
+
for (let [n, r] of this.entriesAscending()) e.call(t, r, n, this);
|
|
143
|
+
}
|
|
144
|
+
get [Symbol.toStringTag]() {
|
|
145
|
+
return "QuickLRU";
|
|
146
|
+
}
|
|
147
|
+
toString() {
|
|
148
|
+
return `QuickLRU(${this.size}/${this.maxSize})`;
|
|
149
|
+
}
|
|
150
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
151
|
+
return this.toString();
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { _ as t };
|