barcode-detector 2.2.8 → 2.2.9

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/es/pure.js CHANGED
@@ -27,10 +27,10 @@ const er = [
27
27
  "UPC-A",
28
28
  "UPC-E"
29
29
  ];
30
- function Ua(o) {
30
+ function Va(o) {
31
31
  return o.join("|");
32
32
  }
33
- function La(o) {
33
+ function Ua(o) {
34
34
  const f = rr(o);
35
35
  let p = 0, y = er.length - 1;
36
36
  for (; p <= y; ) {
@@ -44,7 +44,7 @@ function La(o) {
44
44
  function rr(o) {
45
45
  return o.toLowerCase().replace(/_-\[\]/g, "");
46
46
  }
47
- function Va(o, f) {
47
+ function La(o, f) {
48
48
  return o.Binarizer[f];
49
49
  }
50
50
  function za(o, f) {
@@ -91,8 +91,8 @@ const st = {
91
91
  function ar(o, f) {
92
92
  return {
93
93
  ...f,
94
- formats: Ua(f.formats),
95
- binarizer: Va(o, f.binarizer),
94
+ formats: Va(f.formats),
95
+ binarizer: La(o, f.binarizer),
96
96
  eanAddOnSymbol: Xa(
97
97
  o,
98
98
  f.eanAddOnSymbol
@@ -107,7 +107,7 @@ function ar(o, f) {
107
107
  function or(o) {
108
108
  return {
109
109
  ...o,
110
- format: La(o.format),
110
+ format: Ua(o.format),
111
111
  eccLevel: o.eccLevel,
112
112
  contentType: Ga(o.contentType)
113
113
  };
@@ -175,9 +175,9 @@ async function Ja(o, f, p = st) {
175
175
  );
176
176
  c._free(W);
177
177
  const N = [];
178
- for (let U = 0; U < R.size(); ++U)
178
+ for (let V = 0; V < R.size(); ++V)
179
179
  N.push(
180
- or(R.get(U))
180
+ or(R.get(V))
181
181
  );
182
182
  return N;
183
183
  }
@@ -192,7 +192,7 @@ var Ht = (() => {
192
192
  g = e, j = t;
193
193
  }), H = typeof window == "object", W = typeof Bun < "u", R = typeof importScripts == "function";
194
194
  typeof process == "object" && typeof process.versions == "object" && process.versions.node;
195
- var N = Object.assign({}, c), U = "./this.program", M = "";
195
+ var N = Object.assign({}, c), V = "./this.program", M = "";
196
196
  function bt(e) {
197
197
  return c.locateFile ? c.locateFile(e, M) : M + e;
198
198
  }
@@ -203,35 +203,35 @@ var Ht = (() => {
203
203
  }), ut = (e) => fetch(e, {
204
204
  credentials: "same-origin"
205
205
  }).then((t) => t.ok ? t.arrayBuffer() : Promise.reject(new Error(t.status + " : " + t.url))));
206
- var Ut = c.print || console.log.bind(console), rt = c.printErr || console.error.bind(console);
207
- Object.assign(c, N), N = null, c.arguments && c.arguments, c.thisProgram && (U = c.thisProgram), c.quit && c.quit;
206
+ var Vt = c.print || console.log.bind(console), rt = c.printErr || console.error.bind(console);
207
+ Object.assign(c, N), N = null, c.arguments && c.arguments, c.thisProgram && (V = c.thisProgram), c.quit && c.quit;
208
208
  var lt;
209
209
  c.wasmBinary && (lt = c.wasmBinary);
210
- var Ct, le = !1, L, F, nt, dt, Z, b, de, fe;
210
+ var Ct, le = !1, U, F, nt, dt, Z, b, de, fe;
211
211
  function he() {
212
212
  var e = Ct.buffer;
213
- c.HEAP8 = L = new Int8Array(e), c.HEAP16 = nt = new Int16Array(e), c.HEAPU8 = F = new Uint8Array(e), c.HEAPU16 = dt = new Uint16Array(e), c.HEAP32 = Z = new Int32Array(e), c.HEAPU32 = b = new Uint32Array(e), c.HEAPF32 = de = new Float32Array(e), c.HEAPF64 = fe = new Float64Array(e);
213
+ c.HEAP8 = U = new Int8Array(e), c.HEAP16 = nt = new Int16Array(e), c.HEAPU8 = F = new Uint8Array(e), c.HEAPU16 = dt = new Uint16Array(e), c.HEAP32 = Z = new Int32Array(e), c.HEAPU32 = b = new Uint32Array(e), c.HEAPF32 = de = new Float32Array(e), c.HEAPF64 = fe = new Float64Array(e);
214
214
  }
215
215
  var pe = [], ve = [], me = [];
216
216
  function mr() {
217
217
  if (c.preRun)
218
218
  for (typeof c.preRun == "function" && (c.preRun = [c.preRun]); c.preRun.length; )
219
- $r(c.preRun.shift());
220
- Vt(pe);
219
+ wr(c.preRun.shift());
220
+ Lt(pe);
221
221
  }
222
222
  function yr() {
223
- Vt(ve);
223
+ Lt(ve);
224
224
  }
225
225
  function gr() {
226
226
  if (c.postRun)
227
227
  for (typeof c.postRun == "function" && (c.postRun = [c.postRun]); c.postRun.length; )
228
228
  br(c.postRun.shift());
229
- Vt(me);
229
+ Lt(me);
230
230
  }
231
- function $r(e) {
231
+ function wr(e) {
232
232
  pe.unshift(e);
233
233
  }
234
- function wr(e) {
234
+ function $r(e) {
235
235
  ve.unshift(e);
236
236
  }
237
237
  function br(e) {
@@ -249,7 +249,7 @@ var Ht = (() => {
249
249
  ft = null, r();
250
250
  }
251
251
  }
252
- function Lt(e) {
252
+ function Ut(e) {
253
253
  var t;
254
254
  (t = c.onAbort) === null || t === void 0 || t.call(c, e), e = "Aborted(" + e + ")", rt(e), le = !0, e += ". Build with -sASSERTIONS for more info.";
255
255
  var r = new WebAssembly.RuntimeError(e);
@@ -271,9 +271,9 @@ var Ht = (() => {
271
271
  function _r(e) {
272
272
  return lt ? Promise.resolve().then(() => ge(e)) : ut(e).then((t) => new Uint8Array(t), () => ge(e));
273
273
  }
274
- function $e(e, t, r) {
274
+ function we(e, t, r) {
275
275
  return _r(e).then((n) => WebAssembly.instantiate(n, t)).then(r, (n) => {
276
- rt(`failed to asynchronously prepare wasm: ${n}`), Lt(n);
276
+ rt(`failed to asynchronously prepare wasm: ${n}`), Ut(n);
277
277
  });
278
278
  }
279
279
  function Ar(e, t, r, n) {
@@ -282,9 +282,9 @@ var Ht = (() => {
282
282
  }).then((a) => {
283
283
  var i = WebAssembly.instantiateStreaming(a, r);
284
284
  return i.then(n, function(u) {
285
- return rt(`wasm streaming compile failed: ${u}`), rt("falling back to ArrayBuffer instantiation"), $e(t, r, n);
285
+ return rt(`wasm streaming compile failed: ${u}`), rt("falling back to ArrayBuffer instantiation"), we(t, r, n);
286
286
  });
287
- }) : $e(t, r, n);
287
+ }) : we(t, r, n);
288
288
  }
289
289
  function xr() {
290
290
  return {
@@ -294,7 +294,7 @@ var Ht = (() => {
294
294
  function Dr() {
295
295
  var e = xr();
296
296
  function t(n, a) {
297
- return P = n.exports, Ct = P.ma, he(), xe = P.qa, wr(P.na), Tr(), P;
297
+ return P = n.exports, Ct = P.ma, he(), xe = P.qa, $r(P.na), Tr(), P;
298
298
  }
299
299
  Cr();
300
300
  function r(n) {
@@ -308,18 +308,18 @@ var Ht = (() => {
308
308
  }
309
309
  return Tt || (Tt = Er()), Ar(lt, Tt, e, r).catch(j), {};
310
310
  }
311
- var Vt = (e) => {
311
+ var Lt = (e) => {
312
312
  for (; e.length > 0; )
313
313
  e.shift()(c);
314
314
  };
315
315
  c.noExitRuntime;
316
316
  var _ = (e) => Be(e), A = () => He(), Pt = [], Et = 0, Fr = (e) => {
317
317
  var t = new zt(e);
318
- return t.get_caught() || (t.set_caught(!0), Et--), t.set_rethrown(!1), Pt.push(t), Le(t.excPtr), t.get_exception_ptr();
318
+ return t.get_caught() || (t.set_caught(!0), Et--), t.set_rethrown(!1), Pt.push(t), Ue(t.excPtr), t.get_exception_ptr();
319
319
  }, G = 0, Or = () => {
320
320
  C(0, 0);
321
321
  var e = Pt.pop();
322
- Ue(e.excPtr), G = 0;
322
+ Ve(e.excPtr), G = 0;
323
323
  };
324
324
  class zt {
325
325
  constructor(t) {
@@ -338,16 +338,16 @@ var Ht = (() => {
338
338
  return b[this.ptr + 8 >> 2];
339
339
  }
340
340
  set_caught(t) {
341
- t = t ? 1 : 0, L[this.ptr + 12] = t;
341
+ t = t ? 1 : 0, U[this.ptr + 12] = t;
342
342
  }
343
343
  get_caught() {
344
- return L[this.ptr + 12] != 0;
344
+ return U[this.ptr + 12] != 0;
345
345
  }
346
346
  set_rethrown(t) {
347
- t = t ? 1 : 0, L[this.ptr + 13] = t;
347
+ t = t ? 1 : 0, U[this.ptr + 13] = t;
348
348
  }
349
349
  get_rethrown() {
350
- return L[this.ptr + 13] != 0;
350
+ return U[this.ptr + 13] != 0;
351
351
  }
352
352
  init(t, r) {
353
353
  this.set_adjusted_ptr(0), this.set_type(t), this.set_destructor(r);
@@ -381,20 +381,20 @@ var Ht = (() => {
381
381
  if (a === 0 || a === n)
382
382
  break;
383
383
  var i = r.ptr + 16;
384
- if (Ve(a, n, i))
384
+ if (Le(a, n, i))
385
385
  return _t(a), t;
386
386
  }
387
387
  return _t(n), t;
388
388
  }, jr = () => Nt([]), Ir = (e) => Nt([e]), Rr = (e, t) => Nt([e, t]), Mr = () => {
389
389
  var e = Pt.pop();
390
- e || Lt("no exception to throw");
390
+ e || Ut("no exception to throw");
391
391
  var t = e.excPtr;
392
392
  throw e.get_rethrown() || (Pt.push(e), e.set_rethrown(!0), e.set_caught(!1), Et++), G = t, G;
393
393
  }, Wr = (e, t, r) => {
394
394
  var n = new zt(e);
395
395
  throw n.init(t, r), G = e, Et++, G;
396
396
  }, kr = () => Et, Br = () => {
397
- Lt("");
397
+ Ut("");
398
398
  }, At = {}, Gt = (e) => {
399
399
  for (; e.length; ) {
400
400
  var t = e.pop(), r = e.pop();
@@ -404,8 +404,8 @@ var Ht = (() => {
404
404
  function ht(e) {
405
405
  return this.fromWireType(b[e >> 2]);
406
406
  }
407
- var at = {}, K = {}, xt = {}, we, Dt = (e) => {
408
- throw new we(e);
407
+ var at = {}, K = {}, xt = {}, $e, Dt = (e) => {
408
+ throw new $e(e);
409
409
  }, tt = (e, t, r) => {
410
410
  e.forEach(function(s) {
411
411
  xt[s] = t;
@@ -414,7 +414,7 @@ var Ht = (() => {
414
414
  var l = r(s);
415
415
  l.length !== e.length && Dt("Mismatched type converter count");
416
416
  for (var d = 0; d < e.length; ++d)
417
- V(e[d], l[d]);
417
+ L(e[d], l[d]);
418
418
  }
419
419
  var a = new Array(t.length), i = [], u = 0;
420
420
  t.forEach((s, l) => {
@@ -429,9 +429,9 @@ var Ht = (() => {
429
429
  tt([e], i, (u) => {
430
430
  var s = {};
431
431
  return a.forEach((l, d) => {
432
- var h = l.fieldName, v = u[d], m = l.getter, $ = l.getterContext, x = u[d + a.length], O = l.setter, E = l.setterContext;
432
+ var h = l.fieldName, v = u[d], m = l.getter, w = l.getterContext, x = u[d + a.length], O = l.setter, E = l.setterContext;
433
433
  s[h] = {
434
- read: (S) => v.fromWireType(m($, S)),
434
+ read: (S) => v.fromWireType(m(w, S)),
435
435
  write: (S, et) => {
436
436
  var I = [];
437
437
  O(E, S, x.toWireType(I, et)), Gt(I);
@@ -459,8 +459,8 @@ var Ht = (() => {
459
459
  destructorFunction: n
460
460
  }];
461
461
  });
462
- }, Ur = (e, t, r, n, a) => {
463
- }, Lr = () => {
462
+ }, Vr = (e, t, r, n, a) => {
463
+ }, Ur = () => {
464
464
  for (var e = new Array(256), t = 0; t < 256; ++t)
465
465
  e[t] = String.fromCharCode(t);
466
466
  be = e;
@@ -468,30 +468,30 @@ var Ht = (() => {
468
468
  for (var t = "", r = e; F[r]; )
469
469
  t += be[F[r++]];
470
470
  return t;
471
- }, ot, w = (e) => {
471
+ }, ot, $ = (e) => {
472
472
  throw new ot(e);
473
473
  };
474
- function Vr(e, t) {
474
+ function Lr(e, t) {
475
475
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
476
476
  var n = t.name;
477
- if (e || w(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(e)) {
477
+ if (e || $(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(e)) {
478
478
  if (r.ignoreDuplicateRegistrations)
479
479
  return;
480
- w(`Cannot register type '${n}' twice`);
480
+ $(`Cannot register type '${n}' twice`);
481
481
  }
482
482
  if (K[e] = t, delete xt[e], at.hasOwnProperty(e)) {
483
483
  var a = at[e];
484
484
  delete at[e], a.forEach((i) => i());
485
485
  }
486
486
  }
487
- function V(e, t) {
487
+ function L(e, t) {
488
488
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
489
489
  if (!("argPackAdvance" in t))
490
490
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
491
- return Vr(e, t, r);
491
+ return Lr(e, t, r);
492
492
  }
493
493
  var z = 8, zr = (e, t, r, n) => {
494
- t = D(t), V(e, {
494
+ t = D(t), L(e, {
495
495
  name: t,
496
496
  fromWireType: function(a) {
497
497
  return !!a;
@@ -517,7 +517,7 @@ var Ht = (() => {
517
517
  function t(r) {
518
518
  return r.$$.ptrType.registeredClass.name;
519
519
  }
520
- w(t(e) + " instance already deleted");
520
+ $(t(e) + " instance already deleted");
521
521
  }, qt = !1, Ce = (e) => {
522
522
  }, Gr = (e) => {
523
523
  e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
@@ -547,7 +547,7 @@ var Ht = (() => {
547
547
  }, Qr = () => {
548
548
  c.getInheritedInstanceCount = Xr, c.getLiveInheritedInstances = qr, c.flushPendingDeletes = Yt, c.setDelayFunction = Yr;
549
549
  }, mt = {}, Zr = (e, t) => {
550
- for (t === void 0 && w("ptr should not be undefined"); e.baseClass; )
550
+ for (t === void 0 && $("ptr should not be undefined"); e.baseClass; )
551
551
  t = e.upcast(t), e = e.baseClass;
552
552
  return t;
553
553
  }, Jr = (e, t) => (t = Zr(e, t), mt[t]), Ft = (e, t) => {
@@ -635,13 +635,13 @@ var Ht = (() => {
635
635
  return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
636
636
  },
637
637
  delete() {
638
- this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && w("Object already scheduled for deletion"), Ce(this), Te(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
638
+ this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), Ce(this), Te(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
639
639
  },
640
640
  isDeleted() {
641
641
  return !this.$$.ptr;
642
642
  },
643
643
  deleteLater() {
644
- return this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && w("Object already scheduled for deletion"), pt.push(this), pt.length === 1 && vt && vt(Yt), this.$$.deleteScheduled = !0, this;
644
+ return this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), pt.push(this), pt.length === 1 && vt && vt(Yt), this.$$.deleteScheduled = !0, this;
645
645
  }
646
646
  });
647
647
  };
@@ -655,11 +655,11 @@ var Ht = (() => {
655
655
  e[t] = function() {
656
656
  for (var a = arguments.length, i = new Array(a), u = 0; u < a; u++)
657
657
  i[u] = arguments[u];
658
- return e[t].overloadTable.hasOwnProperty(i.length) || w(`Function '${r}' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[i.length].apply(this, i);
658
+ return e[t].overloadTable.hasOwnProperty(i.length) || $(`Function '${r}' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[i.length].apply(this, i);
659
659
  }, e[t].overloadTable = [], e[t].overloadTable[n.argCount] = n;
660
660
  }
661
661
  }, Qt = (e, t, r) => {
662
- c.hasOwnProperty(e) ? ((r === void 0 || c[e].overloadTable !== void 0 && c[e].overloadTable[r] !== void 0) && w(`Cannot register public name '${e}' twice`), _e(c, e, e), c.hasOwnProperty(r) && w(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), c[e].overloadTable[r] = t) : (c[e] = t, r !== void 0 && (c[e].numArguments = r));
662
+ c.hasOwnProperty(e) ? ((r === void 0 || c[e].overloadTable !== void 0 && c[e].overloadTable[r] !== void 0) && $(`Cannot register public name '${e}' twice`), _e(c, e, e), c.hasOwnProperty(r) && $(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), c[e].overloadTable[r] = t) : (c[e] = t, r !== void 0 && (c[e].numArguments = r));
663
663
  }, en = 48, rn = 57, nn = (e) => {
664
664
  if (e === void 0)
665
665
  return "_unknown";
@@ -672,26 +672,26 @@ var Ht = (() => {
672
672
  }
673
673
  var Zt = (e, t, r) => {
674
674
  for (; t !== r; )
675
- t.upcast || w(`Expected null or instance of ${r.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
675
+ t.upcast || $(`Expected null or instance of ${r.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
676
676
  return e;
677
677
  };
678
678
  function on(e, t) {
679
679
  if (t === null)
680
- return this.isReference && w(`null is not a valid ${this.name}`), 0;
681
- t.$$ || w(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || w(`Cannot pass deleted object as a pointer of type ${this.name}`);
680
+ return this.isReference && $(`null is not a valid ${this.name}`), 0;
681
+ t.$$ || $(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`);
682
682
  var r = t.$$.ptrType.registeredClass, n = Zt(t.$$.ptr, r, this.registeredClass);
683
683
  return n;
684
684
  }
685
685
  function sn(e, t) {
686
686
  var r;
687
687
  if (t === null)
688
- return this.isReference && w(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), e !== null && e.push(this.rawDestructor, r), r) : 0;
689
- (!t || !t.$$) && w(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || w(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && w(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
688
+ return this.isReference && $(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), e !== null && e.push(this.rawDestructor, r), r) : 0;
689
+ (!t || !t.$$) && $(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && $(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
690
690
  var n = t.$$.ptrType.registeredClass;
691
691
  if (r = Zt(t.$$.ptr, n, this.registeredClass), this.isSmartPointer)
692
- switch (t.$$.smartPtr === void 0 && w("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
692
+ switch (t.$$.smartPtr === void 0 && $("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
693
693
  case 0:
694
- t.$$.smartPtrType === this ? r = t.$$.smartPtr : w(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
694
+ t.$$.smartPtrType === this ? r = t.$$.smartPtr : $(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
695
695
  break;
696
696
  case 1:
697
697
  r = t.$$.smartPtr;
@@ -705,14 +705,14 @@ var Ht = (() => {
705
705
  }
706
706
  break;
707
707
  default:
708
- w("Unsupporting sharing policy");
708
+ $("Unsupporting sharing policy");
709
709
  }
710
710
  return r;
711
711
  }
712
712
  function un(e, t) {
713
713
  if (t === null)
714
- return this.isReference && w(`null is not a valid ${this.name}`), 0;
715
- t.$$ || w(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || w(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && w(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
714
+ return this.isReference && $(`null is not a valid ${this.name}`), 0;
715
+ t.$$ || $(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && $(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
716
716
  var r = t.$$.ptrType.registeredClass, n = Zt(t.$$.ptr, r, this.registeredClass);
717
717
  return n;
718
718
  }
@@ -758,7 +758,7 @@ var Ht = (() => {
758
758
  return e.includes("j") ? fn(e, t) : T(t);
759
759
  }
760
760
  var n = r();
761
- return typeof n != "function" && w(`unknown function pointer with signature ${e}: ${t}`), n;
761
+ return typeof n != "function" && $(`unknown function pointer with signature ${e}: ${t}`), n;
762
762
  }, hn = (e, t) => {
763
763
  var r = gt(t, function(n) {
764
764
  this.name = t, this.message = n;
@@ -786,8 +786,8 @@ var Ht = (() => {
786
786
  throw t.forEach(a), new De(`${e}: ` + r.map(Fe).join([", "]));
787
787
  }, pn = (e, t, r, n, a, i, u, s, l, d, h, v, m) => {
788
788
  h = D(h), i = B(a, i), s && (s = B(u, s)), d && (d = B(l, d)), m = B(v, m);
789
- var $ = nn(h);
790
- Qt($, function() {
789
+ var w = nn(h);
790
+ Qt(w, function() {
791
791
  It(`Cannot construct ${h} due to unbound types`, [n]);
792
792
  }), tt([e, t, r], n ? [n] : [], (x) => {
793
793
  x = x[0];
@@ -819,7 +819,7 @@ var Ht = (() => {
819
819
  return Ee[e] = {
820
820
  pointerType: Xe,
821
821
  constPointerType: qe
822
- }, Ae($, S), [Ha, Xe, qe];
822
+ }, Ae(w, S), [Ha, Xe, qe];
823
823
  });
824
824
  }, Jt = (e, t) => {
825
825
  for (var r = [], n = 0; n < e; n++)
@@ -834,17 +834,17 @@ var Ht = (() => {
834
834
  }
835
835
  function Kt(e, t, r, n, a, i) {
836
836
  var u = t.length;
837
- u < 2 && w("argTypes array size mismatch! Must at least get return value and 'this' types!");
838
- var s = t[1] !== null && r !== null, l = vn(t), d = t[0].name !== "void", h = u - 2, v = new Array(h), m = [], $ = [], x = function() {
839
- arguments.length !== h && w(`function ${e} called with ${arguments.length} arguments, expected ${h}`), $.length = 0;
837
+ u < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!");
838
+ var s = t[1] !== null && r !== null, l = vn(t), d = t[0].name !== "void", h = u - 2, v = new Array(h), m = [], w = [], x = function() {
839
+ arguments.length !== h && $(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0;
840
840
  var O;
841
- m.length = s ? 2 : 1, m[0] = a, s && (O = t[1].toWireType($, this), m[1] = O);
841
+ m.length = s ? 2 : 1, m[0] = a, s && (O = t[1].toWireType(w, this), m[1] = O);
842
842
  for (var E = 0; E < h; ++E)
843
- v[E] = t[E + 2].toWireType($, E < 0 || arguments.length <= E ? void 0 : arguments[E]), m.push(v[E]);
843
+ v[E] = t[E + 2].toWireType(w, E < 0 || arguments.length <= E ? void 0 : arguments[E]), m.push(v[E]);
844
844
  var S = n(...m);
845
845
  function et(I) {
846
846
  if (l)
847
- Gt($);
847
+ Gt(w);
848
848
  else
849
849
  for (var Q = s ? 1 : 2; Q < t.length; Q++) {
850
850
  var Mt = Q === 1 ? O : v[Q - 2];
@@ -881,18 +881,18 @@ var Ht = (() => {
881
881
  function m() {
882
882
  It(`Cannot call ${v} due to unbound types`, d);
883
883
  }
884
- var $ = h.registeredClass.instancePrototype, x = $[t];
885
- return x === void 0 || x.overloadTable === void 0 && x.className !== h.name && x.argCount === r - 2 ? (m.argCount = r - 2, m.className = h.name, $[t] = m) : (_e($, t, v), $[t].overloadTable[r - 2] = m), tt([], d, (O) => {
884
+ var w = h.registeredClass.instancePrototype, x = w[t];
885
+ return x === void 0 || x.overloadTable === void 0 && x.className !== h.name && x.argCount === r - 2 ? (m.argCount = r - 2, m.className = h.name, w[t] = m) : (_e(w, t, v), w[t].overloadTable[r - 2] = m), tt([], d, (O) => {
886
886
  var E = Kt(v, O, h, i, u);
887
- return $[t].overloadTable === void 0 ? (E.argCount = r - 2, $[t] = E) : $[t].overloadTable[r - 2] = E, [];
887
+ return w[t].overloadTable === void 0 ? (E.argCount = r - 2, w[t] = E) : w[t].overloadTable[r - 2] = E, [];
888
888
  }), [];
889
889
  });
890
890
  }, te = [], X = [], ee = (e) => {
891
891
  e > 9 && --X[e + 1] === 0 && (X[e] = void 0, te.push(e));
892
- }, gn = () => X.length / 2 - 5 - te.length, $n = () => {
892
+ }, gn = () => X.length / 2 - 5 - te.length, wn = () => {
893
893
  X.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), c.count_emval_handles = gn;
894
894
  }, q = {
895
- toValue: (e) => (e || w("Cannot use deleted val. handle = " + e), X[e]),
895
+ toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), X[e]),
896
896
  toHandle: (e) => {
897
897
  switch (e) {
898
898
  case void 0:
@@ -909,7 +909,7 @@ var Ht = (() => {
909
909
  }
910
910
  }
911
911
  }
912
- }, wn = {
912
+ }, $n = {
913
913
  name: "emscripten::val",
914
914
  fromWireType: (e) => {
915
915
  var t = q.toValue(e);
@@ -919,11 +919,11 @@ var Ht = (() => {
919
919
  argPackAdvance: z,
920
920
  readValueFromPointer: ht,
921
921
  destructorFunction: null
922
- }, Se = (e) => V(e, wn), bn = (e, t, r) => {
922
+ }, Se = (e) => L(e, $n), bn = (e, t, r) => {
923
923
  switch (t) {
924
924
  case 1:
925
925
  return r ? function(n) {
926
- return this.fromWireType(L[n]);
926
+ return this.fromWireType(U[n]);
927
927
  } : function(n) {
928
928
  return this.fromWireType(F[n]);
929
929
  };
@@ -946,7 +946,7 @@ var Ht = (() => {
946
946
  t = D(t);
947
947
  function a() {
948
948
  }
949
- a.values = {}, V(e, {
949
+ a.values = {}, L(e, {
950
950
  name: t,
951
951
  constructor: a,
952
952
  fromWireType: function(i) {
@@ -959,7 +959,7 @@ var Ht = (() => {
959
959
  }), Qt(t, a);
960
960
  }, re = (e, t) => {
961
961
  var r = K[e];
962
- return r === void 0 && w(`${t} has unknown type ${Fe(e)}`), r;
962
+ return r === void 0 && $(`${t} has unknown type ${Fe(e)}`), r;
963
963
  }, Tn = (e, t, r) => {
964
964
  var n = re(e, "enum");
965
965
  t = D(t);
@@ -992,7 +992,7 @@ var Ht = (() => {
992
992
  throw new TypeError(`invalid float width (${t}): ${e}`);
993
993
  }
994
994
  }, En = (e, t, r) => {
995
- t = D(t), V(e, {
995
+ t = D(t), L(e, {
996
996
  name: t,
997
997
  fromWireType: (n) => n,
998
998
  toWireType: (n, a) => a,
@@ -1011,7 +1011,7 @@ var Ht = (() => {
1011
1011
  }, An = (e, t, r) => {
1012
1012
  switch (t) {
1013
1013
  case 1:
1014
- return r ? (n) => L[n] : (n) => F[n];
1014
+ return r ? (n) => U[n] : (n) => F[n];
1015
1015
  case 2:
1016
1016
  return r ? (n) => nt[n >> 1] : (n) => dt[n >> 1];
1017
1017
  case 4:
@@ -1032,7 +1032,7 @@ var Ht = (() => {
1032
1032
  return l(v, this.name), v >>> 0;
1033
1033
  } : d = function(h, v) {
1034
1034
  return l(v, this.name), v;
1035
- }, V(e, {
1035
+ }, L(e, {
1036
1036
  name: t,
1037
1037
  fromWireType: i,
1038
1038
  toWireType: d,
@@ -1044,9 +1044,9 @@ var Ht = (() => {
1044
1044
  var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[t];
1045
1045
  function i(u) {
1046
1046
  var s = b[u >> 2], l = b[u + 4 >> 2];
1047
- return new a(L.buffer, l, s);
1047
+ return new a(U.buffer, l, s);
1048
1048
  }
1049
- r = D(r), V(e, {
1049
+ r = D(r), L(e, {
1050
1050
  name: r,
1051
1051
  fromWireType: i,
1052
1052
  argPackAdvance: z,
@@ -1079,7 +1079,7 @@ var Ht = (() => {
1079
1079
  }
1080
1080
  }
1081
1081
  return t[r] = 0, r - a;
1082
- }, $t = (e, t, r) => On(e, F, t, r), Sn = (e) => {
1082
+ }, wt = (e, t, r) => On(e, F, t, r), Sn = (e) => {
1083
1083
  for (var t = 0, r = 0; r < e.length; ++r) {
1084
1084
  var n = e.charCodeAt(r);
1085
1085
  n <= 127 ? t++ : n <= 2047 ? t += 2 : n >= 55296 && n <= 57343 ? (t += 4, ++r) : t += 3;
@@ -1112,7 +1112,7 @@ var Ht = (() => {
1112
1112
  }, jn = (e, t) => e ? Ie(F, e, t) : "", In = (e, t) => {
1113
1113
  t = D(t);
1114
1114
  var r = t === "std::string";
1115
- V(e, {
1115
+ L(e, {
1116
1116
  name: t,
1117
1117
  fromWireType(n) {
1118
1118
  var a = b[n >> 2], i = n + 4, u;
@@ -1134,14 +1134,14 @@ var Ht = (() => {
1134
1134
  toWireType(n, a) {
1135
1135
  a instanceof ArrayBuffer && (a = new Uint8Array(a));
1136
1136
  var i, u = typeof a == "string";
1137
- u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || w("Cannot pass non-string to std::string"), r && u ? i = Sn(a) : i = a.length;
1137
+ u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || $("Cannot pass non-string to std::string"), r && u ? i = Sn(a) : i = a.length;
1138
1138
  var s = ie(4 + i + 1), l = s + 4;
1139
1139
  if (b[s >> 2] = i, r && u)
1140
- $t(a, l, i + 1);
1140
+ wt(a, l, i + 1);
1141
1141
  else if (u)
1142
1142
  for (var d = 0; d < i; ++d) {
1143
1143
  var h = a.charCodeAt(d);
1144
- h > 255 && (Y(l), w("String has UTF-16 code units that do not fit in 8 bits")), F[l + d] = h;
1144
+ h > 255 && (Y(l), $("String has UTF-16 code units that do not fit in 8 bits")), F[l + d] = h;
1145
1145
  }
1146
1146
  else
1147
1147
  for (var d = 0; d < i; ++d)
@@ -1201,23 +1201,23 @@ var Ht = (() => {
1201
1201
  n >= 55296 && n <= 57343 && ++r, t += 4;
1202
1202
  }
1203
1203
  return t;
1204
- }, Un = (e, t, r) => {
1204
+ }, Vn = (e, t, r) => {
1205
1205
  r = D(r);
1206
1206
  var n, a, i, u;
1207
- t === 2 ? (n = Rn, a = Mn, u = Wn, i = (s) => dt[s >> 1]) : t === 4 && (n = kn, a = Bn, u = Hn, i = (s) => b[s >> 2]), V(e, {
1207
+ t === 2 ? (n = Rn, a = Mn, u = Wn, i = (s) => dt[s >> 1]) : t === 4 && (n = kn, a = Bn, u = Hn, i = (s) => b[s >> 2]), L(e, {
1208
1208
  name: r,
1209
1209
  fromWireType: (s) => {
1210
1210
  for (var l = b[s >> 2], d, h = s + 4, v = 0; v <= l; ++v) {
1211
1211
  var m = s + 4 + v * t;
1212
1212
  if (v == l || i(m) == 0) {
1213
- var $ = m - h, x = n(h, $);
1213
+ var w = m - h, x = n(h, w);
1214
1214
  d === void 0 ? d = x : (d += "\0", d += x), h = m + t;
1215
1215
  }
1216
1216
  }
1217
1217
  return Y(s), d;
1218
1218
  },
1219
1219
  toWireType: (s, l) => {
1220
- typeof l != "string" && w(`Cannot pass non-string to C++ string type ${r}`);
1220
+ typeof l != "string" && $(`Cannot pass non-string to C++ string type ${r}`);
1221
1221
  var d = u(l), h = ie(4 + d + t);
1222
1222
  return b[h >> 2] = d / t, a(l, h + 4, d + t), s !== null && s.push(Y, h), h;
1223
1223
  },
@@ -1227,14 +1227,14 @@ var Ht = (() => {
1227
1227
  Y(s);
1228
1228
  }
1229
1229
  });
1230
- }, Ln = (e, t, r, n, a, i) => {
1230
+ }, Un = (e, t, r, n, a, i) => {
1231
1231
  At[e] = {
1232
1232
  name: D(t),
1233
1233
  rawConstructor: B(r, n),
1234
1234
  rawDestructor: B(a, i),
1235
1235
  fields: []
1236
1236
  };
1237
- }, Vn = (e, t, r, n, a, i, u, s, l, d) => {
1237
+ }, Ln = (e, t, r, n, a, i, u, s, l, d) => {
1238
1238
  At[e].fields.push({
1239
1239
  fieldName: D(t),
1240
1240
  getterReturnType: r,
@@ -1245,7 +1245,7 @@ var Ht = (() => {
1245
1245
  setterContext: d
1246
1246
  });
1247
1247
  }, zn = (e, t) => {
1248
- t = D(t), V(e, {
1248
+ t = D(t), L(e, {
1249
1249
  isVoid: !0,
1250
1250
  name: t,
1251
1251
  argPackAdvance: 0,
@@ -1282,8 +1282,8 @@ var Ht = (() => {
1282
1282
  var n = Zn(e, t), a = n.shift();
1283
1283
  e--;
1284
1284
  var i = new Array(e), u = (l, d, h, v) => {
1285
- for (var m = 0, $ = 0; $ < e; ++$)
1286
- i[$] = n[$].readValueFromPointer(v + m), m += n[$].argPackAdvance;
1285
+ for (var m = 0, w = 0; w < e; ++w)
1286
+ i[w] = n[w].readValueFromPointer(v + m), m += n[w].argPackAdvance;
1287
1287
  var x = r === 1 ? Jn(d, i) : d.apply(l, i);
1288
1288
  return Kn(a, h, x);
1289
1289
  }, s = `methodCaller<(${n.map((l) => l.name).join(", ")}) => ${a.name}>`;
@@ -1300,11 +1300,11 @@ var Ht = (() => {
1300
1300
  }, aa = (e, t, r, n) => {
1301
1301
  var a = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(a, 0, 1), u = new Date(a, 6, 1), s = i.getTimezoneOffset(), l = u.getTimezoneOffset(), d = Math.max(s, l);
1302
1302
  b[e >> 2] = d * 60, Z[t >> 2] = +(s != l);
1303
- var h = ($) => {
1304
- var x = $ >= 0 ? "-" : "+", O = Math.abs($), E = String(Math.floor(O / 60)).padStart(2, "0"), S = String(O % 60).padStart(2, "0");
1303
+ var h = (w) => {
1304
+ var x = w >= 0 ? "-" : "+", O = Math.abs(w), E = String(Math.floor(O / 60)).padStart(2, "0"), S = String(O % 60).padStart(2, "0");
1305
1305
  return `UTC${x}${E}${S}`;
1306
1306
  }, v = h(s), m = h(l);
1307
- l < s ? ($t(v, r, 17), $t(m, n, 17)) : ($t(v, n, 17), $t(m, r, 17));
1307
+ l < s ? (wt(v, r, 17), wt(m, n, 17)) : (wt(v, n, 17), wt(m, r, 17));
1308
1308
  }, oa = () => 2147483648, ia = (e) => {
1309
1309
  var t = Ct.buffer, r = (e - t.byteLength + 65535) / 65536;
1310
1310
  try {
@@ -1325,8 +1325,8 @@ var Ht = (() => {
1325
1325
  return !0;
1326
1326
  }
1327
1327
  return !1;
1328
- }, oe = {}, ua = () => U || "./this.program", wt = () => {
1329
- if (!wt.strings) {
1328
+ }, oe = {}, ua = () => V || "./this.program", $t = () => {
1329
+ if (!$t.strings) {
1330
1330
  var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", t = {
1331
1331
  USER: "web_user",
1332
1332
  LOGNAME: "web_user",
@@ -1341,21 +1341,21 @@ var Ht = (() => {
1341
1341
  var n = [];
1342
1342
  for (var r in t)
1343
1343
  n.push(`${r}=${t[r]}`);
1344
- wt.strings = n;
1344
+ $t.strings = n;
1345
1345
  }
1346
- return wt.strings;
1346
+ return $t.strings;
1347
1347
  }, ca = (e, t) => {
1348
1348
  for (var r = 0; r < e.length; ++r)
1349
- L[t++] = e.charCodeAt(r);
1350
- L[t] = 0;
1349
+ U[t++] = e.charCodeAt(r);
1350
+ U[t] = 0;
1351
1351
  }, la = (e, t) => {
1352
1352
  var r = 0;
1353
- return wt().forEach((n, a) => {
1353
+ return $t().forEach((n, a) => {
1354
1354
  var i = t + r;
1355
1355
  b[e + a * 4 >> 2] = i, ca(n, i), r += n.length + 1;
1356
1356
  }), 0;
1357
1357
  }, da = (e, t) => {
1358
- var r = wt();
1358
+ var r = $t();
1359
1359
  b[e >> 2] = r.length;
1360
1360
  var n = 0;
1361
1361
  return r.forEach((a) => n += a.length + 1), b[t >> 2] = n, 0;
@@ -1365,7 +1365,7 @@ var Ht = (() => {
1365
1365
  }
1366
1366
  var pa = [null, [], []], va = (e, t) => {
1367
1367
  var r = pa[e];
1368
- t === 0 || t === 10 ? ((e === 1 ? Ut : rt)(Ie(r, 0)), r.length = 0) : r.push(t);
1368
+ t === 0 || t === 10 ? ((e === 1 ? Vt : rt)(Ie(r, 0)), r.length = 0) : r.push(t);
1369
1369
  }, ma = (e, t, r, n) => {
1370
1370
  for (var a = 0, i = 0; i < r; i++) {
1371
1371
  var u = b[t >> 2], s = b[t + 4 >> 2];
@@ -1376,15 +1376,15 @@ var Ht = (() => {
1376
1376
  }
1377
1377
  return b[n >> 2] = a, 0;
1378
1378
  }, ya = (e) => e;
1379
- we = c.InternalError = class extends Error {
1379
+ $e = c.InternalError = class extends Error {
1380
1380
  constructor(e) {
1381
1381
  super(e), this.name = "InternalError";
1382
1382
  }
1383
- }, Lr(), ot = c.BindingError = class extends Error {
1383
+ }, Ur(), ot = c.BindingError = class extends Error {
1384
1384
  constructor(e) {
1385
1385
  super(e), this.name = "BindingError";
1386
1386
  }
1387
- }, tn(), Qr(), cn(), De = c.UnboundTypeError = hn(Error, "UnboundTypeError"), $n();
1387
+ }, tn(), Qr(), cn(), De = c.UnboundTypeError = hn(Error, "UnboundTypeError"), wn();
1388
1388
  var ga = {
1389
1389
  s: Fr,
1390
1390
  v: Or,
@@ -1397,7 +1397,7 @@ var Ht = (() => {
1397
1397
  e: Sr,
1398
1398
  T: Br,
1399
1399
  ha: Hr,
1400
- S: Ur,
1400
+ S: Vr,
1401
1401
  ba: zr,
1402
1402
  fa: pn,
1403
1403
  ea: mn,
@@ -1411,9 +1411,9 @@ var Ht = (() => {
1411
1411
  o: Dn,
1412
1412
  ga: Fn,
1413
1413
  L: In,
1414
- C: Un,
1415
- B: Ln,
1416
- ia: Vn,
1414
+ C: Vn,
1415
+ B: Un,
1416
+ ia: Ln,
1417
1417
  ca: zn,
1418
1418
  $: Nn,
1419
1419
  E: Gn,
@@ -1434,7 +1434,7 @@ var Ht = (() => {
1434
1434
  D: Ta,
1435
1435
  G: ja,
1436
1436
  n: Ra,
1437
- a: $a,
1437
+ a: wa,
1438
1438
  d: Ea,
1439
1439
  p: Ca,
1440
1440
  j: Sa,
@@ -1446,17 +1446,17 @@ var Ht = (() => {
1446
1446
  l: _a,
1447
1447
  k: Pa,
1448
1448
  c: ba,
1449
- m: wa,
1449
+ m: $a,
1450
1450
  A: xa,
1451
1451
  r: Ma,
1452
1452
  i: Aa,
1453
1453
  y: ka,
1454
1454
  ja: ya
1455
- }, P = Dr(), We = (e) => (We = P.oa)(e), Y = c._free = (e) => (Y = c._free = P.pa)(e), ie = c._malloc = (e) => (ie = c._malloc = P.ra)(e), C = (e, t) => (C = P.sa)(e, t), ke = (e) => (ke = P.ta)(e), Be = (e) => (Be = P.ua)(e), He = () => (He = P.va)(), Ue = (e) => (Ue = P.wa)(e), Le = (e) => (Le = P.xa)(e), Ve = (e, t, r) => (Ve = P.ya)(e, t, r), ze = (e) => (ze = P.za)(e);
1455
+ }, P = Dr(), We = (e) => (We = P.oa)(e), Y = c._free = (e) => (Y = c._free = P.pa)(e), ie = c._malloc = (e) => (ie = c._malloc = P.ra)(e), C = (e, t) => (C = P.sa)(e, t), ke = (e) => (ke = P.ta)(e), Be = (e) => (Be = P.ua)(e), He = () => (He = P.va)(), Ve = (e) => (Ve = P.wa)(e), Ue = (e) => (Ue = P.xa)(e), Le = (e, t, r) => (Le = P.ya)(e, t, r), ze = (e) => (ze = P.za)(e);
1456
1456
  c.dynCall_viijii = (e, t, r, n, a, i, u) => (c.dynCall_viijii = P.Aa)(e, t, r, n, a, i, u), c.dynCall_jiji = (e, t, r, n, a) => (c.dynCall_jiji = P.Ba)(e, t, r, n, a);
1457
1457
  var Ne = c.dynCall_jiiii = (e, t, r, n, a) => (Ne = c.dynCall_jiiii = P.Ca)(e, t, r, n, a);
1458
1458
  c.dynCall_iiiiij = (e, t, r, n, a, i, u) => (c.dynCall_iiiiij = P.Da)(e, t, r, n, a, i, u), c.dynCall_iiiiijj = (e, t, r, n, a, i, u, s, l) => (c.dynCall_iiiiijj = P.Ea)(e, t, r, n, a, i, u, s, l), c.dynCall_iiiiiijj = (e, t, r, n, a, i, u, s, l, d) => (c.dynCall_iiiiiijj = P.Fa)(e, t, r, n, a, i, u, s, l, d);
1459
- function $a(e, t) {
1459
+ function wa(e, t) {
1460
1460
  var r = A();
1461
1461
  try {
1462
1462
  return T(e)(t);
@@ -1465,7 +1465,7 @@ var Ht = (() => {
1465
1465
  C(1, 0);
1466
1466
  }
1467
1467
  }
1468
- function wa(e, t, r, n) {
1468
+ function $a(e, t, r, n) {
1469
1469
  var a = A();
1470
1470
  try {
1471
1471
  T(e)(t, r, n);
@@ -1622,15 +1622,15 @@ var Ht = (() => {
1622
1622
  var m = A();
1623
1623
  try {
1624
1624
  return T(e)(t, r, n, a, i, u, s, l, d, h, v);
1625
- } catch ($) {
1626
- if (_(m), $ !== $ + 0) throw $;
1625
+ } catch (w) {
1626
+ if (_(m), w !== w + 0) throw w;
1627
1627
  C(1, 0);
1628
1628
  }
1629
1629
  }
1630
- function ka(e, t, r, n, a, i, u, s, l, d, h, v, m, $, x, O) {
1630
+ function ka(e, t, r, n, a, i, u, s, l, d, h, v, m, w, x, O) {
1631
1631
  var E = A();
1632
1632
  try {
1633
- T(e)(t, r, n, a, i, u, s, l, d, h, v, m, $, x, O);
1633
+ T(e)(t, r, n, a, i, u, s, l, d, h, v, m, w, x, O);
1634
1634
  } catch (S) {
1635
1635
  if (_(E), S !== S + 0) throw S;
1636
1636
  C(1, 0);
@@ -1766,29 +1766,33 @@ function ao(o) {
1766
1766
  );
1767
1767
  }
1768
1768
  function sr(o) {
1769
+ var f, p;
1769
1770
  try {
1770
- return o instanceof HTMLImageElement;
1771
+ return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.HTMLImageElement);
1771
1772
  } catch {
1772
1773
  return !1;
1773
1774
  }
1774
1775
  }
1775
1776
  function ur(o) {
1777
+ var f, p;
1776
1778
  try {
1777
- return o instanceof SVGImageElement;
1779
+ return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.SVGImageElement);
1778
1780
  } catch {
1779
1781
  return !1;
1780
1782
  }
1781
1783
  }
1782
1784
  function cr(o) {
1785
+ var f, p;
1783
1786
  try {
1784
- return o instanceof HTMLVideoElement;
1787
+ return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.HTMLVideoElement);
1785
1788
  } catch {
1786
1789
  return !1;
1787
1790
  }
1788
1791
  }
1789
1792
  function lr(o) {
1793
+ var f, p;
1790
1794
  try {
1791
- return o instanceof HTMLCanvasElement;
1795
+ return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.HTMLCanvasElement);
1792
1796
  } catch {
1793
1797
  return !1;
1794
1798
  }
@@ -2009,14 +2013,14 @@ class go extends EventTarget {
2009
2013
  topLeft: { x: j, y: k },
2010
2014
  topRight: { x: H, y: W },
2011
2015
  bottomLeft: { x: R, y: N },
2012
- bottomRight: { x: U, y: M }
2013
- } = g.position, bt = Math.min(j, H, R, U), ut = Math.min(k, W, N, M), ct = Math.max(j, H, R, U), Ut = Math.max(k, W, N, M);
2016
+ bottomRight: { x: V, y: M }
2017
+ } = g.position, bt = Math.min(j, H, R, V), ut = Math.min(k, W, N, M), ct = Math.max(j, H, R, V), Vt = Math.max(k, W, N, M);
2014
2018
  return {
2015
2019
  boundingBox: new DOMRectReadOnly(
2016
2020
  bt,
2017
2021
  ut,
2018
2022
  ct - bt,
2019
- Ut - ut
2023
+ Vt - ut
2020
2024
  ),
2021
2025
  rawValue: g.text,
2022
2026
  format: no(g.format),
@@ -2030,7 +2034,7 @@ class go extends EventTarget {
2030
2034
  y: W
2031
2035
  },
2032
2036
  {
2033
- x: U,
2037
+ x: V,
2034
2038
  y: M
2035
2039
  },
2036
2040
  {