@genome-spy/app 0.52.0 → 0.53.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.
@@ -5,11 +5,11 @@ function xt(s, h) {
5
5
  }
6
6
  t.prototype = h.prototype, s.prototype = new t();
7
7
  }
8
- function I(s, h, t, y) {
9
- this.message = s, this.expected = h, this.found = t, this.location = y, this.name = "SyntaxError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, I);
8
+ function B(s, h, t, y) {
9
+ this.message = s, this.expected = h, this.found = t, this.location = y, this.name = "SyntaxError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, B);
10
10
  }
11
- xt(I, Error);
12
- I.buildMessage = function(s, h) {
11
+ xt(B, Error);
12
+ B.buildMessage = function(s, h) {
13
13
  var t = {
14
14
  literal: function(f) {
15
15
  return '"' + F(f.text) + '"';
@@ -17,7 +17,7 @@ I.buildMessage = function(s, h) {
17
17
  class: function(f) {
18
18
  var m = "", S;
19
19
  for (S = 0; S < f.parts.length; S++)
20
- m += f.parts[S] instanceof Array ? A(f.parts[S][0]) + "-" + A(f.parts[S][1]) : A(f.parts[S]);
20
+ m += f.parts[S] instanceof Array ? w(f.parts[S][0]) + "-" + w(f.parts[S][1]) : w(f.parts[S]);
21
21
  return "[" + (f.inverted ? "^" : "") + m + "]";
22
22
  },
23
23
  any: function(f) {
@@ -40,7 +40,7 @@ I.buildMessage = function(s, h) {
40
40
  return "\\x" + y(m);
41
41
  });
42
42
  }
43
- function A(f) {
43
+ function w(f) {
44
44
  return f.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(m) {
45
45
  return "\\x0" + y(m);
46
46
  }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(m) {
@@ -75,9 +75,9 @@ I.buildMessage = function(s, h) {
75
75
  };
76
76
  function qt(s, h) {
77
77
  h = h !== void 0 ? h : {};
78
- var t = {}, y = { declaration: Ne }, F = Ne, A = "(", p = g("(", !1), k = ")", D = g(")", !1), f = function(e, o, i, n) {
78
+ var t = {}, y = { declaration: Ne }, F = Ne, w = "(", p = g("(", !1), k = ")", D = g(")", !1), f = function(e, o, i, n) {
79
79
  return { type: e, name: o, comment: i, fields: n };
80
- }, m = "simple", S = g("simple", !1), v = "object", O = g("object", !1), B = "table", Be = g("table", !1), G = "auto", H = g("auto", !1), J = "primary", Ie = g("primary", !1), K = "index", Pe = g("index", !1), ee = "unique", Ge = g("unique", !1), _ = function(e, o) {
80
+ }, m = "simple", S = g("simple", !1), v = "object", O = g("object", !1), I = "table", Be = g("table", !1), G = "auto", H = g("auto", !1), J = "primary", Ie = g("primary", !1), K = "index", Pe = g("index", !1), ee = "unique", Ge = g("unique", !1), _ = function(e, o) {
81
81
  return o;
82
82
  }, _e = function(e, o) {
83
83
  return e.name && o.unshift(e), o;
@@ -92,20 +92,20 @@ function qt(s, h) {
92
92
  }, oe = "int", Ye = g("int", !1), ie = "uint", He = g("uint", !1), se = "short", Je = g("short", !1), ne = "ushort", Ke = g("ushort", !1), ae = "byte", et = g("byte", !1), ce = "ubyte", tt = g("ubyte", !1), fe = "float", rt = g("float", !1), le = "char", ot = g("char", !1), ue = "string", it = g("string", !1), he = "lstring", st = g("lstring", !1), me = "enum", nt = g("enum", !1), ge = "double", at = g("double", !1), pe = "bigint", ct = g("bigint", !1), de = "set", ft = g("set", !1), lt = function(e, o) {
93
93
  return e + " " + o;
94
94
  }, ut = /^[a-zA-Z_]/, ht = P([["a", "z"], ["A", "Z"], "_"], !1, !1), be = /^[a-zA-Z0-9_]/, Se = P([["a", "z"], ["A", "Z"], ["0", "9"], "_"], !1, !1), mt = function(e) {
95
- return we();
95
+ return Ae();
96
96
  }, $e = /^[^\n\r]/, ye = P([`
97
97
  `, "\r"], !0, !1), gt = function(e) {
98
98
  return e.join("").replace(/^"/, "").replace(/"$/, "");
99
99
  }, pt = ve("integer"), Ee = /^[0-9]/, ke = P([["0", "9"]], !1, !1), dt = function() {
100
- return parseInt(we(), 10);
101
- }, bt = ve("whitespace"), Ce = /^[ \t\n\r]/, Ae = P([" ", " ", `
102
- `, "\r"], !1, !1), r = 0, $ = 0, M = [{ line: 1, column: 1 }], w = 0, Z = [], c = 0, j;
100
+ return parseInt(Ae(), 10);
101
+ }, bt = ve("whitespace"), Ce = /^[ \t\n\r]/, we = P([" ", " ", `
102
+ `, "\r"], !1, !1), r = 0, $ = 0, M = [{ line: 1, column: 1 }], A = 0, Z = [], c = 0, j;
103
103
  if ("startRule" in h) {
104
104
  if (!(h.startRule in y))
105
105
  throw new Error(`Can't start parsing from rule "` + h.startRule + '".');
106
106
  F = y[h.startRule];
107
107
  }
108
- function we() {
108
+ function Ae() {
109
109
  return s.substring($, r);
110
110
  }
111
111
  function g(e, o) {
@@ -149,18 +149,18 @@ function qt(s, h) {
149
149
  };
150
150
  }
151
151
  function l(e) {
152
- r < w || (r > w && (w = r, Z = []), Z.push(e));
152
+ r < A || (r > A && (A = r, Z = []), Z.push(e));
153
153
  }
154
154
  function $t(e, o, i) {
155
- return new I(I.buildMessage(e, o), e, o, i);
155
+ return new B(B.buildMessage(e, o), e, o, i);
156
156
  }
157
157
  function Ne() {
158
158
  var e, o, i, n, a, d, b, E, R, x, T, q, z, N;
159
- return e = r, o = u(), o !== t ? (i = Fe(), i !== t ? (n = u(), n !== t ? (a = De(), a !== t ? (d = u(), d !== t ? (b = L(), b !== t ? (E = u(), E !== t ? (s.charCodeAt(r) === 40 ? (R = A, r++) : (R = t, c === 0 && l(p)), R !== t ? (x = u(), x !== t ? (T = yt(), T !== t ? (q = u(), q !== t ? (s.charCodeAt(r) === 41 ? (z = k, r++) : (z = t, c === 0 && l(D)), z !== t ? (N = u(), N !== t ? ($ = e, o = f(i, a, b, T), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e;
159
+ return e = r, o = u(), o !== t ? (i = Fe(), i !== t ? (n = u(), n !== t ? (a = De(), a !== t ? (d = u(), d !== t ? (b = L(), b !== t ? (E = u(), E !== t ? (s.charCodeAt(r) === 40 ? (R = w, r++) : (R = t, c === 0 && l(p)), R !== t ? (x = u(), x !== t ? (T = yt(), T !== t ? (q = u(), q !== t ? (s.charCodeAt(r) === 41 ? (z = k, r++) : (z = t, c === 0 && l(D)), z !== t ? (N = u(), N !== t ? ($ = e, o = f(i, a, b, T), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e;
160
160
  }
161
161
  function Fe() {
162
162
  var e;
163
- return s.substr(r, 6) === m ? (e = m, r += 6) : (e = t, c === 0 && l(S)), e === t && (s.substr(r, 6) === v ? (e = v, r += 6) : (e = t, c === 0 && l(O)), e === t && (s.substr(r, 5) === B ? (e = B, r += 5) : (e = t, c === 0 && l(Be)))), e;
163
+ return s.substr(r, 6) === m ? (e = m, r += 6) : (e = t, c === 0 && l(S)), e === t && (s.substr(r, 6) === v ? (e = v, r += 6) : (e = t, c === 0 && l(O)), e === t && (s.substr(r, 5) === I ? (e = I, r += 5) : (e = t, c === 0 && l(Be)))), e;
164
164
  }
165
165
  function De() {
166
166
  var e, o, i, n;
@@ -197,7 +197,7 @@ function qt(s, h) {
197
197
  }
198
198
  function Q() {
199
199
  var e, o, i, n, a, d, b, E, R, x, T, q, z, N;
200
- return e = r, o = W(), o !== t ? (i = u(), i !== t ? (n = C(), n !== t ? (a = u(), a !== t ? (s.charCodeAt(r) === 59 ? (d = U, r++) : (d = t, c === 0 && l(V)), d !== t ? (b = u(), b !== t ? (E = L(), E !== t ? ($ = e, o = Le(o, n, E), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = u(), i !== t ? (s.charCodeAt(r) === 91 ? (n = Oe, r++) : (n = t, c === 0 && l(Ue)), n !== t ? (a = u(), a !== t ? (d = At(), d !== t ? (b = u(), b !== t ? (s.charCodeAt(r) === 93 ? (E = Ve, r++) : (E = t, c === 0 && l(Ze)), E !== t ? (R = u(), R !== t ? (x = C(), x !== t ? (T = u(), T !== t ? (s.charCodeAt(r) === 59 ? (q = U, r++) : (q = t, c === 0 && l(V)), q !== t ? (z = u(), z !== t ? (N = L(), N !== t ? ($ = e, o = Qe(o, d, x, N), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = u(), i !== t ? (s.charCodeAt(r) === 40 ? (n = A, r++) : (n = t, c === 0 && l(p)), n !== t ? (a = u(), a !== t ? (d = Ct(), d !== t ? (b = u(), b !== t ? (s.charCodeAt(r) === 41 ? (E = k, r++) : (E = t, c === 0 && l(D)), E !== t ? (R = u(), R !== t ? (x = C(), x !== t ? (T = u(), T !== t ? (s.charCodeAt(r) === 59 ? (q = U, r++) : (q = t, c === 0 && l(V)), q !== t ? (z = u(), z !== t ? (N = L(), N !== t ? ($ = e, o = We(o, d, x, N), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = kt()))), e;
200
+ return e = r, o = W(), o !== t ? (i = u(), i !== t ? (n = C(), n !== t ? (a = u(), a !== t ? (s.charCodeAt(r) === 59 ? (d = U, r++) : (d = t, c === 0 && l(V)), d !== t ? (b = u(), b !== t ? (E = L(), E !== t ? ($ = e, o = Le(o, n, E), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = u(), i !== t ? (s.charCodeAt(r) === 91 ? (n = Oe, r++) : (n = t, c === 0 && l(Ue)), n !== t ? (a = u(), a !== t ? (d = wt(), d !== t ? (b = u(), b !== t ? (s.charCodeAt(r) === 93 ? (E = Ve, r++) : (E = t, c === 0 && l(Ze)), E !== t ? (R = u(), R !== t ? (x = C(), x !== t ? (T = u(), T !== t ? (s.charCodeAt(r) === 59 ? (q = U, r++) : (q = t, c === 0 && l(V)), q !== t ? (z = u(), z !== t ? (N = L(), N !== t ? ($ = e, o = Qe(o, d, x, N), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = r, o = W(), o !== t ? (i = u(), i !== t ? (s.charCodeAt(r) === 40 ? (n = w, r++) : (n = t, c === 0 && l(p)), n !== t ? (a = u(), a !== t ? (d = Ct(), d !== t ? (b = u(), b !== t ? (s.charCodeAt(r) === 41 ? (E = k, r++) : (E = t, c === 0 && l(D)), E !== t ? (R = u(), R !== t ? (x = C(), x !== t ? (T = u(), T !== t ? (s.charCodeAt(r) === 59 ? (q = U, r++) : (q = t, c === 0 && l(V)), q !== t ? (z = u(), z !== t ? (N = L(), N !== t ? ($ = e, o = We(o, d, x, N), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t), e === t && (e = kt()))), e;
201
201
  }
202
202
  function Ct() {
203
203
  var e, o, i, n, a, d, b;
@@ -213,9 +213,9 @@ function qt(s, h) {
213
213
  var e, o, i, n;
214
214
  return s.substr(r, 3) === oe ? (e = oe, r += 3) : (e = t, c === 0 && l(Ye)), e === t && (s.substr(r, 4) === ie ? (e = ie, r += 4) : (e = t, c === 0 && l(He)), e === t && (s.substr(r, 5) === se ? (e = se, r += 5) : (e = t, c === 0 && l(Je)), e === t && (s.substr(r, 6) === ne ? (e = ne, r += 6) : (e = t, c === 0 && l(Ke)), e === t && (s.substr(r, 4) === ae ? (e = ae, r += 4) : (e = t, c === 0 && l(et)), e === t && (s.substr(r, 5) === ce ? (e = ce, r += 5) : (e = t, c === 0 && l(tt)), e === t && (s.substr(r, 5) === fe ? (e = fe, r += 5) : (e = t, c === 0 && l(rt)), e === t && (s.substr(r, 4) === le ? (e = le, r += 4) : (e = t, c === 0 && l(ot)), e === t && (s.substr(r, 6) === ue ? (e = ue, r += 6) : (e = t, c === 0 && l(it)), e === t && (s.substr(r, 7) === he ? (e = he, r += 7) : (e = t, c === 0 && l(st)), e === t && (s.substr(r, 4) === me ? (e = me, r += 4) : (e = t, c === 0 && l(nt)), e === t && (s.substr(r, 6) === ge ? (e = ge, r += 6) : (e = t, c === 0 && l(at)), e === t && (s.substr(r, 6) === pe ? (e = pe, r += 6) : (e = t, c === 0 && l(ct)), e === t && (s.substr(r, 3) === de ? (e = de, r += 3) : (e = t, c === 0 && l(ft)), e === t && (e = r, o = Fe(), o !== t ? (i = u(), i !== t ? (n = De(), n !== t ? ($ = e, o = lt(o, n), e = o) : (r = e, e = t)) : (r = e, e = t)) : (r = e, e = t))))))))))))))), e;
215
215
  }
216
- function At() {
216
+ function wt() {
217
217
  var e;
218
- return e = wt(), e === t && (e = C()), e;
218
+ return e = At(), e === t && (e = C()), e;
219
219
  }
220
220
  function C() {
221
221
  var e, o, i, n, a;
@@ -233,7 +233,7 @@ function qt(s, h) {
233
233
  o.push(i), $e.test(s.charAt(r)) ? (i = s.charAt(r), r++) : (i = t, c === 0 && l(ye));
234
234
  return o !== t && ($ = e, o = gt(o)), e = o, e;
235
235
  }
236
- function wt() {
236
+ function At() {
237
237
  var e, o, i, n;
238
238
  if (c++, e = r, o = u(), o !== t) {
239
239
  if (i = [], Ee.test(s.charAt(r)) ? (n = s.charAt(r), r++) : (n = t, c === 0 && l(ke)), n !== t)
@@ -248,16 +248,16 @@ function qt(s, h) {
248
248
  }
249
249
  function u() {
250
250
  var e, o;
251
- for (c++, e = [], Ce.test(s.charAt(r)) ? (o = s.charAt(r), r++) : (o = t, c === 0 && l(Ae)); o !== t; )
252
- e.push(o), Ce.test(s.charAt(r)) ? (o = s.charAt(r), r++) : (o = t, c === 0 && l(Ae));
251
+ for (c++, e = [], Ce.test(s.charAt(r)) ? (o = s.charAt(r), r++) : (o = t, c === 0 && l(we)); o !== t; )
252
+ e.push(o), Ce.test(s.charAt(r)) ? (o = s.charAt(r), r++) : (o = t, c === 0 && l(we));
253
253
  return c--, e === t && (o = t, c === 0 && l(bt)), e;
254
254
  }
255
255
  if (j = F(), j !== t && r === s.length)
256
256
  return j;
257
- throw j !== t && r < s.length && l(St()), $t(Z, w < s.length ? s.charAt(w) : null, w < s.length ? qe(w, w + 1) : qe(w, w));
257
+ throw j !== t && r < s.length && l(St()), $t(Z, A < s.length ? s.charAt(A) : null, A < s.length ? qe(A, A + 1) : qe(A, A));
258
258
  }
259
259
  var ze = {
260
- SyntaxError: I,
260
+ SyntaxError: B,
261
261
  parse: qt
262
262
  };
263
263
  const Nt = /* @__PURE__ */ vt(ze), Ft = `table bigChain
@@ -436,15 +436,15 @@ const Nt = /* @__PURE__ */ vt(ze), Ft = `table bigChain
436
436
  ze.parse(h.trim())
437
437
  ]));
438
438
  function Y(s) {
439
- const h = ["uint", "int", "float", "long"];
439
+ const h = /* @__PURE__ */ new Set(["uint", "int", "float", "long"]);
440
440
  return {
441
441
  ...s,
442
442
  fields: s.fields.map((t) => ({
443
443
  ...t,
444
444
  isArray: t.size && t.type !== "char",
445
- arrayIsNumeric: t.size && h.includes(t.type),
446
- isNumeric: !t.size && h.includes(t.type)
447
- }))
445
+ arrayIsNumeric: t.size && h.has(t.type),
446
+ isNumeric: !t.size && h.has(t.type)
447
+ })).filter((t) => !!t.name)
448
448
  };
449
449
  }
450
450
  const jt = { ".": 0, "-": -1, "+": 1 };
@@ -471,27 +471,27 @@ class Ut {
471
471
  * @return a object representing a feature
472
472
  */
473
473
  parseLine(h, t = {}) {
474
- const { autoSql: y } = this, { uniqueId: F } = t, A = Array.isArray(h) ? h : h.split(" ");
474
+ const { autoSql: y } = this, { uniqueId: F } = t, w = Array.isArray(h) ? h : h.split(" ");
475
475
  let p = {};
476
- if (!this.attemptDefaultBed || this.attemptDefaultBed && Lt(A))
476
+ if (!this.attemptDefaultBed || this.attemptDefaultBed && Lt(w))
477
477
  for (let k = 0; k < y.fields.length; k++) {
478
478
  const D = y.fields[k];
479
- let f = A[k];
479
+ let f = w[k];
480
480
  const { isNumeric: m, isArray: S, arrayIsNumeric: v, name: O } = D;
481
481
  if (f == null)
482
482
  break;
483
483
  if (f !== ".") {
484
484
  if (m) {
485
- const B = Number(f);
486
- f = Number.isNaN(B) ? f : B;
485
+ const I = Number(f);
486
+ f = Number.isNaN(I) ? f : I;
487
487
  } else
488
- S && (f = f.split(","), f[f.length - 1] === "" && f.pop(), v && (f = f.map((B) => Number(B))));
488
+ S && (f = f.split(","), f[f.length - 1] === "" && f.pop(), v && (f = f.map(Number)));
489
489
  p[O] = f;
490
490
  }
491
491
  }
492
492
  else {
493
493
  const k = ["chrom", "chromStart", "chromEnd", "name"];
494
- p = Object.fromEntries(A.map((D, f) => [k[f] || "field" + f, D])), p.chromStart = +p.chromStart, p.chromEnd = +p.chromEnd, Number.isNaN(Number.parseFloat(p.field4)) || (p.score = +p.field4, delete p.field4), (p.field5 === "+" || p.field5 === "-") && (p.strand = p.field5, delete p.field5);
494
+ p = Object.fromEntries(w.map((D, f) => [k[f] || "field" + f, D])), p.chromStart = +p.chromStart, p.chromEnd = +p.chromEnd, Number.isNaN(Number.parseFloat(p.field4)) || (p.score = +p.field4, delete p.field4), (p.field5 === "+" || p.field5 === "-") && (p.strand = p.field5, delete p.field5);
495
495
  }
496
496
  return F && (p.uniqueId = F), p.strand = jt[p.strand] || 0, p.chrom = decodeURIComponent(p.chrom), p;
497
497
  }
@@ -1,7 +1,6 @@
1
1
  import { L as d } from "./__vite-browser-external-C--ziKoh.js";
2
- import { R as b } from "./remoteFile-1_eCK3VV.js";
3
- import { b as i } from "./index-C8lYPtq_.js";
4
- import "./_commonjsHelpers-BIiJCwQW.js";
2
+ import { R as b } from "./remoteFile-BkTxwFub.js";
3
+ import { b as i } from "./index-B5cesONJ.js";
5
4
  function a(o) {
6
5
  const r = new FileReader();
7
6
  return new Promise((n, e) => {
@@ -26,19 +25,19 @@ function c(o) {
26
25
  }, r.readAsText(o);
27
26
  });
28
27
  }
29
- class E {
28
+ class B {
30
29
  constructor(r) {
31
30
  this.blob = r, this.size = r.size;
32
31
  }
33
- async read(r, n = 0, e, f = 0) {
32
+ async read(r, n = 0, e, u = 0) {
34
33
  if (!e)
35
34
  return { bytesRead: 0, buffer: r };
36
- const t = f, u = t + e, l = await a(this.blob.slice(t, u)), s = i.Buffer.from(l);
35
+ const t = u, f = t + e, l = await a(this.blob.slice(t, f)), s = i.Buffer.from(l);
37
36
  return { bytesRead: s.copy(r, n), buffer: s };
38
37
  }
39
38
  async readFile(r) {
40
- let n;
41
- if (typeof r == "string" ? n = r : n = r && r.encoding, n === "utf8")
39
+ const n = typeof r == "string" ? r : r == null ? void 0 : r.encoding;
40
+ if (n === "utf8")
42
41
  return c(this.blob);
43
42
  if (n)
44
43
  throw new Error(`unsupported encoding: ${n}`);
@@ -54,7 +53,7 @@ class E {
54
53
  function w(o, r = {}) {
55
54
  return new b(o, r);
56
55
  }
57
- function R(o, r, n, e = {}) {
56
+ function E(o, r, n, e = {}) {
58
57
  if (n !== void 0)
59
58
  return n;
60
59
  if (o !== void 0)
@@ -64,9 +63,9 @@ function R(o, r, n, e = {}) {
64
63
  throw new Error("no url, path, or filehandle provided, cannot open");
65
64
  }
66
65
  export {
67
- E as BlobFile,
66
+ B as BlobFile,
68
67
  d as LocalFile,
69
68
  b as RemoteFile,
70
69
  w as fromUrl,
71
- R as open
70
+ E as open
72
71
  };
@@ -1,18 +1,18 @@
1
- import { c as v, g as D } from "./_commonjsHelpers-BIiJCwQW.js";
2
- var j = {}, m = {}, h = {}, g = {};
1
+ import { c as v, g as x } from "./_commonjsHelpers-BIiJCwQW.js";
2
+ var T = {}, m = {}, h = {}, g = {};
3
3
  Object.defineProperty(g, "__esModule", { value: !0 });
4
4
  function A(r, e) {
5
5
  if (!(r instanceof e))
6
6
  throw new TypeError("Cannot call a class as a function");
7
7
  }
8
- function P(r, e) {
8
+ function D(r, e) {
9
9
  for (var t = 0; t < e.length; t++) {
10
10
  var o = e[t];
11
11
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(r, o.key, o);
12
12
  }
13
13
  }
14
14
  function E(r, e, t) {
15
- return e && P(r.prototype, e), t && P(r, t), Object.defineProperty(r, "prototype", {
15
+ return e && D(r.prototype, e), Object.defineProperty(r, "prototype", {
16
16
  writable: !1
17
17
  }), r;
18
18
  }
@@ -89,7 +89,7 @@ function y() {
89
89
  }
90
90
  }, y.apply(this, arguments);
91
91
  }
92
- var T = /* @__PURE__ */ function() {
92
+ var P = /* @__PURE__ */ function() {
93
93
  function r() {
94
94
  A(this, r), Object.defineProperty(this, "listeners", {
95
95
  value: {},
@@ -140,7 +140,7 @@ var T = /* @__PURE__ */ function() {
140
140
  var e = G(t);
141
141
  function t() {
142
142
  var o;
143
- return A(this, t), o = e.call(this), o.listeners || T.call(p(o)), Object.defineProperty(p(o), "aborted", {
143
+ return A(this, t), o = e.call(this), o.listeners || P.call(p(o)), Object.defineProperty(p(o), "aborted", {
144
144
  value: !1,
145
145
  writable: !0,
146
146
  configurable: !0
@@ -165,7 +165,7 @@ var T = /* @__PURE__ */ function() {
165
165
  n.type === "abort" && (this.aborted = !0, typeof this.onabort == "function" && this.onabort.call(this, n)), y(d(t.prototype), "dispatchEvent", this).call(this, n);
166
166
  }
167
167
  }]), t;
168
- }(T), k = /* @__PURE__ */ function() {
168
+ }(P), j = /* @__PURE__ */ function() {
169
169
  function r() {
170
170
  A(this, r), Object.defineProperty(this, "signal", {
171
171
  value: new R(),
@@ -205,7 +205,7 @@ var T = /* @__PURE__ */ function() {
205
205
  }
206
206
  }]), r;
207
207
  }();
208
- typeof Symbol < "u" && Symbol.toStringTag && (k.prototype[Symbol.toStringTag] = "AbortController", R.prototype[Symbol.toStringTag] = "AbortSignal");
208
+ typeof Symbol < "u" && Symbol.toStringTag && (j.prototype[Symbol.toStringTag] = "AbortController", R.prototype[Symbol.toStringTag] = "AbortSignal");
209
209
  function Q(r) {
210
210
  return r.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL ? (console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"), !0) : typeof r.Request == "function" && !r.Request.prototype.hasOwnProperty("signal") || !r.AbortController;
211
211
  }
@@ -236,7 +236,7 @@ function H(r) {
236
236
  value: f
237
237
  }), u;
238
238
  }, l.prototype = n.prototype);
239
- var L = t, N = function(b, s) {
239
+ var L = t, z = function(b, s) {
240
240
  var f = l && l.prototype.isPrototypeOf(b) ? b.signal : s ? s.signal : void 0;
241
241
  if (f) {
242
242
  var u;
@@ -247,28 +247,28 @@ function H(r) {
247
247
  }
248
248
  if (f.aborted)
249
249
  return Promise.reject(u);
250
- var q = new Promise(function(I, x) {
250
+ var M = new Promise(function(q, I) {
251
251
  f.addEventListener("abort", function() {
252
- return x(u);
252
+ return I(u);
253
253
  }, {
254
254
  once: !0
255
255
  });
256
256
  });
257
- return s && s.signal && delete s.signal, Promise.race([q, L(b, s)]);
257
+ return s && s.signal && delete s.signal, Promise.race([M, L(b, s)]);
258
258
  }
259
259
  return L(b, s);
260
260
  };
261
261
  return {
262
- fetch: N,
262
+ fetch: z,
263
263
  Request: l
264
264
  };
265
265
  }
266
- g.AbortController = k;
266
+ g.AbortController = j;
267
267
  g.AbortSignal = R;
268
268
  g.abortableFetch = H;
269
269
  Object.defineProperty(h, "__esModule", { value: !0 });
270
270
  h.AbortSignal = h.AbortController = void 0;
271
- const F = g;
271
+ const k = g;
272
272
  var _ = function() {
273
273
  if (typeof self < "u")
274
274
  return self;
@@ -278,9 +278,9 @@ var _ = function() {
278
278
  return globalThis;
279
279
  throw new Error("unable to locate global object");
280
280
  };
281
- let J = typeof _().AbortController > "u" ? F.AbortController : _().AbortController;
281
+ let J = typeof _().AbortController > "u" ? k.AbortController : _().AbortController;
282
282
  h.AbortController = J;
283
- let K = typeof _().AbortController > "u" ? F.AbortSignal : _().AbortSignal;
283
+ let K = typeof _().AbortController > "u" ? k.AbortSignal : _().AbortSignal;
284
284
  h.AbortSignal = K;
285
285
  var S = {};
286
286
  Object.defineProperty(S, "__esModule", { value: !0 });
@@ -332,11 +332,11 @@ class Z {
332
332
  }
333
333
  }
334
334
  C.default = Z;
335
- var z = v && v.__importDefault || function(r) {
335
+ var F = v && v.__importDefault || function(r) {
336
336
  return r && r.__esModule ? r : { default: r };
337
337
  };
338
338
  Object.defineProperty(m, "__esModule", { value: !0 });
339
- const ee = h, te = z(S), re = z(C);
339
+ const ee = h, te = F(S), re = F(C);
340
340
  class O {
341
341
  constructor({ fill: e, cache: t }) {
342
342
  if (typeof e != "function")
@@ -445,9 +445,9 @@ m.default = O;
445
445
  var oe = v && v.__importDefault || function(r) {
446
446
  return r && r.__esModule ? r : { default: r };
447
447
  };
448
- Object.defineProperty(j, "__esModule", { value: !0 });
448
+ Object.defineProperty(T, "__esModule", { value: !0 });
449
449
  const ne = oe(m);
450
- var se = j.default = ne.default;
450
+ var se = T.default = ne.default;
451
451
  class ae {
452
452
  constructor(e = {}) {
453
453
  if (!(e.maxSize && e.maxSize > 0))
@@ -508,7 +508,7 @@ class ae {
508
508
  }
509
509
  }
510
510
  var ie = ae;
511
- const ce = /* @__PURE__ */ D(ie);
511
+ const ce = /* @__PURE__ */ x(ie);
512
512
  export {
513
513
  ce as L,
514
514
  se as _