@sec-ant/zxing-wasm
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -1,3 +0,3 @@ | ||
import { g as ui, r as fi, d as L, a as li, w as ci, c as J } from "../core-4b54e5ce.js"; | ||
import { Z as bi, b as wi, p as Ci, s as Pi } from "../core-4b54e5ce.js"; | ||
import { g as ci, r as vi, d as N, a as di, w as hi, c as J } from "../core-d8c798a7.js"; | ||
import { Z as Pi, b as Ti, p as Ai, s as Ei } from "../core-d8c798a7.js"; | ||
var De = (() => { | ||
@@ -10,10 +10,10 @@ var W = import.meta.url; | ||
}); | ||
var ce = Object.assign({}, f), ve = "./this.program", ze = typeof window == "object", de = typeof importScripts == "function"; | ||
var ve = Object.assign({}, f), de = "./this.program", ze = typeof window == "object", he = typeof importScripts == "function"; | ||
typeof process == "object" && typeof process.versions == "object" && process.versions.node; | ||
var M = ""; | ||
function Ir(e) { | ||
function Ur(e) { | ||
return f.locateFile ? f.locateFile(e, M) : M + e; | ||
} | ||
var ke; | ||
(ze || de) && (de ? M = self.location.href : typeof document < "u" && document.currentScript && (M = document.currentScript.src), W && (M = W), M.indexOf("blob:") !== 0 ? M = M.substr(0, M.replace(/[?#].*/, "").lastIndexOf("/") + 1) : M = "", de && (ke = (e) => { | ||
(ze || he) && (he ? M = self.location.href : typeof document < "u" && document.currentScript && (M = document.currentScript.src), W && (M = W), M.indexOf("blob:") !== 0 ? M = M.substr(0, M.replace(/[?#].*/, "").lastIndexOf("/") + 1) : M = "", he && (ke = (e) => { | ||
var r = new XMLHttpRequest(); | ||
@@ -23,40 +23,44 @@ return r.open("GET", e, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response); | ||
var re = f.printErr || console.error.bind(console); | ||
Object.assign(f, ce), ce = null, f.arguments && f.arguments, f.thisProgram && (ve = f.thisProgram), f.quit && f.quit; | ||
Object.assign(f, ve), ve = null, f.arguments && f.arguments, f.thisProgram && (de = f.thisProgram), f.quit && f.quit; | ||
var te; | ||
f.wasmBinary && (te = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && _e("no native wasm support detected"); | ||
var he, Xe = !1, H, k, ne, pe, R, P, Ze, Ge; | ||
f.wasmBinary && (te = f.wasmBinary), typeof WebAssembly != "object" && ae("no native wasm support detected"); | ||
var pe, Xe = !1; | ||
function xr(e, r) { | ||
e || ae(r); | ||
} | ||
var H, k, ne, _e, R, P, Ze, Ge; | ||
function qe() { | ||
var e = he.buffer; | ||
f.HEAP8 = H = new Int8Array(e), f.HEAP16 = ne = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = pe = new Uint16Array(e), f.HEAP32 = R = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Ze = new Float32Array(e), f.HEAPF64 = Ge = new Float64Array(e); | ||
var e = pe.buffer; | ||
f.HEAP8 = H = new Int8Array(e), f.HEAP16 = ne = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = _e = new Uint16Array(e), f.HEAP32 = R = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Ze = new Float32Array(e), f.HEAPF64 = Ge = new Float64Array(e); | ||
} | ||
var Je = [], Ke = [], Qe = []; | ||
function Ur() { | ||
function Yr() { | ||
if (f.preRun) | ||
for (typeof f.preRun == "function" && (f.preRun = [f.preRun]); f.preRun.length; ) | ||
Vr(f.preRun.shift()); | ||
Lr(f.preRun.shift()); | ||
Oe(Je); | ||
} | ||
function xr() { | ||
function Vr() { | ||
Oe(Ke); | ||
} | ||
function Yr() { | ||
function Br() { | ||
if (f.postRun) | ||
for (typeof f.postRun == "function" && (f.postRun = [f.postRun]); f.postRun.length; ) | ||
Nr(f.postRun.shift()); | ||
zr(f.postRun.shift()); | ||
Oe(Qe); | ||
} | ||
function Vr(e) { | ||
function Lr(e) { | ||
Je.unshift(e); | ||
} | ||
function Br(e) { | ||
function Nr(e) { | ||
Ke.unshift(e); | ||
} | ||
function Nr(e) { | ||
function zr(e) { | ||
Qe.unshift(e); | ||
} | ||
var z = 0, ie = null; | ||
function Lr(e) { | ||
function Xr(e) { | ||
z++, f.monitorRunDependencies && f.monitorRunDependencies(z); | ||
} | ||
function zr(e) { | ||
function Zr(e) { | ||
if (z--, f.monitorRunDependencies && f.monitorRunDependencies(z), z == 0 && ie) { | ||
@@ -67,3 +71,3 @@ var r = ie; | ||
} | ||
function _e(e) { | ||
function ae(e) { | ||
f.onAbort && f.onAbort(e), e = "Aborted(" + e + ")", re(e), Xe = !0, e += ". Build with -sASSERTIONS for more info."; | ||
@@ -73,8 +77,4 @@ var r = new WebAssembly.RuntimeError(e); | ||
} | ||
var Xr = "data:application/octet-stream;base64,"; | ||
function er(e) { | ||
return e.startsWith(Xr); | ||
} | ||
var X; | ||
f.locateFile ? (X = "zxing_full.wasm", er(X) || (X = Ir(X))) : X = new URL("/full/zxing_full.wasm", self.location).href; | ||
var Gr = "data:application/octet-stream;base64,", er = (e) => e.startsWith(Gr), X; | ||
f.locateFile ? (X = "zxing_full.wasm", er(X) || (X = Ur(X))) : X = new URL("/full/zxing_full.wasm", self.location).href; | ||
function rr(e) { | ||
@@ -87,4 +87,4 @@ if (e == X && te) | ||
} | ||
function Zr(e) { | ||
return !te && (ze || de) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => { | ||
function qr(e) { | ||
return !te && (ze || he) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => { | ||
if (!r.ok) | ||
@@ -96,7 +96,7 @@ throw "failed to load wasm binary file at '" + e + "'"; | ||
function tr(e, r, t) { | ||
return Zr(e).then((n) => WebAssembly.instantiate(n, r)).then((n) => n).then(t, (n) => { | ||
re(`failed to asynchronously prepare wasm: ${n}`), _e(n); | ||
return qr(e).then((n) => WebAssembly.instantiate(n, r)).then((n) => n).then(t, (n) => { | ||
re(`failed to asynchronously prepare wasm: ${n}`), ae(n); | ||
}); | ||
} | ||
function Gr(e, r, t, n) { | ||
function Jr(e, r, t, n) { | ||
return !e && typeof WebAssembly.instantiateStreaming == "function" && !er(r) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((i) => { | ||
@@ -109,8 +109,8 @@ var a = WebAssembly.instantiateStreaming(i, t); | ||
} | ||
function qr() { | ||
var e = { a: Fn }; | ||
function Kr() { | ||
var e = { a: Dn }; | ||
function r(n, i) { | ||
return T = n.exports, he = T.qa, qe(), _r = T.ua, Br(T.ra), zr(), T; | ||
return T = n.exports, pe = T.ra, qe(), _r = T.va, Nr(T.sa), Zr(), T; | ||
} | ||
Lr(); | ||
Xr(); | ||
function t(n) { | ||
@@ -125,3 +125,3 @@ r(n.instance); | ||
} | ||
return Gr(te, X, e, t).catch(K), {}; | ||
return Jr(te, X, e, t).catch(K), {}; | ||
} | ||
@@ -131,9 +131,11 @@ var Oe = (e) => { | ||
e.shift()(f); | ||
}, ge = [], ye = 0, Jr = (e) => { | ||
}; | ||
f.noExitRuntime; | ||
var ge = [], ye = 0, Qr = (e) => { | ||
var r = new me(e); | ||
return r.get_caught() || (r.set_caught(!0), ye--), r.set_rethrown(!1), ge.push(r), kr(r.excPtr), r.get_exception_ptr(); | ||
}, I = 0, Kr = () => { | ||
return r.get_caught() || (r.set_caught(!0), ye--), r.set_rethrown(!1), ge.push(r), Or(r.excPtr), r.get_exception_ptr(); | ||
}, I = 0, et = () => { | ||
_(0, 0); | ||
var e = ge.pop(); | ||
Dr(e.excPtr), I = 0; | ||
kr(e.excPtr), I = 0; | ||
}; | ||
@@ -164,3 +166,3 @@ function me(e) { | ||
}, this.get_exception_ptr = function() { | ||
var r = jr(this.get_type()); | ||
var r = Wr(this.get_type()); | ||
if (r) | ||
@@ -172,3 +174,3 @@ return P[this.excPtr >> 2]; | ||
} | ||
var Qr = (e) => { | ||
var rt = (e) => { | ||
throw I || (I = e), I; | ||
@@ -178,3 +180,3 @@ }, je = (e) => { | ||
if (!r) | ||
return le(0), 0; | ||
return ce(0), 0; | ||
var t = new me(r); | ||
@@ -184,3 +186,3 @@ t.set_adjusted_ptr(r); | ||
if (!n) | ||
return le(0), r; | ||
return ce(0), r; | ||
for (var i in e) { | ||
@@ -191,18 +193,18 @@ var a = e[i]; | ||
var s = t.ptr + 16; | ||
if (Or(a, n, s)) | ||
return le(a), r; | ||
if (jr(a, n, s)) | ||
return ce(a), r; | ||
} | ||
return le(n), r; | ||
}, et = () => je([]), rt = (e) => je([e]), tt = (e, r) => je([e, r]), nt = (e) => { | ||
return ce(n), r; | ||
}, tt = () => je([]), nt = (e) => je([e]), it = (e, r) => je([e, r]), at = (e) => { | ||
var r = new me(e).get_exception_ptr(); | ||
return r; | ||
}, it = () => { | ||
}, st = () => { | ||
var e = ge.pop(); | ||
e || _e("no exception to throw"); | ||
e || ae("no exception to throw"); | ||
var r = e.excPtr; | ||
throw e.get_rethrown() || (ge.push(e), e.set_rethrown(!0), e.set_caught(!1), ye++), I = r, I; | ||
}, at = (e, r, t) => { | ||
}, ot = (e, r, t) => { | ||
var n = new me(e); | ||
throw n.init(r, t), I = e, ye++, I; | ||
}, st = () => ye, $e = {}, nr = (e) => { | ||
}, ut = () => ye, $e = {}, nr = (e) => { | ||
for (; e.length; ) { | ||
@@ -234,3 +236,3 @@ var r = e.pop(), t = e.pop(); | ||
}), a.length === 0 && n(i); | ||
}, ot = (e) => { | ||
}, ft = (e) => { | ||
var r = $e[e]; | ||
@@ -242,6 +244,6 @@ delete $e[e]; | ||
return i.forEach((u, l) => { | ||
var v = u.fieldName, h = s[l], p = u.getter, m = u.getterContext, w = s[l + i.length], S = u.setter, C = u.setterContext; | ||
o[v] = { read: (F) => h.fromWireType(p(m, F)), write: (F, c) => { | ||
var v = u.fieldName, h = s[l], p = u.getter, $ = u.getterContext, w = s[l + i.length], F = u.setter, C = u.setterContext; | ||
o[v] = { read: (S) => h.fromWireType(p($, S)), write: (S, c) => { | ||
var d = []; | ||
S(C, F, w.toWireType(d, c)), nr(d); | ||
F(C, S, w.toWireType(d, c)), nr(d); | ||
} }; | ||
@@ -263,4 +265,4 @@ }), [{ name: r.name, fromWireType: (u) => { | ||
}); | ||
}, ut = (e, r, t, n, i) => { | ||
}, ft = () => { | ||
}, lt = (e, r, t, n, i) => { | ||
}, ct = () => { | ||
for (var e = new Array(256), r = 0; r < 256; ++r) | ||
@@ -273,11 +275,11 @@ e[r] = String.fromCharCode(r); | ||
return r; | ||
}, ee, $ = (e) => { | ||
}, ee, b = (e) => { | ||
throw new ee(e); | ||
}; | ||
function lt(e, r, t = {}) { | ||
function vt(e, r, t = {}) { | ||
var n = r.name; | ||
if (e || $(`type "${n}" must have a positive integer typeid pointer`), Z.hasOwnProperty(e)) { | ||
if (e || b(`type "${n}" must have a positive integer typeid pointer`), Z.hasOwnProperty(e)) { | ||
if (t.ignoreDuplicateRegistrations) | ||
return; | ||
$(`Cannot register type '${n}' twice`); | ||
b(`Cannot register type '${n}' twice`); | ||
} | ||
@@ -292,5 +294,5 @@ if (Z[e] = r, delete be[e], Q.hasOwnProperty(e)) { | ||
throw new TypeError("registerType registeredInstance requires argPackAdvance"); | ||
return lt(e, r, t); | ||
return vt(e, r, t); | ||
} | ||
var x = 8, ct = (e, r, t, n) => { | ||
var x = 8, dt = (e, r, t, n) => { | ||
r = D(r), U(e, { name: r, fromWireType: function(i) { | ||
@@ -303,9 +305,9 @@ return !!i; | ||
}, destructorFunction: null }); | ||
}, vt = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), Me = (e) => { | ||
}, ht = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), Me = (e) => { | ||
function r(t) { | ||
return t.$$.ptrType.registeredClass.name; | ||
} | ||
$(r(e) + " instance already deleted"); | ||
b(r(e) + " instance already deleted"); | ||
}, He = !1, sr = (e) => { | ||
}, dt = (e) => { | ||
}, pt = (e) => { | ||
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr); | ||
@@ -315,3 +317,3 @@ }, or = (e) => { | ||
var r = e.count.value === 0; | ||
r && dt(e); | ||
r && pt(e); | ||
}, ur = (e, r, t) => { | ||
@@ -324,30 +326,30 @@ if (r === t) | ||
return n === null ? null : t.downcast(n); | ||
}, fr = {}, ht = () => Object.keys(oe).length, pt = () => { | ||
}, fr = {}, _t = () => Object.keys(ue).length, gt = () => { | ||
var e = []; | ||
for (var r in oe) | ||
oe.hasOwnProperty(r) && e.push(oe[r]); | ||
for (var r in ue) | ||
ue.hasOwnProperty(r) && e.push(ue[r]); | ||
return e; | ||
}, ae = [], Ie = () => { | ||
for (; ae.length; ) { | ||
var e = ae.pop(); | ||
}, se = [], Ie = () => { | ||
for (; se.length; ) { | ||
var e = se.pop(); | ||
e.$$.deleteScheduled = !1, e.delete(); | ||
} | ||
}, se, _t = (e) => { | ||
se = e, ae.length && se && se(Ie); | ||
}, gt = () => { | ||
f.getInheritedInstanceCount = ht, f.getLiveInheritedInstances = pt, f.flushPendingDeletes = Ie, f.setDelayFunction = _t; | ||
}, oe = {}, yt = (e, r) => { | ||
for (r === void 0 && $("ptr should not be undefined"); e.baseClass; ) | ||
}, oe, yt = (e) => { | ||
oe = e, se.length && oe && oe(Ie); | ||
}, mt = () => { | ||
f.getInheritedInstanceCount = _t, f.getLiveInheritedInstances = gt, f.flushPendingDeletes = Ie, f.setDelayFunction = yt; | ||
}, ue = {}, $t = (e, r) => { | ||
for (r === void 0 && b("ptr should not be undefined"); e.baseClass; ) | ||
r = e.upcast(r), e = e.baseClass; | ||
return r; | ||
}, mt = (e, r) => (r = yt(e, r), oe[r]), Ce = (e, r) => { | ||
}, bt = (e, r) => (r = $t(e, r), ue[r]), Ce = (e, r) => { | ||
(!r.ptrType || !r.ptr) && we("makeClassHandle requires ptr and ptrType"); | ||
var t = !!r.smartPtrType, n = !!r.smartPtr; | ||
return t !== n && we("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, ue(Object.create(e, { $$: { value: r } })); | ||
return t !== n && we("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, fe(Object.create(e, { $$: { value: r } })); | ||
}; | ||
function $t(e) { | ||
function wt(e) { | ||
var r = this.getPointee(e); | ||
if (!r) | ||
return this.destructor(e), null; | ||
var t = mt(this.registeredClass, r); | ||
var t = bt(this.registeredClass, r); | ||
if (t !== void 0) { | ||
@@ -370,5 +372,5 @@ if (t.$$.count.value === 0) | ||
} | ||
var ue = (e) => typeof FinalizationRegistry > "u" ? (ue = (r) => r, e) : (He = new FinalizationRegistry((r) => { | ||
var fe = (e) => typeof FinalizationRegistry > "u" ? (fe = (r) => r, e) : (He = new FinalizationRegistry((r) => { | ||
or(r.$$); | ||
}), ue = (r) => { | ||
}), fe = (r) => { | ||
var t = r.$$, n = !!t.smartPtr; | ||
@@ -380,3 +382,3 @@ if (n) { | ||
return r; | ||
}, sr = (r) => He.unregister(r), ue(e)), bt = () => { | ||
}, sr = (r) => He.unregister(r), fe(e)), Ct = () => { | ||
Object.assign(Pe.prototype, { isAliasOf(e) { | ||
@@ -395,10 +397,10 @@ if (!(this instanceof Pe) || !(e instanceof Pe)) | ||
return this.$$.count.value += 1, this; | ||
var e = ue(Object.create(Object.getPrototypeOf(this), { $$: { value: vt(this.$$) } })); | ||
var e = fe(Object.create(Object.getPrototypeOf(this), { $$: { value: ht(this.$$) } })); | ||
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e; | ||
}, delete() { | ||
this.$$.ptr || Me(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), sr(this), or(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); | ||
this.$$.ptr || Me(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && b("Object already scheduled for deletion"), sr(this), or(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); | ||
}, isDeleted() { | ||
return !this.$$.ptr; | ||
}, deleteLater() { | ||
return this.$$.ptr || Me(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ae.push(this), ae.length === 1 && se && se(Ie), this.$$.deleteScheduled = !0, this; | ||
return this.$$.ptr || Me(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && b("Object already scheduled for deletion"), se.push(this), se.length === 1 && oe && oe(Ie), this.$$.deleteScheduled = !0, this; | ||
} }); | ||
@@ -408,3 +410,3 @@ }; | ||
} | ||
var wt = 48, Ct = 57, lr = (e) => { | ||
var Pt = 48, Tt = 57, lr = (e) => { | ||
if (e === void 0) | ||
@@ -414,3 +416,3 @@ return "_unknown"; | ||
var r = e.charCodeAt(0); | ||
return r >= wt && r <= Ct ? `_${e}` : e; | ||
return r >= Pt && r <= Tt ? `_${e}` : e; | ||
}; | ||
@@ -426,9 +428,9 @@ function cr(e, r) { | ||
e[r] = function() { | ||
return e[r].overloadTable.hasOwnProperty(arguments.length) || $(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`), e[r].overloadTable[arguments.length].apply(this, arguments); | ||
return e[r].overloadTable.hasOwnProperty(arguments.length) || b(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`), e[r].overloadTable[arguments.length].apply(this, arguments); | ||
}, e[r].overloadTable = [], e[r].overloadTable[n.argCount] = n; | ||
} | ||
}, dr = (e, r, t) => { | ||
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && $(`Cannot register public name '${e}' twice`), vr(f, e, e), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t)); | ||
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && b(`Cannot register public name '${e}' twice`), vr(f, e, e), f.hasOwnProperty(t) && b(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t)); | ||
}; | ||
function Pt(e, r, t, n, i, a, s, o) { | ||
function At(e, r, t, n, i, a, s, o) { | ||
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = []; | ||
@@ -438,22 +440,22 @@ } | ||
for (; r !== t; ) | ||
r.upcast || $(`Expected null or instance of ${t.name}, got an instance of ${r.name}`), e = r.upcast(e), r = r.baseClass; | ||
r.upcast || b(`Expected null or instance of ${t.name}, got an instance of ${r.name}`), e = r.upcast(e), r = r.baseClass; | ||
return e; | ||
}; | ||
function Tt(e, r) { | ||
function Et(e, r) { | ||
if (r === null) | ||
return this.isReference && $(`null is not a valid ${this.name}`), 0; | ||
r.$$ || $(`Cannot pass "${Ve(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`); | ||
return this.isReference && b(`null is not a valid ${this.name}`), 0; | ||
r.$$ || b(`Cannot pass "${Ve(r)}" as a ${this.name}`), r.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`); | ||
var t = r.$$.ptrType.registeredClass, n = Ue(r.$$.ptr, t, this.registeredClass); | ||
return n; | ||
} | ||
function At(e, r) { | ||
function Ft(e, r) { | ||
var t; | ||
if (r === null) | ||
return this.isReference && $(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), e !== null && e.push(this.rawDestructor, t), t) : 0; | ||
r.$$ || $(`Cannot pass "${Ve(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && r.$$.ptrType.isConst && $(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
return this.isReference && b(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), e !== null && e.push(this.rawDestructor, t), t) : 0; | ||
r.$$ || b(`Cannot pass "${Ve(r)}" as a ${this.name}`), r.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && r.$$.ptrType.isConst && b(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
var n = r.$$.ptrType.registeredClass; | ||
if (t = Ue(r.$$.ptr, n, this.registeredClass), this.isSmartPointer) | ||
switch (r.$$.smartPtr === void 0 && $("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { | ||
switch (r.$$.smartPtr === void 0 && b("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { | ||
case 0: | ||
r.$$.smartPtrType === this ? t = r.$$.smartPtr : $(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
r.$$.smartPtrType === this ? t = r.$$.smartPtr : b(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
break; | ||
@@ -468,14 +470,14 @@ case 1: | ||
var i = r.clone(); | ||
t = this.rawShare(t, N.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, t); | ||
t = this.rawShare(t, L.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, t); | ||
} | ||
break; | ||
default: | ||
$("Unsupporting sharing policy"); | ||
b("Unsupporting sharing policy"); | ||
} | ||
return t; | ||
} | ||
function Et(e, r) { | ||
function St(e, r) { | ||
if (r === null) | ||
return this.isReference && $(`null is not a valid ${this.name}`), 0; | ||
r.$$ || $(`Cannot pass "${Ve(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), r.$$.ptrType.isConst && $(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`); | ||
return this.isReference && b(`null is not a valid ${this.name}`), 0; | ||
r.$$ || b(`Cannot pass "${Ve(r)}" as a ${this.name}`), r.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`), r.$$.ptrType.isConst && b(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`); | ||
var t = r.$$.ptrType.registeredClass, n = Ue(r.$$.ptr, t, this.registeredClass); | ||
@@ -487,3 +489,3 @@ return n; | ||
} | ||
var St = () => { | ||
var Rt = () => { | ||
Object.assign(Te.prototype, { getPointee(e) { | ||
@@ -495,24 +497,24 @@ return this.rawGetPointee && (e = this.rawGetPointee(e)), e; | ||
e !== null && e.delete(); | ||
}, fromWireType: $t }); | ||
}, fromWireType: wt }); | ||
}; | ||
function Te(e, r, t, n, i, a, s, o, u, l, v) { | ||
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = Tt, this.destructorFunction = null) : (this.toWireType = Et, this.destructorFunction = null) : this.toWireType = At; | ||
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = Et, this.destructorFunction = null) : (this.toWireType = St, this.destructorFunction = null) : this.toWireType = Ft; | ||
} | ||
var pr = (e, r, t) => { | ||
f.hasOwnProperty(e) || we("Replacing nonexistant public symbol"), f[e].overloadTable !== void 0 && t !== void 0 ? f[e].overloadTable[t] = r : (f[e] = r, f[e].argCount = t); | ||
}, Ft = (e, r, t) => { | ||
}, Dt = (e, r, t) => { | ||
var n = f["dynCall_" + e]; | ||
return t && t.length ? n.apply(null, [r].concat(t)) : n.call(null, r); | ||
}, Ae = [], _r, b = (e) => { | ||
}, Ae = [], _r, m = (e) => { | ||
var r = Ae[e]; | ||
return r || (e >= Ae.length && (Ae.length = e + 1), Ae[e] = r = _r.get(e)), r; | ||
}, Rt = (e, r, t) => { | ||
}, kt = (e, r, t) => { | ||
if (e.includes("j")) | ||
return Ft(e, r, t); | ||
var n = b(r).apply(null, t); | ||
return Dt(e, r, t); | ||
var n = m(r).apply(null, t); | ||
return n; | ||
}, Dt = (e, r) => { | ||
}, Ot = (e, r) => { | ||
var t = []; | ||
return function() { | ||
return t.length = 0, Object.assign(t, arguments), Rt(e, r, t); | ||
return t.length = 0, Object.assign(t, arguments), kt(e, r, t); | ||
}; | ||
@@ -522,7 +524,7 @@ }, j = (e, r) => { | ||
function t() { | ||
return e.includes("j") ? Dt(e, r) : b(r); | ||
return e.includes("j") ? Ot(e, r) : m(r); | ||
} | ||
var n = t(); | ||
return typeof n != "function" && $(`unknown function pointer with signature ${e}: ${r}`), n; | ||
}, kt = (e, r) => { | ||
return typeof n != "function" && b(`unknown function pointer with signature ${e}: ${r}`), n; | ||
}, jt = (e, r) => { | ||
var t = cr(r, function(n) { | ||
@@ -538,3 +540,3 @@ this.name = r, this.message = n; | ||
}, gr, yr = (e) => { | ||
var r = Rr(e), t = D(r); | ||
var r = Dr(e), t = D(r); | ||
return Y(r), t; | ||
@@ -553,12 +555,12 @@ }, Ee = (e, r) => { | ||
throw r.forEach(i), new gr(`${e}: ` + t.map(yr).join([", "])); | ||
}, Ot = (e, r, t, n, i, a, s, o, u, l, v, h, p) => { | ||
}, Wt = (e, r, t, n, i, a, s, o, u, l, v, h, p) => { | ||
v = D(v), a = j(i, a), o && (o = j(s, o)), l && (l = j(u, l)), p = j(h, p); | ||
var m = lr(v); | ||
dr(m, function() { | ||
var $ = lr(v); | ||
dr($, function() { | ||
Ee(`Cannot construct ${v} due to unbound types`, [n]); | ||
}), G([e, r, t], n ? [n] : [], function(w) { | ||
w = w[0]; | ||
var S, C; | ||
n ? (S = w.registeredClass, C = S.instancePrototype) : C = Pe.prototype; | ||
var F = cr(m, function() { | ||
var F, C; | ||
n ? (F = w.registeredClass, C = F.instancePrototype) : C = Pe.prototype; | ||
var S = cr($, function() { | ||
if (Object.getPrototypeOf(this) !== c) | ||
@@ -572,8 +574,8 @@ throw new ee("Use 'new' to construct " + v); | ||
return Re.apply(this, arguments); | ||
}), c = Object.create(C, { constructor: { value: F } }); | ||
F.prototype = c; | ||
var d = new Pt(v, F, c, p, S, a, o, l); | ||
}), c = Object.create(C, { constructor: { value: S } }); | ||
S.prototype = c; | ||
var d = new At(v, S, c, p, F, a, o, l); | ||
d.baseClass && (d.baseClass.__derivedClasses === void 0 && (d.baseClass.__derivedClasses = []), d.baseClass.__derivedClasses.push(d)); | ||
var A = new Te(v, d, !0, !1, !1), E = new Te(v + "*", d, !1, !1, !1), q = new Te(v + " const*", d, !1, !0, !1); | ||
return fr[e] = { pointerType: E, constPointerType: q }, pr(m, F), [A, E, q]; | ||
return fr[e] = { pointerType: E, constPointerType: q }, pr($, S), [A, E, q]; | ||
}); | ||
@@ -587,3 +589,3 @@ }, xe = (e, r) => { | ||
var s = r.length; | ||
s < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!"); | ||
s < 2 && b("argTypes array size mismatch! Must at least get return value and 'this' types!"); | ||
for (var o = r[1] !== null && t !== null, u = !1, l = 1; l < r.length; ++l) | ||
@@ -594,10 +596,10 @@ if (r[l] !== null && r[l].destructorFunction === void 0) { | ||
} | ||
var v = r[0].name !== "void", h = s - 2, p = new Array(h), m = [], w = []; | ||
var v = r[0].name !== "void", h = s - 2, p = new Array(h), $ = [], w = []; | ||
return function() { | ||
arguments.length !== h && $(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0; | ||
var S; | ||
m.length = o ? 2 : 1, m[0] = i, o && (S = r[1].toWireType(w, this), m[1] = S); | ||
arguments.length !== h && b(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0; | ||
var F; | ||
$.length = o ? 2 : 1, $[0] = i, o && (F = r[1].toWireType(w, this), $[1] = F); | ||
for (var C = 0; C < h; ++C) | ||
p[C] = r[C + 2].toWireType(w, arguments[C]), m.push(p[C]); | ||
var F = n.apply(null, m); | ||
p[C] = r[C + 2].toWireType(w, arguments[C]), $.push(p[C]); | ||
var S = n.apply(null, $); | ||
function c(d) { | ||
@@ -608,3 +610,3 @@ if (u) | ||
for (var A = o ? 1 : 2; A < r.length; A++) { | ||
var E = A === 1 ? S : p[A - 2]; | ||
var E = A === 1 ? F : p[A - 2]; | ||
r[A].destructorFunction !== null && r[A].destructorFunction(E); | ||
@@ -615,6 +617,6 @@ } | ||
} | ||
return c(F); | ||
return c(S); | ||
}; | ||
} | ||
var jt = (e, r, t, n, i, a) => { | ||
var Mt = (e, r, t, n, i, a) => { | ||
var s = xe(r, t); | ||
@@ -630,5 +632,9 @@ i = j(n, i), G([], [e], function(o) { | ||
}); | ||
}, Wt = (e, r, t, n, i, a, s, o, u) => { | ||
}, mr = (e) => { | ||
e = e.trim(); | ||
const r = e.indexOf("("); | ||
return r !== -1 ? (xr(e[e.length - 1] == ")", "Parentheses for argument names should match."), e.substr(0, r)) : e; | ||
}, Ht = (e, r, t, n, i, a, s, o, u) => { | ||
var l = xe(t, n); | ||
r = D(r), a = j(i, a), G([], [e], function(v) { | ||
r = D(r), r = mr(r), a = j(i, a), G([], [e], function(v) { | ||
v = v[0]; | ||
@@ -640,11 +646,11 @@ var h = `${v.name}.${r}`; | ||
} | ||
var m = v.registeredClass.instancePrototype, w = m[r]; | ||
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, m[r] = p) : (vr(m, r, h), m[r].overloadTable[t - 2] = p), G([], l, function(S) { | ||
var C = Ye(h, S, v, a, s); | ||
return m[r].overloadTable === void 0 ? (C.argCount = t - 2, m[r] = C) : m[r].overloadTable[t - 2] = C, []; | ||
var $ = v.registeredClass.instancePrototype, w = $[r]; | ||
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, $[r] = p) : (vr($, r, h), $[r].overloadTable[t - 2] = p), G([], l, function(F) { | ||
var C = Ye(h, F, v, a, s); | ||
return $[r].overloadTable === void 0 ? (C.argCount = t - 2, $[r] = C) : $[r].overloadTable[t - 2] = C, []; | ||
}), []; | ||
}); | ||
}; | ||
function Mt() { | ||
Object.assign(mr.prototype, { get(e) { | ||
function It() { | ||
Object.assign($r.prototype, { get(e) { | ||
return this.allocated[e]; | ||
@@ -660,14 +666,14 @@ }, has(e) { | ||
} | ||
function mr() { | ||
function $r() { | ||
this.allocated = [void 0], this.freelist = []; | ||
} | ||
var O = new mr(), $r = (e) => { | ||
var O = new $r(), br = (e) => { | ||
e >= O.reserved && --O.get(e).refcount === 0 && O.free(e); | ||
}, Ht = () => { | ||
}, Ut = () => { | ||
for (var e = 0, r = O.reserved; r < O.allocated.length; ++r) | ||
O.allocated[r] !== void 0 && ++e; | ||
return e; | ||
}, It = () => { | ||
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Ht; | ||
}, N = { toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => { | ||
}, xt = () => { | ||
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Ut; | ||
}, L = { toValue: (e) => (e || b("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => { | ||
switch (e) { | ||
@@ -685,7 +691,7 @@ case void 0: | ||
} | ||
} }, Ut = (e, r) => { | ||
} }, Yt = (e, r) => { | ||
r = D(r), U(e, { name: r, fromWireType: (t) => { | ||
var n = N.toValue(t); | ||
return $r(t), n; | ||
}, toWireType: (t, n) => N.toHandle(n), argPackAdvance: x, readValueFromPointer: We, destructorFunction: null }); | ||
var n = L.toValue(t); | ||
return br(t), n; | ||
}, toWireType: (t, n) => L.toHandle(n), argPackAdvance: x, readValueFromPointer: We, destructorFunction: null }); | ||
}, Ve = (e) => { | ||
@@ -696,3 +702,3 @@ if (e === null) | ||
return r === "object" || r === "array" || r === "function" ? e.toString() : "" + e; | ||
}, xt = (e, r) => { | ||
}, Vt = (e, r) => { | ||
switch (r) { | ||
@@ -710,7 +716,7 @@ case 4: | ||
} | ||
}, Yt = (e, r, t) => { | ||
r = D(r), U(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: x, readValueFromPointer: xt(r, t), destructorFunction: null }); | ||
}, Vt = (e, r, t, n, i, a, s) => { | ||
}, Bt = (e, r, t) => { | ||
r = D(r), U(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: x, readValueFromPointer: Vt(r, t), destructorFunction: null }); | ||
}, Lt = (e, r, t, n, i, a, s) => { | ||
var o = xe(r, t); | ||
e = D(e), i = j(n, i), dr(e, function() { | ||
e = D(e), e = mr(e), i = j(n, i), dr(e, function() { | ||
Ee(`Cannot call ${e} due to unbound types`, o); | ||
@@ -721,3 +727,3 @@ }, r - 1), G([], o, function(u) { | ||
}); | ||
}, Bt = (e, r, t) => { | ||
}, Nt = (e, r, t) => { | ||
switch (r) { | ||
@@ -727,3 +733,3 @@ case 1: | ||
case 2: | ||
return t ? (n) => ne[n >> 1] : (n) => pe[n >> 1]; | ||
return t ? (n) => ne[n >> 1] : (n) => _e[n >> 1]; | ||
case 4: | ||
@@ -734,3 +740,3 @@ return t ? (n) => R[n >> 2] : (n) => P[n >> 2]; | ||
} | ||
}, Nt = (e, r, t, n, i) => { | ||
}, zt = (e, r, t, n, i) => { | ||
r = D(r); | ||
@@ -748,4 +754,4 @@ var a = (v) => v; | ||
return u(h, this.name), h; | ||
}, U(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: x, readValueFromPointer: Bt(r, t, n !== 0), destructorFunction: null }); | ||
}, Lt = (e, r, t) => { | ||
}, U(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: x, readValueFromPointer: Nt(r, t, n !== 0), destructorFunction: null }); | ||
}, Xt = (e, r, t) => { | ||
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[r]; | ||
@@ -757,3 +763,3 @@ function a(s) { | ||
t = D(t), U(e, { name: t, fromWireType: a, argPackAdvance: x, readValueFromPointer: a }, { ignoreDuplicateRegistrations: !0 }); | ||
}, br = (e, r, t, n) => { | ||
}, wr = (e, r, t, n) => { | ||
if (!(n > 0)) | ||
@@ -786,3 +792,3 @@ return 0; | ||
return r[t] = 0, t - i; | ||
}, zt = (e, r, t) => br(e, k, r, t), wr = (e) => { | ||
}, Zt = (e, r, t) => wr(e, k, r, t), Cr = (e) => { | ||
for (var r = 0, t = 0; t < e.length; ++t) { | ||
@@ -793,7 +799,7 @@ var n = e.charCodeAt(t); | ||
return r; | ||
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Xt = (e, r, t) => { | ||
}, Pr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Gt = (e, r, t) => { | ||
for (var n = r + t, i = r; e[i] && !(i >= n); ) | ||
++i; | ||
if (i - r > 16 && e.buffer && Cr) | ||
return Cr.decode(e.subarray(r, i)); | ||
if (i - r > 16 && e.buffer && Pr) | ||
return Pr.decode(e.subarray(r, i)); | ||
for (var a = ""; r < i; ) { | ||
@@ -819,3 +825,3 @@ var s = e[r++]; | ||
return a; | ||
}, Be = (e, r) => e ? Xt(k, e, r) : "", Zt = (e, r) => { | ||
}, Be = (e, r) => e ? Gt(k, e, r) : "", qt = (e, r) => { | ||
r = D(r); | ||
@@ -842,10 +848,10 @@ var t = r === "std::string"; | ||
var a, s = typeof i == "string"; | ||
s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || $("Cannot pass non-string to std::string"), t && s ? a = wr(i) : a = i.length; | ||
var o = Le(4 + a + 1), u = o + 4; | ||
s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || b("Cannot pass non-string to std::string"), t && s ? a = Cr(i) : a = i.length; | ||
var o = Ne(4 + a + 1), u = o + 4; | ||
if (P[o >> 2] = a, t && s) | ||
zt(i, u, a + 1); | ||
Zt(i, u, a + 1); | ||
else if (s) | ||
for (var l = 0; l < a; ++l) { | ||
var v = i.charCodeAt(l); | ||
v > 255 && (Y(u), $("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v; | ||
v > 255 && (Y(u), b("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v; | ||
} | ||
@@ -859,7 +865,7 @@ else | ||
} }); | ||
}, Pr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Gt = (e, r) => { | ||
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && pe[n]; ) | ||
}, Tr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Jt = (e, r) => { | ||
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && _e[n]; ) | ||
++n; | ||
if (t = n << 1, t - e > 32 && Pr) | ||
return Pr.decode(k.subarray(e, t)); | ||
if (t = n << 1, t - e > 32 && Tr) | ||
return Tr.decode(k.subarray(e, t)); | ||
for (var a = "", s = 0; !(s >= r / 2); ++s) { | ||
@@ -872,3 +878,3 @@ var o = ne[e + s * 2 >> 1]; | ||
return a; | ||
}, qt = (e, r, t) => { | ||
}, Kt = (e, r, t) => { | ||
if (t === void 0 && (t = 2147483647), t < 2) | ||
@@ -882,3 +888,3 @@ return 0; | ||
return ne[r >> 1] = 0, r - n; | ||
}, Jt = (e) => e.length * 2, Kt = (e, r) => { | ||
}, Qt = (e) => e.length * 2, en = (e, r) => { | ||
for (var t = 0, n = ""; !(t >= r / 4); ) { | ||
@@ -895,3 +901,3 @@ var i = R[e + t * 4 >> 2]; | ||
return n; | ||
}, Qt = (e, r, t) => { | ||
}, rn = (e, r, t) => { | ||
if (t === void 0 && (t = 2147483647), t < 4) | ||
@@ -909,3 +915,3 @@ return 0; | ||
return R[r >> 2] = 0, r - n; | ||
}, en = (e) => { | ||
}, tn = (e) => { | ||
for (var r = 0, t = 0; t < e.length; ++t) { | ||
@@ -916,10 +922,10 @@ var n = e.charCodeAt(t); | ||
return r; | ||
}, rn = (e, r, t) => { | ||
}, nn = (e, r, t) => { | ||
t = D(t); | ||
var n, i, a, s, o; | ||
r === 2 ? (n = Gt, i = qt, s = Jt, a = () => pe, o = 1) : r === 4 && (n = Kt, i = Qt, s = en, a = () => P, o = 2), U(e, { name: t, fromWireType: (u) => { | ||
for (var l = P[u >> 2], v = a(), h, p = u + 4, m = 0; m <= l; ++m) { | ||
var w = u + 4 + m * r; | ||
if (m == l || v[w >> o] == 0) { | ||
var S = w - p, C = n(p, S); | ||
r === 2 ? (n = Jt, i = Kt, s = Qt, a = () => _e, o = 1) : r === 4 && (n = en, i = rn, s = tn, a = () => P, o = 2), U(e, { name: t, fromWireType: (u) => { | ||
for (var l = P[u >> 2], v = a(), h, p = u + 4, $ = 0; $ <= l; ++$) { | ||
var w = u + 4 + $ * r; | ||
if ($ == l || v[w >> o] == 0) { | ||
var F = w - p, C = n(p, F); | ||
h === void 0 ? h = C : (h += String.fromCharCode(0), h += C), p = w + r; | ||
@@ -930,4 +936,4 @@ } | ||
}, toWireType: (u, l) => { | ||
typeof l != "string" && $(`Cannot pass non-string to C++ string type ${t}`); | ||
var v = s(l), h = Le(4 + v + r); | ||
typeof l != "string" && b(`Cannot pass non-string to C++ string type ${t}`); | ||
var v = s(l), h = Ne(4 + v + r); | ||
return P[h >> 2] = v >> o, i(l, h + 4, v + r), u !== null && u.push(Y, h), h; | ||
@@ -937,14 +943,14 @@ }, argPackAdvance: x, readValueFromPointer: We, destructorFunction(u) { | ||
} }); | ||
}, tn = (e, r, t, n, i, a) => { | ||
}, an = (e, r, t, n, i, a) => { | ||
$e[e] = { name: D(r), rawConstructor: j(t, n), rawDestructor: j(i, a), fields: [] }; | ||
}, nn = (e, r, t, n, i, a, s, o, u, l) => { | ||
}, sn = (e, r, t, n, i, a, s, o, u, l) => { | ||
$e[e].fields.push({ fieldName: D(r), getterReturnType: t, getter: j(n, i), getterContext: a, setterArgumentType: s, setter: j(o, u), setterContext: l }); | ||
}, an = (e, r) => { | ||
}, on = (e, r) => { | ||
r = D(r), U(e, { isVoid: !0, name: r, argPackAdvance: 0, fromWireType: () => { | ||
}, toWireType: (t, n) => { | ||
} }); | ||
}, sn = {}, on = (e) => { | ||
var r = sn[e]; | ||
}, un = {}, fn = (e) => { | ||
var r = un[e]; | ||
return r === void 0 ? D(e) : r; | ||
}, Tr = () => { | ||
}, Ar = () => { | ||
if (typeof globalThis == "object") | ||
@@ -960,8 +966,8 @@ return globalThis; | ||
throw Error("unable to get global object."); | ||
}, un = (e) => e === 0 ? N.toHandle(Tr()) : (e = on(e), N.toHandle(Tr()[e])), fn = (e) => { | ||
}, ln = (e) => e === 0 ? L.toHandle(Ar()) : (e = fn(e), L.toHandle(Ar()[e])), cn = (e) => { | ||
e > 4 && (O.get(e).refcount += 1); | ||
}, Ar = (e, r) => { | ||
}, Er = (e, r) => { | ||
var t = Z[e]; | ||
return t === void 0 && $(r + " has unknown type " + yr(e)), t; | ||
}, ln = (e) => { | ||
return t === void 0 && b(r + " has unknown type " + yr(e)), t; | ||
}, vn = (e) => { | ||
var r = new Array(e + 1); | ||
@@ -971,28 +977,28 @@ return function(t, n, i) { | ||
for (var a = 0; a < e; ++a) { | ||
var s = Ar(P[n + a * 4 >> 2], "parameter " + a); | ||
var s = Er(P[n + a * 4 >> 2], "parameter " + a); | ||
r[a + 1] = s.readValueFromPointer(i), i += s.argPackAdvance; | ||
} | ||
var o = new (t.bind.apply(t, r))(); | ||
return N.toHandle(o); | ||
return L.toHandle(o); | ||
}; | ||
}, Er = {}, cn = (e, r, t, n) => { | ||
e = N.toValue(e); | ||
var i = Er[r]; | ||
return i || (i = ln(r), Er[r] = i), i(e, t, n); | ||
}, vn = (e, r) => { | ||
e = Ar(e, "_emval_take_value"); | ||
}, Fr = {}, dn = (e, r, t, n) => { | ||
e = L.toValue(e); | ||
var i = Fr[r]; | ||
return i || (i = vn(r), Fr[r] = i), i(e, t, n); | ||
}, hn = (e, r) => { | ||
e = Er(e, "_emval_take_value"); | ||
var t = e.readValueFromPointer(r); | ||
return N.toHandle(t); | ||
}, dn = () => { | ||
_e(""); | ||
}, hn = (e, r, t) => k.copyWithin(e, r, r + t), pn = () => 2147483648, _n = (e) => { | ||
var r = he.buffer, t = (e - r.byteLength + 65535) / 65536; | ||
return L.toHandle(t); | ||
}, pn = () => { | ||
ae(""); | ||
}, _n = (e, r, t) => k.copyWithin(e, r, r + t), gn = () => 2147483648, yn = (e) => { | ||
var r = pe.buffer, t = (e - r.byteLength + 65535) / 65536; | ||
try { | ||
return he.grow(t), qe(), 1; | ||
return pe.grow(t), qe(), 1; | ||
} catch { | ||
} | ||
}, gn = (e) => { | ||
}, mn = (e) => { | ||
var r = k.length; | ||
e >>>= 0; | ||
var t = pn(); | ||
var t = gn(); | ||
if (e > t) | ||
@@ -1003,3 +1009,3 @@ return !1; | ||
a = Math.min(a, e + 100663296); | ||
var s = Math.min(t, n(Math.max(e, a), 65536)), o = _n(s); | ||
var s = Math.min(t, n(Math.max(e, a), 65536)), o = yn(s); | ||
if (o) | ||
@@ -1009,35 +1015,35 @@ return !0; | ||
return !1; | ||
}, Ne = {}, yn = () => ve || "./this.program", fe = () => { | ||
if (!fe.strings) { | ||
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: yn() }; | ||
for (var t in Ne) | ||
Ne[t] === void 0 ? delete r[t] : r[t] = Ne[t]; | ||
}, Le = {}, $n = () => de || "./this.program", le = () => { | ||
if (!le.strings) { | ||
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: $n() }; | ||
for (var t in Le) | ||
Le[t] === void 0 ? delete r[t] : r[t] = Le[t]; | ||
var n = []; | ||
for (var t in r) | ||
n.push(`${t}=${r[t]}`); | ||
fe.strings = n; | ||
le.strings = n; | ||
} | ||
return fe.strings; | ||
}, mn = (e, r) => { | ||
return le.strings; | ||
}, bn = (e, r) => { | ||
for (var t = 0; t < e.length; ++t) | ||
H[r++ >> 0] = e.charCodeAt(t); | ||
H[r >> 0] = 0; | ||
}, $n = (e, r) => { | ||
}, wn = (e, r) => { | ||
var t = 0; | ||
return fe().forEach((n, i) => { | ||
return le().forEach((n, i) => { | ||
var a = r + t; | ||
P[e + i * 4 >> 2] = a, mn(n, a), t += n.length + 1; | ||
P[e + i * 4 >> 2] = a, bn(n, a), t += n.length + 1; | ||
}), 0; | ||
}, bn = (e, r) => { | ||
var t = fe(); | ||
}, Cn = (e, r) => { | ||
var t = le(); | ||
P[e >> 2] = t.length; | ||
var n = 0; | ||
return t.forEach((i) => n += i.length + 1), P[r >> 2] = n, 0; | ||
}, wn = (e) => e, Se = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Cn = (e, r) => { | ||
}, Pn = (e) => e, Fe = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Tn = (e, r) => { | ||
for (var t = 0, n = 0; n <= r; t += e[n++]) | ||
; | ||
return t; | ||
}, Sr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Fr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Pn = (e, r) => { | ||
}, Sr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], An = (e, r) => { | ||
for (var t = new Date(e.getTime()); r > 0; ) { | ||
var n = Se(t.getFullYear()), i = t.getMonth(), a = (n ? Sr : Fr)[i]; | ||
var n = Fe(t.getFullYear()), i = t.getMonth(), a = (n ? Sr : Rr)[i]; | ||
if (r > a - t.getDate()) | ||
@@ -1050,9 +1056,9 @@ r -= a - t.getDate() + 1, t.setDate(1), i < 11 ? t.setMonth(i + 1) : (t.setMonth(0), t.setFullYear(t.getFullYear() + 1)); | ||
}; | ||
function Tn(e, r, t) { | ||
var n = t > 0 ? t : wr(e) + 1, i = new Array(n), a = br(e, i, 0, i.length); | ||
function En(e, r, t) { | ||
var n = t > 0 ? t : Cr(e) + 1, i = new Array(n), a = wr(e, i, 0, i.length); | ||
return r && (i.length = a), i; | ||
} | ||
var An = (e, r) => { | ||
var Fn = (e, r) => { | ||
H.set(e, r); | ||
}, En = (e, r, t, n) => { | ||
}, Sn = (e, r, t, n) => { | ||
var i = P[n + 40 >> 2], a = { tm_sec: R[n >> 2], tm_min: R[n + 4 >> 2], tm_hour: R[n + 8 >> 2], tm_mday: R[n + 12 >> 2], tm_mon: R[n + 16 >> 2], tm_year: R[n + 20 >> 2], tm_wday: R[n + 24 >> 2], tm_yday: R[n + 28 >> 2], tm_isdst: R[n + 32 >> 2], tm_gmtoff: R[n + 36 >> 2], tm_zone: i ? Be(i) : "" }, s = Be(t), o = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" }; | ||
@@ -1070,3 +1076,3 @@ for (var u in o) | ||
} | ||
function m(c, d) { | ||
function $(c, d) { | ||
function A(q) { | ||
@@ -1096,5 +1102,5 @@ return q < 0 ? -1 : q > 0 ? 1 : 0; | ||
} | ||
function S(c) { | ||
var d = Pn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), q = w(A), Re = w(E); | ||
return m(q, d) <= 0 ? m(Re, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1; | ||
function F(c) { | ||
var d = An(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), q = w(A), Re = w(E); | ||
return $(q, d) <= 0 ? $(Re, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1; | ||
} | ||
@@ -1104,6 +1110,6 @@ var C = { "%a": (c) => l[c.tm_wday].substring(0, 3), "%A": (c) => l[c.tm_wday], "%b": (c) => v[c.tm_mon].substring(0, 3), "%B": (c) => v[c.tm_mon], "%C": (c) => { | ||
return p(d / 100 | 0, 2); | ||
}, "%d": (c) => p(c.tm_mday, 2), "%e": (c) => h(c.tm_mday, 2, " "), "%g": (c) => S(c).toString().substring(2), "%G": (c) => S(c), "%H": (c) => p(c.tm_hour, 2), "%I": (c) => { | ||
}, "%d": (c) => p(c.tm_mday, 2), "%e": (c) => h(c.tm_mday, 2, " "), "%g": (c) => F(c).toString().substring(2), "%G": (c) => F(c), "%H": (c) => p(c.tm_hour, 2), "%I": (c) => { | ||
var d = c.tm_hour; | ||
return d == 0 ? d = 12 : d > 12 && (d -= 12), p(d, 2); | ||
}, "%j": (c) => p(c.tm_mday + Cn(Se(c.tm_year + 1900) ? Sr : Fr, c.tm_mon - 1), 3), "%m": (c) => p(c.tm_mon + 1, 2), "%M": (c) => p(c.tm_min, 2), "%n": () => ` | ||
}, "%j": (c) => p(c.tm_mday + Tn(Fe(c.tm_year + 1900) ? Sr : Rr, c.tm_mon - 1), 3), "%m": (c) => p(c.tm_mon + 1, 2), "%M": (c) => p(c.tm_min, 2), "%n": () => ` | ||
`, "%p": (c) => c.tm_hour >= 0 && c.tm_hour < 12 ? "AM" : "PM", "%S": (c) => p(c.tm_sec, 2), "%t": () => " ", "%u": (c) => c.tm_wday || 7, "%U": (c) => { | ||
@@ -1117,3 +1123,3 @@ var d = c.tm_yday + 7 - c.tm_wday; | ||
var E = (c.tm_wday + 371 - c.tm_yday) % 7; | ||
E != 4 && (E != 3 || !Se(c.tm_year)) && (d = 1); | ||
E != 4 && (E != 3 || !Fe(c.tm_year)) && (d = 1); | ||
} | ||
@@ -1123,3 +1129,3 @@ } else { | ||
var A = (c.tm_wday + 7 - c.tm_yday - 1) % 7; | ||
(A == 4 || A == 5 && Se(c.tm_year % 400 - 1)) && d++; | ||
(A == 4 || A == 5 && Fe(c.tm_year % 400 - 1)) && d++; | ||
} | ||
@@ -1138,5 +1144,5 @@ return p(d, 2); | ||
s = s.replace(/\0\0/g, "%"); | ||
var F = Tn(s, !1); | ||
return F.length > r ? 0 : (An(F, e), F.length - 1); | ||
}, Sn = (e, r, t, n, i) => En(e, r, t, n); | ||
var S = En(s, !1); | ||
return S.length > r ? 0 : (Fn(S, e), S.length - 1); | ||
}, Rn = (e, r, t, n, i) => Sn(e, r, t, n); | ||
ir = f.InternalError = class extends Error { | ||
@@ -1146,17 +1152,17 @@ constructor(r) { | ||
} | ||
}, ft(), ee = f.BindingError = class extends Error { | ||
}, ct(), ee = f.BindingError = class extends Error { | ||
constructor(r) { | ||
super(r), this.name = "BindingError"; | ||
} | ||
}, bt(), gt(), St(), gr = f.UnboundTypeError = kt(Error, "UnboundTypeError"), Mt(), It(); | ||
var Fn = { r: Jr, v: Kr, a: et, h: rt, m: tt, K: nt, R: it, p: at, ca: st, d: Qr, oa: ot, Z: ut, ga: ct, na: Ot, ma: jt, E: Wt, fa: Ut, X: Yt, F: Vt, y: Nt, t: Lt, W: Zt, N: rn, L: tn, pa: nn, ha: an, V: $r, la: un, S: fn, ja: cn, ka: vn, M: dn, ea: hn, da: gn, aa: $n, ba: bn, J: Zn, U: ni, C: qn, q: Ln, b: Rn, D: Xn, ia: Kn, c: Wn, i: Hn, j: On, o: Gn, Q: zn, w: Nn, I: ei, P: ri, B: Jn, H: ii, _: si, Y: oi, k: Mn, e: jn, f: kn, g: Dn, O: ti, l: Vn, n: In, T: Un, u: Yn, x: Bn, A: Qn, s: xn, G: ai, z: wn, $: Sn }, T = qr(), Y = f._free = (e) => (Y = f._free = T.sa)(e), Le = f._malloc = (e) => (Le = f._malloc = T.ta)(e), Rr = (e) => (Rr = T.va)(e); | ||
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = T.wa)(); | ||
var _ = (e, r) => (_ = T.xa)(e, r), le = (e) => (le = T.ya)(e), g = () => (g = T.za)(), y = (e) => (y = T.Aa)(e), Dr = (e) => (Dr = T.Ba)(e), kr = (e) => (kr = T.Ca)(e), Or = (e, r, t) => (Or = T.Da)(e, r, t), jr = (e) => (jr = T.Ea)(e); | ||
f.dynCall_viijii = (e, r, t, n, i, a, s) => (f.dynCall_viijii = T.Fa)(e, r, t, n, i, a, s); | ||
var Wr = f.dynCall_jiii = (e, r, t, n) => (Wr = f.dynCall_jiii = T.Ga)(e, r, t, n), Mr = f.dynCall_jiiii = (e, r, t, n, i) => (Mr = f.dynCall_jiiii = T.Ha)(e, r, t, n, i); | ||
f.dynCall_iiiiij = (e, r, t, n, i, a, s) => (f.dynCall_iiiiij = T.Ia)(e, r, t, n, i, a, s), f.dynCall_iiiiijj = (e, r, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = T.Ja)(e, r, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = T.Ka)(e, r, t, n, i, a, s, o, u, l); | ||
function Rn(e, r) { | ||
}, Ct(), mt(), Rt(), gr = f.UnboundTypeError = jt(Error, "UnboundTypeError"), It(), xt(); | ||
var Dn = { r: Qr, v: et, a: tt, h: nt, m: it, K: at, R: st, p: ot, ba: ut, d: rt, pa: ft, Y: lt, ga: dt, oa: Wt, na: Mt, E: Ht, fa: Yt, V: Bt, F: Lt, y: zt, t: Xt, U: qt, N: nn, L: an, qa: sn, ha: on, ca: br, ma: ln, W: cn, ka: dn, la: hn, M: pn, ea: _n, da: mn, $: wn, aa: Cn, J: qn, T: si, D: Qn, q: Xn, b: kn, B: Zn, ia: ri, c: Hn, j: Un, i: Wn, o: Kn, Q: Gn, w: zn, I: ni, P: ii, C: ei, H: oi, Z: fi, X: li, k: In, e: Mn, f: jn, g: On, O: ai, l: Ln, ja: Jn, n: xn, S: Yn, u: Bn, x: Nn, A: ti, s: Vn, G: ui, z: Pn, _: Rn }, T = Kr(), Y = f._free = (e) => (Y = f._free = T.ta)(e), Ne = f._malloc = (e) => (Ne = f._malloc = T.ua)(e), Dr = (e) => (Dr = T.wa)(e); | ||
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = T.xa)(); | ||
var _ = (e, r) => (_ = T.ya)(e, r), ce = (e) => (ce = T.za)(e), g = () => (g = T.Aa)(), y = (e) => (y = T.Ba)(e), kr = (e) => (kr = T.Ca)(e), Or = (e) => (Or = T.Da)(e), jr = (e, r, t) => (jr = T.Ea)(e, r, t), Wr = (e) => (Wr = T.Fa)(e); | ||
f.dynCall_viijii = (e, r, t, n, i, a, s) => (f.dynCall_viijii = T.Ga)(e, r, t, n, i, a, s); | ||
var Mr = f.dynCall_jiii = (e, r, t, n) => (Mr = f.dynCall_jiii = T.Ha)(e, r, t, n), Hr = f.dynCall_jiiii = (e, r, t, n, i) => (Hr = f.dynCall_jiiii = T.Ia)(e, r, t, n, i); | ||
f.dynCall_iiiiij = (e, r, t, n, i, a, s) => (f.dynCall_iiiiij = T.Ja)(e, r, t, n, i, a, s), f.dynCall_iiiiijj = (e, r, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = T.Ka)(e, r, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = T.La)(e, r, t, n, i, a, s, o, u, l); | ||
function kn(e, r) { | ||
var t = g(); | ||
try { | ||
return b(e)(r); | ||
return m(e)(r); | ||
} catch (n) { | ||
@@ -1168,6 +1174,6 @@ if (y(t), n !== n + 0) | ||
} | ||
function Dn(e, r, t, n) { | ||
function On(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
b(e)(r, t, n); | ||
m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1179,6 +1185,6 @@ if (y(i), a !== a + 0) | ||
} | ||
function kn(e, r, t) { | ||
function jn(e, r, t) { | ||
var n = g(); | ||
try { | ||
b(e)(r, t); | ||
m(e)(r, t); | ||
} catch (i) { | ||
@@ -1190,6 +1196,6 @@ if (y(n), i !== i + 0) | ||
} | ||
function On(e, r, t, n, i) { | ||
function Wn(e, r, t, n, i) { | ||
var a = g(); | ||
try { | ||
return b(e)(r, t, n, i); | ||
return m(e)(r, t, n, i); | ||
} catch (s) { | ||
@@ -1201,6 +1207,6 @@ if (y(a), s !== s + 0) | ||
} | ||
function jn(e, r) { | ||
function Mn(e, r) { | ||
var t = g(); | ||
try { | ||
b(e)(r); | ||
m(e)(r); | ||
} catch (n) { | ||
@@ -1212,6 +1218,6 @@ if (y(t), n !== n + 0) | ||
} | ||
function Wn(e, r, t) { | ||
function Hn(e, r, t) { | ||
var n = g(); | ||
try { | ||
return b(e)(r, t); | ||
return m(e)(r, t); | ||
} catch (i) { | ||
@@ -1223,6 +1229,6 @@ if (y(n), i !== i + 0) | ||
} | ||
function Mn(e) { | ||
function In(e) { | ||
var r = g(); | ||
try { | ||
b(e)(); | ||
m(e)(); | ||
} catch (t) { | ||
@@ -1234,6 +1240,6 @@ if (y(r), t !== t + 0) | ||
} | ||
function Hn(e, r, t, n) { | ||
function Un(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1245,6 +1251,6 @@ if (y(i), a !== a + 0) | ||
} | ||
function In(e, r, t, n, i, a) { | ||
function xn(e, r, t, n, i, a) { | ||
var s = g(); | ||
try { | ||
b(e)(r, t, n, i, a); | ||
m(e)(r, t, n, i, a); | ||
} catch (o) { | ||
@@ -1256,6 +1262,6 @@ if (y(s), o !== o + 0) | ||
} | ||
function Un(e, r, t, n, i, a, s) { | ||
function Yn(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s); | ||
m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1267,6 +1273,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function xn(e, r, t, n, i, a, s, o, u, l, v) { | ||
function Vn(e, r, t, n, i, a, s, o, u, l, v) { | ||
var h = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u, l, v); | ||
m(e)(r, t, n, i, a, s, o, u, l, v); | ||
} catch (p) { | ||
@@ -1278,6 +1284,6 @@ if (y(h), p !== p + 0) | ||
} | ||
function Yn(e, r, t, n, i, a, s, o) { | ||
function Bn(e, r, t, n, i, a, s, o) { | ||
var u = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o); | ||
m(e)(r, t, n, i, a, s, o); | ||
} catch (l) { | ||
@@ -1289,6 +1295,6 @@ if (y(u), l !== l + 0) | ||
} | ||
function Vn(e, r, t, n, i) { | ||
function Ln(e, r, t, n, i) { | ||
var a = g(); | ||
try { | ||
b(e)(r, t, n, i); | ||
m(e)(r, t, n, i); | ||
} catch (s) { | ||
@@ -1300,6 +1306,6 @@ if (y(a), s !== s + 0) | ||
} | ||
function Bn(e, r, t, n, i, a, s, o, u) { | ||
function Nn(e, r, t, n, i, a, s, o, u) { | ||
var l = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u); | ||
m(e)(r, t, n, i, a, s, o, u); | ||
} catch (v) { | ||
@@ -1311,6 +1317,6 @@ if (y(l), v !== v + 0) | ||
} | ||
function Nn(e, r, t, n, i, a, s) { | ||
function zn(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s); | ||
return m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1322,6 +1328,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function Ln(e) { | ||
function Xn(e) { | ||
var r = g(); | ||
try { | ||
return b(e)(); | ||
return m(e)(); | ||
} catch (t) { | ||
@@ -1333,6 +1339,16 @@ if (y(r), t !== t + 0) | ||
} | ||
function zn(e, r, t, n, i, a, s) { | ||
function Zn(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
if (y(i), a !== a + 0) | ||
throw a; | ||
_(1, 0); | ||
} | ||
} | ||
function Gn(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s); | ||
return m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1344,6 +1360,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function Xn(e, r, t, n) { | ||
function qn(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1355,16 +1371,16 @@ if (y(i), a !== a + 0) | ||
} | ||
function Zn(e, r, t, n) { | ||
var i = g(); | ||
function Jn(e, r, t, n, i, a, s, o) { | ||
var u = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
} catch (a) { | ||
if (y(i), a !== a + 0) | ||
throw a; | ||
m(e)(r, t, n, i, a, s, o); | ||
} catch (l) { | ||
if (y(u), l !== l + 0) | ||
throw l; | ||
_(1, 0); | ||
} | ||
} | ||
function Gn(e, r, t, n, i, a) { | ||
function Kn(e, r, t, n, i, a) { | ||
var s = g(); | ||
try { | ||
return b(e)(r, t, n, i, a); | ||
return m(e)(r, t, n, i, a); | ||
} catch (o) { | ||
@@ -1376,6 +1392,6 @@ if (y(s), o !== o + 0) | ||
} | ||
function qn(e, r, t, n, i, a) { | ||
function Qn(e, r, t, n, i, a) { | ||
var s = g(); | ||
try { | ||
return b(e)(r, t, n, i, a); | ||
return m(e)(r, t, n, i, a); | ||
} catch (o) { | ||
@@ -1387,6 +1403,6 @@ if (y(s), o !== o + 0) | ||
} | ||
function Jn(e, r, t, n, i, a, s, o, u, l) { | ||
function ei(e, r, t, n, i, a, s, o, u, l) { | ||
var v = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o, u, l); | ||
return m(e)(r, t, n, i, a, s, o, u, l); | ||
} catch (h) { | ||
@@ -1398,6 +1414,6 @@ if (y(v), h !== h + 0) | ||
} | ||
function Kn(e, r, t) { | ||
function ri(e, r, t) { | ||
var n = g(); | ||
try { | ||
return b(e)(r, t); | ||
return m(e)(r, t); | ||
} catch (i) { | ||
@@ -1409,6 +1425,6 @@ if (y(n), i !== i + 0) | ||
} | ||
function Qn(e, r, t, n, i, a, s, o, u, l) { | ||
function ti(e, r, t, n, i, a, s, o, u, l) { | ||
var v = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u, l); | ||
m(e)(r, t, n, i, a, s, o, u, l); | ||
} catch (h) { | ||
@@ -1420,6 +1436,6 @@ if (y(v), h !== h + 0) | ||
} | ||
function ei(e, r, t, n, i, a, s, o) { | ||
function ni(e, r, t, n, i, a, s, o) { | ||
var u = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o); | ||
return m(e)(r, t, n, i, a, s, o); | ||
} catch (l) { | ||
@@ -1431,6 +1447,6 @@ if (y(u), l !== l + 0) | ||
} | ||
function ri(e, r, t, n, i, a, s, o, u) { | ||
function ii(e, r, t, n, i, a, s, o, u) { | ||
var l = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o, u); | ||
return m(e)(r, t, n, i, a, s, o, u); | ||
} catch (v) { | ||
@@ -1442,6 +1458,6 @@ if (y(l), v !== v + 0) | ||
} | ||
function ti(e, r, t, n, i, a, s) { | ||
function ai(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s); | ||
m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1453,6 +1469,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function ni(e, r, t, n) { | ||
function si(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1464,26 +1480,26 @@ if (y(i), a !== a + 0) | ||
} | ||
function ii(e, r, t, n, i, a, s, o, u, l, v, h) { | ||
function oi(e, r, t, n, i, a, s, o, u, l, v, h) { | ||
var p = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o, u, l, v, h); | ||
} catch (m) { | ||
if (y(p), m !== m + 0) | ||
throw m; | ||
return m(e)(r, t, n, i, a, s, o, u, l, v, h); | ||
} catch ($) { | ||
if (y(p), $ !== $ + 0) | ||
throw $; | ||
_(1, 0); | ||
} | ||
} | ||
function ai(e, r, t, n, i, a, s, o, u, l, v, h, p, m, w, S) { | ||
function ui(e, r, t, n, i, a, s, o, u, l, v, h, p, $, w, F) { | ||
var C = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u, l, v, h, p, m, w, S); | ||
} catch (F) { | ||
if (y(C), F !== F + 0) | ||
throw F; | ||
m(e)(r, t, n, i, a, s, o, u, l, v, h, p, $, w, F); | ||
} catch (S) { | ||
if (y(C), S !== S + 0) | ||
throw S; | ||
_(1, 0); | ||
} | ||
} | ||
function si(e, r, t, n) { | ||
function fi(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return Wr(e, r, t, n); | ||
return Mr(e, r, t, n); | ||
} catch (a) { | ||
@@ -1495,6 +1511,6 @@ if (y(i), a !== a + 0) | ||
} | ||
function oi(e, r, t, n, i) { | ||
function li(e, r, t, n, i) { | ||
var a = g(); | ||
try { | ||
return Mr(e, r, t, n, i); | ||
return Hr(e, r, t, n, i); | ||
} catch (s) { | ||
@@ -1506,11 +1522,11 @@ if (y(a), s !== s + 0) | ||
} | ||
var Fe; | ||
var Se; | ||
ie = function e() { | ||
Fe || Hr(), Fe || (ie = e); | ||
Se || Ir(), Se || (ie = e); | ||
}; | ||
function Hr() { | ||
if (z > 0 || (Ur(), z > 0)) | ||
function Ir() { | ||
if (z > 0 || (Yr(), z > 0)) | ||
return; | ||
function e() { | ||
Fe || (Fe = !0, f.calledRun = !0, !Xe && (xr(), B(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), Yr())); | ||
Se || (Se = !0, f.calledRun = !0, !Xe && (Vr(), B(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), Br())); | ||
} | ||
@@ -1526,14 +1542,14 @@ f.setStatus ? (f.setStatus("Running..."), setTimeout(function() { | ||
f.preInit.pop()(); | ||
return Hr(), V.ready; | ||
return Ir(), V.ready; | ||
}; | ||
})(); | ||
function pi(W) { | ||
return ui(De, W); | ||
function yi(W) { | ||
return ci(De, W); | ||
} | ||
async function _i(W, { | ||
tryHarder: V = L.tryHarder, | ||
formats: f = L.formats, | ||
maxSymbols: B = L.maxSymbols | ||
} = L) { | ||
return fi( | ||
async function mi(W, { | ||
tryHarder: V = N.tryHarder, | ||
formats: f = N.formats, | ||
maxSymbols: B = N.maxSymbols | ||
} = N) { | ||
return vi( | ||
W, | ||
@@ -1548,8 +1564,8 @@ { | ||
} | ||
async function gi(W, { | ||
tryHarder: V = L.tryHarder, | ||
formats: f = L.formats, | ||
maxSymbols: B = L.maxSymbols | ||
} = L) { | ||
return li( | ||
async function $i(W, { | ||
tryHarder: V = N.tryHarder, | ||
formats: f = N.formats, | ||
maxSymbols: B = N.maxSymbols | ||
} = N) { | ||
return di( | ||
W, | ||
@@ -1564,3 +1580,3 @@ { | ||
} | ||
async function yi(W, { | ||
async function bi(W, { | ||
format: V = J.format, | ||
@@ -1570,6 +1586,6 @@ charset: f = J.charset, | ||
width: K = J.width, | ||
height: ce = J.height, | ||
eccLevel: ve = J.eccLevel | ||
height: ve = J.height, | ||
eccLevel: de = J.eccLevel | ||
} = J) { | ||
return ci( | ||
return hi( | ||
W, | ||
@@ -1581,4 +1597,4 @@ { | ||
width: K, | ||
height: ce, | ||
eccLevel: ve | ||
height: ve, | ||
eccLevel: de | ||
}, | ||
@@ -1589,12 +1605,12 @@ De | ||
export { | ||
bi as ZXING_BARCODE_FORMAT_NAMES, | ||
wi as ZXING_CHARACTOR_SET_NAMES, | ||
L as defaultZXingReadOptions, | ||
Pi as ZXING_BARCODE_FORMAT_NAMES, | ||
Ti as ZXING_CHARACTOR_SET_NAMES, | ||
N as defaultZXingReadOptions, | ||
J as defaultZXingWriteOptions, | ||
pi as getZXingModule, | ||
Ci as purgeZXingModule, | ||
gi as readBarcodeFromImageData, | ||
_i as readBarcodesFromImageFile, | ||
Pi as setZXingModuleOverrides, | ||
yi as writeBarcodeToImageFile | ||
yi as getZXingModule, | ||
Ai as purgeZXingModule, | ||
$i as readBarcodeFromImageData, | ||
mi as readBarcodesFromImageFile, | ||
Ei as setZXingModuleOverrides, | ||
bi as writeBarcodeToImageFile | ||
}; |
@@ -1,18 +0,18 @@ | ||
import { g as oi, r as ui, d as B, a as fi } from "../core-4b54e5ce.js"; | ||
import { Z as yi, b as mi, c as $i, p as bi, s as wi } from "../core-4b54e5ce.js"; | ||
import { g as li, r as ci, d as B, a as vi } from "../core-d8c798a7.js"; | ||
import { Z as bi, b as wi, c as Ci, p as Pi, s as Ti } from "../core-d8c798a7.js"; | ||
var Ve = (() => { | ||
var Y = import.meta.url; | ||
return function(G = {}) { | ||
var f = G, q, fe; | ||
var f = G, q, le; | ||
f.ready = new Promise((e, r) => { | ||
q = e, fe = r; | ||
q = e, le = r; | ||
}); | ||
var Be = Object.assign({}, f), Ne = "./this.program", Le = typeof window == "object", le = typeof importScripts == "function"; | ||
var Be = Object.assign({}, f), Le = "./this.program", Ne = typeof window == "object", ce = typeof importScripts == "function"; | ||
typeof process == "object" && typeof process.versions == "object" && process.versions.node; | ||
var W = ""; | ||
function Hr(e) { | ||
function Ir(e) { | ||
return f.locateFile ? f.locateFile(e, W) : W + e; | ||
} | ||
var Se; | ||
(Le || le) && (le ? W = self.location.href : typeof document < "u" && document.currentScript && (W = document.currentScript.src), Y && (W = Y), W.indexOf("blob:") !== 0 ? W = W.substr(0, W.replace(/[?#].*/, "").lastIndexOf("/") + 1) : W = "", le && (Se = (e) => { | ||
(Ne || ce) && (ce ? W = self.location.href : typeof document < "u" && document.currentScript && (W = document.currentScript.src), Y && (W = Y), W.indexOf("blob:") !== 0 ? W = W.substr(0, W.replace(/[?#].*/, "").lastIndexOf("/") + 1) : W = "", ce && (Se = (e) => { | ||
var r = new XMLHttpRequest(); | ||
@@ -22,41 +22,45 @@ return r.open("GET", e, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response); | ||
var Q = f.printErr || console.error.bind(console); | ||
Object.assign(f, Be), Be = null, f.arguments && f.arguments, f.thisProgram && (Ne = f.thisProgram), f.quit && f.quit; | ||
Object.assign(f, Be), Be = null, f.arguments && f.arguments, f.thisProgram && (Le = f.thisProgram), f.quit && f.quit; | ||
var ee; | ||
f.wasmBinary && (ee = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && de("no native wasm support detected"); | ||
var ce, ze = !1, M, k, re, ve, R, P, Xe, Ze; | ||
f.wasmBinary && (ee = f.wasmBinary), typeof WebAssembly != "object" && ne("no native wasm support detected"); | ||
var ve, ze = !1; | ||
function Ur(e, r) { | ||
e || ne(r); | ||
} | ||
var M, k, re, de, R, P, Xe, Ze; | ||
function Ge() { | ||
var e = ce.buffer; | ||
f.HEAP8 = M = new Int8Array(e), f.HEAP16 = re = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = ve = new Uint16Array(e), f.HEAP32 = R = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Xe = new Float32Array(e), f.HEAPF64 = Ze = new Float64Array(e); | ||
var e = ve.buffer; | ||
f.HEAP8 = M = new Int8Array(e), f.HEAP16 = re = new Int16Array(e), f.HEAPU8 = k = new Uint8Array(e), f.HEAPU16 = de = new Uint16Array(e), f.HEAP32 = R = new Int32Array(e), f.HEAPU32 = P = new Uint32Array(e), f.HEAPF32 = Xe = new Float32Array(e), f.HEAPF64 = Ze = new Float64Array(e); | ||
} | ||
var qe = [], Je = [], Ke = []; | ||
function Ir() { | ||
function xr() { | ||
if (f.preRun) | ||
for (typeof f.preRun == "function" && (f.preRun = [f.preRun]); f.preRun.length; ) | ||
Yr(f.preRun.shift()); | ||
Br(f.preRun.shift()); | ||
Fe(qe); | ||
} | ||
function Ur() { | ||
function Yr() { | ||
Fe(Je); | ||
} | ||
function xr() { | ||
function Vr() { | ||
if (f.postRun) | ||
for (typeof f.postRun == "function" && (f.postRun = [f.postRun]); f.postRun.length; ) | ||
Br(f.postRun.shift()); | ||
Nr(f.postRun.shift()); | ||
Fe(Ke); | ||
} | ||
function Yr(e) { | ||
function Br(e) { | ||
qe.unshift(e); | ||
} | ||
function Vr(e) { | ||
function Lr(e) { | ||
Je.unshift(e); | ||
} | ||
function Br(e) { | ||
function Nr(e) { | ||
Ke.unshift(e); | ||
} | ||
var N = 0, te = null; | ||
function Nr(e) { | ||
N++, f.monitorRunDependencies && f.monitorRunDependencies(N); | ||
var L = 0, te = null; | ||
function zr(e) { | ||
L++, f.monitorRunDependencies && f.monitorRunDependencies(L); | ||
} | ||
function Lr(e) { | ||
if (N--, f.monitorRunDependencies && f.monitorRunDependencies(N), N == 0 && te) { | ||
function Xr(e) { | ||
if (L--, f.monitorRunDependencies && f.monitorRunDependencies(L), L == 0 && te) { | ||
var r = te; | ||
@@ -66,15 +70,11 @@ te = null, r(); | ||
} | ||
function de(e) { | ||
function ne(e) { | ||
f.onAbort && f.onAbort(e), e = "Aborted(" + e + ")", Q(e), ze = !0, e += ". Build with -sASSERTIONS for more info."; | ||
var r = new WebAssembly.RuntimeError(e); | ||
throw fe(r), r; | ||
throw le(r), r; | ||
} | ||
var zr = "data:application/octet-stream;base64,"; | ||
function Qe(e) { | ||
return e.startsWith(zr); | ||
} | ||
var L; | ||
f.locateFile ? (L = "zxing_reader.wasm", Qe(L) || (L = Hr(L))) : L = new URL("/reader/zxing_reader.wasm", self.location).href; | ||
var Zr = "data:application/octet-stream;base64,", Qe = (e) => e.startsWith(Zr), N; | ||
f.locateFile ? (N = "zxing_reader.wasm", Qe(N) || (N = Ir(N))) : N = new URL("/reader/zxing_reader.wasm", self.location).href; | ||
function er(e) { | ||
if (e == L && ee) | ||
if (e == N && ee) | ||
return new Uint8Array(ee); | ||
@@ -85,4 +85,4 @@ if (Se) | ||
} | ||
function Xr(e) { | ||
return !ee && (Le || le) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => { | ||
function Gr(e) { | ||
return !ee && (Ne || ce) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((r) => { | ||
if (!r.ok) | ||
@@ -94,7 +94,7 @@ throw "failed to load wasm binary file at '" + e + "'"; | ||
function rr(e, r, t) { | ||
return Xr(e).then((n) => WebAssembly.instantiate(n, r)).then((n) => n).then(t, (n) => { | ||
Q(`failed to asynchronously prepare wasm: ${n}`), de(n); | ||
return Gr(e).then((n) => WebAssembly.instantiate(n, r)).then((n) => n).then(t, (n) => { | ||
Q(`failed to asynchronously prepare wasm: ${n}`), ne(n); | ||
}); | ||
} | ||
function Zr(e, r, t, n) { | ||
function qr(e, r, t, n) { | ||
return !e && typeof WebAssembly.instantiateStreaming == "function" && !Qe(r) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((i) => { | ||
@@ -107,8 +107,8 @@ var a = WebAssembly.instantiateStreaming(i, t); | ||
} | ||
function Gr() { | ||
var e = { a: Sn }; | ||
function Jr() { | ||
var e = { a: Rn }; | ||
function r(n, i) { | ||
return T = n.exports, ce = T.qa, Ge(), pr = T.ua, Vr(T.ra), Lr(), T; | ||
return T = n.exports, ve = T.ra, Ge(), pr = T.va, Lr(T.sa), Xr(), T; | ||
} | ||
Nr(); | ||
zr(); | ||
function t(n) { | ||
@@ -121,5 +121,5 @@ r(n.instance); | ||
} catch (n) { | ||
Q(`Module.instantiateWasm callback failed with error: ${n}`), fe(n); | ||
Q(`Module.instantiateWasm callback failed with error: ${n}`), le(n); | ||
} | ||
return Zr(ee, L, e, t).catch(fe), {}; | ||
return qr(ee, N, e, t).catch(le), {}; | ||
} | ||
@@ -129,9 +129,11 @@ var Fe = (e) => { | ||
e.shift()(f); | ||
}, he = [], pe = 0, qr = (e) => { | ||
}; | ||
f.noExitRuntime; | ||
var he = [], pe = 0, Kr = (e) => { | ||
var r = new _e(e); | ||
return r.get_caught() || (r.set_caught(!0), pe--), r.set_rethrown(!1), he.push(r), Dr(r.excPtr), r.get_exception_ptr(); | ||
}, H = 0, Jr = () => { | ||
return r.get_caught() || (r.set_caught(!0), pe--), r.set_rethrown(!1), he.push(r), kr(r.excPtr), r.get_exception_ptr(); | ||
}, H = 0, Qr = () => { | ||
_(0, 0); | ||
var e = he.pop(); | ||
Rr(e.excPtr), H = 0; | ||
Dr(e.excPtr), H = 0; | ||
}; | ||
@@ -162,3 +164,3 @@ function _e(e) { | ||
}, this.get_exception_ptr = function() { | ||
var r = Or(this.get_type()); | ||
var r = jr(this.get_type()); | ||
if (r) | ||
@@ -170,3 +172,3 @@ return P[this.excPtr >> 2]; | ||
} | ||
var Kr = (e) => { | ||
var et = (e) => { | ||
throw H || (H = e), H; | ||
@@ -176,3 +178,3 @@ }, Re = (e) => { | ||
if (!r) | ||
return ue(0), 0; | ||
return fe(0), 0; | ||
var t = new _e(r); | ||
@@ -182,3 +184,3 @@ t.set_adjusted_ptr(r); | ||
if (!n) | ||
return ue(0), r; | ||
return fe(0), r; | ||
for (var i in e) { | ||
@@ -189,18 +191,18 @@ var a = e[i]; | ||
var s = t.ptr + 16; | ||
if (kr(a, n, s)) | ||
return ue(a), r; | ||
if (Or(a, n, s)) | ||
return fe(a), r; | ||
} | ||
return ue(n), r; | ||
}, Qr = () => Re([]), et = (e) => Re([e]), rt = (e, r) => Re([e, r]), tt = (e) => { | ||
return fe(n), r; | ||
}, rt = () => Re([]), tt = (e) => Re([e]), nt = (e, r) => Re([e, r]), it = (e) => { | ||
var r = new _e(e).get_exception_ptr(); | ||
return r; | ||
}, nt = () => { | ||
}, at = () => { | ||
var e = he.pop(); | ||
e || de("no exception to throw"); | ||
e || ne("no exception to throw"); | ||
var r = e.excPtr; | ||
throw e.get_rethrown() || (he.push(e), e.set_rethrown(!0), e.set_caught(!1), pe++), H = r, H; | ||
}, it = (e, r, t) => { | ||
}, st = (e, r, t) => { | ||
var n = new _e(e); | ||
throw n.init(r, t), H = e, pe++, H; | ||
}, at = () => pe, ge = {}, tr = (e) => { | ||
}, ot = () => pe, ge = {}, tr = (e) => { | ||
for (; e.length; ) { | ||
@@ -232,3 +234,3 @@ var r = e.pop(), t = e.pop(); | ||
}), a.length === 0 && n(i); | ||
}, st = (e) => { | ||
}, ut = (e) => { | ||
var r = ge[e]; | ||
@@ -240,4 +242,4 @@ delete ge[e]; | ||
return i.forEach((u, l) => { | ||
var v = u.fieldName, h = s[l], p = u.getter, m = u.getterContext, w = s[l + i.length], S = u.setter, C = u.setterContext; | ||
o[v] = { read: (F) => h.fromWireType(p(m, F)), write: (F, c) => { | ||
var v = u.fieldName, h = s[l], p = u.getter, $ = u.getterContext, w = s[l + i.length], S = u.setter, C = u.setterContext; | ||
o[v] = { read: (F) => h.fromWireType(p($, F)), write: (F, c) => { | ||
var d = []; | ||
@@ -261,4 +263,4 @@ S(C, F, w.toWireType(d, c)), tr(d); | ||
}); | ||
}, ot = (e, r, t, n, i) => { | ||
}, ut = () => { | ||
}, ft = (e, r, t, n, i) => { | ||
}, lt = () => { | ||
for (var e = new Array(256), r = 0; r < 256; ++r) | ||
@@ -271,11 +273,11 @@ e[r] = String.fromCharCode(r); | ||
return r; | ||
}, K, $ = (e) => { | ||
}, K, b = (e) => { | ||
throw new K(e); | ||
}; | ||
function ft(e, r, t = {}) { | ||
function ct(e, r, t = {}) { | ||
var n = r.name; | ||
if (e || $(`type "${n}" must have a positive integer typeid pointer`), z.hasOwnProperty(e)) { | ||
if (e || b(`type "${n}" must have a positive integer typeid pointer`), z.hasOwnProperty(e)) { | ||
if (t.ignoreDuplicateRegistrations) | ||
return; | ||
$(`Cannot register type '${n}' twice`); | ||
b(`Cannot register type '${n}' twice`); | ||
} | ||
@@ -290,5 +292,5 @@ if (z[e] = r, delete ye[e], J.hasOwnProperty(e)) { | ||
throw new TypeError("registerType registeredInstance requires argPackAdvance"); | ||
return ft(e, r, t); | ||
return ct(e, r, t); | ||
} | ||
var U = 8, lt = (e, r, t, n) => { | ||
var U = 8, vt = (e, r, t, n) => { | ||
r = D(r), I(e, { name: r, fromWireType: function(i) { | ||
@@ -301,9 +303,9 @@ return !!i; | ||
}, destructorFunction: null }); | ||
}, ct = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), ke = (e) => { | ||
}, dt = (e) => ({ count: e.count, deleteScheduled: e.deleteScheduled, preservePointerOnDelete: e.preservePointerOnDelete, ptr: e.ptr, ptrType: e.ptrType, smartPtr: e.smartPtr, smartPtrType: e.smartPtrType }), ke = (e) => { | ||
function r(t) { | ||
return t.$$.ptrType.registeredClass.name; | ||
} | ||
$(r(e) + " instance already deleted"); | ||
b(r(e) + " instance already deleted"); | ||
}, Oe = !1, ar = (e) => { | ||
}, vt = (e) => { | ||
}, ht = (e) => { | ||
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr); | ||
@@ -313,3 +315,3 @@ }, sr = (e) => { | ||
var r = e.count.value === 0; | ||
r && vt(e); | ||
r && ht(e); | ||
}, or = (e, r, t) => { | ||
@@ -322,30 +324,30 @@ if (r === t) | ||
return n === null ? null : t.downcast(n); | ||
}, ur = {}, dt = () => Object.keys(ae).length, ht = () => { | ||
}, ur = {}, pt = () => Object.keys(se).length, _t = () => { | ||
var e = []; | ||
for (var r in ae) | ||
ae.hasOwnProperty(r) && e.push(ae[r]); | ||
for (var r in se) | ||
se.hasOwnProperty(r) && e.push(se[r]); | ||
return e; | ||
}, ne = [], je = () => { | ||
for (; ne.length; ) { | ||
var e = ne.pop(); | ||
}, ie = [], je = () => { | ||
for (; ie.length; ) { | ||
var e = ie.pop(); | ||
e.$$.deleteScheduled = !1, e.delete(); | ||
} | ||
}, ie, pt = (e) => { | ||
ie = e, ne.length && ie && ie(je); | ||
}, _t = () => { | ||
f.getInheritedInstanceCount = dt, f.getLiveInheritedInstances = ht, f.flushPendingDeletes = je, f.setDelayFunction = pt; | ||
}, ae = {}, gt = (e, r) => { | ||
for (r === void 0 && $("ptr should not be undefined"); e.baseClass; ) | ||
}, ae, gt = (e) => { | ||
ae = e, ie.length && ae && ae(je); | ||
}, yt = () => { | ||
f.getInheritedInstanceCount = pt, f.getLiveInheritedInstances = _t, f.flushPendingDeletes = je, f.setDelayFunction = gt; | ||
}, se = {}, mt = (e, r) => { | ||
for (r === void 0 && b("ptr should not be undefined"); e.baseClass; ) | ||
r = e.upcast(r), e = e.baseClass; | ||
return r; | ||
}, yt = (e, r) => (r = gt(e, r), ae[r]), $e = (e, r) => { | ||
}, $t = (e, r) => (r = mt(e, r), se[r]), $e = (e, r) => { | ||
(!r.ptrType || !r.ptr) && me("makeClassHandle requires ptr and ptrType"); | ||
var t = !!r.smartPtrType, n = !!r.smartPtr; | ||
return t !== n && me("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, se(Object.create(e, { $$: { value: r } })); | ||
return t !== n && me("Both smartPtrType and smartPtr must be specified"), r.count = { value: 1 }, oe(Object.create(e, { $$: { value: r } })); | ||
}; | ||
function mt(e) { | ||
function bt(e) { | ||
var r = this.getPointee(e); | ||
if (!r) | ||
return this.destructor(e), null; | ||
var t = yt(this.registeredClass, r); | ||
var t = $t(this.registeredClass, r); | ||
if (t !== void 0) { | ||
@@ -368,5 +370,5 @@ if (t.$$.count.value === 0) | ||
} | ||
var se = (e) => typeof FinalizationRegistry > "u" ? (se = (r) => r, e) : (Oe = new FinalizationRegistry((r) => { | ||
var oe = (e) => typeof FinalizationRegistry > "u" ? (oe = (r) => r, e) : (Oe = new FinalizationRegistry((r) => { | ||
sr(r.$$); | ||
}), se = (r) => { | ||
}), oe = (r) => { | ||
var t = r.$$, n = !!t.smartPtr; | ||
@@ -378,3 +380,3 @@ if (n) { | ||
return r; | ||
}, ar = (r) => Oe.unregister(r), se(e)), $t = () => { | ||
}, ar = (r) => Oe.unregister(r), oe(e)), wt = () => { | ||
Object.assign(be.prototype, { isAliasOf(e) { | ||
@@ -393,10 +395,10 @@ if (!(this instanceof be) || !(e instanceof be)) | ||
return this.$$.count.value += 1, this; | ||
var e = se(Object.create(Object.getPrototypeOf(this), { $$: { value: ct(this.$$) } })); | ||
var e = oe(Object.create(Object.getPrototypeOf(this), { $$: { value: dt(this.$$) } })); | ||
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e; | ||
}, delete() { | ||
this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ar(this), sr(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); | ||
this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && b("Object already scheduled for deletion"), ar(this), sr(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); | ||
}, isDeleted() { | ||
return !this.$$.ptr; | ||
}, deleteLater() { | ||
return this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), ne.push(this), ne.length === 1 && ie && ie(je), this.$$.deleteScheduled = !0, this; | ||
return this.$$.ptr || ke(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && b("Object already scheduled for deletion"), ie.push(this), ie.length === 1 && ae && ae(je), this.$$.deleteScheduled = !0, this; | ||
} }); | ||
@@ -406,3 +408,3 @@ }; | ||
} | ||
var bt = 48, wt = 57, fr = (e) => { | ||
var Ct = 48, Pt = 57, fr = (e) => { | ||
if (e === void 0) | ||
@@ -412,3 +414,3 @@ return "_unknown"; | ||
var r = e.charCodeAt(0); | ||
return r >= bt && r <= wt ? `_${e}` : e; | ||
return r >= Ct && r <= Pt ? `_${e}` : e; | ||
}; | ||
@@ -424,9 +426,9 @@ function lr(e, r) { | ||
e[r] = function() { | ||
return e[r].overloadTable.hasOwnProperty(arguments.length) || $(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`), e[r].overloadTable[arguments.length].apply(this, arguments); | ||
return e[r].overloadTable.hasOwnProperty(arguments.length) || b(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`), e[r].overloadTable[arguments.length].apply(this, arguments); | ||
}, e[r].overloadTable = [], e[r].overloadTable[n.argCount] = n; | ||
} | ||
}, vr = (e, r, t) => { | ||
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && $(`Cannot register public name '${e}' twice`), cr(f, e, e), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t)); | ||
f.hasOwnProperty(e) ? ((t === void 0 || f[e].overloadTable !== void 0 && f[e].overloadTable[t] !== void 0) && b(`Cannot register public name '${e}' twice`), cr(f, e, e), f.hasOwnProperty(t) && b(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[e].overloadTable[t] = r) : (f[e] = r, t !== void 0 && (f[e].numArguments = t)); | ||
}; | ||
function Ct(e, r, t, n, i, a, s, o) { | ||
function Tt(e, r, t, n, i, a, s, o) { | ||
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = []; | ||
@@ -436,22 +438,22 @@ } | ||
for (; r !== t; ) | ||
r.upcast || $(`Expected null or instance of ${t.name}, got an instance of ${r.name}`), e = r.upcast(e), r = r.baseClass; | ||
r.upcast || b(`Expected null or instance of ${t.name}, got an instance of ${r.name}`), e = r.upcast(e), r = r.baseClass; | ||
return e; | ||
}; | ||
function Pt(e, r) { | ||
function At(e, r) { | ||
if (r === null) | ||
return this.isReference && $(`null is not a valid ${this.name}`), 0; | ||
r.$$ || $(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`); | ||
return this.isReference && b(`null is not a valid ${this.name}`), 0; | ||
r.$$ || b(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`); | ||
var t = r.$$.ptrType.registeredClass, n = We(r.$$.ptr, t, this.registeredClass); | ||
return n; | ||
} | ||
function Tt(e, r) { | ||
function Et(e, r) { | ||
var t; | ||
if (r === null) | ||
return this.isReference && $(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), e !== null && e.push(this.rawDestructor, t), t) : 0; | ||
r.$$ || $(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && r.$$.ptrType.isConst && $(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
return this.isReference && b(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), e !== null && e.push(this.rawDestructor, t), t) : 0; | ||
r.$$ || b(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && r.$$.ptrType.isConst && b(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
var n = r.$$.ptrType.registeredClass; | ||
if (t = We(r.$$.ptr, n, this.registeredClass), this.isSmartPointer) | ||
switch (r.$$.smartPtr === void 0 && $("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { | ||
switch (r.$$.smartPtr === void 0 && b("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { | ||
case 0: | ||
r.$$.smartPtrType === this ? t = r.$$.smartPtr : $(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
r.$$.smartPtrType === this ? t = r.$$.smartPtr : b(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); | ||
break; | ||
@@ -470,10 +472,10 @@ case 1: | ||
default: | ||
$("Unsupporting sharing policy"); | ||
b("Unsupporting sharing policy"); | ||
} | ||
return t; | ||
} | ||
function At(e, r) { | ||
function St(e, r) { | ||
if (r === null) | ||
return this.isReference && $(`null is not a valid ${this.name}`), 0; | ||
r.$$ || $(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), r.$$.ptrType.isConst && $(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`); | ||
return this.isReference && b(`null is not a valid ${this.name}`), 0; | ||
r.$$ || b(`Cannot pass "${Ie(r)}" as a ${this.name}`), r.$$.ptr || b(`Cannot pass deleted object as a pointer of type ${this.name}`), r.$$.ptrType.isConst && b(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`); | ||
var t = r.$$.ptrType.registeredClass, n = We(r.$$.ptr, t, this.registeredClass); | ||
@@ -485,3 +487,3 @@ return n; | ||
} | ||
var Et = () => { | ||
var Ft = () => { | ||
Object.assign(we.prototype, { getPointee(e) { | ||
@@ -493,24 +495,24 @@ return this.rawGetPointee && (e = this.rawGetPointee(e)), e; | ||
e !== null && e.delete(); | ||
}, fromWireType: mt }); | ||
}, fromWireType: bt }); | ||
}; | ||
function we(e, r, t, n, i, a, s, o, u, l, v) { | ||
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = Pt, this.destructorFunction = null) : (this.toWireType = At, this.destructorFunction = null) : this.toWireType = Tt; | ||
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = v, !i && r.baseClass === void 0 ? n ? (this.toWireType = At, this.destructorFunction = null) : (this.toWireType = St, this.destructorFunction = null) : this.toWireType = Et; | ||
} | ||
var hr = (e, r, t) => { | ||
f.hasOwnProperty(e) || me("Replacing nonexistant public symbol"), f[e].overloadTable !== void 0 && t !== void 0 ? f[e].overloadTable[t] = r : (f[e] = r, f[e].argCount = t); | ||
}, St = (e, r, t) => { | ||
}, Rt = (e, r, t) => { | ||
var n = f["dynCall_" + e]; | ||
return t && t.length ? n.apply(null, [r].concat(t)) : n.call(null, r); | ||
}, Ce = [], pr, b = (e) => { | ||
}, Ce = [], pr, m = (e) => { | ||
var r = Ce[e]; | ||
return r || (e >= Ce.length && (Ce.length = e + 1), Ce[e] = r = pr.get(e)), r; | ||
}, Ft = (e, r, t) => { | ||
}, Dt = (e, r, t) => { | ||
if (e.includes("j")) | ||
return St(e, r, t); | ||
var n = b(r).apply(null, t); | ||
return Rt(e, r, t); | ||
var n = m(r).apply(null, t); | ||
return n; | ||
}, Rt = (e, r) => { | ||
}, kt = (e, r) => { | ||
var t = []; | ||
return function() { | ||
return t.length = 0, Object.assign(t, arguments), Ft(e, r, t); | ||
return t.length = 0, Object.assign(t, arguments), Dt(e, r, t); | ||
}; | ||
@@ -520,7 +522,7 @@ }, j = (e, r) => { | ||
function t() { | ||
return e.includes("j") ? Rt(e, r) : b(r); | ||
return e.includes("j") ? kt(e, r) : m(r); | ||
} | ||
var n = t(); | ||
return typeof n != "function" && $(`unknown function pointer with signature ${e}: ${r}`), n; | ||
}, Dt = (e, r) => { | ||
return typeof n != "function" && b(`unknown function pointer with signature ${e}: ${r}`), n; | ||
}, Ot = (e, r) => { | ||
var t = lr(r, function(n) { | ||
@@ -536,3 +538,3 @@ this.name = r, this.message = n; | ||
}, _r, gr = (e) => { | ||
var r = Fr(e), t = D(r); | ||
var r = Rr(e), t = D(r); | ||
return x(r), t; | ||
@@ -551,6 +553,6 @@ }, Pe = (e, r) => { | ||
throw r.forEach(i), new _r(`${e}: ` + t.map(gr).join([", "])); | ||
}, kt = (e, r, t, n, i, a, s, o, u, l, v, h, p) => { | ||
}, jt = (e, r, t, n, i, a, s, o, u, l, v, h, p) => { | ||
v = D(v), a = j(i, a), o && (o = j(s, o)), l && (l = j(u, l)), p = j(h, p); | ||
var m = fr(v); | ||
vr(m, function() { | ||
var $ = fr(v); | ||
vr($, function() { | ||
Pe(`Cannot construct ${v} due to unbound types`, [n]); | ||
@@ -561,3 +563,3 @@ }), X([e, r, t], n ? [n] : [], function(w) { | ||
n ? (S = w.registeredClass, C = S.instancePrototype) : C = be.prototype; | ||
var F = lr(m, function() { | ||
var F = lr($, function() { | ||
if (Object.getPrototypeOf(this) !== c) | ||
@@ -573,6 +575,6 @@ throw new K("Use 'new' to construct " + v); | ||
F.prototype = c; | ||
var d = new Ct(v, F, c, p, S, a, o, l); | ||
var d = new Tt(v, F, c, p, S, a, o, l); | ||
d.baseClass && (d.baseClass.__derivedClasses === void 0 && (d.baseClass.__derivedClasses = []), d.baseClass.__derivedClasses.push(d)); | ||
var A = new we(v, d, !0, !1, !1), E = new we(v + "*", d, !1, !1, !1), Z = new we(v + " const*", d, !1, !0, !1); | ||
return ur[e] = { pointerType: E, constPointerType: Z }, hr(m, F), [A, E, Z]; | ||
return ur[e] = { pointerType: E, constPointerType: Z }, hr($, F), [A, E, Z]; | ||
}); | ||
@@ -586,3 +588,3 @@ }, Me = (e, r) => { | ||
var s = r.length; | ||
s < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!"); | ||
s < 2 && b("argTypes array size mismatch! Must at least get return value and 'this' types!"); | ||
for (var o = r[1] !== null && t !== null, u = !1, l = 1; l < r.length; ++l) | ||
@@ -593,10 +595,10 @@ if (r[l] !== null && r[l].destructorFunction === void 0) { | ||
} | ||
var v = r[0].name !== "void", h = s - 2, p = new Array(h), m = [], w = []; | ||
var v = r[0].name !== "void", h = s - 2, p = new Array(h), $ = [], w = []; | ||
return function() { | ||
arguments.length !== h && $(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0; | ||
arguments.length !== h && b(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0; | ||
var S; | ||
m.length = o ? 2 : 1, m[0] = i, o && (S = r[1].toWireType(w, this), m[1] = S); | ||
$.length = o ? 2 : 1, $[0] = i, o && (S = r[1].toWireType(w, this), $[1] = S); | ||
for (var C = 0; C < h; ++C) | ||
p[C] = r[C + 2].toWireType(w, arguments[C]), m.push(p[C]); | ||
var F = n.apply(null, m); | ||
p[C] = r[C + 2].toWireType(w, arguments[C]), $.push(p[C]); | ||
var F = n.apply(null, $); | ||
function c(d) { | ||
@@ -616,3 +618,3 @@ if (u) | ||
} | ||
var Ot = (e, r, t, n, i, a) => { | ||
var Wt = (e, r, t, n, i, a) => { | ||
var s = Me(r, t); | ||
@@ -628,5 +630,9 @@ i = j(n, i), X([], [e], function(o) { | ||
}); | ||
}, jt = (e, r, t, n, i, a, s, o, u) => { | ||
}, yr = (e) => { | ||
e = e.trim(); | ||
const r = e.indexOf("("); | ||
return r !== -1 ? (Ur(e[e.length - 1] == ")", "Parentheses for argument names should match."), e.substr(0, r)) : e; | ||
}, Mt = (e, r, t, n, i, a, s, o, u) => { | ||
var l = Me(t, n); | ||
r = D(r), a = j(i, a), X([], [e], function(v) { | ||
r = D(r), r = yr(r), a = j(i, a), X([], [e], function(v) { | ||
v = v[0]; | ||
@@ -638,11 +644,11 @@ var h = `${v.name}.${r}`; | ||
} | ||
var m = v.registeredClass.instancePrototype, w = m[r]; | ||
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, m[r] = p) : (cr(m, r, h), m[r].overloadTable[t - 2] = p), X([], l, function(S) { | ||
var $ = v.registeredClass.instancePrototype, w = $[r]; | ||
return w === void 0 || w.overloadTable === void 0 && w.className !== v.name && w.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, $[r] = p) : (cr($, r, h), $[r].overloadTable[t - 2] = p), X([], l, function(S) { | ||
var C = He(h, S, v, a, s); | ||
return m[r].overloadTable === void 0 ? (C.argCount = t - 2, m[r] = C) : m[r].overloadTable[t - 2] = C, []; | ||
return $[r].overloadTable === void 0 ? (C.argCount = t - 2, $[r] = C) : $[r].overloadTable[t - 2] = C, []; | ||
}), []; | ||
}); | ||
}; | ||
function Wt() { | ||
Object.assign(yr.prototype, { get(e) { | ||
function Ht() { | ||
Object.assign(mr.prototype, { get(e) { | ||
return this.allocated[e]; | ||
@@ -658,14 +664,14 @@ }, has(e) { | ||
} | ||
function yr() { | ||
function mr() { | ||
this.allocated = [void 0], this.freelist = []; | ||
} | ||
var O = new yr(), mr = (e) => { | ||
var O = new mr(), $r = (e) => { | ||
e >= O.reserved && --O.get(e).refcount === 0 && O.free(e); | ||
}, Mt = () => { | ||
}, It = () => { | ||
for (var e = 0, r = O.reserved; r < O.allocated.length; ++r) | ||
O.allocated[r] !== void 0 && ++e; | ||
return e; | ||
}, Ht = () => { | ||
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = Mt; | ||
}, V = { toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => { | ||
}, Ut = () => { | ||
O.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), O.reserved = O.allocated.length, f.count_emval_handles = It; | ||
}, V = { toValue: (e) => (e || b("Cannot use deleted val. handle = " + e), O.get(e).value), toHandle: (e) => { | ||
switch (e) { | ||
@@ -683,6 +689,6 @@ case void 0: | ||
} | ||
} }, It = (e, r) => { | ||
} }, xt = (e, r) => { | ||
r = D(r), I(e, { name: r, fromWireType: (t) => { | ||
var n = V.toValue(t); | ||
return mr(t), n; | ||
return $r(t), n; | ||
}, toWireType: (t, n) => V.toHandle(n), argPackAdvance: U, readValueFromPointer: De, destructorFunction: null }); | ||
@@ -694,3 +700,3 @@ }, Ie = (e) => { | ||
return r === "object" || r === "array" || r === "function" ? e.toString() : "" + e; | ||
}, Ut = (e, r) => { | ||
}, Yt = (e, r) => { | ||
switch (r) { | ||
@@ -708,7 +714,7 @@ case 4: | ||
} | ||
}, xt = (e, r, t) => { | ||
r = D(r), I(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: U, readValueFromPointer: Ut(r, t), destructorFunction: null }); | ||
}, Yt = (e, r, t, n, i, a, s) => { | ||
}, Vt = (e, r, t) => { | ||
r = D(r), I(e, { name: r, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: U, readValueFromPointer: Yt(r, t), destructorFunction: null }); | ||
}, Bt = (e, r, t, n, i, a, s) => { | ||
var o = Me(r, t); | ||
e = D(e), i = j(n, i), vr(e, function() { | ||
e = D(e), e = yr(e), i = j(n, i), vr(e, function() { | ||
Pe(`Cannot call ${e} due to unbound types`, o); | ||
@@ -719,3 +725,3 @@ }, r - 1), X([], o, function(u) { | ||
}); | ||
}, Vt = (e, r, t) => { | ||
}, Lt = (e, r, t) => { | ||
switch (r) { | ||
@@ -725,3 +731,3 @@ case 1: | ||
case 2: | ||
return t ? (n) => re[n >> 1] : (n) => ve[n >> 1]; | ||
return t ? (n) => re[n >> 1] : (n) => de[n >> 1]; | ||
case 4: | ||
@@ -732,3 +738,3 @@ return t ? (n) => R[n >> 2] : (n) => P[n >> 2]; | ||
} | ||
}, Bt = (e, r, t, n, i) => { | ||
}, Nt = (e, r, t, n, i) => { | ||
r = D(r); | ||
@@ -746,4 +752,4 @@ var a = (v) => v; | ||
return u(h, this.name), h; | ||
}, I(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: U, readValueFromPointer: Vt(r, t, n !== 0), destructorFunction: null }); | ||
}, Nt = (e, r, t) => { | ||
}, I(e, { name: r, fromWireType: a, toWireType: l, argPackAdvance: U, readValueFromPointer: Lt(r, t, n !== 0), destructorFunction: null }); | ||
}, zt = (e, r, t) => { | ||
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[r]; | ||
@@ -755,3 +761,3 @@ function a(s) { | ||
t = D(t), I(e, { name: t, fromWireType: a, argPackAdvance: U, readValueFromPointer: a }, { ignoreDuplicateRegistrations: !0 }); | ||
}, $r = (e, r, t, n) => { | ||
}, br = (e, r, t, n) => { | ||
if (!(n > 0)) | ||
@@ -784,3 +790,3 @@ return 0; | ||
return r[t] = 0, t - i; | ||
}, Lt = (e, r, t) => $r(e, k, r, t), br = (e) => { | ||
}, Xt = (e, r, t) => br(e, k, r, t), wr = (e) => { | ||
for (var r = 0, t = 0; t < e.length; ++t) { | ||
@@ -791,7 +797,7 @@ var n = e.charCodeAt(t); | ||
return r; | ||
}, wr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, zt = (e, r, t) => { | ||
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Zt = (e, r, t) => { | ||
for (var n = r + t, i = r; e[i] && !(i >= n); ) | ||
++i; | ||
if (i - r > 16 && e.buffer && wr) | ||
return wr.decode(e.subarray(r, i)); | ||
if (i - r > 16 && e.buffer && Cr) | ||
return Cr.decode(e.subarray(r, i)); | ||
for (var a = ""; r < i; ) { | ||
@@ -817,3 +823,3 @@ var s = e[r++]; | ||
return a; | ||
}, Ue = (e, r) => e ? zt(k, e, r) : "", Xt = (e, r) => { | ||
}, Ue = (e, r) => e ? Zt(k, e, r) : "", Gt = (e, r) => { | ||
r = D(r); | ||
@@ -840,10 +846,10 @@ var t = r === "std::string"; | ||
var a, s = typeof i == "string"; | ||
s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || $("Cannot pass non-string to std::string"), t && s ? a = br(i) : a = i.length; | ||
s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || b("Cannot pass non-string to std::string"), t && s ? a = wr(i) : a = i.length; | ||
var o = Ye(4 + a + 1), u = o + 4; | ||
if (P[o >> 2] = a, t && s) | ||
Lt(i, u, a + 1); | ||
Xt(i, u, a + 1); | ||
else if (s) | ||
for (var l = 0; l < a; ++l) { | ||
var v = i.charCodeAt(l); | ||
v > 255 && (x(u), $("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v; | ||
v > 255 && (x(u), b("String has UTF-16 code units that do not fit in 8 bits")), k[u + l] = v; | ||
} | ||
@@ -857,7 +863,7 @@ else | ||
} }); | ||
}, Cr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Zt = (e, r) => { | ||
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && ve[n]; ) | ||
}, Pr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, qt = (e, r) => { | ||
for (var t = e, n = t >> 1, i = n + r / 2; !(n >= i) && de[n]; ) | ||
++n; | ||
if (t = n << 1, t - e > 32 && Cr) | ||
return Cr.decode(k.subarray(e, t)); | ||
if (t = n << 1, t - e > 32 && Pr) | ||
return Pr.decode(k.subarray(e, t)); | ||
for (var a = "", s = 0; !(s >= r / 2); ++s) { | ||
@@ -870,3 +876,3 @@ var o = re[e + s * 2 >> 1]; | ||
return a; | ||
}, Gt = (e, r, t) => { | ||
}, Jt = (e, r, t) => { | ||
if (t === void 0 && (t = 2147483647), t < 2) | ||
@@ -880,3 +886,3 @@ return 0; | ||
return re[r >> 1] = 0, r - n; | ||
}, qt = (e) => e.length * 2, Jt = (e, r) => { | ||
}, Kt = (e) => e.length * 2, Qt = (e, r) => { | ||
for (var t = 0, n = ""; !(t >= r / 4); ) { | ||
@@ -893,3 +899,3 @@ var i = R[e + t * 4 >> 2]; | ||
return n; | ||
}, Kt = (e, r, t) => { | ||
}, en = (e, r, t) => { | ||
if (t === void 0 && (t = 2147483647), t < 4) | ||
@@ -907,3 +913,3 @@ return 0; | ||
return R[r >> 2] = 0, r - n; | ||
}, Qt = (e) => { | ||
}, rn = (e) => { | ||
for (var r = 0, t = 0; t < e.length; ++t) { | ||
@@ -914,9 +920,9 @@ var n = e.charCodeAt(t); | ||
return r; | ||
}, en = (e, r, t) => { | ||
}, tn = (e, r, t) => { | ||
t = D(t); | ||
var n, i, a, s, o; | ||
r === 2 ? (n = Zt, i = Gt, s = qt, a = () => ve, o = 1) : r === 4 && (n = Jt, i = Kt, s = Qt, a = () => P, o = 2), I(e, { name: t, fromWireType: (u) => { | ||
for (var l = P[u >> 2], v = a(), h, p = u + 4, m = 0; m <= l; ++m) { | ||
var w = u + 4 + m * r; | ||
if (m == l || v[w >> o] == 0) { | ||
r === 2 ? (n = qt, i = Jt, s = Kt, a = () => de, o = 1) : r === 4 && (n = Qt, i = en, s = rn, a = () => P, o = 2), I(e, { name: t, fromWireType: (u) => { | ||
for (var l = P[u >> 2], v = a(), h, p = u + 4, $ = 0; $ <= l; ++$) { | ||
var w = u + 4 + $ * r; | ||
if ($ == l || v[w >> o] == 0) { | ||
var S = w - p, C = n(p, S); | ||
@@ -928,3 +934,3 @@ h === void 0 ? h = C : (h += String.fromCharCode(0), h += C), p = w + r; | ||
}, toWireType: (u, l) => { | ||
typeof l != "string" && $(`Cannot pass non-string to C++ string type ${t}`); | ||
typeof l != "string" && b(`Cannot pass non-string to C++ string type ${t}`); | ||
var v = s(l), h = Ye(4 + v + r); | ||
@@ -935,14 +941,14 @@ return P[h >> 2] = v >> o, i(l, h + 4, v + r), u !== null && u.push(x, h), h; | ||
} }); | ||
}, rn = (e, r, t, n, i, a) => { | ||
}, nn = (e, r, t, n, i, a) => { | ||
ge[e] = { name: D(r), rawConstructor: j(t, n), rawDestructor: j(i, a), fields: [] }; | ||
}, tn = (e, r, t, n, i, a, s, o, u, l) => { | ||
}, an = (e, r, t, n, i, a, s, o, u, l) => { | ||
ge[e].fields.push({ fieldName: D(r), getterReturnType: t, getter: j(n, i), getterContext: a, setterArgumentType: s, setter: j(o, u), setterContext: l }); | ||
}, nn = (e, r) => { | ||
}, sn = (e, r) => { | ||
r = D(r), I(e, { isVoid: !0, name: r, argPackAdvance: 0, fromWireType: () => { | ||
}, toWireType: (t, n) => { | ||
} }); | ||
}, an = {}, sn = (e) => { | ||
var r = an[e]; | ||
}, on = {}, un = (e) => { | ||
var r = on[e]; | ||
return r === void 0 ? D(e) : r; | ||
}, Pr = () => { | ||
}, Tr = () => { | ||
if (typeof globalThis == "object") | ||
@@ -958,8 +964,8 @@ return globalThis; | ||
throw Error("unable to get global object."); | ||
}, on = (e) => e === 0 ? V.toHandle(Pr()) : (e = sn(e), V.toHandle(Pr()[e])), un = (e) => { | ||
}, fn = (e) => e === 0 ? V.toHandle(Tr()) : (e = un(e), V.toHandle(Tr()[e])), ln = (e) => { | ||
e > 4 && (O.get(e).refcount += 1); | ||
}, Tr = (e, r) => { | ||
}, Ar = (e, r) => { | ||
var t = z[e]; | ||
return t === void 0 && $(r + " has unknown type " + gr(e)), t; | ||
}, fn = (e) => { | ||
return t === void 0 && b(r + " has unknown type " + gr(e)), t; | ||
}, cn = (e) => { | ||
var r = new Array(e + 1); | ||
@@ -969,3 +975,3 @@ return function(t, n, i) { | ||
for (var a = 0; a < e; ++a) { | ||
var s = Tr(P[n + a * 4 >> 2], "parameter " + a); | ||
var s = Ar(P[n + a * 4 >> 2], "parameter " + a); | ||
r[a + 1] = s.readValueFromPointer(i), i += s.argPackAdvance; | ||
@@ -976,22 +982,22 @@ } | ||
}; | ||
}, Ar = {}, ln = (e, r, t, n) => { | ||
}, Er = {}, vn = (e, r, t, n) => { | ||
e = V.toValue(e); | ||
var i = Ar[r]; | ||
return i || (i = fn(r), Ar[r] = i), i(e, t, n); | ||
}, cn = (e, r) => { | ||
e = Tr(e, "_emval_take_value"); | ||
var i = Er[r]; | ||
return i || (i = cn(r), Er[r] = i), i(e, t, n); | ||
}, dn = (e, r) => { | ||
e = Ar(e, "_emval_take_value"); | ||
var t = e.readValueFromPointer(r); | ||
return V.toHandle(t); | ||
}, vn = () => { | ||
de(""); | ||
}, dn = (e, r, t) => k.copyWithin(e, r, r + t), hn = () => 2147483648, pn = (e) => { | ||
var r = ce.buffer, t = (e - r.byteLength + 65535) / 65536; | ||
}, hn = () => { | ||
ne(""); | ||
}, pn = (e, r, t) => k.copyWithin(e, r, r + t), _n = () => 2147483648, gn = (e) => { | ||
var r = ve.buffer, t = (e - r.byteLength + 65535) / 65536; | ||
try { | ||
return ce.grow(t), Ge(), 1; | ||
return ve.grow(t), Ge(), 1; | ||
} catch { | ||
} | ||
}, _n = (e) => { | ||
}, yn = (e) => { | ||
var r = k.length; | ||
e >>>= 0; | ||
var t = hn(); | ||
var t = _n(); | ||
if (e > t) | ||
@@ -1002,3 +1008,3 @@ return !1; | ||
a = Math.min(a, e + 100663296); | ||
var s = Math.min(t, n(Math.max(e, a), 65536)), o = pn(s); | ||
var s = Math.min(t, n(Math.max(e, a), 65536)), o = gn(s); | ||
if (o) | ||
@@ -1008,5 +1014,5 @@ return !0; | ||
return !1; | ||
}, xe = {}, gn = () => Ne || "./this.program", oe = () => { | ||
if (!oe.strings) { | ||
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: gn() }; | ||
}, xe = {}, mn = () => Le || "./this.program", ue = () => { | ||
if (!ue.strings) { | ||
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: e, _: mn() }; | ||
for (var t in xe) | ||
@@ -1017,27 +1023,27 @@ xe[t] === void 0 ? delete r[t] : r[t] = xe[t]; | ||
n.push(`${t}=${r[t]}`); | ||
oe.strings = n; | ||
ue.strings = n; | ||
} | ||
return oe.strings; | ||
}, yn = (e, r) => { | ||
return ue.strings; | ||
}, $n = (e, r) => { | ||
for (var t = 0; t < e.length; ++t) | ||
M[r++ >> 0] = e.charCodeAt(t); | ||
M[r >> 0] = 0; | ||
}, mn = (e, r) => { | ||
}, bn = (e, r) => { | ||
var t = 0; | ||
return oe().forEach((n, i) => { | ||
return ue().forEach((n, i) => { | ||
var a = r + t; | ||
P[e + i * 4 >> 2] = a, yn(n, a), t += n.length + 1; | ||
P[e + i * 4 >> 2] = a, $n(n, a), t += n.length + 1; | ||
}), 0; | ||
}, $n = (e, r) => { | ||
var t = oe(); | ||
}, wn = (e, r) => { | ||
var t = ue(); | ||
P[e >> 2] = t.length; | ||
var n = 0; | ||
return t.forEach((i) => n += i.length + 1), P[r >> 2] = n, 0; | ||
}, bn = (e) => e, Te = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), wn = (e, r) => { | ||
}, Cn = (e) => e, Te = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Pn = (e, r) => { | ||
for (var t = 0, n = 0; n <= r; t += e[n++]) | ||
; | ||
return t; | ||
}, Er = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Sr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Cn = (e, r) => { | ||
}, Sr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Fr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Tn = (e, r) => { | ||
for (var t = new Date(e.getTime()); r > 0; ) { | ||
var n = Te(t.getFullYear()), i = t.getMonth(), a = (n ? Er : Sr)[i]; | ||
var n = Te(t.getFullYear()), i = t.getMonth(), a = (n ? Sr : Fr)[i]; | ||
if (r > a - t.getDate()) | ||
@@ -1050,9 +1056,9 @@ r -= a - t.getDate() + 1, t.setDate(1), i < 11 ? t.setMonth(i + 1) : (t.setMonth(0), t.setFullYear(t.getFullYear() + 1)); | ||
}; | ||
function Pn(e, r, t) { | ||
var n = t > 0 ? t : br(e) + 1, i = new Array(n), a = $r(e, i, 0, i.length); | ||
function An(e, r, t) { | ||
var n = t > 0 ? t : wr(e) + 1, i = new Array(n), a = br(e, i, 0, i.length); | ||
return r && (i.length = a), i; | ||
} | ||
var Tn = (e, r) => { | ||
var En = (e, r) => { | ||
M.set(e, r); | ||
}, An = (e, r, t, n) => { | ||
}, Sn = (e, r, t, n) => { | ||
var i = P[n + 40 >> 2], a = { tm_sec: R[n >> 2], tm_min: R[n + 4 >> 2], tm_hour: R[n + 8 >> 2], tm_mday: R[n + 12 >> 2], tm_mon: R[n + 16 >> 2], tm_year: R[n + 20 >> 2], tm_wday: R[n + 24 >> 2], tm_yday: R[n + 28 >> 2], tm_isdst: R[n + 32 >> 2], tm_gmtoff: R[n + 36 >> 2], tm_zone: i ? Ue(i) : "" }, s = Ue(t), o = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" }; | ||
@@ -1070,3 +1076,3 @@ for (var u in o) | ||
} | ||
function m(c, d) { | ||
function $(c, d) { | ||
function A(Z) { | ||
@@ -1097,4 +1103,4 @@ return Z < 0 ? -1 : Z > 0 ? 1 : 0; | ||
function S(c) { | ||
var d = Cn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), Z = w(A), Ee = w(E); | ||
return m(Z, d) <= 0 ? m(Ee, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1; | ||
var d = Tn(new Date(c.tm_year + 1900, 0, 1), c.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), Z = w(A), Ee = w(E); | ||
return $(Z, d) <= 0 ? $(Ee, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1; | ||
} | ||
@@ -1107,3 +1113,3 @@ var C = { "%a": (c) => l[c.tm_wday].substring(0, 3), "%A": (c) => l[c.tm_wday], "%b": (c) => v[c.tm_mon].substring(0, 3), "%B": (c) => v[c.tm_mon], "%C": (c) => { | ||
return d == 0 ? d = 12 : d > 12 && (d -= 12), p(d, 2); | ||
}, "%j": (c) => p(c.tm_mday + wn(Te(c.tm_year + 1900) ? Er : Sr, c.tm_mon - 1), 3), "%m": (c) => p(c.tm_mon + 1, 2), "%M": (c) => p(c.tm_min, 2), "%n": () => ` | ||
}, "%j": (c) => p(c.tm_mday + Pn(Te(c.tm_year + 1900) ? Sr : Fr, c.tm_mon - 1), 3), "%m": (c) => p(c.tm_mon + 1, 2), "%M": (c) => p(c.tm_min, 2), "%n": () => ` | ||
`, "%p": (c) => c.tm_hour >= 0 && c.tm_hour < 12 ? "AM" : "PM", "%S": (c) => p(c.tm_sec, 2), "%t": () => " ", "%u": (c) => c.tm_wday || 7, "%U": (c) => { | ||
@@ -1136,5 +1142,5 @@ var d = c.tm_yday + 7 - c.tm_wday; | ||
s = s.replace(/\0\0/g, "%"); | ||
var F = Pn(s, !1); | ||
return F.length > r ? 0 : (Tn(F, e), F.length - 1); | ||
}, En = (e, r, t, n, i) => An(e, r, t, n); | ||
var F = An(s, !1); | ||
return F.length > r ? 0 : (En(F, e), F.length - 1); | ||
}, Fn = (e, r, t, n, i) => Sn(e, r, t, n); | ||
nr = f.InternalError = class extends Error { | ||
@@ -1144,17 +1150,17 @@ constructor(r) { | ||
} | ||
}, ut(), K = f.BindingError = class extends Error { | ||
}, lt(), K = f.BindingError = class extends Error { | ||
constructor(r) { | ||
super(r), this.name = "BindingError"; | ||
} | ||
}, $t(), _t(), Et(), _r = f.UnboundTypeError = Dt(Error, "UnboundTypeError"), Wt(), Ht(); | ||
var Sn = { q: qr, u: Jr, a: Qr, h: et, l: rt, I: tt, P: nt, n: it, ba: at, d: Kr, oa: st, Y: ot, fa: lt, na: kt, ma: Ot, D: jt, ea: It, W: xt, J: Yt, w: Bt, s: Nt, V: Xt, L: en, Q: rn, pa: tn, ga: nn, U: mr, la: on, R: un, ia: ln, ka: cn, K: vn, da: dn, ca: _n, $: mn, aa: $n, H: Xn, T: ti, B: Gn, p: Nn, b: Fn, C: zn, ha: Jn, c: jn, j: Mn, i: kn, x: Zn, O: Ln, v: Vn, G: Qn, N: ei, A: qn, F: ni, Z: ai, X: si, k: Wn, f: On, e: Dn, g: Rn, M: ri, m: Yn, o: Hn, S: In, t: xn, ja: Bn, y: Kn, r: Un, E: ii, z: bn, _: En }, T = Gr(), x = f._free = (e) => (x = f._free = T.sa)(e), Ye = f._malloc = (e) => (Ye = f._malloc = T.ta)(e), Fr = (e) => (Fr = T.va)(e); | ||
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = T.wa)(); | ||
var _ = (e, r) => (_ = T.xa)(e, r), ue = (e) => (ue = T.ya)(e), g = () => (g = T.za)(), y = (e) => (y = T.Aa)(e), Rr = (e) => (Rr = T.Ba)(e), Dr = (e) => (Dr = T.Ca)(e), kr = (e, r, t) => (kr = T.Da)(e, r, t), Or = (e) => (Or = T.Ea)(e); | ||
f.dynCall_viijii = (e, r, t, n, i, a, s) => (f.dynCall_viijii = T.Fa)(e, r, t, n, i, a, s); | ||
var jr = f.dynCall_jiii = (e, r, t, n) => (jr = f.dynCall_jiii = T.Ga)(e, r, t, n), Wr = f.dynCall_jiiii = (e, r, t, n, i) => (Wr = f.dynCall_jiiii = T.Ha)(e, r, t, n, i); | ||
f.dynCall_iiiiij = (e, r, t, n, i, a, s) => (f.dynCall_iiiiij = T.Ia)(e, r, t, n, i, a, s), f.dynCall_iiiiijj = (e, r, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = T.Ja)(e, r, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = T.Ka)(e, r, t, n, i, a, s, o, u, l); | ||
function Fn(e, r) { | ||
}, wt(), yt(), Ft(), _r = f.UnboundTypeError = Ot(Error, "UnboundTypeError"), Ht(), Ut(); | ||
var Rn = { q: Kr, u: Qr, a: rt, h: tt, l: nt, I: it, P: at, n: st, aa: ot, d: et, pa: ut, X: ft, fa: vt, oa: jt, na: Wt, D: Mt, ea: xt, U: Vt, J: Bt, w: Nt, s: zt, T: Gt, L: tn, Q: nn, qa: an, ga: sn, ba: $r, ma: fn, V: ln, ja: vn, la: dn, K: hn, da: pn, ca: yn, _: bn, $: wn, H: Gn, S: ai, C: Kn, p: zn, b: Dn, z: Xn, ha: ei, c: Mn, j: In, i: jn, x: Jn, O: Zn, v: Ln, G: ti, N: ni, B: Qn, F: si, Y: ui, W: fi, k: Hn, f: Wn, e: On, g: kn, M: ii, m: Bn, ia: qn, o: Un, R: xn, t: Vn, ka: Nn, y: ri, r: Yn, E: oi, A: Cn, Z: Fn }, T = Jr(), x = f._free = (e) => (x = f._free = T.ta)(e), Ye = f._malloc = (e) => (Ye = f._malloc = T.ua)(e), Rr = (e) => (Rr = T.wa)(e); | ||
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = T.xa)(); | ||
var _ = (e, r) => (_ = T.ya)(e, r), fe = (e) => (fe = T.za)(e), g = () => (g = T.Aa)(), y = (e) => (y = T.Ba)(e), Dr = (e) => (Dr = T.Ca)(e), kr = (e) => (kr = T.Da)(e), Or = (e, r, t) => (Or = T.Ea)(e, r, t), jr = (e) => (jr = T.Fa)(e); | ||
f.dynCall_viijii = (e, r, t, n, i, a, s) => (f.dynCall_viijii = T.Ga)(e, r, t, n, i, a, s); | ||
var Wr = f.dynCall_jiii = (e, r, t, n) => (Wr = f.dynCall_jiii = T.Ha)(e, r, t, n), Mr = f.dynCall_jiiii = (e, r, t, n, i) => (Mr = f.dynCall_jiiii = T.Ia)(e, r, t, n, i); | ||
f.dynCall_iiiiij = (e, r, t, n, i, a, s) => (f.dynCall_iiiiij = T.Ja)(e, r, t, n, i, a, s), f.dynCall_iiiiijj = (e, r, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = T.Ka)(e, r, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (e, r, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = T.La)(e, r, t, n, i, a, s, o, u, l); | ||
function Dn(e, r) { | ||
var t = g(); | ||
try { | ||
return b(e)(r); | ||
return m(e)(r); | ||
} catch (n) { | ||
@@ -1166,6 +1172,6 @@ if (y(t), n !== n + 0) | ||
} | ||
function Rn(e, r, t, n) { | ||
function kn(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
b(e)(r, t, n); | ||
m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1177,6 +1183,6 @@ if (y(i), a !== a + 0) | ||
} | ||
function Dn(e, r, t) { | ||
function On(e, r, t) { | ||
var n = g(); | ||
try { | ||
b(e)(r, t); | ||
m(e)(r, t); | ||
} catch (i) { | ||
@@ -1188,6 +1194,6 @@ if (y(n), i !== i + 0) | ||
} | ||
function kn(e, r, t, n, i) { | ||
function jn(e, r, t, n, i) { | ||
var a = g(); | ||
try { | ||
return b(e)(r, t, n, i); | ||
return m(e)(r, t, n, i); | ||
} catch (s) { | ||
@@ -1199,6 +1205,6 @@ if (y(a), s !== s + 0) | ||
} | ||
function On(e, r) { | ||
function Wn(e, r) { | ||
var t = g(); | ||
try { | ||
b(e)(r); | ||
m(e)(r); | ||
} catch (n) { | ||
@@ -1210,6 +1216,6 @@ if (y(t), n !== n + 0) | ||
} | ||
function jn(e, r, t) { | ||
function Mn(e, r, t) { | ||
var n = g(); | ||
try { | ||
return b(e)(r, t); | ||
return m(e)(r, t); | ||
} catch (i) { | ||
@@ -1221,6 +1227,6 @@ if (y(n), i !== i + 0) | ||
} | ||
function Wn(e) { | ||
function Hn(e) { | ||
var r = g(); | ||
try { | ||
b(e)(); | ||
m(e)(); | ||
} catch (t) { | ||
@@ -1232,6 +1238,6 @@ if (y(r), t !== t + 0) | ||
} | ||
function Mn(e, r, t, n) { | ||
function In(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1243,6 +1249,6 @@ if (y(i), a !== a + 0) | ||
} | ||
function Hn(e, r, t, n, i, a) { | ||
function Un(e, r, t, n, i, a) { | ||
var s = g(); | ||
try { | ||
b(e)(r, t, n, i, a); | ||
m(e)(r, t, n, i, a); | ||
} catch (o) { | ||
@@ -1254,6 +1260,6 @@ if (y(s), o !== o + 0) | ||
} | ||
function In(e, r, t, n, i, a, s) { | ||
function xn(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s); | ||
m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1265,6 +1271,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function Un(e, r, t, n, i, a, s, o, u, l, v) { | ||
function Yn(e, r, t, n, i, a, s, o, u, l, v) { | ||
var h = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u, l, v); | ||
m(e)(r, t, n, i, a, s, o, u, l, v); | ||
} catch (p) { | ||
@@ -1276,6 +1282,6 @@ if (y(h), p !== p + 0) | ||
} | ||
function xn(e, r, t, n, i, a, s, o) { | ||
function Vn(e, r, t, n, i, a, s, o) { | ||
var u = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o); | ||
m(e)(r, t, n, i, a, s, o); | ||
} catch (l) { | ||
@@ -1287,6 +1293,6 @@ if (y(u), l !== l + 0) | ||
} | ||
function Yn(e, r, t, n, i) { | ||
function Bn(e, r, t, n, i) { | ||
var a = g(); | ||
try { | ||
b(e)(r, t, n, i); | ||
m(e)(r, t, n, i); | ||
} catch (s) { | ||
@@ -1298,6 +1304,6 @@ if (y(a), s !== s + 0) | ||
} | ||
function Vn(e, r, t, n, i, a, s) { | ||
function Ln(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s); | ||
return m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1309,6 +1315,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function Bn(e, r, t, n, i, a, s, o, u) { | ||
function Nn(e, r, t, n, i, a, s, o, u) { | ||
var l = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u); | ||
m(e)(r, t, n, i, a, s, o, u); | ||
} catch (v) { | ||
@@ -1320,6 +1326,6 @@ if (y(l), v !== v + 0) | ||
} | ||
function Nn(e) { | ||
function zn(e) { | ||
var r = g(); | ||
try { | ||
return b(e)(); | ||
return m(e)(); | ||
} catch (t) { | ||
@@ -1331,6 +1337,16 @@ if (y(r), t !== t + 0) | ||
} | ||
function Ln(e, r, t, n, i, a, s) { | ||
function Xn(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
if (y(i), a !== a + 0) | ||
throw a; | ||
_(1, 0); | ||
} | ||
} | ||
function Zn(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s); | ||
return m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1342,6 +1358,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function zn(e, r, t, n) { | ||
function Gn(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1353,16 +1369,16 @@ if (y(i), a !== a + 0) | ||
} | ||
function Xn(e, r, t, n) { | ||
var i = g(); | ||
function qn(e, r, t, n, i, a, s, o) { | ||
var u = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
} catch (a) { | ||
if (y(i), a !== a + 0) | ||
throw a; | ||
m(e)(r, t, n, i, a, s, o); | ||
} catch (l) { | ||
if (y(u), l !== l + 0) | ||
throw l; | ||
_(1, 0); | ||
} | ||
} | ||
function Zn(e, r, t, n, i, a) { | ||
function Jn(e, r, t, n, i, a) { | ||
var s = g(); | ||
try { | ||
return b(e)(r, t, n, i, a); | ||
return m(e)(r, t, n, i, a); | ||
} catch (o) { | ||
@@ -1374,6 +1390,6 @@ if (y(s), o !== o + 0) | ||
} | ||
function Gn(e, r, t, n, i, a) { | ||
function Kn(e, r, t, n, i, a) { | ||
var s = g(); | ||
try { | ||
return b(e)(r, t, n, i, a); | ||
return m(e)(r, t, n, i, a); | ||
} catch (o) { | ||
@@ -1385,6 +1401,6 @@ if (y(s), o !== o + 0) | ||
} | ||
function qn(e, r, t, n, i, a, s, o, u, l) { | ||
function Qn(e, r, t, n, i, a, s, o, u, l) { | ||
var v = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o, u, l); | ||
return m(e)(r, t, n, i, a, s, o, u, l); | ||
} catch (h) { | ||
@@ -1396,6 +1412,6 @@ if (y(v), h !== h + 0) | ||
} | ||
function Jn(e, r, t) { | ||
function ei(e, r, t) { | ||
var n = g(); | ||
try { | ||
return b(e)(r, t); | ||
return m(e)(r, t); | ||
} catch (i) { | ||
@@ -1407,6 +1423,6 @@ if (y(n), i !== i + 0) | ||
} | ||
function Kn(e, r, t, n, i, a, s, o, u, l) { | ||
function ri(e, r, t, n, i, a, s, o, u, l) { | ||
var v = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u, l); | ||
m(e)(r, t, n, i, a, s, o, u, l); | ||
} catch (h) { | ||
@@ -1418,6 +1434,6 @@ if (y(v), h !== h + 0) | ||
} | ||
function Qn(e, r, t, n, i, a, s, o) { | ||
function ti(e, r, t, n, i, a, s, o) { | ||
var u = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o); | ||
return m(e)(r, t, n, i, a, s, o); | ||
} catch (l) { | ||
@@ -1429,6 +1445,6 @@ if (y(u), l !== l + 0) | ||
} | ||
function ei(e, r, t, n, i, a, s, o, u) { | ||
function ni(e, r, t, n, i, a, s, o, u) { | ||
var l = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o, u); | ||
return m(e)(r, t, n, i, a, s, o, u); | ||
} catch (v) { | ||
@@ -1440,6 +1456,6 @@ if (y(l), v !== v + 0) | ||
} | ||
function ri(e, r, t, n, i, a, s) { | ||
function ii(e, r, t, n, i, a, s) { | ||
var o = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s); | ||
m(e)(r, t, n, i, a, s); | ||
} catch (u) { | ||
@@ -1451,6 +1467,6 @@ if (y(o), u !== u + 0) | ||
} | ||
function ti(e, r, t, n) { | ||
function ai(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return b(e)(r, t, n); | ||
return m(e)(r, t, n); | ||
} catch (a) { | ||
@@ -1462,16 +1478,16 @@ if (y(i), a !== a + 0) | ||
} | ||
function ni(e, r, t, n, i, a, s, o, u, l, v, h) { | ||
function si(e, r, t, n, i, a, s, o, u, l, v, h) { | ||
var p = g(); | ||
try { | ||
return b(e)(r, t, n, i, a, s, o, u, l, v, h); | ||
} catch (m) { | ||
if (y(p), m !== m + 0) | ||
throw m; | ||
return m(e)(r, t, n, i, a, s, o, u, l, v, h); | ||
} catch ($) { | ||
if (y(p), $ !== $ + 0) | ||
throw $; | ||
_(1, 0); | ||
} | ||
} | ||
function ii(e, r, t, n, i, a, s, o, u, l, v, h, p, m, w, S) { | ||
function oi(e, r, t, n, i, a, s, o, u, l, v, h, p, $, w, S) { | ||
var C = g(); | ||
try { | ||
b(e)(r, t, n, i, a, s, o, u, l, v, h, p, m, w, S); | ||
m(e)(r, t, n, i, a, s, o, u, l, v, h, p, $, w, S); | ||
} catch (F) { | ||
@@ -1483,6 +1499,6 @@ if (y(C), F !== F + 0) | ||
} | ||
function ai(e, r, t, n) { | ||
function ui(e, r, t, n) { | ||
var i = g(); | ||
try { | ||
return jr(e, r, t, n); | ||
return Wr(e, r, t, n); | ||
} catch (a) { | ||
@@ -1494,6 +1510,6 @@ if (y(i), a !== a + 0) | ||
} | ||
function si(e, r, t, n, i) { | ||
function fi(e, r, t, n, i) { | ||
var a = g(); | ||
try { | ||
return Wr(e, r, t, n, i); | ||
return Mr(e, r, t, n, i); | ||
} catch (s) { | ||
@@ -1507,9 +1523,9 @@ if (y(a), s !== s + 0) | ||
te = function e() { | ||
Ae || Mr(), Ae || (te = e); | ||
Ae || Hr(), Ae || (te = e); | ||
}; | ||
function Mr() { | ||
if (N > 0 || (Ir(), N > 0)) | ||
function Hr() { | ||
if (L > 0 || (xr(), L > 0)) | ||
return; | ||
function e() { | ||
Ae || (Ae = !0, f.calledRun = !0, !ze && (Ur(), q(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), xr())); | ||
Ae || (Ae = !0, f.calledRun = !0, !ze && (Yr(), q(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), Vr())); | ||
} | ||
@@ -1525,9 +1541,9 @@ f.setStatus ? (f.setStatus("Running..."), setTimeout(function() { | ||
f.preInit.pop()(); | ||
return Mr(), G.ready; | ||
return Hr(), G.ready; | ||
}; | ||
})(); | ||
function di(Y) { | ||
return oi(Ve, Y); | ||
function _i(Y) { | ||
return li(Ve, Y); | ||
} | ||
async function hi(Y, { | ||
async function gi(Y, { | ||
tryHarder: G = B.tryHarder, | ||
@@ -1537,3 +1553,3 @@ formats: f = B.formats, | ||
} = B) { | ||
return ui( | ||
return ci( | ||
Y, | ||
@@ -1548,3 +1564,3 @@ { | ||
} | ||
async function pi(Y, { | ||
async function yi(Y, { | ||
tryHarder: G = B.tryHarder, | ||
@@ -1554,3 +1570,3 @@ formats: f = B.formats, | ||
} = B) { | ||
return fi( | ||
return vi( | ||
Y, | ||
@@ -1566,11 +1582,11 @@ { | ||
export { | ||
yi as ZXING_BARCODE_FORMAT_NAMES, | ||
mi as ZXING_CHARACTOR_SET_NAMES, | ||
bi as ZXING_BARCODE_FORMAT_NAMES, | ||
wi as ZXING_CHARACTOR_SET_NAMES, | ||
B as defaultZXingReadOptions, | ||
$i as defaultZXingWriteOptions, | ||
di as getZXingModule, | ||
bi as purgeZXingModule, | ||
pi as readBarcodesFromImageData, | ||
hi as readBarcodesFromImageFile, | ||
wi as setZXingModuleOverrides | ||
Ci as defaultZXingWriteOptions, | ||
_i as getZXingModule, | ||
Pi as purgeZXingModule, | ||
yi as readBarcodesFromImageData, | ||
gi as readBarcodesFromImageFile, | ||
Ti as setZXingModuleOverrides | ||
}; |
@@ -1,11 +0,11 @@ | ||
import { g as Mt, w as Ht, c as O } from "../core-4b54e5ce.js"; | ||
import { Z as zt, b as Gt, d as Kt, p as Jt, s as Qt } from "../core-4b54e5ce.js"; | ||
import { g as Vt, w as Bt, c as D } from "../core-d8c798a7.js"; | ||
import { Z as Kt, b as Jt, d as Qt, p as Yt, s as rn } from "../core-d8c798a7.js"; | ||
var Gr = (() => { | ||
var I = import.meta.url; | ||
return function(J = {}) { | ||
var f = J, Q, M; | ||
return function(Q = {}) { | ||
var f = Q, Y, M; | ||
f.ready = new Promise((r, e) => { | ||
Q = r, M = e; | ||
Y = r, M = e; | ||
}); | ||
var Y = Object.assign({}, f), rr = typeof window == "object", er = typeof importScripts == "function"; | ||
var rr = Object.assign({}, f), er = typeof window == "object", tr = typeof importScripts == "function"; | ||
typeof process == "object" && typeof process.versions == "object" && process.versions.node; | ||
@@ -17,3 +17,3 @@ var R = ""; | ||
var lr; | ||
(rr || er) && (er ? R = self.location.href : typeof document < "u" && document.currentScript && (R = document.currentScript.src), I && (R = I), R.indexOf("blob:") !== 0 ? R = R.substr(0, R.replace(/[?#].*/, "").lastIndexOf("/") + 1) : R = "", er && (lr = (r) => { | ||
(er || tr) && (tr ? R = self.location.href : typeof document < "u" && document.currentScript && (R = document.currentScript.src), I && (R = I), R.indexOf("blob:") !== 0 ? R = R.substr(0, R.replace(/[?#].*/, "").lastIndexOf("/") + 1) : R = "", tr && (lr = (r) => { | ||
var e = new XMLHttpRequest(); | ||
@@ -23,40 +23,44 @@ return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); | ||
var N = f.printErr || console.error.bind(console); | ||
Object.assign(f, Y), Y = null, f.arguments && f.arguments, f.thisProgram && f.thisProgram, f.quit && f.quit; | ||
Object.assign(f, rr), rr = null, f.arguments && f.arguments, f.thisProgram && f.thisProgram, f.quit && f.quit; | ||
var X; | ||
f.wasmBinary && (X = f.wasmBinary), f.noExitRuntime, typeof WebAssembly != "object" && ir("no native wasm support detected"); | ||
var tr, yr = !1, U, b, L, nr, H, d, mr, br; | ||
f.wasmBinary && (X = f.wasmBinary), typeof WebAssembly != "object" && z("no native wasm support detected"); | ||
var nr, yr = !1; | ||
function Jr(r, e) { | ||
r || z(e); | ||
} | ||
var U, b, L, ir, H, d, mr, br; | ||
function wr() { | ||
var r = tr.buffer; | ||
f.HEAP8 = U = new Int8Array(r), f.HEAP16 = L = new Int16Array(r), f.HEAPU8 = b = new Uint8Array(r), f.HEAPU16 = nr = new Uint16Array(r), f.HEAP32 = H = new Int32Array(r), f.HEAPU32 = d = new Uint32Array(r), f.HEAPF32 = mr = new Float32Array(r), f.HEAPF64 = br = new Float64Array(r); | ||
var r = nr.buffer; | ||
f.HEAP8 = U = new Int8Array(r), f.HEAP16 = L = new Int16Array(r), f.HEAPU8 = b = new Uint8Array(r), f.HEAPU16 = ir = new Uint16Array(r), f.HEAP32 = H = new Int32Array(r), f.HEAPU32 = d = new Uint32Array(r), f.HEAPF32 = mr = new Float32Array(r), f.HEAPF64 = br = new Float64Array(r); | ||
} | ||
var Ar = [], Tr = [], $r = []; | ||
function Jr() { | ||
function Qr() { | ||
if (f.preRun) | ||
for (typeof f.preRun == "function" && (f.preRun = [f.preRun]); f.preRun.length; ) | ||
re(f.preRun.shift()); | ||
ee(f.preRun.shift()); | ||
vr(Ar); | ||
} | ||
function Qr() { | ||
function Yr() { | ||
vr(Tr); | ||
} | ||
function Yr() { | ||
function re() { | ||
if (f.postRun) | ||
for (typeof f.postRun == "function" && (f.postRun = [f.postRun]); f.postRun.length; ) | ||
te(f.postRun.shift()); | ||
ne(f.postRun.shift()); | ||
vr($r); | ||
} | ||
function re(r) { | ||
function ee(r) { | ||
Ar.unshift(r); | ||
} | ||
function ee(r) { | ||
function te(r) { | ||
Tr.unshift(r); | ||
} | ||
function te(r) { | ||
function ne(r) { | ||
$r.unshift(r); | ||
} | ||
var S = 0, q = null; | ||
function ne(r) { | ||
function ie(r) { | ||
S++, f.monitorRunDependencies && f.monitorRunDependencies(S); | ||
} | ||
function ie(r) { | ||
function ae(r) { | ||
if (S--, f.monitorRunDependencies && f.monitorRunDependencies(S), S == 0 && q) { | ||
@@ -67,3 +71,3 @@ var e = q; | ||
} | ||
function ir(r) { | ||
function z(r) { | ||
f.onAbort && f.onAbort(r), r = "Aborted(" + r + ")", N(r), yr = !0, r += ". Build with -sASSERTIONS for more info."; | ||
@@ -73,7 +77,3 @@ var e = new WebAssembly.RuntimeError(r); | ||
} | ||
var ae = "data:application/octet-stream;base64,"; | ||
function Er(r) { | ||
return r.startsWith(ae); | ||
} | ||
var x; | ||
var oe = "data:application/octet-stream;base64,", Er = (r) => r.startsWith(oe), x; | ||
f.locateFile ? (x = "zxing_writer.wasm", Er(x) || (x = Kr(x))) : x = new URL("/writer/zxing_writer.wasm", self.location).href; | ||
@@ -87,4 +87,4 @@ function Rr(r) { | ||
} | ||
function oe(r) { | ||
return !X && (rr || er) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((e) => { | ||
function se(r) { | ||
return !X && (er || tr) && typeof fetch == "function" ? fetch(r, { credentials: "same-origin" }).then((e) => { | ||
if (!e.ok) | ||
@@ -96,7 +96,7 @@ throw "failed to load wasm binary file at '" + r + "'"; | ||
function Cr(r, e, t) { | ||
return oe(r).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(t, (n) => { | ||
N(`failed to asynchronously prepare wasm: ${n}`), ir(n); | ||
return se(r).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(t, (n) => { | ||
N(`failed to asynchronously prepare wasm: ${n}`), z(n); | ||
}); | ||
} | ||
function se(r, e, t, n) { | ||
function fe(r, e, t, n) { | ||
return !r && typeof WebAssembly.instantiateStreaming == "function" && !Er(e) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((i) => { | ||
@@ -109,8 +109,8 @@ var a = WebAssembly.instantiateStreaming(i, t); | ||
} | ||
function fe() { | ||
var r = { a: At }; | ||
function ce() { | ||
var r = { a: $t }; | ||
function e(n, i) { | ||
return h = n.exports, tr = h.S, wr(), Dr = h.W, ee(h.T), ie(), h; | ||
return h = n.exports, nr = h.S, wr(), jr = h.W, te(h.T), ae(), h; | ||
} | ||
ne(); | ||
ie(); | ||
function t(n) { | ||
@@ -125,3 +125,3 @@ e(n.instance); | ||
} | ||
return se(X, x, r, t).catch(M), {}; | ||
return fe(X, x, r, t).catch(M), {}; | ||
} | ||
@@ -131,6 +131,8 @@ var vr = (r) => { | ||
r.shift()(f); | ||
}, ar = [], ce = (r) => { | ||
}; | ||
f.noExitRuntime; | ||
var ar = [], ue = (r) => { | ||
var e = new dr(r); | ||
return e.get_caught() || e.set_caught(!0), e.set_rethrown(!1), ar.push(e), Xr(e.excPtr), e.get_exception_ptr(); | ||
}, P = 0, ue = () => { | ||
}, P = 0, le = () => { | ||
p(0, 0); | ||
@@ -171,3 +173,3 @@ var r = ar.pop(); | ||
} | ||
var le = (r) => { | ||
var ve = (r) => { | ||
throw P || (P = r), P; | ||
@@ -177,3 +179,3 @@ }, _r = (r) => { | ||
if (!e) | ||
return G(0), 0; | ||
return K(0), 0; | ||
var t = new dr(e); | ||
@@ -183,3 +185,3 @@ t.set_adjusted_ptr(e); | ||
if (!n) | ||
return G(0), e; | ||
return K(0), e; | ||
for (var i in r) { | ||
@@ -191,11 +193,11 @@ var a = r[i]; | ||
if (Lr(a, n, o)) | ||
return G(a), e; | ||
return K(a), e; | ||
} | ||
return G(n), e; | ||
}, ve = () => _r([]), de = (r) => _r([r]), _e = (r, e) => _r([r, e]), he = () => { | ||
return K(n), e; | ||
}, de = () => _r([]), _e = (r) => _r([r]), he = (r, e) => _r([r, e]), pe = () => { | ||
var r = ar.pop(); | ||
r || ir("no exception to throw"); | ||
r || z("no exception to throw"); | ||
var e = r.excPtr; | ||
throw r.get_rethrown() || (ar.push(r), r.set_rethrown(!0), r.set_caught(!1)), P = e, P; | ||
}, pe = (r, e, t) => { | ||
}, ge = (r, e, t) => { | ||
var n = new dr(r); | ||
@@ -212,3 +214,3 @@ throw n.init(e, t), P = r, P; | ||
} | ||
var V = {}, j = {}, sr = {}, Fr, kr = (r) => { | ||
var V = {}, O = {}, sr = {}, Fr, kr = (r) => { | ||
throw new Fr(r); | ||
@@ -227,7 +229,7 @@ }, Wr = (r, e, t) => { | ||
e.forEach((s, c) => { | ||
j.hasOwnProperty(s) ? i[c] = j[s] : (a.push(s), V.hasOwnProperty(s) || (V[s] = []), V[s].push(() => { | ||
i[c] = j[s], ++o, o === a.length && n(i); | ||
O.hasOwnProperty(s) ? i[c] = O[s] : (a.push(s), V.hasOwnProperty(s) || (V[s] = []), V[s].push(() => { | ||
i[c] = O[s], ++o, o === a.length && n(i); | ||
})); | ||
}), a.length === 0 && n(i); | ||
}, ge = (r) => { | ||
}, ye = (r) => { | ||
var e = or[r]; | ||
@@ -239,6 +241,6 @@ delete or[r]; | ||
return i.forEach((c, u) => { | ||
var l = c.fieldName, v = o[u], m = c.getter, $ = c.getterContext, C = o[u + i.length], D = c.setter, E = c.setterContext; | ||
s[l] = { read: (K) => v.fromWireType(m($, K)), write: (K, gr) => { | ||
var l = c.fieldName, v = o[u], m = c.getter, $ = c.getterContext, C = o[u + i.length], j = c.setter, E = c.setterContext; | ||
s[l] = { read: (J) => v.fromWireType(m($, J)), write: (J, gr) => { | ||
var ur = []; | ||
D(E, K, C.toWireType(ur, gr)), Pr(ur); | ||
j(E, J, C.toWireType(ur, gr)), Pr(ur); | ||
} }; | ||
@@ -260,4 +262,4 @@ }), [{ name: e.name, fromWireType: (c) => { | ||
}); | ||
}, ye = (r, e, t, n, i) => { | ||
}, me = () => { | ||
}, me = (r, e, t, n, i) => { | ||
}, be = () => { | ||
for (var r = new Array(256), e = 0; e < 256; ++e) | ||
@@ -273,5 +275,5 @@ r[e] = String.fromCharCode(e); | ||
}; | ||
function be(r, e, t = {}) { | ||
function we(r, e, t = {}) { | ||
var n = e.name; | ||
if (r || A(`type "${n}" must have a positive integer typeid pointer`), j.hasOwnProperty(r)) { | ||
if (r || A(`type "${n}" must have a positive integer typeid pointer`), O.hasOwnProperty(r)) { | ||
if (t.ignoreDuplicateRegistrations) | ||
@@ -281,3 +283,3 @@ return; | ||
} | ||
if (j[r] = e, delete sr[r], V.hasOwnProperty(r)) { | ||
if (O[r] = e, delete sr[r], V.hasOwnProperty(r)) { | ||
var i = V[r]; | ||
@@ -290,5 +292,5 @@ delete V[r], i.forEach((a) => a()); | ||
throw new TypeError("registerType registeredInstance requires argPackAdvance"); | ||
return be(r, e, t); | ||
return we(r, e, t); | ||
} | ||
var W = 8, we = (r, e, t, n) => { | ||
var W = 8, Ae = (r, e, t, n) => { | ||
e = w(e), F(r, { name: e, fromWireType: function(i) { | ||
@@ -302,3 +304,3 @@ return !!i; | ||
}; | ||
function Ae() { | ||
function Te() { | ||
Object.assign(xr.prototype, { get(r) { | ||
@@ -318,10 +320,10 @@ return this.allocated[r]; | ||
} | ||
var T = new xr(), jr = (r) => { | ||
var T = new xr(), Or = (r) => { | ||
r >= T.reserved && --T.get(r).refcount === 0 && T.free(r); | ||
}, Te = () => { | ||
}, $e = () => { | ||
for (var r = 0, e = T.reserved; e < T.allocated.length; ++e) | ||
T.allocated[e] !== void 0 && ++r; | ||
return r; | ||
}, $e = () => { | ||
T.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), T.reserved = T.allocated.length, f.count_emval_handles = Te; | ||
}, Ee = () => { | ||
T.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), T.reserved = T.allocated.length, f.count_emval_handles = $e; | ||
}, B = { toValue: (r) => (r || A("Cannot use deleted val. handle = " + r), T.get(r).value), toHandle: (r) => { | ||
@@ -340,8 +342,8 @@ switch (r) { | ||
} | ||
} }, Ee = (r, e) => { | ||
} }, Re = (r, e) => { | ||
e = w(e), F(r, { name: e, fromWireType: (t) => { | ||
var n = B.toValue(t); | ||
return jr(t), n; | ||
return Or(t), n; | ||
}, toWireType: (t, n) => B.toHandle(n), argPackAdvance: W, readValueFromPointer: hr, destructorFunction: null }); | ||
}, Re = (r, e) => { | ||
}, Ce = (r, e) => { | ||
switch (e) { | ||
@@ -359,5 +361,5 @@ case 4: | ||
} | ||
}, Ce = (r, e, t) => { | ||
e = w(e), F(r, { name: e, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: W, readValueFromPointer: Re(e, t), destructorFunction: null }); | ||
}, Pe = 48, Fe = 57, ke = (r) => { | ||
}, Pe = (r, e, t) => { | ||
e = w(e), F(r, { name: e, fromWireType: (n) => n, toWireType: (n, i) => i, argPackAdvance: W, readValueFromPointer: Ce(e, t), destructorFunction: null }); | ||
}, Fe = 48, ke = 57, We = (r) => { | ||
if (r === void 0) | ||
@@ -367,5 +369,5 @@ return "_unknown"; | ||
var e = r.charCodeAt(0); | ||
return e >= Pe && e <= Fe ? `_${r}` : r; | ||
return e >= Fe && e <= ke ? `_${r}` : r; | ||
}; | ||
function We(r, e, t, n, i, a) { | ||
function Ue(r, e, t, n, i, a) { | ||
var o = e.length; | ||
@@ -381,7 +383,7 @@ o < 2 && A("argTypes array size mismatch! Must at least get return value and 'this' types!"); | ||
arguments.length !== v && A(`function ${r} called with ${arguments.length} arguments, expected ${v}`), C.length = 0; | ||
var D; | ||
$.length = s ? 2 : 1, $[0] = i, s && (D = e[1].toWireType(C, this), $[1] = D); | ||
var j; | ||
$.length = s ? 2 : 1, $[0] = i, s && (j = e[1].toWireType(C, this), $[1] = j); | ||
for (var E = 0; E < v; ++E) | ||
m[E] = e[E + 2].toWireType(C, arguments[E]), $.push(m[E]); | ||
var K = n.apply(null, $); | ||
var J = n.apply(null, $); | ||
function gr(ur) { | ||
@@ -392,4 +394,4 @@ if (c) | ||
for (var Z = s ? 1 : 2; Z < e.length; Z++) { | ||
var It = Z === 1 ? D : m[Z - 2]; | ||
e[Z].destructorFunction !== null && e[Z].destructorFunction(It); | ||
var Ht = Z === 1 ? j : m[Z - 2]; | ||
e[Z].destructorFunction !== null && e[Z].destructorFunction(Ht); | ||
} | ||
@@ -399,6 +401,6 @@ if (l) | ||
} | ||
return gr(K); | ||
return gr(J); | ||
}; | ||
} | ||
var Ue = (r, e, t) => { | ||
var Se = (r, e, t) => { | ||
if (r[e].overloadTable === void 0) { | ||
@@ -410,5 +412,5 @@ var n = r[e]; | ||
} | ||
}, Se = (r, e, t) => { | ||
f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && A(`Cannot register public name '${r}' twice`), Ue(f, r, r), f.hasOwnProperty(t) && A(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[r].overloadTable[t] = e) : (f[r] = e, t !== void 0 && (f[r].numArguments = t)); | ||
}, xe = (r, e) => { | ||
}, xe = (r, e, t) => { | ||
f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && A(`Cannot register public name '${r}' twice`), Se(f, r, r), f.hasOwnProperty(t) && A(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[r].overloadTable[t] = e) : (f[r] = e, t !== void 0 && (f[r].numArguments = t)); | ||
}, Oe = (r, e) => { | ||
for (var t = [], n = 0; n < r; n++) | ||
@@ -422,6 +424,6 @@ t.push(d[e + n * 4 >> 2]); | ||
return t && t.length ? n.apply(null, [e].concat(t)) : n.call(null, e); | ||
}, fr = [], Dr, _ = (r) => { | ||
}, fr = [], jr, _ = (r) => { | ||
var e = fr[r]; | ||
return e || (r >= fr.length && (fr.length = r + 1), fr[r] = e = Dr.get(r)), e; | ||
}, Oe = (r, e, t) => { | ||
return e || (r >= fr.length && (fr.length = r + 1), fr[r] = e = jr.get(r)), e; | ||
}, Ie = (r, e, t) => { | ||
if (r.includes("j")) | ||
@@ -431,11 +433,11 @@ return De(r, e, t); | ||
return n; | ||
}, Ie = (r, e) => { | ||
}, Me = (r, e) => { | ||
var t = []; | ||
return function() { | ||
return t.length = 0, Object.assign(t, arguments), Oe(r, e, t); | ||
return t.length = 0, Object.assign(t, arguments), Ie(r, e, t); | ||
}; | ||
}, z = (r, e) => { | ||
}, G = (r, e) => { | ||
r = w(r); | ||
function t() { | ||
return r.includes("j") ? Ie(r, e) : _(e); | ||
return r.includes("j") ? Me(r, e) : _(e); | ||
} | ||
@@ -445,9 +447,9 @@ var n = t(); | ||
}; | ||
function Me(r, e) { | ||
return r = ke(r), { [r]: function() { | ||
function He(r, e) { | ||
return r = We(r), { [r]: function() { | ||
return e.apply(this, arguments); | ||
} }[r]; | ||
} | ||
var He = (r, e) => { | ||
var t = Me(e, function(n) { | ||
var Ve = (r, e) => { | ||
var t = He(e, function(n) { | ||
this.name = e, this.message = n; | ||
@@ -461,9 +463,9 @@ var i = new Error(n).stack; | ||
}, t; | ||
}, Or, Ir = (r) => { | ||
}, Dr, Ir = (r) => { | ||
var e = Zr(r), t = w(e); | ||
return k(e), t; | ||
}, Ve = (r, e) => { | ||
}, Be = (r, e) => { | ||
var t = [], n = {}; | ||
function i(a) { | ||
if (!n[a] && !j[a]) { | ||
if (!n[a] && !O[a]) { | ||
if (sr[a]) { | ||
@@ -476,12 +478,16 @@ sr[a].forEach(i); | ||
} | ||
throw e.forEach(i), new Or(`${r}: ` + t.map(Ir).join([", "])); | ||
}, Be = (r, e, t, n, i, a, o) => { | ||
var s = xe(e, t); | ||
r = w(r), i = z(n, i), Se(r, function() { | ||
Ve(`Cannot call ${r} due to unbound types`, s); | ||
throw e.forEach(i), new Dr(`${r}: ` + t.map(Ir).join([", "])); | ||
}, Ze = (r) => { | ||
r = r.trim(); | ||
const e = r.indexOf("("); | ||
return e !== -1 ? (Jr(r[r.length - 1] == ")", "Parentheses for argument names should match."), r.substr(0, e)) : r; | ||
}, Ne = (r, e, t, n, i, a, o) => { | ||
var s = Oe(e, t); | ||
r = w(r), r = Ze(r), i = G(n, i), xe(r, function() { | ||
Be(`Cannot call ${r} due to unbound types`, s); | ||
}, e - 1), Wr([], s, function(c) { | ||
var u = [c[0], null].concat(c.slice(1)); | ||
return je(r, We(r, u, null, i, a), e - 1), []; | ||
return je(r, Ue(r, u, null, i, a), e - 1), []; | ||
}); | ||
}, Ze = (r, e, t) => { | ||
}, Xe = (r, e, t) => { | ||
switch (e) { | ||
@@ -491,3 +497,3 @@ case 1: | ||
case 2: | ||
return t ? (n) => L[n >> 1] : (n) => nr[n >> 1]; | ||
return t ? (n) => L[n >> 1] : (n) => ir[n >> 1]; | ||
case 4: | ||
@@ -498,3 +504,3 @@ return t ? (n) => H[n >> 2] : (n) => d[n >> 2]; | ||
} | ||
}, Ne = (r, e, t, n, i) => { | ||
}, Le = (r, e, t, n, i) => { | ||
e = w(e); | ||
@@ -512,4 +518,4 @@ var a = (l) => l; | ||
return c(v, this.name), v; | ||
}, F(r, { name: e, fromWireType: a, toWireType: u, argPackAdvance: W, readValueFromPointer: Ze(e, t, n !== 0), destructorFunction: null }); | ||
}, Xe = (r, e, t) => { | ||
}, F(r, { name: e, fromWireType: a, toWireType: u, argPackAdvance: W, readValueFromPointer: Xe(e, t, n !== 0), destructorFunction: null }); | ||
}, qe = (r, e, t) => { | ||
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[e]; | ||
@@ -522,6 +528,6 @@ function a(o) { | ||
}; | ||
function Le(r) { | ||
function ze(r) { | ||
return this.fromWireType(d[r >> 2]); | ||
} | ||
var qe = (r, e, t, n) => { | ||
var Ge = (r, e, t, n) => { | ||
if (!(n > 0)) | ||
@@ -554,3 +560,3 @@ return 0; | ||
return e[t] = 0, t - i; | ||
}, ze = (r, e, t) => qe(r, b, e, t), Ge = (r) => { | ||
}, Ke = (r, e, t) => Ge(r, b, e, t), Je = (r) => { | ||
for (var e = 0, t = 0; t < r.length; ++t) { | ||
@@ -561,3 +567,3 @@ var n = r.charCodeAt(t); | ||
return e; | ||
}, Mr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Ke = (r, e, t) => { | ||
}, Mr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Qe = (r, e, t) => { | ||
for (var n = e + t, i = e; r[i] && !(i >= n); ) | ||
@@ -587,3 +593,3 @@ ++i; | ||
return a; | ||
}, Je = (r, e) => r ? Ke(b, r, e) : "", Qe = (r, e) => { | ||
}, Ye = (r, e) => r ? Qe(b, r, e) : "", rt = (r, e) => { | ||
e = w(e); | ||
@@ -597,3 +603,3 @@ var t = e === "std::string"; | ||
if (c == i || b[u] == 0) { | ||
var l = u - s, v = Je(s, l); | ||
var l = u - s, v = Ye(s, l); | ||
o === void 0 ? o = v : (o += String.fromCharCode(0), o += v), s = u + 1; | ||
@@ -611,6 +617,6 @@ } | ||
var a, o = typeof i == "string"; | ||
o || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || A("Cannot pass non-string to std::string"), t && o ? a = Ge(i) : a = i.length; | ||
o || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || A("Cannot pass non-string to std::string"), t && o ? a = Je(i) : a = i.length; | ||
var s = pr(4 + a + 1), c = s + 4; | ||
if (d[s >> 2] = a, t && o) | ||
ze(i, c, a + 1); | ||
Ke(i, c, a + 1); | ||
else if (o) | ||
@@ -625,7 +631,7 @@ for (var u = 0; u < a; ++u) { | ||
return n !== null && n.push(k, s), s; | ||
}, argPackAdvance: W, readValueFromPointer: Le, destructorFunction(n) { | ||
}, argPackAdvance: W, readValueFromPointer: ze, destructorFunction(n) { | ||
k(n); | ||
} }); | ||
}, Hr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Ye = (r, e) => { | ||
for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && nr[n]; ) | ||
}, Hr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, et = (r, e) => { | ||
for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && ir[n]; ) | ||
++n; | ||
@@ -641,3 +647,3 @@ if (t = n << 1, t - r > 32 && Hr) | ||
return a; | ||
}, rt = (r, e, t) => { | ||
}, tt = (r, e, t) => { | ||
if (t === void 0 && (t = 2147483647), t < 2) | ||
@@ -651,3 +657,3 @@ return 0; | ||
return L[e >> 1] = 0, e - n; | ||
}, et = (r) => r.length * 2, tt = (r, e) => { | ||
}, nt = (r) => r.length * 2, it = (r, e) => { | ||
for (var t = 0, n = ""; !(t >= e / 4); ) { | ||
@@ -664,3 +670,3 @@ var i = H[r + t * 4 >> 2]; | ||
return n; | ||
}, nt = (r, e, t) => { | ||
}, at = (r, e, t) => { | ||
if (t === void 0 && (t = 2147483647), t < 4) | ||
@@ -678,3 +684,3 @@ return 0; | ||
return H[e >> 2] = 0, e - n; | ||
}, it = (r) => { | ||
}, ot = (r) => { | ||
for (var e = 0, t = 0; t < r.length; ++t) { | ||
@@ -685,10 +691,10 @@ var n = r.charCodeAt(t); | ||
return e; | ||
}, at = (r, e, t) => { | ||
}, st = (r, e, t) => { | ||
t = w(t); | ||
var n, i, a, o, s; | ||
e === 2 ? (n = Ye, i = rt, o = et, a = () => nr, s = 1) : e === 4 && (n = tt, i = nt, o = it, a = () => d, s = 2), F(r, { name: t, fromWireType: (c) => { | ||
e === 2 ? (n = et, i = tt, o = nt, a = () => ir, s = 1) : e === 4 && (n = it, i = at, o = ot, a = () => d, s = 2), F(r, { name: t, fromWireType: (c) => { | ||
for (var u = d[c >> 2], l = a(), v, m = c + 4, $ = 0; $ <= u; ++$) { | ||
var C = c + 4 + $ * e; | ||
if ($ == u || l[C >> s] == 0) { | ||
var D = C - m, E = n(m, D); | ||
var j = C - m, E = n(m, j); | ||
v === void 0 ? v = E : (v += String.fromCharCode(0), v += E), m = C + e; | ||
@@ -705,12 +711,12 @@ } | ||
} }); | ||
}, ot = (r, e, t, n, i, a) => { | ||
or[r] = { name: w(e), rawConstructor: z(t, n), rawDestructor: z(i, a), fields: [] }; | ||
}, st = (r, e, t, n, i, a, o, s, c, u) => { | ||
or[r].fields.push({ fieldName: w(e), getterReturnType: t, getter: z(n, i), getterContext: a, setterArgumentType: o, setter: z(s, c), setterContext: u }); | ||
}, ft = (r, e) => { | ||
}, ft = (r, e, t, n, i, a) => { | ||
or[r] = { name: w(e), rawConstructor: G(t, n), rawDestructor: G(i, a), fields: [] }; | ||
}, ct = (r, e, t, n, i, a, o, s, c, u) => { | ||
or[r].fields.push({ fieldName: w(e), getterReturnType: t, getter: G(n, i), getterContext: a, setterArgumentType: o, setter: G(s, c), setterContext: u }); | ||
}, ut = (r, e) => { | ||
e = w(e), F(r, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => { | ||
}, toWireType: (t, n) => { | ||
} }); | ||
}, ct = {}, ut = (r) => { | ||
var e = ct[r]; | ||
}, lt = {}, vt = (r) => { | ||
var e = lt[r]; | ||
return e === void 0 ? w(r) : e; | ||
@@ -728,8 +734,8 @@ }, Vr = () => { | ||
throw Error("unable to get global object."); | ||
}, lt = (r) => r === 0 ? B.toHandle(Vr()) : (r = ut(r), B.toHandle(Vr()[r])), vt = (r) => { | ||
}, dt = (r) => r === 0 ? B.toHandle(Vr()) : (r = vt(r), B.toHandle(Vr()[r])), _t = (r) => { | ||
r > 4 && (T.get(r).refcount += 1); | ||
}, dt = (r, e) => { | ||
var t = j[r]; | ||
}, ht = (r, e) => { | ||
var t = O[r]; | ||
return t === void 0 && A(e + " has unknown type " + Ir(r)), t; | ||
}, _t = (r) => { | ||
}, pt = (r) => { | ||
var e = new Array(r + 1); | ||
@@ -739,3 +745,3 @@ return function(t, n, i) { | ||
for (var a = 0; a < r; ++a) { | ||
var o = dt(d[n + a * 4 >> 2], "parameter " + a); | ||
var o = ht(d[n + a * 4 >> 2], "parameter " + a); | ||
e[a + 1] = o.readValueFromPointer(i), i += o.argPackAdvance; | ||
@@ -746,18 +752,18 @@ } | ||
}; | ||
}, Br = {}, ht = (r, e, t, n) => { | ||
}, Br = {}, gt = (r, e, t, n) => { | ||
r = B.toValue(r); | ||
var i = Br[e]; | ||
return i || (i = _t(e), Br[e] = i), i(r, t, n); | ||
}, pt = () => { | ||
ir(""); | ||
}, gt = (r, e, t) => b.copyWithin(r, e, e + t), yt = () => 2147483648, mt = (r) => { | ||
var e = tr.buffer, t = (r - e.byteLength + 65535) / 65536; | ||
return i || (i = pt(e), Br[e] = i), i(r, t, n); | ||
}, yt = () => { | ||
z(""); | ||
}, mt = (r, e, t) => b.copyWithin(r, e, e + t), bt = () => 2147483648, wt = (r) => { | ||
var e = nr.buffer, t = (r - e.byteLength + 65535) / 65536; | ||
try { | ||
return tr.grow(t), wr(), 1; | ||
return nr.grow(t), wr(), 1; | ||
} catch { | ||
} | ||
}, bt = (r) => { | ||
}, At = (r) => { | ||
var e = b.length; | ||
r >>>= 0; | ||
var t = yt(); | ||
var t = bt(); | ||
if (r > t) | ||
@@ -768,3 +774,3 @@ return !1; | ||
a = Math.min(a, r + 100663296); | ||
var o = Math.min(t, n(Math.max(r, a), 65536)), s = mt(o); | ||
var o = Math.min(t, n(Math.max(r, a), 65536)), s = wt(o); | ||
if (s) | ||
@@ -774,3 +780,3 @@ return !0; | ||
return !1; | ||
}, wt = (r) => r; | ||
}, Tt = (r) => r; | ||
Fr = f.InternalError = class extends Error { | ||
@@ -780,11 +786,11 @@ constructor(e) { | ||
} | ||
}, me(), Sr = f.BindingError = class extends Error { | ||
}, be(), Sr = f.BindingError = class extends Error { | ||
constructor(e) { | ||
super(e), this.name = "BindingError"; | ||
} | ||
}, Ae(), $e(), Or = f.UnboundTypeError = He(Error, "UnboundTypeError"); | ||
var At = { v: ce, u: ue, a: ve, k: de, s: _e, M: he, m: pe, f: le, O: ge, E: ye, I: we, H: Ee, z: Ce, N: Be, r: Ne, p: Xe, y: Qe, w: at, Q: ot, P: st, J: ft, K: jr, D: lt, B: vt, C: ht, x: pt, G: gt, F: bt, t: Dt, b: Tt, e: Pt, l: xt, h: Ct, j: Ot, L: jt, i: Ft, d: $t, g: St, c: Ut, o: Rt, n: Et, q: Wt, A: kt, R: wt }, h = fe(), pr = f._malloc = (r) => (pr = f._malloc = h.U)(r), k = f._free = (r) => (k = f._free = h.V)(r), Zr = (r) => (Zr = h.X)(r); | ||
}, Te(), Ee(), Dr = f.UnboundTypeError = Ve(Error, "UnboundTypeError"); | ||
var $t = { u: ue, v: le, a: de, k: _e, s: he, M: pe, m: ge, f: ve, O: ye, F: me, J: Ae, I: Re, A: Pe, N: Ne, r: Le, p: qe, z: rt, w: st, Q: ft, P: ct, K: ut, C: Or, E: dt, x: _t, D: gt, y: yt, H: mt, G: At, t: It, b: Et, e: kt, l: jt, h: Ft, j: Mt, L: Dt, i: Wt, d: Rt, g: Ot, c: xt, o: Pt, n: Ct, q: St, B: Ut, R: Tt }, h = ce(), pr = f._malloc = (r) => (pr = f._malloc = h.U)(r), k = f._free = (r) => (k = f._free = h.V)(r), Zr = (r) => (Zr = h.X)(r); | ||
f.__embind_initialize_bindings = () => (f.__embind_initialize_bindings = h.Y)(); | ||
var p = (r, e) => (p = h.Z)(r, e), G = (r) => (G = h._)(r), g = () => (g = h.$)(), y = (r) => (y = h.aa)(r), Nr = (r) => (Nr = h.ba)(r), Xr = (r) => (Xr = h.ca)(r), Lr = (r, e, t) => (Lr = h.da)(r, e, t), qr = (r) => (qr = h.ea)(r); | ||
function Tt(r, e) { | ||
var p = (r, e) => (p = h.Z)(r, e), K = (r) => (K = h._)(r), g = () => (g = h.$)(), y = (r) => (y = h.aa)(r), Nr = (r) => (Nr = h.ba)(r), Xr = (r) => (Xr = h.ca)(r), Lr = (r, e, t) => (Lr = h.da)(r, e, t), qr = (r) => (qr = h.ea)(r); | ||
function Et(r, e) { | ||
var t = g(); | ||
@@ -799,3 +805,3 @@ try { | ||
} | ||
function $t(r, e) { | ||
function Rt(r, e) { | ||
var t = g(); | ||
@@ -810,3 +816,3 @@ try { | ||
} | ||
function Et(r, e, t, n, i, a) { | ||
function Ct(r, e, t, n, i, a) { | ||
var o = g(); | ||
@@ -821,3 +827,3 @@ try { | ||
} | ||
function Rt(r, e, t, n, i) { | ||
function Pt(r, e, t, n, i) { | ||
var a = g(); | ||
@@ -832,3 +838,3 @@ try { | ||
} | ||
function Ct(r, e, t, n, i) { | ||
function Ft(r, e, t, n, i) { | ||
var a = g(); | ||
@@ -843,3 +849,3 @@ try { | ||
} | ||
function Pt(r, e, t) { | ||
function kt(r, e, t) { | ||
var n = g(); | ||
@@ -854,3 +860,3 @@ try { | ||
} | ||
function Ft(r) { | ||
function Wt(r) { | ||
var e = g(); | ||
@@ -865,3 +871,3 @@ try { | ||
} | ||
function kt(r, e, t, n, i, a, o, s, c, u, l) { | ||
function Ut(r, e, t, n, i, a, o, s, c, u, l) { | ||
var v = g(); | ||
@@ -876,3 +882,3 @@ try { | ||
} | ||
function Wt(r, e, t, n, i, a, o, s, c) { | ||
function St(r, e, t, n, i, a, o, s, c) { | ||
var u = g(); | ||
@@ -887,3 +893,3 @@ try { | ||
} | ||
function Ut(r, e, t, n) { | ||
function xt(r, e, t, n) { | ||
var i = g(); | ||
@@ -898,3 +904,3 @@ try { | ||
} | ||
function St(r, e, t) { | ||
function Ot(r, e, t) { | ||
var n = g(); | ||
@@ -909,3 +915,3 @@ try { | ||
} | ||
function xt(r, e, t, n) { | ||
function jt(r, e, t, n) { | ||
var i = g(); | ||
@@ -920,3 +926,3 @@ try { | ||
} | ||
function jt(r, e, t, n, i, a, o) { | ||
function Dt(r, e, t, n, i, a, o) { | ||
var s = g(); | ||
@@ -931,3 +937,3 @@ try { | ||
} | ||
function Dt(r) { | ||
function It(r) { | ||
var e = g(); | ||
@@ -942,3 +948,3 @@ try { | ||
} | ||
function Ot(r, e, t, n, i, a) { | ||
function Mt(r, e, t, n, i, a) { | ||
var o = g(); | ||
@@ -958,6 +964,6 @@ try { | ||
function zr() { | ||
if (S > 0 || (Jr(), S > 0)) | ||
if (S > 0 || (Qr(), S > 0)) | ||
return; | ||
function r() { | ||
cr || (cr = !0, f.calledRun = !0, !yr && (Qr(), Q(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), Yr())); | ||
cr || (cr = !0, f.calledRun = !0, !yr && (Yr(), Y(f), f.onRuntimeInitialized && f.onRuntimeInitialized(), re())); | ||
} | ||
@@ -973,25 +979,25 @@ f.setStatus ? (f.setStatus("Running..."), setTimeout(function() { | ||
f.preInit.pop()(); | ||
return zr(), J.ready; | ||
return zr(), Q.ready; | ||
}; | ||
})(); | ||
function Nt(I) { | ||
return Mt(Gr, I); | ||
function Lt(I) { | ||
return Vt(Gr, I); | ||
} | ||
async function Xt(I, { | ||
format: J = O.format, | ||
charset: f = O.charset, | ||
quietZone: Q = O.quietZone, | ||
width: M = O.width, | ||
height: Y = O.height, | ||
eccLevel: rr = O.eccLevel | ||
} = O) { | ||
return Ht( | ||
async function qt(I, { | ||
format: Q = D.format, | ||
charset: f = D.charset, | ||
quietZone: Y = D.quietZone, | ||
width: M = D.width, | ||
height: rr = D.height, | ||
eccLevel: er = D.eccLevel | ||
} = D) { | ||
return Bt( | ||
I, | ||
{ | ||
format: J, | ||
format: Q, | ||
charset: f, | ||
quietZone: Q, | ||
quietZone: Y, | ||
width: M, | ||
height: Y, | ||
eccLevel: rr | ||
height: rr, | ||
eccLevel: er | ||
}, | ||
@@ -1002,10 +1008,10 @@ Gr | ||
export { | ||
zt as ZXING_BARCODE_FORMAT_NAMES, | ||
Gt as ZXING_CHARACTOR_SET_NAMES, | ||
Kt as defaultZXingReadOptions, | ||
O as defaultZXingWriteOptions, | ||
Nt as getZXingModule, | ||
Jt as purgeZXingModule, | ||
Qt as setZXingModuleOverrides, | ||
Xt as writeBarcodeToImageFile | ||
Kt as ZXING_BARCODE_FORMAT_NAMES, | ||
Jt as ZXING_CHARACTOR_SET_NAMES, | ||
Qt as defaultZXingReadOptions, | ||
D as defaultZXingWriteOptions, | ||
Lt as getZXingModule, | ||
Yt as purgeZXingModule, | ||
rn as setZXingModuleOverrides, | ||
qt as writeBarcodeToImageFile | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"type": "module", | ||
@@ -65,22 +65,22 @@ "files": [ | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.7.0", | ||
"@typescript-eslint/parser": "^6.7.0", | ||
"@vitest/browser": "^0.34.4", | ||
"@vitest/coverage-istanbul": "^0.34.4", | ||
"@vitest/ui": "^0.34.4", | ||
"@typescript-eslint/eslint-plugin": "^6.8.0", | ||
"@typescript-eslint/parser": "^6.8.0", | ||
"@vitest/browser": "^0.34.6", | ||
"@vitest/coverage-istanbul": "^0.34.6", | ||
"@vitest/ui": "^0.34.6", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.49.0", | ||
"npm-check-updates": "^16.14.3", | ||
"playwright": "^1.38.0", | ||
"eslint": "^8.51.0", | ||
"npm-check-updates": "^16.14.6", | ||
"playwright": "^1.39.0", | ||
"prettier": "^3.0.3", | ||
"replace-in-file": "^7.0.1", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.4.9", | ||
"vite": "^4.5.0", | ||
"vite-plugin-static-copy": "^0.17.0", | ||
"vitest": "^0.34.4" | ||
"vitest": "^0.34.6" | ||
}, | ||
"dependencies": { | ||
"@types/emscripten": "^1.39.7", | ||
"zustand": "^4.4.1" | ||
"@types/emscripten": "^1.39.9", | ||
"zustand": "^4.4.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2869689
4306
15
Updated@types/emscripten@^1.39.9
Updatedzustand@^4.4.3