diff --git a/main.js b/main.js index 1f8ae9c..a62d4b3 100644 --- a/main.js +++ b/main.js @@ -5,8 +5,8 @@ import store from './store' import '@/static/js/request.js' import '@/static/js/CommonFunction.js' -// import vconsole from "vconsole"; -// Vue.prototype.vconsole = new vconsole(); +import vconsole from "vconsole"; +Vue.prototype.vconsole = new vconsole(); Vue.config.productionTip = false diff --git a/manifest.json b/manifest.json index 43b330c..6f117ab 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "daoyou", - "appid" : "__UNI__4A60AD2", + "appid" : "__UNI__359C6E6", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -97,6 +97,9 @@ "maps" : { "qqmap" : { "key" : "4QQBZ-35LWQ-7725U-45ZGA-MIB5E-ZXBEA" + }, + "tencent" : { + "key" : "YVOBZ-MWJ3Z-34IXK-7J2GL-O33US-QLF5X" } } } diff --git a/node_modules/@babel/runtime/LICENSE b/node_modules/@babel/runtime/LICENSE new file mode 100644 index 0000000..f31575e --- /dev/null +++ b/node_modules/@babel/runtime/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/runtime/README.md b/node_modules/@babel/runtime/README.md new file mode 100644 index 0000000..2f3368e --- /dev/null +++ b/node_modules/@babel/runtime/README.md @@ -0,0 +1,19 @@ +# @babel/runtime + +> babel's modular runtime helpers + +See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. + +## Install + +Using npm: + +```sh +npm install --save @babel/runtime +``` + +or using yarn: + +```sh +yarn add @babel/runtime +``` diff --git a/node_modules/@babel/runtime/helpers/AwaitValue.js b/node_modules/@babel/runtime/helpers/AwaitValue.js new file mode 100644 index 0000000..52a7e69 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/AwaitValue.js @@ -0,0 +1,4 @@ +function _AwaitValue(t) { + this.wrapped = t; +} +module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/OverloadYield.js b/node_modules/@babel/runtime/helpers/OverloadYield.js new file mode 100644 index 0000000..0eca88c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/OverloadYield.js @@ -0,0 +1,4 @@ +function _OverloadYield(e, d) { + this.v = e, this.k = d; +} +module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js new file mode 100644 index 0000000..0ff780e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js @@ -0,0 +1,9 @@ +function _applyDecoratedDescriptor(i, e, r, n, l) { + var a = {}; + return Object.keys(n).forEach(function (i) { + a[i] = n[i]; + }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { + return n(i, e, r) || r; + }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; +} +module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs.js b/node_modules/@babel/runtime/helpers/applyDecs.js new file mode 100644 index 0000000..3770c5a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs.js @@ -0,0 +1,236 @@ +var _typeof = require("./typeof.js")["default"]; +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function old_createMetadataMethodsForProperty(e, t, a, r) { + return { + getMetadata: function getMetadata(o) { + old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); + var i = e[o]; + if (void 0 !== i) if (1 === t) { + var n = i["public"]; + if (void 0 !== n) return n[a]; + } else if (2 === t) { + var l = i["private"]; + if (void 0 !== l) return l.get(a); + } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; + }, + setMetadata: function setMetadata(o, i) { + old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); + var n = e[o]; + if (void 0 === n && (n = e[o] = {}), 1 === t) { + var l = n["public"]; + void 0 === l && (l = n["public"] = {}), l[a] = i; + } else if (2 === t) { + var s = n.priv; + void 0 === s && (s = n["private"] = new Map()), s.set(a, i); + } else n.constructor = i; + } + }; +} +function old_convertMetadataMapToFinal(e, t) { + var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], + r = Object.getOwnPropertySymbols(t); + if (0 !== r.length) { + for (var o = 0; o < r.length; o++) { + var i = r[o], + n = t[i], + l = a ? a[i] : null, + s = n["public"], + c = l ? l["public"] : null; + s && c && Object.setPrototypeOf(s, c); + var d = n["private"]; + if (d) { + var u = Array.from(d.values()), + f = l ? l["private"] : null; + f && (u = u.concat(f)), n["private"] = u; + } + l && Object.setPrototypeOf(n, l); + } + a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; + } +} +function old_createAddInitializerMethod(e, t) { + return function (a) { + old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); + }; +} +function old_memberDec(e, t, a, r, o, i, n, l, s) { + var c; + switch (i) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var d, + u, + f = { + kind: c, + name: l ? "#" + t : toPropertyKey(t), + isStatic: n, + isPrivate: l + }, + p = { + v: !1 + }; + if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { + d = 2, u = Symbol(t); + var v = {}; + 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { + return a.value; + } : (1 !== i && 3 !== i || (v.get = function () { + return a.get.call(this); + }), 1 !== i && 4 !== i || (v.set = function (e) { + a.set.call(this, e); + })), f.access = v; + } else d = 1, u = t; + try { + return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); + } finally { + p.v = !0; + } +} +function old_assertNotFinished(e, t) { + if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); +} +function old_assertMetadataKey(e) { + if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); +} +function old_assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); +} +function old_assertValidReturnValue(e, t) { + var a = _typeof(t); + if (1 === e) { + if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); + } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); +} +function old_getInit(e) { + var t; + return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; +} +function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { + var c, + d, + u, + f, + p, + v, + y, + h = a[0]; + if (n ? (0 === o || 1 === o ? (c = { + get: a[3], + set: a[4] + }, u = "get") : 3 === o ? (c = { + get: a[3] + }, u = "get") : 4 === o ? (c = { + set: a[3] + }, u = "set") : c = { + value: a[3] + }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { + get: c.get, + set: c.set + } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { + var b; + void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); + } + if (0 === o || 1 === o) { + if (void 0 === d) d = function d(e, t) { + return t; + };else if ("function" != typeof d) { + var g = d; + d = function d(e, t) { + for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); + return a; + }; + } else { + var _ = d; + d = function d(e, t) { + return _.call(e, t); + }; + } + e.push(d); + } + 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === o ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, r, c)); +} +function old_applyMemberDecs(e, t, a, r, o) { + for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { + var d = o[c]; + if (Array.isArray(d)) { + var u, + f, + p, + v = d[1], + y = d[2], + h = d.length > 3, + m = v >= 5; + if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { + var b = m ? s : l, + g = b.get(y) || 0; + if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); + !g && v > 2 ? b.set(y, v) : b.set(y, !0); + } + old_applyMemberDec(e, u, d, y, v, m, h, f, p); + } + } + old_pushInitializers(e, i), old_pushInitializers(e, n); +} +function old_pushInitializers(e, t) { + t && e.push(function (e) { + for (var a = 0; a < t.length; a++) t[a].call(e); + return e; + }); +} +function old_applyClassDecs(e, t, a, r) { + if (r.length > 0) { + for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { + var s = { + v: !1 + }; + try { + var c = Object.assign({ + kind: "class", + name: n, + addInitializer: old_createAddInitializerMethod(o, s) + }, old_createMetadataMethodsForProperty(a, 0, n, s)), + d = r[l](i, c); + } finally { + s.v = !0; + } + void 0 !== d && (old_assertValidReturnValue(10, d), i = d); + } + e.push(i, function () { + for (var e = 0; e < o.length; e++) o[e].call(i); + }); + } +} +function applyDecs(e, t, a) { + var r = [], + o = {}, + i = {}; + return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; +} +module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2203.js b/node_modules/@babel/runtime/helpers/applyDecs2203.js new file mode 100644 index 0000000..d3da333 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2203.js @@ -0,0 +1,184 @@ +var _typeof = require("./typeof.js")["default"]; +function applyDecs2203Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, a, n, i, s, o) { + var c; + switch (n) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: s ? "#" + t : t, + "static": i, + "private": s + }, + p = { + v: !1 + }; + 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === n ? l = function l() { + return r.value; + } : (1 !== n && 3 !== n || (l = function l() { + return r.get.call(this); + }), 1 !== n && 4 !== n || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(o, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, a, n, i, s, o) { + var c, + l, + u, + f, + p, + d, + h = r[0]; + if (s ? c = 0 === n || 1 === n ? { + get: r[3], + set: r[4] + } : 3 === n ? { + get: r[3] + } : 4 === n ? { + set: r[3] + } : { + value: r[3] + } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { + get: c.get, + set: c.set + } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { + var g; + void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); + } + if (0 === n || 1 === n) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var y = l; + l = function l(e, t) { + for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); + return r; + }; + } else { + var m = l; + l = function l(e, t) { + return m.call(e, t); + }; + } + e.push(l); + } + 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { + return u.get.call(e, t); + }), e.push(function (e, t) { + return u.set.call(e, t); + })) : 2 === n ? e.push(u) : e.push(function (e, t) { + return u.call(e, t); + }) : Object.defineProperty(t, a, c)); + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + var a = []; + return function (e, t, r) { + for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { + var c = r[o]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { + var v = h ? s : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(e, l, c, p, f, h, d, u); + } + } + pushInitializers(e, a), pushInitializers(e, n); + }(a, e, t), function (e, t, r) { + if (r.length > 0) { + for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { + var o = { + v: !1 + }; + try { + var c = r[s](n, { + kind: "class", + name: i, + addInitializer: createAddInitializerMethod(a, o) + }); + } finally { + o.v = !0; + } + void 0 !== c && (assertValidReturnValue(10, c), n = c); + } + e.push(n, function () { + for (var e = 0; e < a.length; e++) a[e].call(n); + }); + } + }(a, e, r), a; + }; +} +var applyDecs2203Impl; +function applyDecs2203(e, t, r) { + return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); +} +module.exports = applyDecs2203, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2203R.js b/node_modules/@babel/runtime/helpers/applyDecs2203R.js new file mode 100644 index 0000000..725419b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2203R.js @@ -0,0 +1,191 @@ +var _typeof = require("./typeof.js")["default"]; +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2203RFactory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, n, a, i, o, s) { + var c; + switch (a) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: o ? "#" + t : toPropertyKey(t), + "static": i, + "private": o + }, + p = { + v: !1 + }; + 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === a ? l = function l() { + return r.value; + } : (1 !== a && 3 !== a || (l = function l() { + return r.get.call(this); + }), 1 !== a && 4 !== a || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(s, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, n, a, i, o, s) { + var c, + l, + u, + f, + p, + d, + h, + v = r[0]; + if (o ? (0 === a || 1 === a ? (c = { + get: r[3], + set: r[4] + }, u = "get") : 3 === a ? (c = { + get: r[3] + }, u = "get") : 4 === a ? (c = { + set: r[3] + }, u = "set") : c = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { + get: c.get, + set: c.set + } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { + var y; + void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var m = l; + l = function l(e, t) { + for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); + return r; + }; + } else { + var b = l; + l = function l(e, t) { + return b.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === a ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, n, c)); + } + function applyMemberDecs(e, t) { + for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { + var c = t[s]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { + var v = h ? o : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(a, l, c, p, f, h, d, u); + } + } + return pushInitializers(a, r), pushInitializers(a, n), a; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + return { + e: applyMemberDecs(e, t), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var o = { + v: !1 + }; + try { + var s = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, o) + }); + } finally { + o.v = !0; + } + void 0 !== s && (assertValidReturnValue(10, s), n = s); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2203R(e, t, r) { + return (module.exports = applyDecs2203R = applyDecs2203RFactory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r); +} +module.exports = applyDecs2203R, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2301.js b/node_modules/@babel/runtime/helpers/applyDecs2301.js new file mode 100644 index 0000000..fc2c130 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2301.js @@ -0,0 +1,222 @@ +var _typeof = require("./typeof.js")["default"]; +var checkInRHS = require("./checkInRHS.js"); +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2301Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function assertInstanceIfPrivate(e, t) { + if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); + } + function memberDec(e, t, r, n, a, i, s, o, c) { + var u; + switch (a) { + case 1: + u = "accessor"; + break; + case 2: + u = "method"; + break; + case 3: + u = "getter"; + break; + case 4: + u = "setter"; + break; + default: + u = "field"; + } + var l, + f, + p = { + kind: u, + name: s ? "#" + t : toPropertyKey(t), + "static": i, + "private": s + }, + d = { + v: !1 + }; + if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { + if (2 === a) l = function l(e) { + return assertInstanceIfPrivate(c, e), r.value; + };else { + var h = 0 === a || 1 === a; + (h || 3 === a) && (l = s ? function (e) { + return assertInstanceIfPrivate(c, e), r.get.call(e); + } : function (e) { + return r.get.call(e); + }), (h || 4 === a) && (f = s ? function (e, t) { + assertInstanceIfPrivate(c, e), r.set.call(e, t); + } : function (e, t) { + r.set.call(e, t); + }); + } + } else l = function l(e) { + return e[t]; + }, 0 === a && (f = function f(e, r) { + e[t] = r; + }); + var v = s ? c.bind() : function (e) { + return t in e; + }; + p.access = l && f ? { + get: l, + set: f, + has: v + } : l ? { + get: l, + has: v + } : { + set: f, + has: v + }; + try { + return e(o, p); + } finally { + d.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function curryThis2(e) { + return function (t) { + e(this, t); + }; + } + function applyMemberDec(e, t, r, n, a, i, s, o, c) { + var u, + l, + f, + p, + d, + h, + v, + y, + g = r[0]; + if (s ? (0 === a || 1 === a ? (u = { + get: (d = r[3], function () { + return d(this); + }), + set: curryThis2(r[4]) + }, f = "get") : 3 === a ? (u = { + get: r[3] + }, f = "get") : 4 === a ? (u = { + set: r[3] + }, f = "set") : u = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { + get: u.get, + set: u.set + } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { + var b; + void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var I = l; + l = function l(e, t) { + for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); + return r; + }; + } else { + var w = l; + l = function l(e, t) { + return w.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { + return p.get.call(e, t); + }), e.push(function (e, t) { + return p.set.call(e, t); + })) : 2 === a ? e.push(p) : e.push(function (e, t) { + return p.call(e, t); + }) : Object.defineProperty(t, n, u)); + } + function applyMemberDecs(e, t, r) { + for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { + var l = t[u]; + if (Array.isArray(l)) { + var f, + p, + d = l[1], + h = l[2], + v = l.length > 3, + y = d >= 5, + g = r; + if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { + return checkInRHS(t) === e; + }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { + var m = y ? c : o, + b = m.get(h) || 0; + if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + !b && d > 2 ? m.set(h, d) : m.set(h, !0); + } + applyMemberDec(s, f, l, h, d, y, v, p, g); + } + } + return pushInitializers(s, n), pushInitializers(s, a), s; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r, n) { + return { + e: applyMemberDecs(e, t, n), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var s = { + v: !1 + }; + try { + var o = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, s) + }); + } finally { + s.v = !0; + } + void 0 !== o && (assertValidReturnValue(10, o), n = o); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2301(e, t, r, n) { + return (module.exports = applyDecs2301 = applyDecs2301Factory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r, n); +} +module.exports = applyDecs2301, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2305.js b/node_modules/@babel/runtime/helpers/applyDecs2305.js new file mode 100644 index 0000000..744c352 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2305.js @@ -0,0 +1,133 @@ +var _typeof = require("./typeof.js")["default"]; +var checkInRHS = require("./checkInRHS.js"); +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2305(e, t, r, n, o, a) { + function i(e, t, r) { + return function (n, o) { + return r && r(n), e[t].call(n, o); + }; + } + function c(e, t) { + for (var r = 0; r < e.length; r++) e[r].call(t); + return t; + } + function s(e, t, r, n) { + if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); + return e; + } + function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { + function m(e) { + if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var y, + v = t[0], + g = t[3], + b = !u; + if (!b) { + r || Array.isArray(v) || (v = [v]); + var w = {}, + S = [], + A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; + f ? (p || d ? w = { + get: setFunctionName(function () { + return g(this); + }, n, "get"), + set: function set(e) { + t[4](this, e); + } + } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); + } + for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { + var D = v[j], + E = r ? v[j - 1] : void 0, + I = {}, + O = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: n, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + s(t, "An initializer", "be", !0), c.push(t); + }.bind(null, I) + }; + try { + if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { + var k, F; + O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { + return m(e), w.value; + } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { + return e[n]; + }, (o < 2 || 4 === o) && (F = function F(e, t) { + e[n] = t; + })); + var N = O.access = { + has: f ? h.bind() : function (e) { + return n in e; + } + }; + if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { + get: w.get, + set: w.set + } : w[A], O), d) { + if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); + } + } finally { + I.v = !0; + } + } + return (p || d) && u.push(function (e, t) { + for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); + return t; + }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; + } + function u(e, t) { + return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { + configurable: !0, + enumerable: !0, + value: t + }); + } + if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; + var f = Object.create(null == l ? null : l), + p = function (e, t, r, n) { + var o, + a, + i = [], + s = function s(t) { + return checkInRHS(t) === e; + }, + u = new Map(); + function l(e) { + e && i.push(c.bind(null, e)); + } + for (var f = 0; f < t.length; f++) { + var p = t[f]; + if (Array.isArray(p)) { + var d = p[1], + h = p[2], + m = p.length > 3, + y = 16 & d, + v = !!(8 & d), + g = 0 == (d &= 7), + b = h + "/" + v; + if (!g && !m) { + var w = u.get(b); + if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + u.set(b, !(d > 2) || d); + } + applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); + } + } + return l(o), l(a), i; + }(e, t, o, f); + return r.length || u(e, f), { + e: p, + get c() { + var t = []; + return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; + } + }; +} +module.exports = applyDecs2305, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/applyDecs2311.js b/node_modules/@babel/runtime/helpers/applyDecs2311.js new file mode 100644 index 0000000..5f00a31 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/applyDecs2311.js @@ -0,0 +1,124 @@ +var _typeof = require("./typeof.js")["default"]; +var checkInRHS = require("./checkInRHS.js"); +var setFunctionName = require("./setFunctionName.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function applyDecs2311(e, t, n, r, o, i) { + var a, + c, + u, + s, + f, + l, + p, + d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), + m = Object.defineProperty, + h = Object.create, + y = [h(null), h(null)], + v = t.length; + function g(t, n, r) { + return function (o, i) { + n && (i = o, o = e); + for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); + return r ? i : o; + }; + } + function b(e, t, n, r) { + if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); + return e; + } + function applyDec(e, t, n, r, o, i, u, s, f, l, p) { + function d(e) { + if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var h = [].concat(t[0]), + v = t[3], + w = !u, + D = 1 === o, + S = 3 === o, + j = 4 === o, + E = 2 === o; + function I(t, n, r) { + return function (o, i) { + return n && (i = o, o = e), r && r(o), P[t].call(o, i); + }; + } + if (!w) { + var P = {}, + k = [], + F = S ? "get" : j || D ? "set" : "value"; + if (f ? (l || D ? P = { + get: setFunctionName(function () { + return v(this); + }, r, "get"), + set: function set(e) { + t[4](this, e); + } + } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { + if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); + y[+s][r] = o < 3 ? 1 : o; + } + } + for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { + var T = b(h[O], "A decorator", "be", !0), + z = n ? h[O - 1] : void 0, + A = {}, + H = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: r, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); + b(t, "An initializer", "be", !0), i.push(t); + }.bind(null, A) + }; + if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = { + has: f ? p.bind() : function (e) { + return r in e; + } + }, j || (c.get = f ? E ? function (e) { + return d(e), P.value; + } : I("get", 0, d) : function (e) { + return e[r]; + }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { + e[r] = t; + }), N = T.call(z, D ? { + get: P.get, + set: P.set + } : P[F], H), A.v = 1, D) { + if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); + } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); + } + return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; + } + function w(e) { + return m(e, d, { + configurable: !0, + enumerable: !0, + value: a + }); + } + return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { + e && f.push(g(e)); + }, p = function p(t, r) { + for (var i = 0; i < n.length; i++) { + var a = n[i], + c = a[1], + l = 7 & c; + if ((8 & c) == t && !l == r) { + var p = a[2], + d = !!a[3], + m = 16 & c; + applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { + return checkInRHS(t) === e; + } : o); + } + } + }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { + e: c, + get c() { + var n = []; + return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; + } + }; +} +module.exports = applyDecs2311, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayLikeToArray.js b/node_modules/@babel/runtime/helpers/arrayLikeToArray.js new file mode 100644 index 0000000..19787e3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/arrayLikeToArray.js @@ -0,0 +1,6 @@ +function _arrayLikeToArray(r, a) { + (null == a || a > r.length) && (a = r.length); + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; + return n; +} +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/arrayWithHoles.js new file mode 100644 index 0000000..78bdd93 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/arrayWithHoles.js @@ -0,0 +1,4 @@ +function _arrayWithHoles(r) { + if (Array.isArray(r)) return r; +} +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js new file mode 100644 index 0000000..42218f5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js @@ -0,0 +1,5 @@ +var arrayLikeToArray = require("./arrayLikeToArray.js"); +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return arrayLikeToArray(r); +} +module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/assertClassBrand.js b/node_modules/@babel/runtime/helpers/assertClassBrand.js new file mode 100644 index 0000000..e63ed8f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/assertClassBrand.js @@ -0,0 +1,5 @@ +function _assertClassBrand(e, t, n) { + if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; + throw new TypeError("Private element is not present on this object"); +} +module.exports = _assertClassBrand, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/assertThisInitialized.js new file mode 100644 index 0000000..02594fb --- /dev/null +++ b/node_modules/@babel/runtime/helpers/assertThisInitialized.js @@ -0,0 +1,5 @@ +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js new file mode 100644 index 0000000..023568e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js @@ -0,0 +1,24 @@ +var OverloadYield = require("./OverloadYield.js"); +function _asyncGeneratorDelegate(t) { + var e = {}, + n = !1; + function pump(e, r) { + return n = !0, r = new Promise(function (n) { + n(t[e](r)); + }), { + done: !1, + value: new OverloadYield(r, 1) + }; + } + return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { + return this; + }, e.next = function (t) { + return n ? (n = !1, t) : pump("next", t); + }, "function" == typeof t["throw"] && (e["throw"] = function (t) { + if (n) throw n = !1, t; + return pump("throw", t); + }), "function" == typeof t["return"] && (e["return"] = function (t) { + return n ? (n = !1, t) : pump("return", t); + }), e; +} +module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncIterator.js b/node_modules/@babel/runtime/helpers/asyncIterator.js new file mode 100644 index 0000000..9c0c95c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/asyncIterator.js @@ -0,0 +1,45 @@ +function _asyncIterator(r) { + var n, + t, + o, + e = 2; + for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { + if (t && null != (n = r[t])) return n.call(r); + if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); + t = "@@asyncIterator", o = "@@iterator"; + } + throw new TypeError("Object is not async iterable"); +} +function AsyncFromSyncIterator(r) { + function AsyncFromSyncIteratorContinuation(r) { + if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); + var n = r.done; + return Promise.resolve(r.value).then(function (r) { + return { + value: r, + done: n + }; + }); + } + return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { + this.s = r, this.n = r.next; + }, AsyncFromSyncIterator.prototype = { + s: null, + n: null, + next: function next() { + return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); + }, + "return": function _return(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.resolve({ + value: r, + done: !0 + }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + }, + "throw": function _throw(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + } + }, new AsyncFromSyncIterator(r); +} +module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/asyncToGenerator.js new file mode 100644 index 0000000..a080339 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/asyncToGenerator.js @@ -0,0 +1,26 @@ +function asyncGeneratorStep(n, t, e, r, o, a, c) { + try { + var i = n[a](c), + u = i.value; + } catch (n) { + return void e(n); + } + i.done ? t(u) : Promise.resolve(u).then(r, o); +} +function _asyncToGenerator(n) { + return function () { + var t = this, + e = arguments; + return new Promise(function (r, o) { + var a = n.apply(t, e); + function _next(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); + } + function _throw(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); + } + _next(void 0); + }); + }; +} +module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js new file mode 100644 index 0000000..2d6fab9 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js @@ -0,0 +1,5 @@ +var OverloadYield = require("./OverloadYield.js"); +function _awaitAsyncGenerator(e) { + return new OverloadYield(e, 0); +} +module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/callSuper.js b/node_modules/@babel/runtime/helpers/callSuper.js new file mode 100644 index 0000000..38eaf7f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/callSuper.js @@ -0,0 +1,7 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var possibleConstructorReturn = require("./possibleConstructorReturn.js"); +function _callSuper(t, o, e) { + return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); +} +module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/checkInRHS.js b/node_modules/@babel/runtime/helpers/checkInRHS.js new file mode 100644 index 0000000..4eea13d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/checkInRHS.js @@ -0,0 +1,6 @@ +var _typeof = require("./typeof.js")["default"]; +function _checkInRHS(e) { + if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); + return e; +} +module.exports = _checkInRHS, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js b/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js new file mode 100644 index 0000000..33ad54c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js @@ -0,0 +1,4 @@ +function _checkPrivateRedeclaration(e, t) { + if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); +} +module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js new file mode 100644 index 0000000..9998b83 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js @@ -0,0 +1,10 @@ +function _classApplyDescriptorDestructureSet(e, t) { + if (t.set) return "__destrObj" in t || (t.__destrObj = { + set value(r) { + t.set.call(e, r); + } + }), t.__destrObj; + if (!t.writable) throw new TypeError("attempted to set read only private field"); + return t; +} +module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js new file mode 100644 index 0000000..ab62724 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js @@ -0,0 +1,4 @@ +function _classApplyDescriptorGet(e, t) { + return t.get ? t.get.call(e) : t.value; +} +module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js b/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js new file mode 100644 index 0000000..0975f95 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js @@ -0,0 +1,7 @@ +function _classApplyDescriptorSet(e, t, l) { + if (t.set) t.set.call(e, l);else { + if (!t.writable) throw new TypeError("attempted to set read only private field"); + t.value = l; + } +} +module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCallCheck.js b/node_modules/@babel/runtime/helpers/classCallCheck.js new file mode 100644 index 0000000..21b8390 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classCallCheck.js @@ -0,0 +1,4 @@ +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); +} +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js new file mode 100644 index 0000000..7520f74 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classCheckPrivateStaticAccess(s, a, r) { + return assertClassBrand(a, s, r); +} +module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js new file mode 100644 index 0000000..7f70395 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js @@ -0,0 +1,4 @@ +function _classCheckPrivateStaticFieldDescriptor(t, e) { + if (void 0 === t) throw new TypeError("attempted to " + e + " private static field before its declaration"); +} +module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js b/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js new file mode 100644 index 0000000..be855be --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js @@ -0,0 +1,5 @@ +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classExtractFieldDescriptor(e, t) { + return classPrivateFieldGet2(t, e); +} +module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classNameTDZError.js b/node_modules/@babel/runtime/helpers/classNameTDZError.js new file mode 100644 index 0000000..8141ff8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classNameTDZError.js @@ -0,0 +1,4 @@ +function _classNameTDZError(e) { + throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); +} +module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js new file mode 100644 index 0000000..97c764d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classPrivateFieldDestructureSet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorDestructureSet(e, r); +} +module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js new file mode 100644 index 0000000..bbee142 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classPrivateFieldGet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorGet(e, r); +} +module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js new file mode 100644 index 0000000..d4c271c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateFieldGet2(s, a) { + return s.get(assertClassBrand(s, a)); +} +module.exports = _classPrivateFieldGet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js b/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js new file mode 100644 index 0000000..a290c19 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js @@ -0,0 +1,5 @@ +var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); +function _classPrivateFieldInitSpec(e, t, a) { + checkPrivateRedeclaration(e, t), t.set(e, a); +} +module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js new file mode 100644 index 0000000..f9e46f2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js @@ -0,0 +1,5 @@ +function _classPrivateFieldBase(e, t) { + if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); + return e; +} +module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js new file mode 100644 index 0000000..5dc687f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js @@ -0,0 +1,5 @@ +var id = 0; +function _classPrivateFieldKey(e) { + return "__private_" + id++ + "_" + e; +} +module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js new file mode 100644 index 0000000..f3746e7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); +var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); +function _classPrivateFieldSet(e, t, r) { + var s = classPrivateFieldGet2(t, e); + return classApplyDescriptorSet(e, s, r), r; +} +module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js new file mode 100644 index 0000000..25c60ca --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateFieldSet2(s, a, r) { + return s.set(assertClassBrand(s, a), r), r; +} +module.exports = _classPrivateFieldSet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateGetter.js b/node_modules/@babel/runtime/helpers/classPrivateGetter.js new file mode 100644 index 0000000..1b3cf30 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateGetter.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateGetter(s, r, a) { + return a(assertClassBrand(s, r)); +} +module.exports = _classPrivateGetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js new file mode 100644 index 0000000..e4af387 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateMethodGet(s, a, r) { + return assertClassBrand(a, s), r; +} +module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js b/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js new file mode 100644 index 0000000..821c8ed --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js @@ -0,0 +1,5 @@ +var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); +function _classPrivateMethodInitSpec(e, a) { + checkPrivateRedeclaration(e, a), a.add(e); +} +module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js new file mode 100644 index 0000000..a44fd78 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classPrivateMethodSet() { + throw new TypeError("attempted to reassign private method"); +} +module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classPrivateSetter.js b/node_modules/@babel/runtime/helpers/classPrivateSetter.js new file mode 100644 index 0000000..494f81f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classPrivateSetter.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classPrivateSetter(s, r, a, t) { + return r(assertClassBrand(s, a), t), t; +} +module.exports = _classPrivateSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js new file mode 100644 index 0000000..2bb6e8b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); +var assertClassBrand = require("./assertClassBrand.js"); +var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); +function _classStaticPrivateFieldDestructureSet(t, r, s) { + return assertClassBrand(r, t), classCheckPrivateStaticFieldDescriptor(s, "set"), classApplyDescriptorDestructureSet(t, s); +} +module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js new file mode 100644 index 0000000..eb2365f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); +var assertClassBrand = require("./assertClassBrand.js"); +var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); +function _classStaticPrivateFieldSpecGet(t, s, r) { + return assertClassBrand(s, t), classCheckPrivateStaticFieldDescriptor(r, "get"), classApplyDescriptorGet(t, r); +} +module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js new file mode 100644 index 0000000..7783cd8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js @@ -0,0 +1,7 @@ +var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); +var assertClassBrand = require("./assertClassBrand.js"); +var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); +function _classStaticPrivateFieldSpecSet(s, t, r, e) { + return assertClassBrand(t, s), classCheckPrivateStaticFieldDescriptor(r, "set"), classApplyDescriptorSet(s, r, e), e; +} +module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js new file mode 100644 index 0000000..c895be5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js @@ -0,0 +1,5 @@ +var assertClassBrand = require("./assertClassBrand.js"); +function _classStaticPrivateMethodGet(s, a, t) { + return assertClassBrand(a, s), t; +} +module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js new file mode 100644 index 0000000..72560e6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classStaticPrivateMethodSet() { + throw new TypeError("attempted to set read only static private field"); +} +module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js new file mode 100644 index 0000000..aee8e70 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/construct.js @@ -0,0 +1,10 @@ +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var setPrototypeOf = require("./setPrototypeOf.js"); +function _construct(t, e, r) { + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && setPrototypeOf(p, r.prototype), p; +} +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createClass.js b/node_modules/@babel/runtime/helpers/createClass.js new file mode 100644 index 0000000..8757f9e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createClass.js @@ -0,0 +1,13 @@ +var toPropertyKey = require("./toPropertyKey.js"); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); + } +} +function _createClass(e, r, t) { + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { + writable: !1 + }), e; +} +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js b/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js new file mode 100644 index 0000000..2778307 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js @@ -0,0 +1,50 @@ +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +function _createForOfIteratorHelper(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (!t) { + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var _n = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return _n >= r.length ? { + done: !0 + } : { + done: !1, + value: r[_n++] + }; + }, + e: function e(r) { + throw r; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var o, + a = !0, + u = !1; + return { + s: function s() { + t = t.call(r); + }, + n: function n() { + var r = t.next(); + return a = r.done, r; + }, + e: function e(r) { + u = !0, o = r; + }, + f: function f() { + try { + a || null == t["return"] || t["return"](); + } finally { + if (u) throw o; + } + } + }; +} +module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js b/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js new file mode 100644 index 0000000..bc81b1c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js @@ -0,0 +1,19 @@ +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +function _createForOfIteratorHelperLoose(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (t) return (t = t.call(r)).next.bind(t); + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var o = 0; + return function () { + return o >= r.length ? { + done: !0 + } : { + done: !1, + value: r[o++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/createSuper.js b/node_modules/@babel/runtime/helpers/createSuper.js new file mode 100644 index 0000000..b1869e6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/createSuper.js @@ -0,0 +1,16 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var possibleConstructorReturn = require("./possibleConstructorReturn.js"); +function _createSuper(t) { + var r = isNativeReflectConstruct(); + return function () { + var e, + o = getPrototypeOf(t); + if (r) { + var s = getPrototypeOf(this).constructor; + e = Reflect.construct(o, arguments, s); + } else e = o.apply(this, arguments); + return possibleConstructorReturn(this, e); + }; +} +module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/decorate.js b/node_modules/@babel/runtime/helpers/decorate.js new file mode 100644 index 0000000..bc22acf --- /dev/null +++ b/node_modules/@babel/runtime/helpers/decorate.js @@ -0,0 +1,250 @@ +var toArray = require("./toArray.js"); +var toPropertyKey = require("./toPropertyKey.js"); +function _decorate(e, r, t, i) { + var o = _getDecoratorsApi(); + if (i) for (var n = 0; n < i.length; n++) o = i[n](o); + var s = r(function (e) { + o.initializeInstanceElements(e, a.elements); + }, t), + a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); + return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); +} +function _getDecoratorsApi() { + _getDecoratorsApi = function _getDecoratorsApi() { + return e; + }; + var e = { + elementsDefinitionOrder: [["method"], ["field"]], + initializeInstanceElements: function initializeInstanceElements(e, r) { + ["method", "field"].forEach(function (t) { + r.forEach(function (r) { + r.kind === t && "own" === r.placement && this.defineClassElement(e, r); + }, this); + }, this); + }, + initializeClassElements: function initializeClassElements(e, r) { + var t = e.prototype; + ["method", "field"].forEach(function (i) { + r.forEach(function (r) { + var o = r.placement; + if (r.kind === i && ("static" === o || "prototype" === o)) { + var n = "static" === o ? e : t; + this.defineClassElement(n, r); + } + }, this); + }, this); + }, + defineClassElement: function defineClassElement(e, r) { + var t = r.descriptor; + if ("field" === r.kind) { + var i = r.initializer; + t = { + enumerable: t.enumerable, + writable: t.writable, + configurable: t.configurable, + value: void 0 === i ? void 0 : i.call(e) + }; + } + Object.defineProperty(e, r.key, t); + }, + decorateClass: function decorateClass(e, r) { + var t = [], + i = [], + o = { + "static": [], + prototype: [], + own: [] + }; + if (e.forEach(function (e) { + this.addElementPlacement(e, o); + }, this), e.forEach(function (e) { + if (!_hasDecorators(e)) return t.push(e); + var r = this.decorateElement(e, o); + t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); + }, this), !r) return { + elements: t, + finishers: i + }; + var n = this.decorateConstructor(t, r); + return i.push.apply(i, n.finishers), n.finishers = i, n; + }, + addElementPlacement: function addElementPlacement(e, r, t) { + var i = r[e.placement]; + if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); + i.push(e.key); + }, + decorateElement: function decorateElement(e, r) { + for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { + var s = r[e.placement]; + s.splice(s.indexOf(e.key), 1); + var a = this.fromElementDescriptor(e), + l = this.toElementFinisherExtras((0, o[n])(a) || a); + e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); + var c = l.extras; + if (c) { + for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); + t.push.apply(t, c); + } + } + return { + element: e, + finishers: i, + extras: t + }; + }, + decorateConstructor: function decorateConstructor(e, r) { + for (var t = [], i = r.length - 1; i >= 0; i--) { + var o = this.fromClassDescriptor(e), + n = this.toClassDescriptor((0, r[i])(o) || o); + if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { + e = n.elements; + for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); + } + } + return { + elements: e, + finishers: t + }; + }, + fromElementDescriptor: function fromElementDescriptor(e) { + var r = { + kind: e.kind, + key: e.key, + placement: e.placement, + descriptor: e.descriptor + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), "field" === e.kind && (r.initializer = e.initializer), r; + }, + toElementDescriptors: function toElementDescriptors(e) { + if (void 0 !== e) return toArray(e).map(function (e) { + var r = this.toElementDescriptor(e); + return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; + }, this); + }, + toElementDescriptor: function toElementDescriptor(e) { + var r = e.kind + ""; + if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); + var t = toPropertyKey(e.key), + i = e.placement + ""; + if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); + var o = e.descriptor; + this.disallowProperty(e, "elements", "An element descriptor"); + var n = { + kind: r, + key: t, + placement: i, + descriptor: Object.assign({}, o) + }; + return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; + }, + toElementFinisherExtras: function toElementFinisherExtras(e) { + return { + element: this.toElementDescriptor(e), + finisher: _optionalCallableProperty(e, "finisher"), + extras: this.toElementDescriptors(e.extras) + }; + }, + fromClassDescriptor: function fromClassDescriptor(e) { + var r = { + kind: "class", + elements: e.map(this.fromElementDescriptor, this) + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), r; + }, + toClassDescriptor: function toClassDescriptor(e) { + var r = e.kind + ""; + if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); + this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); + var t = _optionalCallableProperty(e, "finisher"); + return { + elements: this.toElementDescriptors(e.elements), + finisher: t + }; + }, + runClassFinishers: function runClassFinishers(e, r) { + for (var t = 0; t < r.length; t++) { + var i = (0, r[t])(e); + if (void 0 !== i) { + if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); + e = i; + } + } + return e; + }, + disallowProperty: function disallowProperty(e, r, t) { + if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); + } + }; + return e; +} +function _createElementDescriptor(e) { + var r, + t = toPropertyKey(e.key); + "method" === e.kind ? r = { + value: e.value, + writable: !0, + configurable: !0, + enumerable: !1 + } : "get" === e.kind ? r = { + get: e.value, + configurable: !0, + enumerable: !1 + } : "set" === e.kind ? r = { + set: e.value, + configurable: !0, + enumerable: !1 + } : "field" === e.kind && (r = { + configurable: !0, + writable: !0, + enumerable: !0 + }); + var i = { + kind: "field" === e.kind ? "field" : "method", + key: t, + placement: e["static"] ? "static" : "field" === e.kind ? "own" : "prototype", + descriptor: r + }; + return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; +} +function _coalesceGetterSetter(e, r) { + void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; +} +function _coalesceClassElements(e) { + for (var r = [], isSameElement = function isSameElement(e) { + return "method" === e.kind && e.key === o.key && e.placement === o.placement; + }, t = 0; t < e.length; t++) { + var i, + o = e[t]; + if ("method" === o.kind && (i = r.find(isSameElement))) { + if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { + if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); + i.descriptor = o.descriptor; + } else { + if (_hasDecorators(o)) { + if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); + i.decorators = o.decorators; + } + _coalesceGetterSetter(o, i); + } + } else r.push(o); + } + return r; +} +function _hasDecorators(e) { + return e.decorators && e.decorators.length; +} +function _isDataDescriptor(e) { + return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); +} +function _optionalCallableProperty(e, r) { + var t = e[r]; + if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); + return t; +} +module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defaults.js b/node_modules/@babel/runtime/helpers/defaults.js new file mode 100644 index 0000000..dfdbbb0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defaults.js @@ -0,0 +1,9 @@ +function _defaults(e, r) { + for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { + var n = t[o], + a = Object.getOwnPropertyDescriptor(r, n); + a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); + } + return e; +} +module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineAccessor.js b/node_modules/@babel/runtime/helpers/defineAccessor.js new file mode 100644 index 0000000..dc065f0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defineAccessor.js @@ -0,0 +1,8 @@ +function _defineAccessor(e, r, n, t) { + var c = { + configurable: !0, + enumerable: !0 + }; + return c[e] = t, Object.defineProperty(r, n, c); +} +module.exports = _defineAccessor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js new file mode 100644 index 0000000..ab9f43c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js @@ -0,0 +1,12 @@ +function _defineEnumerableProperties(e, r) { + for (var t in r) { + var n = r[t]; + n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n); + } + if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) { + var i = a[b]; + (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n); + } + return e; +} +module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/defineProperty.js b/node_modules/@babel/runtime/helpers/defineProperty.js new file mode 100644 index 0000000..2c2ff1e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/defineProperty.js @@ -0,0 +1,10 @@ +var toPropertyKey = require("./toPropertyKey.js"); +function _defineProperty(e, r, t) { + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/dispose.js b/node_modules/@babel/runtime/helpers/dispose.js new file mode 100644 index 0000000..c20193c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/dispose.js @@ -0,0 +1,28 @@ +function dispose_SuppressedError(r, e) { + return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { + this.suppressed = e, this.error = r, this.stack = Error().stack; + }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { + constructor: { + value: dispose_SuppressedError, + writable: !0, + configurable: !0 + } + })), new dispose_SuppressedError(r, e); +} +function _dispose(r, e, s) { + function next() { + for (; r.length > 0;) try { + var o = r.pop(), + p = o.d.call(o.v); + if (o.a) return Promise.resolve(p).then(next, err); + } catch (r) { + return err(r); + } + if (s) throw e; + } + function err(r) { + return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); + } + return next(); +} +module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/AwaitValue.js b/node_modules/@babel/runtime/helpers/esm/AwaitValue.js new file mode 100644 index 0000000..6f210c9 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/AwaitValue.js @@ -0,0 +1,4 @@ +function _AwaitValue(t) { + this.wrapped = t; +} +export { _AwaitValue as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/OverloadYield.js b/node_modules/@babel/runtime/helpers/esm/OverloadYield.js new file mode 100644 index 0000000..d7753a6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/OverloadYield.js @@ -0,0 +1,4 @@ +function _OverloadYield(e, d) { + this.v = e, this.k = d; +} +export { _OverloadYield as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js new file mode 100644 index 0000000..0f33483 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js @@ -0,0 +1,9 @@ +function _applyDecoratedDescriptor(i, e, r, n, l) { + var a = {}; + return Object.keys(n).forEach(function (i) { + a[i] = n[i]; + }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { + return n(i, e, r) || r; + }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; +} +export { _applyDecoratedDescriptor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs.js b/node_modules/@babel/runtime/helpers/esm/applyDecs.js new file mode 100644 index 0000000..2b75dfd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs.js @@ -0,0 +1,236 @@ +import _typeof from "./typeof.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function old_createMetadataMethodsForProperty(e, t, a, r) { + return { + getMetadata: function getMetadata(o) { + old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); + var i = e[o]; + if (void 0 !== i) if (1 === t) { + var n = i["public"]; + if (void 0 !== n) return n[a]; + } else if (2 === t) { + var l = i["private"]; + if (void 0 !== l) return l.get(a); + } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; + }, + setMetadata: function setMetadata(o, i) { + old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); + var n = e[o]; + if (void 0 === n && (n = e[o] = {}), 1 === t) { + var l = n["public"]; + void 0 === l && (l = n["public"] = {}), l[a] = i; + } else if (2 === t) { + var s = n.priv; + void 0 === s && (s = n["private"] = new Map()), s.set(a, i); + } else n.constructor = i; + } + }; +} +function old_convertMetadataMapToFinal(e, t) { + var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], + r = Object.getOwnPropertySymbols(t); + if (0 !== r.length) { + for (var o = 0; o < r.length; o++) { + var i = r[o], + n = t[i], + l = a ? a[i] : null, + s = n["public"], + c = l ? l["public"] : null; + s && c && Object.setPrototypeOf(s, c); + var d = n["private"]; + if (d) { + var u = Array.from(d.values()), + f = l ? l["private"] : null; + f && (u = u.concat(f)), n["private"] = u; + } + l && Object.setPrototypeOf(n, l); + } + a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; + } +} +function old_createAddInitializerMethod(e, t) { + return function (a) { + old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); + }; +} +function old_memberDec(e, t, a, r, o, i, n, l, s) { + var c; + switch (i) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var d, + u, + f = { + kind: c, + name: l ? "#" + t : toPropertyKey(t), + isStatic: n, + isPrivate: l + }, + p = { + v: !1 + }; + if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { + d = 2, u = Symbol(t); + var v = {}; + 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { + return a.value; + } : (1 !== i && 3 !== i || (v.get = function () { + return a.get.call(this); + }), 1 !== i && 4 !== i || (v.set = function (e) { + a.set.call(this, e); + })), f.access = v; + } else d = 1, u = t; + try { + return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); + } finally { + p.v = !0; + } +} +function old_assertNotFinished(e, t) { + if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); +} +function old_assertMetadataKey(e) { + if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); +} +function old_assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); +} +function old_assertValidReturnValue(e, t) { + var a = _typeof(t); + if (1 === e) { + if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); + } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); +} +function old_getInit(e) { + var t; + return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; +} +function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { + var c, + d, + u, + f, + p, + v, + y, + h = a[0]; + if (n ? (0 === o || 1 === o ? (c = { + get: a[3], + set: a[4] + }, u = "get") : 3 === o ? (c = { + get: a[3] + }, u = "get") : 4 === o ? (c = { + set: a[3] + }, u = "set") : c = { + value: a[3] + }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { + get: c.get, + set: c.set + } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { + var b; + void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { + get: v, + set: y + }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); + } + if (0 === o || 1 === o) { + if (void 0 === d) d = function d(e, t) { + return t; + };else if ("function" != typeof d) { + var g = d; + d = function d(e, t) { + for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); + return a; + }; + } else { + var _ = d; + d = function d(e, t) { + return _.call(e, t); + }; + } + e.push(d); + } + 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === o ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, r, c)); +} +function old_applyMemberDecs(e, t, a, r, o) { + for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { + var d = o[c]; + if (Array.isArray(d)) { + var u, + f, + p, + v = d[1], + y = d[2], + h = d.length > 3, + m = v >= 5; + if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { + var b = m ? s : l, + g = b.get(y) || 0; + if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); + !g && v > 2 ? b.set(y, v) : b.set(y, !0); + } + old_applyMemberDec(e, u, d, y, v, m, h, f, p); + } + } + old_pushInitializers(e, i), old_pushInitializers(e, n); +} +function old_pushInitializers(e, t) { + t && e.push(function (e) { + for (var a = 0; a < t.length; a++) t[a].call(e); + return e; + }); +} +function old_applyClassDecs(e, t, a, r) { + if (r.length > 0) { + for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { + var s = { + v: !1 + }; + try { + var c = Object.assign({ + kind: "class", + name: n, + addInitializer: old_createAddInitializerMethod(o, s) + }, old_createMetadataMethodsForProperty(a, 0, n, s)), + d = r[l](i, c); + } finally { + s.v = !0; + } + void 0 !== d && (old_assertValidReturnValue(10, d), i = d); + } + e.push(i, function () { + for (var e = 0; e < o.length; e++) o[e].call(i); + }); + } +} +function applyDecs(e, t, a) { + var r = [], + o = {}, + i = {}; + return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; +} +export { applyDecs as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js new file mode 100644 index 0000000..bddb51d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js @@ -0,0 +1,184 @@ +import _typeof from "./typeof.js"; +function applyDecs2203Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, a, n, i, s, o) { + var c; + switch (n) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: s ? "#" + t : t, + "static": i, + "private": s + }, + p = { + v: !1 + }; + 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === n ? l = function l() { + return r.value; + } : (1 !== n && 3 !== n || (l = function l() { + return r.get.call(this); + }), 1 !== n && 4 !== n || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(o, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, a, n, i, s, o) { + var c, + l, + u, + f, + p, + d, + h = r[0]; + if (s ? c = 0 === n || 1 === n ? { + get: r[3], + set: r[4] + } : 3 === n ? { + get: r[3] + } : 4 === n ? { + set: r[3] + } : { + value: r[3] + } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { + get: c.get, + set: c.set + } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { + var g; + void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { + get: p, + set: d + }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); + } + if (0 === n || 1 === n) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var y = l; + l = function l(e, t) { + for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); + return r; + }; + } else { + var m = l; + l = function l(e, t) { + return m.call(e, t); + }; + } + e.push(l); + } + 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { + return u.get.call(e, t); + }), e.push(function (e, t) { + return u.set.call(e, t); + })) : 2 === n ? e.push(u) : e.push(function (e, t) { + return u.call(e, t); + }) : Object.defineProperty(t, a, c)); + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + var a = []; + return function (e, t, r) { + for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { + var c = r[o]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { + var v = h ? s : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(e, l, c, p, f, h, d, u); + } + } + pushInitializers(e, a), pushInitializers(e, n); + }(a, e, t), function (e, t, r) { + if (r.length > 0) { + for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { + var o = { + v: !1 + }; + try { + var c = r[s](n, { + kind: "class", + name: i, + addInitializer: createAddInitializerMethod(a, o) + }); + } finally { + o.v = !0; + } + void 0 !== c && (assertValidReturnValue(10, c), n = c); + } + e.push(n, function () { + for (var e = 0; e < a.length; e++) a[e].call(n); + }); + } + }(a, e, r), a; + }; +} +var applyDecs2203Impl; +function applyDecs2203(e, t, r) { + return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); +} +export { applyDecs2203 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js new file mode 100644 index 0000000..3944bf4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js @@ -0,0 +1,191 @@ +import _typeof from "./typeof.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2203RFactory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function memberDec(e, t, r, n, a, i, o, s) { + var c; + switch (a) { + case 1: + c = "accessor"; + break; + case 2: + c = "method"; + break; + case 3: + c = "getter"; + break; + case 4: + c = "setter"; + break; + default: + c = "field"; + } + var l, + u, + f = { + kind: c, + name: o ? "#" + t : toPropertyKey(t), + "static": i, + "private": o + }, + p = { + v: !1 + }; + 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { + return this[t]; + }, u = function u(e) { + this[t] = e; + }) : 2 === a ? l = function l() { + return r.value; + } : (1 !== a && 3 !== a || (l = function l() { + return r.get.call(this); + }), 1 !== a && 4 !== a || (u = function u(e) { + r.set.call(this, e); + })), f.access = l && u ? { + get: l, + set: u + } : l ? { + get: l + } : { + set: u + }; + try { + return e(s, f); + } finally { + p.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function applyMemberDec(e, t, r, n, a, i, o, s) { + var c, + l, + u, + f, + p, + d, + h, + v = r[0]; + if (o ? (0 === a || 1 === a ? (c = { + get: r[3], + set: r[4] + }, u = "get") : 3 === a ? (c = { + get: r[3] + }, u = "get") : 4 === a ? (c = { + set: r[3] + }, u = "set") : c = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { + get: c.get, + set: c.set + } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { + var y; + void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { + get: d, + set: h + }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var m = l; + l = function l(e, t) { + for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); + return r; + }; + } else { + var b = l; + l = function l(e, t) { + return b.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { + return f.get.call(e, t); + }), e.push(function (e, t) { + return f.set.call(e, t); + })) : 2 === a ? e.push(f) : e.push(function (e, t) { + return f.call(e, t); + }) : Object.defineProperty(t, n, c)); + } + function applyMemberDecs(e, t) { + for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { + var c = t[s]; + if (Array.isArray(c)) { + var l, + u, + f = c[1], + p = c[2], + d = c.length > 3, + h = f >= 5; + if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { + var v = h ? o : i, + g = v.get(p) || 0; + if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); + !g && f > 2 ? v.set(p, f) : v.set(p, !0); + } + applyMemberDec(a, l, c, p, f, h, d, u); + } + } + return pushInitializers(a, r), pushInitializers(a, n), a; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r) { + return { + e: applyMemberDecs(e, t), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var o = { + v: !1 + }; + try { + var s = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, o) + }); + } finally { + o.v = !0; + } + void 0 !== s && (assertValidReturnValue(10, s), n = s); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2203R(e, t, r) { + return (applyDecs2203R = applyDecs2203RFactory())(e, t, r); +} +export { applyDecs2203R as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js new file mode 100644 index 0000000..bb4fbe6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js @@ -0,0 +1,222 @@ +import _typeof from "./typeof.js"; +import checkInRHS from "./checkInRHS.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2301Factory() { + function createAddInitializerMethod(e, t) { + return function (r) { + !function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + }(t), assertCallable(r, "An initializer"), e.push(r); + }; + } + function assertInstanceIfPrivate(e, t) { + if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); + } + function memberDec(e, t, r, n, a, i, s, o, c) { + var u; + switch (a) { + case 1: + u = "accessor"; + break; + case 2: + u = "method"; + break; + case 3: + u = "getter"; + break; + case 4: + u = "setter"; + break; + default: + u = "field"; + } + var l, + f, + p = { + kind: u, + name: s ? "#" + t : toPropertyKey(t), + "static": i, + "private": s + }, + d = { + v: !1 + }; + if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { + if (2 === a) l = function l(e) { + return assertInstanceIfPrivate(c, e), r.value; + };else { + var h = 0 === a || 1 === a; + (h || 3 === a) && (l = s ? function (e) { + return assertInstanceIfPrivate(c, e), r.get.call(e); + } : function (e) { + return r.get.call(e); + }), (h || 4 === a) && (f = s ? function (e, t) { + assertInstanceIfPrivate(c, e), r.set.call(e, t); + } : function (e, t) { + r.set.call(e, t); + }); + } + } else l = function l(e) { + return e[t]; + }, 0 === a && (f = function f(e, r) { + e[t] = r; + }); + var v = s ? c.bind() : function (e) { + return t in e; + }; + p.access = l && f ? { + get: l, + set: f, + has: v + } : l ? { + get: l, + has: v + } : { + set: f, + has: v + }; + try { + return e(o, p); + } finally { + d.v = !0; + } + } + function assertCallable(e, t) { + if ("function" != typeof e) throw new TypeError(t + " must be a function"); + } + function assertValidReturnValue(e, t) { + var r = _typeof(t); + if (1 === e) { + if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); + } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); + } + function curryThis2(e) { + return function (t) { + e(this, t); + }; + } + function applyMemberDec(e, t, r, n, a, i, s, o, c) { + var u, + l, + f, + p, + d, + h, + v, + y, + g = r[0]; + if (s ? (0 === a || 1 === a ? (u = { + get: (d = r[3], function () { + return d(this); + }), + set: curryThis2(r[4]) + }, f = "get") : 3 === a ? (u = { + get: r[3] + }, f = "get") : 4 === a ? (u = { + set: r[3] + }, f = "set") : u = { + value: r[3] + }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { + get: u.get, + set: u.set + } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { + var b; + void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { + get: v, + set: y + }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); + } + if (0 === a || 1 === a) { + if (void 0 === l) l = function l(e, t) { + return t; + };else if ("function" != typeof l) { + var I = l; + l = function l(e, t) { + for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); + return r; + }; + } else { + var w = l; + l = function l(e, t) { + return w.call(e, t); + }; + } + e.push(l); + } + 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { + return p.get.call(e, t); + }), e.push(function (e, t) { + return p.set.call(e, t); + })) : 2 === a ? e.push(p) : e.push(function (e, t) { + return p.call(e, t); + }) : Object.defineProperty(t, n, u)); + } + function applyMemberDecs(e, t, r) { + for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { + var l = t[u]; + if (Array.isArray(l)) { + var f, + p, + d = l[1], + h = l[2], + v = l.length > 3, + y = d >= 5, + g = r; + if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { + return checkInRHS(t) === e; + }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { + var m = y ? c : o, + b = m.get(h) || 0; + if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + !b && d > 2 ? m.set(h, d) : m.set(h, !0); + } + applyMemberDec(s, f, l, h, d, y, v, p, g); + } + } + return pushInitializers(s, n), pushInitializers(s, a), s; + } + function pushInitializers(e, t) { + t && e.push(function (e) { + for (var r = 0; r < t.length; r++) t[r].call(e); + return e; + }); + } + return function (e, t, r, n) { + return { + e: applyMemberDecs(e, t, n), + get c() { + return function (e, t) { + if (t.length > 0) { + for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { + var s = { + v: !1 + }; + try { + var o = t[i](n, { + kind: "class", + name: a, + addInitializer: createAddInitializerMethod(r, s) + }); + } finally { + s.v = !0; + } + void 0 !== o && (assertValidReturnValue(10, o), n = o); + } + return [n, function () { + for (var e = 0; e < r.length; e++) r[e].call(n); + }]; + } + }(e, r); + } + }; + }; +} +function applyDecs2301(e, t, r, n) { + return (applyDecs2301 = applyDecs2301Factory())(e, t, r, n); +} +export { applyDecs2301 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js new file mode 100644 index 0000000..a11b2b9 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js @@ -0,0 +1,133 @@ +import _typeof from "./typeof.js"; +import checkInRHS from "./checkInRHS.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2305(e, t, r, n, o, a) { + function i(e, t, r) { + return function (n, o) { + return r && r(n), e[t].call(n, o); + }; + } + function c(e, t) { + for (var r = 0; r < e.length; r++) e[r].call(t); + return t; + } + function s(e, t, r, n) { + if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); + return e; + } + function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { + function m(e) { + if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var y, + v = t[0], + g = t[3], + b = !u; + if (!b) { + r || Array.isArray(v) || (v = [v]); + var w = {}, + S = [], + A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; + f ? (p || d ? w = { + get: setFunctionName(function () { + return g(this); + }, n, "get"), + set: function set(e) { + t[4](this, e); + } + } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); + } + for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { + var D = v[j], + E = r ? v[j - 1] : void 0, + I = {}, + O = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: n, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); + s(t, "An initializer", "be", !0), c.push(t); + }.bind(null, I) + }; + try { + if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { + var k, F; + O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { + return m(e), w.value; + } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { + return e[n]; + }, (o < 2 || 4 === o) && (F = function F(e, t) { + e[n] = t; + })); + var N = O.access = { + has: f ? h.bind() : function (e) { + return n in e; + } + }; + if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { + get: w.get, + set: w.set + } : w[A], O), d) { + if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); + } + } finally { + I.v = !0; + } + } + return (p || d) && u.push(function (e, t) { + for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); + return t; + }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; + } + function u(e, t) { + return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { + configurable: !0, + enumerable: !0, + value: t + }); + } + if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; + var f = Object.create(null == l ? null : l), + p = function (e, t, r, n) { + var o, + a, + i = [], + s = function s(t) { + return checkInRHS(t) === e; + }, + u = new Map(); + function l(e) { + e && i.push(c.bind(null, e)); + } + for (var f = 0; f < t.length; f++) { + var p = t[f]; + if (Array.isArray(p)) { + var d = p[1], + h = p[2], + m = p.length > 3, + y = 16 & d, + v = !!(8 & d), + g = 0 == (d &= 7), + b = h + "/" + v; + if (!g && !m) { + var w = u.get(b); + if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); + u.set(b, !(d > 2) || d); + } + applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); + } + } + return l(o), l(a), i; + }(e, t, o, f); + return r.length || u(e, f), { + e: p, + get c() { + var t = []; + return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; + } + }; +} +export { applyDecs2305 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js new file mode 100644 index 0000000..41b2c48 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js @@ -0,0 +1,124 @@ +import _typeof from "./typeof.js"; +import checkInRHS from "./checkInRHS.js"; +import setFunctionName from "./setFunctionName.js"; +import toPropertyKey from "./toPropertyKey.js"; +function applyDecs2311(e, t, n, r, o, i) { + var a, + c, + u, + s, + f, + l, + p, + d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), + m = Object.defineProperty, + h = Object.create, + y = [h(null), h(null)], + v = t.length; + function g(t, n, r) { + return function (o, i) { + n && (i = o, o = e); + for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); + return r ? i : o; + }; + } + function b(e, t, n, r) { + if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); + return e; + } + function applyDec(e, t, n, r, o, i, u, s, f, l, p) { + function d(e) { + if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); + } + var h = [].concat(t[0]), + v = t[3], + w = !u, + D = 1 === o, + S = 3 === o, + j = 4 === o, + E = 2 === o; + function I(t, n, r) { + return function (o, i) { + return n && (i = o, o = e), r && r(o), P[t].call(o, i); + }; + } + if (!w) { + var P = {}, + k = [], + F = S ? "get" : j || D ? "set" : "value"; + if (f ? (l || D ? P = { + get: setFunctionName(function () { + return v(this); + }, r, "get"), + set: function set(e) { + t[4](this, e); + } + } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { + if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); + y[+s][r] = o < 3 ? 1 : o; + } + } + for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { + var T = b(h[O], "A decorator", "be", !0), + z = n ? h[O - 1] : void 0, + A = {}, + H = { + kind: ["field", "accessor", "method", "getter", "setter", "class"][o], + name: r, + metadata: a, + addInitializer: function (e, t) { + if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); + b(t, "An initializer", "be", !0), i.push(t); + }.bind(null, A) + }; + if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = { + has: f ? p.bind() : function (e) { + return r in e; + } + }, j || (c.get = f ? E ? function (e) { + return d(e), P.value; + } : I("get", 0, d) : function (e) { + return e[r]; + }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { + e[r] = t; + }), N = T.call(z, D ? { + get: P.get, + set: P.set + } : P[F], H), A.v = 1, D) { + if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); + } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); + } + return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; + } + function w(e) { + return m(e, d, { + configurable: !0, + enumerable: !0, + value: a + }); + } + return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { + e && f.push(g(e)); + }, p = function p(t, r) { + for (var i = 0; i < n.length; i++) { + var a = n[i], + c = a[1], + l = 7 & c; + if ((8 & c) == t && !l == r) { + var p = a[2], + d = !!a[3], + m = 16 & c; + applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { + return checkInRHS(t) === e; + } : o); + } + } + }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { + e: c, + get c() { + var n = []; + return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; + } + }; +} +export { applyDecs2311 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js b/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js new file mode 100644 index 0000000..9ace772 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js @@ -0,0 +1,6 @@ +function _arrayLikeToArray(r, a) { + (null == a || a > r.length) && (a = r.length); + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; + return n; +} +export { _arrayLikeToArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js new file mode 100644 index 0000000..99fa715 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js @@ -0,0 +1,4 @@ +function _arrayWithHoles(r) { + if (Array.isArray(r)) return r; +} +export { _arrayWithHoles as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js new file mode 100644 index 0000000..1ce6f21 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js @@ -0,0 +1,5 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return arrayLikeToArray(r); +} +export { _arrayWithoutHoles as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js b/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js new file mode 100644 index 0000000..ae7b712 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js @@ -0,0 +1,5 @@ +function _assertClassBrand(e, t, n) { + if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; + throw new TypeError("Private element is not present on this object"); +} +export { _assertClassBrand as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js new file mode 100644 index 0000000..4a41bde --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js @@ -0,0 +1,5 @@ +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +export { _assertThisInitialized as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js new file mode 100644 index 0000000..e026689 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js @@ -0,0 +1,24 @@ +import OverloadYield from "./OverloadYield.js"; +function _asyncGeneratorDelegate(t) { + var e = {}, + n = !1; + function pump(e, r) { + return n = !0, r = new Promise(function (n) { + n(t[e](r)); + }), { + done: !1, + value: new OverloadYield(r, 1) + }; + } + return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { + return this; + }, e.next = function (t) { + return n ? (n = !1, t) : pump("next", t); + }, "function" == typeof t["throw"] && (e["throw"] = function (t) { + if (n) throw n = !1, t; + return pump("throw", t); + }), "function" == typeof t["return"] && (e["return"] = function (t) { + return n ? (n = !1, t) : pump("return", t); + }), e; +} +export { _asyncGeneratorDelegate as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncIterator.js b/node_modules/@babel/runtime/helpers/esm/asyncIterator.js new file mode 100644 index 0000000..2ed00b7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/asyncIterator.js @@ -0,0 +1,45 @@ +function _asyncIterator(r) { + var n, + t, + o, + e = 2; + for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { + if (t && null != (n = r[t])) return n.call(r); + if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); + t = "@@asyncIterator", o = "@@iterator"; + } + throw new TypeError("Object is not async iterable"); +} +function AsyncFromSyncIterator(r) { + function AsyncFromSyncIteratorContinuation(r) { + if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); + var n = r.done; + return Promise.resolve(r.value).then(function (r) { + return { + value: r, + done: n + }; + }); + } + return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { + this.s = r, this.n = r.next; + }, AsyncFromSyncIterator.prototype = { + s: null, + n: null, + next: function next() { + return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); + }, + "return": function _return(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.resolve({ + value: r, + done: !0 + }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + }, + "throw": function _throw(r) { + var n = this.s["return"]; + return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); + } + }, new AsyncFromSyncIterator(r); +} +export { _asyncIterator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js new file mode 100644 index 0000000..00f29b1 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js @@ -0,0 +1,26 @@ +function asyncGeneratorStep(n, t, e, r, o, a, c) { + try { + var i = n[a](c), + u = i.value; + } catch (n) { + return void e(n); + } + i.done ? t(u) : Promise.resolve(u).then(r, o); +} +function _asyncToGenerator(n) { + return function () { + var t = this, + e = arguments; + return new Promise(function (r, o) { + var a = n.apply(t, e); + function _next(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); + } + function _throw(n) { + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); + } + _next(void 0); + }); + }; +} +export { _asyncToGenerator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js new file mode 100644 index 0000000..097c88c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js @@ -0,0 +1,5 @@ +import OverloadYield from "./OverloadYield.js"; +function _awaitAsyncGenerator(e) { + return new OverloadYield(e, 0); +} +export { _awaitAsyncGenerator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/callSuper.js b/node_modules/@babel/runtime/helpers/esm/callSuper.js new file mode 100644 index 0000000..6d17a4e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/callSuper.js @@ -0,0 +1,7 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import possibleConstructorReturn from "./possibleConstructorReturn.js"; +function _callSuper(t, o, e) { + return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); +} +export { _callSuper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/checkInRHS.js b/node_modules/@babel/runtime/helpers/esm/checkInRHS.js new file mode 100644 index 0000000..12f59b4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/checkInRHS.js @@ -0,0 +1,6 @@ +import _typeof from "./typeof.js"; +function _checkInRHS(e) { + if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); + return e; +} +export { _checkInRHS as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js b/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js new file mode 100644 index 0000000..e9e6b3b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js @@ -0,0 +1,4 @@ +function _checkPrivateRedeclaration(e, t) { + if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); +} +export { _checkPrivateRedeclaration as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js new file mode 100644 index 0000000..5623419 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js @@ -0,0 +1,10 @@ +function _classApplyDescriptorDestructureSet(e, t) { + if (t.set) return "__destrObj" in t || (t.__destrObj = { + set value(r) { + t.set.call(e, r); + } + }), t.__destrObj; + if (!t.writable) throw new TypeError("attempted to set read only private field"); + return t; +} +export { _classApplyDescriptorDestructureSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js new file mode 100644 index 0000000..b9259d3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js @@ -0,0 +1,4 @@ +function _classApplyDescriptorGet(e, t) { + return t.get ? t.get.call(e) : t.value; +} +export { _classApplyDescriptorGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js new file mode 100644 index 0000000..d9c4fbd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js @@ -0,0 +1,7 @@ +function _classApplyDescriptorSet(e, t, l) { + if (t.set) t.set.call(e, l);else { + if (!t.writable) throw new TypeError("attempted to set read only private field"); + t.value = l; + } +} +export { _classApplyDescriptorSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCallCheck.js b/node_modules/@babel/runtime/helpers/esm/classCallCheck.js new file mode 100644 index 0000000..bf97219 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classCallCheck.js @@ -0,0 +1,4 @@ +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); +} +export { _classCallCheck as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js new file mode 100644 index 0000000..366ed05 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classCheckPrivateStaticAccess(s, a, r) { + return assertClassBrand(a, s, r); +} +export { _classCheckPrivateStaticAccess as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js new file mode 100644 index 0000000..844be91 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js @@ -0,0 +1,4 @@ +function _classCheckPrivateStaticFieldDescriptor(t, e) { + if (void 0 === t) throw new TypeError("attempted to " + e + " private static field before its declaration"); +} +export { _classCheckPrivateStaticFieldDescriptor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js b/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js new file mode 100644 index 0000000..652689d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js @@ -0,0 +1,5 @@ +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classExtractFieldDescriptor(e, t) { + return classPrivateFieldGet2(t, e); +} +export { _classExtractFieldDescriptor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js b/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js new file mode 100644 index 0000000..68e76ff --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js @@ -0,0 +1,4 @@ +function _classNameTDZError(e) { + throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); +} +export { _classNameTDZError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js new file mode 100644 index 0000000..9303366 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classPrivateFieldDestructureSet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorDestructureSet(e, r); +} +export { _classPrivateFieldDestructureSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js new file mode 100644 index 0000000..ce7ebcb --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classPrivateFieldGet(e, t) { + var r = classPrivateFieldGet2(t, e); + return classApplyDescriptorGet(e, r); +} +export { _classPrivateFieldGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js new file mode 100644 index 0000000..4aa3da6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateFieldGet2(s, a) { + return s.get(assertClassBrand(s, a)); +} +export { _classPrivateFieldGet2 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js new file mode 100644 index 0000000..5dcdbe0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js @@ -0,0 +1,5 @@ +import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; +function _classPrivateFieldInitSpec(e, t, a) { + checkPrivateRedeclaration(e, t), t.set(e, a); +} +export { _classPrivateFieldInitSpec as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js new file mode 100644 index 0000000..4bd662c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js @@ -0,0 +1,5 @@ +function _classPrivateFieldBase(e, t) { + if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); + return e; +} +export { _classPrivateFieldBase as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js new file mode 100644 index 0000000..90d2193 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js @@ -0,0 +1,5 @@ +var id = 0; +function _classPrivateFieldKey(e) { + return "__private_" + id++ + "_" + e; +} +export { _classPrivateFieldKey as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js new file mode 100644 index 0000000..b5161bd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; +import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; +function _classPrivateFieldSet(e, t, r) { + var s = classPrivateFieldGet2(t, e); + return classApplyDescriptorSet(e, s, r), r; +} +export { _classPrivateFieldSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js new file mode 100644 index 0000000..337b01a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateFieldSet2(s, a, r) { + return s.set(assertClassBrand(s, a), r), r; +} +export { _classPrivateFieldSet2 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js b/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js new file mode 100644 index 0000000..ff3e985 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateGetter(s, r, a) { + return a(assertClassBrand(s, r)); +} +export { _classPrivateGetter as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js new file mode 100644 index 0000000..4832fc6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateMethodGet(s, a, r) { + return assertClassBrand(a, s), r; +} +export { _classPrivateMethodGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js new file mode 100644 index 0000000..61e23e2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js @@ -0,0 +1,5 @@ +import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; +function _classPrivateMethodInitSpec(e, a) { + checkPrivateRedeclaration(e, a), a.add(e); +} +export { _classPrivateMethodInitSpec as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js new file mode 100644 index 0000000..d181b51 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classPrivateMethodSet() { + throw new TypeError("attempted to reassign private method"); +} +export { _classPrivateMethodSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js b/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js new file mode 100644 index 0000000..9a80d59 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classPrivateSetter(s, r, a, t) { + return r(assertClassBrand(s, a), t), t; +} +export { _classPrivateSetter as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js new file mode 100644 index 0000000..747e639 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; +import assertClassBrand from "./assertClassBrand.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +function _classStaticPrivateFieldDestructureSet(t, r, s) { + return assertClassBrand(r, t), classCheckPrivateStaticFieldDescriptor(s, "set"), classApplyDescriptorDestructureSet(t, s); +} +export { _classStaticPrivateFieldDestructureSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js new file mode 100644 index 0000000..23684b7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; +import assertClassBrand from "./assertClassBrand.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +function _classStaticPrivateFieldSpecGet(t, s, r) { + return assertClassBrand(s, t), classCheckPrivateStaticFieldDescriptor(r, "get"), classApplyDescriptorGet(t, r); +} +export { _classStaticPrivateFieldSpecGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js new file mode 100644 index 0000000..3a31468 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js @@ -0,0 +1,7 @@ +import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; +import assertClassBrand from "./assertClassBrand.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +function _classStaticPrivateFieldSpecSet(s, t, r, e) { + return assertClassBrand(t, s), classCheckPrivateStaticFieldDescriptor(r, "set"), classApplyDescriptorSet(s, r, e), e; +} +export { _classStaticPrivateFieldSpecSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js new file mode 100644 index 0000000..047b177 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js @@ -0,0 +1,5 @@ +import assertClassBrand from "./assertClassBrand.js"; +function _classStaticPrivateMethodGet(s, a, t) { + return assertClassBrand(a, s), t; +} +export { _classStaticPrivateMethodGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js new file mode 100644 index 0000000..a61ae63 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js @@ -0,0 +1,4 @@ +function _classStaticPrivateMethodSet() { + throw new TypeError("attempted to set read only static private field"); +} +export { _classStaticPrivateMethodSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/construct.js b/node_modules/@babel/runtime/helpers/esm/construct.js new file mode 100644 index 0000000..91609ff --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/construct.js @@ -0,0 +1,10 @@ +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import setPrototypeOf from "./setPrototypeOf.js"; +function _construct(t, e, r) { + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && setPrototypeOf(p, r.prototype), p; +} +export { _construct as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createClass.js b/node_modules/@babel/runtime/helpers/esm/createClass.js new file mode 100644 index 0000000..9b17851 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createClass.js @@ -0,0 +1,13 @@ +import toPropertyKey from "./toPropertyKey.js"; +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); + } +} +function _createClass(e, r, t) { + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { + writable: !1 + }), e; +} +export { _createClass as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js new file mode 100644 index 0000000..93b97f9 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js @@ -0,0 +1,50 @@ +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +function _createForOfIteratorHelper(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (!t) { + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var _n = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return _n >= r.length ? { + done: !0 + } : { + done: !1, + value: r[_n++] + }; + }, + e: function e(r) { + throw r; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var o, + a = !0, + u = !1; + return { + s: function s() { + t = t.call(r); + }, + n: function n() { + var r = t.next(); + return a = r.done, r; + }, + e: function e(r) { + u = !0, o = r; + }, + f: function f() { + try { + a || null == t["return"] || t["return"](); + } finally { + if (u) throw o; + } + } + }; +} +export { _createForOfIteratorHelper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js new file mode 100644 index 0000000..3deaae4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js @@ -0,0 +1,19 @@ +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +function _createForOfIteratorHelperLoose(r, e) { + var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (t) return (t = t.call(r)).next.bind(t); + if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { + t && (r = t); + var o = 0; + return function () { + return o >= r.length ? { + done: !0 + } : { + done: !1, + value: r[o++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _createForOfIteratorHelperLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/createSuper.js b/node_modules/@babel/runtime/helpers/esm/createSuper.js new file mode 100644 index 0000000..dfabf71 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/createSuper.js @@ -0,0 +1,16 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import possibleConstructorReturn from "./possibleConstructorReturn.js"; +function _createSuper(t) { + var r = isNativeReflectConstruct(); + return function () { + var e, + o = getPrototypeOf(t); + if (r) { + var s = getPrototypeOf(this).constructor; + e = Reflect.construct(o, arguments, s); + } else e = o.apply(this, arguments); + return possibleConstructorReturn(this, e); + }; +} +export { _createSuper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/decorate.js b/node_modules/@babel/runtime/helpers/esm/decorate.js new file mode 100644 index 0000000..f76b6a6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/decorate.js @@ -0,0 +1,250 @@ +import toArray from "./toArray.js"; +import toPropertyKey from "./toPropertyKey.js"; +function _decorate(e, r, t, i) { + var o = _getDecoratorsApi(); + if (i) for (var n = 0; n < i.length; n++) o = i[n](o); + var s = r(function (e) { + o.initializeInstanceElements(e, a.elements); + }, t), + a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); + return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); +} +function _getDecoratorsApi() { + _getDecoratorsApi = function _getDecoratorsApi() { + return e; + }; + var e = { + elementsDefinitionOrder: [["method"], ["field"]], + initializeInstanceElements: function initializeInstanceElements(e, r) { + ["method", "field"].forEach(function (t) { + r.forEach(function (r) { + r.kind === t && "own" === r.placement && this.defineClassElement(e, r); + }, this); + }, this); + }, + initializeClassElements: function initializeClassElements(e, r) { + var t = e.prototype; + ["method", "field"].forEach(function (i) { + r.forEach(function (r) { + var o = r.placement; + if (r.kind === i && ("static" === o || "prototype" === o)) { + var n = "static" === o ? e : t; + this.defineClassElement(n, r); + } + }, this); + }, this); + }, + defineClassElement: function defineClassElement(e, r) { + var t = r.descriptor; + if ("field" === r.kind) { + var i = r.initializer; + t = { + enumerable: t.enumerable, + writable: t.writable, + configurable: t.configurable, + value: void 0 === i ? void 0 : i.call(e) + }; + } + Object.defineProperty(e, r.key, t); + }, + decorateClass: function decorateClass(e, r) { + var t = [], + i = [], + o = { + "static": [], + prototype: [], + own: [] + }; + if (e.forEach(function (e) { + this.addElementPlacement(e, o); + }, this), e.forEach(function (e) { + if (!_hasDecorators(e)) return t.push(e); + var r = this.decorateElement(e, o); + t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); + }, this), !r) return { + elements: t, + finishers: i + }; + var n = this.decorateConstructor(t, r); + return i.push.apply(i, n.finishers), n.finishers = i, n; + }, + addElementPlacement: function addElementPlacement(e, r, t) { + var i = r[e.placement]; + if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); + i.push(e.key); + }, + decorateElement: function decorateElement(e, r) { + for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { + var s = r[e.placement]; + s.splice(s.indexOf(e.key), 1); + var a = this.fromElementDescriptor(e), + l = this.toElementFinisherExtras((0, o[n])(a) || a); + e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); + var c = l.extras; + if (c) { + for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); + t.push.apply(t, c); + } + } + return { + element: e, + finishers: i, + extras: t + }; + }, + decorateConstructor: function decorateConstructor(e, r) { + for (var t = [], i = r.length - 1; i >= 0; i--) { + var o = this.fromClassDescriptor(e), + n = this.toClassDescriptor((0, r[i])(o) || o); + if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { + e = n.elements; + for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); + } + } + return { + elements: e, + finishers: t + }; + }, + fromElementDescriptor: function fromElementDescriptor(e) { + var r = { + kind: e.kind, + key: e.key, + placement: e.placement, + descriptor: e.descriptor + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), "field" === e.kind && (r.initializer = e.initializer), r; + }, + toElementDescriptors: function toElementDescriptors(e) { + if (void 0 !== e) return toArray(e).map(function (e) { + var r = this.toElementDescriptor(e); + return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; + }, this); + }, + toElementDescriptor: function toElementDescriptor(e) { + var r = e.kind + ""; + if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); + var t = toPropertyKey(e.key), + i = e.placement + ""; + if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); + var o = e.descriptor; + this.disallowProperty(e, "elements", "An element descriptor"); + var n = { + kind: r, + key: t, + placement: i, + descriptor: Object.assign({}, o) + }; + return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; + }, + toElementFinisherExtras: function toElementFinisherExtras(e) { + return { + element: this.toElementDescriptor(e), + finisher: _optionalCallableProperty(e, "finisher"), + extras: this.toElementDescriptors(e.extras) + }; + }, + fromClassDescriptor: function fromClassDescriptor(e) { + var r = { + kind: "class", + elements: e.map(this.fromElementDescriptor, this) + }; + return Object.defineProperty(r, Symbol.toStringTag, { + value: "Descriptor", + configurable: !0 + }), r; + }, + toClassDescriptor: function toClassDescriptor(e) { + var r = e.kind + ""; + if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); + this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); + var t = _optionalCallableProperty(e, "finisher"); + return { + elements: this.toElementDescriptors(e.elements), + finisher: t + }; + }, + runClassFinishers: function runClassFinishers(e, r) { + for (var t = 0; t < r.length; t++) { + var i = (0, r[t])(e); + if (void 0 !== i) { + if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); + e = i; + } + } + return e; + }, + disallowProperty: function disallowProperty(e, r, t) { + if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); + } + }; + return e; +} +function _createElementDescriptor(e) { + var r, + t = toPropertyKey(e.key); + "method" === e.kind ? r = { + value: e.value, + writable: !0, + configurable: !0, + enumerable: !1 + } : "get" === e.kind ? r = { + get: e.value, + configurable: !0, + enumerable: !1 + } : "set" === e.kind ? r = { + set: e.value, + configurable: !0, + enumerable: !1 + } : "field" === e.kind && (r = { + configurable: !0, + writable: !0, + enumerable: !0 + }); + var i = { + kind: "field" === e.kind ? "field" : "method", + key: t, + placement: e["static"] ? "static" : "field" === e.kind ? "own" : "prototype", + descriptor: r + }; + return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; +} +function _coalesceGetterSetter(e, r) { + void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; +} +function _coalesceClassElements(e) { + for (var r = [], isSameElement = function isSameElement(e) { + return "method" === e.kind && e.key === o.key && e.placement === o.placement; + }, t = 0; t < e.length; t++) { + var i, + o = e[t]; + if ("method" === o.kind && (i = r.find(isSameElement))) { + if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { + if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); + i.descriptor = o.descriptor; + } else { + if (_hasDecorators(o)) { + if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); + i.decorators = o.decorators; + } + _coalesceGetterSetter(o, i); + } + } else r.push(o); + } + return r; +} +function _hasDecorators(e) { + return e.decorators && e.decorators.length; +} +function _isDataDescriptor(e) { + return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); +} +function _optionalCallableProperty(e, r) { + var t = e[r]; + if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); + return t; +} +export { _decorate as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defaults.js b/node_modules/@babel/runtime/helpers/esm/defaults.js new file mode 100644 index 0000000..d3041a3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defaults.js @@ -0,0 +1,9 @@ +function _defaults(e, r) { + for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { + var n = t[o], + a = Object.getOwnPropertyDescriptor(r, n); + a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); + } + return e; +} +export { _defaults as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineAccessor.js b/node_modules/@babel/runtime/helpers/esm/defineAccessor.js new file mode 100644 index 0000000..a8292de --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defineAccessor.js @@ -0,0 +1,8 @@ +function _defineAccessor(e, r, n, t) { + var c = { + configurable: !0, + enumerable: !0 + }; + return c[e] = t, Object.defineProperty(r, n, c); +} +export { _defineAccessor as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js new file mode 100644 index 0000000..3d31d98 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js @@ -0,0 +1,12 @@ +function _defineEnumerableProperties(e, r) { + for (var t in r) { + var n = r[t]; + n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n); + } + if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) { + var i = a[b]; + (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n); + } + return e; +} +export { _defineEnumerableProperties as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/defineProperty.js b/node_modules/@babel/runtime/helpers/esm/defineProperty.js new file mode 100644 index 0000000..05ec32b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/defineProperty.js @@ -0,0 +1,10 @@ +import toPropertyKey from "./toPropertyKey.js"; +function _defineProperty(e, r, t) { + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} +export { _defineProperty as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/dispose.js b/node_modules/@babel/runtime/helpers/esm/dispose.js new file mode 100644 index 0000000..a87ab20 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/dispose.js @@ -0,0 +1,28 @@ +function dispose_SuppressedError(r, e) { + return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { + this.suppressed = e, this.error = r, this.stack = Error().stack; + }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { + constructor: { + value: dispose_SuppressedError, + writable: !0, + configurable: !0 + } + })), new dispose_SuppressedError(r, e); +} +function _dispose(r, e, s) { + function next() { + for (; r.length > 0;) try { + var o = r.pop(), + p = o.d.call(o.v); + if (o.a) return Promise.resolve(p).then(next, err); + } catch (r) { + return err(r); + } + if (s) throw e; + } + function err(r) { + return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); + } + return next(); +} +export { _dispose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/extends.js b/node_modules/@babel/runtime/helpers/esm/extends.js new file mode 100644 index 0000000..53f118c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/extends.js @@ -0,0 +1,10 @@ +function _extends() { + return _extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); + } + return n; + }, _extends.apply(null, arguments); +} +export { _extends as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/get.js b/node_modules/@babel/runtime/helpers/esm/get.js new file mode 100644 index 0000000..8124bc0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/get.js @@ -0,0 +1,11 @@ +import superPropBase from "./superPropBase.js"; +function _get() { + return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { + var p = superPropBase(e, t); + if (p) { + var n = Object.getOwnPropertyDescriptor(p, t); + return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; + } + }, _get.apply(null, arguments); +} +export { _get as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js new file mode 100644 index 0000000..9073c45 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js @@ -0,0 +1,6 @@ +function _getPrototypeOf(t) { + return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, _getPrototypeOf(t); +} +export { _getPrototypeOf as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/identity.js b/node_modules/@babel/runtime/helpers/esm/identity.js new file mode 100644 index 0000000..6b564ac --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/identity.js @@ -0,0 +1,4 @@ +function _identity(t) { + return t; +} +export { _identity as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js b/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js new file mode 100644 index 0000000..6d35b52 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js @@ -0,0 +1,27 @@ +function _importDeferProxy(e) { + var t = null, + constValue = function constValue(e) { + return function () { + return e; + }; + }, + proxy = function proxy(r) { + return function (n, o, f) { + return null === t && (t = e()), r(t, o, f); + }; + }; + return new Proxy({}, { + defineProperty: constValue(!1), + deleteProperty: constValue(!1), + get: proxy(Reflect.get), + getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), + getPrototypeOf: constValue(null), + isExtensible: constValue(!1), + has: proxy(Reflect.has), + ownKeys: proxy(Reflect.ownKeys), + preventExtensions: constValue(!0), + set: constValue(!1), + setPrototypeOf: constValue(!1) + }); +} +export { _importDeferProxy as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/inherits.js b/node_modules/@babel/runtime/helpers/esm/inherits.js new file mode 100644 index 0000000..78f6e4e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/inherits.js @@ -0,0 +1,14 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +function _inherits(t, e) { + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + writable: !0, + configurable: !0 + } + }), Object.defineProperty(t, "prototype", { + writable: !1 + }), e && setPrototypeOf(t, e); +} +export { _inherits as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js b/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js new file mode 100644 index 0000000..0bd1330 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js @@ -0,0 +1,5 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +function _inheritsLoose(t, o) { + t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); +} +export { _inheritsLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js new file mode 100644 index 0000000..68bcc2c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js @@ -0,0 +1,9 @@ +function _initializerDefineProperty(e, i, r, l) { + r && Object.defineProperty(e, i, { + enumerable: r.enumerable, + configurable: r.configurable, + writable: r.writable, + value: r.initializer ? r.initializer.call(l) : void 0 + }); +} +export { _initializerDefineProperty as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js new file mode 100644 index 0000000..0a658e3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js @@ -0,0 +1,4 @@ +function _initializerWarningHelper(r, e) { + throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); +} +export { _initializerWarningHelper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/instanceof.js b/node_modules/@babel/runtime/helpers/esm/instanceof.js new file mode 100644 index 0000000..316539e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/instanceof.js @@ -0,0 +1,4 @@ +function _instanceof(n, e) { + return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; +} +export { _instanceof as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js new file mode 100644 index 0000000..365d248 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js @@ -0,0 +1,6 @@ +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { + "default": e + }; +} +export { _interopRequireDefault as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js new file mode 100644 index 0000000..e190f1e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js @@ -0,0 +1,27 @@ +import _typeof from "./typeof.js"; +function _getRequireWildcardCache(e) { + if ("function" != typeof WeakMap) return null; + var r = new WeakMap(), + t = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { + return e ? t : r; + })(e); +} +function _interopRequireWildcard(e, r) { + if (!r && e && e.__esModule) return e; + if (null === e || "object" != _typeof(e) && "function" != typeof e) return { + "default": e + }; + var t = _getRequireWildcardCache(r); + if (t && t.has(e)) return t.get(e); + var n = { + __proto__: null + }, + a = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { + var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; + i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; + } + return n["default"] = e, t && t.set(e, n), n; +} +export { _interopRequireWildcard as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js b/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js new file mode 100644 index 0000000..0cfe276 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js @@ -0,0 +1,8 @@ +function _isNativeFunction(t) { + try { + return -1 !== Function.toString.call(t).indexOf("[native code]"); + } catch (n) { + return "function" == typeof t; + } +} +export { _isNativeFunction as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js new file mode 100644 index 0000000..0eb5e39 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js @@ -0,0 +1,9 @@ +function _isNativeReflectConstruct() { + try { + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); +} +export { _isNativeReflectConstruct as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArray.js b/node_modules/@babel/runtime/helpers/esm/iterableToArray.js new file mode 100644 index 0000000..b7de339 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/iterableToArray.js @@ -0,0 +1,4 @@ +function _iterableToArray(r) { + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); +} +export { _iterableToArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js new file mode 100644 index 0000000..473f067 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js @@ -0,0 +1,28 @@ +function _iterableToArrayLimit(r, l) { + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (null != t) { + var e, + n, + i, + u, + a = [], + f = !0, + o = !1; + try { + if (i = (t = t.call(r)).next, 0 === l) { + if (Object(t) !== t) return; + f = !1; + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); + } catch (r) { + o = !0, n = r; + } finally { + try { + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; + } finally { + if (o) throw n; + } + } + return a; + } +} +export { _iterableToArrayLimit as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/jsx.js b/node_modules/@babel/runtime/helpers/esm/jsx.js new file mode 100644 index 0000000..a120e5b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/jsx.js @@ -0,0 +1,22 @@ +var REACT_ELEMENT_TYPE; +function _createRawReactElement(e, r, E, l) { + REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); + var o = e && e.defaultProps, + n = arguments.length - 3; + if (r || 0 === n || (r = { + children: void 0 + }), 1 === n) r.children = l;else if (n > 1) { + for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; + r.children = t; + } + if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); + return { + $$typeof: REACT_ELEMENT_TYPE, + type: e, + key: void 0 === E ? null : "" + E, + ref: null, + props: r, + _owner: null + }; +} +export { _createRawReactElement as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js b/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js new file mode 100644 index 0000000..527c682 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js @@ -0,0 +1,9 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +function _maybeArrayLike(r, a, e) { + if (a && !Array.isArray(a) && "number" == typeof a.length) { + var y = a.length; + return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); + } + return r(a, e); +} +export { _maybeArrayLike as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js b/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js new file mode 100644 index 0000000..5f70e0d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js @@ -0,0 +1,4 @@ +function _newArrowCheck(n, r) { + if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); +} +export { _newArrowCheck as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js b/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js new file mode 100644 index 0000000..9050250 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js @@ -0,0 +1,4 @@ +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _nonIterableRest as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js new file mode 100644 index 0000000..fb03235 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js @@ -0,0 +1,4 @@ +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +export { _nonIterableSpread as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js b/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js new file mode 100644 index 0000000..d8c3060 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js @@ -0,0 +1,4 @@ +function _nullishReceiverError(r) { + throw new TypeError("Cannot set property of null or undefined."); +} +export { _nullishReceiverError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js new file mode 100644 index 0000000..a92eac8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js @@ -0,0 +1,4 @@ +function _objectDestructuringEmpty(t) { + if (null == t) throw new TypeError("Cannot destructure " + t); +} +export { _objectDestructuringEmpty as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread.js b/node_modules/@babel/runtime/helpers/esm/objectSpread.js new file mode 100644 index 0000000..0f82f06 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectSpread.js @@ -0,0 +1,14 @@ +import defineProperty from "./defineProperty.js"; +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? Object(arguments[r]) : {}, + o = Object.keys(t); + "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), o.forEach(function (r) { + defineProperty(e, r, t[r]); + }); + } + return e; +} +export { _objectSpread as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread2.js b/node_modules/@babel/runtime/helpers/esm/objectSpread2.js new file mode 100644 index 0000000..0035bc7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectSpread2.js @@ -0,0 +1,23 @@ +import defineProperty from "./defineProperty.js"; +function ownKeys(e, r) { + var t = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(e); + r && (o = o.filter(function (r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; + })), t.push.apply(t, o); + } + return t; +} +function _objectSpread2(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { + defineProperty(e, r, t[r]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); + }); + } + return e; +} +export { _objectSpread2 as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js new file mode 100644 index 0000000..c5e7cf2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js @@ -0,0 +1,13 @@ +import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; +function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = objectWithoutPropertiesLoose(e, t); + if (Object.getOwnPropertySymbols) { + var s = Object.getOwnPropertySymbols(e); + for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); + } + return i; +} +export { _objectWithoutProperties as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js new file mode 100644 index 0000000..b203b43 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js @@ -0,0 +1,10 @@ +function _objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + for (var n in r) if ({}.hasOwnProperty.call(r, n)) { + if (e.includes(n)) continue; + t[n] = r[n]; + } + return t; +} +export { _objectWithoutPropertiesLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/package.json b/node_modules/@babel/runtime/helpers/esm/package.json new file mode 100644 index 0000000..aead43d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js new file mode 100644 index 0000000..d84e1e6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js @@ -0,0 +1,8 @@ +import _typeof from "./typeof.js"; +import assertThisInitialized from "./assertThisInitialized.js"; +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); + return assertThisInitialized(t); +} +export { _possibleConstructorReturn as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/readOnlyError.js b/node_modules/@babel/runtime/helpers/esm/readOnlyError.js new file mode 100644 index 0000000..fcc3e33 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/readOnlyError.js @@ -0,0 +1,4 @@ +function _readOnlyError(r) { + throw new TypeError('"' + r + '" is read-only'); +} +export { _readOnlyError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js b/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js new file mode 100644 index 0000000..19c78cd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js @@ -0,0 +1,304 @@ +import _typeof from "./typeof.js"; +function _regeneratorRuntime() { + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ + _regeneratorRuntime = function _regeneratorRuntime() { + return e; + }; + var t, + e = {}, + r = Object.prototype, + n = r.hasOwnProperty, + o = Object.defineProperty || function (t, e, r) { + t[e] = r.value; + }, + i = "function" == typeof Symbol ? Symbol : {}, + a = i.iterator || "@@iterator", + c = i.asyncIterator || "@@asyncIterator", + u = i.toStringTag || "@@toStringTag"; + function define(t, e, r) { + return Object.defineProperty(t, e, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }), t[e]; + } + try { + define({}, ""); + } catch (t) { + define = function define(t, e, r) { + return t[e] = r; + }; + } + function wrap(t, e, r, n) { + var i = e && e.prototype instanceof Generator ? e : Generator, + a = Object.create(i.prototype), + c = new Context(n || []); + return o(a, "_invoke", { + value: makeInvokeMethod(t, r, c) + }), a; + } + function tryCatch(t, e, r) { + try { + return { + type: "normal", + arg: t.call(e, r) + }; + } catch (t) { + return { + type: "throw", + arg: t + }; + } + } + e.wrap = wrap; + var h = "suspendedStart", + l = "suspendedYield", + f = "executing", + s = "completed", + y = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var p = {}; + define(p, a, function () { + return this; + }); + var d = Object.getPrototypeOf, + v = d && d(d(values([]))); + v && v !== r && n.call(v, a) && (p = v); + var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); + function defineIteratorMethods(t) { + ["next", "throw", "return"].forEach(function (e) { + define(t, e, function (t) { + return this._invoke(e, t); + }); + }); + } + function AsyncIterator(t, e) { + function invoke(r, o, i, a) { + var c = tryCatch(t[r], t, o); + if ("throw" !== c.type) { + var u = c.arg, + h = u.value; + return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { + invoke("next", t, i, a); + }, function (t) { + invoke("throw", t, i, a); + }) : e.resolve(h).then(function (t) { + u.value = t, i(u); + }, function (t) { + return invoke("throw", t, i, a); + }); + } + a(c.arg); + } + var r; + o(this, "_invoke", { + value: function value(t, n) { + function callInvokeWithMethodAndArg() { + return new e(function (e, r) { + invoke(t, n, e, r); + }); + } + return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + }); + } + function makeInvokeMethod(e, r, n) { + var o = h; + return function (i, a) { + if (o === f) throw Error("Generator is already running"); + if (o === s) { + if ("throw" === i) throw a; + return { + value: t, + done: !0 + }; + } + for (n.method = i, n.arg = a;;) { + var c = n.delegate; + if (c) { + var u = maybeInvokeDelegate(c, n); + if (u) { + if (u === y) continue; + return u; + } + } + if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { + if (o === h) throw o = s, n.arg; + n.dispatchException(n.arg); + } else "return" === n.method && n.abrupt("return", n.arg); + o = f; + var p = tryCatch(e, r, n); + if ("normal" === p.type) { + if (o = n.done ? s : l, p.arg === y) continue; + return { + value: p.arg, + done: n.done + }; + } + "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); + } + }; + } + function maybeInvokeDelegate(e, r) { + var n = r.method, + o = e.iterator[n]; + if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; + var i = tryCatch(o, e.iterator, r.arg); + if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; + var a = i.arg; + return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); + } + function pushTryEntry(t) { + var e = { + tryLoc: t[0] + }; + 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); + } + function resetTryEntry(t) { + var e = t.completion || {}; + e.type = "normal", delete e.arg, t.completion = e; + } + function Context(t) { + this.tryEntries = [{ + tryLoc: "root" + }], t.forEach(pushTryEntry, this), this.reset(!0); + } + function values(e) { + if (e || "" === e) { + var r = e[a]; + if (r) return r.call(e); + if ("function" == typeof e.next) return e; + if (!isNaN(e.length)) { + var o = -1, + i = function next() { + for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; + return next.value = t, next.done = !0, next; + }; + return i.next = i; + } + } + throw new TypeError(_typeof(e) + " is not iterable"); + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { + value: GeneratorFunctionPrototype, + configurable: !0 + }), o(GeneratorFunctionPrototype, "constructor", { + value: GeneratorFunction, + configurable: !0 + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { + var e = "function" == typeof t && t.constructor; + return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); + }, e.mark = function (t) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; + }, e.awrap = function (t) { + return { + __await: t + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { + return this; + }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { + void 0 === i && (i = Promise); + var a = new AsyncIterator(wrap(t, r, n, o), i); + return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { + return t.done ? t.value : a.next(); + }); + }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { + return this; + }), define(g, "toString", function () { + return "[object Generator]"; + }), e.keys = function (t) { + var e = Object(t), + r = []; + for (var n in e) r.push(n); + return r.reverse(), function next() { + for (; r.length;) { + var t = r.pop(); + if (t in e) return next.value = t, next.done = !1, next; + } + return next.done = !0, next; + }; + }, e.values = values, Context.prototype = { + constructor: Context, + reset: function reset(e) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); + }, + stop: function stop() { + this.done = !0; + var t = this.tryEntries[0].completion; + if ("throw" === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function dispatchException(e) { + if (this.done) throw e; + var r = this; + function handle(n, o) { + return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; + } + for (var o = this.tryEntries.length - 1; o >= 0; --o) { + var i = this.tryEntries[o], + a = i.completion; + if ("root" === i.tryLoc) return handle("end"); + if (i.tryLoc <= this.prev) { + var c = n.call(i, "catchLoc"), + u = n.call(i, "finallyLoc"); + if (c && u) { + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); + } else if (c) { + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); + } else { + if (!u) throw Error("try statement without catch or finally"); + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); + } + } + } + }, + abrupt: function abrupt(t, e) { + for (var r = this.tryEntries.length - 1; r >= 0; --r) { + var o = this.tryEntries[r]; + if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { + var i = o; + break; + } + } + i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); + var a = i ? i.completion : {}; + return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); + }, + complete: function complete(t, e) { + if ("throw" === t.type) throw t.arg; + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; + }, + finish: function finish(t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var r = this.tryEntries[e]; + if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; + } + }, + "catch": function _catch(t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var r = this.tryEntries[e]; + if (r.tryLoc === t) { + var n = r.completion; + if ("throw" === n.type) { + var o = n.arg; + resetTryEntry(r); + } + return o; + } + } + throw Error("illegal catch attempt"); + }, + delegateYield: function delegateYield(e, r, n) { + return this.delegate = { + iterator: values(e), + resultName: r, + nextLoc: n + }, "next" === this.method && (this.arg = t), y; + } + }, e; +} +export { _regeneratorRuntime as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/set.js b/node_modules/@babel/runtime/helpers/esm/set.js new file mode 100644 index 0000000..ed0a803 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/set.js @@ -0,0 +1,22 @@ +import superPropBase from "./superPropBase.js"; +import defineProperty from "./defineProperty.js"; +function set(e, r, t, o) { + return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { + var f, + i = superPropBase(e, r); + if (i) { + if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; + if (!f.writable) return !1; + } + if (f = Object.getOwnPropertyDescriptor(o, r)) { + if (!f.writable) return !1; + f.value = t, Object.defineProperty(o, r, f); + } else defineProperty(o, r, t); + return !0; + }, set(e, r, t, o); +} +function _set(e, r, t, o, f) { + if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); + return t; +} +export { _set as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/setFunctionName.js b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js new file mode 100644 index 0000000..82213ce --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js @@ -0,0 +1,12 @@ +import _typeof from "./typeof.js"; +function setFunctionName(e, t, n) { + "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); + try { + Object.defineProperty(e, "name", { + configurable: !0, + value: n ? n + " " + t : t + }); + } catch (e) {} + return e; +} +export { setFunctionName as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js new file mode 100644 index 0000000..c30983c --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js @@ -0,0 +1,6 @@ +function _setPrototypeOf(t, e) { + return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { + return t.__proto__ = e, t; + }, _setPrototypeOf(t, e); +} +export { _setPrototypeOf as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js b/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js new file mode 100644 index 0000000..41d5738 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js @@ -0,0 +1,7 @@ +function _skipFirstGeneratorNext(t) { + return function () { + var r = t.apply(this, arguments); + return r.next(), r; + }; +} +export { _skipFirstGeneratorNext as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/slicedToArray.js b/node_modules/@babel/runtime/helpers/esm/slicedToArray.js new file mode 100644 index 0000000..c044c2a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/slicedToArray.js @@ -0,0 +1,8 @@ +import arrayWithHoles from "./arrayWithHoles.js"; +import iterableToArrayLimit from "./iterableToArrayLimit.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableRest from "./nonIterableRest.js"; +function _slicedToArray(r, e) { + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); +} +export { _slicedToArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/superPropBase.js b/node_modules/@babel/runtime/helpers/esm/superPropBase.js new file mode 100644 index 0000000..a5fa386 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/superPropBase.js @@ -0,0 +1,6 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +function _superPropBase(t, o) { + for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); + return t; +} +export { _superPropBase as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/superPropGet.js b/node_modules/@babel/runtime/helpers/esm/superPropGet.js new file mode 100644 index 0000000..b2b60a8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/superPropGet.js @@ -0,0 +1,9 @@ +import get from "./get.js"; +import getPrototypeOf from "./getPrototypeOf.js"; +function _superPropGet(t, o, e, r) { + var p = get(getPrototypeOf(1 & r ? t.prototype : t), o, e); + return 2 & r && "function" == typeof p ? function (t) { + return p.apply(e, t); + } : p; +} +export { _superPropGet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/superPropSet.js b/node_modules/@babel/runtime/helpers/esm/superPropSet.js new file mode 100644 index 0000000..e182f38 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/superPropSet.js @@ -0,0 +1,6 @@ +import set from "./set.js"; +import getPrototypeOf from "./getPrototypeOf.js"; +function _superPropSet(t, e, o, r, p, f) { + return set(getPrototypeOf(f ? t.prototype : t), e, o, r, p); +} +export { _superPropSet as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js new file mode 100644 index 0000000..3d842cd --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js @@ -0,0 +1,8 @@ +function _taggedTemplateLiteral(e, t) { + return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { + raw: { + value: Object.freeze(t) + } + })); +} +export { _taggedTemplateLiteral as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js new file mode 100644 index 0000000..741aeb8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js @@ -0,0 +1,4 @@ +function _taggedTemplateLiteralLoose(e, t) { + return t || (t = e.slice(0)), e.raw = t, e; +} +export { _taggedTemplateLiteralLoose as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/tdz.js b/node_modules/@babel/runtime/helpers/esm/tdz.js new file mode 100644 index 0000000..58df493 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/tdz.js @@ -0,0 +1,4 @@ +function _tdzError(e) { + throw new ReferenceError(e + " is not defined - temporal dead zone"); +} +export { _tdzError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/temporalRef.js b/node_modules/@babel/runtime/helpers/esm/temporalRef.js new file mode 100644 index 0000000..8dbf014 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/temporalRef.js @@ -0,0 +1,6 @@ +import temporalUndefined from "./temporalUndefined.js"; +import tdz from "./tdz.js"; +function _temporalRef(r, e) { + return r === temporalUndefined ? tdz(e) : r; +} +export { _temporalRef as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js b/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js new file mode 100644 index 0000000..2ec0b0d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js @@ -0,0 +1,2 @@ +function _temporalUndefined() {} +export { _temporalUndefined as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toArray.js b/node_modules/@babel/runtime/helpers/esm/toArray.js new file mode 100644 index 0000000..e5f0f52 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/toArray.js @@ -0,0 +1,8 @@ +import arrayWithHoles from "./arrayWithHoles.js"; +import iterableToArray from "./iterableToArray.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableRest from "./nonIterableRest.js"; +function _toArray(r) { + return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest(); +} +export { _toArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js b/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js new file mode 100644 index 0000000..f7338e4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js @@ -0,0 +1,8 @@ +import arrayWithoutHoles from "./arrayWithoutHoles.js"; +import iterableToArray from "./iterableToArray.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableSpread from "./nonIterableSpread.js"; +function _toConsumableArray(r) { + return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); +} +export { _toConsumableArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toPrimitive.js b/node_modules/@babel/runtime/helpers/esm/toPrimitive.js new file mode 100644 index 0000000..9a3de46 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/toPrimitive.js @@ -0,0 +1,12 @@ +import _typeof from "./typeof.js"; +function toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); +} +export { toPrimitive as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js b/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js new file mode 100644 index 0000000..b3274d8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js @@ -0,0 +1,7 @@ +import _typeof from "./typeof.js"; +import toPrimitive from "./toPrimitive.js"; +function toPropertyKey(t) { + var i = toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; +} +export { toPropertyKey as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/toSetter.js b/node_modules/@babel/runtime/helpers/esm/toSetter.js new file mode 100644 index 0000000..b1dbf7a --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/toSetter.js @@ -0,0 +1,10 @@ +function _toSetter(t, e, n) { + e || (e = []); + var r = e.length++; + return Object.defineProperty({}, "_", { + set: function set(o) { + e[r] = o, t.apply(n, e); + } + }); +} +export { _toSetter as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/typeof.js b/node_modules/@babel/runtime/helpers/esm/typeof.js new file mode 100644 index 0000000..5b0bc9b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/typeof.js @@ -0,0 +1,10 @@ +function _typeof(o) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { + return typeof o; + } : function (o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, _typeof(o); +} +export { _typeof as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js b/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js new file mode 100644 index 0000000..33adc49 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js @@ -0,0 +1,9 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +function _unsupportedIterableToArray(r, a) { + if (r) { + if ("string" == typeof r) return arrayLikeToArray(r, a); + var t = {}.toString.call(r).slice(8, -1); + return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; + } +} +export { _unsupportedIterableToArray as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/using.js b/node_modules/@babel/runtime/helpers/esm/using.js new file mode 100644 index 0000000..9bda17b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/using.js @@ -0,0 +1,12 @@ +function _using(o, n, e) { + if (null == n) return n; + if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); + if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; + if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); + return o.push({ + v: n, + d: r, + a: e + }), n; +} +export { _using as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/usingCtx.js b/node_modules/@babel/runtime/helpers/esm/usingCtx.js new file mode 100644 index 0000000..1464379 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/usingCtx.js @@ -0,0 +1,59 @@ +function _usingCtx() { + var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) { + var n = Error(); + return n.name = "SuppressedError", n.error = r, n.suppressed = e, n; + }, + e = {}, + n = []; + function using(r, e) { + if (null != e) { + if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); + if (r) var o = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; + if (void 0 === o && (o = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o; + if ("function" != typeof o) throw new TypeError("Object is not disposable."); + t && (o = function o() { + try { + t.call(e); + } catch (r) { + return Promise.reject(r); + } + }), n.push({ + v: e, + d: o, + a: r + }); + } else r && n.push({ + d: e, + a: r + }); + return e; + } + return { + e: e, + u: using.bind(null, !1), + a: using.bind(null, !0), + d: function d() { + var o, + t = this.e, + s = 0; + function next() { + for (; o = n.pop();) try { + if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next); + if (o.d) { + var r = o.d.call(o.v); + if (o.a) return s |= 2, Promise.resolve(r).then(next, err); + } else s |= 1; + } catch (r) { + return err(r); + } + if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve(); + if (t !== e) throw t; + } + function err(n) { + return t = t !== e ? new r(n, t) : n, next(); + } + return next(); + } + }; +} +export { _usingCtx as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js new file mode 100644 index 0000000..ffeea5d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js @@ -0,0 +1,69 @@ +import OverloadYield from "./OverloadYield.js"; +function _wrapAsyncGenerator(e) { + return function () { + return new AsyncGenerator(e.apply(this, arguments)); + }; +} +function AsyncGenerator(e) { + var r, t; + function resume(r, t) { + try { + var n = e[r](t), + o = n.value, + u = o instanceof OverloadYield; + Promise.resolve(u ? o.v : o).then(function (t) { + if (u) { + var i = "return" === r ? "return" : "next"; + if (!o.k || t.done) return resume(i, t); + t = e[i](t).value; + } + settle(n.done ? "return" : "normal", t); + }, function (e) { + resume("throw", e); + }); + } catch (e) { + settle("throw", e); + } + } + function settle(e, n) { + switch (e) { + case "return": + r.resolve({ + value: n, + done: !0 + }); + break; + case "throw": + r.reject(n); + break; + default: + r.resolve({ + value: n, + done: !1 + }); + } + (r = r.next) ? resume(r.key, r.arg) : t = null; + } + this._invoke = function (e, n) { + return new Promise(function (o, u) { + var i = { + key: e, + arg: n, + resolve: o, + reject: u, + next: null + }; + t ? t = t.next = i : (r = t = i, resume(e, n)); + }); + }, "function" != typeof e["return"] && (this["return"] = void 0); +} +AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { + return this; +}, AsyncGenerator.prototype.next = function (e) { + return this._invoke("next", e); +}, AsyncGenerator.prototype["throw"] = function (e) { + return this._invoke("throw", e); +}, AsyncGenerator.prototype["return"] = function (e) { + return this._invoke("return", e); +}; +export { _wrapAsyncGenerator as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js new file mode 100644 index 0000000..15bf78f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js @@ -0,0 +1,27 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import setPrototypeOf from "./setPrototypeOf.js"; +import isNativeFunction from "./isNativeFunction.js"; +import construct from "./construct.js"; +function _wrapNativeSuper(t) { + var r = "function" == typeof Map ? new Map() : void 0; + return _wrapNativeSuper = function _wrapNativeSuper(t) { + if (null === t || !isNativeFunction(t)) return t; + if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); + if (void 0 !== r) { + if (r.has(t)) return r.get(t); + r.set(t, Wrapper); + } + function Wrapper() { + return construct(t, arguments, getPrototypeOf(this).constructor); + } + return Wrapper.prototype = Object.create(t.prototype, { + constructor: { + value: Wrapper, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), setPrototypeOf(Wrapper, t); + }, _wrapNativeSuper(t); +} +export { _wrapNativeSuper as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js b/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js new file mode 100644 index 0000000..ecf821e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js @@ -0,0 +1,51 @@ +import _typeof from "./typeof.js"; +import setPrototypeOf from "./setPrototypeOf.js"; +import inherits from "./inherits.js"; +function _wrapRegExp() { + _wrapRegExp = function _wrapRegExp(e, r) { + return new BabelRegExp(e, void 0, r); + }; + var e = RegExp.prototype, + r = new WeakMap(); + function BabelRegExp(e, t, p) { + var o = RegExp(e, t); + return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); + } + function buildGroups(e, t) { + var p = r.get(t); + return Object.keys(p).reduce(function (r, t) { + var o = p[t]; + if ("number" == typeof o) r[t] = e[o];else { + for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; + r[t] = e[o[i]]; + } + return r; + }, Object.create(null)); + } + return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { + var t = e.exec.call(this, r); + if (t) { + t.groups = buildGroups(t, this); + var p = t.indices; + p && (p.groups = buildGroups(p, this)); + } + return t; + }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { + if ("string" == typeof p) { + var o = r.get(this); + return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { + var t = o[r]; + return "$" + (Array.isArray(t) ? t.join("$") : t); + })); + } + if ("function" == typeof p) { + var i = this; + return e[Symbol.replace].call(this, t, function () { + var e = arguments; + return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); + }); + } + return e[Symbol.replace].call(this, t, p); + }, _wrapRegExp.apply(this, arguments); +} +export { _wrapRegExp as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js b/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js new file mode 100644 index 0000000..250c286 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js @@ -0,0 +1,4 @@ +function _writeOnlyError(r) { + throw new TypeError('"' + r + '" is write-only'); +} +export { _writeOnlyError as default }; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/extends.js b/node_modules/@babel/runtime/helpers/extends.js new file mode 100644 index 0000000..eee4a1f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/extends.js @@ -0,0 +1,10 @@ +function _extends() { + return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); + } + return n; + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); +} +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/get.js b/node_modules/@babel/runtime/helpers/get.js new file mode 100644 index 0000000..15428de --- /dev/null +++ b/node_modules/@babel/runtime/helpers/get.js @@ -0,0 +1,11 @@ +var superPropBase = require("./superPropBase.js"); +function _get() { + return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { + var p = superPropBase(e, t); + if (p) { + var n = Object.getOwnPropertyDescriptor(p, t); + return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; + } + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); +} +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/getPrototypeOf.js new file mode 100644 index 0000000..9070748 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/getPrototypeOf.js @@ -0,0 +1,6 @@ +function _getPrototypeOf(t) { + return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); +} +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/identity.js b/node_modules/@babel/runtime/helpers/identity.js new file mode 100644 index 0000000..54de5b5 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/identity.js @@ -0,0 +1,4 @@ +function _identity(t) { + return t; +} +module.exports = _identity, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/importDeferProxy.js b/node_modules/@babel/runtime/helpers/importDeferProxy.js new file mode 100644 index 0000000..cffaae6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/importDeferProxy.js @@ -0,0 +1,27 @@ +function _importDeferProxy(e) { + var t = null, + constValue = function constValue(e) { + return function () { + return e; + }; + }, + proxy = function proxy(r) { + return function (n, o, f) { + return null === t && (t = e()), r(t, o, f); + }; + }; + return new Proxy({}, { + defineProperty: constValue(!1), + deleteProperty: constValue(!1), + get: proxy(Reflect.get), + getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), + getPrototypeOf: constValue(null), + isExtensible: constValue(!1), + has: proxy(Reflect.has), + ownKeys: proxy(Reflect.ownKeys), + preventExtensions: constValue(!0), + set: constValue(!1), + setPrototypeOf: constValue(!1) + }); +} +module.exports = _importDeferProxy, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/inherits.js b/node_modules/@babel/runtime/helpers/inherits.js new file mode 100644 index 0000000..715a78e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/inherits.js @@ -0,0 +1,14 @@ +var setPrototypeOf = require("./setPrototypeOf.js"); +function _inherits(t, e) { + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + writable: !0, + configurable: !0 + } + }), Object.defineProperty(t, "prototype", { + writable: !1 + }), e && setPrototypeOf(t, e); +} +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/inheritsLoose.js b/node_modules/@babel/runtime/helpers/inheritsLoose.js new file mode 100644 index 0000000..a27baf0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/inheritsLoose.js @@ -0,0 +1,5 @@ +var setPrototypeOf = require("./setPrototypeOf.js"); +function _inheritsLoose(t, o) { + t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); +} +module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/initializerDefineProperty.js new file mode 100644 index 0000000..f9fa317 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/initializerDefineProperty.js @@ -0,0 +1,9 @@ +function _initializerDefineProperty(e, i, r, l) { + r && Object.defineProperty(e, i, { + enumerable: r.enumerable, + configurable: r.configurable, + writable: r.writable, + value: r.initializer ? r.initializer.call(l) : void 0 + }); +} +module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/initializerWarningHelper.js new file mode 100644 index 0000000..e14ce59 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/initializerWarningHelper.js @@ -0,0 +1,4 @@ +function _initializerWarningHelper(r, e) { + throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); +} +module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/instanceof.js b/node_modules/@babel/runtime/helpers/instanceof.js new file mode 100644 index 0000000..9952301 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/instanceof.js @@ -0,0 +1,4 @@ +function _instanceof(n, e) { + return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; +} +module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/interopRequireDefault.js new file mode 100644 index 0000000..6944715 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/interopRequireDefault.js @@ -0,0 +1,6 @@ +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { + "default": e + }; +} +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/interopRequireWildcard.js new file mode 100644 index 0000000..41411cc --- /dev/null +++ b/node_modules/@babel/runtime/helpers/interopRequireWildcard.js @@ -0,0 +1,27 @@ +var _typeof = require("./typeof.js")["default"]; +function _getRequireWildcardCache(e) { + if ("function" != typeof WeakMap) return null; + var r = new WeakMap(), + t = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { + return e ? t : r; + })(e); +} +function _interopRequireWildcard(e, r) { + if (!r && e && e.__esModule) return e; + if (null === e || "object" != _typeof(e) && "function" != typeof e) return { + "default": e + }; + var t = _getRequireWildcardCache(r); + if (t && t.has(e)) return t.get(e); + var n = { + __proto__: null + }, + a = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { + var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; + i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; + } + return n["default"] = e, t && t.set(e, n), n; +} +module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/isNativeFunction.js b/node_modules/@babel/runtime/helpers/isNativeFunction.js new file mode 100644 index 0000000..f0eb49e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/isNativeFunction.js @@ -0,0 +1,8 @@ +function _isNativeFunction(t) { + try { + return -1 !== Function.toString.call(t).indexOf("[native code]"); + } catch (n) { + return "function" == typeof t; + } +} +module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js new file mode 100644 index 0000000..b677e10 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js @@ -0,0 +1,9 @@ +function _isNativeReflectConstruct() { + try { + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); +} +module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/iterableToArray.js b/node_modules/@babel/runtime/helpers/iterableToArray.js new file mode 100644 index 0000000..c839a32 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/iterableToArray.js @@ -0,0 +1,4 @@ +function _iterableToArray(r) { + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); +} +module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js new file mode 100644 index 0000000..2671778 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js @@ -0,0 +1,28 @@ +function _iterableToArrayLimit(r, l) { + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (null != t) { + var e, + n, + i, + u, + a = [], + f = !0, + o = !1; + try { + if (i = (t = t.call(r)).next, 0 === l) { + if (Object(t) !== t) return; + f = !1; + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); + } catch (r) { + o = !0, n = r; + } finally { + try { + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; + } finally { + if (o) throw n; + } + } + return a; + } +} +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/jsx.js b/node_modules/@babel/runtime/helpers/jsx.js new file mode 100644 index 0000000..3415eea --- /dev/null +++ b/node_modules/@babel/runtime/helpers/jsx.js @@ -0,0 +1,22 @@ +var REACT_ELEMENT_TYPE; +function _createRawReactElement(e, r, E, l) { + REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); + var o = e && e.defaultProps, + n = arguments.length - 3; + if (r || 0 === n || (r = { + children: void 0 + }), 1 === n) r.children = l;else if (n > 1) { + for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; + r.children = t; + } + if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); + return { + $$typeof: REACT_ELEMENT_TYPE, + type: e, + key: void 0 === E ? null : "" + E, + ref: null, + props: r, + _owner: null + }; +} +module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/maybeArrayLike.js b/node_modules/@babel/runtime/helpers/maybeArrayLike.js new file mode 100644 index 0000000..9873cc7 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/maybeArrayLike.js @@ -0,0 +1,9 @@ +var arrayLikeToArray = require("./arrayLikeToArray.js"); +function _maybeArrayLike(r, a, e) { + if (a && !Array.isArray(a) && "number" == typeof a.length) { + var y = a.length; + return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); + } + return r(a, e); +} +module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/newArrowCheck.js b/node_modules/@babel/runtime/helpers/newArrowCheck.js new file mode 100644 index 0000000..8e74d99 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/newArrowCheck.js @@ -0,0 +1,4 @@ +function _newArrowCheck(n, r) { + if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); +} +module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/nonIterableRest.js b/node_modules/@babel/runtime/helpers/nonIterableRest.js new file mode 100644 index 0000000..95265ba --- /dev/null +++ b/node_modules/@babel/runtime/helpers/nonIterableRest.js @@ -0,0 +1,4 @@ +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/nonIterableSpread.js new file mode 100644 index 0000000..3fcf23f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/nonIterableSpread.js @@ -0,0 +1,4 @@ +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/nullishReceiverError.js b/node_modules/@babel/runtime/helpers/nullishReceiverError.js new file mode 100644 index 0000000..970e023 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/nullishReceiverError.js @@ -0,0 +1,4 @@ +function _nullishReceiverError(r) { + throw new TypeError("Cannot set property of null or undefined."); +} +module.exports = _nullishReceiverError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js new file mode 100644 index 0000000..9f62a1b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js @@ -0,0 +1,4 @@ +function _objectDestructuringEmpty(t) { + if (null == t) throw new TypeError("Cannot destructure " + t); +} +module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectSpread.js b/node_modules/@babel/runtime/helpers/objectSpread.js new file mode 100644 index 0000000..a367643 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/objectSpread.js @@ -0,0 +1,14 @@ +var defineProperty = require("./defineProperty.js"); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? Object(arguments[r]) : {}, + o = Object.keys(t); + "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), o.forEach(function (r) { + defineProperty(e, r, t[r]); + }); + } + return e; +} +module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectSpread2.js b/node_modules/@babel/runtime/helpers/objectSpread2.js new file mode 100644 index 0000000..4f3b9fa --- /dev/null +++ b/node_modules/@babel/runtime/helpers/objectSpread2.js @@ -0,0 +1,23 @@ +var defineProperty = require("./defineProperty.js"); +function ownKeys(e, r) { + var t = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(e); + r && (o = o.filter(function (r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; + })), t.push.apply(t, o); + } + return t; +} +function _objectSpread2(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { + defineProperty(e, r, t[r]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); + }); + } + return e; +} +module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/objectWithoutProperties.js new file mode 100644 index 0000000..6482b98 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/objectWithoutProperties.js @@ -0,0 +1,13 @@ +var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); +function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = objectWithoutPropertiesLoose(e, t); + if (Object.getOwnPropertySymbols) { + var s = Object.getOwnPropertySymbols(e); + for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); + } + return i; +} +module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js new file mode 100644 index 0000000..2465e3b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js @@ -0,0 +1,10 @@ +function _objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + for (var n in r) if ({}.hasOwnProperty.call(r, n)) { + if (e.includes(n)) continue; + t[n] = r[n]; + } + return t; +} +module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js new file mode 100644 index 0000000..06e6e6d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js @@ -0,0 +1,8 @@ +var _typeof = require("./typeof.js")["default"]; +var assertThisInitialized = require("./assertThisInitialized.js"); +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); + return assertThisInitialized(t); +} +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/readOnlyError.js b/node_modules/@babel/runtime/helpers/readOnlyError.js new file mode 100644 index 0000000..1bf3e09 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/readOnlyError.js @@ -0,0 +1,4 @@ +function _readOnlyError(r) { + throw new TypeError('"' + r + '" is read-only'); +} +module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/regeneratorRuntime.js b/node_modules/@babel/runtime/helpers/regeneratorRuntime.js new file mode 100644 index 0000000..f33e494 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/regeneratorRuntime.js @@ -0,0 +1,304 @@ +var _typeof = require("./typeof.js")["default"]; +function _regeneratorRuntime() { + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { + return e; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + var t, + e = {}, + r = Object.prototype, + n = r.hasOwnProperty, + o = Object.defineProperty || function (t, e, r) { + t[e] = r.value; + }, + i = "function" == typeof Symbol ? Symbol : {}, + a = i.iterator || "@@iterator", + c = i.asyncIterator || "@@asyncIterator", + u = i.toStringTag || "@@toStringTag"; + function define(t, e, r) { + return Object.defineProperty(t, e, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }), t[e]; + } + try { + define({}, ""); + } catch (t) { + define = function define(t, e, r) { + return t[e] = r; + }; + } + function wrap(t, e, r, n) { + var i = e && e.prototype instanceof Generator ? e : Generator, + a = Object.create(i.prototype), + c = new Context(n || []); + return o(a, "_invoke", { + value: makeInvokeMethod(t, r, c) + }), a; + } + function tryCatch(t, e, r) { + try { + return { + type: "normal", + arg: t.call(e, r) + }; + } catch (t) { + return { + type: "throw", + arg: t + }; + } + } + e.wrap = wrap; + var h = "suspendedStart", + l = "suspendedYield", + f = "executing", + s = "completed", + y = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var p = {}; + define(p, a, function () { + return this; + }); + var d = Object.getPrototypeOf, + v = d && d(d(values([]))); + v && v !== r && n.call(v, a) && (p = v); + var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); + function defineIteratorMethods(t) { + ["next", "throw", "return"].forEach(function (e) { + define(t, e, function (t) { + return this._invoke(e, t); + }); + }); + } + function AsyncIterator(t, e) { + function invoke(r, o, i, a) { + var c = tryCatch(t[r], t, o); + if ("throw" !== c.type) { + var u = c.arg, + h = u.value; + return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { + invoke("next", t, i, a); + }, function (t) { + invoke("throw", t, i, a); + }) : e.resolve(h).then(function (t) { + u.value = t, i(u); + }, function (t) { + return invoke("throw", t, i, a); + }); + } + a(c.arg); + } + var r; + o(this, "_invoke", { + value: function value(t, n) { + function callInvokeWithMethodAndArg() { + return new e(function (e, r) { + invoke(t, n, e, r); + }); + } + return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); + } + }); + } + function makeInvokeMethod(e, r, n) { + var o = h; + return function (i, a) { + if (o === f) throw Error("Generator is already running"); + if (o === s) { + if ("throw" === i) throw a; + return { + value: t, + done: !0 + }; + } + for (n.method = i, n.arg = a;;) { + var c = n.delegate; + if (c) { + var u = maybeInvokeDelegate(c, n); + if (u) { + if (u === y) continue; + return u; + } + } + if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { + if (o === h) throw o = s, n.arg; + n.dispatchException(n.arg); + } else "return" === n.method && n.abrupt("return", n.arg); + o = f; + var p = tryCatch(e, r, n); + if ("normal" === p.type) { + if (o = n.done ? s : l, p.arg === y) continue; + return { + value: p.arg, + done: n.done + }; + } + "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); + } + }; + } + function maybeInvokeDelegate(e, r) { + var n = r.method, + o = e.iterator[n]; + if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; + var i = tryCatch(o, e.iterator, r.arg); + if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; + var a = i.arg; + return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); + } + function pushTryEntry(t) { + var e = { + tryLoc: t[0] + }; + 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); + } + function resetTryEntry(t) { + var e = t.completion || {}; + e.type = "normal", delete e.arg, t.completion = e; + } + function Context(t) { + this.tryEntries = [{ + tryLoc: "root" + }], t.forEach(pushTryEntry, this), this.reset(!0); + } + function values(e) { + if (e || "" === e) { + var r = e[a]; + if (r) return r.call(e); + if ("function" == typeof e.next) return e; + if (!isNaN(e.length)) { + var o = -1, + i = function next() { + for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; + return next.value = t, next.done = !0, next; + }; + return i.next = i; + } + } + throw new TypeError(_typeof(e) + " is not iterable"); + } + return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { + value: GeneratorFunctionPrototype, + configurable: !0 + }), o(GeneratorFunctionPrototype, "constructor", { + value: GeneratorFunction, + configurable: !0 + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { + var e = "function" == typeof t && t.constructor; + return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); + }, e.mark = function (t) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; + }, e.awrap = function (t) { + return { + __await: t + }; + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { + return this; + }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { + void 0 === i && (i = Promise); + var a = new AsyncIterator(wrap(t, r, n, o), i); + return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { + return t.done ? t.value : a.next(); + }); + }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { + return this; + }), define(g, "toString", function () { + return "[object Generator]"; + }), e.keys = function (t) { + var e = Object(t), + r = []; + for (var n in e) r.push(n); + return r.reverse(), function next() { + for (; r.length;) { + var t = r.pop(); + if (t in e) return next.value = t, next.done = !1, next; + } + return next.done = !0, next; + }; + }, e.values = values, Context.prototype = { + constructor: Context, + reset: function reset(e) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); + }, + stop: function stop() { + this.done = !0; + var t = this.tryEntries[0].completion; + if ("throw" === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function dispatchException(e) { + if (this.done) throw e; + var r = this; + function handle(n, o) { + return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; + } + for (var o = this.tryEntries.length - 1; o >= 0; --o) { + var i = this.tryEntries[o], + a = i.completion; + if ("root" === i.tryLoc) return handle("end"); + if (i.tryLoc <= this.prev) { + var c = n.call(i, "catchLoc"), + u = n.call(i, "finallyLoc"); + if (c && u) { + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); + } else if (c) { + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); + } else { + if (!u) throw Error("try statement without catch or finally"); + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); + } + } + } + }, + abrupt: function abrupt(t, e) { + for (var r = this.tryEntries.length - 1; r >= 0; --r) { + var o = this.tryEntries[r]; + if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { + var i = o; + break; + } + } + i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); + var a = i ? i.completion : {}; + return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); + }, + complete: function complete(t, e) { + if ("throw" === t.type) throw t.arg; + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; + }, + finish: function finish(t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var r = this.tryEntries[e]; + if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; + } + }, + "catch": function _catch(t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var r = this.tryEntries[e]; + if (r.tryLoc === t) { + var n = r.completion; + if ("throw" === n.type) { + var o = n.arg; + resetTryEntry(r); + } + return o; + } + } + throw Error("illegal catch attempt"); + }, + delegateYield: function delegateYield(e, r, n) { + return this.delegate = { + iterator: values(e), + resultName: r, + nextLoc: n + }, "next" === this.method && (this.arg = t), y; + } + }, e; +} +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/set.js b/node_modules/@babel/runtime/helpers/set.js new file mode 100644 index 0000000..6421470 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/set.js @@ -0,0 +1,22 @@ +var superPropBase = require("./superPropBase.js"); +var defineProperty = require("./defineProperty.js"); +function set(e, r, t, o) { + return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { + var f, + i = superPropBase(e, r); + if (i) { + if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; + if (!f.writable) return !1; + } + if (f = Object.getOwnPropertyDescriptor(o, r)) { + if (!f.writable) return !1; + f.value = t, Object.defineProperty(o, r, f); + } else defineProperty(o, r, t); + return !0; + }, set(e, r, t, o); +} +function _set(e, r, t, o, f) { + if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); + return t; +} +module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/setFunctionName.js b/node_modules/@babel/runtime/helpers/setFunctionName.js new file mode 100644 index 0000000..9664076 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/setFunctionName.js @@ -0,0 +1,12 @@ +var _typeof = require("./typeof.js")["default"]; +function setFunctionName(e, t, n) { + "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); + try { + Object.defineProperty(e, "name", { + configurable: !0, + value: n ? n + " " + t : t + }); + } catch (e) {} + return e; +} +module.exports = setFunctionName, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/setPrototypeOf.js new file mode 100644 index 0000000..7d991ff --- /dev/null +++ b/node_modules/@babel/runtime/helpers/setPrototypeOf.js @@ -0,0 +1,6 @@ +function _setPrototypeOf(t, e) { + return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { + return t.__proto__ = e, t; + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); +} +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js b/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js new file mode 100644 index 0000000..2aed548 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js @@ -0,0 +1,7 @@ +function _skipFirstGeneratorNext(t) { + return function () { + var r = t.apply(this, arguments); + return r.next(), r; + }; +} +module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/slicedToArray.js b/node_modules/@babel/runtime/helpers/slicedToArray.js new file mode 100644 index 0000000..3d752c4 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/slicedToArray.js @@ -0,0 +1,8 @@ +var arrayWithHoles = require("./arrayWithHoles.js"); +var iterableToArrayLimit = require("./iterableToArrayLimit.js"); +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +var nonIterableRest = require("./nonIterableRest.js"); +function _slicedToArray(r, e) { + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); +} +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/superPropBase.js b/node_modules/@babel/runtime/helpers/superPropBase.js new file mode 100644 index 0000000..5cad459 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/superPropBase.js @@ -0,0 +1,6 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +function _superPropBase(t, o) { + for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); + return t; +} +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/superPropGet.js b/node_modules/@babel/runtime/helpers/superPropGet.js new file mode 100644 index 0000000..baf8b10 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/superPropGet.js @@ -0,0 +1,9 @@ +var get = require("./get.js"); +var getPrototypeOf = require("./getPrototypeOf.js"); +function _superPropGet(t, o, e, r) { + var p = get(getPrototypeOf(1 & r ? t.prototype : t), o, e); + return 2 & r && "function" == typeof p ? function (t) { + return p.apply(e, t); + } : p; +} +module.exports = _superPropGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/superPropSet.js b/node_modules/@babel/runtime/helpers/superPropSet.js new file mode 100644 index 0000000..e0578c0 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/superPropSet.js @@ -0,0 +1,6 @@ +var set = require("./set.js"); +var getPrototypeOf = require("./getPrototypeOf.js"); +function _superPropSet(t, e, o, r, p, f) { + return set(getPrototypeOf(f ? t.prototype : t), e, o, r, p); +} +module.exports = _superPropSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js b/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js new file mode 100644 index 0000000..38d6065 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js @@ -0,0 +1,8 @@ +function _taggedTemplateLiteral(e, t) { + return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { + raw: { + value: Object.freeze(t) + } + })); +} +module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js new file mode 100644 index 0000000..2f8c146 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js @@ -0,0 +1,4 @@ +function _taggedTemplateLiteralLoose(e, t) { + return t || (t = e.slice(0)), e.raw = t, e; +} +module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/tdz.js b/node_modules/@babel/runtime/helpers/tdz.js new file mode 100644 index 0000000..c66f476 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/tdz.js @@ -0,0 +1,4 @@ +function _tdzError(e) { + throw new ReferenceError(e + " is not defined - temporal dead zone"); +} +module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/temporalRef.js b/node_modules/@babel/runtime/helpers/temporalRef.js new file mode 100644 index 0000000..54c9190 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/temporalRef.js @@ -0,0 +1,6 @@ +var temporalUndefined = require("./temporalUndefined.js"); +var tdz = require("./tdz.js"); +function _temporalRef(r, e) { + return r === temporalUndefined ? tdz(e) : r; +} +module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/temporalUndefined.js b/node_modules/@babel/runtime/helpers/temporalUndefined.js new file mode 100644 index 0000000..f8def80 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/temporalUndefined.js @@ -0,0 +1,2 @@ +function _temporalUndefined() {} +module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toArray.js b/node_modules/@babel/runtime/helpers/toArray.js new file mode 100644 index 0000000..2be1d2b --- /dev/null +++ b/node_modules/@babel/runtime/helpers/toArray.js @@ -0,0 +1,8 @@ +var arrayWithHoles = require("./arrayWithHoles.js"); +var iterableToArray = require("./iterableToArray.js"); +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +var nonIterableRest = require("./nonIterableRest.js"); +function _toArray(r) { + return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest(); +} +module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toConsumableArray.js b/node_modules/@babel/runtime/helpers/toConsumableArray.js new file mode 100644 index 0000000..698f9c6 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/toConsumableArray.js @@ -0,0 +1,8 @@ +var arrayWithoutHoles = require("./arrayWithoutHoles.js"); +var iterableToArray = require("./iterableToArray.js"); +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); +var nonIterableSpread = require("./nonIterableSpread.js"); +function _toConsumableArray(r) { + return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); +} +module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toPrimitive.js b/node_modules/@babel/runtime/helpers/toPrimitive.js new file mode 100644 index 0000000..ef9d249 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/toPrimitive.js @@ -0,0 +1,12 @@ +var _typeof = require("./typeof.js")["default"]; +function toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); +} +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toPropertyKey.js b/node_modules/@babel/runtime/helpers/toPropertyKey.js new file mode 100644 index 0000000..3ca3d4f --- /dev/null +++ b/node_modules/@babel/runtime/helpers/toPropertyKey.js @@ -0,0 +1,7 @@ +var _typeof = require("./typeof.js")["default"]; +var toPrimitive = require("./toPrimitive.js"); +function toPropertyKey(t) { + var i = toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; +} +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/toSetter.js b/node_modules/@babel/runtime/helpers/toSetter.js new file mode 100644 index 0000000..e0012a8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/toSetter.js @@ -0,0 +1,10 @@ +function _toSetter(t, e, n) { + e || (e = []); + var r = e.length++; + return Object.defineProperty({}, "_", { + set: function set(o) { + e[r] = o, t.apply(n, e); + } + }); +} +module.exports = _toSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/typeof.js b/node_modules/@babel/runtime/helpers/typeof.js new file mode 100644 index 0000000..b6fbfaf --- /dev/null +++ b/node_modules/@babel/runtime/helpers/typeof.js @@ -0,0 +1,10 @@ +function _typeof(o) { + "@babel/helpers - typeof"; + + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { + return typeof o; + } : function (o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); +} +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js b/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js new file mode 100644 index 0000000..8fb1a71 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js @@ -0,0 +1,9 @@ +var arrayLikeToArray = require("./arrayLikeToArray.js"); +function _unsupportedIterableToArray(r, a) { + if (r) { + if ("string" == typeof r) return arrayLikeToArray(r, a); + var t = {}.toString.call(r).slice(8, -1); + return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; + } +} +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/using.js b/node_modules/@babel/runtime/helpers/using.js new file mode 100644 index 0000000..37c79e2 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/using.js @@ -0,0 +1,12 @@ +function _using(o, n, e) { + if (null == n) return n; + if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); + if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; + if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); + return o.push({ + v: n, + d: r, + a: e + }), n; +} +module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/usingCtx.js b/node_modules/@babel/runtime/helpers/usingCtx.js new file mode 100644 index 0000000..652ab15 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/usingCtx.js @@ -0,0 +1,59 @@ +function _usingCtx() { + var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) { + var n = Error(); + return n.name = "SuppressedError", n.error = r, n.suppressed = e, n; + }, + e = {}, + n = []; + function using(r, e) { + if (null != e) { + if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); + if (r) var o = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; + if (void 0 === o && (o = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o; + if ("function" != typeof o) throw new TypeError("Object is not disposable."); + t && (o = function o() { + try { + t.call(e); + } catch (r) { + return Promise.reject(r); + } + }), n.push({ + v: e, + d: o, + a: r + }); + } else r && n.push({ + d: e, + a: r + }); + return e; + } + return { + e: e, + u: using.bind(null, !1), + a: using.bind(null, !0), + d: function d() { + var o, + t = this.e, + s = 0; + function next() { + for (; o = n.pop();) try { + if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next); + if (o.d) { + var r = o.d.call(o.v); + if (o.a) return s |= 2, Promise.resolve(r).then(next, err); + } else s |= 1; + } catch (r) { + return err(r); + } + if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve(); + if (t !== e) throw t; + } + function err(n) { + return t = t !== e ? new r(n, t) : n, next(); + } + return next(); + } + }; +} +module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js new file mode 100644 index 0000000..b818e2e --- /dev/null +++ b/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js @@ -0,0 +1,69 @@ +var OverloadYield = require("./OverloadYield.js"); +function _wrapAsyncGenerator(e) { + return function () { + return new AsyncGenerator(e.apply(this, arguments)); + }; +} +function AsyncGenerator(e) { + var r, t; + function resume(r, t) { + try { + var n = e[r](t), + o = n.value, + u = o instanceof OverloadYield; + Promise.resolve(u ? o.v : o).then(function (t) { + if (u) { + var i = "return" === r ? "return" : "next"; + if (!o.k || t.done) return resume(i, t); + t = e[i](t).value; + } + settle(n.done ? "return" : "normal", t); + }, function (e) { + resume("throw", e); + }); + } catch (e) { + settle("throw", e); + } + } + function settle(e, n) { + switch (e) { + case "return": + r.resolve({ + value: n, + done: !0 + }); + break; + case "throw": + r.reject(n); + break; + default: + r.resolve({ + value: n, + done: !1 + }); + } + (r = r.next) ? resume(r.key, r.arg) : t = null; + } + this._invoke = function (e, n) { + return new Promise(function (o, u) { + var i = { + key: e, + arg: n, + resolve: o, + reject: u, + next: null + }; + t ? t = t.next = i : (r = t = i, resume(e, n)); + }); + }, "function" != typeof e["return"] && (this["return"] = void 0); +} +AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { + return this; +}, AsyncGenerator.prototype.next = function (e) { + return this._invoke("next", e); +}, AsyncGenerator.prototype["throw"] = function (e) { + return this._invoke("throw", e); +}, AsyncGenerator.prototype["return"] = function (e) { + return this._invoke("return", e); +}; +module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/wrapNativeSuper.js new file mode 100644 index 0000000..acd87ab --- /dev/null +++ b/node_modules/@babel/runtime/helpers/wrapNativeSuper.js @@ -0,0 +1,27 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +var setPrototypeOf = require("./setPrototypeOf.js"); +var isNativeFunction = require("./isNativeFunction.js"); +var construct = require("./construct.js"); +function _wrapNativeSuper(t) { + var r = "function" == typeof Map ? new Map() : void 0; + return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { + if (null === t || !isNativeFunction(t)) return t; + if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); + if (void 0 !== r) { + if (r.has(t)) return r.get(t); + r.set(t, Wrapper); + } + function Wrapper() { + return construct(t, arguments, getPrototypeOf(this).constructor); + } + return Wrapper.prototype = Object.create(t.prototype, { + constructor: { + value: Wrapper, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), setPrototypeOf(Wrapper, t); + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); +} +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/wrapRegExp.js b/node_modules/@babel/runtime/helpers/wrapRegExp.js new file mode 100644 index 0000000..c527168 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/wrapRegExp.js @@ -0,0 +1,51 @@ +var _typeof = require("./typeof.js")["default"]; +var setPrototypeOf = require("./setPrototypeOf.js"); +var inherits = require("./inherits.js"); +function _wrapRegExp() { + module.exports = _wrapRegExp = function _wrapRegExp(e, r) { + return new BabelRegExp(e, void 0, r); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + var e = RegExp.prototype, + r = new WeakMap(); + function BabelRegExp(e, t, p) { + var o = RegExp(e, t); + return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); + } + function buildGroups(e, t) { + var p = r.get(t); + return Object.keys(p).reduce(function (r, t) { + var o = p[t]; + if ("number" == typeof o) r[t] = e[o];else { + for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; + r[t] = e[o[i]]; + } + return r; + }, Object.create(null)); + } + return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { + var t = e.exec.call(this, r); + if (t) { + t.groups = buildGroups(t, this); + var p = t.indices; + p && (p.groups = buildGroups(p, this)); + } + return t; + }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { + if ("string" == typeof p) { + var o = r.get(this); + return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { + var t = o[r]; + return "$" + (Array.isArray(t) ? t.join("$") : t); + })); + } + if ("function" == typeof p) { + var i = this; + return e[Symbol.replace].call(this, t, function () { + var e = arguments; + return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); + }); + } + return e[Symbol.replace].call(this, t, p); + }, _wrapRegExp.apply(this, arguments); +} +module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/writeOnlyError.js b/node_modules/@babel/runtime/helpers/writeOnlyError.js new file mode 100644 index 0000000..c98ee82 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/writeOnlyError.js @@ -0,0 +1,4 @@ +function _writeOnlyError(r) { + throw new TypeError('"' + r + '" is write-only'); +} +module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/node_modules/@babel/runtime/package.json b/node_modules/@babel/runtime/package.json new file mode 100644 index 0000000..c51dfb8 --- /dev/null +++ b/node_modules/@babel/runtime/package.json @@ -0,0 +1,1088 @@ +{ + "_from": "@babel/runtime@^7.17.2", + "_id": "@babel/runtime@7.26.0", + "_inBundle": false, + "_integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==", + "_location": "/@babel/runtime", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "@babel/runtime@^7.17.2", + "name": "@babel/runtime", + "escapedName": "@babel%2fruntime", + "scope": "@babel", + "rawSpec": "^7.17.2", + "saveSpec": null, + "fetchSpec": "^7.17.2" + }, + "_requiredBy": [ + "/vconsole" + ], + "_resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.26.0.tgz", + "_shasum": "8600c2f595f277c60815256418b85356a65173c1", + "_spec": "@babel/runtime@^7.17.2", + "_where": "D:\\work\\tourGuide\\node_modules\\vconsole", + "author": { + "name": "The Babel Team", + "url": "https://babel.dev/team" + }, + "bugs": { + "url": "https://github.com/babel/babel/issues" + }, + "bundleDependencies": false, + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "deprecated": false, + "description": "babel's modular runtime helpers", + "engines": { + "node": ">=6.9.0" + }, + "exports": { + "./helpers/OverloadYield": [ + { + "node": "./helpers/OverloadYield.js", + "import": "./helpers/esm/OverloadYield.js", + "default": "./helpers/OverloadYield.js" + }, + "./helpers/OverloadYield.js" + ], + "./helpers/esm/OverloadYield": "./helpers/esm/OverloadYield.js", + "./helpers/applyDecoratedDescriptor": [ + { + "node": "./helpers/applyDecoratedDescriptor.js", + "import": "./helpers/esm/applyDecoratedDescriptor.js", + "default": "./helpers/applyDecoratedDescriptor.js" + }, + "./helpers/applyDecoratedDescriptor.js" + ], + "./helpers/esm/applyDecoratedDescriptor": "./helpers/esm/applyDecoratedDescriptor.js", + "./helpers/applyDecs2311": [ + { + "node": "./helpers/applyDecs2311.js", + "import": "./helpers/esm/applyDecs2311.js", + "default": "./helpers/applyDecs2311.js" + }, + "./helpers/applyDecs2311.js" + ], + "./helpers/esm/applyDecs2311": "./helpers/esm/applyDecs2311.js", + "./helpers/arrayLikeToArray": [ + { + "node": "./helpers/arrayLikeToArray.js", + "import": "./helpers/esm/arrayLikeToArray.js", + "default": "./helpers/arrayLikeToArray.js" + }, + "./helpers/arrayLikeToArray.js" + ], + "./helpers/esm/arrayLikeToArray": "./helpers/esm/arrayLikeToArray.js", + "./helpers/arrayWithHoles": [ + { + "node": "./helpers/arrayWithHoles.js", + "import": "./helpers/esm/arrayWithHoles.js", + "default": "./helpers/arrayWithHoles.js" + }, + "./helpers/arrayWithHoles.js" + ], + "./helpers/esm/arrayWithHoles": "./helpers/esm/arrayWithHoles.js", + "./helpers/arrayWithoutHoles": [ + { + "node": "./helpers/arrayWithoutHoles.js", + "import": "./helpers/esm/arrayWithoutHoles.js", + "default": "./helpers/arrayWithoutHoles.js" + }, + "./helpers/arrayWithoutHoles.js" + ], + "./helpers/esm/arrayWithoutHoles": "./helpers/esm/arrayWithoutHoles.js", + "./helpers/assertClassBrand": [ + { + "node": "./helpers/assertClassBrand.js", + "import": "./helpers/esm/assertClassBrand.js", + "default": "./helpers/assertClassBrand.js" + }, + "./helpers/assertClassBrand.js" + ], + "./helpers/esm/assertClassBrand": "./helpers/esm/assertClassBrand.js", + "./helpers/assertThisInitialized": [ + { + "node": "./helpers/assertThisInitialized.js", + "import": "./helpers/esm/assertThisInitialized.js", + "default": "./helpers/assertThisInitialized.js" + }, + "./helpers/assertThisInitialized.js" + ], + "./helpers/esm/assertThisInitialized": "./helpers/esm/assertThisInitialized.js", + "./helpers/asyncGeneratorDelegate": [ + { + "node": "./helpers/asyncGeneratorDelegate.js", + "import": "./helpers/esm/asyncGeneratorDelegate.js", + "default": "./helpers/asyncGeneratorDelegate.js" + }, + "./helpers/asyncGeneratorDelegate.js" + ], + "./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js", + "./helpers/asyncIterator": [ + { + "node": "./helpers/asyncIterator.js", + "import": "./helpers/esm/asyncIterator.js", + "default": "./helpers/asyncIterator.js" + }, + "./helpers/asyncIterator.js" + ], + "./helpers/esm/asyncIterator": "./helpers/esm/asyncIterator.js", + "./helpers/asyncToGenerator": [ + { + "node": "./helpers/asyncToGenerator.js", + "import": "./helpers/esm/asyncToGenerator.js", + "default": "./helpers/asyncToGenerator.js" + }, + "./helpers/asyncToGenerator.js" + ], + "./helpers/esm/asyncToGenerator": "./helpers/esm/asyncToGenerator.js", + "./helpers/awaitAsyncGenerator": [ + { + "node": "./helpers/awaitAsyncGenerator.js", + "import": "./helpers/esm/awaitAsyncGenerator.js", + "default": "./helpers/awaitAsyncGenerator.js" + }, + "./helpers/awaitAsyncGenerator.js" + ], + "./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js", + "./helpers/callSuper": [ + { + "node": "./helpers/callSuper.js", + "import": "./helpers/esm/callSuper.js", + "default": "./helpers/callSuper.js" + }, + "./helpers/callSuper.js" + ], + "./helpers/esm/callSuper": "./helpers/esm/callSuper.js", + "./helpers/checkInRHS": [ + { + "node": "./helpers/checkInRHS.js", + "import": "./helpers/esm/checkInRHS.js", + "default": "./helpers/checkInRHS.js" + }, + "./helpers/checkInRHS.js" + ], + "./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js", + "./helpers/checkPrivateRedeclaration": [ + { + "node": "./helpers/checkPrivateRedeclaration.js", + "import": "./helpers/esm/checkPrivateRedeclaration.js", + "default": "./helpers/checkPrivateRedeclaration.js" + }, + "./helpers/checkPrivateRedeclaration.js" + ], + "./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js", + "./helpers/classCallCheck": [ + { + "node": "./helpers/classCallCheck.js", + "import": "./helpers/esm/classCallCheck.js", + "default": "./helpers/classCallCheck.js" + }, + "./helpers/classCallCheck.js" + ], + "./helpers/esm/classCallCheck": "./helpers/esm/classCallCheck.js", + "./helpers/classNameTDZError": [ + { + "node": "./helpers/classNameTDZError.js", + "import": "./helpers/esm/classNameTDZError.js", + "default": "./helpers/classNameTDZError.js" + }, + "./helpers/classNameTDZError.js" + ], + "./helpers/esm/classNameTDZError": "./helpers/esm/classNameTDZError.js", + "./helpers/classPrivateFieldGet2": [ + { + "node": "./helpers/classPrivateFieldGet2.js", + "import": "./helpers/esm/classPrivateFieldGet2.js", + "default": "./helpers/classPrivateFieldGet2.js" + }, + "./helpers/classPrivateFieldGet2.js" + ], + "./helpers/esm/classPrivateFieldGet2": "./helpers/esm/classPrivateFieldGet2.js", + "./helpers/classPrivateFieldInitSpec": [ + { + "node": "./helpers/classPrivateFieldInitSpec.js", + "import": "./helpers/esm/classPrivateFieldInitSpec.js", + "default": "./helpers/classPrivateFieldInitSpec.js" + }, + "./helpers/classPrivateFieldInitSpec.js" + ], + "./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js", + "./helpers/classPrivateFieldLooseBase": [ + { + "node": "./helpers/classPrivateFieldLooseBase.js", + "import": "./helpers/esm/classPrivateFieldLooseBase.js", + "default": "./helpers/classPrivateFieldLooseBase.js" + }, + "./helpers/classPrivateFieldLooseBase.js" + ], + "./helpers/esm/classPrivateFieldLooseBase": "./helpers/esm/classPrivateFieldLooseBase.js", + "./helpers/classPrivateFieldLooseKey": [ + { + "node": "./helpers/classPrivateFieldLooseKey.js", + "import": "./helpers/esm/classPrivateFieldLooseKey.js", + "default": "./helpers/classPrivateFieldLooseKey.js" + }, + "./helpers/classPrivateFieldLooseKey.js" + ], + "./helpers/esm/classPrivateFieldLooseKey": "./helpers/esm/classPrivateFieldLooseKey.js", + "./helpers/classPrivateFieldSet2": [ + { + "node": "./helpers/classPrivateFieldSet2.js", + "import": "./helpers/esm/classPrivateFieldSet2.js", + "default": "./helpers/classPrivateFieldSet2.js" + }, + "./helpers/classPrivateFieldSet2.js" + ], + "./helpers/esm/classPrivateFieldSet2": "./helpers/esm/classPrivateFieldSet2.js", + "./helpers/classPrivateGetter": [ + { + "node": "./helpers/classPrivateGetter.js", + "import": "./helpers/esm/classPrivateGetter.js", + "default": "./helpers/classPrivateGetter.js" + }, + "./helpers/classPrivateGetter.js" + ], + "./helpers/esm/classPrivateGetter": "./helpers/esm/classPrivateGetter.js", + "./helpers/classPrivateMethodInitSpec": [ + { + "node": "./helpers/classPrivateMethodInitSpec.js", + "import": "./helpers/esm/classPrivateMethodInitSpec.js", + "default": "./helpers/classPrivateMethodInitSpec.js" + }, + "./helpers/classPrivateMethodInitSpec.js" + ], + "./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js", + "./helpers/classPrivateSetter": [ + { + "node": "./helpers/classPrivateSetter.js", + "import": "./helpers/esm/classPrivateSetter.js", + "default": "./helpers/classPrivateSetter.js" + }, + "./helpers/classPrivateSetter.js" + ], + "./helpers/esm/classPrivateSetter": "./helpers/esm/classPrivateSetter.js", + "./helpers/classStaticPrivateMethodGet": [ + { + "node": "./helpers/classStaticPrivateMethodGet.js", + "import": "./helpers/esm/classStaticPrivateMethodGet.js", + "default": "./helpers/classStaticPrivateMethodGet.js" + }, + "./helpers/classStaticPrivateMethodGet.js" + ], + "./helpers/esm/classStaticPrivateMethodGet": "./helpers/esm/classStaticPrivateMethodGet.js", + "./helpers/construct": [ + { + "node": "./helpers/construct.js", + "import": "./helpers/esm/construct.js", + "default": "./helpers/construct.js" + }, + "./helpers/construct.js" + ], + "./helpers/esm/construct": "./helpers/esm/construct.js", + "./helpers/createClass": [ + { + "node": "./helpers/createClass.js", + "import": "./helpers/esm/createClass.js", + "default": "./helpers/createClass.js" + }, + "./helpers/createClass.js" + ], + "./helpers/esm/createClass": "./helpers/esm/createClass.js", + "./helpers/createForOfIteratorHelper": [ + { + "node": "./helpers/createForOfIteratorHelper.js", + "import": "./helpers/esm/createForOfIteratorHelper.js", + "default": "./helpers/createForOfIteratorHelper.js" + }, + "./helpers/createForOfIteratorHelper.js" + ], + "./helpers/esm/createForOfIteratorHelper": "./helpers/esm/createForOfIteratorHelper.js", + "./helpers/createForOfIteratorHelperLoose": [ + { + "node": "./helpers/createForOfIteratorHelperLoose.js", + "import": "./helpers/esm/createForOfIteratorHelperLoose.js", + "default": "./helpers/createForOfIteratorHelperLoose.js" + }, + "./helpers/createForOfIteratorHelperLoose.js" + ], + "./helpers/esm/createForOfIteratorHelperLoose": "./helpers/esm/createForOfIteratorHelperLoose.js", + "./helpers/createSuper": [ + { + "node": "./helpers/createSuper.js", + "import": "./helpers/esm/createSuper.js", + "default": "./helpers/createSuper.js" + }, + "./helpers/createSuper.js" + ], + "./helpers/esm/createSuper": "./helpers/esm/createSuper.js", + "./helpers/decorate": [ + { + "node": "./helpers/decorate.js", + "import": "./helpers/esm/decorate.js", + "default": "./helpers/decorate.js" + }, + "./helpers/decorate.js" + ], + "./helpers/esm/decorate": "./helpers/esm/decorate.js", + "./helpers/defaults": [ + { + "node": "./helpers/defaults.js", + "import": "./helpers/esm/defaults.js", + "default": "./helpers/defaults.js" + }, + "./helpers/defaults.js" + ], + "./helpers/esm/defaults": "./helpers/esm/defaults.js", + "./helpers/defineAccessor": [ + { + "node": "./helpers/defineAccessor.js", + "import": "./helpers/esm/defineAccessor.js", + "default": "./helpers/defineAccessor.js" + }, + "./helpers/defineAccessor.js" + ], + "./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js", + "./helpers/defineProperty": [ + { + "node": "./helpers/defineProperty.js", + "import": "./helpers/esm/defineProperty.js", + "default": "./helpers/defineProperty.js" + }, + "./helpers/defineProperty.js" + ], + "./helpers/esm/defineProperty": "./helpers/esm/defineProperty.js", + "./helpers/extends": [ + { + "node": "./helpers/extends.js", + "import": "./helpers/esm/extends.js", + "default": "./helpers/extends.js" + }, + "./helpers/extends.js" + ], + "./helpers/esm/extends": "./helpers/esm/extends.js", + "./helpers/get": [ + { + "node": "./helpers/get.js", + "import": "./helpers/esm/get.js", + "default": "./helpers/get.js" + }, + "./helpers/get.js" + ], + "./helpers/esm/get": "./helpers/esm/get.js", + "./helpers/getPrototypeOf": [ + { + "node": "./helpers/getPrototypeOf.js", + "import": "./helpers/esm/getPrototypeOf.js", + "default": "./helpers/getPrototypeOf.js" + }, + "./helpers/getPrototypeOf.js" + ], + "./helpers/esm/getPrototypeOf": "./helpers/esm/getPrototypeOf.js", + "./helpers/identity": [ + { + "node": "./helpers/identity.js", + "import": "./helpers/esm/identity.js", + "default": "./helpers/identity.js" + }, + "./helpers/identity.js" + ], + "./helpers/esm/identity": "./helpers/esm/identity.js", + "./helpers/importDeferProxy": [ + { + "node": "./helpers/importDeferProxy.js", + "import": "./helpers/esm/importDeferProxy.js", + "default": "./helpers/importDeferProxy.js" + }, + "./helpers/importDeferProxy.js" + ], + "./helpers/esm/importDeferProxy": "./helpers/esm/importDeferProxy.js", + "./helpers/inherits": [ + { + "node": "./helpers/inherits.js", + "import": "./helpers/esm/inherits.js", + "default": "./helpers/inherits.js" + }, + "./helpers/inherits.js" + ], + "./helpers/esm/inherits": "./helpers/esm/inherits.js", + "./helpers/inheritsLoose": [ + { + "node": "./helpers/inheritsLoose.js", + "import": "./helpers/esm/inheritsLoose.js", + "default": "./helpers/inheritsLoose.js" + }, + "./helpers/inheritsLoose.js" + ], + "./helpers/esm/inheritsLoose": "./helpers/esm/inheritsLoose.js", + "./helpers/initializerDefineProperty": [ + { + "node": "./helpers/initializerDefineProperty.js", + "import": "./helpers/esm/initializerDefineProperty.js", + "default": "./helpers/initializerDefineProperty.js" + }, + "./helpers/initializerDefineProperty.js" + ], + "./helpers/esm/initializerDefineProperty": "./helpers/esm/initializerDefineProperty.js", + "./helpers/initializerWarningHelper": [ + { + "node": "./helpers/initializerWarningHelper.js", + "import": "./helpers/esm/initializerWarningHelper.js", + "default": "./helpers/initializerWarningHelper.js" + }, + "./helpers/initializerWarningHelper.js" + ], + "./helpers/esm/initializerWarningHelper": "./helpers/esm/initializerWarningHelper.js", + "./helpers/instanceof": [ + { + "node": "./helpers/instanceof.js", + "import": "./helpers/esm/instanceof.js", + "default": "./helpers/instanceof.js" + }, + "./helpers/instanceof.js" + ], + "./helpers/esm/instanceof": "./helpers/esm/instanceof.js", + "./helpers/interopRequireDefault": [ + { + "node": "./helpers/interopRequireDefault.js", + "import": "./helpers/esm/interopRequireDefault.js", + "default": "./helpers/interopRequireDefault.js" + }, + "./helpers/interopRequireDefault.js" + ], + "./helpers/esm/interopRequireDefault": "./helpers/esm/interopRequireDefault.js", + "./helpers/interopRequireWildcard": [ + { + "node": "./helpers/interopRequireWildcard.js", + "import": "./helpers/esm/interopRequireWildcard.js", + "default": "./helpers/interopRequireWildcard.js" + }, + "./helpers/interopRequireWildcard.js" + ], + "./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js", + "./helpers/isNativeFunction": [ + { + "node": "./helpers/isNativeFunction.js", + "import": "./helpers/esm/isNativeFunction.js", + "default": "./helpers/isNativeFunction.js" + }, + "./helpers/isNativeFunction.js" + ], + "./helpers/esm/isNativeFunction": "./helpers/esm/isNativeFunction.js", + "./helpers/isNativeReflectConstruct": [ + { + "node": "./helpers/isNativeReflectConstruct.js", + "import": "./helpers/esm/isNativeReflectConstruct.js", + "default": "./helpers/isNativeReflectConstruct.js" + }, + "./helpers/isNativeReflectConstruct.js" + ], + "./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js", + "./helpers/iterableToArray": [ + { + "node": "./helpers/iterableToArray.js", + "import": "./helpers/esm/iterableToArray.js", + "default": "./helpers/iterableToArray.js" + }, + "./helpers/iterableToArray.js" + ], + "./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js", + "./helpers/iterableToArrayLimit": [ + { + "node": "./helpers/iterableToArrayLimit.js", + "import": "./helpers/esm/iterableToArrayLimit.js", + "default": "./helpers/iterableToArrayLimit.js" + }, + "./helpers/iterableToArrayLimit.js" + ], + "./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js", + "./helpers/jsx": [ + { + "node": "./helpers/jsx.js", + "import": "./helpers/esm/jsx.js", + "default": "./helpers/jsx.js" + }, + "./helpers/jsx.js" + ], + "./helpers/esm/jsx": "./helpers/esm/jsx.js", + "./helpers/maybeArrayLike": [ + { + "node": "./helpers/maybeArrayLike.js", + "import": "./helpers/esm/maybeArrayLike.js", + "default": "./helpers/maybeArrayLike.js" + }, + "./helpers/maybeArrayLike.js" + ], + "./helpers/esm/maybeArrayLike": "./helpers/esm/maybeArrayLike.js", + "./helpers/newArrowCheck": [ + { + "node": "./helpers/newArrowCheck.js", + "import": "./helpers/esm/newArrowCheck.js", + "default": "./helpers/newArrowCheck.js" + }, + "./helpers/newArrowCheck.js" + ], + "./helpers/esm/newArrowCheck": "./helpers/esm/newArrowCheck.js", + "./helpers/nonIterableRest": [ + { + "node": "./helpers/nonIterableRest.js", + "import": "./helpers/esm/nonIterableRest.js", + "default": "./helpers/nonIterableRest.js" + }, + "./helpers/nonIterableRest.js" + ], + "./helpers/esm/nonIterableRest": "./helpers/esm/nonIterableRest.js", + "./helpers/nonIterableSpread": [ + { + "node": "./helpers/nonIterableSpread.js", + "import": "./helpers/esm/nonIterableSpread.js", + "default": "./helpers/nonIterableSpread.js" + }, + "./helpers/nonIterableSpread.js" + ], + "./helpers/esm/nonIterableSpread": "./helpers/esm/nonIterableSpread.js", + "./helpers/nullishReceiverError": [ + { + "node": "./helpers/nullishReceiverError.js", + "import": "./helpers/esm/nullishReceiverError.js", + "default": "./helpers/nullishReceiverError.js" + }, + "./helpers/nullishReceiverError.js" + ], + "./helpers/esm/nullishReceiverError": "./helpers/esm/nullishReceiverError.js", + "./helpers/objectDestructuringEmpty": [ + { + "node": "./helpers/objectDestructuringEmpty.js", + "import": "./helpers/esm/objectDestructuringEmpty.js", + "default": "./helpers/objectDestructuringEmpty.js" + }, + "./helpers/objectDestructuringEmpty.js" + ], + "./helpers/esm/objectDestructuringEmpty": "./helpers/esm/objectDestructuringEmpty.js", + "./helpers/objectSpread2": [ + { + "node": "./helpers/objectSpread2.js", + "import": "./helpers/esm/objectSpread2.js", + "default": "./helpers/objectSpread2.js" + }, + "./helpers/objectSpread2.js" + ], + "./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", + "./helpers/objectWithoutProperties": [ + { + "node": "./helpers/objectWithoutProperties.js", + "import": "./helpers/esm/objectWithoutProperties.js", + "default": "./helpers/objectWithoutProperties.js" + }, + "./helpers/objectWithoutProperties.js" + ], + "./helpers/esm/objectWithoutProperties": "./helpers/esm/objectWithoutProperties.js", + "./helpers/objectWithoutPropertiesLoose": [ + { + "node": "./helpers/objectWithoutPropertiesLoose.js", + "import": "./helpers/esm/objectWithoutPropertiesLoose.js", + "default": "./helpers/objectWithoutPropertiesLoose.js" + }, + "./helpers/objectWithoutPropertiesLoose.js" + ], + "./helpers/esm/objectWithoutPropertiesLoose": "./helpers/esm/objectWithoutPropertiesLoose.js", + "./helpers/possibleConstructorReturn": [ + { + "node": "./helpers/possibleConstructorReturn.js", + "import": "./helpers/esm/possibleConstructorReturn.js", + "default": "./helpers/possibleConstructorReturn.js" + }, + "./helpers/possibleConstructorReturn.js" + ], + "./helpers/esm/possibleConstructorReturn": "./helpers/esm/possibleConstructorReturn.js", + "./helpers/readOnlyError": [ + { + "node": "./helpers/readOnlyError.js", + "import": "./helpers/esm/readOnlyError.js", + "default": "./helpers/readOnlyError.js" + }, + "./helpers/readOnlyError.js" + ], + "./helpers/esm/readOnlyError": "./helpers/esm/readOnlyError.js", + "./helpers/regeneratorRuntime": [ + { + "node": "./helpers/regeneratorRuntime.js", + "import": "./helpers/esm/regeneratorRuntime.js", + "default": "./helpers/regeneratorRuntime.js" + }, + "./helpers/regeneratorRuntime.js" + ], + "./helpers/esm/regeneratorRuntime": "./helpers/esm/regeneratorRuntime.js", + "./helpers/set": [ + { + "node": "./helpers/set.js", + "import": "./helpers/esm/set.js", + "default": "./helpers/set.js" + }, + "./helpers/set.js" + ], + "./helpers/esm/set": "./helpers/esm/set.js", + "./helpers/setFunctionName": [ + { + "node": "./helpers/setFunctionName.js", + "import": "./helpers/esm/setFunctionName.js", + "default": "./helpers/setFunctionName.js" + }, + "./helpers/setFunctionName.js" + ], + "./helpers/esm/setFunctionName": "./helpers/esm/setFunctionName.js", + "./helpers/setPrototypeOf": [ + { + "node": "./helpers/setPrototypeOf.js", + "import": "./helpers/esm/setPrototypeOf.js", + "default": "./helpers/setPrototypeOf.js" + }, + "./helpers/setPrototypeOf.js" + ], + "./helpers/esm/setPrototypeOf": "./helpers/esm/setPrototypeOf.js", + "./helpers/skipFirstGeneratorNext": [ + { + "node": "./helpers/skipFirstGeneratorNext.js", + "import": "./helpers/esm/skipFirstGeneratorNext.js", + "default": "./helpers/skipFirstGeneratorNext.js" + }, + "./helpers/skipFirstGeneratorNext.js" + ], + "./helpers/esm/skipFirstGeneratorNext": "./helpers/esm/skipFirstGeneratorNext.js", + "./helpers/slicedToArray": [ + { + "node": "./helpers/slicedToArray.js", + "import": "./helpers/esm/slicedToArray.js", + "default": "./helpers/slicedToArray.js" + }, + "./helpers/slicedToArray.js" + ], + "./helpers/esm/slicedToArray": "./helpers/esm/slicedToArray.js", + "./helpers/superPropBase": [ + { + "node": "./helpers/superPropBase.js", + "import": "./helpers/esm/superPropBase.js", + "default": "./helpers/superPropBase.js" + }, + "./helpers/superPropBase.js" + ], + "./helpers/esm/superPropBase": "./helpers/esm/superPropBase.js", + "./helpers/superPropGet": [ + { + "node": "./helpers/superPropGet.js", + "import": "./helpers/esm/superPropGet.js", + "default": "./helpers/superPropGet.js" + }, + "./helpers/superPropGet.js" + ], + "./helpers/esm/superPropGet": "./helpers/esm/superPropGet.js", + "./helpers/superPropSet": [ + { + "node": "./helpers/superPropSet.js", + "import": "./helpers/esm/superPropSet.js", + "default": "./helpers/superPropSet.js" + }, + "./helpers/superPropSet.js" + ], + "./helpers/esm/superPropSet": "./helpers/esm/superPropSet.js", + "./helpers/taggedTemplateLiteral": [ + { + "node": "./helpers/taggedTemplateLiteral.js", + "import": "./helpers/esm/taggedTemplateLiteral.js", + "default": "./helpers/taggedTemplateLiteral.js" + }, + "./helpers/taggedTemplateLiteral.js" + ], + "./helpers/esm/taggedTemplateLiteral": "./helpers/esm/taggedTemplateLiteral.js", + "./helpers/taggedTemplateLiteralLoose": [ + { + "node": "./helpers/taggedTemplateLiteralLoose.js", + "import": "./helpers/esm/taggedTemplateLiteralLoose.js", + "default": "./helpers/taggedTemplateLiteralLoose.js" + }, + "./helpers/taggedTemplateLiteralLoose.js" + ], + "./helpers/esm/taggedTemplateLiteralLoose": "./helpers/esm/taggedTemplateLiteralLoose.js", + "./helpers/tdz": [ + { + "node": "./helpers/tdz.js", + "import": "./helpers/esm/tdz.js", + "default": "./helpers/tdz.js" + }, + "./helpers/tdz.js" + ], + "./helpers/esm/tdz": "./helpers/esm/tdz.js", + "./helpers/temporalRef": [ + { + "node": "./helpers/temporalRef.js", + "import": "./helpers/esm/temporalRef.js", + "default": "./helpers/temporalRef.js" + }, + "./helpers/temporalRef.js" + ], + "./helpers/esm/temporalRef": "./helpers/esm/temporalRef.js", + "./helpers/temporalUndefined": [ + { + "node": "./helpers/temporalUndefined.js", + "import": "./helpers/esm/temporalUndefined.js", + "default": "./helpers/temporalUndefined.js" + }, + "./helpers/temporalUndefined.js" + ], + "./helpers/esm/temporalUndefined": "./helpers/esm/temporalUndefined.js", + "./helpers/toArray": [ + { + "node": "./helpers/toArray.js", + "import": "./helpers/esm/toArray.js", + "default": "./helpers/toArray.js" + }, + "./helpers/toArray.js" + ], + "./helpers/esm/toArray": "./helpers/esm/toArray.js", + "./helpers/toConsumableArray": [ + { + "node": "./helpers/toConsumableArray.js", + "import": "./helpers/esm/toConsumableArray.js", + "default": "./helpers/toConsumableArray.js" + }, + "./helpers/toConsumableArray.js" + ], + "./helpers/esm/toConsumableArray": "./helpers/esm/toConsumableArray.js", + "./helpers/toPrimitive": [ + { + "node": "./helpers/toPrimitive.js", + "import": "./helpers/esm/toPrimitive.js", + "default": "./helpers/toPrimitive.js" + }, + "./helpers/toPrimitive.js" + ], + "./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js", + "./helpers/toPropertyKey": [ + { + "node": "./helpers/toPropertyKey.js", + "import": "./helpers/esm/toPropertyKey.js", + "default": "./helpers/toPropertyKey.js" + }, + "./helpers/toPropertyKey.js" + ], + "./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js", + "./helpers/toSetter": [ + { + "node": "./helpers/toSetter.js", + "import": "./helpers/esm/toSetter.js", + "default": "./helpers/toSetter.js" + }, + "./helpers/toSetter.js" + ], + "./helpers/esm/toSetter": "./helpers/esm/toSetter.js", + "./helpers/typeof": [ + { + "node": "./helpers/typeof.js", + "import": "./helpers/esm/typeof.js", + "default": "./helpers/typeof.js" + }, + "./helpers/typeof.js" + ], + "./helpers/esm/typeof": "./helpers/esm/typeof.js", + "./helpers/unsupportedIterableToArray": [ + { + "node": "./helpers/unsupportedIterableToArray.js", + "import": "./helpers/esm/unsupportedIterableToArray.js", + "default": "./helpers/unsupportedIterableToArray.js" + }, + "./helpers/unsupportedIterableToArray.js" + ], + "./helpers/esm/unsupportedIterableToArray": "./helpers/esm/unsupportedIterableToArray.js", + "./helpers/usingCtx": [ + { + "node": "./helpers/usingCtx.js", + "import": "./helpers/esm/usingCtx.js", + "default": "./helpers/usingCtx.js" + }, + "./helpers/usingCtx.js" + ], + "./helpers/esm/usingCtx": "./helpers/esm/usingCtx.js", + "./helpers/wrapAsyncGenerator": [ + { + "node": "./helpers/wrapAsyncGenerator.js", + "import": "./helpers/esm/wrapAsyncGenerator.js", + "default": "./helpers/wrapAsyncGenerator.js" + }, + "./helpers/wrapAsyncGenerator.js" + ], + "./helpers/esm/wrapAsyncGenerator": "./helpers/esm/wrapAsyncGenerator.js", + "./helpers/wrapNativeSuper": [ + { + "node": "./helpers/wrapNativeSuper.js", + "import": "./helpers/esm/wrapNativeSuper.js", + "default": "./helpers/wrapNativeSuper.js" + }, + "./helpers/wrapNativeSuper.js" + ], + "./helpers/esm/wrapNativeSuper": "./helpers/esm/wrapNativeSuper.js", + "./helpers/wrapRegExp": [ + { + "node": "./helpers/wrapRegExp.js", + "import": "./helpers/esm/wrapRegExp.js", + "default": "./helpers/wrapRegExp.js" + }, + "./helpers/wrapRegExp.js" + ], + "./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js", + "./helpers/writeOnlyError": [ + { + "node": "./helpers/writeOnlyError.js", + "import": "./helpers/esm/writeOnlyError.js", + "default": "./helpers/writeOnlyError.js" + }, + "./helpers/writeOnlyError.js" + ], + "./helpers/esm/writeOnlyError": "./helpers/esm/writeOnlyError.js", + "./helpers/AwaitValue": [ + { + "node": "./helpers/AwaitValue.js", + "import": "./helpers/esm/AwaitValue.js", + "default": "./helpers/AwaitValue.js" + }, + "./helpers/AwaitValue.js" + ], + "./helpers/esm/AwaitValue": "./helpers/esm/AwaitValue.js", + "./helpers/applyDecs": [ + { + "node": "./helpers/applyDecs.js", + "import": "./helpers/esm/applyDecs.js", + "default": "./helpers/applyDecs.js" + }, + "./helpers/applyDecs.js" + ], + "./helpers/esm/applyDecs": "./helpers/esm/applyDecs.js", + "./helpers/applyDecs2203": [ + { + "node": "./helpers/applyDecs2203.js", + "import": "./helpers/esm/applyDecs2203.js", + "default": "./helpers/applyDecs2203.js" + }, + "./helpers/applyDecs2203.js" + ], + "./helpers/esm/applyDecs2203": "./helpers/esm/applyDecs2203.js", + "./helpers/applyDecs2203R": [ + { + "node": "./helpers/applyDecs2203R.js", + "import": "./helpers/esm/applyDecs2203R.js", + "default": "./helpers/applyDecs2203R.js" + }, + "./helpers/applyDecs2203R.js" + ], + "./helpers/esm/applyDecs2203R": "./helpers/esm/applyDecs2203R.js", + "./helpers/applyDecs2301": [ + { + "node": "./helpers/applyDecs2301.js", + "import": "./helpers/esm/applyDecs2301.js", + "default": "./helpers/applyDecs2301.js" + }, + "./helpers/applyDecs2301.js" + ], + "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", + "./helpers/applyDecs2305": [ + { + "node": "./helpers/applyDecs2305.js", + "import": "./helpers/esm/applyDecs2305.js", + "default": "./helpers/applyDecs2305.js" + }, + "./helpers/applyDecs2305.js" + ], + "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", + "./helpers/classApplyDescriptorDestructureSet": [ + { + "node": "./helpers/classApplyDescriptorDestructureSet.js", + "import": "./helpers/esm/classApplyDescriptorDestructureSet.js", + "default": "./helpers/classApplyDescriptorDestructureSet.js" + }, + "./helpers/classApplyDescriptorDestructureSet.js" + ], + "./helpers/esm/classApplyDescriptorDestructureSet": "./helpers/esm/classApplyDescriptorDestructureSet.js", + "./helpers/classApplyDescriptorGet": [ + { + "node": "./helpers/classApplyDescriptorGet.js", + "import": "./helpers/esm/classApplyDescriptorGet.js", + "default": "./helpers/classApplyDescriptorGet.js" + }, + "./helpers/classApplyDescriptorGet.js" + ], + "./helpers/esm/classApplyDescriptorGet": "./helpers/esm/classApplyDescriptorGet.js", + "./helpers/classApplyDescriptorSet": [ + { + "node": "./helpers/classApplyDescriptorSet.js", + "import": "./helpers/esm/classApplyDescriptorSet.js", + "default": "./helpers/classApplyDescriptorSet.js" + }, + "./helpers/classApplyDescriptorSet.js" + ], + "./helpers/esm/classApplyDescriptorSet": "./helpers/esm/classApplyDescriptorSet.js", + "./helpers/classCheckPrivateStaticAccess": [ + { + "node": "./helpers/classCheckPrivateStaticAccess.js", + "import": "./helpers/esm/classCheckPrivateStaticAccess.js", + "default": "./helpers/classCheckPrivateStaticAccess.js" + }, + "./helpers/classCheckPrivateStaticAccess.js" + ], + "./helpers/esm/classCheckPrivateStaticAccess": "./helpers/esm/classCheckPrivateStaticAccess.js", + "./helpers/classCheckPrivateStaticFieldDescriptor": [ + { + "node": "./helpers/classCheckPrivateStaticFieldDescriptor.js", + "import": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", + "default": "./helpers/classCheckPrivateStaticFieldDescriptor.js" + }, + "./helpers/classCheckPrivateStaticFieldDescriptor.js" + ], + "./helpers/esm/classCheckPrivateStaticFieldDescriptor": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", + "./helpers/classExtractFieldDescriptor": [ + { + "node": "./helpers/classExtractFieldDescriptor.js", + "import": "./helpers/esm/classExtractFieldDescriptor.js", + "default": "./helpers/classExtractFieldDescriptor.js" + }, + "./helpers/classExtractFieldDescriptor.js" + ], + "./helpers/esm/classExtractFieldDescriptor": "./helpers/esm/classExtractFieldDescriptor.js", + "./helpers/classPrivateFieldDestructureSet": [ + { + "node": "./helpers/classPrivateFieldDestructureSet.js", + "import": "./helpers/esm/classPrivateFieldDestructureSet.js", + "default": "./helpers/classPrivateFieldDestructureSet.js" + }, + "./helpers/classPrivateFieldDestructureSet.js" + ], + "./helpers/esm/classPrivateFieldDestructureSet": "./helpers/esm/classPrivateFieldDestructureSet.js", + "./helpers/classPrivateFieldGet": [ + { + "node": "./helpers/classPrivateFieldGet.js", + "import": "./helpers/esm/classPrivateFieldGet.js", + "default": "./helpers/classPrivateFieldGet.js" + }, + "./helpers/classPrivateFieldGet.js" + ], + "./helpers/esm/classPrivateFieldGet": "./helpers/esm/classPrivateFieldGet.js", + "./helpers/classPrivateFieldSet": [ + { + "node": "./helpers/classPrivateFieldSet.js", + "import": "./helpers/esm/classPrivateFieldSet.js", + "default": "./helpers/classPrivateFieldSet.js" + }, + "./helpers/classPrivateFieldSet.js" + ], + "./helpers/esm/classPrivateFieldSet": "./helpers/esm/classPrivateFieldSet.js", + "./helpers/classPrivateMethodGet": [ + { + "node": "./helpers/classPrivateMethodGet.js", + "import": "./helpers/esm/classPrivateMethodGet.js", + "default": "./helpers/classPrivateMethodGet.js" + }, + "./helpers/classPrivateMethodGet.js" + ], + "./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js", + "./helpers/classPrivateMethodSet": [ + { + "node": "./helpers/classPrivateMethodSet.js", + "import": "./helpers/esm/classPrivateMethodSet.js", + "default": "./helpers/classPrivateMethodSet.js" + }, + "./helpers/classPrivateMethodSet.js" + ], + "./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js", + "./helpers/classStaticPrivateFieldDestructureSet": [ + { + "node": "./helpers/classStaticPrivateFieldDestructureSet.js", + "import": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", + "default": "./helpers/classStaticPrivateFieldDestructureSet.js" + }, + "./helpers/classStaticPrivateFieldDestructureSet.js" + ], + "./helpers/esm/classStaticPrivateFieldDestructureSet": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", + "./helpers/classStaticPrivateFieldSpecGet": [ + { + "node": "./helpers/classStaticPrivateFieldSpecGet.js", + "import": "./helpers/esm/classStaticPrivateFieldSpecGet.js", + "default": "./helpers/classStaticPrivateFieldSpecGet.js" + }, + "./helpers/classStaticPrivateFieldSpecGet.js" + ], + "./helpers/esm/classStaticPrivateFieldSpecGet": "./helpers/esm/classStaticPrivateFieldSpecGet.js", + "./helpers/classStaticPrivateFieldSpecSet": [ + { + "node": "./helpers/classStaticPrivateFieldSpecSet.js", + "import": "./helpers/esm/classStaticPrivateFieldSpecSet.js", + "default": "./helpers/classStaticPrivateFieldSpecSet.js" + }, + "./helpers/classStaticPrivateFieldSpecSet.js" + ], + "./helpers/esm/classStaticPrivateFieldSpecSet": "./helpers/esm/classStaticPrivateFieldSpecSet.js", + "./helpers/classStaticPrivateMethodSet": [ + { + "node": "./helpers/classStaticPrivateMethodSet.js", + "import": "./helpers/esm/classStaticPrivateMethodSet.js", + "default": "./helpers/classStaticPrivateMethodSet.js" + }, + "./helpers/classStaticPrivateMethodSet.js" + ], + "./helpers/esm/classStaticPrivateMethodSet": "./helpers/esm/classStaticPrivateMethodSet.js", + "./helpers/defineEnumerableProperties": [ + { + "node": "./helpers/defineEnumerableProperties.js", + "import": "./helpers/esm/defineEnumerableProperties.js", + "default": "./helpers/defineEnumerableProperties.js" + }, + "./helpers/defineEnumerableProperties.js" + ], + "./helpers/esm/defineEnumerableProperties": "./helpers/esm/defineEnumerableProperties.js", + "./helpers/dispose": [ + { + "node": "./helpers/dispose.js", + "import": "./helpers/esm/dispose.js", + "default": "./helpers/dispose.js" + }, + "./helpers/dispose.js" + ], + "./helpers/esm/dispose": "./helpers/esm/dispose.js", + "./helpers/objectSpread": [ + { + "node": "./helpers/objectSpread.js", + "import": "./helpers/esm/objectSpread.js", + "default": "./helpers/objectSpread.js" + }, + "./helpers/objectSpread.js" + ], + "./helpers/esm/objectSpread": "./helpers/esm/objectSpread.js", + "./helpers/using": [ + { + "node": "./helpers/using.js", + "import": "./helpers/esm/using.js", + "default": "./helpers/using.js" + }, + "./helpers/using.js" + ], + "./helpers/esm/using": "./helpers/esm/using.js", + "./package": "./package.json", + "./package.json": "./package.json", + "./regenerator": "./regenerator/index.js", + "./regenerator/*.js": "./regenerator/*.js", + "./regenerator/": "./regenerator/" + }, + "homepage": "https://babel.dev/docs/en/next/babel-runtime", + "license": "MIT", + "name": "@babel/runtime", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/babel/babel.git", + "directory": "packages/babel-runtime" + }, + "type": "commonjs", + "version": "7.26.0" +} diff --git a/node_modules/@babel/runtime/regenerator/index.js b/node_modules/@babel/runtime/regenerator/index.js new file mode 100644 index 0000000..5881357 --- /dev/null +++ b/node_modules/@babel/runtime/regenerator/index.js @@ -0,0 +1,15 @@ +// TODO(Babel 8): Remove this file. + +var runtime = require("../helpers/regeneratorRuntime")(); +module.exports = runtime; + +// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= +try { + regeneratorRuntime = runtime; +} catch (accidentalStrictMode) { + if (typeof globalThis === "object") { + globalThis.regeneratorRuntime = runtime; + } else { + Function("r", "regeneratorRuntime = r")(runtime); + } +} diff --git a/node_modules/@types/dom-webcodecs/LICENSE b/node_modules/@types/dom-webcodecs/LICENSE new file mode 100644 index 0000000..9e841e7 --- /dev/null +++ b/node_modules/@types/dom-webcodecs/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/node_modules/@types/dom-webcodecs/README.md b/node_modules/@types/dom-webcodecs/README.md new file mode 100644 index 0000000..8133c5a --- /dev/null +++ b/node_modules/@types/dom-webcodecs/README.md @@ -0,0 +1,15 @@ +# Installation +> `npm install --save @types/dom-webcodecs` + +# Summary +This package contains type definitions for dom-webcodecs (https://w3c.github.io/webcodecs/). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dom-webcodecs. + +### Additional Details + * Last updated: Mon, 20 Nov 2023 23:36:24 GMT + * Dependencies: none + +# Credits +These definitions were written by [Ben Wagner](https://github.com/dogben). diff --git a/node_modules/@types/dom-webcodecs/index.d.ts b/node_modules/@types/dom-webcodecs/index.d.ts new file mode 100644 index 0000000..8226413 --- /dev/null +++ b/node_modules/@types/dom-webcodecs/index.d.ts @@ -0,0 +1,185 @@ +// Versioning: +// Until the WebCodecs spec is finalized, the major version number is 0. I have chosen to use minor +// version 1 to denote the API as defined by the IDL files from the Chromium repo at +// https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/modules/webcodecs. +// Please use a version number above 0.1 if using the spec at https://w3c.github.io/webcodecs/ as +// the source. + +// The declarations in webcodecs.generated.d.ts have been generated using the code in +// https://github.com/yume-chan/webcodecs-lib-generator. See +// https://github.com/yume-chan/webcodecs-lib-generator/blob/main/README.md for more detail. +/// + +// The following declarations are copied from +// https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/a75338e1ea8a958bf08a5745141d2ab8f14ba2ca/baselines/dom.generated.d.ts +// and modified to expand the types to include VideoFrame. + +/** Shim for OffscreenCanvas, which was removed in TS 4.4 */ +// eslint-disable-next-line @typescript-eslint/no-empty-interface +interface OffscreenCanvas extends EventTarget { +} + +/** + * Replaces CanvasImageSource; only applies if WebCodecs is available. + */ +type CanvasImageSourceWebCodecs = + | HTMLOrSVGImageElement + | HTMLVideoElement + | HTMLCanvasElement + | ImageBitmap + | OffscreenCanvas + | VideoFrame; + +interface CanvasRenderingContext2D { + drawImage(image: CanvasImageSourceWebCodecs, dx: number, dy: number): void; + drawImage(image: CanvasImageSourceWebCodecs, dx: number, dy: number, dw: number, dh: number): void; + drawImage( + image: CanvasImageSourceWebCodecs, + sx: number, + sy: number, + sw: number, + sh: number, + dx: number, + dy: number, + dw: number, + dh: number, + ): void; + createPattern(image: CanvasImageSourceWebCodecs, repetition: string | null): CanvasPattern | null; +} + +interface OffscreenCanvasRenderingContext2D { + drawImage(image: CanvasImageSourceWebCodecs, dx: number, dy: number): void; + drawImage(image: CanvasImageSourceWebCodecs, dx: number, dy: number, dw: number, dh: number): void; + drawImage( + image: CanvasImageSourceWebCodecs, + sx: number, + sy: number, + sw: number, + sh: number, + dx: number, + dy: number, + dw: number, + dh: number, + ): void; + createPattern(image: CanvasImageSourceWebCodecs, repetition: string | null): CanvasPattern | null; +} + +/** + * Replaces ImageBitmapSource; only applies if WebCodecs is available. + */ +type ImageBitmapSourceWebCodecs = CanvasImageSourceWebCodecs | Blob | ImageData; + +declare function createImageBitmap( + image: ImageBitmapSourceWebCodecs, + options?: ImageBitmapOptions, +): Promise; +declare function createImageBitmap( + image: ImageBitmapSourceWebCodecs, + sx: number, + sy: number, + sw: number, + sh: number, + options?: ImageBitmapOptions, +): Promise; + +/** + * Replaces TexImageSource; only applies if WebCodecs is available. + */ +type TexImageSourceWebCodecs = + | ImageBitmap + | ImageData + | HTMLImageElement + | HTMLCanvasElement + | HTMLVideoElement + | OffscreenCanvas + | VideoFrame; + +interface WebGLRenderingContextOverloads { + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; +} + +interface WebGL2RenderingContextBase { + texImage3D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; + texSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; +} + +interface WebGL2RenderingContextOverloads { + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + source: TexImageSourceWebCodecs, + ): void; +} diff --git a/node_modules/@types/dom-webcodecs/package.json b/node_modules/@types/dom-webcodecs/package.json new file mode 100644 index 0000000..b8265ab --- /dev/null +++ b/node_modules/@types/dom-webcodecs/package.json @@ -0,0 +1,54 @@ +{ + "_from": "@types/dom-webcodecs@0.1.11", + "_id": "@types/dom-webcodecs@0.1.11", + "_inBundle": false, + "_integrity": "sha512-yPEZ3z7EohrmOxbk/QTAa0yonMFkNkjnVXqbGb7D4rMr+F1dGQ8ZUFxXkyLLJuiICPejZ0AZE9Rrk9wUCczx4A==", + "_location": "/@types/dom-webcodecs", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "@types/dom-webcodecs@0.1.11", + "name": "@types/dom-webcodecs", + "escapedName": "@types%2fdom-webcodecs", + "scope": "@types", + "rawSpec": "0.1.11", + "saveSpec": null, + "fetchSpec": "0.1.11" + }, + "_requiredBy": [ + "/barcode-detector" + ], + "_resolved": "https://registry.npmmirror.com/@types/dom-webcodecs/-/dom-webcodecs-0.1.11.tgz", + "_shasum": "2e36e5cc71789551f107e2fe15d956845fa19567", + "_spec": "@types/dom-webcodecs@0.1.11", + "_where": "D:\\work\\tourGuide\\node_modules\\barcode-detector", + "bugs": { + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Ben Wagner", + "url": "https://github.com/dogben" + } + ], + "dependencies": {}, + "deprecated": false, + "description": "TypeScript definitions for dom-webcodecs", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dom-webcodecs", + "license": "MIT", + "main": "", + "name": "@types/dom-webcodecs", + "nonNpm": true, + "repository": { + "type": "git", + "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/dom-webcodecs" + }, + "scripts": {}, + "typeScriptVersion": "5.2", + "types": "index.d.ts", + "typesPublisherContentHash": "c249592f0bf5095d315ec74f6b9c69aa629276cfdbd54cb381417e3718e4b755", + "version": "0.1.11" +} diff --git a/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts b/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts new file mode 100644 index 0000000..697f234 --- /dev/null +++ b/node_modules/@types/dom-webcodecs/webcodecs.generated.d.ts @@ -0,0 +1,417 @@ +///////////////////////////// +/// webcodecs APIs +///////////////////////////// + +interface AudioDataCopyToOptions { + format?: AudioSampleFormat | undefined; + frameCount?: number | undefined; + frameOffset?: number | undefined; + planeIndex: number; +} + +interface AudioDataInit { + data: AllowSharedBufferSource; + format: AudioSampleFormat; + numberOfChannels: number; + numberOfFrames: number; + sampleRate: number; + timestamp: number; +} + +interface AudioDecoderConfig { + codec: string; + description?: AllowSharedBufferSource | undefined; + numberOfChannels: number; + sampleRate: number; +} + +interface AudioDecoderInit { + error: WebCodecsErrorCallback; + output: AudioDataOutputCallback; +} + +interface AudioDecoderSupport { + config: AudioDecoderConfig; + supported: boolean; +} + +interface AudioEncoderConfig { + bitrate?: number | undefined; + codec: string; + numberOfChannels: number; + sampleRate: number; +} + +interface AudioEncoderInit { + error: WebCodecsErrorCallback; + output: EncodedAudioChunkOutputCallback; +} + +interface AudioEncoderSupport { + config: AudioEncoderConfig; + supported: boolean; +} + +interface AvcEncoderConfig { + format?: AvcBitstreamFormat | undefined; +} + +interface EncodedAudioChunkInit { + data: AllowSharedBufferSource; + duration?: number | undefined; + timestamp: number; + type: EncodedAudioChunkType; +} + +interface EncodedAudioChunkMetadata { + decoderConfig?: AudioDecoderConfig | undefined; +} + +interface EncodedVideoChunkInit { + data: AllowSharedBufferSource; + duration?: number | undefined; + timestamp: number; + type: EncodedVideoChunkType; +} + +interface EncodedVideoChunkMetadata { + decoderConfig?: VideoDecoderConfig | undefined; + temporalLayerId?: number | undefined; +} + +interface ImageDecodeOptions { + completeFramesOnly?: boolean | undefined; + frameIndex?: number | undefined; +} + +interface ImageDecodeResult { + complete: boolean; + image: VideoFrame; +} + +interface ImageDecoderInit { + colorSpaceConversion?: ColorSpaceConversion | undefined; + data: ImageBufferSource; + desiredHeight?: number | undefined; + desiredWidth?: number | undefined; + preferAnimation?: boolean | undefined; + premultiplyAlpha?: PremultiplyAlpha | undefined; + type: string; +} + +interface PlaneLayout { + offset: number; + stride: number; +} + +interface VideoColorSpaceInit { + fullRange?: boolean | null | undefined; + matrix?: VideoMatrixCoefficients | null | undefined; + primaries?: VideoColorPrimaries | null | undefined; + transfer?: VideoTransferCharacteristics | null | undefined; +} + +interface VideoDecoderConfig { + codec: string; + codedHeight?: number | undefined; + codedWidth?: number | undefined; + colorSpace?: VideoColorSpaceInit | undefined; + description?: AllowSharedBufferSource | undefined; + displayAspectHeight?: number | undefined; + displayAspectWidth?: number | undefined; + hardwareAcceleration?: HardwarePreference | undefined; + optimizeForLatency?: boolean | undefined; +} + +interface VideoDecoderInit { + error: WebCodecsErrorCallback; + output: VideoFrameOutputCallback; +} + +interface VideoDecoderSupport { + config?: VideoDecoderConfig; + supported?: boolean; +} + +interface VideoEncoderConfig { + alpha?: AlphaOption | undefined; + avc?: AvcEncoderConfig | undefined; + bitrate?: number | undefined; + bitrateMode?: VideoEncoderBitrateMode | undefined; + codec: string; + displayHeight?: number | undefined; + displayWidth?: number | undefined; + framerate?: number | undefined; + hardwareAcceleration?: HardwarePreference | undefined; + height: number; + latencyMode?: LatencyMode | undefined; + scalabilityMode?: string | undefined; + width: number; +} + +interface VideoEncoderEncodeOptions { + keyFrame?: boolean; +} + +interface VideoEncoderInit { + error: WebCodecsErrorCallback; + output: EncodedVideoChunkOutputCallback; +} + +interface VideoEncoderSupport { + config?: VideoEncoderConfig; + supported?: boolean; +} + +interface VideoFrameBufferInit { + codedHeight: number; + codedWidth: number; + colorSpace?: VideoColorSpaceInit | undefined; + displayHeight?: number | undefined; + displayWidth?: number | undefined; + duration?: number | undefined; + format: VideoPixelFormat; + layout?: PlaneLayout[] | undefined; + timestamp: number; + visibleRect?: DOMRectInit | undefined; +} + +interface VideoFrameCopyToOptions { + layout?: PlaneLayout[] | undefined; + rect?: DOMRectInit | undefined; +} + +interface VideoFrameInit { + alpha?: AlphaOption | undefined; + displayHeight?: number | undefined; + displayWidth?: number | undefined; + duration?: number | undefined; + timestamp?: number | undefined; + visibleRect?: DOMRectInit | undefined; +} + +interface AudioData { + readonly duration: number; + readonly format: AudioSampleFormat; + readonly numberOfChannels: number; + readonly numberOfFrames: number; + readonly sampleRate: number; + readonly timestamp: number; + allocationSize(options: AudioDataCopyToOptions): number; + clone(): AudioData; + close(): void; + copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; +} + +declare var AudioData: { + prototype: AudioData; + new(init: AudioDataInit): AudioData; +}; + +/** Available only in secure contexts. */ +interface AudioDecoder { + readonly decodeQueueSize: number; + readonly state: CodecState; + close(): void; + configure(config: AudioDecoderConfig): void; + decode(chunk: EncodedAudioChunk): void; + flush(): Promise; + reset(): void; +} + +declare var AudioDecoder: { + prototype: AudioDecoder; + new(init: AudioDecoderInit): AudioDecoder; + isConfigSupported(config: AudioDecoderConfig): Promise; +}; + +/** Available only in secure contexts. */ +interface AudioEncoder { + readonly encodeQueueSize: number; + readonly state: CodecState; + close(): void; + configure(config: AudioEncoderConfig): void; + encode(data: AudioData): void; + flush(): Promise; + reset(): void; +} + +declare var AudioEncoder: { + prototype: AudioEncoder; + new(init: AudioEncoderInit): AudioEncoder; + isConfigSupported(config: AudioEncoderConfig): Promise; +}; + +interface EncodedAudioChunk { + readonly byteLength: number; + readonly duration: number | null; + readonly timestamp: number; + readonly type: EncodedAudioChunkType; + copyTo(destination: AllowSharedBufferSource): void; +} + +declare var EncodedAudioChunk: { + prototype: EncodedAudioChunk; + new(init: EncodedAudioChunkInit): EncodedAudioChunk; +}; + +interface EncodedVideoChunk { + readonly byteLength: number; + readonly duration: number | null; + readonly timestamp: number; + readonly type: EncodedVideoChunkType; + copyTo(destination: AllowSharedBufferSource): void; +} + +declare var EncodedVideoChunk: { + prototype: EncodedVideoChunk; + new(init: EncodedVideoChunkInit): EncodedVideoChunk; +}; + +/** Available only in secure contexts. */ +interface ImageDecoder { + readonly complete: boolean; + readonly completed: Promise; + readonly tracks: ImageTrackList; + readonly type: string; + close(): void; + decode(options?: ImageDecodeOptions): Promise; + reset(): void; +} + +declare var ImageDecoder: { + prototype: ImageDecoder; + new(init: ImageDecoderInit): ImageDecoder; + isTypeSupported(type: string): Promise; +}; + +interface ImageTrack { + readonly animated: boolean; + readonly frameCount: number; + readonly repetitionCount: number; + selected: boolean; +} + +declare var ImageTrack: { + prototype: ImageTrack; + new(): ImageTrack; +}; + +interface ImageTrackList { + readonly length: number; + readonly ready: Promise; + readonly selectedIndex: number; + readonly selectedTrack: ImageTrack | null; + [index: number]: ImageTrack; +} + +declare var ImageTrackList: { + prototype: ImageTrackList; + new(): ImageTrackList; +}; + +interface VideoColorSpace { + readonly fullRange: boolean | null; + readonly matrix: VideoMatrixCoefficients | null; + readonly primaries: VideoColorPrimaries | null; + readonly transfer: VideoTransferCharacteristics | null; + toJSON(): VideoColorSpaceInit; +} + +declare var VideoColorSpace: { + prototype: VideoColorSpace; + new(init?: VideoColorSpaceInit): VideoColorSpace; +}; + +/** Available only in secure contexts. */ +interface VideoDecoder { + readonly decodeQueueSize: number; + readonly state: CodecState; + close(): void; + configure(config: VideoDecoderConfig): void; + decode(chunk: EncodedVideoChunk): void; + flush(): Promise; + reset(): void; +} + +declare var VideoDecoder: { + prototype: VideoDecoder; + new(init: VideoDecoderInit): VideoDecoder; + isConfigSupported(config: VideoDecoderConfig): Promise; +}; + +/** Available only in secure contexts. */ +interface VideoEncoder { + readonly encodeQueueSize: number; + readonly state: CodecState; + close(): void; + configure(config: VideoEncoderConfig): void; + encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; + flush(): Promise; + reset(): void; +} + +declare var VideoEncoder: { + prototype: VideoEncoder; + new(init: VideoEncoderInit): VideoEncoder; + isConfigSupported(config: VideoEncoderConfig): Promise; +}; + +interface VideoFrame { + readonly codedHeight: number; + readonly codedRect: DOMRectReadOnly | null; + readonly codedWidth: number; + readonly colorSpace: VideoColorSpace; + readonly displayHeight: number; + readonly displayWidth: number; + readonly duration: number | null; + readonly format: VideoPixelFormat | null; + readonly timestamp: number; + readonly visibleRect: DOMRectReadOnly | null; + allocationSize(options?: VideoFrameCopyToOptions): number; + clone(): VideoFrame; + close(): void; + copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise; +} + +declare var VideoFrame: { + prototype: VideoFrame; + new(source: CanvasImageSource, init?: VideoFrameInit): VideoFrame; + new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; +}; + +interface AudioDataOutputCallback { + (output: AudioData): void; +} + +interface EncodedAudioChunkOutputCallback { + (output: EncodedAudioChunk, metadata: EncodedAudioChunkMetadata): void; +} + +interface EncodedVideoChunkOutputCallback { + (chunk: EncodedVideoChunk, metadata: EncodedVideoChunkMetadata): void; +} + +interface VideoFrameOutputCallback { + (output: VideoFrame): void; +} + +interface WebCodecsErrorCallback { + (error: DOMException): void; +} + +// type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; +// type BitrateMode = "constant" | "variable"; +type ImageBufferSource = ArrayBuffer | ArrayBufferView | ReadableStream; +// type AlphaOption = "discard" | "keep"; +type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; +// type AvcBitstreamFormat = "annexb" | "avc"; +// type CodecState = "closed" | "configured" | "unconfigured"; +type EncodedAudioChunkType = "delta" | "key"; +// type EncodedVideoChunkType = "delta" | "key"; +type HardwarePreference = "no-preference" | "prefer-hardware" | "prefer-software"; +// type LatencyMode = "quality" | "realtime"; +// type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m"; +// type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; +// type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX"; +// type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; diff --git a/node_modules/@types/emscripten/LICENSE b/node_modules/@types/emscripten/LICENSE new file mode 100644 index 0000000..9e841e7 --- /dev/null +++ b/node_modules/@types/emscripten/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/node_modules/@types/emscripten/README.md b/node_modules/@types/emscripten/README.md new file mode 100644 index 0000000..888b0a1 --- /dev/null +++ b/node_modules/@types/emscripten/README.md @@ -0,0 +1,15 @@ +# Installation +> `npm install --save @types/emscripten` + +# Summary +This package contains type definitions for emscripten (https://emscripten.org). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/emscripten. + +### Additional Details + * Last updated: Tue, 28 May 2024 20:07:23 GMT + * Dependencies: none + +# Credits +These definitions were written by [Kensuke Matsuzaki](https://github.com/zakki), [Periklis Tsirakidis](https://github.com/periklis), [Bumsik Kim](https://github.com/kbumsik), and [Louis DeScioli](https://github.com/lourd). diff --git a/node_modules/@types/emscripten/index.d.ts b/node_modules/@types/emscripten/index.d.ts new file mode 100644 index 0000000..7436fa6 --- /dev/null +++ b/node_modules/@types/emscripten/index.d.ts @@ -0,0 +1,451 @@ +/** Other WebAssembly declarations, for compatibility with older versions of Typescript */ +declare namespace WebAssembly { + interface Module {} +} + +declare namespace Emscripten { + interface FileSystemType { + mount(mount: FS.Mount): FS.FSNode; + syncfs(mount: FS.Mount, populate: () => unknown, done: (err?: number | null) => unknown): void; + } + type EnvironmentType = "WEB" | "NODE" | "SHELL" | "WORKER"; + + type JSType = "number" | "string" | "array" | "boolean"; + type TypeCompatibleWithC = number | string | any[] | boolean; + + type CIntType = "i8" | "i16" | "i32" | "i64"; + type CFloatType = "float" | "double"; + type CPointerType = "i8*" | "i16*" | "i32*" | "i64*" | "float*" | "double*" | "*"; + type CType = CIntType | CFloatType | CPointerType; + + interface CCallOpts { + async?: boolean | undefined; + } +} + +interface EmscriptenModule { + print(str: string): void; + printErr(str: string): void; + arguments: string[]; + environment: Emscripten.EnvironmentType; + preInit: Array<{ (): void }>; + preRun: Array<{ (): void }>; + postRun: Array<{ (): void }>; + onAbort: { (what: any): void }; + onRuntimeInitialized: { (): void }; + preinitializedWebGLContext: WebGLRenderingContext; + noInitialRun: boolean; + noExitRuntime: boolean; + logReadFiles: boolean; + filePackagePrefixURL: string; + wasmBinary: ArrayBuffer; + + destroy(object: object): void; + getPreloadedPackage(remotePackageName: string, remotePackageSize: number): ArrayBuffer; + instantiateWasm( + imports: WebAssembly.Imports, + successCallback: (module: WebAssembly.Instance) => void, + ): WebAssembly.Exports | undefined; + locateFile(url: string, scriptDirectory: string): string; + onCustomMessage(event: MessageEvent): void; + + // USE_TYPED_ARRAYS == 1 + HEAP: Int32Array; + IHEAP: Int32Array; + FHEAP: Float64Array; + + // USE_TYPED_ARRAYS == 2 + HEAP8: Int8Array; + HEAP16: Int16Array; + HEAP32: Int32Array; + HEAPU8: Uint8Array; + HEAPU16: Uint16Array; + HEAPU32: Uint32Array; + HEAPF32: Float32Array; + HEAPF64: Float64Array; + HEAP64: BigInt64Array; + HEAPU64: BigUint64Array; + + TOTAL_STACK: number; + TOTAL_MEMORY: number; + FAST_MEMORY: number; + + addOnPreRun(cb: () => any): void; + addOnInit(cb: () => any): void; + addOnPreMain(cb: () => any): void; + addOnExit(cb: () => any): void; + addOnPostRun(cb: () => any): void; + + preloadedImages: any; + preloadedAudios: any; + + _malloc(size: number): number; + _free(ptr: number): void; +} + +/** + * A factory function is generated when setting the `MODULARIZE` build option + * to `1` in your Emscripten build. It return a Promise that resolves to an + * initialized, ready-to-call `EmscriptenModule` instance. + * + * By default, the factory function will be named `Module`. It's recommended to + * use the `EXPORT_ES6` option, in which the factory function will be the + * default export. If used without `EXPORT_ES6`, the factory function will be a + * global variable. You can rename the variable using the `EXPORT_NAME` build + * option. It's left to you to declare any global variables as needed in your + * application's types. + * @param moduleOverrides Default properties for the initialized module. + */ +type EmscriptenModuleFactory = ( + moduleOverrides?: Partial, +) => Promise; + +declare namespace FS { + interface Lookup { + path: string; + node: FSNode; + } + + interface Analyze { + isRoot: boolean; + exists: boolean; + error: Error; + name: string; + path: Lookup["path"]; + object: Lookup["node"]; + parentExists: boolean; + parentPath: Lookup["path"]; + parentObject: Lookup["node"]; + } + + interface Mount { + type: Emscripten.FileSystemType; + opts: object; + mountpoint: string; + mounts: Mount[]; + root: FSNode; + } + + class FSStream { + constructor(); + object: FSNode; + readonly isRead: boolean; + readonly isWrite: boolean; + readonly isAppend: boolean; + flags: number; + position: number; + fd?: number; + nfd?: number; + } + + interface StreamOps { + open(stream: FSStream): void; + close(stream: FSStream): void; + read(stream: FSStream, buffer: Uint8Array, offset: number, length: number, position: number): number; + write(stream: FSStream, buffer: Uint8Array, offset: number, length: number, position: number): number; + llseek(stream: FSStream, offset: number, whence: number): number; + } + + class FSNode { + parent: FSNode; + mount: Mount; + mounted?: Mount; + id: number; + name: string; + mode: number; + rdev: number; + readMode: number; + writeMode: number; + constructor(parent: FSNode, name: string, mode: number, rdev: number); + read: boolean; + write: boolean; + readonly isFolder: boolean; + readonly isDevice: boolean; + } + + interface NodeOps { + getattr(node: FSNode): Stats; + setattr(node: FSNode, attr: Stats): void; + lookup(parent: FSNode, name: string): FSNode; + mknod(parent: FSNode, name: string, mode: number, dev: unknown): FSNode; + rename(oldNode: FSNode, newDir: FSNode, newName: string): void; + unlink(parent: FSNode, name: string): void; + rmdir(parent: FSNode, name: string): void; + readdir(node: FSNode): string[]; + symlink(parent: FSNode, newName: string, oldPath: string): void; + readlink(node: FSNode): string; + } + + interface Stats { + dev: number; + ino: number; + mode: number; + nlink: number; + uid: number; + gid: number; + rdev: number; + size: number; + blksize: number; + blocks: number; + atime: Date; + mtime: Date; + ctime: Date; + timestamp?: number; + } + + class ErrnoError extends Error { + name: "ErronoError"; + errno: number; + code: string; + constructor(errno: number); + } + + let ignorePermissions: boolean; + let trackingDelegate: { + onOpenFile(path: string, trackingFlags: number): unknown; + onCloseFile(path: string): unknown; + onSeekFile(path: string, position: number, whence: number): unknown; + onReadFile(path: string, bytesRead: number): unknown; + onWriteToFile(path: string, bytesWritten: number): unknown; + onMakeDirectory(path: string, mode: number): unknown; + onMakeSymlink(oldpath: string, newpath: string): unknown; + willMovePath(old_path: string, new_path: string): unknown; + onMovePath(old_path: string, new_path: string): unknown; + willDeletePath(path: string): unknown; + onDeletePath(path: string): unknown; + }; + let tracking: any; + let genericErrors: Record; + + // + // paths + // + function lookupPath( + path: string, + opts: Partial<{ + follow_mount: boolean; + /** + * by default, lookupPath will not follow a symlink if it is the final path component. + * setting opts.follow = true will override this behavior. + */ + follow: boolean; + recurse_count: number; + parent: boolean; + }>, + ): Lookup; + function getPath(node: FSNode): string; + function analyzePath(path: string, dontResolveLastLink?: boolean): Analyze; + + // + // nodes + // + function isFile(mode: number): boolean; + function isDir(mode: number): boolean; + function isLink(mode: number): boolean; + function isChrdev(mode: number): boolean; + function isBlkdev(mode: number): boolean; + function isFIFO(mode: number): boolean; + function isSocket(mode: number): boolean; + + // + // devices + // + function major(dev: number): number; + function minor(dev: number): number; + function makedev(ma: number, mi: number): number; + function registerDevice(dev: number, ops: Partial): void; + function getDevice(dev: number): { stream_ops: StreamOps }; + + // + // core + // + function getMounts(mount: Mount): Mount[]; + function syncfs(populate: boolean, callback: (e: any) => any): void; + function syncfs(callback: (e: any) => any, populate?: boolean): void; + function mount(type: Emscripten.FileSystemType, opts: any, mountpoint: string): any; + function unmount(mountpoint: string): void; + + function mkdir(path: string, mode?: number): FSNode; + function mkdev(path: string, mode?: number, dev?: number): FSNode; + function symlink(oldpath: string, newpath: string): FSNode; + function rename(old_path: string, new_path: string): void; + function rmdir(path: string): void; + function readdir(path: string): string[]; + function unlink(path: string): void; + function readlink(path: string): string; + function stat(path: string, dontFollow?: boolean): Stats; + function lstat(path: string): Stats; + function chmod(path: string, mode: number, dontFollow?: boolean): void; + function lchmod(path: string, mode: number): void; + function fchmod(fd: number, mode: number): void; + function chown(path: string, uid: number, gid: number, dontFollow?: boolean): void; + function lchown(path: string, uid: number, gid: number): void; + function fchown(fd: number, uid: number, gid: number): void; + function truncate(path: string, len: number): void; + function ftruncate(fd: number, len: number): void; + function utime(path: string, atime: number, mtime: number): void; + function open(path: string, flags: string, mode?: number, fd_start?: number, fd_end?: number): FSStream; + function close(stream: FSStream): void; + function llseek(stream: FSStream, offset: number, whence: number): number; + function read(stream: FSStream, buffer: ArrayBufferView, offset: number, length: number, position?: number): number; + function write( + stream: FSStream, + buffer: ArrayBufferView, + offset: number, + length: number, + position?: number, + canOwn?: boolean, + ): number; + function allocate(stream: FSStream, offset: number, length: number): void; + function mmap( + stream: FSStream, + buffer: ArrayBufferView, + offset: number, + length: number, + position: number, + prot: number, + flags: number, + ): { + allocated: boolean; + ptr: number; + }; + function ioctl(stream: FSStream, cmd: any, arg: any): any; + function readFile(path: string, opts: { encoding: "binary"; flags?: string | undefined }): Uint8Array; + function readFile(path: string, opts: { encoding: "utf8"; flags?: string | undefined }): string; + function readFile(path: string, opts?: { flags?: string | undefined }): Uint8Array; + function writeFile(path: string, data: string | ArrayBufferView, opts?: { flags?: string | undefined }): void; + + // + // module-level FS code + // + function cwd(): string; + function chdir(path: string): void; + function init( + input: null | (() => number | null), + output: null | ((c: number) => any), + error: null | ((c: number) => any), + ): void; + + function createLazyFile( + parent: string | FSNode, + name: string, + url: string, + canRead: boolean, + canWrite: boolean, + ): FSNode; + function createPreloadedFile( + parent: string | FSNode, + name: string, + url: string, + canRead: boolean, + canWrite: boolean, + onload?: () => void, + onerror?: () => void, + dontCreateFile?: boolean, + canOwn?: boolean, + ): void; + function createDataFile( + parent: string | FSNode, + name: string, + data: ArrayBufferView, + canRead: boolean, + canWrite: boolean, + canOwn: boolean, + ): FSNode; +} + +declare var MEMFS: Emscripten.FileSystemType; +declare var NODEFS: Emscripten.FileSystemType; +declare var IDBFS: Emscripten.FileSystemType; + +// https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html +type StringToType = R extends Emscripten.JSType ? { + number: number; + string: string; + array: number[] | string[] | boolean[] | Uint8Array | Int8Array; + boolean: boolean; + null: null; + }[R] + : never; + +type ArgsToType> = Extract< + { + [P in keyof T]: StringToType; + }, + any[] +>; + +type ReturnToType = R extends null ? null : StringToType>; + +// Below runtime function/variable declarations are exportable by +// -s EXTRA_EXPORTED_RUNTIME_METHODS. You can extend or merge +// EmscriptenModule interface to add runtime functions. +// +// For example, by using -s "EXTRA_EXPORTED_RUNTIME_METHODS=['ccall']" +// You can access ccall() via Module["ccall"]. In this case, you should +// extend EmscriptenModule to pass the compiler check like the following: +// +// interface YourOwnEmscriptenModule extends EmscriptenModule { +// ccall: typeof ccall; +// } +// +// See: https://emscripten.org/docs/getting_started/FAQ.html#why-do-i-get-typeerror-module-something-is-not-a-function + +declare function cwrap | [], R extends Emscripten.JSType | null>( + ident: string, + returnType: R, + argTypes: I, + opts?: Emscripten.CCallOpts, +): (...arg: ArgsToType) => ReturnToType; + +declare function ccall | [], R extends Emscripten.JSType | null>( + ident: string, + returnType: R, + argTypes: I, + args: ArgsToType, + opts?: Emscripten.CCallOpts, +): ReturnToType; + +declare function setValue(ptr: number, value: any, type: Emscripten.CType, noSafe?: boolean): void; +declare function getValue(ptr: number, type: Emscripten.CType, noSafe?: boolean): number; + +declare function allocate( + slab: number[] | ArrayBufferView | number, + types: Emscripten.CType | Emscripten.CType[], + allocator: number, + ptr?: number, +): number; + +declare function stackAlloc(size: number): number; +declare function stackSave(): number; +declare function stackRestore(ptr: number): void; + +declare function UTF8ToString(ptr: number, maxBytesToRead?: number): string; +declare function stringToUTF8(str: string, outPtr: number, maxBytesToRead?: number): void; +declare function lengthBytesUTF8(str: string): number; +declare function allocateUTF8(str: string): number; +declare function allocateUTF8OnStack(str: string): number; +declare function UTF16ToString(ptr: number): string; +declare function stringToUTF16(str: string, outPtr: number, maxBytesToRead?: number): void; +declare function lengthBytesUTF16(str: string): number; +declare function UTF32ToString(ptr: number): string; +declare function stringToUTF32(str: string, outPtr: number, maxBytesToRead?: number): void; +declare function lengthBytesUTF32(str: string): number; + +declare function intArrayFromString(stringy: string, dontAddNull?: boolean, length?: number): number[]; +declare function intArrayToString(array: number[]): string; +declare function writeStringToMemory(str: string, buffer: number, dontAddNull: boolean): void; +declare function writeArrayToMemory(array: number[], buffer: number): void; +declare function writeAsciiToMemory(str: string, buffer: number, dontAddNull: boolean): void; + +declare function addRunDependency(id: any): void; +declare function removeRunDependency(id: any): void; + +declare function addFunction(func: (...args: any[]) => any, signature?: string): number; +declare function removeFunction(funcPtr: number): void; + +declare var ALLOC_NORMAL: number; +declare var ALLOC_STACK: number; +declare var ALLOC_STATIC: number; +declare var ALLOC_DYNAMIC: number; +declare var ALLOC_NONE: number; diff --git a/node_modules/@types/emscripten/package.json b/node_modules/@types/emscripten/package.json new file mode 100644 index 0000000..6d54cb2 --- /dev/null +++ b/node_modules/@types/emscripten/package.json @@ -0,0 +1,65 @@ +{ + "_from": "@types/emscripten@^1.39.13", + "_id": "@types/emscripten@1.39.13", + "_inBundle": false, + "_integrity": "sha512-cFq+fO/isvhvmuP/+Sl4K4jtU6E23DoivtbO4r50e3odaxAiVdbfSYRDdJ4gCdxx+3aRjhphS5ZMwIH4hFy/Cw==", + "_location": "/@types/emscripten", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "@types/emscripten@^1.39.13", + "name": "@types/emscripten", + "escapedName": "@types%2femscripten", + "scope": "@types", + "rawSpec": "^1.39.13", + "saveSpec": null, + "fetchSpec": "^1.39.13" + }, + "_requiredBy": [ + "/zxing-wasm" + ], + "_resolved": "https://registry.npmmirror.com/@types/emscripten/-/emscripten-1.39.13.tgz", + "_shasum": "afeb1648648dc096efe57983e20387627306e2aa", + "_spec": "@types/emscripten@^1.39.13", + "_where": "D:\\work\\tourGuide\\node_modules\\zxing-wasm", + "bugs": { + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" + }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Kensuke Matsuzaki", + "url": "https://github.com/zakki" + }, + { + "name": "Periklis Tsirakidis", + "url": "https://github.com/periklis" + }, + { + "name": "Bumsik Kim", + "url": "https://github.com/kbumsik" + }, + { + "name": "Louis DeScioli", + "url": "https://github.com/lourd" + } + ], + "dependencies": {}, + "deprecated": false, + "description": "TypeScript definitions for emscripten", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/emscripten", + "license": "MIT", + "main": "", + "name": "@types/emscripten", + "repository": { + "type": "git", + "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/emscripten" + }, + "scripts": {}, + "typeScriptVersion": "4.7", + "types": "index.d.ts", + "typesPublisherContentHash": "e4c38466f07759bfefe22fd073222d18f79b78112fc989c972f3e86c81b49800", + "version": "1.39.13" +} diff --git a/node_modules/barcode-detector/dist/cjs/BarcodeDetector.d.ts b/node_modules/barcode-detector/dist/cjs/BarcodeDetector.d.ts new file mode 100644 index 0000000..795e0bd --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/BarcodeDetector.d.ts @@ -0,0 +1,34 @@ +import { type ZXingReaderModule } from "zxing-wasm/reader"; +import { type BarcodeFormat, type ReadResultBarcodeFormat } from "./utils.js"; +export type { BarcodeFormat } from "./utils.js"; +export interface BarcodeDetectorOptions { + formats?: BarcodeFormat[]; +} +export interface Point2D { + x: number; + y: number; +} +export interface DetectedBarcode { + boundingBox: DOMRectReadOnly; + rawValue: string; + format: ReadResultBarcodeFormat; + cornerPoints: [Point2D, Point2D, Point2D, Point2D]; +} +interface CustomEventMap { + load: CustomEvent; + error: CustomEvent; +} +type ChangeEventListener = (type: K, callback: ((evt: CustomEventMap[K]) => void) | { + handleEvent(evt: CustomEventMap[K]): void; +} | null, options?: boolean | AddEventListenerOptions | undefined) => void; +export interface BarcodeDetector { + addEventListener: ChangeEventListener; + removeEventListener: ChangeEventListener; +} +export declare class BarcodeDetector extends EventTarget { + #private; + constructor(barcodeDectorOptions?: BarcodeDetectorOptions); + static getSupportedFormats(): Promise; + detect(image: ImageBitmapSourceWebCodecs): Promise; +} +export { setZXingModuleOverrides } from "zxing-wasm/reader"; diff --git a/node_modules/barcode-detector/dist/cjs/index.d.ts b/node_modules/barcode-detector/dist/cjs/index.d.ts new file mode 100644 index 0000000..5785a01 --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/index.d.ts @@ -0,0 +1,2 @@ +import "./side-effects.js"; +export * from "./pure.js"; diff --git a/node_modules/barcode-detector/dist/cjs/index.js b/node_modules/barcode-detector/dist/cjs/index.js new file mode 100644 index 0000000..b986716 --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/index.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./side-effects.js");const e=require("./pure.js");exports.BarcodeDetector=e.BarcodeDetector;exports.setZXingModuleOverrides=e.setZXingModuleOverrides; diff --git a/node_modules/barcode-detector/dist/cjs/package.json b/node_modules/barcode-detector/dist/cjs/package.json new file mode 100644 index 0000000..5bbefff --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/node_modules/barcode-detector/dist/cjs/pure.d.ts b/node_modules/barcode-detector/dist/cjs/pure.d.ts new file mode 100644 index 0000000..29bd716 --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/pure.d.ts @@ -0,0 +1 @@ +export * from "./BarcodeDetector.js"; diff --git a/node_modules/barcode-detector/dist/cjs/pure.js b/node_modules/barcode-detector/dist/cjs/pure.js new file mode 100644 index 0000000..4d84392 --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/pure.js @@ -0,0 +1,2 @@ +"use strict";var Zr=o=>{throw TypeError(o)};var Jr=(o,d,p)=>d.has(o)||Zr("Cannot "+p);var Kr=(o,d,p)=>(Jr(o,d,"read from private field"),p?p.call(o):d.get(o)),te=(o,d,p)=>d.has(o)?Zr("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(o):d.set(o,p),re=(o,d,p,y)=>(Jr(o,d,"write to private field"),y?y.call(o,p):d.set(o,p),p);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function ro(o){return o.join("|")}function eo(o){const d=ne(o);let p=0,y=ee.length-1;for(;p<=y;){const c=Math.floor((p+y)/2),P=ee[c],S=ne(P);if(S===d)return P;S{const p=o.match(/_(.+?)\.wasm$/);return p?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${p[1]}/${o}`:d+o}};let ar=new WeakMap;function ir(o,d){var p;const y=ar.get(o);if(y!=null&&y.modulePromise&&d===void 0)return y.modulePromise;const c=(p=y==null?void 0:y.moduleOverrides)!=null?p:co,P=o({...c});return ar.set(o,{moduleOverrides:c,modulePromise:P}),P}function lo(o,d){ar.set(o,{moduleOverrides:d})}async function fo(o,d,p=st){const y={...st,...p},c=await ir(o),{size:P}=d,S=new Uint8Array(await d.arrayBuffer()),B=c._malloc(P);c.HEAPU8.set(S,B);const V=c.readBarcodesFromImage(B,P,oe(c,y));c._free(B);const R=[];for(let W=0;W{var o,d=typeof document<"u"&&((o=document.currentScript)==null?void 0:o.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(p={}){var y,c=p,P,S,B=new Promise((t,r)=>{P=t,S=r}),V=typeof window=="object",R=typeof Bun<"u",W=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var N=Object.assign({},c),H="./this.program",I="";function ut(t){return c.locateFile?c.locateFile(t,I):I+t}var ct,et;if(V||W||R){var lt;W?I=self.location.href:typeof document<"u"&&((lt=document.currentScript)===null||lt===void 0?void 0:lt.tagName.toUpperCase())==="SCRIPT"&&(I=document.currentScript.src),d&&(I=d),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),W&&(et=t=>{var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ct=t=>fetch(t,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url)))}var kt=c.print||console.log.bind(console),nt=c.printErr||console.error.bind(console);Object.assign(c,N),N=null,c.arguments&&c.arguments,c.thisProgram&&(H=c.thisProgram);var wt=c.wasmBinary,$t,sr=!1,L,F,at,ft,Z,E,ur,cr;function lr(){var t=$t.buffer;c.HEAP8=L=new Int8Array(t),c.HEAP16=at=new Int16Array(t),c.HEAPU8=F=new Uint8Array(t),c.HEAPU16=ft=new Uint16Array(t),c.HEAP32=Z=new Int32Array(t),c.HEAPU32=E=new Uint32Array(t),c.HEAPF32=ur=new Float32Array(t),c.HEAPF64=cr=new Float64Array(t)}var fr=[],dr=[],hr=[];function me(){var t=c.preRun;t&&(typeof t=="function"&&(t=[t]),t.forEach($e)),Vt(fr)}function ge(){Vt(dr)}function we(){var t=c.postRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(Ce)),Vt(hr)}function $e(t){fr.unshift(t)}function be(t){dr.unshift(t)}function Ce(t){hr.unshift(t)}var J=0,dt=null;function Te(t){var r;J++,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,J)}function Pe(t){var r;if(J--,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,J),J==0&&dt){var e=dt;dt=null,e()}}function Ut(t){var r;(r=c.onAbort)===null||r===void 0||r.call(c,t),t="Aborted("+t+")",nt(t),sr=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw S(e),e}var Ee="data:application/octet-stream;base64,",pr=t=>t.startsWith(Ee);function _e(){var t="zxing_reader.wasm";return pr(t)?t:ut(t)}var bt;function vr(t){if(t==bt&&wt)return new Uint8Array(wt);if(et)return et(t);throw"both async and sync fetching of the wasm failed"}function Ae(t){return wt?Promise.resolve().then(()=>vr(t)):ct(t).then(r=>new Uint8Array(r),()=>vr(t))}function yr(t,r,e){return Ae(t).then(n=>WebAssembly.instantiate(n,r)).then(e,n=>{nt(`failed to asynchronously prepare wasm: ${n}`),Ut(n)})}function Oe(t,r,e,n){return!t&&typeof WebAssembly.instantiateStreaming=="function"&&!pr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,e);return i.then(n,function(u){return nt(`wasm streaming compile failed: ${u}`),nt("falling back to ArrayBuffer instantiation"),yr(r,e,n)})}):yr(r,e,n)}function De(){return{a:wa}}function Se(){var t,r=De();function e(a,i){return A=a.exports,$t=A.za,lr(),_r=A.Da,be(A.Aa),Pe(),A}Te();function n(a){e(a.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(r,e)}catch(a){nt(`Module.instantiateWasm callback failed with error: ${a}`),S(a)}return(t=bt)!==null&&t!==void 0||(bt=_e()),Oe(wt,bt,r,n).catch(S),{}}var Vt=t=>{t.forEach(r=>r(c))};c.noExitRuntime;var w=t=>Br(t),$=()=>kr(),Ct=[],Tt=0,xe=t=>{var r=new Ht(t);return r.get_caught()||(r.set_caught(!0),Tt--),r.set_rethrown(!1),Ct.push(r),Vr(t),Ir(t)},G=0,je=()=>{m(0,0);var t=Ct.pop();Ur(t.excPtr),G=0};class Ht{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){E[this.ptr+4>>2]=r}get_type(){return E[this.ptr+4>>2]}set_destructor(r){E[this.ptr+8>>2]=r}get_destructor(){return E[this.ptr+8>>2]}set_caught(r){r=r?1:0,L[this.ptr+12]=r}get_caught(){return L[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,L[this.ptr+13]=r}get_rethrown(){return L[this.ptr+13]!=0}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){E[this.ptr+16>>2]=r}get_adjusted_ptr(){return E[this.ptr+16>>2]}}var Fe=t=>{throw G||(G=t),G},Pt=t=>Rr(t),Lt=t=>{var r=G;if(!r)return Pt(0),0;var e=new Ht(r);e.set_adjusted_ptr(r);var n=e.get_type();if(!n)return Pt(0),r;for(var a of t){if(a===0||a===n)break;var i=e.ptr+16;if(Hr(a,n,i))return Pt(a),r}return Pt(n),r},Me=()=>Lt([]),We=t=>Lt([t]),Ie=(t,r)=>Lt([t,r]),Re=()=>{var t=Ct.pop();t||Ut("no exception to throw");var r=t.excPtr;throw t.get_rethrown()||(Ct.push(t),t.set_rethrown(!0),t.set_caught(!1),Tt++),G=r,G},Be=(t,r,e)=>{var n=new Ht(t);throw n.init(r,e),G=t,Tt++,G},ke=()=>Tt,Ue=()=>{Ut("")},Et={},zt=t=>{for(;t.length;){var r=t.pop(),e=t.pop();e(r)}};function ht(t){return this.fromWireType(E[t>>2])}var ot={},K={},_t={},mr,At=t=>{throw new mr(t)},tt=(t,r,e)=>{t.forEach(s=>_t[s]=r);function n(s){var l=e(s);l.length!==t.length&&At("Mismatched type converter count");for(var f=0;f{K.hasOwnProperty(s)?a[l]=K[s]:(i.push(s),ot.hasOwnProperty(s)||(ot[s]=[]),ot[s].push(()=>{a[l]=K[s],++u,u===i.length&&n(a)}))}),i.length===0&&n(a)},Ve=t=>{var r=Et[t];delete Et[t];var e=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));tt([t],i,u=>{var s={};return a.forEach((l,f)=>{var h=l.fieldName,v=u[f],g=l.getter,T=l.getterContext,_=u[f+a.length],x=l.setter,O=l.setterContext;s[h]={read:D=>v.fromWireType(g(T,D)),write:(D,rt)=>{var M=[];x(O,D,_.toWireType(M,rt)),zt(M)}}}),[{name:r.name,fromWireType:l=>{var f={};for(var h in s)f[h]=s[h].read(l);return n(l),f},toWireType:(l,f)=>{for(var h in s)if(!(h in f))throw new TypeError(`Missing field: "${h}"`);var v=e();for(h in s)s[h].write(v,f[h]);return l!==null&&l.push(n,v),v},argPackAdvance:z,readValueFromPointer:ht,destructorFunction:n}]})},He=(t,r,e,n,a)=>{},Le=()=>{for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);gr=t},gr,j=t=>{for(var r="",e=t;F[e];)r+=gr[F[e++]];return r},it,C=t=>{throw new it(t)};function ze(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(t||C(`type "${n}" must have a positive integer typeid pointer`),K.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;C(`Cannot register type '${n}' twice`)}if(K[t]=r,delete _t[t],ot.hasOwnProperty(t)){var a=ot[t];delete ot[t],a.forEach(i=>i())}}function k(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ze(t,r,e)}var z=8,Ne=(t,r,e,n)=>{r=j(r),k(t,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?e:n},argPackAdvance:z,readValueFromPointer:function(a){return this.fromWireType(F[a])},destructorFunction:null})},Ge=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),Nt=t=>{function r(e){return e.$$.ptrType.registeredClass.name}C(r(t)+" instance already deleted")},Gt=!1,wr=t=>{},Xe=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},$r=t=>{t.count.value-=1;var r=t.count.value===0;r&&Xe(t)},br=(t,r,e)=>{if(r===e)return t;if(e.baseClass===void 0)return null;var n=br(t,r,e.baseClass);return n===null?null:e.downcast(n)},Cr={},Qe={},Ye=(t,r)=>{for(r===void 0&&C("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},qe=(t,r)=>(r=Ye(t,r),Qe[r]),Ot=(t,r)=>{(!r.ptrType||!r.ptr)&&At("makeClassHandle requires ptr and ptrType");var e=!!r.smartPtrType,n=!!r.smartPtr;return e!==n&&At("Both smartPtrType and smartPtr must be specified"),r.count={value:1},pt(Object.create(t,{$$:{value:r,writable:!0}}))};function Ze(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=qe(this.registeredClass,r);if(e!==void 0){if(e.$$.count.value===0)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Ot(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Ot(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i=this.registeredClass.getActualType(r),u=Cr[i];if(!u)return a.call(this);var s;this.isConst?s=u.constPointerType:s=u.pointerType;var l=br(r,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Ot(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:t}):Ot(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var pt=t=>typeof FinalizationRegistry>"u"?(pt=r=>r,t):(Gt=new FinalizationRegistry(r=>{$r(r.$$)}),pt=r=>{var e=r.$$,n=!!e.smartPtr;if(n){var a={$$:e};Gt.register(r,a,r)}return r},wr=r=>Gt.unregister(r),pt(t)),Dt=[],Je=()=>{for(;Dt.length;){var t=Dt.pop();t.$$.deleteScheduled=!1,t.delete()}},Tr,Ke=()=>{Object.assign(St.prototype,{isAliasOf(t){if(!(this instanceof St)||!(t instanceof St))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&e===a},clone(){if(this.$$.ptr||Nt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=pt(Object.create(Object.getPrototypeOf(this),{$$:{value:Ge(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Nt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),wr(this),$r(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Nt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),Dt.push(this),Dt.length===1&&Tr&&Tr(Je),this.$$.deleteScheduled=!0,this}})};function St(){}var vt=(t,r)=>Object.defineProperty(r,"name",{value:t}),Pr=(t,r,e)=>{if(t[r].overloadTable===void 0){var n=t[r];t[r]=function(){for(var a=arguments.length,i=new Array(a),u=0;u{c.hasOwnProperty(t)?((e===void 0||c[t].overloadTable!==void 0&&c[t].overloadTable[e]!==void 0)&&C(`Cannot register public name '${t}' twice`),Pr(c,t,t),c.hasOwnProperty(e)&&C(`Cannot register multiple overloads of a function with the same number of arguments (${e})!`),c[t].overloadTable[e]=r):(c[t]=r,e!==void 0&&(c[t].numArguments=e))},tn=48,rn=57,en=t=>{t=t.replace(/[^a-zA-Z0-9_]/g,"$");var r=t.charCodeAt(0);return r>=tn&&r<=rn?`_${t}`:t};function nn(t,r,e,n,a,i,u,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=u,this.downcast=s,this.pureVirtualFunctions=[]}var Qt=(t,r,e)=>{for(;r!==e;)r.upcast||C(`Expected null or instance of ${e.name}, got an instance of ${r.name}`),t=r.upcast(t),r=r.baseClass;return t};function an(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${tr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=Qt(r.$$.ptr,e,this.registeredClass);return n}function on(t,r){var e;if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),this.isSmartPointer?(e=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,e),e):0;(!r||!r.$$)&&C(`Cannot pass "${tr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(e=Qt(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&C("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var a=r.clone();e=this.rawShare(e,Q.toHandle(()=>a.delete())),t!==null&&t.push(this.rawDestructor,e)}break;default:C("Unsupporting sharing policy")}return e}function sn(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${tr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=Qt(r.$$.ptr,e,this.registeredClass);return n}var un=()=>{Object.assign(xt.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,t)},argPackAdvance:z,readValueFromPointer:ht,fromWireType:Ze})};function xt(t,r,e,n,a,i,u,s,l,f,h){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=u,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=h,!a&&r.baseClass===void 0?n?(this.toWireType=an,this.destructorFunction=null):(this.toWireType=sn,this.destructorFunction=null):this.toWireType=on}var Er=(t,r,e)=>{c.hasOwnProperty(t)||At("Replacing nonexistent public symbol"),c[t].overloadTable!==void 0&&e!==void 0?c[t].overloadTable[e]=r:(c[t]=r,c[t].argCount=e)},cn=(t,r,e)=>{t=t.replace(/p/g,"i");var n=c["dynCall_"+t];return n(r,...e)},jt=[],_r,b=t=>{var r=jt[t];return r||(t>=jt.length&&(jt.length=t+1),jt[t]=r=_r.get(t)),r},ln=function(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.includes("j"))return cn(t,r,e);var n=b(r)(...e);return n},fn=(t,r)=>function(){for(var e=arguments.length,n=new Array(e),a=0;a{t=j(t);function e(){return t.includes("j")?fn(t,r):b(r)}var n=e();return typeof n!="function"&&C(`unknown function pointer with signature ${t}: ${r}`),n},dn=(t,r)=>{var e=vt(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},e},Ar,Or=t=>{var r=Wr(t),e=j(r);return Y(r),e},Ft=(t,r)=>{var e=[],n={};function a(i){if(!n[i]&&!K[i]){if(_t[i]){_t[i].forEach(a);return}e.push(i),n[i]=!0}}throw r.forEach(a),new Ar(`${t}: `+e.map(Or).join([", "]))},hn=(t,r,e,n,a,i,u,s,l,f,h,v,g)=>{h=j(h),i=U(a,i),s&&(s=U(u,s)),f&&(f=U(l,f)),g=U(v,g);var T=en(h);Xt(T,function(){Ft(`Cannot construct ${h} due to unbound types`,[n])}),tt([t,r,e],n?[n]:[],_=>{_=_[0];var x,O;n?(x=_.registeredClass,O=x.instancePrototype):O=St.prototype;var D=vt(h,function(){if(Object.getPrototypeOf(this)!==rt)throw new it("Use 'new' to construct "+h);if(M.constructor_body===void 0)throw new it(h+" has no accessible constructor");for(var Yr=arguments.length,It=new Array(Yr),Rt=0;Rt{for(var e=[],n=0;n>2]);return e};function pn(t){for(var r=1;r{var u=Yt(r,e);a=U(n,a),tt([],[t],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new it(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Ft(`Cannot construct ${s.name} due to unbound types`,u)},tt([],u,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[r-1]=qt(l,f,null,a,i),[])),[]})},Dr=t=>{t=t.trim();const r=t.indexOf("(");return r!==-1?t.substr(0,r):t},yn=(t,r,e,n,a,i,u,s,l,f)=>{var h=Yt(e,n);r=j(r),r=Dr(r),i=U(a,i),tt([],[t],v=>{v=v[0];var g=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function T(){Ft(`Cannot call ${g} due to unbound types`,h)}var _=v.registeredClass.instancePrototype,x=_[r];return x===void 0||x.overloadTable===void 0&&x.className!==v.name&&x.argCount===e-2?(T.argCount=e-2,T.className=v.name,_[r]=T):(Pr(_,r,g),_[r].overloadTable[e-2]=T),tt([],h,O=>{var D=qt(g,O,v,i,u);return _[r].overloadTable===void 0?(D.argCount=e-2,_[r]=D):_[r].overloadTable[e-2]=D,[]}),[]})},Zt=[],X=[],Jt=t=>{t>9&&--X[t+1]===0&&(X[t]=void 0,Zt.push(t))},mn=()=>X.length/2-5-Zt.length,gn=()=>{X.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=mn},Q={toValue:t=>(t||C("Cannot use deleted val. handle = "+t),X[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Zt.pop()||X.length;return X[r]=t,X[r+1]=1,r}}}},Sr={name:"emscripten::val",fromWireType:t=>{var r=Q.toValue(t);return Jt(t),r},toWireType:(t,r)=>Q.toHandle(r),argPackAdvance:z,readValueFromPointer:ht,destructorFunction:null},wn=t=>k(t,Sr),$n=(t,r,e)=>{switch(r){case 1:return e?function(n){return this.fromWireType(L[n])}:function(n){return this.fromWireType(F[n])};case 2:return e?function(n){return this.fromWireType(at[n>>1])}:function(n){return this.fromWireType(ft[n>>1])};case 4:return e?function(n){return this.fromWireType(Z[n>>2])}:function(n){return this.fromWireType(E[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},bn=(t,r,e,n)=>{r=j(r);function a(){}a.values={},k(t,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,u)=>u.value,argPackAdvance:z,readValueFromPointer:$n(r,e,n),destructorFunction:null}),Xt(r,a)},Kt=(t,r)=>{var e=K[t];return e===void 0&&C(`${r} has unknown type ${Or(t)}`),e},Cn=(t,r,e)=>{var n=Kt(t,"enum");r=j(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:e},constructor:{value:vt(`${n.name}_${r}`,function(){})}});a.values[e]=i,a[r]=i},tr=t=>{if(t===null)return"null";var r=typeof t;return r==="object"||r==="array"||r==="function"?t.toString():""+t},Tn=(t,r)=>{switch(r){case 4:return function(e){return this.fromWireType(ur[e>>2])};case 8:return function(e){return this.fromWireType(cr[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${t}`)}},Pn=(t,r,e)=>{r=j(r),k(t,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:z,readValueFromPointer:Tn(r,e),destructorFunction:null})},En=(t,r,e,n,a,i,u,s)=>{var l=Yt(r,e);t=j(t),t=Dr(t),a=U(n,a),Xt(t,function(){Ft(`Cannot call ${t} due to unbound types`,l)},r-1),tt([],l,f=>{var h=[f[0],null].concat(f.slice(1));return Er(t,qt(t,h,null,a,i),r-1),[]})},_n=(t,r,e)=>{switch(r){case 1:return e?n=>L[n]:n=>F[n];case 2:return e?n=>at[n>>1]:n=>ft[n>>1];case 4:return e?n=>Z[n>>2]:n=>E[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},An=(t,r,e,n,a)=>{r=j(r);var i=h=>h;if(n===0){var u=32-8*e;i=h=>h<>>u}var s=r.includes("unsigned"),l=(h,v)=>{},f;s?f=function(h,v){return l(v,this.name),v>>>0}:f=function(h,v){return l(v,this.name),v},k(t,{name:r,fromWireType:i,toWireType:f,argPackAdvance:z,readValueFromPointer:_n(r,e,n!==0),destructorFunction:null})},On=(t,r,e)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(u){var s=E[u>>2],l=E[u+4>>2];return new a(L.buffer,l,s)}e=j(e),k(t,{name:e,fromWireType:i,argPackAdvance:z,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Dn=Object.assign({optional:!0},Sr),Sn=(t,r)=>{k(t,Dn)},xn=(t,r,e,n)=>{if(!(n>0))return 0;for(var a=e,i=e+n-1,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(e>=i)break;r[e++]=s}else if(s<=2047){if(e+1>=i)break;r[e++]=192|s>>6,r[e++]=128|s&63}else if(s<=65535){if(e+2>=i)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|s&63}else{if(e+3>=i)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|s&63}}return r[e]=0,e-a},yt=(t,r,e)=>xn(t,F,r,e),jn=t=>{for(var r=0,e=0;e=55296&&n<=57343?(r+=4,++e):r+=3}return r},xr=typeof TextDecoder<"u"?new TextDecoder:void 0,jr=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=r+e,a=r;t[a]&&!(a>=n);)++a;if(a-r>16&&t.buffer&&xr)return xr.decode(t.subarray(r,a));for(var i="";r>10,56320|f&1023)}}return i},Fn=(t,r)=>t?jr(F,t,r):"",Mn=(t,r)=>{r=j(r);var e=r==="std::string";k(t,{name:r,fromWireType(n){var a=E[n>>2],i=n+4,u;if(e)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||F[f]==0){var h=f-s,v=Fn(s,h);u===void 0?u=v:(u+="\0",u+=v),s=f+1}}else{for(var g=new Array(a),l=0;l>2]=i,e&&u)yt(a,l,i+1);else if(u)for(var f=0;f255&&(Y(l),C("String has UTF-16 code units that do not fit in 8 bits")),F[l+f]=h}else for(var f=0;f{for(var e=t,n=e>>1,a=n+r/2;!(n>=a)&&ft[n];)++n;if(e=n<<1,e-t>32&&Fr)return Fr.decode(F.subarray(t,e));for(var i="",u=0;!(u>=r/2);++u){var s=at[t+u*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},In=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<2)return 0;e-=2;for(var a=r,i=e>1]=s,r+=2}return at[r>>1]=0,r-a},Rn=t=>t.length*2,Bn=(t,r)=>{for(var e=0,n="";!(e>=r/4);){var a=Z[t+e*4>>2];if(a==0)break;if(++e,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},kn=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<4)return 0;for(var a=r,i=a+e-4,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(Z[r>>2]=s,r+=4,r+4>i)break}return Z[r>>2]=0,r-a},Un=t=>{for(var r=0,e=0;e=55296&&n<=57343&&++e,r+=4}return r},Vn=(t,r,e)=>{e=j(e);var n,a,i,u;r===2?(n=Wn,a=In,u=Rn,i=s=>ft[s>>1]):r===4&&(n=Bn,a=kn,u=Un,i=s=>E[s>>2]),k(t,{name:e,fromWireType:s=>{for(var l=E[s>>2],f,h=s+4,v=0;v<=l;++v){var g=s+4+v*r;if(v==l||i(g)==0){var T=g-h,_=n(h,T);f===void 0?f=_:(f+="\0",f+=_),h=g+r}}return Y(s),f},toWireType:(s,l)=>{typeof l!="string"&&C(`Cannot pass non-string to C++ string type ${e}`);var f=u(l),h=nr(4+f+r);return E[h>>2]=f/r,a(l,h+4,f+r),s!==null&&s.push(Y,h),h},argPackAdvance:z,readValueFromPointer:ht,destructorFunction(s){Y(s)}})},Hn=(t,r,e,n,a,i)=>{Et[t]={name:j(r),rawConstructor:U(e,n),rawDestructor:U(a,i),fields:[]}},Ln=(t,r,e,n,a,i,u,s,l,f)=>{Et[t].fields.push({fieldName:j(r),getterReturnType:e,getter:U(n,a),getterContext:i,setterArgumentType:u,setter:U(s,l),setterContext:f})},zn=(t,r)=>{r=j(r),k(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(e,n)=>{}})},Nn=(t,r,e)=>F.copyWithin(t,r,r+e),rr=[],Gn=(t,r,e,n)=>(t=rr[t],r=Q.toValue(r),t(null,r,e,n)),Xn={},Qn=t=>{var r=Xn[t];return r===void 0?j(t):r},Mr=()=>{if(typeof globalThis=="object")return globalThis;function t(r){r.$$$embind_global$$$=r;var e=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&t(global)?$$$embind_global$$$=global:typeof self=="object"&&t(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Yn=t=>t===0?Q.toHandle(Mr()):(t=Qn(t),Q.toHandle(Mr()[t])),qn=t=>{var r=rr.length;return rr.push(t),r},Zn=(t,r)=>{for(var e=new Array(t),n=0;n>2],"parameter "+n);return e},Jn=Reflect.construct,Kn=(t,r,e)=>{var n=[],a=t.toWireType(n,e);return n.length&&(E[r>>2]=Q.toHandle(n)),a},ta=(t,r,e)=>{var n=Zn(t,r),a=n.shift();t--;var i=new Array(t),u=(l,f,h,v)=>{for(var g=0,T=0;Tl.name).join(", ")}) => ${a.name}>`;return qn(vt(s,u))},ra=t=>{t>9&&(X[t+1]+=1)},ea=t=>{var r=Q.toValue(t);zt(r),Jt(t)},na=(t,r)=>{t=Kt(t,"_emval_take_value");var e=t.readValueFromPointer(r);return Q.toHandle(e)},aa=(t,r,e,n)=>{var a=new Date().getFullYear(),i=new Date(a,0,1),u=new Date(a,6,1),s=i.getTimezoneOffset(),l=u.getTimezoneOffset(),f=Math.max(s,l);E[t>>2]=f*60,Z[r>>2]=+(s!=l);var h=T=>{var _=T>=0?"-":"+",x=Math.abs(T),O=String(Math.floor(x/60)).padStart(2,"0"),D=String(x%60).padStart(2,"0");return`UTC${_}${O}${D}`},v=h(s),g=h(l);l2147483648,ia=(t,r)=>Math.ceil(t/r)*r,sa=t=>{var r=$t.buffer,e=(t-r.byteLength+65535)/65536|0;try{return $t.grow(e),lr(),1}catch{}},ua=t=>{var r=F.length;t>>>=0;var e=oa();if(t>e)return!1;for(var n=1;n<=4;n*=2){var a=r*(1+.2/n);a=Math.min(a,t+100663296);var i=Math.min(e,ia(Math.max(t,a),65536)),u=sa(i);if(u)return!0}return!1},er={},ca=()=>H||"./this.program",mt=()=>{if(!mt.strings){var t=(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:t,_:ca()};for(var e in er)er[e]===void 0?delete r[e]:r[e]=er[e];var n=[];for(var e in r)n.push(`${e}=${r[e]}`);mt.strings=n}return mt.strings},la=(t,r)=>{for(var e=0;e{var e=0;return mt().forEach((n,a)=>{var i=r+e;E[t+a*4>>2]=i,la(n,i),e+=n.length+1}),0},da=(t,r)=>{var e=mt();E[t>>2]=e.length;var n=0;return e.forEach(a=>n+=a.length+1),E[r>>2]=n,0},ha=t=>52;function pa(t,r,e,n,a){return 70}var va=[null,[],[]],ya=(t,r)=>{var e=va[t];r===0||r===10?((t===1?kt:nt)(jr(e)),e.length=0):e.push(r)},ma=(t,r,e,n)=>{for(var a=0,i=0;i>2],s=E[r+4>>2];r+=8;for(var l=0;l>2]=a,0},ga=t=>t;mr=c.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},Le(),it=c.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Ke(),un(),Ar=c.UnboundTypeError=dn(Error,"UnboundTypeError"),gn();var wa={t:xe,x:je,a:Me,j:We,k:Ie,O:Re,q:Be,ga:ke,d:Fe,ca:Ue,va:Ve,ba:He,pa:Ne,ta:hn,sa:vn,E:yn,oa:wn,F:bn,n:Cn,W:Pn,X:En,y:An,u:On,ua:Sn,V:Mn,P:Vn,L:Hn,wa:Ln,qa:zn,ja:Nn,T:Gn,xa:Jt,ya:Yn,U:ta,Y:ra,Z:ea,ra:na,da:aa,ha:ua,ea:fa,fa:da,ia:ha,$:pa,S:ma,J:Ua,C:Ha,Q:Pa,R:Ya,r:Ia,b:$a,D:ka,la:za,c:_a,ka:Na,h:Ta,i:Sa,s:xa,N:Ba,w:Fa,I:Xa,K:Ra,z:La,H:qa,aa:Ja,_:Ka,l:Aa,f:Ea,e:Ca,g:ba,M:Qa,m:Da,ma:Va,p:ja,v:Ma,na:Wa,B:Ga,o:Oa,G:Za,A:ga},A=Se(),Wr=t=>(Wr=A.Ba)(t),Y=c._free=t=>(Y=c._free=A.Ca)(t),nr=c._malloc=t=>(nr=c._malloc=A.Ea)(t),Ir=t=>(Ir=A.Fa)(t),m=(t,r)=>(m=A.Ga)(t,r),Rr=t=>(Rr=A.Ha)(t),Br=t=>(Br=A.Ia)(t),kr=()=>(kr=A.Ja)(),Ur=t=>(Ur=A.Ka)(t),Vr=t=>(Vr=A.La)(t),Hr=(t,r,e)=>(Hr=A.Ma)(t,r,e);c.dynCall_viijii=(t,r,e,n,a,i,u)=>(c.dynCall_viijii=A.Na)(t,r,e,n,a,i,u);var Lr=c.dynCall_jiii=(t,r,e,n)=>(Lr=c.dynCall_jiii=A.Oa)(t,r,e,n);c.dynCall_jiji=(t,r,e,n,a)=>(c.dynCall_jiji=A.Pa)(t,r,e,n,a);var zr=c.dynCall_jiiii=(t,r,e,n,a)=>(zr=c.dynCall_jiiii=A.Qa)(t,r,e,n,a);c.dynCall_iiiiij=(t,r,e,n,a,i,u)=>(c.dynCall_iiiiij=A.Ra)(t,r,e,n,a,i,u),c.dynCall_iiiiijj=(t,r,e,n,a,i,u,s,l)=>(c.dynCall_iiiiijj=A.Sa)(t,r,e,n,a,i,u,s,l),c.dynCall_iiiiiijj=(t,r,e,n,a,i,u,s,l,f)=>(c.dynCall_iiiiiijj=A.Ta)(t,r,e,n,a,i,u,s,l,f);function $a(t,r){var e=$();try{return b(t)(r)}catch(n){if(w(e),n!==n+0)throw n;m(1,0)}}function ba(t,r,e,n){var a=$();try{b(t)(r,e,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Ca(t,r,e){var n=$();try{b(t)(r,e)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function Ta(t,r,e,n){var a=$();try{return b(t)(r,e,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Pa(t,r,e,n,a){var i=$();try{return b(t)(r,e,n,a)}catch(u){if(w(i),u!==u+0)throw u;m(1,0)}}function Ea(t,r){var e=$();try{b(t)(r)}catch(n){if(w(e),n!==n+0)throw n;m(1,0)}}function _a(t,r,e){var n=$();try{return b(t)(r,e)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function Aa(t){var r=$();try{b(t)()}catch(e){if(w(r),e!==e+0)throw e;m(1,0)}}function Oa(t,r,e,n,a,i,u,s,l,f,h){var v=$();try{b(t)(r,e,n,a,i,u,s,l,f,h)}catch(g){if(w(v),g!==g+0)throw g;m(1,0)}}function Da(t,r,e,n,a){var i=$();try{b(t)(r,e,n,a)}catch(u){if(w(i),u!==u+0)throw u;m(1,0)}}function Sa(t,r,e,n,a){var i=$();try{return b(t)(r,e,n,a)}catch(u){if(w(i),u!==u+0)throw u;m(1,0)}}function xa(t,r,e,n,a,i){var u=$();try{return b(t)(r,e,n,a,i)}catch(s){if(w(u),s!==s+0)throw s;m(1,0)}}function ja(t,r,e,n,a,i){var u=$();try{b(t)(r,e,n,a,i)}catch(s){if(w(u),s!==s+0)throw s;m(1,0)}}function Fa(t,r,e,n,a,i,u){var s=$();try{return b(t)(r,e,n,a,i,u)}catch(l){if(w(s),l!==l+0)throw l;m(1,0)}}function Ma(t,r,e,n,a,i,u,s){var l=$();try{b(t)(r,e,n,a,i,u,s)}catch(f){if(w(l),f!==f+0)throw f;m(1,0)}}function Wa(t,r,e,n,a,i,u,s,l){var f=$();try{b(t)(r,e,n,a,i,u,s,l)}catch(h){if(w(f),h!==h+0)throw h;m(1,0)}}function Ia(t){var r=$();try{return b(t)()}catch(e){if(w(r),e!==e+0)throw e;m(1,0)}}function Ra(t,r,e,n,a,i,u,s,l){var f=$();try{return b(t)(r,e,n,a,i,u,s,l)}catch(h){if(w(f),h!==h+0)throw h;m(1,0)}}function Ba(t,r,e,n,a,i,u){var s=$();try{return b(t)(r,e,n,a,i,u)}catch(l){if(w(s),l!==l+0)throw l;m(1,0)}}function ka(t,r,e,n){var a=$();try{return b(t)(r,e,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Ua(t,r,e,n){var a=$();try{return b(t)(r,e,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Va(t,r,e,n,a,i,u,s){var l=$();try{b(t)(r,e,n,a,i,u,s)}catch(f){if(w(l),f!==f+0)throw f;m(1,0)}}function Ha(t,r,e,n,a,i){var u=$();try{return b(t)(r,e,n,a,i)}catch(s){if(w(u),s!==s+0)throw s;m(1,0)}}function La(t,r,e,n,a,i,u,s,l,f){var h=$();try{return b(t)(r,e,n,a,i,u,s,l,f)}catch(v){if(w(h),v!==v+0)throw v;m(1,0)}}function za(t,r,e){var n=$();try{return b(t)(r,e)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function Na(t,r,e,n,a){var i=$();try{return b(t)(r,e,n,a)}catch(u){if(w(i),u!==u+0)throw u;m(1,0)}}function Ga(t,r,e,n,a,i,u,s,l,f){var h=$();try{b(t)(r,e,n,a,i,u,s,l,f)}catch(v){if(w(h),v!==v+0)throw v;m(1,0)}}function Xa(t,r,e,n,a,i,u,s){var l=$();try{return b(t)(r,e,n,a,i,u,s)}catch(f){if(w(l),f!==f+0)throw f;m(1,0)}}function Qa(t,r,e,n,a,i,u){var s=$();try{b(t)(r,e,n,a,i,u)}catch(l){if(w(s),l!==l+0)throw l;m(1,0)}}function Ya(t,r,e,n){var a=$();try{return b(t)(r,e,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function qa(t,r,e,n,a,i,u,s,l,f,h,v){var g=$();try{return b(t)(r,e,n,a,i,u,s,l,f,h,v)}catch(T){if(w(g),T!==T+0)throw T;m(1,0)}}function Za(t,r,e,n,a,i,u,s,l,f,h,v,g,T,_,x){var O=$();try{b(t)(r,e,n,a,i,u,s,l,f,h,v,g,T,_,x)}catch(D){if(w(O),D!==D+0)throw D;m(1,0)}}function Ja(t,r,e,n){var a=$();try{return Lr(t,r,e,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Ka(t,r,e,n,a){var i=$();try{return zr(t,r,e,n,a)}catch(u){if(w(i),u!==u+0)throw u;m(1,0)}}var Mt,Nr;dt=function t(){Mt||Gr(),Mt||(dt=t)};function Gr(){if(J>0||!Nr&&(Nr=1,me(),J>0))return;function t(){var r;Mt||(Mt=1,c.calledRun=1,!sr&&(ge(),P(c),(r=c.onRuntimeInitialized)===null||r===void 0||r.call(c),we()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),t()},1)):t()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Gr(),y=B,y}})();function po(o){return ir(Bt,o)}function vo(o){return lo(Bt,o)}async function yo(o,d){return fo(Bt,o,d)}async function mo(o,d){return ho(Bt,o,d)}const se=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["databar_limited","DataBarLimited"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],go=[...se,["unknown"]].map(o=>o[0]),or=new Map(se);function wo(o){for(const[d,p]of or)if(o===p)return d;return"unknown"}function $o(o){if(ue(o))return{width:o.naturalWidth,height:o.naturalHeight};if(ce(o))return{width:o.width.baseVal.value,height:o.height.baseVal.value};if(le(o))return{width:o.videoWidth,height:o.videoHeight};if(de(o))return{width:o.width,height:o.height};if(pe(o))return{width:o.displayWidth,height:o.displayHeight};if(fe(o))return{width:o.width,height:o.height};if(he(o))return{width:o.width,height:o.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function ue(o){var d,p;try{return o instanceof((p=(d=o==null?void 0:o.ownerDocument)==null?void 0:d.defaultView)==null?void 0:p.HTMLImageElement)}catch{return!1}}function ce(o){var d,p;try{return o instanceof((p=(d=o==null?void 0:o.ownerDocument)==null?void 0:d.defaultView)==null?void 0:p.SVGImageElement)}catch{return!1}}function le(o){var d,p;try{return o instanceof((p=(d=o==null?void 0:o.ownerDocument)==null?void 0:d.defaultView)==null?void 0:p.HTMLVideoElement)}catch{return!1}}function fe(o){var d,p;try{return o instanceof((p=(d=o==null?void 0:o.ownerDocument)==null?void 0:d.defaultView)==null?void 0:p.HTMLCanvasElement)}catch{return!1}}function de(o){try{return o instanceof ImageBitmap||Object.prototype.toString.call(o)==="[object ImageBitmap]"}catch{return!1}}function he(o){try{return o instanceof OffscreenCanvas||Object.prototype.toString.call(o)==="[object OffscreenCanvas]"}catch{return!1}}function pe(o){try{return o instanceof VideoFrame||Object.prototype.toString.call(o)==="[object VideoFrame]"}catch{return!1}}function ve(o){try{return o instanceof Blob||Object.prototype.toString.call(o)==="[object Blob]"}catch{return!1}}function bo(o){try{return o instanceof ImageData||Object.prototype.toString.call(o)==="[object ImageData]"}catch{return!1}}function Co(o,d){try{const p=new OffscreenCanvas(o,d);if(p.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return p;throw void 0}catch{const p=document.createElement("canvas");return p.width=o,p.height=d,p}}async function ye(o){if(ue(o)&&!await _o(o))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(ce(o)&&!await Ao(o))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(pe(o)&&Oo(o))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(le(o)&&(o.readyState===0||o.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(de(o)&&So(o))throw new DOMException("The image source is detached.","InvalidStateError");const{width:d,height:p}=$o(o);if(d===0||p===0)return null;const c=Co(d,p).getContext("2d");c.drawImage(o,0,0);try{return c.getImageData(0,0,d,p)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function To(o){let d;try{if(globalThis.createImageBitmap)d=await createImageBitmap(o);else if(globalThis.Image){d=new Image;let y="";try{y=URL.createObjectURL(o),d.src=y,await d.decode()}finally{URL.revokeObjectURL(y)}}else return o}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await ye(d)}function Po(o){const{width:d,height:p}=o;if(d===0||p===0)return null;const y=o.getContext("2d");try{return y.getImageData(0,0,d,p)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Eo(o){if(ve(o))return await To(o);if(bo(o)){if(Do(o))throw new DOMException("The image data has been detached.","InvalidStateError");return o}return fe(o)||he(o)?Po(o):await ye(o)}async function _o(o){try{return await o.decode(),!0}catch{return!1}}async function Ao(o){var d;try{return await((d=o.decode)==null?void 0:d.call(o)),!0}catch{return!1}}function Oo(o){return o.format===null}function Do(o){return o.data.buffer.byteLength===0}function So(o){return o.width===0&&o.height===0}function ae(o,d){return xo(o)?new DOMException(`${d}: ${o.message}`,o.name):jo(o)?new o.constructor(`${d}: ${o.message}`):new Error(`${d}: ${o}`)}function xo(o){return o instanceof DOMException||Object.prototype.toString.call(o)==="[object DOMException]"}function jo(o){return o instanceof Error||Object.prototype.toString.call(o)==="[object Error]"}var gt;class Fo extends EventTarget{constructor(p={}){var y;super();te(this,gt);try{const c=(y=p==null?void 0:p.formats)==null?void 0:y.filter(P=>P!=="unknown");if((c==null?void 0:c.length)===0)throw new TypeError("Hint option provided, but is empty.");for(const P of c!=null?c:[])if(!or.has(P))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${P}' is not a valid enum value of type BarcodeFormat.`);re(this,gt,c!=null?c:[]),po().then(P=>{this.dispatchEvent(new CustomEvent("load",{detail:P}))}).catch(P=>{this.dispatchEvent(new CustomEvent("error",{detail:P}))})}catch(c){throw ae(c,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return go.filter(p=>p!=="unknown")}async detect(p){try{const y=await Eo(p);if(y===null)return[];let c;const P={tryHarder:!0,returnCodabarStartEnd:!0,formats:Kr(this,gt).map(S=>or.get(S))};try{ve(y)?c=await yo(y,P):c=await mo(y,P)}catch(S){throw console.error(S),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return c.map(S=>{const{topLeft:{x:B,y:V},topRight:{x:R,y:W},bottomLeft:{x:N,y:H},bottomRight:{x:I,y:ut}}=S.position,ct=Math.min(B,R,N,I),et=Math.min(V,W,H,ut),lt=Math.max(B,R,N,I),kt=Math.max(V,W,H,ut);return{boundingBox:new DOMRectReadOnly(ct,et,lt-ct,kt-et),rawValue:S.text,format:wo(S.format),cornerPoints:[{x:B,y:V},{x:R,y:W},{x:I,y:ut},{x:N,y:H}]}})}catch(y){throw ae(y,"Failed to execute 'detect' on 'BarcodeDetector'")}}}gt=new WeakMap;exports.BarcodeDetector=Fo;exports.setZXingModuleOverrides=vo; diff --git a/node_modules/barcode-detector/dist/cjs/side-effects.d.ts b/node_modules/barcode-detector/dist/cjs/side-effects.d.ts new file mode 100644 index 0000000..9b0973c --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/side-effects.d.ts @@ -0,0 +1,8 @@ +export { setZXingModuleOverrides } from "./BarcodeDetector.js"; +declare global { + var BarcodeDetector: typeof import("./BarcodeDetector.js").BarcodeDetector; + type BarcodeDetector = import("./BarcodeDetector.js").BarcodeDetector; + type BarcodeFormat = import("./BarcodeDetector.js").BarcodeFormat; + type BarcodeDetectorOptions = import("./BarcodeDetector.js").BarcodeDetectorOptions; + type DetectedBarcode = import("./BarcodeDetector.js").DetectedBarcode; +} diff --git a/node_modules/barcode-detector/dist/cjs/side-effects.js b/node_modules/barcode-detector/dist/cjs/side-effects.js new file mode 100644 index 0000000..4173943 --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/side-effects.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./pure.js");var e;(e=globalThis.BarcodeDetector)!=null||(globalThis.BarcodeDetector=r.BarcodeDetector);exports.setZXingModuleOverrides=r.setZXingModuleOverrides; diff --git a/node_modules/barcode-detector/dist/cjs/utils.d.ts b/node_modules/barcode-detector/dist/cjs/utils.d.ts new file mode 100644 index 0000000..71b846a --- /dev/null +++ b/node_modules/barcode-detector/dist/cjs/utils.d.ts @@ -0,0 +1,14 @@ +import type { ReadInputBarcodeFormat, ReadOutputBarcodeFormat } from "zxing-wasm/reader"; +export declare const BARCODE_FORMATS: ("aztec" | "code_128" | "code_39" | "code_93" | "codabar" | "databar" | "databar_expanded" | "databar_limited" | "data_matrix" | "dx_film_edge" | "ean_13" | "ean_8" | "itf" | "maxi_code" | "micro_qr_code" | "pdf417" | "qr_code" | "rm_qr_code" | "upc_a" | "upc_e" | "linear_codes" | "matrix_codes" | "unknown")[]; +export type BarcodeFormat = (typeof BARCODE_FORMATS)[number]; +export type ReadResultBarcodeFormat = Exclude; +export declare const formatMap: Map<"aztec" | "code_128" | "code_39" | "code_93" | "codabar" | "databar" | "databar_expanded" | "databar_limited" | "data_matrix" | "dx_film_edge" | "ean_13" | "ean_8" | "itf" | "maxi_code" | "micro_qr_code" | "pdf417" | "qr_code" | "rm_qr_code" | "upc_a" | "upc_e" | "linear_codes" | "matrix_codes" | "unknown", ReadInputBarcodeFormat>; +export declare function convertFormat(target: ReadOutputBarcodeFormat): ReadResultBarcodeFormat; +export declare function isBlob(image: ImageBitmapSourceWebCodecs): image is Blob; +export declare function getImageDataOrBlobFromImageBitmapSource(image: ImageBitmapSourceWebCodecs): Promise; +declare global { + interface SVGImageElement { + decode?(): Promise; + } +} +export declare function addPrefixToExceptionOrError(e: unknown, prefix: string): TypeError | DOMException; diff --git a/node_modules/barcode-detector/dist/es/BarcodeDetector.d.ts b/node_modules/barcode-detector/dist/es/BarcodeDetector.d.ts new file mode 100644 index 0000000..795e0bd --- /dev/null +++ b/node_modules/barcode-detector/dist/es/BarcodeDetector.d.ts @@ -0,0 +1,34 @@ +import { type ZXingReaderModule } from "zxing-wasm/reader"; +import { type BarcodeFormat, type ReadResultBarcodeFormat } from "./utils.js"; +export type { BarcodeFormat } from "./utils.js"; +export interface BarcodeDetectorOptions { + formats?: BarcodeFormat[]; +} +export interface Point2D { + x: number; + y: number; +} +export interface DetectedBarcode { + boundingBox: DOMRectReadOnly; + rawValue: string; + format: ReadResultBarcodeFormat; + cornerPoints: [Point2D, Point2D, Point2D, Point2D]; +} +interface CustomEventMap { + load: CustomEvent; + error: CustomEvent; +} +type ChangeEventListener = (type: K, callback: ((evt: CustomEventMap[K]) => void) | { + handleEvent(evt: CustomEventMap[K]): void; +} | null, options?: boolean | AddEventListenerOptions | undefined) => void; +export interface BarcodeDetector { + addEventListener: ChangeEventListener; + removeEventListener: ChangeEventListener; +} +export declare class BarcodeDetector extends EventTarget { + #private; + constructor(barcodeDectorOptions?: BarcodeDetectorOptions); + static getSupportedFormats(): Promise; + detect(image: ImageBitmapSourceWebCodecs): Promise; +} +export { setZXingModuleOverrides } from "zxing-wasm/reader"; diff --git a/node_modules/barcode-detector/dist/es/index.d.ts b/node_modules/barcode-detector/dist/es/index.d.ts new file mode 100644 index 0000000..5785a01 --- /dev/null +++ b/node_modules/barcode-detector/dist/es/index.d.ts @@ -0,0 +1,2 @@ +import "./side-effects.js"; +export * from "./pure.js"; diff --git a/node_modules/barcode-detector/dist/es/index.js b/node_modules/barcode-detector/dist/es/index.js new file mode 100644 index 0000000..d82ed8f --- /dev/null +++ b/node_modules/barcode-detector/dist/es/index.js @@ -0,0 +1,6 @@ +import "./side-effects.js"; +import { BarcodeDetector as t, setZXingModuleOverrides as d } from "./pure.js"; +export { + t as BarcodeDetector, + d as setZXingModuleOverrides +}; diff --git a/node_modules/barcode-detector/dist/es/pure.d.ts b/node_modules/barcode-detector/dist/es/pure.d.ts new file mode 100644 index 0000000..29bd716 --- /dev/null +++ b/node_modules/barcode-detector/dist/es/pure.d.ts @@ -0,0 +1 @@ +export * from "./BarcodeDetector.js"; diff --git a/node_modules/barcode-detector/dist/es/pure.js b/node_modules/barcode-detector/dist/es/pure.js new file mode 100644 index 0000000..a2e3fb5 --- /dev/null +++ b/node_modules/barcode-detector/dist/es/pure.js @@ -0,0 +1,2176 @@ +var Zr = (o) => { + throw TypeError(o); +}; +var Jr = (o, d, p) => d.has(o) || Zr("Cannot " + p); +var Kr = (o, d, p) => (Jr(o, d, "read from private field"), p ? p.call(o) : d.get(o)), te = (o, d, p) => d.has(o) ? Zr("Cannot add the same private member more than once") : d instanceof WeakSet ? d.add(o) : d.set(o, p), re = (o, d, p, y) => (Jr(o, d, "write to private field"), y ? y.call(o, p) : d.set(o, p), p); +const ee = [ + "Aztec", + "Codabar", + "Code128", + "Code39", + "Code93", + "DataBar", + "DataBarExpanded", + "DataBarLimited", + "DataMatrix", + "DXFilmEdge", + "EAN-13", + "EAN-8", + "ITF", + "Linear-Codes", + "Matrix-Codes", + "MaxiCode", + "MicroQRCode", + "None", + "PDF417", + "QRCode", + "rMQRCode", + "UPC-A", + "UPC-E" +]; +function ro(o) { + return o.join("|"); +} +function eo(o) { + const d = ne(o); + let p = 0, y = ee.length - 1; + for (; p <= y; ) { + const c = Math.floor((p + y) / 2), P = ee[c], D = ne(P); + if (D === d) + return P; + D < d ? p = c + 1 : y = c - 1; + } + return "None"; +} +function ne(o) { + return o.toLowerCase().replace(/_-\[\]/g, ""); +} +function no(o, d) { + return o.Binarizer[d]; +} +function ao(o, d) { + return o.CharacterSet[d]; +} +const oo = [ + "Text", + "Binary", + "Mixed", + "GS1", + "ISO15434", + "UnknownECI" +]; +function io(o) { + return oo[o.value]; +} +function so(o, d) { + return o.EanAddOnSymbol[d]; +} +function uo(o, d) { + return o.TextMode[d]; +} +const st = { + formats: [], + tryHarder: !0, + tryRotate: !0, + tryInvert: !0, + tryDownscale: !0, + binarizer: "LocalAverage", + isPure: !1, + downscaleFactor: 3, + downscaleThreshold: 500, + minLineCount: 2, + maxNumberOfSymbols: 255, + tryCode39ExtendedMode: !1, + validateCode39CheckSum: !1, + validateITFCheckSum: !1, + returnCodabarStartEnd: !1, + returnErrors: !1, + eanAddOnSymbol: "Read", + textMode: "Plain", + characterSet: "Unknown" +}; +function oe(o, d) { + return { + ...d, + formats: ro(d.formats), + binarizer: no(o, d.binarizer), + eanAddOnSymbol: so( + o, + d.eanAddOnSymbol + ), + textMode: uo(o, d.textMode), + characterSet: ao( + o, + d.characterSet + ) + }; +} +function ie(o) { + return { + ...o, + format: eo(o.format), + eccLevel: o.eccLevel, + contentType: io(o.contentType) + }; +} +const co = { + locateFile: (o, d) => { + const p = o.match(/_(.+?)\.wasm$/); + return p ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${p[1]}/${o}` : d + o; + } +}; +let ar = /* @__PURE__ */ new WeakMap(); +function ir(o, d) { + var p; + const y = ar.get(o); + if (y != null && y.modulePromise && d === void 0) + return y.modulePromise; + const c = (p = y == null ? void 0 : y.moduleOverrides) != null ? p : co, P = o({ + ...c + }); + return ar.set(o, { + moduleOverrides: c, + modulePromise: P + }), P; +} +function lo(o, d) { + ar.set(o, { + moduleOverrides: d + }); +} +async function fo(o, d, p = st) { + const y = { + ...st, + ...p + }, c = await ir(o), { size: P } = d, D = new Uint8Array(await d.arrayBuffer()), B = c._malloc(P); + c.HEAPU8.set(D, B); + const V = c.readBarcodesFromImage( + B, + P, + oe(c, y) + ); + c._free(B); + const R = []; + for (let W = 0; W < V.size(); ++W) + R.push( + ie(V.get(W)) + ); + return R; +} +async function ho(o, d, p = st) { + const y = { + ...st, + ...p + }, c = await ir(o), { + data: P, + width: D, + height: B, + data: { byteLength: V } + } = d, R = c._malloc(V); + c.HEAPU8.set(P, R); + const W = c.readBarcodesFromPixmap( + R, + D, + B, + oe(c, y) + ); + c._free(R); + const N = []; + for (let H = 0; H < W.size(); ++H) + N.push( + ie(W.get(H)) + ); + return N; +} +({ + ...st, + formats: [...st.formats] +}); +var Bt = (() => { + var o, d = typeof document < "u" && ((o = document.currentScript) == null ? void 0 : o.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(p = {}) { + var y, c = p, P, D, B = new Promise((t, r) => { + P = t, D = r; + }), V = typeof window == "object", R = typeof Bun < "u", W = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var N = Object.assign({}, c), H = "./this.program", I = ""; + function ut(t) { + return c.locateFile ? c.locateFile(t, I) : I + t; + } + var ct, et; + if (V || W || R) { + var lt; + W ? I = self.location.href : typeof document < "u" && ((lt = document.currentScript) === null || lt === void 0 ? void 0 : lt.tagName.toUpperCase()) === "SCRIPT" && (I = document.currentScript.src), d && (I = d), I.startsWith("blob:") ? I = "" : I = I.substr(0, I.replace(/[?#].*/, "").lastIndexOf("/") + 1), W && (et = (t) => { + var r = new XMLHttpRequest(); + return r.open("GET", t, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response); + }), ct = (t) => fetch(t, { + credentials: "same-origin" + }).then((r) => r.ok ? r.arrayBuffer() : Promise.reject(new Error(r.status + " : " + r.url))); + } + var kt = c.print || console.log.bind(console), nt = c.printErr || console.error.bind(console); + Object.assign(c, N), N = null, c.arguments && c.arguments, c.thisProgram && (H = c.thisProgram); + var wt = c.wasmBinary, $t, sr = !1, L, F, at, ft, Z, E, ur, cr; + function lr() { + var t = $t.buffer; + c.HEAP8 = L = new Int8Array(t), c.HEAP16 = at = new Int16Array(t), c.HEAPU8 = F = new Uint8Array(t), c.HEAPU16 = ft = new Uint16Array(t), c.HEAP32 = Z = new Int32Array(t), c.HEAPU32 = E = new Uint32Array(t), c.HEAPF32 = ur = new Float32Array(t), c.HEAPF64 = cr = new Float64Array(t); + } + var fr = [], dr = [], hr = []; + function me() { + var t = c.preRun; + t && (typeof t == "function" && (t = [t]), t.forEach($e)), Vt(fr); + } + function ge() { + Vt(dr); + } + function we() { + var t = c.postRun; + t && (typeof t == "function" && (t = [t]), t.forEach(Ce)), Vt(hr); + } + function $e(t) { + fr.unshift(t); + } + function be(t) { + dr.unshift(t); + } + function Ce(t) { + hr.unshift(t); + } + var J = 0, dt = null; + function Te(t) { + var r; + J++, (r = c.monitorRunDependencies) === null || r === void 0 || r.call(c, J); + } + function Pe(t) { + var r; + if (J--, (r = c.monitorRunDependencies) === null || r === void 0 || r.call(c, J), J == 0 && dt) { + var e = dt; + dt = null, e(); + } + } + function Ut(t) { + var r; + (r = c.onAbort) === null || r === void 0 || r.call(c, t), t = "Aborted(" + t + ")", nt(t), sr = !0, t += ". Build with -sASSERTIONS for more info."; + var e = new WebAssembly.RuntimeError(t); + throw D(e), e; + } + var Ee = "data:application/octet-stream;base64,", pr = (t) => t.startsWith(Ee); + function _e() { + var t = "zxing_reader.wasm"; + return pr(t) ? t : ut(t); + } + var bt; + function vr(t) { + if (t == bt && wt) + return new Uint8Array(wt); + if (et) + return et(t); + throw "both async and sync fetching of the wasm failed"; + } + function Ae(t) { + return wt ? Promise.resolve().then(() => vr(t)) : ct(t).then((r) => new Uint8Array(r), () => vr(t)); + } + function yr(t, r, e) { + return Ae(t).then((n) => WebAssembly.instantiate(n, r)).then(e, (n) => { + nt(`failed to asynchronously prepare wasm: ${n}`), Ut(n); + }); + } + function Oe(t, r, e, n) { + return !t && typeof WebAssembly.instantiateStreaming == "function" && !pr(r) && typeof fetch == "function" ? fetch(r, { + credentials: "same-origin" + }).then((a) => { + var i = WebAssembly.instantiateStreaming(a, e); + return i.then(n, function(u) { + return nt(`wasm streaming compile failed: ${u}`), nt("falling back to ArrayBuffer instantiation"), yr(r, e, n); + }); + }) : yr(r, e, n); + } + function xe() { + return { + a: wa + }; + } + function De() { + var t, r = xe(); + function e(a, i) { + return A = a.exports, $t = A.za, lr(), _r = A.Da, be(A.Aa), Pe(), A; + } + Te(); + function n(a) { + e(a.instance); + } + if (c.instantiateWasm) + try { + return c.instantiateWasm(r, e); + } catch (a) { + nt(`Module.instantiateWasm callback failed with error: ${a}`), D(a); + } + return (t = bt) !== null && t !== void 0 || (bt = _e()), Oe(wt, bt, r, n).catch(D), {}; + } + var Vt = (t) => { + t.forEach((r) => r(c)); + }; + c.noExitRuntime; + var w = (t) => Br(t), $ = () => kr(), Ct = [], Tt = 0, Se = (t) => { + var r = new Ht(t); + return r.get_caught() || (r.set_caught(!0), Tt--), r.set_rethrown(!1), Ct.push(r), Vr(t), Ir(t); + }, G = 0, je = () => { + m(0, 0); + var t = Ct.pop(); + Ur(t.excPtr), G = 0; + }; + class Ht { + constructor(r) { + this.excPtr = r, this.ptr = r - 24; + } + set_type(r) { + E[this.ptr + 4 >> 2] = r; + } + get_type() { + return E[this.ptr + 4 >> 2]; + } + set_destructor(r) { + E[this.ptr + 8 >> 2] = r; + } + get_destructor() { + return E[this.ptr + 8 >> 2]; + } + set_caught(r) { + r = r ? 1 : 0, L[this.ptr + 12] = r; + } + get_caught() { + return L[this.ptr + 12] != 0; + } + set_rethrown(r) { + r = r ? 1 : 0, L[this.ptr + 13] = r; + } + get_rethrown() { + return L[this.ptr + 13] != 0; + } + init(r, e) { + this.set_adjusted_ptr(0), this.set_type(r), this.set_destructor(e); + } + set_adjusted_ptr(r) { + E[this.ptr + 16 >> 2] = r; + } + get_adjusted_ptr() { + return E[this.ptr + 16 >> 2]; + } + } + var Fe = (t) => { + throw G || (G = t), G; + }, Pt = (t) => Rr(t), Lt = (t) => { + var r = G; + if (!r) + return Pt(0), 0; + var e = new Ht(r); + e.set_adjusted_ptr(r); + var n = e.get_type(); + if (!n) + return Pt(0), r; + for (var a of t) { + if (a === 0 || a === n) + break; + var i = e.ptr + 16; + if (Hr(a, n, i)) + return Pt(a), r; + } + return Pt(n), r; + }, Me = () => Lt([]), We = (t) => Lt([t]), Ie = (t, r) => Lt([t, r]), Re = () => { + var t = Ct.pop(); + t || Ut("no exception to throw"); + var r = t.excPtr; + throw t.get_rethrown() || (Ct.push(t), t.set_rethrown(!0), t.set_caught(!1), Tt++), G = r, G; + }, Be = (t, r, e) => { + var n = new Ht(t); + throw n.init(r, e), G = t, Tt++, G; + }, ke = () => Tt, Ue = () => { + Ut(""); + }, Et = {}, zt = (t) => { + for (; t.length; ) { + var r = t.pop(), e = t.pop(); + e(r); + } + }; + function ht(t) { + return this.fromWireType(E[t >> 2]); + } + var ot = {}, K = {}, _t = {}, mr, At = (t) => { + throw new mr(t); + }, tt = (t, r, e) => { + t.forEach((s) => _t[s] = r); + function n(s) { + var l = e(s); + l.length !== t.length && At("Mismatched type converter count"); + for (var f = 0; f < t.length; ++f) + k(t[f], l[f]); + } + var a = new Array(r.length), i = [], u = 0; + r.forEach((s, l) => { + K.hasOwnProperty(s) ? a[l] = K[s] : (i.push(s), ot.hasOwnProperty(s) || (ot[s] = []), ot[s].push(() => { + a[l] = K[s], ++u, u === i.length && n(a); + })); + }), i.length === 0 && n(a); + }, Ve = (t) => { + var r = Et[t]; + delete Et[t]; + var e = r.rawConstructor, n = r.rawDestructor, a = r.fields, i = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType)); + tt([t], i, (u) => { + var s = {}; + return a.forEach((l, f) => { + var h = l.fieldName, v = u[f], g = l.getter, T = l.getterContext, _ = u[f + a.length], S = l.setter, O = l.setterContext; + s[h] = { + read: (x) => v.fromWireType(g(T, x)), + write: (x, rt) => { + var M = []; + S(O, x, _.toWireType(M, rt)), zt(M); + } + }; + }), [{ + name: r.name, + fromWireType: (l) => { + var f = {}; + for (var h in s) + f[h] = s[h].read(l); + return n(l), f; + }, + toWireType: (l, f) => { + for (var h in s) + if (!(h in f)) + throw new TypeError(`Missing field: "${h}"`); + var v = e(); + for (h in s) + s[h].write(v, f[h]); + return l !== null && l.push(n, v), v; + }, + argPackAdvance: z, + readValueFromPointer: ht, + destructorFunction: n + }]; + }); + }, He = (t, r, e, n, a) => { + }, Le = () => { + for (var t = new Array(256), r = 0; r < 256; ++r) + t[r] = String.fromCharCode(r); + gr = t; + }, gr, j = (t) => { + for (var r = "", e = t; F[e]; ) + r += gr[F[e++]]; + return r; + }, it, C = (t) => { + throw new it(t); + }; + function ze(t, r) { + let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = r.name; + if (t || C(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(t)) { + if (e.ignoreDuplicateRegistrations) + return; + C(`Cannot register type '${n}' twice`); + } + if (K[t] = r, delete _t[t], ot.hasOwnProperty(t)) { + var a = ot[t]; + delete ot[t], a.forEach((i) => i()); + } + } + function k(t, r) { + let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return ze(t, r, e); + } + var z = 8, Ne = (t, r, e, n) => { + r = j(r), k(t, { + name: r, + fromWireType: function(a) { + return !!a; + }, + toWireType: function(a, i) { + return i ? e : n; + }, + argPackAdvance: z, + readValueFromPointer: function(a) { + return this.fromWireType(F[a]); + }, + destructorFunction: null + }); + }, Ge = (t) => ({ + count: t.count, + deleteScheduled: t.deleteScheduled, + preservePointerOnDelete: t.preservePointerOnDelete, + ptr: t.ptr, + ptrType: t.ptrType, + smartPtr: t.smartPtr, + smartPtrType: t.smartPtrType + }), Nt = (t) => { + function r(e) { + return e.$$.ptrType.registeredClass.name; + } + C(r(t) + " instance already deleted"); + }, Gt = !1, wr = (t) => { + }, Xe = (t) => { + t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr); + }, $r = (t) => { + t.count.value -= 1; + var r = t.count.value === 0; + r && Xe(t); + }, br = (t, r, e) => { + if (r === e) + return t; + if (e.baseClass === void 0) + return null; + var n = br(t, r, e.baseClass); + return n === null ? null : e.downcast(n); + }, Cr = {}, Qe = {}, Ye = (t, r) => { + for (r === void 0 && C("ptr should not be undefined"); t.baseClass; ) + r = t.upcast(r), t = t.baseClass; + return r; + }, qe = (t, r) => (r = Ye(t, r), Qe[r]), Ot = (t, r) => { + (!r.ptrType || !r.ptr) && At("makeClassHandle requires ptr and ptrType"); + var e = !!r.smartPtrType, n = !!r.smartPtr; + return e !== n && At("Both smartPtrType and smartPtr must be specified"), r.count = { + value: 1 + }, pt(Object.create(t, { + $$: { + value: r, + writable: !0 + } + })); + }; + function Ze(t) { + var r = this.getPointee(t); + if (!r) + return this.destructor(t), null; + var e = qe(this.registeredClass, r); + if (e !== void 0) { + if (e.$$.count.value === 0) + return e.$$.ptr = r, e.$$.smartPtr = t, e.clone(); + var n = e.clone(); + return this.destructor(t), n; + } + function a() { + return this.isSmartPointer ? Ot(this.registeredClass.instancePrototype, { + ptrType: this.pointeeType, + ptr: r, + smartPtrType: this, + smartPtr: t + }) : Ot(this.registeredClass.instancePrototype, { + ptrType: this, + ptr: t + }); + } + var i = this.registeredClass.getActualType(r), u = Cr[i]; + if (!u) + return a.call(this); + var s; + this.isConst ? s = u.constPointerType : s = u.pointerType; + var l = br(r, this.registeredClass, s.registeredClass); + return l === null ? a.call(this) : this.isSmartPointer ? Ot(s.registeredClass.instancePrototype, { + ptrType: s, + ptr: l, + smartPtrType: this, + smartPtr: t + }) : Ot(s.registeredClass.instancePrototype, { + ptrType: s, + ptr: l + }); + } + var pt = (t) => typeof FinalizationRegistry > "u" ? (pt = (r) => r, t) : (Gt = new FinalizationRegistry((r) => { + $r(r.$$); + }), pt = (r) => { + var e = r.$$, n = !!e.smartPtr; + if (n) { + var a = { + $$: e + }; + Gt.register(r, a, r); + } + return r; + }, wr = (r) => Gt.unregister(r), pt(t)), xt = [], Je = () => { + for (; xt.length; ) { + var t = xt.pop(); + t.$$.deleteScheduled = !1, t.delete(); + } + }, Tr, Ke = () => { + Object.assign(Dt.prototype, { + isAliasOf(t) { + if (!(this instanceof Dt) || !(t instanceof Dt)) + return !1; + var r = this.$$.ptrType.registeredClass, e = this.$$.ptr; + t.$$ = t.$$; + for (var n = t.$$.ptrType.registeredClass, a = t.$$.ptr; r.baseClass; ) + e = r.upcast(e), r = r.baseClass; + for (; n.baseClass; ) + a = n.upcast(a), n = n.baseClass; + return r === n && e === a; + }, + clone() { + if (this.$$.ptr || Nt(this), this.$$.preservePointerOnDelete) + return this.$$.count.value += 1, this; + var t = pt(Object.create(Object.getPrototypeOf(this), { + $$: { + value: Ge(this.$$) + } + })); + return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t; + }, + delete() { + this.$$.ptr || Nt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), wr(this), $r(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); + }, + isDeleted() { + return !this.$$.ptr; + }, + deleteLater() { + return this.$$.ptr || Nt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), xt.push(this), xt.length === 1 && Tr && Tr(Je), this.$$.deleteScheduled = !0, this; + } + }); + }; + function Dt() { + } + var vt = (t, r) => Object.defineProperty(r, "name", { + value: t + }), Pr = (t, r, e) => { + if (t[r].overloadTable === void 0) { + var n = t[r]; + t[r] = function() { + for (var a = arguments.length, i = new Array(a), u = 0; u < a; u++) + i[u] = arguments[u]; + return t[r].overloadTable.hasOwnProperty(i.length) || C(`Function '${e}' called with an invalid number of arguments (${i.length}) - expects one of (${t[r].overloadTable})!`), t[r].overloadTable[i.length].apply(this, i); + }, t[r].overloadTable = [], t[r].overloadTable[n.argCount] = n; + } + }, Xt = (t, r, e) => { + c.hasOwnProperty(t) ? ((e === void 0 || c[t].overloadTable !== void 0 && c[t].overloadTable[e] !== void 0) && C(`Cannot register public name '${t}' twice`), Pr(c, t, t), c.hasOwnProperty(e) && C(`Cannot register multiple overloads of a function with the same number of arguments (${e})!`), c[t].overloadTable[e] = r) : (c[t] = r, e !== void 0 && (c[t].numArguments = e)); + }, tn = 48, rn = 57, en = (t) => { + t = t.replace(/[^a-zA-Z0-9_]/g, "$"); + var r = t.charCodeAt(0); + return r >= tn && r <= rn ? `_${t}` : t; + }; + function nn(t, r, e, n, a, i, u, s) { + this.name = t, this.constructor = r, this.instancePrototype = e, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = u, this.downcast = s, this.pureVirtualFunctions = []; + } + var Qt = (t, r, e) => { + for (; r !== e; ) + r.upcast || C(`Expected null or instance of ${e.name}, got an instance of ${r.name}`), t = r.upcast(t), r = r.baseClass; + return t; + }; + function an(t, r) { + if (r === null) + return this.isReference && C(`null is not a valid ${this.name}`), 0; + r.$$ || C(`Cannot pass "${tr(r)}" as a ${this.name}`), r.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`); + var e = r.$$.ptrType.registeredClass, n = Qt(r.$$.ptr, e, this.registeredClass); + return n; + } + function on(t, r) { + var e; + if (r === null) + return this.isReference && C(`null is not a valid ${this.name}`), this.isSmartPointer ? (e = this.rawConstructor(), t !== null && t.push(this.rawDestructor, e), e) : 0; + (!r || !r.$$) && C(`Cannot pass "${tr(r)}" as a ${this.name}`), r.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && r.$$.ptrType.isConst && C(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); + var n = r.$$.ptrType.registeredClass; + if (e = Qt(r.$$.ptr, n, this.registeredClass), this.isSmartPointer) + switch (r.$$.smartPtr === void 0 && C("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { + case 0: + r.$$.smartPtrType === this ? e = r.$$.smartPtr : C(`Cannot convert argument of type ${r.$$.smartPtrType ? r.$$.smartPtrType.name : r.$$.ptrType.name} to parameter type ${this.name}`); + break; + case 1: + e = r.$$.smartPtr; + break; + case 2: + if (r.$$.smartPtrType === this) + e = r.$$.smartPtr; + else { + var a = r.clone(); + e = this.rawShare(e, Q.toHandle(() => a.delete())), t !== null && t.push(this.rawDestructor, e); + } + break; + default: + C("Unsupporting sharing policy"); + } + return e; + } + function sn(t, r) { + if (r === null) + return this.isReference && C(`null is not a valid ${this.name}`), 0; + r.$$ || C(`Cannot pass "${tr(r)}" as a ${this.name}`), r.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`), r.$$.ptrType.isConst && C(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`); + var e = r.$$.ptrType.registeredClass, n = Qt(r.$$.ptr, e, this.registeredClass); + return n; + } + var un = () => { + Object.assign(St.prototype, { + getPointee(t) { + return this.rawGetPointee && (t = this.rawGetPointee(t)), t; + }, + destructor(t) { + var r; + (r = this.rawDestructor) === null || r === void 0 || r.call(this, t); + }, + argPackAdvance: z, + readValueFromPointer: ht, + fromWireType: Ze + }); + }; + function St(t, r, e, n, a, i, u, s, l, f, h) { + this.name = t, this.registeredClass = r, this.isReference = e, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = u, this.rawGetPointee = s, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = h, !a && r.baseClass === void 0 ? n ? (this.toWireType = an, this.destructorFunction = null) : (this.toWireType = sn, this.destructorFunction = null) : this.toWireType = on; + } + var Er = (t, r, e) => { + c.hasOwnProperty(t) || At("Replacing nonexistent public symbol"), c[t].overloadTable !== void 0 && e !== void 0 ? c[t].overloadTable[e] = r : (c[t] = r, c[t].argCount = e); + }, cn = (t, r, e) => { + t = t.replace(/p/g, "i"); + var n = c["dynCall_" + t]; + return n(r, ...e); + }, jt = [], _r, b = (t) => { + var r = jt[t]; + return r || (t >= jt.length && (jt.length = t + 1), jt[t] = r = _r.get(t)), r; + }, ln = function(t, r) { + let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (t.includes("j")) + return cn(t, r, e); + var n = b(r)(...e); + return n; + }, fn = (t, r) => function() { + for (var e = arguments.length, n = new Array(e), a = 0; a < e; a++) + n[a] = arguments[a]; + return ln(t, r, n); + }, U = (t, r) => { + t = j(t); + function e() { + return t.includes("j") ? fn(t, r) : b(r); + } + var n = e(); + return typeof n != "function" && C(`unknown function pointer with signature ${t}: ${r}`), n; + }, dn = (t, r) => { + var e = vt(r, function(n) { + this.name = r, this.message = n; + var a = new Error(n).stack; + a !== void 0 && (this.stack = this.toString() + ` +` + a.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, e; + }, Ar, Or = (t) => { + var r = Wr(t), e = j(r); + return Y(r), e; + }, Ft = (t, r) => { + var e = [], n = {}; + function a(i) { + if (!n[i] && !K[i]) { + if (_t[i]) { + _t[i].forEach(a); + return; + } + e.push(i), n[i] = !0; + } + } + throw r.forEach(a), new Ar(`${t}: ` + e.map(Or).join([", "])); + }, hn = (t, r, e, n, a, i, u, s, l, f, h, v, g) => { + h = j(h), i = U(a, i), s && (s = U(u, s)), f && (f = U(l, f)), g = U(v, g); + var T = en(h); + Xt(T, function() { + Ft(`Cannot construct ${h} due to unbound types`, [n]); + }), tt([t, r, e], n ? [n] : [], (_) => { + _ = _[0]; + var S, O; + n ? (S = _.registeredClass, O = S.instancePrototype) : O = Dt.prototype; + var x = vt(h, function() { + if (Object.getPrototypeOf(this) !== rt) + throw new it("Use 'new' to construct " + h); + if (M.constructor_body === void 0) + throw new it(h + " has no accessible constructor"); + for (var Yr = arguments.length, It = new Array(Yr), Rt = 0; Rt < Yr; Rt++) + It[Rt] = arguments[Rt]; + var qr = M.constructor_body[It.length]; + if (qr === void 0) + throw new it(`Tried to invoke ctor of ${h} with invalid number of parameters (${It.length}) - expected (${Object.keys(M.constructor_body).toString()}) parameters instead!`); + return qr.apply(this, It); + }), rt = Object.create(O, { + constructor: { + value: x + } + }); + x.prototype = rt; + var M = new nn(h, x, rt, g, S, i, s, f); + if (M.baseClass) { + var q, Wt; + (Wt = (q = M.baseClass).__derivedClasses) !== null && Wt !== void 0 || (q.__derivedClasses = []), M.baseClass.__derivedClasses.push(M); + } + var to = new St(h, M, !0, !1, !1), Xr = new St(h + "*", M, !1, !1, !1), Qr = new St(h + " const*", M, !1, !0, !1); + return Cr[t] = { + pointerType: Xr, + constPointerType: Qr + }, Er(T, x), [to, Xr, Qr]; + }); + }, Yt = (t, r) => { + for (var e = [], n = 0; n < t; n++) + e.push(E[r + n * 4 >> 2]); + return e; + }; + function pn(t) { + for (var r = 1; r < t.length; ++r) + if (t[r] !== null && t[r].destructorFunction === void 0) + return !0; + return !1; + } + function qt(t, r, e, n, a, i) { + var u = r.length; + u < 2 && C("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var s = r[1] !== null && e !== null, l = pn(r), f = r[0].name !== "void", h = u - 2, v = new Array(h), g = [], T = [], _ = function() { + T.length = 0; + var S; + g.length = s ? 2 : 1, g[0] = a, s && (S = r[1].toWireType(T, this), g[1] = S); + for (var O = 0; O < h; ++O) + v[O] = r[O + 2].toWireType(T, O < 0 || arguments.length <= O ? void 0 : arguments[O]), g.push(v[O]); + var x = n(...g); + function rt(M) { + if (l) + zt(T); + else + for (var q = s ? 1 : 2; q < r.length; q++) { + var Wt = q === 1 ? S : v[q - 2]; + r[q].destructorFunction !== null && r[q].destructorFunction(Wt); + } + if (f) + return r[0].fromWireType(M); + } + return rt(x); + }; + return vt(t, _); + } + var vn = (t, r, e, n, a, i) => { + var u = Yt(r, e); + a = U(n, a), tt([], [t], (s) => { + s = s[0]; + var l = `constructor ${s.name}`; + if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[r - 1] !== void 0) + throw new it(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`); + return s.registeredClass.constructor_body[r - 1] = () => { + Ft(`Cannot construct ${s.name} due to unbound types`, u); + }, tt([], u, (f) => (f.splice(1, 0, null), s.registeredClass.constructor_body[r - 1] = qt(l, f, null, a, i), [])), []; + }); + }, xr = (t) => { + t = t.trim(); + const r = t.indexOf("("); + return r !== -1 ? t.substr(0, r) : t; + }, yn = (t, r, e, n, a, i, u, s, l, f) => { + var h = Yt(e, n); + r = j(r), r = xr(r), i = U(a, i), tt([], [t], (v) => { + v = v[0]; + var g = `${v.name}.${r}`; + r.startsWith("@@") && (r = Symbol[r.substring(2)]), s && v.registeredClass.pureVirtualFunctions.push(r); + function T() { + Ft(`Cannot call ${g} due to unbound types`, h); + } + var _ = v.registeredClass.instancePrototype, S = _[r]; + return S === void 0 || S.overloadTable === void 0 && S.className !== v.name && S.argCount === e - 2 ? (T.argCount = e - 2, T.className = v.name, _[r] = T) : (Pr(_, r, g), _[r].overloadTable[e - 2] = T), tt([], h, (O) => { + var x = qt(g, O, v, i, u); + return _[r].overloadTable === void 0 ? (x.argCount = e - 2, _[r] = x) : _[r].overloadTable[e - 2] = x, []; + }), []; + }); + }, Zt = [], X = [], Jt = (t) => { + t > 9 && --X[t + 1] === 0 && (X[t] = void 0, Zt.push(t)); + }, mn = () => X.length / 2 - 5 - Zt.length, gn = () => { + X.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), c.count_emval_handles = mn; + }, Q = { + toValue: (t) => (t || C("Cannot use deleted val. handle = " + t), X[t]), + toHandle: (t) => { + switch (t) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const r = Zt.pop() || X.length; + return X[r] = t, X[r + 1] = 1, r; + } + } + } + }, Dr = { + name: "emscripten::val", + fromWireType: (t) => { + var r = Q.toValue(t); + return Jt(t), r; + }, + toWireType: (t, r) => Q.toHandle(r), + argPackAdvance: z, + readValueFromPointer: ht, + destructorFunction: null + }, wn = (t) => k(t, Dr), $n = (t, r, e) => { + switch (r) { + case 1: + return e ? function(n) { + return this.fromWireType(L[n]); + } : function(n) { + return this.fromWireType(F[n]); + }; + case 2: + return e ? function(n) { + return this.fromWireType(at[n >> 1]); + } : function(n) { + return this.fromWireType(ft[n >> 1]); + }; + case 4: + return e ? function(n) { + return this.fromWireType(Z[n >> 2]); + } : function(n) { + return this.fromWireType(E[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${r}): ${t}`); + } + }, bn = (t, r, e, n) => { + r = j(r); + function a() { + } + a.values = {}, k(t, { + name: r, + constructor: a, + fromWireType: function(i) { + return this.constructor.values[i]; + }, + toWireType: (i, u) => u.value, + argPackAdvance: z, + readValueFromPointer: $n(r, e, n), + destructorFunction: null + }), Xt(r, a); + }, Kt = (t, r) => { + var e = K[t]; + return e === void 0 && C(`${r} has unknown type ${Or(t)}`), e; + }, Cn = (t, r, e) => { + var n = Kt(t, "enum"); + r = j(r); + var a = n.constructor, i = Object.create(n.constructor.prototype, { + value: { + value: e + }, + constructor: { + value: vt(`${n.name}_${r}`, function() { + }) + } + }); + a.values[e] = i, a[r] = i; + }, tr = (t) => { + if (t === null) + return "null"; + var r = typeof t; + return r === "object" || r === "array" || r === "function" ? t.toString() : "" + t; + }, Tn = (t, r) => { + switch (r) { + case 4: + return function(e) { + return this.fromWireType(ur[e >> 2]); + }; + case 8: + return function(e) { + return this.fromWireType(cr[e >> 3]); + }; + default: + throw new TypeError(`invalid float width (${r}): ${t}`); + } + }, Pn = (t, r, e) => { + r = j(r), k(t, { + name: r, + fromWireType: (n) => n, + toWireType: (n, a) => a, + argPackAdvance: z, + readValueFromPointer: Tn(r, e), + destructorFunction: null + }); + }, En = (t, r, e, n, a, i, u, s) => { + var l = Yt(r, e); + t = j(t), t = xr(t), a = U(n, a), Xt(t, function() { + Ft(`Cannot call ${t} due to unbound types`, l); + }, r - 1), tt([], l, (f) => { + var h = [f[0], null].concat(f.slice(1)); + return Er(t, qt(t, h, null, a, i), r - 1), []; + }); + }, _n = (t, r, e) => { + switch (r) { + case 1: + return e ? (n) => L[n] : (n) => F[n]; + case 2: + return e ? (n) => at[n >> 1] : (n) => ft[n >> 1]; + case 4: + return e ? (n) => Z[n >> 2] : (n) => E[n >> 2]; + default: + throw new TypeError(`invalid integer width (${r}): ${t}`); + } + }, An = (t, r, e, n, a) => { + r = j(r); + var i = (h) => h; + if (n === 0) { + var u = 32 - 8 * e; + i = (h) => h << u >>> u; + } + var s = r.includes("unsigned"), l = (h, v) => { + }, f; + s ? f = function(h, v) { + return l(v, this.name), v >>> 0; + } : f = function(h, v) { + return l(v, this.name), v; + }, k(t, { + name: r, + fromWireType: i, + toWireType: f, + argPackAdvance: z, + readValueFromPointer: _n(r, e, n !== 0), + destructorFunction: null + }); + }, On = (t, r, e) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[r]; + function i(u) { + var s = E[u >> 2], l = E[u + 4 >> 2]; + return new a(L.buffer, l, s); + } + e = j(e), k(t, { + name: e, + fromWireType: i, + argPackAdvance: z, + readValueFromPointer: i + }, { + ignoreDuplicateRegistrations: !0 + }); + }, xn = Object.assign({ + optional: !0 + }, Dr), Dn = (t, r) => { + k(t, xn); + }, Sn = (t, r, e, n) => { + if (!(n > 0)) return 0; + for (var a = e, i = e + n - 1, u = 0; u < t.length; ++u) { + var s = t.charCodeAt(u); + if (s >= 55296 && s <= 57343) { + var l = t.charCodeAt(++u); + s = 65536 + ((s & 1023) << 10) | l & 1023; + } + if (s <= 127) { + if (e >= i) break; + r[e++] = s; + } else if (s <= 2047) { + if (e + 1 >= i) break; + r[e++] = 192 | s >> 6, r[e++] = 128 | s & 63; + } else if (s <= 65535) { + if (e + 2 >= i) break; + r[e++] = 224 | s >> 12, r[e++] = 128 | s >> 6 & 63, r[e++] = 128 | s & 63; + } else { + if (e + 3 >= i) break; + r[e++] = 240 | s >> 18, r[e++] = 128 | s >> 12 & 63, r[e++] = 128 | s >> 6 & 63, r[e++] = 128 | s & 63; + } + } + return r[e] = 0, e - a; + }, yt = (t, r, e) => Sn(t, F, r, e), jn = (t) => { + for (var r = 0, e = 0; e < t.length; ++e) { + var n = t.charCodeAt(e); + n <= 127 ? r++ : n <= 2047 ? r += 2 : n >= 55296 && n <= 57343 ? (r += 4, ++e) : r += 3; + } + return r; + }, Sr = typeof TextDecoder < "u" ? new TextDecoder() : void 0, jr = function(t) { + let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = r + e, a = r; t[a] && !(a >= n); ) ++a; + if (a - r > 16 && t.buffer && Sr) + return Sr.decode(t.subarray(r, a)); + for (var i = ""; r < a; ) { + var u = t[r++]; + if (!(u & 128)) { + i += String.fromCharCode(u); + continue; + } + var s = t[r++] & 63; + if ((u & 224) == 192) { + i += String.fromCharCode((u & 31) << 6 | s); + continue; + } + var l = t[r++] & 63; + if ((u & 240) == 224 ? u = (u & 15) << 12 | s << 6 | l : u = (u & 7) << 18 | s << 12 | l << 6 | t[r++] & 63, u < 65536) + i += String.fromCharCode(u); + else { + var f = u - 65536; + i += String.fromCharCode(55296 | f >> 10, 56320 | f & 1023); + } + } + return i; + }, Fn = (t, r) => t ? jr(F, t, r) : "", Mn = (t, r) => { + r = j(r); + var e = r === "std::string"; + k(t, { + name: r, + fromWireType(n) { + var a = E[n >> 2], i = n + 4, u; + if (e) + for (var s = i, l = 0; l <= a; ++l) { + var f = i + l; + if (l == a || F[f] == 0) { + var h = f - s, v = Fn(s, h); + u === void 0 ? u = v : (u += "\0", u += v), s = f + 1; + } + } + else { + for (var g = new Array(a), l = 0; l < a; ++l) + g[l] = String.fromCharCode(F[i + l]); + u = g.join(""); + } + return Y(n), u; + }, + toWireType(n, a) { + a instanceof ArrayBuffer && (a = new Uint8Array(a)); + var i, u = typeof a == "string"; + u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || C("Cannot pass non-string to std::string"), e && u ? i = jn(a) : i = a.length; + var s = nr(4 + i + 1), l = s + 4; + if (E[s >> 2] = i, e && u) + yt(a, l, i + 1); + else if (u) + for (var f = 0; f < i; ++f) { + var h = a.charCodeAt(f); + h > 255 && (Y(l), C("String has UTF-16 code units that do not fit in 8 bits")), F[l + f] = h; + } + else + for (var f = 0; f < i; ++f) + F[l + f] = a[f]; + return n !== null && n.push(Y, s), s; + }, + argPackAdvance: z, + readValueFromPointer: ht, + destructorFunction(n) { + Y(n); + } + }); + }, Fr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Wn = (t, r) => { + for (var e = t, n = e >> 1, a = n + r / 2; !(n >= a) && ft[n]; ) ++n; + if (e = n << 1, e - t > 32 && Fr) return Fr.decode(F.subarray(t, e)); + for (var i = "", u = 0; !(u >= r / 2); ++u) { + var s = at[t + u * 2 >> 1]; + if (s == 0) break; + i += String.fromCharCode(s); + } + return i; + }, In = (t, r, e) => { + var n; + if ((n = e) !== null && n !== void 0 || (e = 2147483647), e < 2) return 0; + e -= 2; + for (var a = r, i = e < t.length * 2 ? e / 2 : t.length, u = 0; u < i; ++u) { + var s = t.charCodeAt(u); + at[r >> 1] = s, r += 2; + } + return at[r >> 1] = 0, r - a; + }, Rn = (t) => t.length * 2, Bn = (t, r) => { + for (var e = 0, n = ""; !(e >= r / 4); ) { + var a = Z[t + e * 4 >> 2]; + if (a == 0) break; + if (++e, a >= 65536) { + var i = a - 65536; + n += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023); + } else + n += String.fromCharCode(a); + } + return n; + }, kn = (t, r, e) => { + var n; + if ((n = e) !== null && n !== void 0 || (e = 2147483647), e < 4) return 0; + for (var a = r, i = a + e - 4, u = 0; u < t.length; ++u) { + var s = t.charCodeAt(u); + if (s >= 55296 && s <= 57343) { + var l = t.charCodeAt(++u); + s = 65536 + ((s & 1023) << 10) | l & 1023; + } + if (Z[r >> 2] = s, r += 4, r + 4 > i) break; + } + return Z[r >> 2] = 0, r - a; + }, Un = (t) => { + for (var r = 0, e = 0; e < t.length; ++e) { + var n = t.charCodeAt(e); + n >= 55296 && n <= 57343 && ++e, r += 4; + } + return r; + }, Vn = (t, r, e) => { + e = j(e); + var n, a, i, u; + r === 2 ? (n = Wn, a = In, u = Rn, i = (s) => ft[s >> 1]) : r === 4 && (n = Bn, a = kn, u = Un, i = (s) => E[s >> 2]), k(t, { + name: e, + fromWireType: (s) => { + for (var l = E[s >> 2], f, h = s + 4, v = 0; v <= l; ++v) { + var g = s + 4 + v * r; + if (v == l || i(g) == 0) { + var T = g - h, _ = n(h, T); + f === void 0 ? f = _ : (f += "\0", f += _), h = g + r; + } + } + return Y(s), f; + }, + toWireType: (s, l) => { + typeof l != "string" && C(`Cannot pass non-string to C++ string type ${e}`); + var f = u(l), h = nr(4 + f + r); + return E[h >> 2] = f / r, a(l, h + 4, f + r), s !== null && s.push(Y, h), h; + }, + argPackAdvance: z, + readValueFromPointer: ht, + destructorFunction(s) { + Y(s); + } + }); + }, Hn = (t, r, e, n, a, i) => { + Et[t] = { + name: j(r), + rawConstructor: U(e, n), + rawDestructor: U(a, i), + fields: [] + }; + }, Ln = (t, r, e, n, a, i, u, s, l, f) => { + Et[t].fields.push({ + fieldName: j(r), + getterReturnType: e, + getter: U(n, a), + getterContext: i, + setterArgumentType: u, + setter: U(s, l), + setterContext: f + }); + }, zn = (t, r) => { + r = j(r), k(t, { + isVoid: !0, + name: r, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (e, n) => { + } + }); + }, Nn = (t, r, e) => F.copyWithin(t, r, r + e), rr = [], Gn = (t, r, e, n) => (t = rr[t], r = Q.toValue(r), t(null, r, e, n)), Xn = {}, Qn = (t) => { + var r = Xn[t]; + return r === void 0 ? j(t) : r; + }, Mr = () => { + if (typeof globalThis == "object") + return globalThis; + function t(r) { + r.$$$embind_global$$$ = r; + var e = typeof $$$embind_global$$$ == "object" && r.$$$embind_global$$$ == r; + return e || delete r.$$$embind_global$$$, e; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && t(global) ? $$$embind_global$$$ = global : typeof self == "object" && t(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Yn = (t) => t === 0 ? Q.toHandle(Mr()) : (t = Qn(t), Q.toHandle(Mr()[t])), qn = (t) => { + var r = rr.length; + return rr.push(t), r; + }, Zn = (t, r) => { + for (var e = new Array(t), n = 0; n < t; ++n) + e[n] = Kt(E[r + n * 4 >> 2], "parameter " + n); + return e; + }, Jn = Reflect.construct, Kn = (t, r, e) => { + var n = [], a = t.toWireType(n, e); + return n.length && (E[r >> 2] = Q.toHandle(n)), a; + }, ta = (t, r, e) => { + var n = Zn(t, r), a = n.shift(); + t--; + var i = new Array(t), u = (l, f, h, v) => { + for (var g = 0, T = 0; T < t; ++T) + i[T] = n[T].readValueFromPointer(v + g), g += n[T].argPackAdvance; + var _ = e === 1 ? Jn(f, i) : f.apply(l, i); + return Kn(a, h, _); + }, s = `methodCaller<(${n.map((l) => l.name).join(", ")}) => ${a.name}>`; + return qn(vt(s, u)); + }, ra = (t) => { + t > 9 && (X[t + 1] += 1); + }, ea = (t) => { + var r = Q.toValue(t); + zt(r), Jt(t); + }, na = (t, r) => { + t = Kt(t, "_emval_take_value"); + var e = t.readValueFromPointer(r); + return Q.toHandle(e); + }, aa = (t, r, e, n) => { + var a = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(a, 0, 1), u = new Date(a, 6, 1), s = i.getTimezoneOffset(), l = u.getTimezoneOffset(), f = Math.max(s, l); + E[t >> 2] = f * 60, Z[r >> 2] = +(s != l); + var h = (T) => { + var _ = T >= 0 ? "-" : "+", S = Math.abs(T), O = String(Math.floor(S / 60)).padStart(2, "0"), x = String(S % 60).padStart(2, "0"); + return `UTC${_}${O}${x}`; + }, v = h(s), g = h(l); + l < s ? (yt(v, e, 17), yt(g, n, 17)) : (yt(v, n, 17), yt(g, e, 17)); + }, oa = () => 2147483648, ia = (t, r) => Math.ceil(t / r) * r, sa = (t) => { + var r = $t.buffer, e = (t - r.byteLength + 65535) / 65536 | 0; + try { + return $t.grow(e), lr(), 1; + } catch { + } + }, ua = (t) => { + var r = F.length; + t >>>= 0; + var e = oa(); + if (t > e) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var a = r * (1 + 0.2 / n); + a = Math.min(a, t + 100663296); + var i = Math.min(e, ia(Math.max(t, a), 65536)), u = sa(i); + if (u) + return !0; + } + return !1; + }, er = {}, ca = () => H || "./this.program", mt = () => { + if (!mt.strings) { + var t = (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: t, + _: ca() + }; + for (var e in er) + er[e] === void 0 ? delete r[e] : r[e] = er[e]; + var n = []; + for (var e in r) + n.push(`${e}=${r[e]}`); + mt.strings = n; + } + return mt.strings; + }, la = (t, r) => { + for (var e = 0; e < t.length; ++e) + L[r++] = t.charCodeAt(e); + L[r] = 0; + }, fa = (t, r) => { + var e = 0; + return mt().forEach((n, a) => { + var i = r + e; + E[t + a * 4 >> 2] = i, la(n, i), e += n.length + 1; + }), 0; + }, da = (t, r) => { + var e = mt(); + E[t >> 2] = e.length; + var n = 0; + return e.forEach((a) => n += a.length + 1), E[r >> 2] = n, 0; + }, ha = (t) => 52; + function pa(t, r, e, n, a) { + return 70; + } + var va = [null, [], []], ya = (t, r) => { + var e = va[t]; + r === 0 || r === 10 ? ((t === 1 ? kt : nt)(jr(e)), e.length = 0) : e.push(r); + }, ma = (t, r, e, n) => { + for (var a = 0, i = 0; i < e; i++) { + var u = E[r >> 2], s = E[r + 4 >> 2]; + r += 8; + for (var l = 0; l < s; l++) + ya(t, F[u + l]); + a += s; + } + return E[n >> 2] = a, 0; + }, ga = (t) => t; + mr = c.InternalError = class extends Error { + constructor(t) { + super(t), this.name = "InternalError"; + } + }, Le(), it = c.BindingError = class extends Error { + constructor(t) { + super(t), this.name = "BindingError"; + } + }, Ke(), un(), Ar = c.UnboundTypeError = dn(Error, "UnboundTypeError"), gn(); + var wa = { + t: Se, + x: je, + a: Me, + j: We, + k: Ie, + O: Re, + q: Be, + ga: ke, + d: Fe, + ca: Ue, + va: Ve, + ba: He, + pa: Ne, + ta: hn, + sa: vn, + E: yn, + oa: wn, + F: bn, + n: Cn, + W: Pn, + X: En, + y: An, + u: On, + ua: Dn, + V: Mn, + P: Vn, + L: Hn, + wa: Ln, + qa: zn, + ja: Nn, + T: Gn, + xa: Jt, + ya: Yn, + U: ta, + Y: ra, + Z: ea, + ra: na, + da: aa, + ha: ua, + ea: fa, + fa: da, + ia: ha, + $: pa, + S: ma, + J: Ua, + C: Ha, + Q: Pa, + R: Ya, + r: Ia, + b: $a, + D: ka, + la: za, + c: _a, + ka: Na, + h: Ta, + i: Da, + s: Sa, + N: Ba, + w: Fa, + I: Xa, + K: Ra, + z: La, + H: qa, + aa: Ja, + _: Ka, + l: Aa, + f: Ea, + e: Ca, + g: ba, + M: Qa, + m: xa, + ma: Va, + p: ja, + v: Ma, + na: Wa, + B: Ga, + o: Oa, + G: Za, + A: ga + }, A = De(), Wr = (t) => (Wr = A.Ba)(t), Y = c._free = (t) => (Y = c._free = A.Ca)(t), nr = c._malloc = (t) => (nr = c._malloc = A.Ea)(t), Ir = (t) => (Ir = A.Fa)(t), m = (t, r) => (m = A.Ga)(t, r), Rr = (t) => (Rr = A.Ha)(t), Br = (t) => (Br = A.Ia)(t), kr = () => (kr = A.Ja)(), Ur = (t) => (Ur = A.Ka)(t), Vr = (t) => (Vr = A.La)(t), Hr = (t, r, e) => (Hr = A.Ma)(t, r, e); + c.dynCall_viijii = (t, r, e, n, a, i, u) => (c.dynCall_viijii = A.Na)(t, r, e, n, a, i, u); + var Lr = c.dynCall_jiii = (t, r, e, n) => (Lr = c.dynCall_jiii = A.Oa)(t, r, e, n); + c.dynCall_jiji = (t, r, e, n, a) => (c.dynCall_jiji = A.Pa)(t, r, e, n, a); + var zr = c.dynCall_jiiii = (t, r, e, n, a) => (zr = c.dynCall_jiiii = A.Qa)(t, r, e, n, a); + c.dynCall_iiiiij = (t, r, e, n, a, i, u) => (c.dynCall_iiiiij = A.Ra)(t, r, e, n, a, i, u), c.dynCall_iiiiijj = (t, r, e, n, a, i, u, s, l) => (c.dynCall_iiiiijj = A.Sa)(t, r, e, n, a, i, u, s, l), c.dynCall_iiiiiijj = (t, r, e, n, a, i, u, s, l, f) => (c.dynCall_iiiiiijj = A.Ta)(t, r, e, n, a, i, u, s, l, f); + function $a(t, r) { + var e = $(); + try { + return b(t)(r); + } catch (n) { + if (w(e), n !== n + 0) throw n; + m(1, 0); + } + } + function ba(t, r, e, n) { + var a = $(); + try { + b(t)(r, e, n); + } catch (i) { + if (w(a), i !== i + 0) throw i; + m(1, 0); + } + } + function Ca(t, r, e) { + var n = $(); + try { + b(t)(r, e); + } catch (a) { + if (w(n), a !== a + 0) throw a; + m(1, 0); + } + } + function Ta(t, r, e, n) { + var a = $(); + try { + return b(t)(r, e, n); + } catch (i) { + if (w(a), i !== i + 0) throw i; + m(1, 0); + } + } + function Pa(t, r, e, n, a) { + var i = $(); + try { + return b(t)(r, e, n, a); + } catch (u) { + if (w(i), u !== u + 0) throw u; + m(1, 0); + } + } + function Ea(t, r) { + var e = $(); + try { + b(t)(r); + } catch (n) { + if (w(e), n !== n + 0) throw n; + m(1, 0); + } + } + function _a(t, r, e) { + var n = $(); + try { + return b(t)(r, e); + } catch (a) { + if (w(n), a !== a + 0) throw a; + m(1, 0); + } + } + function Aa(t) { + var r = $(); + try { + b(t)(); + } catch (e) { + if (w(r), e !== e + 0) throw e; + m(1, 0); + } + } + function Oa(t, r, e, n, a, i, u, s, l, f, h) { + var v = $(); + try { + b(t)(r, e, n, a, i, u, s, l, f, h); + } catch (g) { + if (w(v), g !== g + 0) throw g; + m(1, 0); + } + } + function xa(t, r, e, n, a) { + var i = $(); + try { + b(t)(r, e, n, a); + } catch (u) { + if (w(i), u !== u + 0) throw u; + m(1, 0); + } + } + function Da(t, r, e, n, a) { + var i = $(); + try { + return b(t)(r, e, n, a); + } catch (u) { + if (w(i), u !== u + 0) throw u; + m(1, 0); + } + } + function Sa(t, r, e, n, a, i) { + var u = $(); + try { + return b(t)(r, e, n, a, i); + } catch (s) { + if (w(u), s !== s + 0) throw s; + m(1, 0); + } + } + function ja(t, r, e, n, a, i) { + var u = $(); + try { + b(t)(r, e, n, a, i); + } catch (s) { + if (w(u), s !== s + 0) throw s; + m(1, 0); + } + } + function Fa(t, r, e, n, a, i, u) { + var s = $(); + try { + return b(t)(r, e, n, a, i, u); + } catch (l) { + if (w(s), l !== l + 0) throw l; + m(1, 0); + } + } + function Ma(t, r, e, n, a, i, u, s) { + var l = $(); + try { + b(t)(r, e, n, a, i, u, s); + } catch (f) { + if (w(l), f !== f + 0) throw f; + m(1, 0); + } + } + function Wa(t, r, e, n, a, i, u, s, l) { + var f = $(); + try { + b(t)(r, e, n, a, i, u, s, l); + } catch (h) { + if (w(f), h !== h + 0) throw h; + m(1, 0); + } + } + function Ia(t) { + var r = $(); + try { + return b(t)(); + } catch (e) { + if (w(r), e !== e + 0) throw e; + m(1, 0); + } + } + function Ra(t, r, e, n, a, i, u, s, l) { + var f = $(); + try { + return b(t)(r, e, n, a, i, u, s, l); + } catch (h) { + if (w(f), h !== h + 0) throw h; + m(1, 0); + } + } + function Ba(t, r, e, n, a, i, u) { + var s = $(); + try { + return b(t)(r, e, n, a, i, u); + } catch (l) { + if (w(s), l !== l + 0) throw l; + m(1, 0); + } + } + function ka(t, r, e, n) { + var a = $(); + try { + return b(t)(r, e, n); + } catch (i) { + if (w(a), i !== i + 0) throw i; + m(1, 0); + } + } + function Ua(t, r, e, n) { + var a = $(); + try { + return b(t)(r, e, n); + } catch (i) { + if (w(a), i !== i + 0) throw i; + m(1, 0); + } + } + function Va(t, r, e, n, a, i, u, s) { + var l = $(); + try { + b(t)(r, e, n, a, i, u, s); + } catch (f) { + if (w(l), f !== f + 0) throw f; + m(1, 0); + } + } + function Ha(t, r, e, n, a, i) { + var u = $(); + try { + return b(t)(r, e, n, a, i); + } catch (s) { + if (w(u), s !== s + 0) throw s; + m(1, 0); + } + } + function La(t, r, e, n, a, i, u, s, l, f) { + var h = $(); + try { + return b(t)(r, e, n, a, i, u, s, l, f); + } catch (v) { + if (w(h), v !== v + 0) throw v; + m(1, 0); + } + } + function za(t, r, e) { + var n = $(); + try { + return b(t)(r, e); + } catch (a) { + if (w(n), a !== a + 0) throw a; + m(1, 0); + } + } + function Na(t, r, e, n, a) { + var i = $(); + try { + return b(t)(r, e, n, a); + } catch (u) { + if (w(i), u !== u + 0) throw u; + m(1, 0); + } + } + function Ga(t, r, e, n, a, i, u, s, l, f) { + var h = $(); + try { + b(t)(r, e, n, a, i, u, s, l, f); + } catch (v) { + if (w(h), v !== v + 0) throw v; + m(1, 0); + } + } + function Xa(t, r, e, n, a, i, u, s) { + var l = $(); + try { + return b(t)(r, e, n, a, i, u, s); + } catch (f) { + if (w(l), f !== f + 0) throw f; + m(1, 0); + } + } + function Qa(t, r, e, n, a, i, u) { + var s = $(); + try { + b(t)(r, e, n, a, i, u); + } catch (l) { + if (w(s), l !== l + 0) throw l; + m(1, 0); + } + } + function Ya(t, r, e, n) { + var a = $(); + try { + return b(t)(r, e, n); + } catch (i) { + if (w(a), i !== i + 0) throw i; + m(1, 0); + } + } + function qa(t, r, e, n, a, i, u, s, l, f, h, v) { + var g = $(); + try { + return b(t)(r, e, n, a, i, u, s, l, f, h, v); + } catch (T) { + if (w(g), T !== T + 0) throw T; + m(1, 0); + } + } + function Za(t, r, e, n, a, i, u, s, l, f, h, v, g, T, _, S) { + var O = $(); + try { + b(t)(r, e, n, a, i, u, s, l, f, h, v, g, T, _, S); + } catch (x) { + if (w(O), x !== x + 0) throw x; + m(1, 0); + } + } + function Ja(t, r, e, n) { + var a = $(); + try { + return Lr(t, r, e, n); + } catch (i) { + if (w(a), i !== i + 0) throw i; + m(1, 0); + } + } + function Ka(t, r, e, n, a) { + var i = $(); + try { + return zr(t, r, e, n, a); + } catch (u) { + if (w(i), u !== u + 0) throw u; + m(1, 0); + } + } + var Mt, Nr; + dt = function t() { + Mt || Gr(), Mt || (dt = t); + }; + function Gr() { + if (J > 0 || !Nr && (Nr = 1, me(), J > 0)) + return; + function t() { + var r; + Mt || (Mt = 1, c.calledRun = 1, !sr && (ge(), P(c), (r = c.onRuntimeInitialized) === null || r === void 0 || r.call(c), we())); + } + c.setStatus ? (c.setStatus("Running..."), setTimeout(() => { + setTimeout(() => c.setStatus(""), 1), t(); + }, 1)) : t(); + } + if (c.preInit) + for (typeof c.preInit == "function" && (c.preInit = [c.preInit]); c.preInit.length > 0; ) + c.preInit.pop()(); + return Gr(), y = B, y; + }; +})(); +function po(o) { + return ir( + Bt, + o + ); +} +function Fo(o) { + return lo( + Bt, + o + ); +} +async function vo(o, d) { + return fo( + Bt, + o, + d + ); +} +async function yo(o, d) { + return ho( + Bt, + o, + d + ); +} +const se = [ + ["aztec", "Aztec"], + ["code_128", "Code128"], + ["code_39", "Code39"], + ["code_93", "Code93"], + ["codabar", "Codabar"], + ["databar", "DataBar"], + ["databar_expanded", "DataBarExpanded"], + ["databar_limited", "DataBarLimited"], + ["data_matrix", "DataMatrix"], + ["dx_film_edge", "DXFilmEdge"], + ["ean_13", "EAN-13"], + ["ean_8", "EAN-8"], + ["itf", "ITF"], + ["maxi_code", "MaxiCode"], + ["micro_qr_code", "MicroQRCode"], + ["pdf417", "PDF417"], + ["qr_code", "QRCode"], + ["rm_qr_code", "rMQRCode"], + ["upc_a", "UPC-A"], + ["upc_e", "UPC-E"], + ["linear_codes", "Linear-Codes"], + ["matrix_codes", "Matrix-Codes"] +], mo = [...se, ["unknown"]].map((o) => o[0]), or = new Map( + se +); +function go(o) { + for (const [d, p] of or) + if (o === p) + return d; + return "unknown"; +} +function wo(o) { + if (ue(o)) + return { + width: o.naturalWidth, + height: o.naturalHeight + }; + if (ce(o)) + return { + width: o.width.baseVal.value, + height: o.height.baseVal.value + }; + if (le(o)) + return { + width: o.videoWidth, + height: o.videoHeight + }; + if (de(o)) + return { + width: o.width, + height: o.height + }; + if (pe(o)) + return { + width: o.displayWidth, + height: o.displayHeight + }; + if (fe(o)) + return { + width: o.width, + height: o.height + }; + if (he(o)) + return { + width: o.width, + height: o.height + }; + throw new TypeError( + "The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'." + ); +} +function ue(o) { + var d, p; + try { + return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.HTMLImageElement); + } catch { + return !1; + } +} +function ce(o) { + var d, p; + try { + return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.SVGImageElement); + } catch { + return !1; + } +} +function le(o) { + var d, p; + try { + return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.HTMLVideoElement); + } catch { + return !1; + } +} +function fe(o) { + var d, p; + try { + return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.HTMLCanvasElement); + } catch { + return !1; + } +} +function de(o) { + try { + return o instanceof ImageBitmap || Object.prototype.toString.call(o) === "[object ImageBitmap]"; + } catch { + return !1; + } +} +function he(o) { + try { + return o instanceof OffscreenCanvas || Object.prototype.toString.call(o) === "[object OffscreenCanvas]"; + } catch { + return !1; + } +} +function pe(o) { + try { + return o instanceof VideoFrame || Object.prototype.toString.call(o) === "[object VideoFrame]"; + } catch { + return !1; + } +} +function ve(o) { + try { + return o instanceof Blob || Object.prototype.toString.call(o) === "[object Blob]"; + } catch { + return !1; + } +} +function $o(o) { + try { + return o instanceof ImageData || Object.prototype.toString.call(o) === "[object ImageData]"; + } catch { + return !1; + } +} +function bo(o, d) { + try { + const p = new OffscreenCanvas(o, d); + if (p.getContext("2d") instanceof OffscreenCanvasRenderingContext2D) + return p; + throw void 0; + } catch { + const p = document.createElement("canvas"); + return p.width = o, p.height = d, p; + } +} +async function ye(o) { + if (ue(o) && !await Eo(o)) + throw new DOMException( + "Failed to load or decode HTMLImageElement.", + "InvalidStateError" + ); + if (ce(o) && !await _o(o)) + throw new DOMException( + "Failed to load or decode SVGImageElement.", + "InvalidStateError" + ); + if (pe(o) && Ao(o)) + throw new DOMException("VideoFrame is closed.", "InvalidStateError"); + if (le(o) && (o.readyState === 0 || o.readyState === 1)) + throw new DOMException("Invalid element or state.", "InvalidStateError"); + if (de(o) && xo(o)) + throw new DOMException( + "The image source is detached.", + "InvalidStateError" + ); + const { width: d, height: p } = wo(o); + if (d === 0 || p === 0) + return null; + const c = bo(d, p).getContext("2d"); + c.drawImage(o, 0, 0); + try { + return c.getImageData(0, 0, d, p); + } catch { + throw new DOMException("Source would taint origin.", "SecurityError"); + } +} +async function Co(o) { + let d; + try { + if (globalThis.createImageBitmap) + d = await createImageBitmap(o); + else if (globalThis.Image) { + d = new Image(); + let y = ""; + try { + y = URL.createObjectURL(o), d.src = y, await d.decode(); + } finally { + URL.revokeObjectURL(y); + } + } else + return o; + } catch { + throw new DOMException( + "Failed to load or decode Blob.", + "InvalidStateError" + ); + } + return await ye(d); +} +function To(o) { + const { width: d, height: p } = o; + if (d === 0 || p === 0) + return null; + const y = o.getContext("2d"); + try { + return y.getImageData(0, 0, d, p); + } catch { + throw new DOMException("Source would taint origin.", "SecurityError"); + } +} +async function Po(o) { + if (ve(o)) + return await Co(o); + if ($o(o)) { + if (Oo(o)) + throw new DOMException( + "The image data has been detached.", + "InvalidStateError" + ); + return o; + } + return fe(o) || he(o) ? To(o) : await ye(o); +} +async function Eo(o) { + try { + return await o.decode(), !0; + } catch { + return !1; + } +} +async function _o(o) { + var d; + try { + return await ((d = o.decode) == null ? void 0 : d.call(o)), !0; + } catch { + return !1; + } +} +function Ao(o) { + return o.format === null; +} +function Oo(o) { + return o.data.buffer.byteLength === 0; +} +function xo(o) { + return o.width === 0 && o.height === 0; +} +function ae(o, d) { + return Do(o) ? new DOMException(`${d}: ${o.message}`, o.name) : So(o) ? new o.constructor(`${d}: ${o.message}`) : new Error(`${d}: ${o}`); +} +function Do(o) { + return o instanceof DOMException || Object.prototype.toString.call(o) === "[object DOMException]"; +} +function So(o) { + return o instanceof Error || Object.prototype.toString.call(o) === "[object Error]"; +} +var gt; +class Mo extends EventTarget { + constructor(p = {}) { + var y; + super(); + te(this, gt); + try { + const c = (y = p == null ? void 0 : p.formats) == null ? void 0 : y.filter( + (P) => P !== "unknown" + ); + if ((c == null ? void 0 : c.length) === 0) + throw new TypeError("Hint option provided, but is empty."); + for (const P of c != null ? c : []) + if (!or.has(P)) + throw new TypeError( + `Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${P}' is not a valid enum value of type BarcodeFormat.` + ); + re(this, gt, c != null ? c : []), po().then((P) => { + this.dispatchEvent( + new CustomEvent("load", { + detail: P + }) + ); + }).catch((P) => { + this.dispatchEvent(new CustomEvent("error", { detail: P })); + }); + } catch (c) { + throw ae( + c, + "Failed to construct 'BarcodeDetector'" + ); + } + } + static async getSupportedFormats() { + return mo.filter((p) => p !== "unknown"); + } + async detect(p) { + try { + const y = await Po(p); + if (y === null) + return []; + let c; + const P = { + tryHarder: !0, + // https://github.com/Sec-ant/barcode-detector/issues/91 + returnCodabarStartEnd: !0, + formats: Kr(this, gt).map((D) => or.get(D)) + }; + try { + ve(y) ? c = await vo( + y, + P + ) : c = await yo( + y, + P + ); + } catch (D) { + throw console.error(D), new DOMException( + "Barcode detection service unavailable.", + "NotSupportedError" + ); + } + return c.map((D) => { + const { + topLeft: { x: B, y: V }, + topRight: { x: R, y: W }, + bottomLeft: { x: N, y: H }, + bottomRight: { x: I, y: ut } + } = D.position, ct = Math.min(B, R, N, I), et = Math.min(V, W, H, ut), lt = Math.max(B, R, N, I), kt = Math.max(V, W, H, ut); + return { + boundingBox: new DOMRectReadOnly( + ct, + et, + lt - ct, + kt - et + ), + rawValue: D.text, + format: go(D.format), + cornerPoints: [ + { + x: B, + y: V + }, + { + x: R, + y: W + }, + { + x: I, + y: ut + }, + { + x: N, + y: H + } + ] + }; + }); + } catch (y) { + throw ae( + y, + "Failed to execute 'detect' on 'BarcodeDetector'" + ); + } + } +} +gt = new WeakMap(); +export { + Mo as BarcodeDetector, + Fo as setZXingModuleOverrides +}; diff --git a/node_modules/barcode-detector/dist/es/side-effects.d.ts b/node_modules/barcode-detector/dist/es/side-effects.d.ts new file mode 100644 index 0000000..9b0973c --- /dev/null +++ b/node_modules/barcode-detector/dist/es/side-effects.d.ts @@ -0,0 +1,8 @@ +export { setZXingModuleOverrides } from "./BarcodeDetector.js"; +declare global { + var BarcodeDetector: typeof import("./BarcodeDetector.js").BarcodeDetector; + type BarcodeDetector = import("./BarcodeDetector.js").BarcodeDetector; + type BarcodeFormat = import("./BarcodeDetector.js").BarcodeFormat; + type BarcodeDetectorOptions = import("./BarcodeDetector.js").BarcodeDetectorOptions; + type DetectedBarcode = import("./BarcodeDetector.js").DetectedBarcode; +} diff --git a/node_modules/barcode-detector/dist/es/side-effects.js b/node_modules/barcode-detector/dist/es/side-effects.js new file mode 100644 index 0000000..4780bf2 --- /dev/null +++ b/node_modules/barcode-detector/dist/es/side-effects.js @@ -0,0 +1,7 @@ +import { BarcodeDetector as o } from "./pure.js"; +import { setZXingModuleOverrides as d } from "./pure.js"; +var e; +(e = globalThis.BarcodeDetector) != null || (globalThis.BarcodeDetector = o); +export { + d as setZXingModuleOverrides +}; diff --git a/node_modules/barcode-detector/dist/es/utils.d.ts b/node_modules/barcode-detector/dist/es/utils.d.ts new file mode 100644 index 0000000..71b846a --- /dev/null +++ b/node_modules/barcode-detector/dist/es/utils.d.ts @@ -0,0 +1,14 @@ +import type { ReadInputBarcodeFormat, ReadOutputBarcodeFormat } from "zxing-wasm/reader"; +export declare const BARCODE_FORMATS: ("aztec" | "code_128" | "code_39" | "code_93" | "codabar" | "databar" | "databar_expanded" | "databar_limited" | "data_matrix" | "dx_film_edge" | "ean_13" | "ean_8" | "itf" | "maxi_code" | "micro_qr_code" | "pdf417" | "qr_code" | "rm_qr_code" | "upc_a" | "upc_e" | "linear_codes" | "matrix_codes" | "unknown")[]; +export type BarcodeFormat = (typeof BARCODE_FORMATS)[number]; +export type ReadResultBarcodeFormat = Exclude; +export declare const formatMap: Map<"aztec" | "code_128" | "code_39" | "code_93" | "codabar" | "databar" | "databar_expanded" | "databar_limited" | "data_matrix" | "dx_film_edge" | "ean_13" | "ean_8" | "itf" | "maxi_code" | "micro_qr_code" | "pdf417" | "qr_code" | "rm_qr_code" | "upc_a" | "upc_e" | "linear_codes" | "matrix_codes" | "unknown", ReadInputBarcodeFormat>; +export declare function convertFormat(target: ReadOutputBarcodeFormat): ReadResultBarcodeFormat; +export declare function isBlob(image: ImageBitmapSourceWebCodecs): image is Blob; +export declare function getImageDataOrBlobFromImageBitmapSource(image: ImageBitmapSourceWebCodecs): Promise; +declare global { + interface SVGImageElement { + decode?(): Promise; + } +} +export declare function addPrefixToExceptionOrError(e: unknown, prefix: string): TypeError | DOMException; diff --git a/node_modules/barcode-detector/dist/iife/index.js b/node_modules/barcode-detector/dist/iife/index.js new file mode 100644 index 0000000..d2acd5b --- /dev/null +++ b/node_modules/barcode-detector/dist/iife/index.js @@ -0,0 +1,2 @@ +var BarcodeDetectionAPI=function(D){"use strict";var me=D=>{throw TypeError(D)};var ge=(D,I,k)=>I.has(D)||me("Cannot "+k);var we=(D,I,k)=>(ge(D,I,"read from private field"),k?k.call(D):I.get(D)),$e=(D,I,k)=>I.has(D)?me("Cannot add the same private member more than once"):I instanceof WeakSet?I.add(D):I.set(D,k),be=(D,I,k,Ct)=>(ge(D,I,"write to private field"),Ct?Ct.call(D,k):I.set(D,k),k);var ft,_r;const I=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function k(i){return i.join("|")}function Ct(i){const h=fr(i);let v=0,b=I.length-1;for(;v<=b;){const c=Math.floor((v+b)/2),P=I[c],x=fr(P);if(x===h)return P;x{const v=i.match(/_(.+?)\.wasm$/);return v?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${v[1]}/${i}`:h+i}};let Lt=new WeakMap;function zt(i,h){var v;const b=Lt.get(i);if(b!=null&&b.modulePromise&&h===void 0)return b.modulePromise;const c=(v=b==null?void 0:b.moduleOverrides)!=null?v:De,P=i({...c});return Lt.set(i,{moduleOverrides:c,modulePromise:P}),P}function Oe(i,h){Lt.set(i,{moduleOverrides:h})}async function Se(i,h,v=ot){const b={...ot,...v},c=await zt(i),{size:P}=h,x=new Uint8Array(await h.arrayBuffer()),V=c._malloc(P);c.HEAPU8.set(x,V);const z=c.readBarcodesFromImage(V,P,dr(c,b));c._free(V);const U=[];for(let R=0;R{var i,h=typeof document<"u"&&((i=document.currentScript)==null?void 0:i.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(v={}){var b,c=v,P,x,V=new Promise((t,r)=>{P=t,x=r}),z=typeof window=="object",U=typeof Bun<"u",R=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Q=Object.assign({},c),N="./this.program",B="";function dt(t){return c.locateFile?c.locateFile(t,B):B+t}var ht,it;if(z||R||U){var pt;R?B=self.location.href:typeof document<"u"&&((pt=document.currentScript)===null||pt===void 0?void 0:pt.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),h&&(B=h),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),R&&(it=t=>{var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ht=t=>fetch(t,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url)))}var Gt=c.print||console.log.bind(console),st=c.printErr||console.error.bind(console);Object.assign(c,Q),Q=null,c.arguments&&c.arguments,c.thisProgram&&(N=c.thisProgram);var Pt=c.wasmBinary,Et,Ar=!1,G,M,ut,vt,tt,E,Dr,Or;function Sr(){var t=Et.buffer;c.HEAP8=G=new Int8Array(t),c.HEAP16=ut=new Int16Array(t),c.HEAPU8=M=new Uint8Array(t),c.HEAPU16=vt=new Uint16Array(t),c.HEAP32=tt=new Int32Array(t),c.HEAPU32=E=new Uint32Array(t),c.HEAPF32=Dr=new Float32Array(t),c.HEAPF64=Or=new Float64Array(t)}var xr=[],jr=[],Fr=[];function Ze(){var t=c.preRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(tn)),Qt(xr)}function Je(){Qt(jr)}function Ke(){var t=c.postRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(en)),Qt(Fr)}function tn(t){xr.unshift(t)}function rn(t){jr.unshift(t)}function en(t){Fr.unshift(t)}var rt=0,yt=null;function nn(t){var r;rt++,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,rt)}function an(t){var r;if(rt--,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,rt),rt==0&&yt){var e=yt;yt=null,e()}}function Xt(t){var r;(r=c.onAbort)===null||r===void 0||r.call(c,t),t="Aborted("+t+")",st(t),Ar=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw x(e),e}var on="data:application/octet-stream;base64,",Mr=t=>t.startsWith(on);function sn(){var t="zxing_reader.wasm";return Mr(t)?t:dt(t)}var _t;function Ir(t){if(t==_t&&Pt)return new Uint8Array(Pt);if(it)return it(t);throw"both async and sync fetching of the wasm failed"}function un(t){return Pt?Promise.resolve().then(()=>Ir(t)):ht(t).then(r=>new Uint8Array(r),()=>Ir(t))}function Wr(t,r,e){return un(t).then(n=>WebAssembly.instantiate(n,r)).then(e,n=>{st(`failed to asynchronously prepare wasm: ${n}`),Xt(n)})}function cn(t,r,e,n){return!t&&typeof WebAssembly.instantiateStreaming=="function"&&!Mr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var o=WebAssembly.instantiateStreaming(a,e);return o.then(n,function(u){return st(`wasm streaming compile failed: ${u}`),st("falling back to ArrayBuffer instantiation"),Wr(r,e,n)})}):Wr(r,e,n)}function ln(){return{a:Ka}}function fn(){var t,r=ln();function e(a,o){return A=a.exports,Et=A.za,Sr(),Gr=A.Da,rn(A.Aa),an(),A}nn();function n(a){e(a.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(r,e)}catch(a){st(`Module.instantiateWasm callback failed with error: ${a}`),x(a)}return(t=_t)!==null&&t!==void 0||(_t=sn()),cn(Pt,_t,r,n).catch(x),{}}var Qt=t=>{t.forEach(r=>r(c))};c.noExitRuntime;var g=t=>ae(t),w=()=>oe(),At=[],Dt=0,dn=t=>{var r=new Yt(t);return r.get_caught()||(r.set_caught(!0),Dt--),r.set_rethrown(!1),At.push(r),se(t),ee(t)},Y=0,hn=()=>{y(0,0);var t=At.pop();ie(t.excPtr),Y=0};class Yt{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){E[this.ptr+4>>2]=r}get_type(){return E[this.ptr+4>>2]}set_destructor(r){E[this.ptr+8>>2]=r}get_destructor(){return E[this.ptr+8>>2]}set_caught(r){r=r?1:0,G[this.ptr+12]=r}get_caught(){return G[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,G[this.ptr+13]=r}get_rethrown(){return G[this.ptr+13]!=0}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){E[this.ptr+16>>2]=r}get_adjusted_ptr(){return E[this.ptr+16>>2]}}var pn=t=>{throw Y||(Y=t),Y},Ot=t=>ne(t),qt=t=>{var r=Y;if(!r)return Ot(0),0;var e=new Yt(r);e.set_adjusted_ptr(r);var n=e.get_type();if(!n)return Ot(0),r;for(var a of t){if(a===0||a===n)break;var o=e.ptr+16;if(ue(a,n,o))return Ot(a),r}return Ot(n),r},vn=()=>qt([]),yn=t=>qt([t]),mn=(t,r)=>qt([t,r]),gn=()=>{var t=At.pop();t||Xt("no exception to throw");var r=t.excPtr;throw t.get_rethrown()||(At.push(t),t.set_rethrown(!0),t.set_caught(!1),Dt++),Y=r,Y},wn=(t,r,e)=>{var n=new Yt(t);throw n.init(r,e),Y=t,Dt++,Y},$n=()=>Dt,bn=()=>{Xt("")},St={},Zt=t=>{for(;t.length;){var r=t.pop(),e=t.pop();e(r)}};function mt(t){return this.fromWireType(E[t>>2])}var ct={},et={},xt={},Rr,jt=t=>{throw new Rr(t)},nt=(t,r,e)=>{t.forEach(s=>xt[s]=r);function n(s){var l=e(s);l.length!==t.length&&jt("Mismatched type converter count");for(var f=0;f{et.hasOwnProperty(s)?a[l]=et[s]:(o.push(s),ct.hasOwnProperty(s)||(ct[s]=[]),ct[s].push(()=>{a[l]=et[s],++u,u===o.length&&n(a)}))}),o.length===0&&n(a)},Cn=t=>{var r=St[t];delete St[t];var e=r.rawConstructor,n=r.rawDestructor,a=r.fields,o=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));nt([t],o,u=>{var s={};return a.forEach((l,f)=>{var d=l.fieldName,p=u[f],m=l.getter,T=l.getterContext,_=u[f+a.length],j=l.setter,O=l.setterContext;s[d]={read:S=>p.fromWireType(m(T,S)),write:(S,at)=>{var W=[];j(O,S,_.toWireType(W,at)),Zt(W)}}}),[{name:r.name,fromWireType:l=>{var f={};for(var d in s)f[d]=s[d].read(l);return n(l),f},toWireType:(l,f)=>{for(var d in s)if(!(d in f))throw new TypeError(`Missing field: "${d}"`);var p=e();for(d in s)s[d].write(p,f[d]);return l!==null&&l.push(n,p),p},argPackAdvance:X,readValueFromPointer:mt,destructorFunction:n}]})},Tn=(t,r,e,n,a)=>{},Pn=()=>{for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);Br=t},Br,F=t=>{for(var r="",e=t;M[e];)r+=Br[M[e++]];return r},lt,C=t=>{throw new lt(t)};function En(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(t||C(`type "${n}" must have a positive integer typeid pointer`),et.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;C(`Cannot register type '${n}' twice`)}if(et[t]=r,delete xt[t],ct.hasOwnProperty(t)){var a=ct[t];delete ct[t],a.forEach(o=>o())}}function H(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return En(t,r,e)}var X=8,_n=(t,r,e,n)=>{r=F(r),H(t,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,o){return o?e:n},argPackAdvance:X,readValueFromPointer:function(a){return this.fromWireType(M[a])},destructorFunction:null})},An=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),Jt=t=>{function r(e){return e.$$.ptrType.registeredClass.name}C(r(t)+" instance already deleted")},Kt=!1,kr=t=>{},Dn=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},Ur=t=>{t.count.value-=1;var r=t.count.value===0;r&&Dn(t)},Vr=(t,r,e)=>{if(r===e)return t;if(e.baseClass===void 0)return null;var n=Vr(t,r,e.baseClass);return n===null?null:e.downcast(n)},Hr={},On={},Sn=(t,r)=>{for(r===void 0&&C("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},xn=(t,r)=>(r=Sn(t,r),On[r]),Ft=(t,r)=>{(!r.ptrType||!r.ptr)&&jt("makeClassHandle requires ptr and ptrType");var e=!!r.smartPtrType,n=!!r.smartPtr;return e!==n&&jt("Both smartPtrType and smartPtr must be specified"),r.count={value:1},gt(Object.create(t,{$$:{value:r,writable:!0}}))};function jn(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=xn(this.registeredClass,r);if(e!==void 0){if(e.$$.count.value===0)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Ft(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Ft(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=this.registeredClass.getActualType(r),u=Hr[o];if(!u)return a.call(this);var s;this.isConst?s=u.constPointerType:s=u.pointerType;var l=Vr(r,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Ft(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:t}):Ft(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var gt=t=>typeof FinalizationRegistry>"u"?(gt=r=>r,t):(Kt=new FinalizationRegistry(r=>{Ur(r.$$)}),gt=r=>{var e=r.$$,n=!!e.smartPtr;if(n){var a={$$:e};Kt.register(r,a,r)}return r},kr=r=>Kt.unregister(r),gt(t)),Mt=[],Fn=()=>{for(;Mt.length;){var t=Mt.pop();t.$$.deleteScheduled=!1,t.delete()}},Lr,Mn=()=>{Object.assign(It.prototype,{isAliasOf(t){if(!(this instanceof It)||!(t instanceof It))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&e===a},clone(){if(this.$$.ptr||Jt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=gt(Object.create(Object.getPrototypeOf(this),{$$:{value:An(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),kr(this),Ur(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),Mt.push(this),Mt.length===1&&Lr&&Lr(Fn),this.$$.deleteScheduled=!0,this}})};function It(){}var wt=(t,r)=>Object.defineProperty(r,"name",{value:t}),zr=(t,r,e)=>{if(t[r].overloadTable===void 0){var n=t[r];t[r]=function(){for(var a=arguments.length,o=new Array(a),u=0;u{c.hasOwnProperty(t)?((e===void 0||c[t].overloadTable!==void 0&&c[t].overloadTable[e]!==void 0)&&C(`Cannot register public name '${t}' twice`),zr(c,t,t),c.hasOwnProperty(e)&&C(`Cannot register multiple overloads of a function with the same number of arguments (${e})!`),c[t].overloadTable[e]=r):(c[t]=r,e!==void 0&&(c[t].numArguments=e))},In=48,Wn=57,Rn=t=>{t=t.replace(/[^a-zA-Z0-9_]/g,"$");var r=t.charCodeAt(0);return r>=In&&r<=Wn?`_${t}`:t};function Bn(t,r,e,n,a,o,u,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=u,this.downcast=s,this.pureVirtualFunctions=[]}var rr=(t,r,e)=>{for(;r!==e;)r.upcast||C(`Expected null or instance of ${e.name}, got an instance of ${r.name}`),t=r.upcast(t),r=r.baseClass;return t};function kn(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=rr(r.$$.ptr,e,this.registeredClass);return n}function Un(t,r){var e;if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),this.isSmartPointer?(e=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,e),e):0;(!r||!r.$$)&&C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(e=rr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&C("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var a=r.clone();e=this.rawShare(e,Z.toHandle(()=>a.delete())),t!==null&&t.push(this.rawDestructor,e)}break;default:C("Unsupporting sharing policy")}return e}function Vn(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=rr(r.$$.ptr,e,this.registeredClass);return n}var Hn=()=>{Object.assign(Wt.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,t)},argPackAdvance:X,readValueFromPointer:mt,fromWireType:jn})};function Wt(t,r,e,n,a,o,u,s,l,f,d){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=u,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=d,!a&&r.baseClass===void 0?n?(this.toWireType=kn,this.destructorFunction=null):(this.toWireType=Vn,this.destructorFunction=null):this.toWireType=Un}var Nr=(t,r,e)=>{c.hasOwnProperty(t)||jt("Replacing nonexistent public symbol"),c[t].overloadTable!==void 0&&e!==void 0?c[t].overloadTable[e]=r:(c[t]=r,c[t].argCount=e)},Ln=(t,r,e)=>{t=t.replace(/p/g,"i");var n=c["dynCall_"+t];return n(r,...e)},Rt=[],Gr,$=t=>{var r=Rt[t];return r||(t>=Rt.length&&(Rt.length=t+1),Rt[t]=r=Gr.get(t)),r},zn=function(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.includes("j"))return Ln(t,r,e);var n=$(r)(...e);return n},Nn=(t,r)=>function(){for(var e=arguments.length,n=new Array(e),a=0;a{t=F(t);function e(){return t.includes("j")?Nn(t,r):$(r)}var n=e();return typeof n!="function"&&C(`unknown function pointer with signature ${t}: ${r}`),n},Gn=(t,r)=>{var e=wt(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},e},Xr,Qr=t=>{var r=re(t),e=F(r);return J(r),e},Bt=(t,r)=>{var e=[],n={};function a(o){if(!n[o]&&!et[o]){if(xt[o]){xt[o].forEach(a);return}e.push(o),n[o]=!0}}throw r.forEach(a),new Xr(`${t}: `+e.map(Qr).join([", "]))},Xn=(t,r,e,n,a,o,u,s,l,f,d,p,m)=>{d=F(d),o=L(a,o),s&&(s=L(u,s)),f&&(f=L(l,f)),m=L(p,m);var T=Rn(d);tr(T,function(){Bt(`Cannot construct ${d} due to unbound types`,[n])}),nt([t,r,e],n?[n]:[],_=>{_=_[0];var j,O;n?(j=_.registeredClass,O=j.instancePrototype):O=It.prototype;var S=wt(d,function(){if(Object.getPrototypeOf(this)!==at)throw new lt("Use 'new' to construct "+d);if(W.constructor_body===void 0)throw new lt(d+" has no accessible constructor");for(var ve=arguments.length,Vt=new Array(ve),Ht=0;Ht{for(var e=[],n=0;n>2]);return e};function Qn(t){for(var r=1;r{var u=er(r,e);a=L(n,a),nt([],[t],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new lt(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Bt(`Cannot construct ${s.name} due to unbound types`,u)},nt([],u,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[r-1]=nr(l,f,null,a,o),[])),[]})},Yr=t=>{t=t.trim();const r=t.indexOf("(");return r!==-1?t.substr(0,r):t},qn=(t,r,e,n,a,o,u,s,l,f)=>{var d=er(e,n);r=F(r),r=Yr(r),o=L(a,o),nt([],[t],p=>{p=p[0];var m=`${p.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&p.registeredClass.pureVirtualFunctions.push(r);function T(){Bt(`Cannot call ${m} due to unbound types`,d)}var _=p.registeredClass.instancePrototype,j=_[r];return j===void 0||j.overloadTable===void 0&&j.className!==p.name&&j.argCount===e-2?(T.argCount=e-2,T.className=p.name,_[r]=T):(zr(_,r,m),_[r].overloadTable[e-2]=T),nt([],d,O=>{var S=nr(m,O,p,o,u);return _[r].overloadTable===void 0?(S.argCount=e-2,_[r]=S):_[r].overloadTable[e-2]=S,[]}),[]})},ar=[],q=[],or=t=>{t>9&&--q[t+1]===0&&(q[t]=void 0,ar.push(t))},Zn=()=>q.length/2-5-ar.length,Jn=()=>{q.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Zn},Z={toValue:t=>(t||C("Cannot use deleted val. handle = "+t),q[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=ar.pop()||q.length;return q[r]=t,q[r+1]=1,r}}}},qr={name:"emscripten::val",fromWireType:t=>{var r=Z.toValue(t);return or(t),r},toWireType:(t,r)=>Z.toHandle(r),argPackAdvance:X,readValueFromPointer:mt,destructorFunction:null},Kn=t=>H(t,qr),ta=(t,r,e)=>{switch(r){case 1:return e?function(n){return this.fromWireType(G[n])}:function(n){return this.fromWireType(M[n])};case 2:return e?function(n){return this.fromWireType(ut[n>>1])}:function(n){return this.fromWireType(vt[n>>1])};case 4:return e?function(n){return this.fromWireType(tt[n>>2])}:function(n){return this.fromWireType(E[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},ra=(t,r,e,n)=>{r=F(r);function a(){}a.values={},H(t,{name:r,constructor:a,fromWireType:function(o){return this.constructor.values[o]},toWireType:(o,u)=>u.value,argPackAdvance:X,readValueFromPointer:ta(r,e,n),destructorFunction:null}),tr(r,a)},ir=(t,r)=>{var e=et[t];return e===void 0&&C(`${r} has unknown type ${Qr(t)}`),e},ea=(t,r,e)=>{var n=ir(t,"enum");r=F(r);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:e},constructor:{value:wt(`${n.name}_${r}`,function(){})}});a.values[e]=o,a[r]=o},sr=t=>{if(t===null)return"null";var r=typeof t;return r==="object"||r==="array"||r==="function"?t.toString():""+t},na=(t,r)=>{switch(r){case 4:return function(e){return this.fromWireType(Dr[e>>2])};case 8:return function(e){return this.fromWireType(Or[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${t}`)}},aa=(t,r,e)=>{r=F(r),H(t,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:X,readValueFromPointer:na(r,e),destructorFunction:null})},oa=(t,r,e,n,a,o,u,s)=>{var l=er(r,e);t=F(t),t=Yr(t),a=L(n,a),tr(t,function(){Bt(`Cannot call ${t} due to unbound types`,l)},r-1),nt([],l,f=>{var d=[f[0],null].concat(f.slice(1));return Nr(t,nr(t,d,null,a,o),r-1),[]})},ia=(t,r,e)=>{switch(r){case 1:return e?n=>G[n]:n=>M[n];case 2:return e?n=>ut[n>>1]:n=>vt[n>>1];case 4:return e?n=>tt[n>>2]:n=>E[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},sa=(t,r,e,n,a)=>{r=F(r);var o=d=>d;if(n===0){var u=32-8*e;o=d=>d<>>u}var s=r.includes("unsigned"),l=(d,p)=>{},f;s?f=function(d,p){return l(p,this.name),p>>>0}:f=function(d,p){return l(p,this.name),p},H(t,{name:r,fromWireType:o,toWireType:f,argPackAdvance:X,readValueFromPointer:ia(r,e,n!==0),destructorFunction:null})},ua=(t,r,e)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function o(u){var s=E[u>>2],l=E[u+4>>2];return new a(G.buffer,l,s)}e=F(e),H(t,{name:e,fromWireType:o,argPackAdvance:X,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},ca=Object.assign({optional:!0},qr),la=(t,r)=>{H(t,ca)},fa=(t,r,e,n)=>{if(!(n>0))return 0;for(var a=e,o=e+n-1,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(e>=o)break;r[e++]=s}else if(s<=2047){if(e+1>=o)break;r[e++]=192|s>>6,r[e++]=128|s&63}else if(s<=65535){if(e+2>=o)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|s&63}else{if(e+3>=o)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|s&63}}return r[e]=0,e-a},$t=(t,r,e)=>fa(t,M,r,e),da=t=>{for(var r=0,e=0;e=55296&&n<=57343?(r+=4,++e):r+=3}return r},Zr=typeof TextDecoder<"u"?new TextDecoder:void 0,Jr=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=r+e,a=r;t[a]&&!(a>=n);)++a;if(a-r>16&&t.buffer&&Zr)return Zr.decode(t.subarray(r,a));for(var o="";r>10,56320|f&1023)}}return o},ha=(t,r)=>t?Jr(M,t,r):"",pa=(t,r)=>{r=F(r);var e=r==="std::string";H(t,{name:r,fromWireType(n){var a=E[n>>2],o=n+4,u;if(e)for(var s=o,l=0;l<=a;++l){var f=o+l;if(l==a||M[f]==0){var d=f-s,p=ha(s,d);u===void 0?u=p:(u+="\0",u+=p),s=f+1}}else{for(var m=new Array(a),l=0;l>2]=o,e&&u)$t(a,l,o+1);else if(u)for(var f=0;f255&&(J(l),C("String has UTF-16 code units that do not fit in 8 bits")),M[l+f]=d}else for(var f=0;f{for(var e=t,n=e>>1,a=n+r/2;!(n>=a)&&vt[n];)++n;if(e=n<<1,e-t>32&&Kr)return Kr.decode(M.subarray(t,e));for(var o="",u=0;!(u>=r/2);++u){var s=ut[t+u*2>>1];if(s==0)break;o+=String.fromCharCode(s)}return o},ya=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<2)return 0;e-=2;for(var a=r,o=e>1]=s,r+=2}return ut[r>>1]=0,r-a},ma=t=>t.length*2,ga=(t,r)=>{for(var e=0,n="";!(e>=r/4);){var a=tt[t+e*4>>2];if(a==0)break;if(++e,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(a)}return n},wa=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<4)return 0;for(var a=r,o=a+e-4,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(tt[r>>2]=s,r+=4,r+4>o)break}return tt[r>>2]=0,r-a},$a=t=>{for(var r=0,e=0;e=55296&&n<=57343&&++e,r+=4}return r},ba=(t,r,e)=>{e=F(e);var n,a,o,u;r===2?(n=va,a=ya,u=ma,o=s=>vt[s>>1]):r===4&&(n=ga,a=wa,u=$a,o=s=>E[s>>2]),H(t,{name:e,fromWireType:s=>{for(var l=E[s>>2],f,d=s+4,p=0;p<=l;++p){var m=s+4+p*r;if(p==l||o(m)==0){var T=m-d,_=n(d,T);f===void 0?f=_:(f+="\0",f+=_),d=m+r}}return J(s),f},toWireType:(s,l)=>{typeof l!="string"&&C(`Cannot pass non-string to C++ string type ${e}`);var f=u(l),d=lr(4+f+r);return E[d>>2]=f/r,a(l,d+4,f+r),s!==null&&s.push(J,d),d},argPackAdvance:X,readValueFromPointer:mt,destructorFunction(s){J(s)}})},Ca=(t,r,e,n,a,o)=>{St[t]={name:F(r),rawConstructor:L(e,n),rawDestructor:L(a,o),fields:[]}},Ta=(t,r,e,n,a,o,u,s,l,f)=>{St[t].fields.push({fieldName:F(r),getterReturnType:e,getter:L(n,a),getterContext:o,setterArgumentType:u,setter:L(s,l),setterContext:f})},Pa=(t,r)=>{r=F(r),H(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(e,n)=>{}})},Ea=(t,r,e)=>M.copyWithin(t,r,r+e),ur=[],_a=(t,r,e,n)=>(t=ur[t],r=Z.toValue(r),t(null,r,e,n)),Aa={},Da=t=>{var r=Aa[t];return r===void 0?F(t):r},te=()=>{if(typeof globalThis=="object")return globalThis;function t(r){r.$$$embind_global$$$=r;var e=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&t(global)?$$$embind_global$$$=global:typeof self=="object"&&t(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Oa=t=>t===0?Z.toHandle(te()):(t=Da(t),Z.toHandle(te()[t])),Sa=t=>{var r=ur.length;return ur.push(t),r},xa=(t,r)=>{for(var e=new Array(t),n=0;n>2],"parameter "+n);return e},ja=Reflect.construct,Fa=(t,r,e)=>{var n=[],a=t.toWireType(n,e);return n.length&&(E[r>>2]=Z.toHandle(n)),a},Ma=(t,r,e)=>{var n=xa(t,r),a=n.shift();t--;var o=new Array(t),u=(l,f,d,p)=>{for(var m=0,T=0;Tl.name).join(", ")}) => ${a.name}>`;return Sa(wt(s,u))},Ia=t=>{t>9&&(q[t+1]+=1)},Wa=t=>{var r=Z.toValue(t);Zt(r),or(t)},Ra=(t,r)=>{t=ir(t,"_emval_take_value");var e=t.readValueFromPointer(r);return Z.toHandle(e)},Ba=(t,r,e,n)=>{var a=new Date().getFullYear(),o=new Date(a,0,1),u=new Date(a,6,1),s=o.getTimezoneOffset(),l=u.getTimezoneOffset(),f=Math.max(s,l);E[t>>2]=f*60,tt[r>>2]=+(s!=l);var d=T=>{var _=T>=0?"-":"+",j=Math.abs(T),O=String(Math.floor(j/60)).padStart(2,"0"),S=String(j%60).padStart(2,"0");return`UTC${_}${O}${S}`},p=d(s),m=d(l);l2147483648,Ua=(t,r)=>Math.ceil(t/r)*r,Va=t=>{var r=Et.buffer,e=(t-r.byteLength+65535)/65536|0;try{return Et.grow(e),Sr(),1}catch{}},Ha=t=>{var r=M.length;t>>>=0;var e=ka();if(t>e)return!1;for(var n=1;n<=4;n*=2){var a=r*(1+.2/n);a=Math.min(a,t+100663296);var o=Math.min(e,Ua(Math.max(t,a),65536)),u=Va(o);if(u)return!0}return!1},cr={},La=()=>N||"./this.program",bt=()=>{if(!bt.strings){var t=(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:t,_:La()};for(var e in cr)cr[e]===void 0?delete r[e]:r[e]=cr[e];var n=[];for(var e in r)n.push(`${e}=${r[e]}`);bt.strings=n}return bt.strings},za=(t,r)=>{for(var e=0;e{var e=0;return bt().forEach((n,a)=>{var o=r+e;E[t+a*4>>2]=o,za(n,o),e+=n.length+1}),0},Ga=(t,r)=>{var e=bt();E[t>>2]=e.length;var n=0;return e.forEach(a=>n+=a.length+1),E[r>>2]=n,0},Xa=t=>52;function Qa(t,r,e,n,a){return 70}var Ya=[null,[],[]],qa=(t,r)=>{var e=Ya[t];r===0||r===10?((t===1?Gt:st)(Jr(e)),e.length=0):e.push(r)},Za=(t,r,e,n)=>{for(var a=0,o=0;o>2],s=E[r+4>>2];r+=8;for(var l=0;l>2]=a,0},Ja=t=>t;Rr=c.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},Pn(),lt=c.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Mn(),Hn(),Xr=c.UnboundTypeError=Gn(Error,"UnboundTypeError"),Jn();var Ka={t:dn,x:hn,a:vn,j:yn,k:mn,O:gn,q:wn,ga:$n,d:pn,ca:bn,va:Cn,ba:Tn,pa:_n,ta:Xn,sa:Yn,E:qn,oa:Kn,F:ra,n:ea,W:aa,X:oa,y:sa,u:ua,ua:la,V:pa,P:ba,L:Ca,wa:Ta,qa:Pa,ja:Ea,T:_a,xa:or,ya:Oa,U:Ma,Y:Ia,Z:Wa,ra:Ra,da:Ba,ha:Ha,ea:Na,fa:Ga,ia:Xa,$:Qa,S:Za,J:bo,C:To,Q:ao,R:So,r:mo,b:to,D:$o,la:Eo,c:io,ka:_o,h:no,i:lo,s:fo,N:wo,w:po,I:Do,K:go,z:Po,H:xo,aa:Fo,_:Mo,l:so,f:oo,e:eo,g:ro,M:Oo,m:co,ma:Co,p:ho,v:vo,na:yo,B:Ao,o:uo,G:jo,A:Ja},A=fn(),re=t=>(re=A.Ba)(t),J=c._free=t=>(J=c._free=A.Ca)(t),lr=c._malloc=t=>(lr=c._malloc=A.Ea)(t),ee=t=>(ee=A.Fa)(t),y=(t,r)=>(y=A.Ga)(t,r),ne=t=>(ne=A.Ha)(t),ae=t=>(ae=A.Ia)(t),oe=()=>(oe=A.Ja)(),ie=t=>(ie=A.Ka)(t),se=t=>(se=A.La)(t),ue=(t,r,e)=>(ue=A.Ma)(t,r,e);c.dynCall_viijii=(t,r,e,n,a,o,u)=>(c.dynCall_viijii=A.Na)(t,r,e,n,a,o,u);var ce=c.dynCall_jiii=(t,r,e,n)=>(ce=c.dynCall_jiii=A.Oa)(t,r,e,n);c.dynCall_jiji=(t,r,e,n,a)=>(c.dynCall_jiji=A.Pa)(t,r,e,n,a);var le=c.dynCall_jiiii=(t,r,e,n,a)=>(le=c.dynCall_jiiii=A.Qa)(t,r,e,n,a);c.dynCall_iiiiij=(t,r,e,n,a,o,u)=>(c.dynCall_iiiiij=A.Ra)(t,r,e,n,a,o,u),c.dynCall_iiiiijj=(t,r,e,n,a,o,u,s,l)=>(c.dynCall_iiiiijj=A.Sa)(t,r,e,n,a,o,u,s,l),c.dynCall_iiiiiijj=(t,r,e,n,a,o,u,s,l,f)=>(c.dynCall_iiiiiijj=A.Ta)(t,r,e,n,a,o,u,s,l,f);function to(t,r){var e=w();try{return $(t)(r)}catch(n){if(g(e),n!==n+0)throw n;y(1,0)}}function ro(t,r,e,n){var a=w();try{$(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function eo(t,r,e){var n=w();try{$(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function no(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function ao(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function oo(t,r){var e=w();try{$(t)(r)}catch(n){if(g(e),n!==n+0)throw n;y(1,0)}}function io(t,r,e){var n=w();try{return $(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function so(t){var r=w();try{$(t)()}catch(e){if(g(r),e!==e+0)throw e;y(1,0)}}function uo(t,r,e,n,a,o,u,s,l,f,d){var p=w();try{$(t)(r,e,n,a,o,u,s,l,f,d)}catch(m){if(g(p),m!==m+0)throw m;y(1,0)}}function co(t,r,e,n,a){var o=w();try{$(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function lo(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function fo(t,r,e,n,a,o){var u=w();try{return $(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function ho(t,r,e,n,a,o){var u=w();try{$(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function po(t,r,e,n,a,o,u){var s=w();try{return $(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function vo(t,r,e,n,a,o,u,s){var l=w();try{$(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function yo(t,r,e,n,a,o,u,s,l){var f=w();try{$(t)(r,e,n,a,o,u,s,l)}catch(d){if(g(f),d!==d+0)throw d;y(1,0)}}function mo(t){var r=w();try{return $(t)()}catch(e){if(g(r),e!==e+0)throw e;y(1,0)}}function go(t,r,e,n,a,o,u,s,l){var f=w();try{return $(t)(r,e,n,a,o,u,s,l)}catch(d){if(g(f),d!==d+0)throw d;y(1,0)}}function wo(t,r,e,n,a,o,u){var s=w();try{return $(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function $o(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function bo(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function Co(t,r,e,n,a,o,u,s){var l=w();try{$(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function To(t,r,e,n,a,o){var u=w();try{return $(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function Po(t,r,e,n,a,o,u,s,l,f){var d=w();try{return $(t)(r,e,n,a,o,u,s,l,f)}catch(p){if(g(d),p!==p+0)throw p;y(1,0)}}function Eo(t,r,e){var n=w();try{return $(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function _o(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function Ao(t,r,e,n,a,o,u,s,l,f){var d=w();try{$(t)(r,e,n,a,o,u,s,l,f)}catch(p){if(g(d),p!==p+0)throw p;y(1,0)}}function Do(t,r,e,n,a,o,u,s){var l=w();try{return $(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function Oo(t,r,e,n,a,o,u){var s=w();try{$(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function So(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function xo(t,r,e,n,a,o,u,s,l,f,d,p){var m=w();try{return $(t)(r,e,n,a,o,u,s,l,f,d,p)}catch(T){if(g(m),T!==T+0)throw T;y(1,0)}}function jo(t,r,e,n,a,o,u,s,l,f,d,p,m,T,_,j){var O=w();try{$(t)(r,e,n,a,o,u,s,l,f,d,p,m,T,_,j)}catch(S){if(g(O),S!==S+0)throw S;y(1,0)}}function Fo(t,r,e,n){var a=w();try{return ce(t,r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function Mo(t,r,e,n,a){var o=w();try{return le(t,r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}var kt,fe;yt=function t(){kt||de(),kt||(yt=t)};function de(){if(rt>0||!fe&&(fe=1,Ze(),rt>0))return;function t(){var r;kt||(kt=1,c.calledRun=1,!Ar&&(Je(),P(c),(r=c.onRuntimeInitialized)===null||r===void 0||r.call(c),Ke()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),t()},1)):t()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return de(),b=V,b}})();function je(i){return zt(Tt,i)}function Fe(i){return Oe(Tt,i)}async function Me(i,h){return Se(Tt,i,h)}async function Ie(i,h){return xe(Tt,i,h)}const pr=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["databar_limited","DataBarLimited"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],We=[...pr,["unknown"]].map(i=>i[0]),Nt=new Map(pr);function Re(i){for(const[h,v]of Nt)if(i===v)return h;return"unknown"}function Be(i){if(vr(i))return{width:i.naturalWidth,height:i.naturalHeight};if(yr(i))return{width:i.width.baseVal.value,height:i.height.baseVal.value};if(mr(i))return{width:i.videoWidth,height:i.videoHeight};if(wr(i))return{width:i.width,height:i.height};if(br(i))return{width:i.displayWidth,height:i.displayHeight};if(gr(i))return{width:i.width,height:i.height};if($r(i))return{width:i.width,height:i.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function vr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLImageElement)}catch{return!1}}function yr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.SVGImageElement)}catch{return!1}}function mr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLVideoElement)}catch{return!1}}function gr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLCanvasElement)}catch{return!1}}function wr(i){try{return i instanceof ImageBitmap||Object.prototype.toString.call(i)==="[object ImageBitmap]"}catch{return!1}}function $r(i){try{return i instanceof OffscreenCanvas||Object.prototype.toString.call(i)==="[object OffscreenCanvas]"}catch{return!1}}function br(i){try{return i instanceof VideoFrame||Object.prototype.toString.call(i)==="[object VideoFrame]"}catch{return!1}}function Cr(i){try{return i instanceof Blob||Object.prototype.toString.call(i)==="[object Blob]"}catch{return!1}}function ke(i){try{return i instanceof ImageData||Object.prototype.toString.call(i)==="[object ImageData]"}catch{return!1}}function Ue(i,h){try{const v=new OffscreenCanvas(i,h);if(v.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return v;throw void 0}catch{const v=document.createElement("canvas");return v.width=i,v.height=h,v}}async function Tr(i){if(vr(i)&&!await ze(i))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(yr(i)&&!await Ne(i))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(br(i)&&Ge(i))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(mr(i)&&(i.readyState===0||i.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(wr(i)&&Qe(i))throw new DOMException("The image source is detached.","InvalidStateError");const{width:h,height:v}=Be(i);if(h===0||v===0)return null;const c=Ue(h,v).getContext("2d");c.drawImage(i,0,0);try{return c.getImageData(0,0,h,v)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Ve(i){let h;try{if(globalThis.createImageBitmap)h=await createImageBitmap(i);else if(globalThis.Image){h=new Image;let b="";try{b=URL.createObjectURL(i),h.src=b,await h.decode()}finally{URL.revokeObjectURL(b)}}else return i}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await Tr(h)}function He(i){const{width:h,height:v}=i;if(h===0||v===0)return null;const b=i.getContext("2d");try{return b.getImageData(0,0,h,v)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Le(i){if(Cr(i))return await Ve(i);if(ke(i)){if(Xe(i))throw new DOMException("The image data has been detached.","InvalidStateError");return i}return gr(i)||$r(i)?He(i):await Tr(i)}async function ze(i){try{return await i.decode(),!0}catch{return!1}}async function Ne(i){var h;try{return await((h=i.decode)==null?void 0:h.call(i)),!0}catch{return!1}}function Ge(i){return i.format===null}function Xe(i){return i.data.buffer.byteLength===0}function Qe(i){return i.width===0&&i.height===0}function Pr(i,h){return Ye(i)?new DOMException(`${h}: ${i.message}`,i.name):qe(i)?new i.constructor(`${h}: ${i.message}`):new Error(`${h}: ${i}`)}function Ye(i){return i instanceof DOMException||Object.prototype.toString.call(i)==="[object DOMException]"}function qe(i){return i instanceof Error||Object.prototype.toString.call(i)==="[object Error]"}class Er extends EventTarget{constructor(v={}){var b;super();$e(this,ft);try{const c=(b=v==null?void 0:v.formats)==null?void 0:b.filter(P=>P!=="unknown");if((c==null?void 0:c.length)===0)throw new TypeError("Hint option provided, but is empty.");for(const P of c!=null?c:[])if(!Nt.has(P))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${P}' is not a valid enum value of type BarcodeFormat.`);be(this,ft,c!=null?c:[]),je().then(P=>{this.dispatchEvent(new CustomEvent("load",{detail:P}))}).catch(P=>{this.dispatchEvent(new CustomEvent("error",{detail:P}))})}catch(c){throw Pr(c,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return We.filter(v=>v!=="unknown")}async detect(v){try{const b=await Le(v);if(b===null)return[];let c;const P={tryHarder:!0,returnCodabarStartEnd:!0,formats:we(this,ft).map(x=>Nt.get(x))};try{Cr(b)?c=await Me(b,P):c=await Ie(b,P)}catch(x){throw console.error(x),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return c.map(x=>{const{topLeft:{x:V,y:z},topRight:{x:U,y:R},bottomLeft:{x:Q,y:N},bottomRight:{x:B,y:dt}}=x.position,ht=Math.min(V,U,Q,B),it=Math.min(z,R,N,dt),pt=Math.max(V,U,Q,B),Gt=Math.max(z,R,N,dt);return{boundingBox:new DOMRectReadOnly(ht,it,pt-ht,Gt-it),rawValue:x.text,format:Re(x.format),cornerPoints:[{x:V,y:z},{x:U,y:R},{x:B,y:dt},{x:Q,y:N}]}})}catch(b){throw Pr(b,"Failed to execute 'detect' on 'BarcodeDetector'")}}}return ft=new WeakMap,(_r=globalThis.BarcodeDetector)!=null||(globalThis.BarcodeDetector=Er),D.BarcodeDetector=Er,D.setZXingModuleOverrides=Fe,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),D}({}); diff --git a/node_modules/barcode-detector/dist/iife/pure.js b/node_modules/barcode-detector/dist/iife/pure.js new file mode 100644 index 0000000..4bced4d --- /dev/null +++ b/node_modules/barcode-detector/dist/iife/pure.js @@ -0,0 +1,2 @@ +var BarcodeDetectionAPI=function(O){"use strict";var ve=O=>{throw TypeError(O)};var ye=(O,I,k)=>I.has(O)||ve("Cannot "+k);var me=(O,I,k)=>(ye(O,I,"read from private field"),k?k.call(O):I.get(O)),ge=(O,I,k)=>I.has(O)?ve("Cannot add the same private member more than once"):I instanceof WeakSet?I.add(O):I.set(O,k),we=(O,I,k,Ct)=>(ye(O,I,"write to private field"),Ct?Ct.call(O,k):I.set(O,k),k);var ft;const I=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function k(i){return i.join("|")}function Ct(i){const h=fr(i);let v=0,b=I.length-1;for(;v<=b;){const c=Math.floor((v+b)/2),P=I[c],x=fr(P);if(x===h)return P;x{const v=i.match(/_(.+?)\.wasm$/);return v?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${v[1]}/${i}`:h+i}};let Lt=new WeakMap;function zt(i,h){var v;const b=Lt.get(i);if(b!=null&&b.modulePromise&&h===void 0)return b.modulePromise;const c=(v=b==null?void 0:b.moduleOverrides)!=null?v:_e,P=i({...c});return Lt.set(i,{moduleOverrides:c,modulePromise:P}),P}function Ae(i,h){Lt.set(i,{moduleOverrides:h})}async function Oe(i,h,v=ot){const b={...ot,...v},c=await zt(i),{size:P}=h,x=new Uint8Array(await h.arrayBuffer()),V=c._malloc(P);c.HEAPU8.set(x,V);const z=c.readBarcodesFromImage(V,P,dr(c,b));c._free(V);const U=[];for(let R=0;R{var i,h=typeof document<"u"&&((i=document.currentScript)==null?void 0:i.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(v={}){var b,c=v,P,x,V=new Promise((t,r)=>{P=t,x=r}),z=typeof window=="object",U=typeof Bun<"u",R=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Q=Object.assign({},c),N="./this.program",B="";function dt(t){return c.locateFile?c.locateFile(t,B):B+t}var ht,it;if(z||R||U){var pt;R?B=self.location.href:typeof document<"u"&&((pt=document.currentScript)===null||pt===void 0?void 0:pt.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),h&&(B=h),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),R&&(it=t=>{var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ht=t=>fetch(t,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url)))}var Gt=c.print||console.log.bind(console),st=c.printErr||console.error.bind(console);Object.assign(c,Q),Q=null,c.arguments&&c.arguments,c.thisProgram&&(N=c.thisProgram);var Pt=c.wasmBinary,Et,Er=!1,G,M,ut,vt,tt,E,_r,Ar;function Or(){var t=Et.buffer;c.HEAP8=G=new Int8Array(t),c.HEAP16=ut=new Int16Array(t),c.HEAPU8=M=new Uint8Array(t),c.HEAPU16=vt=new Uint16Array(t),c.HEAP32=tt=new Int32Array(t),c.HEAPU32=E=new Uint32Array(t),c.HEAPF32=_r=new Float32Array(t),c.HEAPF64=Ar=new Float64Array(t)}var Dr=[],Sr=[],xr=[];function qe(){var t=c.preRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(Ke)),Qt(Dr)}function Ze(){Qt(Sr)}function Je(){var t=c.postRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(rn)),Qt(xr)}function Ke(t){Dr.unshift(t)}function tn(t){Sr.unshift(t)}function rn(t){xr.unshift(t)}var rt=0,yt=null;function en(t){var r;rt++,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,rt)}function nn(t){var r;if(rt--,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,rt),rt==0&&yt){var e=yt;yt=null,e()}}function Xt(t){var r;(r=c.onAbort)===null||r===void 0||r.call(c,t),t="Aborted("+t+")",st(t),Er=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw x(e),e}var an="data:application/octet-stream;base64,",jr=t=>t.startsWith(an);function on(){var t="zxing_reader.wasm";return jr(t)?t:dt(t)}var _t;function Fr(t){if(t==_t&&Pt)return new Uint8Array(Pt);if(it)return it(t);throw"both async and sync fetching of the wasm failed"}function sn(t){return Pt?Promise.resolve().then(()=>Fr(t)):ht(t).then(r=>new Uint8Array(r),()=>Fr(t))}function Mr(t,r,e){return sn(t).then(n=>WebAssembly.instantiate(n,r)).then(e,n=>{st(`failed to asynchronously prepare wasm: ${n}`),Xt(n)})}function un(t,r,e,n){return!t&&typeof WebAssembly.instantiateStreaming=="function"&&!jr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var o=WebAssembly.instantiateStreaming(a,e);return o.then(n,function(u){return st(`wasm streaming compile failed: ${u}`),st("falling back to ArrayBuffer instantiation"),Mr(r,e,n)})}):Mr(r,e,n)}function cn(){return{a:Ja}}function ln(){var t,r=cn();function e(a,o){return A=a.exports,Et=A.za,Or(),zr=A.Da,tn(A.Aa),nn(),A}en();function n(a){e(a.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(r,e)}catch(a){st(`Module.instantiateWasm callback failed with error: ${a}`),x(a)}return(t=_t)!==null&&t!==void 0||(_t=on()),un(Pt,_t,r,n).catch(x),{}}var Qt=t=>{t.forEach(r=>r(c))};c.noExitRuntime;var g=t=>ee(t),w=()=>ne(),At=[],Ot=0,fn=t=>{var r=new Yt(t);return r.get_caught()||(r.set_caught(!0),Ot--),r.set_rethrown(!1),At.push(r),oe(t),te(t)},Y=0,dn=()=>{y(0,0);var t=At.pop();ae(t.excPtr),Y=0};class Yt{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){E[this.ptr+4>>2]=r}get_type(){return E[this.ptr+4>>2]}set_destructor(r){E[this.ptr+8>>2]=r}get_destructor(){return E[this.ptr+8>>2]}set_caught(r){r=r?1:0,G[this.ptr+12]=r}get_caught(){return G[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,G[this.ptr+13]=r}get_rethrown(){return G[this.ptr+13]!=0}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){E[this.ptr+16>>2]=r}get_adjusted_ptr(){return E[this.ptr+16>>2]}}var hn=t=>{throw Y||(Y=t),Y},Dt=t=>re(t),qt=t=>{var r=Y;if(!r)return Dt(0),0;var e=new Yt(r);e.set_adjusted_ptr(r);var n=e.get_type();if(!n)return Dt(0),r;for(var a of t){if(a===0||a===n)break;var o=e.ptr+16;if(ie(a,n,o))return Dt(a),r}return Dt(n),r},pn=()=>qt([]),vn=t=>qt([t]),yn=(t,r)=>qt([t,r]),mn=()=>{var t=At.pop();t||Xt("no exception to throw");var r=t.excPtr;throw t.get_rethrown()||(At.push(t),t.set_rethrown(!0),t.set_caught(!1),Ot++),Y=r,Y},gn=(t,r,e)=>{var n=new Yt(t);throw n.init(r,e),Y=t,Ot++,Y},wn=()=>Ot,$n=()=>{Xt("")},St={},Zt=t=>{for(;t.length;){var r=t.pop(),e=t.pop();e(r)}};function mt(t){return this.fromWireType(E[t>>2])}var ct={},et={},xt={},Ir,jt=t=>{throw new Ir(t)},nt=(t,r,e)=>{t.forEach(s=>xt[s]=r);function n(s){var l=e(s);l.length!==t.length&&jt("Mismatched type converter count");for(var f=0;f{et.hasOwnProperty(s)?a[l]=et[s]:(o.push(s),ct.hasOwnProperty(s)||(ct[s]=[]),ct[s].push(()=>{a[l]=et[s],++u,u===o.length&&n(a)}))}),o.length===0&&n(a)},bn=t=>{var r=St[t];delete St[t];var e=r.rawConstructor,n=r.rawDestructor,a=r.fields,o=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));nt([t],o,u=>{var s={};return a.forEach((l,f)=>{var d=l.fieldName,p=u[f],m=l.getter,T=l.getterContext,_=u[f+a.length],j=l.setter,D=l.setterContext;s[d]={read:S=>p.fromWireType(m(T,S)),write:(S,at)=>{var W=[];j(D,S,_.toWireType(W,at)),Zt(W)}}}),[{name:r.name,fromWireType:l=>{var f={};for(var d in s)f[d]=s[d].read(l);return n(l),f},toWireType:(l,f)=>{for(var d in s)if(!(d in f))throw new TypeError(`Missing field: "${d}"`);var p=e();for(d in s)s[d].write(p,f[d]);return l!==null&&l.push(n,p),p},argPackAdvance:X,readValueFromPointer:mt,destructorFunction:n}]})},Cn=(t,r,e,n,a)=>{},Tn=()=>{for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);Wr=t},Wr,F=t=>{for(var r="",e=t;M[e];)r+=Wr[M[e++]];return r},lt,C=t=>{throw new lt(t)};function Pn(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(t||C(`type "${n}" must have a positive integer typeid pointer`),et.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;C(`Cannot register type '${n}' twice`)}if(et[t]=r,delete xt[t],ct.hasOwnProperty(t)){var a=ct[t];delete ct[t],a.forEach(o=>o())}}function H(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pn(t,r,e)}var X=8,En=(t,r,e,n)=>{r=F(r),H(t,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,o){return o?e:n},argPackAdvance:X,readValueFromPointer:function(a){return this.fromWireType(M[a])},destructorFunction:null})},_n=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),Jt=t=>{function r(e){return e.$$.ptrType.registeredClass.name}C(r(t)+" instance already deleted")},Kt=!1,Rr=t=>{},An=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},Br=t=>{t.count.value-=1;var r=t.count.value===0;r&&An(t)},kr=(t,r,e)=>{if(r===e)return t;if(e.baseClass===void 0)return null;var n=kr(t,r,e.baseClass);return n===null?null:e.downcast(n)},Ur={},On={},Dn=(t,r)=>{for(r===void 0&&C("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},Sn=(t,r)=>(r=Dn(t,r),On[r]),Ft=(t,r)=>{(!r.ptrType||!r.ptr)&&jt("makeClassHandle requires ptr and ptrType");var e=!!r.smartPtrType,n=!!r.smartPtr;return e!==n&&jt("Both smartPtrType and smartPtr must be specified"),r.count={value:1},gt(Object.create(t,{$$:{value:r,writable:!0}}))};function xn(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=Sn(this.registeredClass,r);if(e!==void 0){if(e.$$.count.value===0)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Ft(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Ft(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=this.registeredClass.getActualType(r),u=Ur[o];if(!u)return a.call(this);var s;this.isConst?s=u.constPointerType:s=u.pointerType;var l=kr(r,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Ft(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:t}):Ft(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var gt=t=>typeof FinalizationRegistry>"u"?(gt=r=>r,t):(Kt=new FinalizationRegistry(r=>{Br(r.$$)}),gt=r=>{var e=r.$$,n=!!e.smartPtr;if(n){var a={$$:e};Kt.register(r,a,r)}return r},Rr=r=>Kt.unregister(r),gt(t)),Mt=[],jn=()=>{for(;Mt.length;){var t=Mt.pop();t.$$.deleteScheduled=!1,t.delete()}},Vr,Fn=()=>{Object.assign(It.prototype,{isAliasOf(t){if(!(this instanceof It)||!(t instanceof It))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&e===a},clone(){if(this.$$.ptr||Jt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=gt(Object.create(Object.getPrototypeOf(this),{$$:{value:_n(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),Rr(this),Br(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),Mt.push(this),Mt.length===1&&Vr&&Vr(jn),this.$$.deleteScheduled=!0,this}})};function It(){}var wt=(t,r)=>Object.defineProperty(r,"name",{value:t}),Hr=(t,r,e)=>{if(t[r].overloadTable===void 0){var n=t[r];t[r]=function(){for(var a=arguments.length,o=new Array(a),u=0;u{c.hasOwnProperty(t)?((e===void 0||c[t].overloadTable!==void 0&&c[t].overloadTable[e]!==void 0)&&C(`Cannot register public name '${t}' twice`),Hr(c,t,t),c.hasOwnProperty(e)&&C(`Cannot register multiple overloads of a function with the same number of arguments (${e})!`),c[t].overloadTable[e]=r):(c[t]=r,e!==void 0&&(c[t].numArguments=e))},Mn=48,In=57,Wn=t=>{t=t.replace(/[^a-zA-Z0-9_]/g,"$");var r=t.charCodeAt(0);return r>=Mn&&r<=In?`_${t}`:t};function Rn(t,r,e,n,a,o,u,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=u,this.downcast=s,this.pureVirtualFunctions=[]}var rr=(t,r,e)=>{for(;r!==e;)r.upcast||C(`Expected null or instance of ${e.name}, got an instance of ${r.name}`),t=r.upcast(t),r=r.baseClass;return t};function Bn(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=rr(r.$$.ptr,e,this.registeredClass);return n}function kn(t,r){var e;if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),this.isSmartPointer?(e=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,e),e):0;(!r||!r.$$)&&C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(e=rr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&C("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var a=r.clone();e=this.rawShare(e,Z.toHandle(()=>a.delete())),t!==null&&t.push(this.rawDestructor,e)}break;default:C("Unsupporting sharing policy")}return e}function Un(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=rr(r.$$.ptr,e,this.registeredClass);return n}var Vn=()=>{Object.assign(Wt.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,t)},argPackAdvance:X,readValueFromPointer:mt,fromWireType:xn})};function Wt(t,r,e,n,a,o,u,s,l,f,d){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=u,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=d,!a&&r.baseClass===void 0?n?(this.toWireType=Bn,this.destructorFunction=null):(this.toWireType=Un,this.destructorFunction=null):this.toWireType=kn}var Lr=(t,r,e)=>{c.hasOwnProperty(t)||jt("Replacing nonexistent public symbol"),c[t].overloadTable!==void 0&&e!==void 0?c[t].overloadTable[e]=r:(c[t]=r,c[t].argCount=e)},Hn=(t,r,e)=>{t=t.replace(/p/g,"i");var n=c["dynCall_"+t];return n(r,...e)},Rt=[],zr,$=t=>{var r=Rt[t];return r||(t>=Rt.length&&(Rt.length=t+1),Rt[t]=r=zr.get(t)),r},Ln=function(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.includes("j"))return Hn(t,r,e);var n=$(r)(...e);return n},zn=(t,r)=>function(){for(var e=arguments.length,n=new Array(e),a=0;a{t=F(t);function e(){return t.includes("j")?zn(t,r):$(r)}var n=e();return typeof n!="function"&&C(`unknown function pointer with signature ${t}: ${r}`),n},Nn=(t,r)=>{var e=wt(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},e},Nr,Gr=t=>{var r=Kr(t),e=F(r);return J(r),e},Bt=(t,r)=>{var e=[],n={};function a(o){if(!n[o]&&!et[o]){if(xt[o]){xt[o].forEach(a);return}e.push(o),n[o]=!0}}throw r.forEach(a),new Nr(`${t}: `+e.map(Gr).join([", "]))},Gn=(t,r,e,n,a,o,u,s,l,f,d,p,m)=>{d=F(d),o=L(a,o),s&&(s=L(u,s)),f&&(f=L(l,f)),m=L(p,m);var T=Wn(d);tr(T,function(){Bt(`Cannot construct ${d} due to unbound types`,[n])}),nt([t,r,e],n?[n]:[],_=>{_=_[0];var j,D;n?(j=_.registeredClass,D=j.instancePrototype):D=It.prototype;var S=wt(d,function(){if(Object.getPrototypeOf(this)!==at)throw new lt("Use 'new' to construct "+d);if(W.constructor_body===void 0)throw new lt(d+" has no accessible constructor");for(var he=arguments.length,Vt=new Array(he),Ht=0;Ht{for(var e=[],n=0;n>2]);return e};function Xn(t){for(var r=1;r{var u=er(r,e);a=L(n,a),nt([],[t],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new lt(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Bt(`Cannot construct ${s.name} due to unbound types`,u)},nt([],u,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[r-1]=nr(l,f,null,a,o),[])),[]})},Xr=t=>{t=t.trim();const r=t.indexOf("(");return r!==-1?t.substr(0,r):t},Yn=(t,r,e,n,a,o,u,s,l,f)=>{var d=er(e,n);r=F(r),r=Xr(r),o=L(a,o),nt([],[t],p=>{p=p[0];var m=`${p.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&p.registeredClass.pureVirtualFunctions.push(r);function T(){Bt(`Cannot call ${m} due to unbound types`,d)}var _=p.registeredClass.instancePrototype,j=_[r];return j===void 0||j.overloadTable===void 0&&j.className!==p.name&&j.argCount===e-2?(T.argCount=e-2,T.className=p.name,_[r]=T):(Hr(_,r,m),_[r].overloadTable[e-2]=T),nt([],d,D=>{var S=nr(m,D,p,o,u);return _[r].overloadTable===void 0?(S.argCount=e-2,_[r]=S):_[r].overloadTable[e-2]=S,[]}),[]})},ar=[],q=[],or=t=>{t>9&&--q[t+1]===0&&(q[t]=void 0,ar.push(t))},qn=()=>q.length/2-5-ar.length,Zn=()=>{q.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=qn},Z={toValue:t=>(t||C("Cannot use deleted val. handle = "+t),q[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=ar.pop()||q.length;return q[r]=t,q[r+1]=1,r}}}},Qr={name:"emscripten::val",fromWireType:t=>{var r=Z.toValue(t);return or(t),r},toWireType:(t,r)=>Z.toHandle(r),argPackAdvance:X,readValueFromPointer:mt,destructorFunction:null},Jn=t=>H(t,Qr),Kn=(t,r,e)=>{switch(r){case 1:return e?function(n){return this.fromWireType(G[n])}:function(n){return this.fromWireType(M[n])};case 2:return e?function(n){return this.fromWireType(ut[n>>1])}:function(n){return this.fromWireType(vt[n>>1])};case 4:return e?function(n){return this.fromWireType(tt[n>>2])}:function(n){return this.fromWireType(E[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},ta=(t,r,e,n)=>{r=F(r);function a(){}a.values={},H(t,{name:r,constructor:a,fromWireType:function(o){return this.constructor.values[o]},toWireType:(o,u)=>u.value,argPackAdvance:X,readValueFromPointer:Kn(r,e,n),destructorFunction:null}),tr(r,a)},ir=(t,r)=>{var e=et[t];return e===void 0&&C(`${r} has unknown type ${Gr(t)}`),e},ra=(t,r,e)=>{var n=ir(t,"enum");r=F(r);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:e},constructor:{value:wt(`${n.name}_${r}`,function(){})}});a.values[e]=o,a[r]=o},sr=t=>{if(t===null)return"null";var r=typeof t;return r==="object"||r==="array"||r==="function"?t.toString():""+t},ea=(t,r)=>{switch(r){case 4:return function(e){return this.fromWireType(_r[e>>2])};case 8:return function(e){return this.fromWireType(Ar[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${t}`)}},na=(t,r,e)=>{r=F(r),H(t,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:X,readValueFromPointer:ea(r,e),destructorFunction:null})},aa=(t,r,e,n,a,o,u,s)=>{var l=er(r,e);t=F(t),t=Xr(t),a=L(n,a),tr(t,function(){Bt(`Cannot call ${t} due to unbound types`,l)},r-1),nt([],l,f=>{var d=[f[0],null].concat(f.slice(1));return Lr(t,nr(t,d,null,a,o),r-1),[]})},oa=(t,r,e)=>{switch(r){case 1:return e?n=>G[n]:n=>M[n];case 2:return e?n=>ut[n>>1]:n=>vt[n>>1];case 4:return e?n=>tt[n>>2]:n=>E[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},ia=(t,r,e,n,a)=>{r=F(r);var o=d=>d;if(n===0){var u=32-8*e;o=d=>d<>>u}var s=r.includes("unsigned"),l=(d,p)=>{},f;s?f=function(d,p){return l(p,this.name),p>>>0}:f=function(d,p){return l(p,this.name),p},H(t,{name:r,fromWireType:o,toWireType:f,argPackAdvance:X,readValueFromPointer:oa(r,e,n!==0),destructorFunction:null})},sa=(t,r,e)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function o(u){var s=E[u>>2],l=E[u+4>>2];return new a(G.buffer,l,s)}e=F(e),H(t,{name:e,fromWireType:o,argPackAdvance:X,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},ua=Object.assign({optional:!0},Qr),ca=(t,r)=>{H(t,ua)},la=(t,r,e,n)=>{if(!(n>0))return 0;for(var a=e,o=e+n-1,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(e>=o)break;r[e++]=s}else if(s<=2047){if(e+1>=o)break;r[e++]=192|s>>6,r[e++]=128|s&63}else if(s<=65535){if(e+2>=o)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|s&63}else{if(e+3>=o)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|s&63}}return r[e]=0,e-a},$t=(t,r,e)=>la(t,M,r,e),fa=t=>{for(var r=0,e=0;e=55296&&n<=57343?(r+=4,++e):r+=3}return r},Yr=typeof TextDecoder<"u"?new TextDecoder:void 0,qr=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=r+e,a=r;t[a]&&!(a>=n);)++a;if(a-r>16&&t.buffer&&Yr)return Yr.decode(t.subarray(r,a));for(var o="";r>10,56320|f&1023)}}return o},da=(t,r)=>t?qr(M,t,r):"",ha=(t,r)=>{r=F(r);var e=r==="std::string";H(t,{name:r,fromWireType(n){var a=E[n>>2],o=n+4,u;if(e)for(var s=o,l=0;l<=a;++l){var f=o+l;if(l==a||M[f]==0){var d=f-s,p=da(s,d);u===void 0?u=p:(u+="\0",u+=p),s=f+1}}else{for(var m=new Array(a),l=0;l>2]=o,e&&u)$t(a,l,o+1);else if(u)for(var f=0;f255&&(J(l),C("String has UTF-16 code units that do not fit in 8 bits")),M[l+f]=d}else for(var f=0;f{for(var e=t,n=e>>1,a=n+r/2;!(n>=a)&&vt[n];)++n;if(e=n<<1,e-t>32&&Zr)return Zr.decode(M.subarray(t,e));for(var o="",u=0;!(u>=r/2);++u){var s=ut[t+u*2>>1];if(s==0)break;o+=String.fromCharCode(s)}return o},va=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<2)return 0;e-=2;for(var a=r,o=e>1]=s,r+=2}return ut[r>>1]=0,r-a},ya=t=>t.length*2,ma=(t,r)=>{for(var e=0,n="";!(e>=r/4);){var a=tt[t+e*4>>2];if(a==0)break;if(++e,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(a)}return n},ga=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<4)return 0;for(var a=r,o=a+e-4,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(tt[r>>2]=s,r+=4,r+4>o)break}return tt[r>>2]=0,r-a},wa=t=>{for(var r=0,e=0;e=55296&&n<=57343&&++e,r+=4}return r},$a=(t,r,e)=>{e=F(e);var n,a,o,u;r===2?(n=pa,a=va,u=ya,o=s=>vt[s>>1]):r===4&&(n=ma,a=ga,u=wa,o=s=>E[s>>2]),H(t,{name:e,fromWireType:s=>{for(var l=E[s>>2],f,d=s+4,p=0;p<=l;++p){var m=s+4+p*r;if(p==l||o(m)==0){var T=m-d,_=n(d,T);f===void 0?f=_:(f+="\0",f+=_),d=m+r}}return J(s),f},toWireType:(s,l)=>{typeof l!="string"&&C(`Cannot pass non-string to C++ string type ${e}`);var f=u(l),d=lr(4+f+r);return E[d>>2]=f/r,a(l,d+4,f+r),s!==null&&s.push(J,d),d},argPackAdvance:X,readValueFromPointer:mt,destructorFunction(s){J(s)}})},ba=(t,r,e,n,a,o)=>{St[t]={name:F(r),rawConstructor:L(e,n),rawDestructor:L(a,o),fields:[]}},Ca=(t,r,e,n,a,o,u,s,l,f)=>{St[t].fields.push({fieldName:F(r),getterReturnType:e,getter:L(n,a),getterContext:o,setterArgumentType:u,setter:L(s,l),setterContext:f})},Ta=(t,r)=>{r=F(r),H(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(e,n)=>{}})},Pa=(t,r,e)=>M.copyWithin(t,r,r+e),ur=[],Ea=(t,r,e,n)=>(t=ur[t],r=Z.toValue(r),t(null,r,e,n)),_a={},Aa=t=>{var r=_a[t];return r===void 0?F(t):r},Jr=()=>{if(typeof globalThis=="object")return globalThis;function t(r){r.$$$embind_global$$$=r;var e=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&t(global)?$$$embind_global$$$=global:typeof self=="object"&&t(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Oa=t=>t===0?Z.toHandle(Jr()):(t=Aa(t),Z.toHandle(Jr()[t])),Da=t=>{var r=ur.length;return ur.push(t),r},Sa=(t,r)=>{for(var e=new Array(t),n=0;n>2],"parameter "+n);return e},xa=Reflect.construct,ja=(t,r,e)=>{var n=[],a=t.toWireType(n,e);return n.length&&(E[r>>2]=Z.toHandle(n)),a},Fa=(t,r,e)=>{var n=Sa(t,r),a=n.shift();t--;var o=new Array(t),u=(l,f,d,p)=>{for(var m=0,T=0;Tl.name).join(", ")}) => ${a.name}>`;return Da(wt(s,u))},Ma=t=>{t>9&&(q[t+1]+=1)},Ia=t=>{var r=Z.toValue(t);Zt(r),or(t)},Wa=(t,r)=>{t=ir(t,"_emval_take_value");var e=t.readValueFromPointer(r);return Z.toHandle(e)},Ra=(t,r,e,n)=>{var a=new Date().getFullYear(),o=new Date(a,0,1),u=new Date(a,6,1),s=o.getTimezoneOffset(),l=u.getTimezoneOffset(),f=Math.max(s,l);E[t>>2]=f*60,tt[r>>2]=+(s!=l);var d=T=>{var _=T>=0?"-":"+",j=Math.abs(T),D=String(Math.floor(j/60)).padStart(2,"0"),S=String(j%60).padStart(2,"0");return`UTC${_}${D}${S}`},p=d(s),m=d(l);l2147483648,ka=(t,r)=>Math.ceil(t/r)*r,Ua=t=>{var r=Et.buffer,e=(t-r.byteLength+65535)/65536|0;try{return Et.grow(e),Or(),1}catch{}},Va=t=>{var r=M.length;t>>>=0;var e=Ba();if(t>e)return!1;for(var n=1;n<=4;n*=2){var a=r*(1+.2/n);a=Math.min(a,t+100663296);var o=Math.min(e,ka(Math.max(t,a),65536)),u=Ua(o);if(u)return!0}return!1},cr={},Ha=()=>N||"./this.program",bt=()=>{if(!bt.strings){var t=(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:t,_:Ha()};for(var e in cr)cr[e]===void 0?delete r[e]:r[e]=cr[e];var n=[];for(var e in r)n.push(`${e}=${r[e]}`);bt.strings=n}return bt.strings},La=(t,r)=>{for(var e=0;e{var e=0;return bt().forEach((n,a)=>{var o=r+e;E[t+a*4>>2]=o,La(n,o),e+=n.length+1}),0},Na=(t,r)=>{var e=bt();E[t>>2]=e.length;var n=0;return e.forEach(a=>n+=a.length+1),E[r>>2]=n,0},Ga=t=>52;function Xa(t,r,e,n,a){return 70}var Qa=[null,[],[]],Ya=(t,r)=>{var e=Qa[t];r===0||r===10?((t===1?Gt:st)(qr(e)),e.length=0):e.push(r)},qa=(t,r,e,n)=>{for(var a=0,o=0;o>2],s=E[r+4>>2];r+=8;for(var l=0;l>2]=a,0},Za=t=>t;Ir=c.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},Tn(),lt=c.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Fn(),Vn(),Nr=c.UnboundTypeError=Nn(Error,"UnboundTypeError"),Zn();var Ja={t:fn,x:dn,a:pn,j:vn,k:yn,O:mn,q:gn,ga:wn,d:hn,ca:$n,va:bn,ba:Cn,pa:En,ta:Gn,sa:Qn,E:Yn,oa:Jn,F:ta,n:ra,W:na,X:aa,y:ia,u:sa,ua:ca,V:ha,P:$a,L:ba,wa:Ca,qa:Ta,ja:Pa,T:Ea,xa:or,ya:Oa,U:Fa,Y:Ma,Z:Ia,ra:Wa,da:Ra,ha:Va,ea:za,fa:Na,ia:Ga,$:Xa,S:qa,J:$o,C:Co,Q:no,R:Do,r:yo,b:Ka,D:wo,la:Po,c:oo,ka:Eo,h:eo,i:co,s:lo,N:go,w:ho,I:Ao,K:mo,z:To,H:So,aa:jo,_:Fo,l:io,f:ao,e:ro,g:to,M:Oo,m:uo,ma:bo,p:fo,v:po,na:vo,B:_o,o:so,G:xo,A:Za},A=ln(),Kr=t=>(Kr=A.Ba)(t),J=c._free=t=>(J=c._free=A.Ca)(t),lr=c._malloc=t=>(lr=c._malloc=A.Ea)(t),te=t=>(te=A.Fa)(t),y=(t,r)=>(y=A.Ga)(t,r),re=t=>(re=A.Ha)(t),ee=t=>(ee=A.Ia)(t),ne=()=>(ne=A.Ja)(),ae=t=>(ae=A.Ka)(t),oe=t=>(oe=A.La)(t),ie=(t,r,e)=>(ie=A.Ma)(t,r,e);c.dynCall_viijii=(t,r,e,n,a,o,u)=>(c.dynCall_viijii=A.Na)(t,r,e,n,a,o,u);var se=c.dynCall_jiii=(t,r,e,n)=>(se=c.dynCall_jiii=A.Oa)(t,r,e,n);c.dynCall_jiji=(t,r,e,n,a)=>(c.dynCall_jiji=A.Pa)(t,r,e,n,a);var ue=c.dynCall_jiiii=(t,r,e,n,a)=>(ue=c.dynCall_jiiii=A.Qa)(t,r,e,n,a);c.dynCall_iiiiij=(t,r,e,n,a,o,u)=>(c.dynCall_iiiiij=A.Ra)(t,r,e,n,a,o,u),c.dynCall_iiiiijj=(t,r,e,n,a,o,u,s,l)=>(c.dynCall_iiiiijj=A.Sa)(t,r,e,n,a,o,u,s,l),c.dynCall_iiiiiijj=(t,r,e,n,a,o,u,s,l,f)=>(c.dynCall_iiiiiijj=A.Ta)(t,r,e,n,a,o,u,s,l,f);function Ka(t,r){var e=w();try{return $(t)(r)}catch(n){if(g(e),n!==n+0)throw n;y(1,0)}}function to(t,r,e,n){var a=w();try{$(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function ro(t,r,e){var n=w();try{$(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function eo(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function no(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function ao(t,r){var e=w();try{$(t)(r)}catch(n){if(g(e),n!==n+0)throw n;y(1,0)}}function oo(t,r,e){var n=w();try{return $(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function io(t){var r=w();try{$(t)()}catch(e){if(g(r),e!==e+0)throw e;y(1,0)}}function so(t,r,e,n,a,o,u,s,l,f,d){var p=w();try{$(t)(r,e,n,a,o,u,s,l,f,d)}catch(m){if(g(p),m!==m+0)throw m;y(1,0)}}function uo(t,r,e,n,a){var o=w();try{$(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function co(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function lo(t,r,e,n,a,o){var u=w();try{return $(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function fo(t,r,e,n,a,o){var u=w();try{$(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function ho(t,r,e,n,a,o,u){var s=w();try{return $(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function po(t,r,e,n,a,o,u,s){var l=w();try{$(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function vo(t,r,e,n,a,o,u,s,l){var f=w();try{$(t)(r,e,n,a,o,u,s,l)}catch(d){if(g(f),d!==d+0)throw d;y(1,0)}}function yo(t){var r=w();try{return $(t)()}catch(e){if(g(r),e!==e+0)throw e;y(1,0)}}function mo(t,r,e,n,a,o,u,s,l){var f=w();try{return $(t)(r,e,n,a,o,u,s,l)}catch(d){if(g(f),d!==d+0)throw d;y(1,0)}}function go(t,r,e,n,a,o,u){var s=w();try{return $(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function wo(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function $o(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function bo(t,r,e,n,a,o,u,s){var l=w();try{$(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function Co(t,r,e,n,a,o){var u=w();try{return $(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function To(t,r,e,n,a,o,u,s,l,f){var d=w();try{return $(t)(r,e,n,a,o,u,s,l,f)}catch(p){if(g(d),p!==p+0)throw p;y(1,0)}}function Po(t,r,e){var n=w();try{return $(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function Eo(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function _o(t,r,e,n,a,o,u,s,l,f){var d=w();try{$(t)(r,e,n,a,o,u,s,l,f)}catch(p){if(g(d),p!==p+0)throw p;y(1,0)}}function Ao(t,r,e,n,a,o,u,s){var l=w();try{return $(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function Oo(t,r,e,n,a,o,u){var s=w();try{$(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function Do(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function So(t,r,e,n,a,o,u,s,l,f,d,p){var m=w();try{return $(t)(r,e,n,a,o,u,s,l,f,d,p)}catch(T){if(g(m),T!==T+0)throw T;y(1,0)}}function xo(t,r,e,n,a,o,u,s,l,f,d,p,m,T,_,j){var D=w();try{$(t)(r,e,n,a,o,u,s,l,f,d,p,m,T,_,j)}catch(S){if(g(D),S!==S+0)throw S;y(1,0)}}function jo(t,r,e,n){var a=w();try{return se(t,r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function Fo(t,r,e,n,a){var o=w();try{return ue(t,r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}var kt,ce;yt=function t(){kt||le(),kt||(yt=t)};function le(){if(rt>0||!ce&&(ce=1,qe(),rt>0))return;function t(){var r;kt||(kt=1,c.calledRun=1,!Er&&(Ze(),P(c),(r=c.onRuntimeInitialized)===null||r===void 0||r.call(c),Je()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),t()},1)):t()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return le(),b=V,b}})();function Se(i){return zt(Tt,i)}function xe(i){return Ae(Tt,i)}async function je(i,h){return Oe(Tt,i,h)}async function Fe(i,h){return De(Tt,i,h)}const pr=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["databar_limited","DataBarLimited"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],Me=[...pr,["unknown"]].map(i=>i[0]),Nt=new Map(pr);function Ie(i){for(const[h,v]of Nt)if(i===v)return h;return"unknown"}function We(i){if(vr(i))return{width:i.naturalWidth,height:i.naturalHeight};if(yr(i))return{width:i.width.baseVal.value,height:i.height.baseVal.value};if(mr(i))return{width:i.videoWidth,height:i.videoHeight};if(wr(i))return{width:i.width,height:i.height};if(br(i))return{width:i.displayWidth,height:i.displayHeight};if(gr(i))return{width:i.width,height:i.height};if($r(i))return{width:i.width,height:i.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function vr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLImageElement)}catch{return!1}}function yr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.SVGImageElement)}catch{return!1}}function mr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLVideoElement)}catch{return!1}}function gr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLCanvasElement)}catch{return!1}}function wr(i){try{return i instanceof ImageBitmap||Object.prototype.toString.call(i)==="[object ImageBitmap]"}catch{return!1}}function $r(i){try{return i instanceof OffscreenCanvas||Object.prototype.toString.call(i)==="[object OffscreenCanvas]"}catch{return!1}}function br(i){try{return i instanceof VideoFrame||Object.prototype.toString.call(i)==="[object VideoFrame]"}catch{return!1}}function Cr(i){try{return i instanceof Blob||Object.prototype.toString.call(i)==="[object Blob]"}catch{return!1}}function Re(i){try{return i instanceof ImageData||Object.prototype.toString.call(i)==="[object ImageData]"}catch{return!1}}function Be(i,h){try{const v=new OffscreenCanvas(i,h);if(v.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return v;throw void 0}catch{const v=document.createElement("canvas");return v.width=i,v.height=h,v}}async function Tr(i){if(vr(i)&&!await He(i))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(yr(i)&&!await Le(i))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(br(i)&&ze(i))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(mr(i)&&(i.readyState===0||i.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(wr(i)&&Ge(i))throw new DOMException("The image source is detached.","InvalidStateError");const{width:h,height:v}=We(i);if(h===0||v===0)return null;const c=Be(h,v).getContext("2d");c.drawImage(i,0,0);try{return c.getImageData(0,0,h,v)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function ke(i){let h;try{if(globalThis.createImageBitmap)h=await createImageBitmap(i);else if(globalThis.Image){h=new Image;let b="";try{b=URL.createObjectURL(i),h.src=b,await h.decode()}finally{URL.revokeObjectURL(b)}}else return i}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await Tr(h)}function Ue(i){const{width:h,height:v}=i;if(h===0||v===0)return null;const b=i.getContext("2d");try{return b.getImageData(0,0,h,v)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Ve(i){if(Cr(i))return await ke(i);if(Re(i)){if(Ne(i))throw new DOMException("The image data has been detached.","InvalidStateError");return i}return gr(i)||$r(i)?Ue(i):await Tr(i)}async function He(i){try{return await i.decode(),!0}catch{return!1}}async function Le(i){var h;try{return await((h=i.decode)==null?void 0:h.call(i)),!0}catch{return!1}}function ze(i){return i.format===null}function Ne(i){return i.data.buffer.byteLength===0}function Ge(i){return i.width===0&&i.height===0}function Pr(i,h){return Xe(i)?new DOMException(`${h}: ${i.message}`,i.name):Qe(i)?new i.constructor(`${h}: ${i.message}`):new Error(`${h}: ${i}`)}function Xe(i){return i instanceof DOMException||Object.prototype.toString.call(i)==="[object DOMException]"}function Qe(i){return i instanceof Error||Object.prototype.toString.call(i)==="[object Error]"}class Ye extends EventTarget{constructor(v={}){var b;super();ge(this,ft);try{const c=(b=v==null?void 0:v.formats)==null?void 0:b.filter(P=>P!=="unknown");if((c==null?void 0:c.length)===0)throw new TypeError("Hint option provided, but is empty.");for(const P of c!=null?c:[])if(!Nt.has(P))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${P}' is not a valid enum value of type BarcodeFormat.`);we(this,ft,c!=null?c:[]),Se().then(P=>{this.dispatchEvent(new CustomEvent("load",{detail:P}))}).catch(P=>{this.dispatchEvent(new CustomEvent("error",{detail:P}))})}catch(c){throw Pr(c,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return Me.filter(v=>v!=="unknown")}async detect(v){try{const b=await Ve(v);if(b===null)return[];let c;const P={tryHarder:!0,returnCodabarStartEnd:!0,formats:me(this,ft).map(x=>Nt.get(x))};try{Cr(b)?c=await je(b,P):c=await Fe(b,P)}catch(x){throw console.error(x),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return c.map(x=>{const{topLeft:{x:V,y:z},topRight:{x:U,y:R},bottomLeft:{x:Q,y:N},bottomRight:{x:B,y:dt}}=x.position,ht=Math.min(V,U,Q,B),it=Math.min(z,R,N,dt),pt=Math.max(V,U,Q,B),Gt=Math.max(z,R,N,dt);return{boundingBox:new DOMRectReadOnly(ht,it,pt-ht,Gt-it),rawValue:x.text,format:Ie(x.format),cornerPoints:[{x:V,y:z},{x:U,y:R},{x:B,y:dt},{x:Q,y:N}]}})}catch(b){throw Pr(b,"Failed to execute 'detect' on 'BarcodeDetector'")}}}return ft=new WeakMap,O.BarcodeDetector=Ye,O.setZXingModuleOverrides=xe,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),O}({}); diff --git a/node_modules/barcode-detector/dist/iife/side-effects.js b/node_modules/barcode-detector/dist/iife/side-effects.js new file mode 100644 index 0000000..32bea5c --- /dev/null +++ b/node_modules/barcode-detector/dist/iife/side-effects.js @@ -0,0 +1,2 @@ +var BarcodeDetectionAPI=function(S){"use strict";var ye=S=>{throw TypeError(S)};var me=(S,I,k)=>I.has(S)||ye("Cannot "+k);var ge=(S,I,k)=>(me(S,I,"read from private field"),k?k.call(S):I.get(S)),we=(S,I,k)=>I.has(S)?ye("Cannot add the same private member more than once"):I instanceof WeakSet?I.add(S):I.set(S,k),$e=(S,I,k,Ct)=>(me(S,I,"write to private field"),Ct?Ct.call(S,k):I.set(S,k),k);var ft,Er;const I=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function k(i){return i.join("|")}function Ct(i){const h=fr(i);let v=0,b=I.length-1;for(;v<=b;){const c=Math.floor((v+b)/2),P=I[c],x=fr(P);if(x===h)return P;x{const v=i.match(/_(.+?)\.wasm$/);return v?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${v[1]}/${i}`:h+i}};let Lt=new WeakMap;function zt(i,h){var v;const b=Lt.get(i);if(b!=null&&b.modulePromise&&h===void 0)return b.modulePromise;const c=(v=b==null?void 0:b.moduleOverrides)!=null?v:Ae,P=i({...c});return Lt.set(i,{moduleOverrides:c,modulePromise:P}),P}function Oe(i,h){Lt.set(i,{moduleOverrides:h})}async function De(i,h,v=ot){const b={...ot,...v},c=await zt(i),{size:P}=h,x=new Uint8Array(await h.arrayBuffer()),V=c._malloc(P);c.HEAPU8.set(x,V);const z=c.readBarcodesFromImage(V,P,dr(c,b));c._free(V);const U=[];for(let R=0;R{var i,h=typeof document<"u"&&((i=document.currentScript)==null?void 0:i.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(v={}){var b,c=v,P,x,V=new Promise((t,r)=>{P=t,x=r}),z=typeof window=="object",U=typeof Bun<"u",R=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Q=Object.assign({},c),N="./this.program",B="";function dt(t){return c.locateFile?c.locateFile(t,B):B+t}var ht,it;if(z||R||U){var pt;R?B=self.location.href:typeof document<"u"&&((pt=document.currentScript)===null||pt===void 0?void 0:pt.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),h&&(B=h),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),R&&(it=t=>{var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ht=t=>fetch(t,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url)))}var Gt=c.print||console.log.bind(console),st=c.printErr||console.error.bind(console);Object.assign(c,Q),Q=null,c.arguments&&c.arguments,c.thisProgram&&(N=c.thisProgram);var Pt=c.wasmBinary,Et,_r=!1,G,M,ut,vt,tt,E,Ar,Or;function Dr(){var t=Et.buffer;c.HEAP8=G=new Int8Array(t),c.HEAP16=ut=new Int16Array(t),c.HEAPU8=M=new Uint8Array(t),c.HEAPU16=vt=new Uint16Array(t),c.HEAP32=tt=new Int32Array(t),c.HEAPU32=E=new Uint32Array(t),c.HEAPF32=Ar=new Float32Array(t),c.HEAPF64=Or=new Float64Array(t)}var Sr=[],xr=[],jr=[];function Ze(){var t=c.preRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(tn)),Qt(Sr)}function Je(){Qt(xr)}function Ke(){var t=c.postRun;t&&(typeof t=="function"&&(t=[t]),t.forEach(en)),Qt(jr)}function tn(t){Sr.unshift(t)}function rn(t){xr.unshift(t)}function en(t){jr.unshift(t)}var rt=0,yt=null;function nn(t){var r;rt++,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,rt)}function an(t){var r;if(rt--,(r=c.monitorRunDependencies)===null||r===void 0||r.call(c,rt),rt==0&&yt){var e=yt;yt=null,e()}}function Xt(t){var r;(r=c.onAbort)===null||r===void 0||r.call(c,t),t="Aborted("+t+")",st(t),_r=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw x(e),e}var on="data:application/octet-stream;base64,",Fr=t=>t.startsWith(on);function sn(){var t="zxing_reader.wasm";return Fr(t)?t:dt(t)}var _t;function Mr(t){if(t==_t&&Pt)return new Uint8Array(Pt);if(it)return it(t);throw"both async and sync fetching of the wasm failed"}function un(t){return Pt?Promise.resolve().then(()=>Mr(t)):ht(t).then(r=>new Uint8Array(r),()=>Mr(t))}function Ir(t,r,e){return un(t).then(n=>WebAssembly.instantiate(n,r)).then(e,n=>{st(`failed to asynchronously prepare wasm: ${n}`),Xt(n)})}function cn(t,r,e,n){return!t&&typeof WebAssembly.instantiateStreaming=="function"&&!Fr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var o=WebAssembly.instantiateStreaming(a,e);return o.then(n,function(u){return st(`wasm streaming compile failed: ${u}`),st("falling back to ArrayBuffer instantiation"),Ir(r,e,n)})}):Ir(r,e,n)}function ln(){return{a:Ka}}function fn(){var t,r=ln();function e(a,o){return A=a.exports,Et=A.za,Dr(),Nr=A.Da,rn(A.Aa),an(),A}nn();function n(a){e(a.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(r,e)}catch(a){st(`Module.instantiateWasm callback failed with error: ${a}`),x(a)}return(t=_t)!==null&&t!==void 0||(_t=sn()),cn(Pt,_t,r,n).catch(x),{}}var Qt=t=>{t.forEach(r=>r(c))};c.noExitRuntime;var g=t=>ne(t),w=()=>ae(),At=[],Ot=0,dn=t=>{var r=new Yt(t);return r.get_caught()||(r.set_caught(!0),Ot--),r.set_rethrown(!1),At.push(r),ie(t),re(t)},Y=0,hn=()=>{y(0,0);var t=At.pop();oe(t.excPtr),Y=0};class Yt{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){E[this.ptr+4>>2]=r}get_type(){return E[this.ptr+4>>2]}set_destructor(r){E[this.ptr+8>>2]=r}get_destructor(){return E[this.ptr+8>>2]}set_caught(r){r=r?1:0,G[this.ptr+12]=r}get_caught(){return G[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,G[this.ptr+13]=r}get_rethrown(){return G[this.ptr+13]!=0}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){E[this.ptr+16>>2]=r}get_adjusted_ptr(){return E[this.ptr+16>>2]}}var pn=t=>{throw Y||(Y=t),Y},Dt=t=>ee(t),qt=t=>{var r=Y;if(!r)return Dt(0),0;var e=new Yt(r);e.set_adjusted_ptr(r);var n=e.get_type();if(!n)return Dt(0),r;for(var a of t){if(a===0||a===n)break;var o=e.ptr+16;if(se(a,n,o))return Dt(a),r}return Dt(n),r},vn=()=>qt([]),yn=t=>qt([t]),mn=(t,r)=>qt([t,r]),gn=()=>{var t=At.pop();t||Xt("no exception to throw");var r=t.excPtr;throw t.get_rethrown()||(At.push(t),t.set_rethrown(!0),t.set_caught(!1),Ot++),Y=r,Y},wn=(t,r,e)=>{var n=new Yt(t);throw n.init(r,e),Y=t,Ot++,Y},$n=()=>Ot,bn=()=>{Xt("")},St={},Zt=t=>{for(;t.length;){var r=t.pop(),e=t.pop();e(r)}};function mt(t){return this.fromWireType(E[t>>2])}var ct={},et={},xt={},Wr,jt=t=>{throw new Wr(t)},nt=(t,r,e)=>{t.forEach(s=>xt[s]=r);function n(s){var l=e(s);l.length!==t.length&&jt("Mismatched type converter count");for(var f=0;f{et.hasOwnProperty(s)?a[l]=et[s]:(o.push(s),ct.hasOwnProperty(s)||(ct[s]=[]),ct[s].push(()=>{a[l]=et[s],++u,u===o.length&&n(a)}))}),o.length===0&&n(a)},Cn=t=>{var r=St[t];delete St[t];var e=r.rawConstructor,n=r.rawDestructor,a=r.fields,o=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));nt([t],o,u=>{var s={};return a.forEach((l,f)=>{var d=l.fieldName,p=u[f],m=l.getter,T=l.getterContext,_=u[f+a.length],j=l.setter,O=l.setterContext;s[d]={read:D=>p.fromWireType(m(T,D)),write:(D,at)=>{var W=[];j(O,D,_.toWireType(W,at)),Zt(W)}}}),[{name:r.name,fromWireType:l=>{var f={};for(var d in s)f[d]=s[d].read(l);return n(l),f},toWireType:(l,f)=>{for(var d in s)if(!(d in f))throw new TypeError(`Missing field: "${d}"`);var p=e();for(d in s)s[d].write(p,f[d]);return l!==null&&l.push(n,p),p},argPackAdvance:X,readValueFromPointer:mt,destructorFunction:n}]})},Tn=(t,r,e,n,a)=>{},Pn=()=>{for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);Rr=t},Rr,F=t=>{for(var r="",e=t;M[e];)r+=Rr[M[e++]];return r},lt,C=t=>{throw new lt(t)};function En(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(t||C(`type "${n}" must have a positive integer typeid pointer`),et.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;C(`Cannot register type '${n}' twice`)}if(et[t]=r,delete xt[t],ct.hasOwnProperty(t)){var a=ct[t];delete ct[t],a.forEach(o=>o())}}function H(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return En(t,r,e)}var X=8,_n=(t,r,e,n)=>{r=F(r),H(t,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,o){return o?e:n},argPackAdvance:X,readValueFromPointer:function(a){return this.fromWireType(M[a])},destructorFunction:null})},An=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),Jt=t=>{function r(e){return e.$$.ptrType.registeredClass.name}C(r(t)+" instance already deleted")},Kt=!1,Br=t=>{},On=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},kr=t=>{t.count.value-=1;var r=t.count.value===0;r&&On(t)},Ur=(t,r,e)=>{if(r===e)return t;if(e.baseClass===void 0)return null;var n=Ur(t,r,e.baseClass);return n===null?null:e.downcast(n)},Vr={},Dn={},Sn=(t,r)=>{for(r===void 0&&C("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},xn=(t,r)=>(r=Sn(t,r),Dn[r]),Ft=(t,r)=>{(!r.ptrType||!r.ptr)&&jt("makeClassHandle requires ptr and ptrType");var e=!!r.smartPtrType,n=!!r.smartPtr;return e!==n&&jt("Both smartPtrType and smartPtr must be specified"),r.count={value:1},gt(Object.create(t,{$$:{value:r,writable:!0}}))};function jn(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=xn(this.registeredClass,r);if(e!==void 0){if(e.$$.count.value===0)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Ft(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Ft(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=this.registeredClass.getActualType(r),u=Vr[o];if(!u)return a.call(this);var s;this.isConst?s=u.constPointerType:s=u.pointerType;var l=Ur(r,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Ft(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:t}):Ft(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var gt=t=>typeof FinalizationRegistry>"u"?(gt=r=>r,t):(Kt=new FinalizationRegistry(r=>{kr(r.$$)}),gt=r=>{var e=r.$$,n=!!e.smartPtr;if(n){var a={$$:e};Kt.register(r,a,r)}return r},Br=r=>Kt.unregister(r),gt(t)),Mt=[],Fn=()=>{for(;Mt.length;){var t=Mt.pop();t.$$.deleteScheduled=!1,t.delete()}},Hr,Mn=()=>{Object.assign(It.prototype,{isAliasOf(t){if(!(this instanceof It)||!(t instanceof It))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&e===a},clone(){if(this.$$.ptr||Jt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=gt(Object.create(Object.getPrototypeOf(this),{$$:{value:An(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),Br(this),kr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Jt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&C("Object already scheduled for deletion"),Mt.push(this),Mt.length===1&&Hr&&Hr(Fn),this.$$.deleteScheduled=!0,this}})};function It(){}var wt=(t,r)=>Object.defineProperty(r,"name",{value:t}),Lr=(t,r,e)=>{if(t[r].overloadTable===void 0){var n=t[r];t[r]=function(){for(var a=arguments.length,o=new Array(a),u=0;u{c.hasOwnProperty(t)?((e===void 0||c[t].overloadTable!==void 0&&c[t].overloadTable[e]!==void 0)&&C(`Cannot register public name '${t}' twice`),Lr(c,t,t),c.hasOwnProperty(e)&&C(`Cannot register multiple overloads of a function with the same number of arguments (${e})!`),c[t].overloadTable[e]=r):(c[t]=r,e!==void 0&&(c[t].numArguments=e))},In=48,Wn=57,Rn=t=>{t=t.replace(/[^a-zA-Z0-9_]/g,"$");var r=t.charCodeAt(0);return r>=In&&r<=Wn?`_${t}`:t};function Bn(t,r,e,n,a,o,u,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=u,this.downcast=s,this.pureVirtualFunctions=[]}var rr=(t,r,e)=>{for(;r!==e;)r.upcast||C(`Expected null or instance of ${e.name}, got an instance of ${r.name}`),t=r.upcast(t),r=r.baseClass;return t};function kn(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=rr(r.$$.ptr,e,this.registeredClass);return n}function Un(t,r){var e;if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),this.isSmartPointer?(e=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,e),e):0;(!r||!r.$$)&&C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(e=rr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&C("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:C(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var a=r.clone();e=this.rawShare(e,Z.toHandle(()=>a.delete())),t!==null&&t.push(this.rawDestructor,e)}break;default:C("Unsupporting sharing policy")}return e}function Vn(t,r){if(r===null)return this.isReference&&C(`null is not a valid ${this.name}`),0;r.$$||C(`Cannot pass "${sr(r)}" as a ${this.name}`),r.$$.ptr||C(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&C(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var e=r.$$.ptrType.registeredClass,n=rr(r.$$.ptr,e,this.registeredClass);return n}var Hn=()=>{Object.assign(Wt.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,t)},argPackAdvance:X,readValueFromPointer:mt,fromWireType:jn})};function Wt(t,r,e,n,a,o,u,s,l,f,d){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=u,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=d,!a&&r.baseClass===void 0?n?(this.toWireType=kn,this.destructorFunction=null):(this.toWireType=Vn,this.destructorFunction=null):this.toWireType=Un}var zr=(t,r,e)=>{c.hasOwnProperty(t)||jt("Replacing nonexistent public symbol"),c[t].overloadTable!==void 0&&e!==void 0?c[t].overloadTable[e]=r:(c[t]=r,c[t].argCount=e)},Ln=(t,r,e)=>{t=t.replace(/p/g,"i");var n=c["dynCall_"+t];return n(r,...e)},Rt=[],Nr,$=t=>{var r=Rt[t];return r||(t>=Rt.length&&(Rt.length=t+1),Rt[t]=r=Nr.get(t)),r},zn=function(t,r){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.includes("j"))return Ln(t,r,e);var n=$(r)(...e);return n},Nn=(t,r)=>function(){for(var e=arguments.length,n=new Array(e),a=0;a{t=F(t);function e(){return t.includes("j")?Nn(t,r):$(r)}var n=e();return typeof n!="function"&&C(`unknown function pointer with signature ${t}: ${r}`),n},Gn=(t,r)=>{var e=wt(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},e},Gr,Xr=t=>{var r=te(t),e=F(r);return J(r),e},Bt=(t,r)=>{var e=[],n={};function a(o){if(!n[o]&&!et[o]){if(xt[o]){xt[o].forEach(a);return}e.push(o),n[o]=!0}}throw r.forEach(a),new Gr(`${t}: `+e.map(Xr).join([", "]))},Xn=(t,r,e,n,a,o,u,s,l,f,d,p,m)=>{d=F(d),o=L(a,o),s&&(s=L(u,s)),f&&(f=L(l,f)),m=L(p,m);var T=Rn(d);tr(T,function(){Bt(`Cannot construct ${d} due to unbound types`,[n])}),nt([t,r,e],n?[n]:[],_=>{_=_[0];var j,O;n?(j=_.registeredClass,O=j.instancePrototype):O=It.prototype;var D=wt(d,function(){if(Object.getPrototypeOf(this)!==at)throw new lt("Use 'new' to construct "+d);if(W.constructor_body===void 0)throw new lt(d+" has no accessible constructor");for(var pe=arguments.length,Vt=new Array(pe),Ht=0;Ht{for(var e=[],n=0;n>2]);return e};function Qn(t){for(var r=1;r{var u=er(r,e);a=L(n,a),nt([],[t],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new lt(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Bt(`Cannot construct ${s.name} due to unbound types`,u)},nt([],u,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[r-1]=nr(l,f,null,a,o),[])),[]})},Qr=t=>{t=t.trim();const r=t.indexOf("(");return r!==-1?t.substr(0,r):t},qn=(t,r,e,n,a,o,u,s,l,f)=>{var d=er(e,n);r=F(r),r=Qr(r),o=L(a,o),nt([],[t],p=>{p=p[0];var m=`${p.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&p.registeredClass.pureVirtualFunctions.push(r);function T(){Bt(`Cannot call ${m} due to unbound types`,d)}var _=p.registeredClass.instancePrototype,j=_[r];return j===void 0||j.overloadTable===void 0&&j.className!==p.name&&j.argCount===e-2?(T.argCount=e-2,T.className=p.name,_[r]=T):(Lr(_,r,m),_[r].overloadTable[e-2]=T),nt([],d,O=>{var D=nr(m,O,p,o,u);return _[r].overloadTable===void 0?(D.argCount=e-2,_[r]=D):_[r].overloadTable[e-2]=D,[]}),[]})},ar=[],q=[],or=t=>{t>9&&--q[t+1]===0&&(q[t]=void 0,ar.push(t))},Zn=()=>q.length/2-5-ar.length,Jn=()=>{q.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Zn},Z={toValue:t=>(t||C("Cannot use deleted val. handle = "+t),q[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=ar.pop()||q.length;return q[r]=t,q[r+1]=1,r}}}},Yr={name:"emscripten::val",fromWireType:t=>{var r=Z.toValue(t);return or(t),r},toWireType:(t,r)=>Z.toHandle(r),argPackAdvance:X,readValueFromPointer:mt,destructorFunction:null},Kn=t=>H(t,Yr),ta=(t,r,e)=>{switch(r){case 1:return e?function(n){return this.fromWireType(G[n])}:function(n){return this.fromWireType(M[n])};case 2:return e?function(n){return this.fromWireType(ut[n>>1])}:function(n){return this.fromWireType(vt[n>>1])};case 4:return e?function(n){return this.fromWireType(tt[n>>2])}:function(n){return this.fromWireType(E[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},ra=(t,r,e,n)=>{r=F(r);function a(){}a.values={},H(t,{name:r,constructor:a,fromWireType:function(o){return this.constructor.values[o]},toWireType:(o,u)=>u.value,argPackAdvance:X,readValueFromPointer:ta(r,e,n),destructorFunction:null}),tr(r,a)},ir=(t,r)=>{var e=et[t];return e===void 0&&C(`${r} has unknown type ${Xr(t)}`),e},ea=(t,r,e)=>{var n=ir(t,"enum");r=F(r);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:e},constructor:{value:wt(`${n.name}_${r}`,function(){})}});a.values[e]=o,a[r]=o},sr=t=>{if(t===null)return"null";var r=typeof t;return r==="object"||r==="array"||r==="function"?t.toString():""+t},na=(t,r)=>{switch(r){case 4:return function(e){return this.fromWireType(Ar[e>>2])};case 8:return function(e){return this.fromWireType(Or[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${t}`)}},aa=(t,r,e)=>{r=F(r),H(t,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:X,readValueFromPointer:na(r,e),destructorFunction:null})},oa=(t,r,e,n,a,o,u,s)=>{var l=er(r,e);t=F(t),t=Qr(t),a=L(n,a),tr(t,function(){Bt(`Cannot call ${t} due to unbound types`,l)},r-1),nt([],l,f=>{var d=[f[0],null].concat(f.slice(1));return zr(t,nr(t,d,null,a,o),r-1),[]})},ia=(t,r,e)=>{switch(r){case 1:return e?n=>G[n]:n=>M[n];case 2:return e?n=>ut[n>>1]:n=>vt[n>>1];case 4:return e?n=>tt[n>>2]:n=>E[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${t}`)}},sa=(t,r,e,n,a)=>{r=F(r);var o=d=>d;if(n===0){var u=32-8*e;o=d=>d<>>u}var s=r.includes("unsigned"),l=(d,p)=>{},f;s?f=function(d,p){return l(p,this.name),p>>>0}:f=function(d,p){return l(p,this.name),p},H(t,{name:r,fromWireType:o,toWireType:f,argPackAdvance:X,readValueFromPointer:ia(r,e,n!==0),destructorFunction:null})},ua=(t,r,e)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function o(u){var s=E[u>>2],l=E[u+4>>2];return new a(G.buffer,l,s)}e=F(e),H(t,{name:e,fromWireType:o,argPackAdvance:X,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},ca=Object.assign({optional:!0},Yr),la=(t,r)=>{H(t,ca)},fa=(t,r,e,n)=>{if(!(n>0))return 0;for(var a=e,o=e+n-1,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(e>=o)break;r[e++]=s}else if(s<=2047){if(e+1>=o)break;r[e++]=192|s>>6,r[e++]=128|s&63}else if(s<=65535){if(e+2>=o)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|s&63}else{if(e+3>=o)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|s&63}}return r[e]=0,e-a},$t=(t,r,e)=>fa(t,M,r,e),da=t=>{for(var r=0,e=0;e=55296&&n<=57343?(r+=4,++e):r+=3}return r},qr=typeof TextDecoder<"u"?new TextDecoder:void 0,Zr=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=r+e,a=r;t[a]&&!(a>=n);)++a;if(a-r>16&&t.buffer&&qr)return qr.decode(t.subarray(r,a));for(var o="";r>10,56320|f&1023)}}return o},ha=(t,r)=>t?Zr(M,t,r):"",pa=(t,r)=>{r=F(r);var e=r==="std::string";H(t,{name:r,fromWireType(n){var a=E[n>>2],o=n+4,u;if(e)for(var s=o,l=0;l<=a;++l){var f=o+l;if(l==a||M[f]==0){var d=f-s,p=ha(s,d);u===void 0?u=p:(u+="\0",u+=p),s=f+1}}else{for(var m=new Array(a),l=0;l>2]=o,e&&u)$t(a,l,o+1);else if(u)for(var f=0;f255&&(J(l),C("String has UTF-16 code units that do not fit in 8 bits")),M[l+f]=d}else for(var f=0;f{for(var e=t,n=e>>1,a=n+r/2;!(n>=a)&&vt[n];)++n;if(e=n<<1,e-t>32&&Jr)return Jr.decode(M.subarray(t,e));for(var o="",u=0;!(u>=r/2);++u){var s=ut[t+u*2>>1];if(s==0)break;o+=String.fromCharCode(s)}return o},ya=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<2)return 0;e-=2;for(var a=r,o=e>1]=s,r+=2}return ut[r>>1]=0,r-a},ma=t=>t.length*2,ga=(t,r)=>{for(var e=0,n="";!(e>=r/4);){var a=tt[t+e*4>>2];if(a==0)break;if(++e,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(a)}return n},wa=(t,r,e)=>{var n;if((n=e)!==null&&n!==void 0||(e=2147483647),e<4)return 0;for(var a=r,o=a+e-4,u=0;u=55296&&s<=57343){var l=t.charCodeAt(++u);s=65536+((s&1023)<<10)|l&1023}if(tt[r>>2]=s,r+=4,r+4>o)break}return tt[r>>2]=0,r-a},$a=t=>{for(var r=0,e=0;e=55296&&n<=57343&&++e,r+=4}return r},ba=(t,r,e)=>{e=F(e);var n,a,o,u;r===2?(n=va,a=ya,u=ma,o=s=>vt[s>>1]):r===4&&(n=ga,a=wa,u=$a,o=s=>E[s>>2]),H(t,{name:e,fromWireType:s=>{for(var l=E[s>>2],f,d=s+4,p=0;p<=l;++p){var m=s+4+p*r;if(p==l||o(m)==0){var T=m-d,_=n(d,T);f===void 0?f=_:(f+="\0",f+=_),d=m+r}}return J(s),f},toWireType:(s,l)=>{typeof l!="string"&&C(`Cannot pass non-string to C++ string type ${e}`);var f=u(l),d=lr(4+f+r);return E[d>>2]=f/r,a(l,d+4,f+r),s!==null&&s.push(J,d),d},argPackAdvance:X,readValueFromPointer:mt,destructorFunction(s){J(s)}})},Ca=(t,r,e,n,a,o)=>{St[t]={name:F(r),rawConstructor:L(e,n),rawDestructor:L(a,o),fields:[]}},Ta=(t,r,e,n,a,o,u,s,l,f)=>{St[t].fields.push({fieldName:F(r),getterReturnType:e,getter:L(n,a),getterContext:o,setterArgumentType:u,setter:L(s,l),setterContext:f})},Pa=(t,r)=>{r=F(r),H(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(e,n)=>{}})},Ea=(t,r,e)=>M.copyWithin(t,r,r+e),ur=[],_a=(t,r,e,n)=>(t=ur[t],r=Z.toValue(r),t(null,r,e,n)),Aa={},Oa=t=>{var r=Aa[t];return r===void 0?F(t):r},Kr=()=>{if(typeof globalThis=="object")return globalThis;function t(r){r.$$$embind_global$$$=r;var e=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&t(global)?$$$embind_global$$$=global:typeof self=="object"&&t(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Da=t=>t===0?Z.toHandle(Kr()):(t=Oa(t),Z.toHandle(Kr()[t])),Sa=t=>{var r=ur.length;return ur.push(t),r},xa=(t,r)=>{for(var e=new Array(t),n=0;n>2],"parameter "+n);return e},ja=Reflect.construct,Fa=(t,r,e)=>{var n=[],a=t.toWireType(n,e);return n.length&&(E[r>>2]=Z.toHandle(n)),a},Ma=(t,r,e)=>{var n=xa(t,r),a=n.shift();t--;var o=new Array(t),u=(l,f,d,p)=>{for(var m=0,T=0;Tl.name).join(", ")}) => ${a.name}>`;return Sa(wt(s,u))},Ia=t=>{t>9&&(q[t+1]+=1)},Wa=t=>{var r=Z.toValue(t);Zt(r),or(t)},Ra=(t,r)=>{t=ir(t,"_emval_take_value");var e=t.readValueFromPointer(r);return Z.toHandle(e)},Ba=(t,r,e,n)=>{var a=new Date().getFullYear(),o=new Date(a,0,1),u=new Date(a,6,1),s=o.getTimezoneOffset(),l=u.getTimezoneOffset(),f=Math.max(s,l);E[t>>2]=f*60,tt[r>>2]=+(s!=l);var d=T=>{var _=T>=0?"-":"+",j=Math.abs(T),O=String(Math.floor(j/60)).padStart(2,"0"),D=String(j%60).padStart(2,"0");return`UTC${_}${O}${D}`},p=d(s),m=d(l);l2147483648,Ua=(t,r)=>Math.ceil(t/r)*r,Va=t=>{var r=Et.buffer,e=(t-r.byteLength+65535)/65536|0;try{return Et.grow(e),Dr(),1}catch{}},Ha=t=>{var r=M.length;t>>>=0;var e=ka();if(t>e)return!1;for(var n=1;n<=4;n*=2){var a=r*(1+.2/n);a=Math.min(a,t+100663296);var o=Math.min(e,Ua(Math.max(t,a),65536)),u=Va(o);if(u)return!0}return!1},cr={},La=()=>N||"./this.program",bt=()=>{if(!bt.strings){var t=(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:t,_:La()};for(var e in cr)cr[e]===void 0?delete r[e]:r[e]=cr[e];var n=[];for(var e in r)n.push(`${e}=${r[e]}`);bt.strings=n}return bt.strings},za=(t,r)=>{for(var e=0;e{var e=0;return bt().forEach((n,a)=>{var o=r+e;E[t+a*4>>2]=o,za(n,o),e+=n.length+1}),0},Ga=(t,r)=>{var e=bt();E[t>>2]=e.length;var n=0;return e.forEach(a=>n+=a.length+1),E[r>>2]=n,0},Xa=t=>52;function Qa(t,r,e,n,a){return 70}var Ya=[null,[],[]],qa=(t,r)=>{var e=Ya[t];r===0||r===10?((t===1?Gt:st)(Zr(e)),e.length=0):e.push(r)},Za=(t,r,e,n)=>{for(var a=0,o=0;o>2],s=E[r+4>>2];r+=8;for(var l=0;l>2]=a,0},Ja=t=>t;Wr=c.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},Pn(),lt=c.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Mn(),Hn(),Gr=c.UnboundTypeError=Gn(Error,"UnboundTypeError"),Jn();var Ka={t:dn,x:hn,a:vn,j:yn,k:mn,O:gn,q:wn,ga:$n,d:pn,ca:bn,va:Cn,ba:Tn,pa:_n,ta:Xn,sa:Yn,E:qn,oa:Kn,F:ra,n:ea,W:aa,X:oa,y:sa,u:ua,ua:la,V:pa,P:ba,L:Ca,wa:Ta,qa:Pa,ja:Ea,T:_a,xa:or,ya:Da,U:Ma,Y:Ia,Z:Wa,ra:Ra,da:Ba,ha:Ha,ea:Na,fa:Ga,ia:Xa,$:Qa,S:Za,J:bo,C:To,Q:ao,R:So,r:mo,b:to,D:$o,la:Eo,c:io,ka:_o,h:no,i:lo,s:fo,N:wo,w:po,I:Oo,K:go,z:Po,H:xo,aa:Fo,_:Mo,l:so,f:oo,e:eo,g:ro,M:Do,m:co,ma:Co,p:ho,v:vo,na:yo,B:Ao,o:uo,G:jo,A:Ja},A=fn(),te=t=>(te=A.Ba)(t),J=c._free=t=>(J=c._free=A.Ca)(t),lr=c._malloc=t=>(lr=c._malloc=A.Ea)(t),re=t=>(re=A.Fa)(t),y=(t,r)=>(y=A.Ga)(t,r),ee=t=>(ee=A.Ha)(t),ne=t=>(ne=A.Ia)(t),ae=()=>(ae=A.Ja)(),oe=t=>(oe=A.Ka)(t),ie=t=>(ie=A.La)(t),se=(t,r,e)=>(se=A.Ma)(t,r,e);c.dynCall_viijii=(t,r,e,n,a,o,u)=>(c.dynCall_viijii=A.Na)(t,r,e,n,a,o,u);var ue=c.dynCall_jiii=(t,r,e,n)=>(ue=c.dynCall_jiii=A.Oa)(t,r,e,n);c.dynCall_jiji=(t,r,e,n,a)=>(c.dynCall_jiji=A.Pa)(t,r,e,n,a);var ce=c.dynCall_jiiii=(t,r,e,n,a)=>(ce=c.dynCall_jiiii=A.Qa)(t,r,e,n,a);c.dynCall_iiiiij=(t,r,e,n,a,o,u)=>(c.dynCall_iiiiij=A.Ra)(t,r,e,n,a,o,u),c.dynCall_iiiiijj=(t,r,e,n,a,o,u,s,l)=>(c.dynCall_iiiiijj=A.Sa)(t,r,e,n,a,o,u,s,l),c.dynCall_iiiiiijj=(t,r,e,n,a,o,u,s,l,f)=>(c.dynCall_iiiiiijj=A.Ta)(t,r,e,n,a,o,u,s,l,f);function to(t,r){var e=w();try{return $(t)(r)}catch(n){if(g(e),n!==n+0)throw n;y(1,0)}}function ro(t,r,e,n){var a=w();try{$(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function eo(t,r,e){var n=w();try{$(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function no(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function ao(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function oo(t,r){var e=w();try{$(t)(r)}catch(n){if(g(e),n!==n+0)throw n;y(1,0)}}function io(t,r,e){var n=w();try{return $(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function so(t){var r=w();try{$(t)()}catch(e){if(g(r),e!==e+0)throw e;y(1,0)}}function uo(t,r,e,n,a,o,u,s,l,f,d){var p=w();try{$(t)(r,e,n,a,o,u,s,l,f,d)}catch(m){if(g(p),m!==m+0)throw m;y(1,0)}}function co(t,r,e,n,a){var o=w();try{$(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function lo(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function fo(t,r,e,n,a,o){var u=w();try{return $(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function ho(t,r,e,n,a,o){var u=w();try{$(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function po(t,r,e,n,a,o,u){var s=w();try{return $(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function vo(t,r,e,n,a,o,u,s){var l=w();try{$(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function yo(t,r,e,n,a,o,u,s,l){var f=w();try{$(t)(r,e,n,a,o,u,s,l)}catch(d){if(g(f),d!==d+0)throw d;y(1,0)}}function mo(t){var r=w();try{return $(t)()}catch(e){if(g(r),e!==e+0)throw e;y(1,0)}}function go(t,r,e,n,a,o,u,s,l){var f=w();try{return $(t)(r,e,n,a,o,u,s,l)}catch(d){if(g(f),d!==d+0)throw d;y(1,0)}}function wo(t,r,e,n,a,o,u){var s=w();try{return $(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function $o(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function bo(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function Co(t,r,e,n,a,o,u,s){var l=w();try{$(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function To(t,r,e,n,a,o){var u=w();try{return $(t)(r,e,n,a,o)}catch(s){if(g(u),s!==s+0)throw s;y(1,0)}}function Po(t,r,e,n,a,o,u,s,l,f){var d=w();try{return $(t)(r,e,n,a,o,u,s,l,f)}catch(p){if(g(d),p!==p+0)throw p;y(1,0)}}function Eo(t,r,e){var n=w();try{return $(t)(r,e)}catch(a){if(g(n),a!==a+0)throw a;y(1,0)}}function _o(t,r,e,n,a){var o=w();try{return $(t)(r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}function Ao(t,r,e,n,a,o,u,s,l,f){var d=w();try{$(t)(r,e,n,a,o,u,s,l,f)}catch(p){if(g(d),p!==p+0)throw p;y(1,0)}}function Oo(t,r,e,n,a,o,u,s){var l=w();try{return $(t)(r,e,n,a,o,u,s)}catch(f){if(g(l),f!==f+0)throw f;y(1,0)}}function Do(t,r,e,n,a,o,u){var s=w();try{$(t)(r,e,n,a,o,u)}catch(l){if(g(s),l!==l+0)throw l;y(1,0)}}function So(t,r,e,n){var a=w();try{return $(t)(r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function xo(t,r,e,n,a,o,u,s,l,f,d,p){var m=w();try{return $(t)(r,e,n,a,o,u,s,l,f,d,p)}catch(T){if(g(m),T!==T+0)throw T;y(1,0)}}function jo(t,r,e,n,a,o,u,s,l,f,d,p,m,T,_,j){var O=w();try{$(t)(r,e,n,a,o,u,s,l,f,d,p,m,T,_,j)}catch(D){if(g(O),D!==D+0)throw D;y(1,0)}}function Fo(t,r,e,n){var a=w();try{return ue(t,r,e,n)}catch(o){if(g(a),o!==o+0)throw o;y(1,0)}}function Mo(t,r,e,n,a){var o=w();try{return ce(t,r,e,n,a)}catch(u){if(g(o),u!==u+0)throw u;y(1,0)}}var kt,le;yt=function t(){kt||fe(),kt||(yt=t)};function fe(){if(rt>0||!le&&(le=1,Ze(),rt>0))return;function t(){var r;kt||(kt=1,c.calledRun=1,!_r&&(Je(),P(c),(r=c.onRuntimeInitialized)===null||r===void 0||r.call(c),Ke()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),t()},1)):t()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return fe(),b=V,b}})();function xe(i){return zt(Tt,i)}function je(i){return Oe(Tt,i)}async function Fe(i,h){return De(Tt,i,h)}async function Me(i,h){return Se(Tt,i,h)}const pr=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["databar_limited","DataBarLimited"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],Ie=[...pr,["unknown"]].map(i=>i[0]),Nt=new Map(pr);function We(i){for(const[h,v]of Nt)if(i===v)return h;return"unknown"}function Re(i){if(vr(i))return{width:i.naturalWidth,height:i.naturalHeight};if(yr(i))return{width:i.width.baseVal.value,height:i.height.baseVal.value};if(mr(i))return{width:i.videoWidth,height:i.videoHeight};if(wr(i))return{width:i.width,height:i.height};if(br(i))return{width:i.displayWidth,height:i.displayHeight};if(gr(i))return{width:i.width,height:i.height};if($r(i))return{width:i.width,height:i.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function vr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLImageElement)}catch{return!1}}function yr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.SVGImageElement)}catch{return!1}}function mr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLVideoElement)}catch{return!1}}function gr(i){var h,v;try{return i instanceof((v=(h=i==null?void 0:i.ownerDocument)==null?void 0:h.defaultView)==null?void 0:v.HTMLCanvasElement)}catch{return!1}}function wr(i){try{return i instanceof ImageBitmap||Object.prototype.toString.call(i)==="[object ImageBitmap]"}catch{return!1}}function $r(i){try{return i instanceof OffscreenCanvas||Object.prototype.toString.call(i)==="[object OffscreenCanvas]"}catch{return!1}}function br(i){try{return i instanceof VideoFrame||Object.prototype.toString.call(i)==="[object VideoFrame]"}catch{return!1}}function Cr(i){try{return i instanceof Blob||Object.prototype.toString.call(i)==="[object Blob]"}catch{return!1}}function Be(i){try{return i instanceof ImageData||Object.prototype.toString.call(i)==="[object ImageData]"}catch{return!1}}function ke(i,h){try{const v=new OffscreenCanvas(i,h);if(v.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return v;throw void 0}catch{const v=document.createElement("canvas");return v.width=i,v.height=h,v}}async function Tr(i){if(vr(i)&&!await Le(i))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(yr(i)&&!await ze(i))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(br(i)&&Ne(i))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(mr(i)&&(i.readyState===0||i.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(wr(i)&&Xe(i))throw new DOMException("The image source is detached.","InvalidStateError");const{width:h,height:v}=Re(i);if(h===0||v===0)return null;const c=ke(h,v).getContext("2d");c.drawImage(i,0,0);try{return c.getImageData(0,0,h,v)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Ue(i){let h;try{if(globalThis.createImageBitmap)h=await createImageBitmap(i);else if(globalThis.Image){h=new Image;let b="";try{b=URL.createObjectURL(i),h.src=b,await h.decode()}finally{URL.revokeObjectURL(b)}}else return i}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await Tr(h)}function Ve(i){const{width:h,height:v}=i;if(h===0||v===0)return null;const b=i.getContext("2d");try{return b.getImageData(0,0,h,v)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function He(i){if(Cr(i))return await Ue(i);if(Be(i)){if(Ge(i))throw new DOMException("The image data has been detached.","InvalidStateError");return i}return gr(i)||$r(i)?Ve(i):await Tr(i)}async function Le(i){try{return await i.decode(),!0}catch{return!1}}async function ze(i){var h;try{return await((h=i.decode)==null?void 0:h.call(i)),!0}catch{return!1}}function Ne(i){return i.format===null}function Ge(i){return i.data.buffer.byteLength===0}function Xe(i){return i.width===0&&i.height===0}function Pr(i,h){return Qe(i)?new DOMException(`${h}: ${i.message}`,i.name):Ye(i)?new i.constructor(`${h}: ${i.message}`):new Error(`${h}: ${i}`)}function Qe(i){return i instanceof DOMException||Object.prototype.toString.call(i)==="[object DOMException]"}function Ye(i){return i instanceof Error||Object.prototype.toString.call(i)==="[object Error]"}class qe extends EventTarget{constructor(v={}){var b;super();we(this,ft);try{const c=(b=v==null?void 0:v.formats)==null?void 0:b.filter(P=>P!=="unknown");if((c==null?void 0:c.length)===0)throw new TypeError("Hint option provided, but is empty.");for(const P of c!=null?c:[])if(!Nt.has(P))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${P}' is not a valid enum value of type BarcodeFormat.`);$e(this,ft,c!=null?c:[]),xe().then(P=>{this.dispatchEvent(new CustomEvent("load",{detail:P}))}).catch(P=>{this.dispatchEvent(new CustomEvent("error",{detail:P}))})}catch(c){throw Pr(c,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return Ie.filter(v=>v!=="unknown")}async detect(v){try{const b=await He(v);if(b===null)return[];let c;const P={tryHarder:!0,returnCodabarStartEnd:!0,formats:ge(this,ft).map(x=>Nt.get(x))};try{Cr(b)?c=await Fe(b,P):c=await Me(b,P)}catch(x){throw console.error(x),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return c.map(x=>{const{topLeft:{x:V,y:z},topRight:{x:U,y:R},bottomLeft:{x:Q,y:N},bottomRight:{x:B,y:dt}}=x.position,ht=Math.min(V,U,Q,B),it=Math.min(z,R,N,dt),pt=Math.max(V,U,Q,B),Gt=Math.max(z,R,N,dt);return{boundingBox:new DOMRectReadOnly(ht,it,pt-ht,Gt-it),rawValue:x.text,format:We(x.format),cornerPoints:[{x:V,y:z},{x:U,y:R},{x:B,y:dt},{x:Q,y:N}]}})}catch(b){throw Pr(b,"Failed to execute 'detect' on 'BarcodeDetector'")}}}return ft=new WeakMap,(Er=globalThis.BarcodeDetector)!=null||(globalThis.BarcodeDetector=qe),S.setZXingModuleOverrides=je,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({}); diff --git a/node_modules/copy-text-to-clipboard/index.d.ts b/node_modules/copy-text-to-clipboard/index.d.ts new file mode 100644 index 0000000..c2ebfc5 --- /dev/null +++ b/node_modules/copy-text-to-clipboard/index.d.ts @@ -0,0 +1,42 @@ +/// + +export interface Options { + /** + Specify a DOM element where the temporary, behind-the-scenes `textarea` should be appended, in cases where you need to stay within a focus trap, like in a modal. + + @default document.body + + @example + ``` + import copy from 'copy-text-to-clipboard'; + + const modalWithFocusTrap = document.getElementById('modal'); + + button.addEventListener('click', () => { + copy('🦄🌈', { + target: modalWithFocusTrap + }); + }); + ``` + */ + readonly target?: HTMLElement; +} + +/** +Copy text to the clipboard. + +Must be called in response to a user gesture event, like `click` or `keyup`. + +@param text - The text to copy to clipboard. +@returns Whether it succeeded to copy the text. + +@example +``` +import copy from 'copy-text-to-clipboard'; + +button.addEventListener('click', () => { + copy('🦄🌈'); +}); +``` +*/ +export default function copyTextToClipboard(text: string, options?: Options): boolean; diff --git a/node_modules/copy-text-to-clipboard/index.js b/node_modules/copy-text-to-clipboard/index.js new file mode 100644 index 0000000..c8d8831 --- /dev/null +++ b/node_modules/copy-text-to-clipboard/index.js @@ -0,0 +1,47 @@ +export default function copyTextToClipboard(text, {target = document.body} = {}) { + if (typeof text !== 'string') { + throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof text}\`.`); + } + + const element = document.createElement('textarea'); + const previouslyFocusedElement = document.activeElement; + + element.value = text; + + // Prevent keyboard from showing on mobile + element.setAttribute('readonly', ''); + + element.style.contain = 'strict'; + element.style.position = 'absolute'; + element.style.left = '-9999px'; + element.style.fontSize = '12pt'; // Prevent zooming on iOS + + const selection = document.getSelection(); + const originalRange = selection.rangeCount > 0 && selection.getRangeAt(0); + + target.append(element); + element.select(); + + // Explicit selection workaround for iOS + element.selectionStart = 0; + element.selectionEnd = text.length; + + let isSuccess = false; + try { + isSuccess = document.execCommand('copy'); + } catch {} + + element.remove(); + + if (originalRange) { + selection.removeAllRanges(); + selection.addRange(originalRange); + } + + // Get the focus back on the previously focused element, if any + if (previouslyFocusedElement) { + previouslyFocusedElement.focus(); + } + + return isSuccess; +} diff --git a/node_modules/copy-text-to-clipboard/license b/node_modules/copy-text-to-clipboard/license new file mode 100644 index 0000000..fa7ceba --- /dev/null +++ b/node_modules/copy-text-to-clipboard/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/copy-text-to-clipboard/package.json b/node_modules/copy-text-to-clipboard/package.json new file mode 100644 index 0000000..d550075 --- /dev/null +++ b/node_modules/copy-text-to-clipboard/package.json @@ -0,0 +1,78 @@ +{ + "_from": "copy-text-to-clipboard@^3.0.1", + "_id": "copy-text-to-clipboard@3.2.0", + "_inBundle": false, + "_integrity": "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==", + "_location": "/copy-text-to-clipboard", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "copy-text-to-clipboard@^3.0.1", + "name": "copy-text-to-clipboard", + "escapedName": "copy-text-to-clipboard", + "rawSpec": "^3.0.1", + "saveSpec": null, + "fetchSpec": "^3.0.1" + }, + "_requiredBy": [ + "/vconsole" + ], + "_resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz", + "_shasum": "0202b2d9bdae30a49a53f898626dcc3b49ad960b", + "_spec": "copy-text-to-clipboard@^3.0.1", + "_where": "D:\\work\\tourGuide\\node_modules\\vconsole", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/copy-text-to-clipboard/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Copy text to the clipboard in modern browsers (0.2 kB)", + "devDependencies": { + "tsd": "^0.14.0", + "xo": "^0.37.1" + }, + "engines": { + "node": ">=12" + }, + "exports": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "funding": "https://github.com/sponsors/sindresorhus", + "homepage": "https://github.com/sindresorhus/copy-text-to-clipboard#readme", + "keywords": [ + "copy", + "text", + "clipboard", + "browser", + "clipboard.js", + "modern" + ], + "license": "MIT", + "name": "copy-text-to-clipboard", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/copy-text-to-clipboard.git" + }, + "scripts": { + "//test": "xo && tsd", + "test": "xo" + }, + "type": "module", + "version": "3.2.0", + "xo": { + "envs": [ + "browser" + ] + } +} diff --git a/node_modules/copy-text-to-clipboard/readme.md b/node_modules/copy-text-to-clipboard/readme.md new file mode 100644 index 0000000..92c6056 --- /dev/null +++ b/node_modules/copy-text-to-clipboard/readme.md @@ -0,0 +1,51 @@ +# copy-text-to-clipboard + +> Copy text to the clipboard in modern browsers *(0.2 kB)* + +[Try it out!](https://jsfiddle.net/sindresorhus/6406v3pf/) + +## Comparison + +- This module: **0.2 kB** +- [`clipboard.js`](https://github.com/zenorocha/clipboard.js): 3.4 kB + +## Install + +```sh +npm install copy-text-to-clipboard +``` + +## Usage + +```js +import copy from 'copy-text-to-clipboard'; + +button.addEventListener('click', () => { + copy('🦄🌈'); +}); +``` + +## API + +### copy(text, options?) + +Copy `text` to the clipboard. + +Returns a `boolean` of whether it succeeded to copy the text. + +Must be called in response to a user gesture event, like `click` or `keyup`. + +#### options + +Type: `object` + +##### target + +Type: `HTMLElement`\ +Default: `document.body` + +Specify a DOM element where the temporary, behind-the-scenes `textarea` should be appended, in cases where you need to stay within a focus trap, like in a modal. + +## Related + +- [clipboardy](https://github.com/sindresorhus/clipboardy) - Access the system clipboard (copy/paste) in Node.js diff --git a/node_modules/mutation-observer/.npmignore b/node_modules/mutation-observer/.npmignore new file mode 100644 index 0000000..48a2e24 --- /dev/null +++ b/node_modules/mutation-observer/.npmignore @@ -0,0 +1,2 @@ +components +build diff --git a/node_modules/mutation-observer/History.md b/node_modules/mutation-observer/History.md new file mode 100644 index 0000000..faaae67 --- /dev/null +++ b/node_modules/mutation-observer/History.md @@ -0,0 +1,28 @@ + +1.0.3 / 2017-07-25 +================== + + * With the posibility of the MutationEvent being deprecated, check if exists prior to usage (#8) + +1.0.2 / 2015-07-07 +================== + + * fix delete as a reserved word issue on IE8 (#4, @kaesonho) + +1.0.1 / 2015-03-10 +================== + + * package: re-add the "component" section + * package: use public git URL + +1.0.0 / 2014-12-09 +================== + + * Move away from `component.json`; into webmodules organization. + * Add a MutationObserver polyfill for IE9-10. (written by the Polymer contributors) + * Change license from MIT to BSD to match the Polymer polyfill license. + +0.0.1 / 2013-02-09 +================== + + * Initial release diff --git a/node_modules/mutation-observer/LICENSE b/node_modules/mutation-observer/LICENSE new file mode 100644 index 0000000..f8315db --- /dev/null +++ b/node_modules/mutation-observer/LICENSE @@ -0,0 +1,55 @@ +// Copyright (c) 2014 Automattic Inc. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Automattic Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Copyright (c) 2012 The Polymer Authors. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/node_modules/mutation-observer/Readme.md b/node_modules/mutation-observer/Readme.md new file mode 100644 index 0000000..db329ea --- /dev/null +++ b/node_modules/mutation-observer/Readme.md @@ -0,0 +1,22 @@ + +# mutation-observer + + Exposes the native `MutationObserver` API provided by the browser, or a polyfill based on mutation events. (For compatibility with IE9-10.) + + MutationObserver polyfill by the [Polymer Project](https://www.polymer-project.org/). + +## Installation + +```bash +$ npm install mutation-observer +``` + +## API + +```javascript +var MutationObserver = require('mutation-observer'); +``` + +## License + + BSD (See LICENSE file) \ No newline at end of file diff --git a/node_modules/mutation-observer/index.js b/node_modules/mutation-observer/index.js new file mode 100644 index 0000000..66cdc6f --- /dev/null +++ b/node_modules/mutation-observer/index.js @@ -0,0 +1,586 @@ +var MutationObserver = window.MutationObserver + || window.WebKitMutationObserver + || window.MozMutationObserver; + +/* + * Copyright 2012 The Polymer Authors. All rights reserved. + * Use of this source code is goverened by a BSD-style + * license that can be found in the LICENSE file. + */ + +var WeakMap = window.WeakMap; + +if (typeof WeakMap === 'undefined') { + var defineProperty = Object.defineProperty; + var counter = Date.now() % 1e9; + + WeakMap = function() { + this.name = '__st' + (Math.random() * 1e9 >>> 0) + (counter++ + '__'); + }; + + WeakMap.prototype = { + set: function(key, value) { + var entry = key[this.name]; + if (entry && entry[0] === key) + entry[1] = value; + else + defineProperty(key, this.name, {value: [key, value], writable: true}); + return this; + }, + get: function(key) { + var entry; + return (entry = key[this.name]) && entry[0] === key ? + entry[1] : undefined; + }, + 'delete': function(key) { + var entry = key[this.name]; + if (!entry) return false; + var hasValue = entry[0] === key; + entry[0] = entry[1] = undefined; + return hasValue; + }, + has: function(key) { + var entry = key[this.name]; + if (!entry) return false; + return entry[0] === key; + } + }; +} + +var registrationsTable = new WeakMap(); + +// We use setImmediate or postMessage for our future callback. +var setImmediate = window.msSetImmediate; + +// Use post message to emulate setImmediate. +if (!setImmediate) { + var setImmediateQueue = []; + var sentinel = String(Math.random()); + window.addEventListener('message', function(e) { + if (e.data === sentinel) { + var queue = setImmediateQueue; + setImmediateQueue = []; + queue.forEach(function(func) { + func(); + }); + } + }); + setImmediate = function(func) { + setImmediateQueue.push(func); + window.postMessage(sentinel, '*'); + }; +} + +// This is used to ensure that we never schedule 2 callas to setImmediate +var isScheduled = false; + +// Keep track of observers that needs to be notified next time. +var scheduledObservers = []; + +/** + * Schedules |dispatchCallback| to be called in the future. + * @param {MutationObserver} observer + */ +function scheduleCallback(observer) { + scheduledObservers.push(observer); + if (!isScheduled) { + isScheduled = true; + setImmediate(dispatchCallbacks); + } +} + +function wrapIfNeeded(node) { + return window.ShadowDOMPolyfill && + window.ShadowDOMPolyfill.wrapIfNeeded(node) || + node; +} + +function dispatchCallbacks() { + // http://dom.spec.whatwg.org/#mutation-observers + + isScheduled = false; // Used to allow a new setImmediate call above. + + var observers = scheduledObservers; + scheduledObservers = []; + // Sort observers based on their creation UID (incremental). + observers.sort(function(o1, o2) { + return o1.uid_ - o2.uid_; + }); + + var anyNonEmpty = false; + observers.forEach(function(observer) { + + // 2.1, 2.2 + var queue = observer.takeRecords(); + // 2.3. Remove all transient registered observers whose observer is mo. + removeTransientObserversFor(observer); + + // 2.4 + if (queue.length) { + observer.callback_(queue, observer); + anyNonEmpty = true; + } + }); + + // 3. + if (anyNonEmpty) + dispatchCallbacks(); +} + +function removeTransientObserversFor(observer) { + observer.nodes_.forEach(function(node) { + var registrations = registrationsTable.get(node); + if (!registrations) + return; + registrations.forEach(function(registration) { + if (registration.observer === observer) + registration.removeTransientObservers(); + }); + }); +} + +/** + * This function is used for the "For each registered observer observer (with + * observer's options as options) in target's list of registered observers, + * run these substeps:" and the "For each ancestor ancestor of target, and for + * each registered observer observer (with options options) in ancestor's list + * of registered observers, run these substeps:" part of the algorithms. The + * |options.subtree| is checked to ensure that the callback is called + * correctly. + * + * @param {Node} target + * @param {function(MutationObserverInit):MutationRecord} callback + */ +function forEachAncestorAndObserverEnqueueRecord(target, callback) { + for (var node = target; node; node = node.parentNode) { + var registrations = registrationsTable.get(node); + + if (registrations) { + for (var j = 0; j < registrations.length; j++) { + var registration = registrations[j]; + var options = registration.options; + + // Only target ignores subtree. + if (node !== target && !options.subtree) + continue; + + var record = callback(options); + if (record) + registration.enqueue(record); + } + } + } +} + +var uidCounter = 0; + +/** + * The class that maps to the DOM MutationObserver interface. + * @param {Function} callback. + * @constructor + */ +function JsMutationObserver(callback) { + this.callback_ = callback; + this.nodes_ = []; + this.records_ = []; + this.uid_ = ++uidCounter; +} + +JsMutationObserver.prototype = { + observe: function(target, options) { + target = wrapIfNeeded(target); + + // 1.1 + if (!options.childList && !options.attributes && !options.characterData || + + // 1.2 + options.attributeOldValue && !options.attributes || + + // 1.3 + options.attributeFilter && options.attributeFilter.length && + !options.attributes || + + // 1.4 + options.characterDataOldValue && !options.characterData) { + + throw new SyntaxError(); + } + + var registrations = registrationsTable.get(target); + if (!registrations) + registrationsTable.set(target, registrations = []); + + // 2 + // If target's list of registered observers already includes a registered + // observer associated with the context object, replace that registered + // observer's options with options. + var registration; + for (var i = 0; i < registrations.length; i++) { + if (registrations[i].observer === this) { + registration = registrations[i]; + registration.removeListeners(); + registration.options = options; + break; + } + } + + // 3. + // Otherwise, add a new registered observer to target's list of registered + // observers with the context object as the observer and options as the + // options, and add target to context object's list of nodes on which it + // is registered. + if (!registration) { + registration = new Registration(this, target, options); + registrations.push(registration); + this.nodes_.push(target); + } + + registration.addListeners(); + }, + + disconnect: function() { + this.nodes_.forEach(function(node) { + var registrations = registrationsTable.get(node); + for (var i = 0; i < registrations.length; i++) { + var registration = registrations[i]; + if (registration.observer === this) { + registration.removeListeners(); + registrations.splice(i, 1); + // Each node can only have one registered observer associated with + // this observer. + break; + } + } + }, this); + this.records_ = []; + }, + + takeRecords: function() { + var copyOfRecords = this.records_; + this.records_ = []; + return copyOfRecords; + } +}; + +/** + * @param {string} type + * @param {Node} target + * @constructor + */ +function MutationRecord(type, target) { + this.type = type; + this.target = target; + this.addedNodes = []; + this.removedNodes = []; + this.previousSibling = null; + this.nextSibling = null; + this.attributeName = null; + this.attributeNamespace = null; + this.oldValue = null; +} + +function copyMutationRecord(original) { + var record = new MutationRecord(original.type, original.target); + record.addedNodes = original.addedNodes.slice(); + record.removedNodes = original.removedNodes.slice(); + record.previousSibling = original.previousSibling; + record.nextSibling = original.nextSibling; + record.attributeName = original.attributeName; + record.attributeNamespace = original.attributeNamespace; + record.oldValue = original.oldValue; + return record; +}; + +// We keep track of the two (possibly one) records used in a single mutation. +var currentRecord, recordWithOldValue; + +/** + * Creates a record without |oldValue| and caches it as |currentRecord| for + * later use. + * @param {string} oldValue + * @return {MutationRecord} + */ +function getRecord(type, target) { + return currentRecord = new MutationRecord(type, target); +} + +/** + * Gets or creates a record with |oldValue| based in the |currentRecord| + * @param {string} oldValue + * @return {MutationRecord} + */ +function getRecordWithOldValue(oldValue) { + if (recordWithOldValue) + return recordWithOldValue; + recordWithOldValue = copyMutationRecord(currentRecord); + recordWithOldValue.oldValue = oldValue; + return recordWithOldValue; +} + +function clearRecords() { + currentRecord = recordWithOldValue = undefined; +} + +/** + * @param {MutationRecord} record + * @return {boolean} Whether the record represents a record from the current + * mutation event. + */ +function recordRepresentsCurrentMutation(record) { + return record === recordWithOldValue || record === currentRecord; +} + +/** + * Selects which record, if any, to replace the last record in the queue. + * This returns |null| if no record should be replaced. + * + * @param {MutationRecord} lastRecord + * @param {MutationRecord} newRecord + * @param {MutationRecord} + */ +function selectRecord(lastRecord, newRecord) { + if (lastRecord === newRecord) + return lastRecord; + + // Check if the the record we are adding represents the same record. If + // so, we keep the one with the oldValue in it. + if (recordWithOldValue && recordRepresentsCurrentMutation(lastRecord)) + return recordWithOldValue; + + return null; +} + +/** + * Class used to represent a registered observer. + * @param {MutationObserver} observer + * @param {Node} target + * @param {MutationObserverInit} options + * @constructor + */ +function Registration(observer, target, options) { + this.observer = observer; + this.target = target; + this.options = options; + this.transientObservedNodes = []; +} + +Registration.prototype = { + enqueue: function(record) { + var records = this.observer.records_; + var length = records.length; + + // There are cases where we replace the last record with the new record. + // For example if the record represents the same mutation we need to use + // the one with the oldValue. If we get same record (this can happen as we + // walk up the tree) we ignore the new record. + if (records.length > 0) { + var lastRecord = records[length - 1]; + var recordToReplaceLast = selectRecord(lastRecord, record); + if (recordToReplaceLast) { + records[length - 1] = recordToReplaceLast; + return; + } + } else { + scheduleCallback(this.observer); + } + + records[length] = record; + }, + + addListeners: function() { + this.addListeners_(this.target); + }, + + addListeners_: function(node) { + var options = this.options; + if (options.attributes) + node.addEventListener('DOMAttrModified', this, true); + + if (options.characterData) + node.addEventListener('DOMCharacterDataModified', this, true); + + if (options.childList) + node.addEventListener('DOMNodeInserted', this, true); + + if (options.childList || options.subtree) + node.addEventListener('DOMNodeRemoved', this, true); + }, + + removeListeners: function() { + this.removeListeners_(this.target); + }, + + removeListeners_: function(node) { + var options = this.options; + if (options.attributes) + node.removeEventListener('DOMAttrModified', this, true); + + if (options.characterData) + node.removeEventListener('DOMCharacterDataModified', this, true); + + if (options.childList) + node.removeEventListener('DOMNodeInserted', this, true); + + if (options.childList || options.subtree) + node.removeEventListener('DOMNodeRemoved', this, true); + }, + + /** + * Adds a transient observer on node. The transient observer gets removed + * next time we deliver the change records. + * @param {Node} node + */ + addTransientObserver: function(node) { + // Don't add transient observers on the target itself. We already have all + // the required listeners set up on the target. + if (node === this.target) + return; + + this.addListeners_(node); + this.transientObservedNodes.push(node); + var registrations = registrationsTable.get(node); + if (!registrations) + registrationsTable.set(node, registrations = []); + + // We know that registrations does not contain this because we already + // checked if node === this.target. + registrations.push(this); + }, + + removeTransientObservers: function() { + var transientObservedNodes = this.transientObservedNodes; + this.transientObservedNodes = []; + + transientObservedNodes.forEach(function(node) { + // Transient observers are never added to the target. + this.removeListeners_(node); + + var registrations = registrationsTable.get(node); + for (var i = 0; i < registrations.length; i++) { + if (registrations[i] === this) { + registrations.splice(i, 1); + // Each node can only have one registered observer associated with + // this observer. + break; + } + } + }, this); + }, + + handleEvent: function(e) { + // Stop propagation since we are managing the propagation manually. + // This means that other mutation events on the page will not work + // correctly but that is by design. + e.stopImmediatePropagation(); + + switch (e.type) { + case 'DOMAttrModified': + // http://dom.spec.whatwg.org/#concept-mo-queue-attributes + + var name = e.attrName; + var namespace = e.relatedNode.namespaceURI; + var target = e.target; + + // 1. + var record = new getRecord('attributes', target); + record.attributeName = name; + record.attributeNamespace = namespace; + + // 2. + var oldValue = null; + if (!(typeof MutationEvent !== 'undefined' && e.attrChange === MutationEvent.ADDITION)) + oldValue = e.prevValue; + + forEachAncestorAndObserverEnqueueRecord(target, function(options) { + // 3.1, 4.2 + if (!options.attributes) + return; + + // 3.2, 4.3 + if (options.attributeFilter && options.attributeFilter.length && + options.attributeFilter.indexOf(name) === -1 && + options.attributeFilter.indexOf(namespace) === -1) { + return; + } + // 3.3, 4.4 + if (options.attributeOldValue) + return getRecordWithOldValue(oldValue); + + // 3.4, 4.5 + return record; + }); + + break; + + case 'DOMCharacterDataModified': + // http://dom.spec.whatwg.org/#concept-mo-queue-characterdata + var target = e.target; + + // 1. + var record = getRecord('characterData', target); + + // 2. + var oldValue = e.prevValue; + + + forEachAncestorAndObserverEnqueueRecord(target, function(options) { + // 3.1, 4.2 + if (!options.characterData) + return; + + // 3.2, 4.3 + if (options.characterDataOldValue) + return getRecordWithOldValue(oldValue); + + // 3.3, 4.4 + return record; + }); + + break; + + case 'DOMNodeRemoved': + this.addTransientObserver(e.target); + // Fall through. + case 'DOMNodeInserted': + // http://dom.spec.whatwg.org/#concept-mo-queue-childlist + var target = e.relatedNode; + var changedNode = e.target; + var addedNodes, removedNodes; + if (e.type === 'DOMNodeInserted') { + addedNodes = [changedNode]; + removedNodes = []; + } else { + + addedNodes = []; + removedNodes = [changedNode]; + } + var previousSibling = changedNode.previousSibling; + var nextSibling = changedNode.nextSibling; + + // 1. + var record = getRecord('childList', target); + record.addedNodes = addedNodes; + record.removedNodes = removedNodes; + record.previousSibling = previousSibling; + record.nextSibling = nextSibling; + + forEachAncestorAndObserverEnqueueRecord(target, function(options) { + // 2.1, 3.2 + if (!options.childList) + return; + + // 2.2, 3.3 + return record; + }); + + } + + clearRecords(); + } +}; + +if (!MutationObserver) { + MutationObserver = JsMutationObserver; +} + +module.exports = MutationObserver; diff --git a/node_modules/mutation-observer/package.json b/node_modules/mutation-observer/package.json new file mode 100644 index 0000000..e0f426a --- /dev/null +++ b/node_modules/mutation-observer/package.json @@ -0,0 +1,51 @@ +{ + "_from": "mutation-observer@^1.0.3", + "_id": "mutation-observer@1.0.3", + "_inBundle": false, + "_integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==", + "_location": "/mutation-observer", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "mutation-observer@^1.0.3", + "name": "mutation-observer", + "escapedName": "mutation-observer", + "rawSpec": "^1.0.3", + "saveSpec": null, + "fetchSpec": "^1.0.3" + }, + "_requiredBy": [ + "/vconsole" + ], + "_resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz", + "_shasum": "42e9222b101bca82e5ba9d5a7acf4a14c0f263d0", + "_spec": "mutation-observer@^1.0.3", + "_where": "D:\\work\\tourGuide\\node_modules\\vconsole", + "bugs": { + "url": "https://github.com/webmodules/mutation-observer/issues" + }, + "bundleDependencies": false, + "component": { + "scripts": { + "mutation-observer/index.js": "index.js" + } + }, + "dependencies": {}, + "deprecated": false, + "description": "Exposes the `MutationObserver` API, or a polyfill based on mutation events for IE 9-10.", + "homepage": "https://github.com/webmodules/mutation-observer#readme", + "name": "mutation-observer", + "repository": { + "type": "git", + "url": "git://github.com/webmodules/mutation-observer.git" + }, + "tags": [ + "polyfill", + "webmodule", + "mutation", + "observer", + "browser" + ], + "version": "1.0.3" +} diff --git a/node_modules/regenerator-runtime/LICENSE b/node_modules/regenerator-runtime/LICENSE new file mode 100644 index 0000000..cde61b6 --- /dev/null +++ b/node_modules/regenerator-runtime/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2014-present, Facebook, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/regenerator-runtime/README.md b/node_modules/regenerator-runtime/README.md new file mode 100644 index 0000000..e8702ba --- /dev/null +++ b/node_modules/regenerator-runtime/README.md @@ -0,0 +1,31 @@ +# regenerator-runtime + +Standalone runtime for +[Regenerator](https://github.com/facebook/regenerator)-compiled generator +and `async` functions. + +To import the runtime as a module (recommended), either of the following +import styles will work: +```js +// CommonJS +const regeneratorRuntime = require("regenerator-runtime"); + +// ECMAScript 2015 +import regeneratorRuntime from "regenerator-runtime"; +``` + +To ensure that `regeneratorRuntime` is defined globally, either of the +following styles will work: +```js +// CommonJS +require("regenerator-runtime/runtime"); + +// ECMAScript 2015 +import "regenerator-runtime/runtime.js"; +``` + +To get the absolute file system path of `runtime.js`, evaluate the +following expression: +```js +require("regenerator-runtime/path").path +``` diff --git a/node_modules/regenerator-runtime/package.json b/node_modules/regenerator-runtime/package.json new file mode 100644 index 0000000..6477d39 --- /dev/null +++ b/node_modules/regenerator-runtime/package.json @@ -0,0 +1,47 @@ +{ + "_from": "regenerator-runtime@^0.14.0", + "_id": "regenerator-runtime@0.14.1", + "_inBundle": false, + "_integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "_location": "/regenerator-runtime", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "regenerator-runtime@^0.14.0", + "name": "regenerator-runtime", + "escapedName": "regenerator-runtime", + "rawSpec": "^0.14.0", + "saveSpec": null, + "fetchSpec": "^0.14.0" + }, + "_requiredBy": [ + "/@babel/runtime" + ], + "_resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "_shasum": "356ade10263f685dda125100cd862c1db895327f", + "_spec": "regenerator-runtime@^0.14.0", + "_where": "D:\\work\\tourGuide\\node_modules\\@babel\\runtime", + "author": { + "name": "Ben Newman", + "email": "bn@cs.stanford.edu" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Runtime for Regenerator-compiled generator and async functions.", + "keywords": [ + "regenerator", + "runtime", + "generator", + "async" + ], + "license": "MIT", + "main": "runtime.js", + "name": "regenerator-runtime", + "repository": { + "type": "git", + "url": "https://github.com/facebook/regenerator/tree/main/packages/runtime" + }, + "sideEffects": true, + "version": "0.14.1" +} diff --git a/node_modules/regenerator-runtime/path.js b/node_modules/regenerator-runtime/path.js new file mode 100644 index 0000000..ced878b --- /dev/null +++ b/node_modules/regenerator-runtime/path.js @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +exports.path = require("path").join( + __dirname, + "runtime.js" +); diff --git a/node_modules/regenerator-runtime/runtime.js b/node_modules/regenerator-runtime/runtime.js new file mode 100644 index 0000000..5593ca5 --- /dev/null +++ b/node_modules/regenerator-runtime/runtime.js @@ -0,0 +1,761 @@ +/** + * Copyright (c) 2014-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +var runtime = (function (exports) { + "use strict"; + + var Op = Object.prototype; + var hasOwn = Op.hasOwnProperty; + var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }; + var undefined; // More compressible than void 0. + var $Symbol = typeof Symbol === "function" ? Symbol : {}; + var iteratorSymbol = $Symbol.iterator || "@@iterator"; + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; + + function define(obj, key, value) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + return obj[key]; + } + try { + // IE 8 has a broken Object.defineProperty that only works on DOM objects. + define({}, ""); + } catch (err) { + define = function(obj, key, value) { + return obj[key] = value; + }; + } + + function wrap(innerFn, outerFn, self, tryLocsList) { + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; + var generator = Object.create(protoGenerator.prototype); + var context = new Context(tryLocsList || []); + + // The ._invoke method unifies the implementations of the .next, + // .throw, and .return methods. + defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }); + + return generator; + } + exports.wrap = wrap; + + // Try/catch helper to minimize deoptimizations. Returns a completion + // record like context.tryEntries[i].completion. This interface could + // have been (and was previously) designed to take a closure to be + // invoked without arguments, but in all the cases we care about we + // already have an existing method we want to call, so there's no need + // to create a new function object. We can even get away with assuming + // the method takes exactly one argument, since that happens to be true + // in every case, so we don't have to touch the arguments object. The + // only additional allocation required is the completion record, which + // has a stable shape and so hopefully should be cheap to allocate. + function tryCatch(fn, obj, arg) { + try { + return { type: "normal", arg: fn.call(obj, arg) }; + } catch (err) { + return { type: "throw", arg: err }; + } + } + + var GenStateSuspendedStart = "suspendedStart"; + var GenStateSuspendedYield = "suspendedYield"; + var GenStateExecuting = "executing"; + var GenStateCompleted = "completed"; + + // Returning this object from the innerFn has the same effect as + // breaking out of the dispatch switch statement. + var ContinueSentinel = {}; + + // Dummy constructor functions that we use as the .constructor and + // .constructor.prototype properties for functions that return Generator + // objects. For full spec compliance, you may wish to configure your + // minifier not to mangle the names of these two functions. + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + + // This is a polyfill for %IteratorPrototype% for environments that + // don't natively support it. + var IteratorPrototype = {}; + define(IteratorPrototype, iteratorSymbol, function () { + return this; + }); + + var getProto = Object.getPrototypeOf; + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + if (NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { + // This environment has a native %IteratorPrototype%; use it instead + // of the polyfill. + IteratorPrototype = NativeIteratorPrototype; + } + + var Gp = GeneratorFunctionPrototype.prototype = + Generator.prototype = Object.create(IteratorPrototype); + GeneratorFunction.prototype = GeneratorFunctionPrototype; + defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: true }); + defineProperty( + GeneratorFunctionPrototype, + "constructor", + { value: GeneratorFunction, configurable: true } + ); + GeneratorFunction.displayName = define( + GeneratorFunctionPrototype, + toStringTagSymbol, + "GeneratorFunction" + ); + + // Helper for defining the .next, .throw, and .return methods of the + // Iterator interface in terms of a single ._invoke method. + function defineIteratorMethods(prototype) { + ["next", "throw", "return"].forEach(function(method) { + define(prototype, method, function(arg) { + return this._invoke(method, arg); + }); + }); + } + + exports.isGeneratorFunction = function(genFun) { + var ctor = typeof genFun === "function" && genFun.constructor; + return ctor + ? ctor === GeneratorFunction || + // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (ctor.displayName || ctor.name) === "GeneratorFunction" + : false; + }; + + exports.mark = function(genFun) { + if (Object.setPrototypeOf) { + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); + } else { + genFun.__proto__ = GeneratorFunctionPrototype; + define(genFun, toStringTagSymbol, "GeneratorFunction"); + } + genFun.prototype = Object.create(Gp); + return genFun; + }; + + // Within the body of any async function, `await x` is transformed to + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test + // `hasOwn.call(value, "__await")` to determine if the yielded value is + // meant to be awaited. + exports.awrap = function(arg) { + return { __await: arg }; + }; + + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if (record.type === "throw") { + reject(record.arg); + } else { + var result = record.arg; + var value = result.value; + if (value && + typeof value === "object" && + hasOwn.call(value, "__await")) { + return PromiseImpl.resolve(value.__await).then(function(value) { + invoke("next", value, resolve, reject); + }, function(err) { + invoke("throw", err, resolve, reject); + }); + } + + return PromiseImpl.resolve(value).then(function(unwrapped) { + // When a yielded Promise is resolved, its final value becomes + // the .value of the Promise<{value,done}> result for the + // current iteration. + result.value = unwrapped; + resolve(result); + }, function(error) { + // If a rejected Promise was yielded, throw the rejection back + // into the async generator function so it can be handled there. + return invoke("throw", error, resolve, reject); + }); + } + } + + var previousPromise; + + function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function(resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + + return previousPromise = + // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + previousPromise ? previousPromise.then( + callInvokeWithMethodAndArg, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + callInvokeWithMethodAndArg + ) : callInvokeWithMethodAndArg(); + } + + // Define the unified helper method that is used to implement .next, + // .throw, and .return (see defineIteratorMethods). + defineProperty(this, "_invoke", { value: enqueue }); + } + + defineIteratorMethods(AsyncIterator.prototype); + define(AsyncIterator.prototype, asyncIteratorSymbol, function () { + return this; + }); + exports.AsyncIterator = AsyncIterator; + + // Note that simple async functions are implemented on top of + // AsyncIterator objects; they just return a Promise for the value of + // the final result produced by the iterator. + exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { + if (PromiseImpl === void 0) PromiseImpl = Promise; + + var iter = new AsyncIterator( + wrap(innerFn, outerFn, self, tryLocsList), + PromiseImpl + ); + + return exports.isGeneratorFunction(outerFn) + ? iter // If outerFn is a generator, return the full iterator. + : iter.next().then(function(result) { + return result.done ? result.value : iter.next(); + }); + }; + + function makeInvokeMethod(innerFn, self, context) { + var state = GenStateSuspendedStart; + + return function invoke(method, arg) { + if (state === GenStateExecuting) { + throw new Error("Generator is already running"); + } + + if (state === GenStateCompleted) { + if (method === "throw") { + throw arg; + } + + // Be forgiving, per GeneratorResume behavior specified since ES2015: + // ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume + // Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume + return doneResult(); + } + + context.method = method; + context.arg = arg; + + while (true) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + + if (context.method === "next") { + // Setting context._sent for legacy support of Babel's + // function.sent implementation. + context.sent = context._sent = context.arg; + + } else if (context.method === "throw") { + if (state === GenStateSuspendedStart) { + state = GenStateCompleted; + throw context.arg; + } + + context.dispatchException(context.arg); + + } else if (context.method === "return") { + context.abrupt("return", context.arg); + } + + state = GenStateExecuting; + + var record = tryCatch(innerFn, self, context); + if (record.type === "normal") { + // If an exception is thrown from innerFn, we leave state === + // GenStateExecuting and loop back for another invocation. + state = context.done + ? GenStateCompleted + : GenStateSuspendedYield; + + if (record.arg === ContinueSentinel) { + continue; + } + + return { + value: record.arg, + done: context.done + }; + + } else if (record.type === "throw") { + state = GenStateCompleted; + // Dispatch the exception by looping back around to the + // context.dispatchException(context.arg) call above. + context.method = "throw"; + context.arg = record.arg; + } + } + }; + } + + // Call delegate.iterator[context.method](context.arg) and handle the + // result, either by returning a { value, done } result from the + // delegate iterator, or by modifying context.method and context.arg, + // setting context.delegate to null, and returning the ContinueSentinel. + function maybeInvokeDelegate(delegate, context) { + var methodName = context.method; + var method = delegate.iterator[methodName]; + if (method === undefined) { + // A .throw or .return when the delegate iterator has no .throw + // method, or a missing .next method, always terminate the + // yield* loop. + context.delegate = null; + + // Note: ["return"] must be used for ES3 parsing compatibility. + if (methodName === "throw" && delegate.iterator["return"]) { + // If the delegate iterator has a return method, give it a + // chance to clean up. + context.method = "return"; + context.arg = undefined; + maybeInvokeDelegate(delegate, context); + + if (context.method === "throw") { + // If maybeInvokeDelegate(context) changed context.method from + // "return" to "throw", let that override the TypeError below. + return ContinueSentinel; + } + } + if (methodName !== "return") { + context.method = "throw"; + context.arg = new TypeError( + "The iterator does not provide a '" + methodName + "' method"); + } + + return ContinueSentinel; + } + + var record = tryCatch(method, delegate.iterator, context.arg); + + if (record.type === "throw") { + context.method = "throw"; + context.arg = record.arg; + context.delegate = null; + return ContinueSentinel; + } + + var info = record.arg; + + if (! info) { + context.method = "throw"; + context.arg = new TypeError("iterator result is not an object"); + context.delegate = null; + return ContinueSentinel; + } + + if (info.done) { + // Assign the result of the finished delegate to the temporary + // variable specified by delegate.resultName (see delegateYield). + context[delegate.resultName] = info.value; + + // Resume execution at the desired location (see delegateYield). + context.next = delegate.nextLoc; + + // If context.method was "throw" but the delegate handled the + // exception, let the outer generator proceed normally. If + // context.method was "next", forget context.arg since it has been + // "consumed" by the delegate iterator. If context.method was + // "return", allow the original .return call to continue in the + // outer generator. + if (context.method !== "return") { + context.method = "next"; + context.arg = undefined; + } + + } else { + // Re-yield the result returned by the delegate method. + return info; + } + + // The delegate iterator is finished, so forget it and continue with + // the outer generator. + context.delegate = null; + return ContinueSentinel; + } + + // Define Generator.prototype.{next,throw,return} in terms of the + // unified ._invoke helper method. + defineIteratorMethods(Gp); + + define(Gp, toStringTagSymbol, "Generator"); + + // A Generator should always return itself as the iterator object when the + // @@iterator function is called on it. Some browsers' implementations of the + // iterator prototype chain incorrectly implement this, causing the Generator + // object to not be returned from this call. This ensures that doesn't happen. + // See https://github.com/facebook/regenerator/issues/274 for more details. + define(Gp, iteratorSymbol, function() { + return this; + }); + + define(Gp, "toString", function() { + return "[object Generator]"; + }); + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + + if (1 in locs) { + entry.catchLoc = locs[1]; + } + + if (2 in locs) { + entry.finallyLoc = locs[2]; + entry.afterLoc = locs[3]; + } + + this.tryEntries.push(entry); + } + + function resetTryEntry(entry) { + var record = entry.completion || {}; + record.type = "normal"; + delete record.arg; + entry.completion = record; + } + + function Context(tryLocsList) { + // The root entry object (effectively a try statement without a catch + // or a finally block) gives us a place to store values thrown from + // locations where there is no enclosing try statement. + this.tryEntries = [{ tryLoc: "root" }]; + tryLocsList.forEach(pushTryEntry, this); + this.reset(true); + } + + exports.keys = function(val) { + var object = Object(val); + var keys = []; + for (var key in object) { + keys.push(key); + } + keys.reverse(); + + // Rather than returning an object with a next method, we keep + // things simple and return the next function itself. + return function next() { + while (keys.length) { + var key = keys.pop(); + if (key in object) { + next.value = key; + next.done = false; + return next; + } + } + + // To avoid creating an additional object, we just hang the .value + // and .done properties off the next function object itself. This + // also ensures that the minifier will not anonymize the function. + next.done = true; + return next; + }; + }; + + function values(iterable) { + if (iterable != null) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) { + return iteratorMethod.call(iterable); + } + + if (typeof iterable.next === "function") { + return iterable; + } + + if (!isNaN(iterable.length)) { + var i = -1, next = function next() { + while (++i < iterable.length) { + if (hasOwn.call(iterable, i)) { + next.value = iterable[i]; + next.done = false; + return next; + } + } + + next.value = undefined; + next.done = true; + + return next; + }; + + return next.next = next; + } + } + + throw new TypeError(typeof iterable + " is not iterable"); + } + exports.values = values; + + function doneResult() { + return { value: undefined, done: true }; + } + + Context.prototype = { + constructor: Context, + + reset: function(skipTempReset) { + this.prev = 0; + this.next = 0; + // Resetting context._sent for legacy support of Babel's + // function.sent implementation. + this.sent = this._sent = undefined; + this.done = false; + this.delegate = null; + + this.method = "next"; + this.arg = undefined; + + this.tryEntries.forEach(resetTryEntry); + + if (!skipTempReset) { + for (var name in this) { + // Not sure about the optimal order of these conditions: + if (name.charAt(0) === "t" && + hasOwn.call(this, name) && + !isNaN(+name.slice(1))) { + this[name] = undefined; + } + } + } + }, + + stop: function() { + this.done = true; + + var rootEntry = this.tryEntries[0]; + var rootRecord = rootEntry.completion; + if (rootRecord.type === "throw") { + throw rootRecord.arg; + } + + return this.rval; + }, + + dispatchException: function(exception) { + if (this.done) { + throw exception; + } + + var context = this; + function handle(loc, caught) { + record.type = "throw"; + record.arg = exception; + context.next = loc; + + if (caught) { + // If the dispatched exception was caught by a catch block, + // then let that catch block handle the exception normally. + context.method = "next"; + context.arg = undefined; + } + + return !! caught; + } + + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + var record = entry.completion; + + if (entry.tryLoc === "root") { + // Exception thrown outside of any try block that could handle + // it, so set the completion value of the entire function to + // throw the exception. + return handle("end"); + } + + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, "catchLoc"); + var hasFinally = hasOwn.call(entry, "finallyLoc"); + + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } else if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else if (hasCatch) { + if (this.prev < entry.catchLoc) { + return handle(entry.catchLoc, true); + } + + } else if (hasFinally) { + if (this.prev < entry.finallyLoc) { + return handle(entry.finallyLoc); + } + + } else { + throw new Error("try statement without catch or finally"); + } + } + } + }, + + abrupt: function(type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && + hasOwn.call(entry, "finallyLoc") && + this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + + if (finallyEntry && + (type === "break" || + type === "continue") && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc) { + // Ignore the finally entry if control is not jumping to a + // location outside the try/catch block. + finallyEntry = null; + } + + var record = finallyEntry ? finallyEntry.completion : {}; + record.type = type; + record.arg = arg; + + if (finallyEntry) { + this.method = "next"; + this.next = finallyEntry.finallyLoc; + return ContinueSentinel; + } + + return this.complete(record); + }, + + complete: function(record, afterLoc) { + if (record.type === "throw") { + throw record.arg; + } + + if (record.type === "break" || + record.type === "continue") { + this.next = record.arg; + } else if (record.type === "return") { + this.rval = this.arg = record.arg; + this.method = "return"; + this.next = "end"; + } else if (record.type === "normal" && afterLoc) { + this.next = afterLoc; + } + + return ContinueSentinel; + }, + + finish: function(finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) { + this.complete(entry.completion, entry.afterLoc); + resetTryEntry(entry); + return ContinueSentinel; + } + } + }, + + "catch": function(tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if (record.type === "throw") { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + + // The context.catch method must only be called with a location + // argument that corresponds to a known catch block. + throw new Error("illegal catch attempt"); + }, + + delegateYield: function(iterable, resultName, nextLoc) { + this.delegate = { + iterator: values(iterable), + resultName: resultName, + nextLoc: nextLoc + }; + + if (this.method === "next") { + // Deliberately forget the last sent value so that we don't + // accidentally pass it on to the delegate. + this.arg = undefined; + } + + return ContinueSentinel; + } + }; + + // Regardless of whether this script is executing as a CommonJS module + // or not, return the runtime object so that we can declare the variable + // regeneratorRuntime in the outer scope, which allows this module to be + // injected easily by `bin/regenerator --include-runtime script.js`. + return exports; + +}( + // If this script is executing as a CommonJS module, use module.exports + // as the regeneratorRuntime namespace. Otherwise create a new empty + // object. Either way, the resulting object will be used to initialize + // the regeneratorRuntime variable at the top of this file. + typeof module === "object" ? module.exports : {} +)); + +try { + regeneratorRuntime = runtime; +} catch (accidentalStrictMode) { + // This module should not be running in strict mode, so the above + // assignment should always work unless something is misconfigured. Just + // in case runtime.js accidentally runs in strict mode, in modern engines + // we can explicitly access globalThis. In older engines we can escape + // strict mode using a global Function call. This could conceivably fail + // if a Content Security Policy forbids using Function, but in that case + // the proper solution is to fix the accidental strict mode problem. If + // you've misconfigured your bundler to force strict mode and applied a + // CSP to forbid Function, and you're not willing to fix either of those + // problems, please detail your unique predicament in a GitHub issue. + if (typeof globalThis === "object") { + globalThis.regeneratorRuntime = runtime; + } else { + Function("r", "regeneratorRuntime = r")(runtime); + } +} diff --git a/node_modules/vconsole/CHANGELOG.md b/node_modules/vconsole/CHANGELOG.md new file mode 100644 index 0000000..1667185 --- /dev/null +++ b/node_modules/vconsole/CHANGELOG.md @@ -0,0 +1,535 @@ +English | [简体中文](./CHANGELOG_CN.md) + +## 3.15.1 (2023-06-01) + +- `Feat(Netwrk)` Add new option `network.ignoreUrlRegExp` to skip some requests. (PR #623) +- `Fix(Core)` Fix prototype pollution in `vConsole.setOption()`. (issue #616 #621) +- `Fix(Core)` Fix plugin event `ready` triggering before its HTML finishes rendering. (issue #591) +- `Fix(Log)` Reset group state when `console.clear()` is called. (issue #611) +- `Fix(Log)` Compatible with iOS (less than 13.4) that does not support `ResizeObserver`, but there may be a potential performance issue when printing a large number of logs. (issue #610) +- `Fix(Network)` Fix possible "Cannot read property" error by `sendBeacon`. (issue #615) + + +## 3.15.0 (2022-11-02) + +- `Feat(Log)` Add recycle scrolling to imporove performance, and add scroll to top/bottom buttons. (PR #570) +- `Feat(Log)` Add support for `console.group(), console.groupCollapsed(), console.groupEnd()`. (issue #545) +- `Feat(Network)` Add recycle scrolling to imporove performance. +- `Feat(Network)` Add "Start Time" of a request. +- `Feat(Network)` Use `curl` instead of `url` as the copy value of a request. (issue #410) +- `Fix(Storage)` Fix an event bug that overflow content cannot scroll. (issue #542) +- `Fix(Core)` Fix click event on `` 的点击事件问题。 (PR #577) + + +## 3.14.7 (2022-09-23) + +- `Perf(Log)` 优化打印日志时的性能。 (PR #567) +- `Fix(Core)` 修复因设置 `pluginOrder` 导致插件面板排序错误的问题。 (issue #559) +- `Fix(Core)` 修复因 `Touch` 事件中的 `preventDefault` 导致的 intervention 错误。 (issue #546) +- `Fix(Log)` 修复 `window.onerror` 丢失换行的问题。 +- `Fix(Log)` 修复清除命令行按钮在 iOS Safari 中无法点击的问题。 (PR #564) +- `Fix(Log)` 修复一处误判循环引用对象的笔误。 (issue #566) +- `Fix(Log|Network)` 以标准 JSON 格式复制对象或数组。 (issue #547) +- `Fix(Network)` 修复因 `window` 对象被代理导致 `Fetch` 一直为 pending 状态的问题。 (issue #556) +- `Fix(Storage)` 修复因设置 `storage.defaultStorages` 导致 Storage 面板排序错误的问题。 (issue #560) +- `Chore` 添加 `env['no-core-js']` 选项来停用构建时使用 core-js polyfill。 (PR #562) + + +## 3.14.6 (2022-04-14) + +- `Fix(Log)` 修复当销毁后再次初始化 vConsole 时失去追踪 logs 的问题。 +- `Fix(Network)` 修复 `resp.body` undefined 错误。 (issue #531) +- `Fix(Network)` 修复 `xhr.setRequestHeader` 被覆盖改写时丢失 Request Headers 的问题。 (issue #533) +- `Chore` 更新 NPM 依赖。 + + +## 3.14.5 (2022-04-06) + +- `Fix(Core)` 修复极短时间内重复初始化 vConsole 导致的报错。 (issue #525) +- `Fix(Log)` 修复 `console.time | console.timeEnd` 不输出日志的问题。 (issue #523) +- `Fix(Element)` 修复更新 attributes 时引起的 `undefined is not an object` 错误。 (issue #526) +- `Fix(Network)` 当请求完成后,不再代理 response body reader。 +- `Chore` 修复 Svelte 在 Windows 环境中未被 Babel 转义的问题。 (PR #528) + + +## 3.14.4 (2022-03-31) + +- `Fix(Network)` 修复回包超大时导致的卡死问题。 (issue #515) +- `Fix(Network)` 修复 XHR 中缺失显示 Request Headers 的问题。 (issue #522) + + +## 3.14.3 (2022-03-28) + +- `Fix(Network)` 修复 `response.size` 错误。 + + +## 3.14.2 (2022-03-25) + +- `Fix(Network)` 删除调试日志。 +- `Chore` 在构建时自动删除 `console.log` 以确保调试日志不会出现在正式版本中。 +- `Chore` 添加新的编译命令以编译出不同场景下的文件。 + + +## 3.14.1 (2022-03-24) + +- `Fix(Network)` 修复当 `readyState === 3` 时的 `responseSize` 错误。 + + +## 3.14.0 (2022-03-23) + +- `Feat(Core)` 新增配置项 `pluginOrder` 来调整插件面板的排序,见 [公共属性及方法](./doc/public_properties_methods_CN.md)。 +- `Feat(Core)` 切换插件面板时,面板会自动滚动到上次的位置。 +- `Feat(Network)` 新增显示 Response 的体积。 +- `Feat(Network)` 新增对 `transfer-encoding: chunked` 的支持,现在可记录流式回包(stream response)。 +- `Feat(Network)` 展示时裁剪过大的 Response 回包以提高渲染性能。 +- `Refactor(Network)` 提高网络记录的准确性,以避免被外部库(如 Axios)覆盖;方法是对 `XMLHttpRequest | fetch` 使用 Proxy。 + + +## 3.13.0 (2022-03-15) + +- `Feat(Log)` 新增配置项 `log.showTimestamps`,见 [公共属性及方法](./doc/public_properties_methods_CN.md)。 +- `Fix(Core)` 使用模拟的 `click` 事件以避免某些场景下原生 click 事件不生效的问题。 +- `Fix(style)` 修复微信 Webview 中的 CSS transition 失效的问题,通过使用 `bottom` 而非 `transform`。 +- `Fix(Core)` 修复在 `onReady` 回调中调用 vConsole 方法导致报错的问题。 (issue #516) +- `Refactor(Storage)` 提高健壮性。 + + +## 3.12.1 (2022-02-25) + +- `Fix(Core)` 修复当 VConsole 作为新模块 `import` 时 `VConsole.instance` 为空的问题。 +- `Chore(Core)` 修复由外部依赖库引起的 TypeScript 类型声明错误问题。 + + +## 3.12.0 (2022-02-17) + +- `Feat(Core)` 新增静态属性 `VConsole.instance` 以获取实例化后的单例 vConsole 对象。 +- `Feat(Core)` 新增配置项 `storage.defaultStorages`,见 [公共属性及方法](./doc/public_properties_methods_CN.md)。 +- `Feat(Core)` 更新 `vConsole.setOption()` 用法:通过 `setOption('log.maxLogNumber', 20)` 来单独设置 `maxLogNumber` 字段,或通过 `setOption({ log: { maxLogNumber: 20 }})` 来覆盖 `log` 对象。 +- `Feat(Core)` 废弃一些配置项,参见下面。 +- `Fix(Plugin)` 修复插件事件 `renderTab` 没有渲染出视图的 bug。 +- `Fix(Storage)` 修复某些情况下的 Cookie 解析错误问题。 (issue #508, #509) + +**废弃的配置项:** + +- `maxLogNumber`:用 `option.log.maxLogNumber` 替代。 +- `maxNetworkNumber`:用 `option.network.maxNetworkNumber` 替代。 +- `onClearLog`:移除。 + + +## 3.11.2 (2022-01-20) + +- `Feat(Storage)` 增加 "Clear" 按钮以批量删除所有 storage。 (issue #499) +- `Fix(Storage)` 修复无法删除 cookies 的问题。 (issue #499) + + +## 3.11.1 (2022-01-13) + +- `Feat(Log)` 支持使用回车键提交命令行输入。 (issue #498) +- `Fix(Network)` 修复 `init.body` 参数报错。 (issue #500) + + +## 3.11.0 (2021-12-30) + +- `Feat(Core)` 支持自定义挂载点,配置项 `vConsole.option.target` 见 [公共属性及方法](./doc/public_properties_methods_CN.md)。 (issue #455) +- `Feat(Log)` 新增插件方法 `vConsole.log.log()|info()|...`、`vConsole.log.clear()`,见 [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md)。 +- `Feat(Network)` 新增插件方法 `vConsole.network.add()|update()`、`vConsole.network.clear()`,见 [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md)。 +- `Feat(Network)` 支持限制请求数量,配置项 `vConsole.option.maxNetworkNumber`见 [公共属性及方法](./doc/public_properties_methods_CN.md)。 (issue #492) +- `Fix(Network)` 在所有 HTTP Methods 中都会展示 Request Payload,而非仅限于 POST。 (issue #493) +- `Fix(Element)` 修复由于新增 Comment 节点导致的死循环问题。 (issue #491) + + +## 3.10.1 (2021-12-23) + +- `Feat(Network)` 格式化输出 response 中的 JSON 内容。 (issue #486) +- `Fix(Style)` 当 `initial-scale !== 1` 时,避免面板随页面缩放大小。 +- `Fix(Core)` 修复 PC 模式下点击面板按钮无效的问题。 (issue #487) +- `Fix(Network)` 当 Query/Payload/Headers 是对象或数组时,展示为结构化的 JSON 格式而非 `[object Object]`。 +- `Fix(Network)` 当某些情况下 XHR 对象被复用时,避免多次覆盖XHR对象的 `onreadystatechange` 以造成错误。 (issue #214) + + +## 3.10.0 (2021-12-17) + +> 这个版本中,我们重构了大部分核心逻辑,并且使用 Svelte 作为所有面板的视图层模板引擎。 +> 这带来了一些重大变化(Breaking changes),少数属性和方法无法保证向下兼容。 +> 如果你是 vConsole 插件开发者,应该关注这些变化。 + +**Breaking Changes:** + +- `Refactor(Core|Log|Network|Element)` 使用 Svelte 作为所有视图的模板引擎。 +- `Refactor(Core)` **删除** `vConsole.(tabList | activedTab | $dom)` 属性。 +- `Refactor(Plugin)` **重命名** `vConsole.showTab(pluginID)` 为 `vConsole.showPlugin(pluginID)`。 +- `Refactor(Plugin)` **更新**插件事件 `addTopBar` 的配置参数 `{ data, onClick }`: `onClick` 会接收 2 个参数(之前是 0 个): `(event: Event, data?: any) => boolean`,其中 `data` 为上述配置参数的 `data` 字段。 +- `Feat(Core)` **删除**辅助函数 `vConsole.tool` 和 `vConsole.$`。 + +**Common Updates:** + +- `Feat(Log)` 支持展示对象键值为 `Symbol` 类型的键值对。 +- `Feat(Log)` 命令行支持多级关键字提示。 +- `Feat(Log)` 支持使用 `%s, %d, %o` 来格式化展示字符串,并且优化了 `%c` 的 CSS 样式逻辑。 +- `Feat(Log)` 对存在大量键值的对象或数组,加入翻页逻辑以提升渲染性能,每 50 一页。 +- `Feat(Network)` Request 的属性值支持复制。 +- `Feat(Element)` 提升交互体验,选中的节点将会被高亮,并且展开/收起(Expand/Coolapse)基于选中的节点来进行。 +- `Feat(Style)` 样式标签会在 vConsole 初始化后才注入 `` 中,并在 vConsole 销毁后会自动移除。 +- `Refactor(Storage)` 优化了部分交互体验。 +- `Fix(Network)` 当 `Fetch` 发生 Error 时,会 throw 到外部,以符合标准实现。 (issue #458) + +## 3.9.5 (2021-11-10) + +- `Style(Log)` 支持 `BigInt` 类型并更新 `Symbol` 类型的样式。 +- `Refactor(Style)` 在 vConsole 初始化时再懒加载 style 标签(而非 import 后就加载)。 +- `Fix(Core)` 使用 `this || self` 作为 `globalObject`,以避免 `self is not defined` 错误。 (issue #441) +- `Fix(Log)` 修复打印 `Symbol` 类型时产生的 `Cannot convert a Symbol value to a string` 错误。 +- `Fix(Log)` 修复 commands 命令及其输出结果无法复制的问题。 +- `Fix(Network)` 修复解码 URL 参数时产生的 `URIError` 错误。 (issue #470) +- `Fix(Network)` 修复潜在的由 `forEach` 引起的错误。 (issue #471) +- `Chore` 转换 Svelte 代码产物到 ES5 标准,以避免 ES6 引发的构建问题。 (issue #468) + + +## 3.9.4 (2021-10-26) + +- `Refactor(Core)` 为 `VConsole` 类的方法参数添加 Typescript 声明. + + +## 3.9.3 (2021-10-22) + +- `Fix(Network)` 修复未完成初始化时调用 `setOption()` 导致的 `Cannot read property 'setAttribute' of null`错误。 (PR #453 by @Zhangstring) +- `Fix(Network)` 修复 iOS < 11 时产生的 `Fetch` 错误. (PR #457 by @zimv) +- `Chore` 构建时自动生成 `.d.ts` 声明。 (RP #433 by @ManiaciaChao) +- `Chore` 从 Git 版本控制中移除 `./dist` 目录。 + + +## 3.9.1 (2021-07-27) + +- `Fix(Log)` 修正命令行输入框样式。 (PR #437 by @FredZeng) +- `Fix(Storage)` 修复由 `globalThis` 引起的报错。 (issue #438 #439) +- `Chore` 修复由 Svelte 引起的 `const` `let` 报错。 (PR #440 by @dellyoung) + + +## 3.9.0 (2021-07-16) + +- `Feat(Log)` 显示 audio 资源加载失败的报错。 (PR #419 by @zimv) +- `Feat(Storage)` 重写 Storage 面板,现支持添加/编辑/删除内容。 (PR #429 by @ManiaciaChao) +- `Feat(Plugin)` 新增第三方插件 [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole)。 (by @vadxq) +- `Refactor(Core)` 开始使用 Svelte 作为模板引擎。 (PR #429 by @ManiaciaChao) +- `Refactor(Core|Element)` 转换 core 文件及 Element 面板为 `.ts` 文件。 +- `Fix(Log)` 修复打印无 `toJSON` 方法的对象(如 `Vue` 实例)时会报错的问题。 (PR #431 by @sillyhong) +- `Fix(Network)` 修复不以 `http` 开头的 url 会报错的问题。 (issue #420) +- `Fix(Network)` 修复使用 `Request` 作为 `Fetch` 参数时的报错。 (PR #428 by @tatsunoneko) +- `Fix(Network)` 当 `POST` 数据为一个 JSON 字符串时亦以 key-value 型键值表来显示数据。 (issue #425) +- `style` 修正 LESS 数学运算符。 (PR #426 by @ManiaciaChao) +- `Chore` 修复执行 `yarn serve` 的报错。 (issue #424) + + +## 3.8.1 (2021-06-24) + +- `Fix(Log)` 不再合并包含 object 或 array 的重复日志,以避免合并结构相同但取值不同的对象。 +- `Fix(Log)` 修复日志过滤器(Filter)在点选日志类型 tab 后不生效的问题。 +- `Fix(Network)` 修复 url 以 `//` 开头时产生的错误。 (PR #414 by @kooritea) +- `Chore` 移除 babel-loader 的 `exclude: node_modules` 选项以避免第三方库的兼容性问题。 (issue #404, #407) +- `Refactor(Log)` 转换 Log 和 System 面板为 `.ts` 文件。 + + +## 3.8.0 (2021-06-23) + +- `Feat(Log)` 新增显示资源(image/video/link/script)加载失败报错。 (PR #411 by @zimv) +- `Chore` 新增 Webpack 配置 `target: ['web', 'es5']` 以避免兼容性问题。 (issue #404) +- `Fix(Network)` 修复 `new URL('x', undefined)` 第二参数为 `undefined` 时的报错。 (PR #409 by @moonkop) + + +## 3.7.0 (2021-05-27) + +- `Feat(Storage)` 对于大体积 value 先展示预览值,以避免堵塞渲染。 (issue #300) +- `Feat(Storage)` 新增复制按钮、删除按钮。 +- `Feat(Core)` 当初始参数 `theme` 为空时,跟随系统默认主题色。 +- `Refactpr(Storage)` 转换 Storage 面板为 `.ts` 文件。 +- `Fix(Network)` 使用 `forEach` 而非 `.entries()` 来遍历 `headers` 以避免一些兼容性问题。 (issue #404) +- `Fix(Network)` 修复 `Content-Type` 为空时导致的报错。 + + +## 3.6.1 (2021-05-24) + +- `Fix(Network)` 修复 "Invalid base URL" 错误。 (PR #402) + + +## 3.6.0 (2021-05-21) + +- `Feat(Log)` 新增输出 `unhandledrejection` 类型日志。 (PR #389 by @zimv) +- `Feat(Network)` 新增支持展示 `navigator.sendBeacon()` 的网络请求。 (PR #383 by @cola119) +- `Feat(Network)` 新增在 "General" 栏目展示 "Type" (Request Type) 字段,取值包括 `xhr|fetch|ping`。 +- `Refactpr(Core)` 开始使用 TypeScript 重构代码。现在 Network 面板首先转成了 `.ts` 文件。 +- `Fix(Network)` 修复移除 Network 面板后没有恢复原生 `window.fetch()` 方法的问题。 +- `Fix(Storage)` 修复清除所有 cookie 时无法完全删除非顶级域名下的 cookie 的问题。 (issue #398) +- `Fix(Element)` 修复当 element 的 `attributes` 或 `characterData` 变化时 element 被嵌套渲染的问题。 (issue #399) + + +## 3.5.2 (2021-05-13) + +- `Chore` 升级到 Webpack5,并升级所有 NPM packages 到最新版本。 +- `Fix(Core)` 修复因 `selection` 选区引起的点击事件无效问题。 +- `Fix(Log)` 当日志数量达到 `maxLogNumber` 上限时清空对应的 `cachedLogs`。 +- `Fix(Log)` 修复 XSS 漏洞。 + + +## 3.5.1 (2021-05-07) + +- `Chore(Babel)` 修复由 `catch` 写法引起的 babel-loader 构建问题。 (PR #392 by @myl0204) +- `Fix(Network)` 修复语法笔误。 (PR #388 by @xovel) + + +## 3.5.0 (2021-04-28) + +- `Feature(Log)` 新增复制单行日志的能力。 (by @akai) +- `Feature(Plugin)` 新第三方插件 [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools)。 (by @Zippowxk) +- `Perf(System)` 将 "System" 字段改名为 "Client",并新增 `MacOS` 系统版本号。 +- `Fix(Log)` 使用自然排序来排序 object 和 array 的键值。 (issue #372) +- `Fix(Network)` 修复当 `contentType` 为 `text/html` 时潜在的 JSON 错误。 (by @zimv) +- `Fix(Network)` 修复 `disableLogScrolling` 参数在 Network 面板中不生效的问题。 (issue #282, #379) + + +## v3.4.1 (2021-04-09) + +- `Feature(Core)` 新增 `setSwitchPosition(x, y)` 方法以更新开关按钮的位置,见 [Public Properties & Methods](./doc/public_properties_methods_CN.md)。 +- `Perf(Core)` 添加 `Symbol` polyfill。(issue #361) +- `Fix(Core)` 修复 `setOption()` 后主题样式未及时更新的问题。 +- `Fix(Core)` 删除 `transitionEnd` 以避免一些兼容性问题。(issue #364) +- `Fix(Network)` 修复 `fetch` 的 `init` 未考虑为可选参数的问题。(issue #363, #365) +- `Fix(Network)` 修复 XSS 漏洞。 + + +## v3.4.0 (2021-01-14) + +- `Feature(Core)` 支持暗黑模式,配置项 `vConsole.option.theme` 见 [Public Properties & Methods](./doc/public_properties_methods_CN.md)。(by @progrape) +- `Feature(Core)` 开关按钮加入拖拽安全区,避免遮挡全面屏手机底部操作区。(issue #353) +- `Feature(Log)` 指令输入框键入括号且自动补全括号后,光标将自动移动到括号内部。(issue #293) +- `Feature(System)` 增加显示 `Location` 信息。(issue #343) +- `Feature(Network)`支持 `fetch` 网络记录。(by @weiqian93) +- `Feature(Network)` 支持显示 Request Headers。 +- `Feature(Network)` 仅显示简短网址,URL 参数将显示在详细信息中。(issue #291) +- `Feature(Plugin)` 新第三方插件 [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats)。(by @smackgg) +- `Fix(Core)` 修复点击开关按钮后位置会被重置的问题。 +- `Fix(Core)` 修复 `document.documentElement.offsetHeight|offsetWidth` 在新浏览器中不够准确的问题。(by @littlee) +- `Fix(Core)` 阻止用户事件派发到 readOnly 或 disabled 的 element 上。(by @norux) +- `Fix(Core)` 修复 nonce 查找不准确的问题。(by @sunderls) +- `Fix(Core)` 修复一个安全问题。(#345 by @QiAnXinCodeSafe) +- `Fix(Core)` 屏蔽 "webkitStorageInfo deprecation" 告警。 +- `Perf(Core)` 删除 `Symbol`、`Array.from` polyfill。(issue #325, #275) +- `Perf(Core)` 日志中显示对象内所有的 enumerable 和 unenumerable 属性。 (issue #327) +- `Chore` 更新 Webpack DevServer 的配置项。(by @QinZhen001) + + +## v3.3.4 (2019-08-19) + +- `Feature(Log)` 增加 `%c` 以支持自定义日志样式,详情见 [使用教程](./doc/tutorial_CN.md)。 +- `Feature(Plugin)` 增加 `VConsole.VConsoleLogPlugin` 等 `VConsole.VConsole*` 内置插件在 `VConsole` class 上的挂载。 +- `Fix(Core)` 修复若干小问题。(#267 by @Molunerfinn, #272 by @domom) +- `Fix(Storage)` 修复当 cookie `path=/` 或设置了 `domain` 时删除失败的问题。(#264 by @qianxinfeng) +- `Perf(Core)` 在 `window DOMContentLoaded` 而不是 `window load` 时显示 vConsole。 + + +## v3.3.2 (2019-07-04) + +- `Feature(Core)` 增加 TypeScript 声明文件。(by @jas0ncn) +- `Fix(Core)` 修复开关按钮拖动后位置不对的问题。(by @rexschuang) +- `Fix(Core)` 修复若干小问题。(by @stenders) +- `Fix(Log)` 不在列表底部时避免自动滚动。(by @ele828) + + +## v3.3.0 (2019-02-02) + +- `Feature(Log)` 新增自动合并相同日志的能力。频繁输出相同日志时不再会被刷屏。 +- `Fix(Log)` 修复格式化日志(如 `console.log('[foo]', 'bar')`)无法显示到 Log 面板的问题。 + + +## v3.2.2 (2019-01-17) + +- `Feature` 新增控制台输入提示。 (by @65147400) +- `Feature` 支持 SessionStorage。 (by @hkc452) +- `Fix` 修复 `JSON.stringify` 函数被错误地改写的问题。 +- `Fix` 修复清空日志时没有重置 `logNumber` 的问题。 (by @liuyuekeng) +- `Fix` 修复 Network 面板中 HTML 标签未被 encode 的问题。 (by @mokang) +- `Fix` 修复 Storage 面板 decode 内容时可能会导致崩溃的问题。 (by @wolfsilver) +- `Fix` 修复 CSP 签名获取失败问题。 (by @scotthuang) +- `Perf` 增加底部安全区域,适配 iPhone X 等全面屏。 (by @dingyi1993) + + +## v3.2.0 (2018-04-10) + +- `Feature` 支持 `console.time()` 及 `console.timeEnd()`。 +- `Feature` 新增 `disableLogScrolling` 配置项(`vConsole.option`),用于禁止新日志引起的自动滚动到底部。 +- `Fix` 修复初始化后立即调用 `setOption` 引起的错误。 +- `Fix` 修复 cookies 显示错误的问题。 +- `Fix` 修复 "Uncaught InvalidStateError" 错误。 (by @fireyy) + + +## v3.1.0 (2017-12-27) + +- `Feature` 新增 `vConsole.showSwitch()` 及 `vConsole.hideSwitch()` 方法,请查阅[公共属性及方法](./doc/public_properties_methods_CN.md)。 +- `Feature` 新增 `onReady` 及 `onClearLog` 回调方法,位于 `vConsole.option`。 +- `Feature` 调用 `console.clear` 时将自动清除面板中的日志。 +- `Fix` 修复 Windows 下构建引起的 `\r` 转义问题。 +- `Fix` 修复 iOS8 或其它低版本系统中的 `Symbol` 错误。 + + +## v3.0.0 (2017-09-27) + +基础: + +- `Feature` 需要手动初始化 vConsole:`var vConsole = new VConsole(option)`。 +- `Feature` 新增 `vConsole.option` 配置项,配置项可在实例化时传入,也可通过 `vConsole.setOption(key, value)` 更新。 +- `Feature` 支持自定义按需加载内置插件,配置项为 `option` 里的 `defaultPlugins` 字段。 +- `Perf` 支持 CSP 规则 `unsafe-eval` 和 `unsafe-inline`。 +- `Perf` 优化 `initial-scale < 1` 时的 `font-size`。 + +Log 插件: + +- `Feature` 支持 `maxLogNumber` 配置项,以控制面板内展示的最多日志数量。 +- `Fix` 修复打印大型复杂 object 时引起的崩溃问题。 +- `Perf` 只有 `console.log('[system]', xxx)` 这种将 `[system]` 放在第一位参数的写法,才会输出到 System 面板。因此可以规避 `[foo] bar` 这类格式无法正确打印到 Log 面板的问题。 + +Network 插件: + +- `Feature` 新增 `Query String Parameters` 和 `Form Data` 两栏,以展示 GET 和 POST 的参数。 +- `Perf` 自动格式化展示 JSON 类型的回包。 +- `Fix` 修复 status 一直为 "Pending" 的问题。这种问题一般是引入了第三方的 HTTP 库而引起的。 + + +插件模块: + +- `Feature` 在 `init` 事件触发时/之后,插件实例内可以通过 `this.vConsole` 来获取到 vConsole 的对象实例。 +- `Feature` 新增 `updateOption` 事件,以监测 `vConsole.option` 的更新。 +- `Feature` 新增 Element 面板作为默认的内置插件。 +- `Feature` 新增 Storage 面板作为默认的内置插件。 + + + +## v2.x.x + +## v2.5.2 (2016-12-27) + +- `Fix` 捕获执行自定义命令行时发生的错误。 + + +## v2.5.1 (2016-10-18) + +- `Fix` 修复一些情况下的 `scrollHeight` 错误。 +- `Fix` 修正 iOS 8 下的 flex 布局问题。 +- `Perf` 性能增强。 + + +## v2.5.0 (2016-09-28) + +- `Feature` 新增 `vConsole.removePlugin()` 方法,请查阅[公共属性及方法](./doc/public_properties_methods_CN.md)。 +- `Feature` 新增 `remove` 插件事件,请查阅[插件:Event 事件列表](./doc/plugin_event_list_CN.md)。 +- `Perf` 页面不会随着 vConsole 的滚动而滚动。 +- `Fix` 修正 `window.onerror()` 内的函数调用笔误。 + + +## v2.4.0 (2016-08-31) + +- `Feature` 新增 `addTopBar` 插件事件,请查阅[插件:Event 事件列表](./doc/plugin_event_list_CN.md)。 +- `Feature` 新增日志类型筛选功能。 +- `Perf` 若 log 列表不处于最底部,当打印新 log 时,列表则不会自动滚动到最新 log 处。 +- `Perf` 优化了一些 UI 样式问题。 +- `Fix` 修正打印 object 类型 log 时的 XSS 问题。 +- `Fix` 在某些特殊情况中,开关按钮将不会再被定位出页面外。 + + +## v2.3.1 (2016-08-16) + +- `Fix` 删除 V2.3.0 中的 `tap` 事件,恢复为 `click` 事件(依旧支持快速响应),以避免冲突。 +- `Perf` 删除 System tab 中的 `now` 项目并新增 `navigationStart` 时间戳。 + + +## v2.3.0 (2016-08-15) + +- `Feature` 支持逐级展开 Object 或 Array 的子元素。 +- `Feature` 支持显示 Object 内的不可枚举属性。 +- `Perf` 支持在 vConsole 的 DOM 容器内使用 `tap` 事件以代替 `click` 事件。 + + +## v2.2.1 (2016-08-08) + +- `Feature` 在 System 面板中添加完整的 performance timing 测速点。 +- `Perf` 在 README 中新增第三方插件列表。 + + +## v2.2.0 (2016-07-13) + +- `Feature` 新增 `vConsole.version` 属性,以获取当前版本号。 +- `Feature` 新增 `XMLHttpRequest` 的 `xhr._noVConsole` 属性,以控制一个网络请求是否显示在 Network tab 中。 + + +## v2.1.0 (2016-06-29) + +- `Feature` 新增 `vConsole.tool` 及 `vConsole.$` 辅助函数,请查阅[辅助函数](./doc/helper_functions_CN.md)。 +- `Feature` 公开部分 vConsole 的属性及方法,请查阅[公共属性及方法](./doc/public_properties_methods_CN.md)。 +- `Fix` 修复 `window.onerror()` 中 `error` 可能为空而导致堆栈读取错误的问题。 +- `Fix` 修复当 `xhr.readyState < 4` 时读取 `xhr.status` 可能导致错误的问题。 + + +## v2.0.1 (2016-06-16) + +- `Fix` 修复 vConsole 可能无法运行在 X5 内核浏览器的问题。 +- `Fix` 修复某些设备不支持 `localStorage` 的问题。 +- `Fix` 修复布尔值在 Log 面板展示不正确的问题。 +- `Perf` 优化在 Android 设备下的 UI 表现。 + + +## v2.0.0 (2016-06-05) + +- `Feature` 完全重构,支持自定义插件,请查阅[插件:入门](./doc/plugin_getting_started_CN.md)。 +- `Feature` 支持手动输入、执行命令行。 +- `Feature` 支持打印循环引用的对象。 +- `Feature` 支持在 Network 面板查看请求的 headers 和 response。 +- `Perf` 开关按钮不会再被拖出屏幕外部。 +- `Perf` 自动在 System 面板打印 User Agent。 +- `Perf` 打印 log 时会显示时间。 +- `Fix` 修复 getDate() 返回错误时间的问题。 +- `Fix` 修复同步 AJAX 变异步 AJAX 的问题。 + + + +# v1.x.x + +## v1.3.0 (2016-05-20) + +- `Feature` 支持拖拽右下角开关。 +- `Fix` 修复异步加载导致初始化失败的问题。 + +## v1.2.1 (2016-05-16) + +- `Fix` 修复发送 POST 请求时丢失数据的问题。 + + +## v1.2.0 (2016-05-11) + +- `Feature` 新增网络面板,可展示 AJAX 请求。 +- `Feature` 废弃 `vConsole.ready()` 方法。 +- `Perf` 支持 Object/Array 结构化展示,不再以 JSON 字符串输出。 +- `Perf` 新增英文 README 及 CHANGELOG 文档。 +- `Perf` 优化 UI 体验。 + + +## v1.1.0 (2016-05-06) + +- `Feature` 支持 `window.onerror()` 的异常信息捕获。 +- `Feature` 支持 `[default|system|...]` 日志格式,将 log 输出到指定面板。 + + +## v1.0.5 (2016-04-29) + +- `Fix` 修复 webpack 编译失败的问题。 +- `Fix` 修复打印 HTML 字符串可能导致的 XSS 问题。 + + +## v1.0.4 (2016-04-28) + +- `Fix` 修复 `package.json` 的 main 路径。 +- `Perf` 优化 example 的 demo 页面。 + + +## v1.0.2 (2016-04-27) + +- 初始发布。 \ No newline at end of file diff --git a/node_modules/vconsole/LICENSE b/node_modules/vconsole/LICENSE new file mode 100644 index 0000000..735af59 --- /dev/null +++ b/node_modules/vconsole/LICENSE @@ -0,0 +1,9 @@ +Tencent is pleased to support the open source community by making vConsole available. + +Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. + +If you have downloaded a copy of the vConsole binary from Tencent, please note that the vConsole binary is licensed under the MIT License. + +If you have downloaded a copy of the vConsole source code from Tencent, please note that vConsole source code is licensed under the MIT License, except for the third-party components listed below which are subject to different license terms. Your integration of vConsole into your own projects may require compliance with the MIT License, as well as the other licenses applicable to the third-party components included within vConsole. + +A copy of the MIT License is included in this file. \ No newline at end of file diff --git a/node_modules/vconsole/README.md b/node_modules/vconsole/README.md new file mode 100644 index 0000000..421605f --- /dev/null +++ b/node_modules/vconsole/README.md @@ -0,0 +1,196 @@ +English | [简体中文](./README_CN.md) + +vConsole +=== + +A lightweight, extendable front-end developer tool for mobile web page. + +vConsole is framework-free, you can use it in Vue or React or any other framework application. + +Now vConsole is the official debugging tool for WeChat Miniprograms. + +--- + +## Features + +- Logs: `console.log|info|error|...` +- Network: `XMLHttpRequest`, `Fetch`, `sendBeacon` +- Element: HTML elements tree +- Storage: `Cookies`, `LocalStorage`, `SessionStorage` +- Execute JS command manually +- Custom plugins + +For details, please see the screenshots below. + +--- + +## Release Notes + +Latest version: [![npm version](https://img.shields.io/npm/v/vconsole/latest.svg)](https://www.npmjs.com/package/vconsole) + +Detailed release notes for each version are available on [Changelog](./CHANGELOG.md). + +--- + +## Guide + +See [Tutorial](./doc/tutorial.md) for more usage details. + +For installation, there are 2 primary ways of adding vConsole to a project: + +#### Method 1: Using npm (Recommended) + +```bash +$ npm install vconsole +``` + +```javascript +import VConsole from 'vconsole'; + +const vConsole = new VConsole(); +// or init with options +const vConsole = new VConsole({ theme: 'dark' }); + +// call `console` methods as usual +console.log('Hello world'); + +// remove it when you finish debugging +vConsole.destroy(); +``` + +#### Method 2: Using CDN in HTML: + +```html + + +``` + +Available CDN: + +- https://unpkg.com/vconsole@latest/dist/vconsole.min.js +- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js + +--- + +## Preview + +[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html) + +![](./doc/screenshot/qrcode.png) + +--- + +## Screenshots + +### Overview + +
+ Light theme + +![](./doc/screenshot/overview_light.jpg) +
+ +
+ Dark theme + +![](./doc/screenshot/overview_dark.jpg) +
+ +### Log Panel + +
+ Log styling + +![](./doc/screenshot/plugin_log_types.jpg) +
+ +
+ Command line + +![](./doc/screenshot/plugin_log_command.jpg) +
+ +### System Panel + +
+ Performance info + +![](./doc/screenshot/plugin_system.jpg) +
+ +
+ Output logs to different panel + +```javascript +console.log('output to Log panel.') +console.log('[system]', 'output to System panel.') +``` +
+ +### Network Panel + +
+ Request details + +![](./doc/screenshot/plugin_network.jpg) +
+ +### Element Panel + +
+ Realtime HTML elements structure + +![](./doc/screenshot/plugin_element.jpg) +
+ +### Storage Panel + +
+ Add, edit, delete or copy Cookies / LocalStorage / SessionStorage + +![](./doc/screenshot/plugin_storage.jpg) +
+ +--- + +## Documentation + +vConsole: + + - [Tutorial](./doc/tutorial.md) + - [Public Properties & Methods](./doc/public_properties_methods.md) + - [Builtin Plugin: Properties & Methods](./doc/plugin_properties_methods.md) + +Custom Plugin: + + - [Plugin: Getting Started](./doc/plugin_getting_started.md) + - [Plugin: Building a Plugin](./doc/plugin_building_a_plugin.md) + - [Plugin: Event List](./doc/plugin_event_list.md) + +--- + +## Third-party Plugins + + - [vConsole-sources](https://github.com/WechatFE/vConsole-sources) + - [vconsole-webpack-plugin](https://github.com/diamont1001/vconsole-webpack-plugin) + - [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats) + - [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools) + - [vconsole-outputlog-plugin](https://github.com/sunlanda/vconsole-outputlog-plugin) + - [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole) + +--- + +## Feedback + +QQ Group: 497430533 + +![](./doc/screenshot/qq_group.png) + +--- + +## License + +[The MIT License](./LICENSE) diff --git a/node_modules/vconsole/README_CN.md b/node_modules/vconsole/README_CN.md new file mode 100644 index 0000000..01fdddb --- /dev/null +++ b/node_modules/vconsole/README_CN.md @@ -0,0 +1,199 @@ +[English](./README.md) | 简体中文 + +vConsole +=== + +一个轻量、可拓展、针对手机网页的前端开发者调试面板。 + +vConsole 是框架无关的,可以在 Vue、React 或其他任何框架中使用。 + +现在 vConsole 是微信小程序的官方调试工具。 + +--- + +## 功能特性 + +- 日志(Logs): `console.log|info|error|...` +- 网络(Network): `XMLHttpRequest`, `Fetch`, `sendBeacon` +- 节点(Element): HTML 节点树 +- 存储(Storage): `Cookies`, `LocalStorage`, `SessionStorage` +- 手动执行 JS 命令行 +- 自定义插件 + +详情可参考下方的截图。 + +--- + +## 版本说明 + +最新版本: [![npm version](https://img.shields.io/npm/v/vconsole/latest.svg)](https://www.npmjs.com/package/vconsole) + +每个版本的详细说明请参阅 [Changelog](./CHANGELOG_CN.md)。 + +--- + +## 上手 + +详细使用方法请参阅[使用教程](./doc/tutorial_CN.md)。 + +将 vConsole 添加到项目中主要有以下方式: + +#### 方法一:使用 npm(推荐) + +```bash +$ npm install vconsole +``` + +Import 并初始化后,即可使用 `console.log` 功能,如 Chrome devtools 上一样。 + +```javascript +import VConsole from 'vconsole'; + +const vConsole = new VConsole(); +// 或者使用配置参数来初始化,详情见文档 +const vConsole = new VConsole({ theme: 'dark' }); + +// 接下来即可照常使用 `console` 等方法 +console.log('Hello world'); + +// 结束调试后,可移除掉 +vConsole.destroy(); +``` + +#### 方法二:使用 CDN 直接插入到 HTML + +```html + + +``` + +可用的 CDN: + +- https://unpkg.com/vconsole@latest/dist/vconsole.min.js +- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js + +--- + +## 手机预览 + +[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html) + +![](./doc/screenshot/qrcode.png) + +--- + +## 截图 + +### 概览 + +
+ 浅色主题 + +![](./doc/screenshot/overview_light.jpg) +
+ +
+ 深色主题 + +![](./doc/screenshot/overview_dark.jpg) +
+ +### Log 面板 + +
+ Log 样式 + +![](./doc/screenshot/plugin_log_types.jpg) +
+ +
+ 命令行 + +![](./doc/screenshot/plugin_log_command.jpg) +
+ +### System 面板 + +
+ Performance 信息 + +![](./doc/screenshot/plugin_system.jpg) +
+ +
+ 输入日志到不同的 log 面板 + +```javascript +console.log('output to Log panel.') +console.log('[system]', 'output to System panel.') +``` +
+ +### Network 面板 + +
+ 请求、回包的详情 + +![](./doc/screenshot/plugin_network.jpg) +
+ +### Element 面板 + +
+ 查看 HTML 对象结构 + +![](./doc/screenshot/plugin_element.jpg) +
+ +### Storage 面板 + +
+ 添加、编辑、删除、复制 Cookies / LocalStorage / SessionStorage + +![](./doc/screenshot/plugin_storage.jpg) +
+ +--- + +## 文档 + + +vConsole 本体: + + - [使用教程](./doc/tutorial_CN.md) + - [公共属性及方法](./doc/public_properties_methods_CN.md) + - [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md) + +自定义插件: + + - [插件:入门](./doc/plugin_getting_started_CN.md) + - [插件:编写插件](./doc/plugin_building_a_plugin_CN.md) + - [插件:Event 事件列表](./doc/plugin_event_list_CN.md) + +--- + +## 第三方插件列表 + + - [vConsole-sources](https://github.com/WechatFE/vConsole-sources) + - [vconsole-webpack-plugin](https://github.com/diamont1001/vconsole-webpack-plugin) + - [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats) + - [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools) + - [vconsole-outputlog-plugin](https://github.com/sunlanda/vconsole-outputlog-plugin) + - [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole) + +--- + +## 交流反馈 + +QQ 群:497430533 + +![](./doc/screenshot/qq_group.png) + +--- + +## License + +[The MIT License](./LICENSE) diff --git a/node_modules/vconsole/build/vendor.d.ts b/node_modules/vconsole/build/vendor.d.ts new file mode 100644 index 0000000..9b94861 --- /dev/null +++ b/node_modules/vconsole/build/vendor.d.ts @@ -0,0 +1,24 @@ +declare module 'vendor/core-js/stable/symbol' { +} + +declare module 'vendor/mutation-observer' { + export class MutationObserver { + } +} + +declare module 'vendor/svelte' { + export class SvelteComponent { + } +} + +declare module 'vendor/svelte/store' { + export interface Subscriber { + } + export interface Unsubscriber { + } + export interface Updater { + } + export interface Writable { + } +} + diff --git a/node_modules/vconsole/dist/vconsole.min.d.ts b/node_modules/vconsole/dist/vconsole.min.d.ts new file mode 100644 index 0000000..7d60069 --- /dev/null +++ b/node_modules/vconsole/dist/vconsole.min.d.ts @@ -0,0 +1,1237 @@ +/// + +declare module "core/options.interface" { + export interface VConsoleLogOptions { + maxLogNumber?: number; + showTimestamps?: boolean; + } + export interface VConsoleNetworkOptions { + maxNetworkNumber?: number; + ignoreUrlRegExp?: RegExp; + } + export type VConsoleAvailableStorage = 'cookies' | 'localStorage' | 'sessionStorage' | 'wxStorage'; + export interface VConsoleStorageOptions { + defaultStorages?: VConsoleAvailableStorage[]; + } + export interface VConsoleOptions { + target?: string | HTMLElement; + defaultPlugins?: ('system' | 'network' | 'element' | 'storage')[]; + theme?: '' | 'dark' | 'light'; + disableLogScrolling?: boolean; + pluginOrder?: string[]; + onReady?: () => void; + log?: VConsoleLogOptions; + network?: VConsoleNetworkOptions; + storage?: VConsoleStorageOptions; + /** + * @deprecated Since v3.12.0, use `log.maxLogNumber`. + */ + maxLogNumber?: number; + /** + * @deprecated Since v3.12.0, use `network.maxNetworkNumber`. + */ + maxNetworkNumber?: number; + /** + * @deprecated Since v3.12.0. + */ + onClearLog?: () => void; + } +} +declare module "lib/tool" { + /** + * Utility Functions + */ + /** + * get formatted date by timestamp + */ + export function getDate(time: number): { + time: number; + year: number; + month: string | number; + day: string | number; + hour: string | number; + minute: string | number; + second: string | number; + millisecond: string | number; + }; + /** + * Determine whether a value is of a specific type. + */ + export function isNumber(value: any): boolean; + export function isBigInt(value: any): boolean; + export function isString(value: any): boolean; + export function isArray(value: any): boolean; + export function isBoolean(value: any): boolean; + export function isUndefined(value: any): boolean; + export function isNull(value: any): boolean; + export function isSymbol(value: any): boolean; + export function isObject(value: any): boolean; + export function isFunction(value: any): boolean; + export function isElement(value: any): boolean; + export function isWindow(value: any): boolean; + export function isIterable(value: any): boolean; + /** + * Get the prototype name of an object + */ + export function getPrototypeName(value: any): string; + /** + * Get an object's constructor name. + */ + export function getObjName(obj: any): string; + /** + * check whether an object is plain (using {}) + * @param object obj + * @return boolean + */ + export function isPlainObject(obj: any): boolean; + /** + * Escape HTML to XSS-safe text. + */ + export function htmlEncode(text: string | number): string; + /** + * Convert a text's invisible characters to visible characters. + */ + export function getVisibleText(text: string): string; + /** + * A safe `JSON.stringify` method. + */ + export function safeJSONStringify(obj: any, opt?: { + maxDepth?: number; + keyMaxLen?: number; + pretty?: boolean; + standardJSON?: boolean; + }): string; + /** + * Call original `JSON.stringify` and catch unknown exceptions. + */ + export function JSONStringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; + /** + * Get the bytes of a string. + * @example 'a' = 1 + * @example '好' = 3 + */ + export function getStringBytes(str: string): number; + /** + * Convert bytes number to 'MB' or 'KB' string. + */ + export function getBytesText(bytes: number): string; + /** + * Get a string within a limited max length. + * The byte size of the string will be appended to the string when reached the limit. + * @return 'some string...(3.1 MB)' + */ + export function getStringWithinLength(str: string, maxLen: number): string; + /** + * Sore an `string[]` by string. + */ + export function sortArray(arr: string[]): string[]; + /** + * Get enumerable keys of an object or array. + */ + export function getEnumerableKeys(obj: any): string[]; + /** + * Get enumerable and non-enumerable keys of an object or array. + */ + export function getEnumerableAndNonEnumerableKeys(obj: any): string[]; + /** + * Get non-enumerable keys of an object or array. + */ + export function getNonEnumerableKeys(obj: any): string[]; + export function getSymbolKeys(obj: any): symbol[]; + /** + * localStorage methods + */ + export function setStorage(key: string, value: string): void; + export function getStorage(key: string): string; + /** + * Generate a 6-digit unique string with prefix `"__vc_" + ${prefix}` + */ + export function getUniqueID(prefix?: string): string; + /** + * Determine whether it is inside a WeChat Miniprogram. + */ + export function isWxEnv(): boolean; + /** + * Call a WeChat Miniprogram method. E.g: `wx.getStorageSync()`. + */ + export function callWx(method: string, ...args: any[]): any; +} +declare module "lib/query" { + const $: { + /** + * get single element + * @public + */ + one: (selector: string, contextElement?: Element | Document) => HTMLElement; + /** + * get multiple elements + * @public + */ + all: (selector: string, contextElement?: Element | Document) => HTMLElement[]; + /** + * add className(s) to an or multiple element(s) + * @public + */ + addClass: ($el: Element | Element[], className: string) => void; + /** + * remove className(s) from an or multiple element(s) + * @public + */ + removeClass: ($el: Element | Element[], className: string) => void; + /** + * see whether an element contains a className + * @public + */ + hasClass: ($el: Element, className: string) => boolean; + /** + * bind an event to element(s) + * @public + */ + bind: ($el: Element | Element[], eventType: any, fn: any, useCapture?: boolean) => void; + /** + * delegate an event to a parent element + * @public + * @param $el parent element + * @param eventType name of the event + * @param selector target's selector + * @param fn callback function + */ + delegate: ($el: Element, eventType: string, selector: string, fn: (event: Event, $target: HTMLElement) => void) => void; + /** + * Remove all child elements of an element. + */ + removeChildren($el: Element): Element; + }; + /** + * export + */ + export default $; +} +declare module "lib/model" { + type AConstructorTypeOf = new (...args: U) => T; + export class VConsoleModel { + static singleton: { + [ctorName: string]: VConsoleModel; + }; + protected _onDataUpdateCallbacks: Function[]; + /** + * Get a singleton of a model. + */ + static getSingleton(ctor: AConstructorTypeOf, ctorName: string): T; + } + export default VConsoleModel; +} +declare module "lib/pluginExporter" { + import type { VConsoleModel } from "lib/model"; + export class VConsolePluginExporter { + protected model: VConsoleModel; + protected pluginId: string; + constructor(pluginId: string); + destroy(): void; + } +} +declare module "lib/plugin" { + import { VConsolePluginExporter } from "lib/pluginExporter"; + import type { VConsole } from "core/core"; + export type IVConsolePluginEvent = (data?: any) => void; + export type IVConsolePluginEventName = 'init' | 'renderTab' | 'addTopBar' | 'addTool' | 'ready' | 'remove' | 'updateOption' | 'showConsole' | 'hideConsole' | 'show' | 'hide'; + export interface IVConsoleTopbarOptions { + name: string; + className: string; + actived?: boolean; + data?: { + [key: string]: string; + }; + onClick?: (e: Event, data?: any) => any; + } + export interface IVConsoleToolbarOptions { + name: string; + global?: boolean; + data?: { + [key: string]: string; + }; + onClick?: (e: Event, data?: any) => any; + } + export interface IVConsoleTabOptions { + fixedHeight?: boolean; + } + /** + * vConsole Plugin Base Class + */ + export class VConsolePlugin { + isReady: boolean; + eventMap: Map; + exporter?: VConsolePluginExporter; + protected _id: string; + protected _name: string; + protected _vConsole: VConsole; + constructor(...args: any[]); + get id(): string; + set id(value: string); + get name(): string; + set name(value: string); + get vConsole(): VConsole; + set vConsole(value: VConsole); + /** + * Register an event + * @public + * @param IVConsolePluginEventName + * @param IVConsolePluginEvent + */ + on(eventName: IVConsolePluginEventName, callback: IVConsolePluginEvent): this; + onRemove(): void; + /** + * Trigger an event. + */ + trigger(eventName: IVConsolePluginEventName, data?: any): this; + protected bindExporter(): void; + protected unbindExporter(): void; + protected getUniqueID(prefix?: string): string; + } + export default VConsolePlugin; +} +declare module "lib/sveltePlugin" { + import VConsolePlugin from "lib/plugin"; + import { SvelteComponent } from "vendor/svelte"; + export class VConsoleSveltePlugin extends VConsolePlugin { + CompClass: typeof SvelteComponent; + compInstance?: SvelteComponent; + initialProps: T; + constructor(id: string, name: string, CompClass: typeof SvelteComponent, initialProps: T); + onReady(): void; + onRenderTab(callback: any): void; + onRemove(): void; + } +} +declare module "core/core.model" { + export const contentStore: { + subscribe: (this: void, run: import("vendor/svelte/store").Subscriber<{ + updateTime: number; + }>, invalidate?: (value?: { + updateTime: number; + }) => void) => import("vendor/svelte/store").Unsubscriber; + set: (this: void, value: { + updateTime: number; + }) => void; + update: (this: void, updater: import("vendor/svelte/store").Updater<{ + updateTime: number; + }>) => void; + updateTime: () => void; + }; +} +declare module "log/logTool" { + import type { IVConsoleLog, IVConsoleLogData } from "log/log.model"; + /** + * Get a value's text content and its type. + */ + export const getValueTextAndType: (val: any, wrapString?: boolean) => { + text: any; + valueType: string; + }; + /** + * A simple parser to get `[` or `]` information. + */ + export const getLastIdentifier: (text: string) => { + front: { + text: string; + pos: number; + before: string; + after: string; + }; + back: { + text: string; + pos: number; + before: string; + after: string; + }; + }; + export const isMatchedFilterText: (log: IVConsoleLog, filterText: string) => boolean; + /** + * Styling log output (`%c`), or string substitutions (`%s`, `%d`, `%o`). + * Apply to the first log only. + */ + export const getLogDatasWithFormatting: (origDatas: any[]) => IVConsoleLogData[]; + /** + * An empty class for rendering views. + */ + export class VConsoleUninvocatableObject { + } +} +declare module "log/log.store" { + import type { Writable } from "vendor/svelte/store"; + import type { IVConsoleLog } from "log/log.model"; + export interface IVConsoleLogStore { + logList: IVConsoleLog[]; + } + /** + * Log Store Factory + */ + export class VConsoleLogStore { + static storeMap: { + [pluginId: string]: Writable; + }; + /** + * Create a store. + */ + static create(pluginId: string): Writable; + /** + * Delete a store. + */ + static delete(pluginId: string): void; + /** + * Get a store by pluginId, + */ + static get(pluginId: string): Writable; + /** + * Get a store's raw data. + */ + static getRaw(pluginId: string): IVConsoleLogStore; + /** + * Get all stores. + */ + static getAll(): { + [pluginId: string]: Writable; + }; + } +} +declare module "log/log.model" { + import { VConsoleModel } from "lib/model"; + /********************************** + * Interfaces + **********************************/ + export type IConsoleLogMethod = 'log' | 'info' | 'debug' | 'warn' | 'error'; + export interface IVConsoleLogData { + origData: any; + style?: string; + } + export interface IVConsoleLog { + _id: string; + type: IConsoleLogMethod; + cmdType?: 'input' | 'output'; + repeated: number; + toggle: Record; + date: number; + data: IVConsoleLogData[]; + groupLevel: number; + groupLabel?: symbol; + groupHeader?: 0 | 1 | 2; + groupCollapsed?: boolean; + } + export type IVConsoleLogListMap = { + [pluginId: string]: IVConsoleLog[]; + }; + export type IVConsoleLogFilter = { + [pluginId: string]: string; + }; + export interface IVConsoleAddLogOptions { + noOrig?: boolean; + cmdType?: 'input' | 'output'; + } + /********************************** + * Model + **********************************/ + export class VConsoleLogModel extends VConsoleModel { + readonly LOG_METHODS: IConsoleLogMethod[]; + ADDED_LOG_PLUGIN_ID: string[]; + maxLogNumber: number; + protected logCounter: number; + protected groupLevel: number; + protected groupLabelCollapsedStack: { + label: symbol; + collapsed: boolean; + }[]; + protected pluginPattern: RegExp; + protected logQueue: IVConsoleLog[]; + protected flushLogScheduled: boolean; + /** + * The original `window.console` methods. + */ + origConsole: { + [method: string]: Function; + }; + /** + * Bind a Log plugin. + * When binding first plugin, `window.console` will be hooked. + */ + bindPlugin(pluginId: string): boolean; + /** + * Unbind a Log plugin. + * When no binded plugin exists, hooked `window.console` will be recovered. + */ + unbindPlugin(pluginId: string): boolean; + /** + * Hook `window.console` with vConsole log method. + * Methods will be hooked only once. + */ + mockConsole(): void; + protected _mockConsoleLog(): void; + protected _mockConsoleTime(): void; + protected _mockConsoleGroup(): void; + protected _mockConsoleClear(): void; + /** + * Recover `window.console`. + */ + unmockConsole(): void; + /** + * Call origin `window.console[method](...args)` + */ + callOriginalConsole(method: string, ...args: any[]): void; + /** + * Reset groups by `console.group()`. + */ + resetGroup(): void; + /** + * Remove all logs. + */ + clearLog(): void; + /** + * Remove a plugin's logs. + */ + clearPluginLog(pluginId: string): void; + /** + * Add a vConsole log. + */ + addLog(item?: { + type: IConsoleLogMethod; + origData: any[]; + isGroupHeader?: 0 | 1 | 2; + isGroupCollapsed?: boolean; + }, opt?: IVConsoleAddLogOptions): void; + /** + * Execute a JS command. + */ + evalCommand(cmd: string): void; + protected _signalLog(log: IVConsoleLog): void; + protected _flushLogs(): void; + protected _extractPluginIdByLog(log: IVConsoleLog): string; + protected _isRepeatedLog(logList: IVConsoleLog[], log: IVConsoleLog): boolean; + protected _updateLastLogRepeated(logList: IVConsoleLog[]): IVConsoleLog[]; + protected _limitLogListLength(logList: IVConsoleLog[]): IVConsoleLog[]; + } +} +declare module "log/log.exporter" { + import { VConsolePluginExporter } from "lib/pluginExporter"; + import { VConsoleLogModel } from "log/log.model"; + import type { IConsoleLogMethod } from "log/log.model"; + export class VConsoleLogExporter extends VConsolePluginExporter { + model: VConsoleLogModel; + log(...args: any[]): void; + info(...args: any[]): void; + debug(...args: any[]): void; + warn(...args: any[]): void; + error(...args: any[]): void; + clear(): void; + protected addLog(method: IConsoleLogMethod, ...args: any[]): void; + } +} +declare module "log/log" { + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import { VConsoleLogModel } from "log/log.model"; + /** + * vConsole Log Plugin (base class). + */ + export class VConsoleLogPlugin extends VConsoleSveltePlugin { + model: VConsoleLogModel; + isReady: boolean; + isShow: boolean; + isInBottom: boolean; + constructor(id: string, name: string); + onReady(): void; + onRemove(): void; + onAddTopBar(callback: Function): void; + onAddTool(callback: Function): void; + onUpdateOption(): void; + } + export default VConsoleLogPlugin; +} +declare module "log/default" { + import { VConsoleLogPlugin } from "log/log"; + export class VConsoleDefaultPlugin extends VConsoleLogPlugin { + protected onErrorHandler: any; + protected resourceErrorHandler: any; + protected rejectionHandler: any; + onReady(): void; + onRemove(): void; + /** + * Catch window errors. + */ + protected bindErrors(): void; + /** + * Not catch window errors. + */ + protected unbindErrors(): void; + /** + * Catch `window.onerror`. + */ + protected catchWindowOnError(): void; + /** + * Catch resource loading error: image, video, link, script. + */ + protected catchResourceError(): void; + /** + * Catch `Promise.reject`. + * @reference https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event + */ + private catchUnhandledRejection; + } + export default VConsoleDefaultPlugin; +} +declare module "log/system" { + import { VConsoleLogPlugin } from "log/log"; + export class VConsoleSystemPlugin extends VConsoleLogPlugin { + onReady(): void; + printSystemInfo(): void; + } + export default VConsoleSystemPlugin; +} +declare module "network/helper" { + import type { VConsoleNetworkRequestItem } from "network/requestItem"; + export type IOnUpdateCallback = (item: VConsoleNetworkRequestItem) => void; + /** + * Generate `getData` by url. + */ + export const genGetDataByUrl: (url: string, getData?: {}) => {}; + /** + * Generate formatted response data by responseType. + */ + export const genResonseByResponseType: (responseType: string, response: any) => string; + /** + * Generate formatted response body by XMLHttpRequestBodyInit. + */ + export const genFormattedBody: (body?: BodyInit) => string | { + [key: string]: string; + }; + /** + * Get formatted URL object by string. + */ + export const getURL: (urlString?: string) => URL; +} +declare module "network/requestItem" { + export type VConsoleRequestMethod = '' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; + export class VConsoleNetworkRequestItem { + id: string; + name?: string; + method: VConsoleRequestMethod; + url: string; + status: number | string; + statusText?: string; + cancelState?: 0 | 1 | 2 | 3; + readyState?: XMLHttpRequest['readyState']; + header: { + [key: string]: string; + }; + responseType: XMLHttpRequest['responseType']; + requestType: 'xhr' | 'fetch' | 'ping' | 'custom'; + requestHeader: HeadersInit; + response: any; + responseSize: number; + responseSizeText: string; + startTime: number; + startTimeText: string; + endTime: number; + costTime?: number; + getData: { + [key: string]: string; + }; + postData: { + [key: string]: string; + } | string; + actived: boolean; + noVConsole?: boolean; + constructor(); + } + export class VConsoleNetworkRequestItemProxy extends VConsoleNetworkRequestItem { + static Handler: { + get(item: VConsoleNetworkRequestItemProxy, prop: string): any; + set(item: VConsoleNetworkRequestItemProxy, prop: string, value: any): boolean; + }; + protected _response?: any; + constructor(item: VConsoleNetworkRequestItem); + } +} +declare module "network/xhr.proxy" { + import { VConsoleNetworkRequestItem } from "network/requestItem"; + import type { IOnUpdateCallback } from "network/helper"; + export class XHRProxyHandler implements ProxyHandler { + XMLReq: XMLHttpRequest; + item: VConsoleNetworkRequestItem; + protected onUpdateCallback: IOnUpdateCallback; + constructor(XMLReq: XMLHttpRequest, onUpdateCallback: IOnUpdateCallback); + get(target: T, key: string): any; + set(target: T, key: string, value: any): boolean; + onReadyStateChange(): void; + onAbort(): void; + onTimeout(): void; + protected triggerUpdate(): void; + protected getOpen(target: T): (...args: any[]) => any; + protected getSend(target: T): (...args: any[]) => any; + protected getSetRequestHeader(target: T): (...args: any[]) => any; + protected setOnReadyStateChange(target: T, key: string, value: any): boolean; + protected setOnAbort(target: T, key: string, value: any): boolean; + protected setOnTimeout(target: T, key: string, value: any): boolean; + /** + * Update item's properties according to readyState. + */ + protected updateItemByReadyState(): void; + } + export class XHRProxy { + static origXMLHttpRequest: { + new (): XMLHttpRequest; + prototype: XMLHttpRequest; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; + }; + static create(onUpdateCallback: IOnUpdateCallback): { + new (): XMLHttpRequest; + prototype: XMLHttpRequest; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; + }; + } +} +declare module "network/fetch.proxy" { + import { VConsoleNetworkRequestItem } from "network/requestItem"; + import type { IOnUpdateCallback } from "network/helper"; + export class ResponseProxyHandler implements ProxyHandler { + resp: Response; + item: VConsoleNetworkRequestItem; + protected onUpdateCallback: IOnUpdateCallback; + constructor(resp: T, item: VConsoleNetworkRequestItem, onUpdateCallback: IOnUpdateCallback); + set(target: T, key: string, value: any): boolean; + get(target: T, key: string): any; + protected mockReader(): void; + } + export class FetchProxyHandler implements ProxyHandler { + protected onUpdateCallback: IOnUpdateCallback; + constructor(onUpdateCallback: IOnUpdateCallback); + apply(target: T, thisArg: typeof window, argsList: any): Promise; + protected beforeFetch(item: VConsoleNetworkRequestItem, input: RequestInfo, init?: RequestInit): void; + protected afterFetch(item: any): (resp: Response) => Response; + protected handleResponseBody(resp: Response, item: VConsoleNetworkRequestItem): Promise | Promise; + } + export class FetchProxy { + static origFetch: typeof fetch; + static create(onUpdateCallback: IOnUpdateCallback): typeof fetch; + } +} +declare module "network/beacon.proxy" { + import type { IOnUpdateCallback } from "network/helper"; + export class BeaconProxyHandler implements ProxyHandler { + protected onUpdateCallback: IOnUpdateCallback; + constructor(onUpdateCallback: IOnUpdateCallback); + apply(target: T, thisArg: T, argsList: any[]): any; + } + export class BeaconProxy { + static origSendBeacon: (url: string | URL, data?: BodyInit) => boolean; + static create(onUpdateCallback: IOnUpdateCallback): any; + } +} +declare module "network/network.model" { + import { VConsoleModel } from "lib/model"; + import { VConsoleNetworkRequestItem } from "network/requestItem"; + /** + * Network Store + */ + export const requestList: import("vendor/svelte/store").Writable<{ + [id: string]: VConsoleNetworkRequestItem; + }>; + /** + * Network Model + */ + export class VConsoleNetworkModel extends VConsoleModel { + maxNetworkNumber: number; + ignoreUrlRegExp: RegExp; + protected itemCounter: number; + constructor(); + unMock(): void; + clearLog(): void; + /** + * Add or update a request item by request ID. + */ + updateRequest(id: string, data: VConsoleNetworkRequestItem): void; + /** + * mock XMLHttpRequest + * @private + */ + private mockXHR; + /** + * mock fetch request + * @private + */ + private mockFetch; + /** + * mock navigator.sendBeacon + * @private + */ + private mockSendBeacon; + protected limitListLength(): void; + } + export default VConsoleNetworkModel; +} +declare module "network/network.exporter" { + import { VConsolePluginExporter } from "lib/pluginExporter"; + import { VConsoleNetworkModel } from "network/network.model"; + import { VConsoleNetworkRequestItem, VConsoleNetworkRequestItemProxy } from "network/requestItem"; + export class VConsoleNetworkExporter extends VConsolePluginExporter { + model: VConsoleNetworkModel; + add(item: VConsoleNetworkRequestItem): VConsoleNetworkRequestItemProxy; + update(id: string, item: VConsoleNetworkRequestItem): void; + clear(): void; + } +} +declare module "network/network" { + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import { VConsoleNetworkModel } from "network/network.model"; + import { VConsoleNetworkExporter } from "network/network.exporter"; + export class VConsoleNetworkPlugin extends VConsoleSveltePlugin { + model: VConsoleNetworkModel; + exporter: VConsoleNetworkExporter; + constructor(id: string, name: string, renderProps?: {}); + onReady(): void; + onAddTool(callback: any): void; + onRemove(): void; + onUpdateOption(): void; + } +} +declare module "element/element.model" { + export interface IVConsoleNode { + nodeType: typeof Node.prototype.nodeType; + nodeName: typeof Node.prototype.nodeName; + textContent: typeof Node.prototype.textContent; + id: typeof Element.prototype.id; + className: typeof Element.prototype.className; + attributes: { + [name: string]: string; + }[]; + childNodes: IVConsoleNode[]; + _isExpand?: boolean; + _isActived?: boolean; + _isSingleLine?: boolean; + _isNullEndTag?: boolean; + } + /** + * Element Store + */ + export const rootNode: import("vendor/svelte/store").Writable; + export const activedNode: import("vendor/svelte/store").Writable; +} +declare module "element/element" { + import MutationObserver from "vendor/mutation-observer"; + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import type { IVConsoleNode } from "element/element.model"; + /** + * vConsole Element Panel + */ + export class VConsoleElementPlugin extends VConsoleSveltePlugin { + protected isInited: boolean; + protected observer: MutationObserver; + protected nodeMap: WeakMap; + constructor(id: string, name: string, renderProps?: {}); + onShow(): void; + onRemove(): void; + onAddTool(callback: any): void; + protected _init(): void; + protected _handleMutation(mutation: MutationRecord): void; + protected _onChildRemove(mutation: MutationRecord): void; + protected _onChildAdd(mutation: MutationRecord): void; + protected _onAttributesChange(mutation: MutationRecord): void; + protected _onCharacterDataChange(mutation: MutationRecord): void; + /** + * Generate an VNode for rendering views. VNode will be updated if existing. + * VNode will be stored in a WeakMap. + */ + protected _generateVNode(elem: Node): IVConsoleNode; + protected _updateVNodeAttributes(elem: Node): void; + /** + * Expand the actived node. + * If the node is collapsed, expand it. + * If the node is expanded, expand it's child nodes. + */ + protected _expandActivedNode(): void; + /** + * Collapse the actived node. + * If the node is expanded, and has expanded child nodes, collapse it's child nodes. + * If the node is expanded, and has no expanded child node, collapse it self. + * If the node is collapsed, do nothing. + */ + protected _collapseActivedNode(): void; + protected _isIgnoredNode(elem: Node): boolean; + protected _isInVConsole(elem: Element): boolean; + protected _refreshStore(): void; + } +} +declare module "storage/storage.cookie" { + import type { IStorage } from "storage/storage.model"; + export interface CookieOptions { + path?: string | null; + domain?: string | null; + expires?: Date | null; + secure?: boolean; + sameSite?: 'Strict' | 'Lax' | 'None'; + } + export class CookieStorage implements IStorage { + get length(): number; + /** + * Returns sorted keys. + */ + get keys(): string[]; + key(index: number): string; + setItem(key: string, data: string, cookieOptions?: CookieOptions): void; + getItem(key: string): string; + removeItem(key: string, cookieOptions?: CookieOptions): void; + clear(): void; + } +} +declare module "storage/storage.wx" { + import type { IStorage } from "storage/storage.model"; + export class WxStorage implements IStorage { + keys: string[]; + currentSize: number; + limitSize: number; + get length(): number; + key(index: number): string; + /** + * Prepare for async data. + */ + prepare(): Promise; + getItem(key: string): Promise; + setItem(key: string, data: any): Promise; + removeItem(key: string): Promise; + clear(): Promise; + } +} +declare module "storage/storage.model" { + import type { VConsoleAvailableStorage } from "core/options.interface"; + import { VConsoleModel } from "lib/model"; + export interface IStorage { + length: number; + key: (index: number) => string | null; + getItem: (key: string) => string | null | Promise; + setItem: (key: string, data: any) => void | Promise; + removeItem: (key: string) => void | Promise; + clear: () => void | Promise; + prepare?: () => Promise; + } + /** + * Storage Store + */ + export const storageStore: { + updateTime: import("vendor/svelte/store").Writable; + activedName: import("vendor/svelte/store").Writable; + defaultStorages: import("vendor/svelte/store").Writable; + }; + export class VConsoleStorageModel extends VConsoleModel { + protected storage: Map; + constructor(); + get activedStorage(): IStorage; + getItem(key: string): Promise; + setItem(key: string, data: any): Promise; + removeItem(key: string): Promise; + clear(): Promise; + refresh(): void; + /** + * Get key-value data. + */ + getEntries(): Promise<[string, string][]>; + updateEnabledStorages(): void; + protected promisify(ret: T | Promise): T | Promise; + protected deleteStorage(key: VConsoleAvailableStorage): void; + } +} +declare module "storage/storage" { + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import { VConsoleStorageModel } from "storage/storage.model"; + export class VConsoleStoragePlugin extends VConsoleSveltePlugin { + protected model: VConsoleStorageModel; + protected onAddTopBarCallback: Function; + constructor(id: string, name: string, renderProps?: {}); + onReady(): void; + onShow(): void; + onAddTopBar(callback: Function): void; + onAddTool(callback: Function): void; + onUpdateOption(): void; + protected updateTopBar(): void; + } +} +declare module "core/core" { + /** + * vConsole core class + */ + import type { SvelteComponent } from "vendor/svelte"; + import type { VConsoleOptions } from "core/options.interface"; + import { VConsolePlugin } from "lib/plugin"; + import { VConsoleLogPlugin } from "log/log"; + import { VConsoleDefaultPlugin } from "log/default"; + import { VConsoleSystemPlugin } from "log/system"; + import { VConsoleNetworkPlugin } from "network/network"; + import { VConsoleElementPlugin } from "element/element"; + import { VConsoleStoragePlugin } from "storage/storage"; + import { VConsoleLogExporter } from "log/log.exporter"; + import { VConsoleNetworkExporter } from "network/network.exporter"; + export class VConsole { + version: string; + isInited: boolean; + option: VConsoleOptions; + protected compInstance: SvelteComponent; + protected pluginList: { + [id: string]: VConsolePlugin; + }; + log: VConsoleLogExporter; + system: VConsoleLogExporter; + network: VConsoleNetworkExporter; + static VConsolePlugin: typeof VConsolePlugin; + static VConsoleLogPlugin: typeof VConsoleLogPlugin; + static VConsoleDefaultPlugin: typeof VConsoleDefaultPlugin; + static VConsoleSystemPlugin: typeof VConsoleSystemPlugin; + static VConsoleNetworkPlugin: typeof VConsoleNetworkPlugin; + static VConsoleElementPlugin: typeof VConsoleElementPlugin; + static VConsoleStoragePlugin: typeof VConsoleStoragePlugin; + constructor(opt?: VConsoleOptions); + /** + * Get singleton instance. + **/ + static get instance(): VConsole | undefined; + /** + * Set singleton instance. + **/ + static set instance(value: VConsole | undefined); + /** + * Add built-in plugins. + */ + private _addBuiltInPlugins; + /** + * Init svelte component. + */ + private _initComponent; + private _updateComponentByOptions; + /** + * Update the position of Switch button. + */ + setSwitchPosition(x: number, y: number): void; + /** + * Auto run after initialization. + * @private + */ + private _autoRun; + private _showFirstPluginWhenEmpty; + /** + * Trigger a `vConsole.option` event. + */ + triggerEvent(eventName: string, param?: any): void; + /** + * Init a plugin. + */ + private _initPlugin; + /** + * Trigger an event for each plugin. + */ + private _triggerPluginsEvent; + /** + * Trigger an event by plugin's id. + * @private + */ + private _triggerPluginEvent; + /** + * Sorting plugin list by option `pluginOrder`. + * Plugin not listed in `pluginOrder` will be put last. + */ + private _reorderPluginList; + /** + * Add a new plugin. + */ + addPlugin(plugin: VConsolePlugin): boolean; + /** + * Remove a plugin. + */ + removePlugin(pluginID: string): boolean; + /** + * Show console panel. + */ + show(): void; + /** + * Hide console panel. + */ + hide(): void; + /** + * Show switch button + */ + showSwitch(): void; + /** + * Hide switch button. + */ + hideSwitch(): void; + /** + * Show a plugin panel. + */ + showPlugin(pluginId: string): void; + /** + * Update option(s). + * @example `setOption('log.maxLogNumber', 20)`: set 'maxLogNumber' field only. + * @example `setOption({ log: { maxLogNumber: 20 }})`: overwrite 'log' object. + */ + setOption(keyOrObj: any, value?: any): void; + /** + * Remove vConsole. + */ + destroy(): void; + } +} +declare module "vconsole" { + /** + * A Front-End Console Panel for Mobile Webpage + */ + import "vendor/core-js/stable/symbol"; + import 'core-js/stable/promise'; + import { VConsole } from "core/core"; + export default VConsole; +} +declare module "component/recycleScroller/recycleManager" { + const createRecycleManager: () => (itemCount: number, start: number, end: number) => { + key: number; + index: number; + show: boolean; + }[]; + export default createRecycleManager; +} +declare module "component/recycleScroller/resizeObserver" { + /** + * A ResizeObserver polyfill. + * ResizeObserver is not support in iOS 13.3 + */ + class EmptyResizeObserver { + constructor(callback: (entries: any[], observer?: EmptyResizeObserver) => void); + disconnect(): void; + observe(target: Element | SVGElement, options?: any): void; + unobserve(target: Element | SVGElement): void; + } + export const hasResizeObserver: () => boolean; + export const useResizeObserver: () => { + new (callback: ResizeObserverCallback): ResizeObserver; + prototype: ResizeObserver; + } | typeof EmptyResizeObserver; +} +declare module "component/recycleScroller/scroll/friction" { + /** * + * Friction physics simulation. Friction is actually just a simple + * power curve; the only trick is taking the natural log of the + * initial drag so that we can express the answer in terms of time. + */ + class Friction { + private _drag; + private _dragLog; + private _x; + private _v; + private _startTime; + constructor(drag: number); + set(x: number, v: number, t?: number): void; + x(t: number): number; + dx(t: number): number; + done(t: number): boolean; + } + export default Friction; +} +declare module "component/recycleScroller/scroll/linear" { + class Linear { + private _x; + private _endX; + private _v; + private _startTime; + private _endTime; + set(x: number, endX: number, dt: number, t?: number): void; + x(t: number): number; + dx(t: number): number; + done(t: number): boolean; + } + export default Linear; +} +declare module "component/recycleScroller/scroll/spring" { + class Spring { + private _solver; + private _solution; + private _endPosition; + private _startTime; + constructor(mass: number, springConstant: number, damping: number); + x(t: number): number; + dx(t: number): number; + set(endPosition: number, x: number, velocity: number, t?: number): void; + done(t: number): boolean; + } + export default Spring; +} +declare module "component/recycleScroller/scroll/scroll" { + /** * + * Scroll combines Friction and Spring to provide the + * classic "flick-with-bounce" behavior. + */ + class Scroll { + private _enableSpring; + private _getExtend; + private _friction; + private _spring; + private _toEdge; + constructor(getExtend: () => number, _enableSpring: boolean); + set(x: number, v: number, t?: number): void; + x(t: number): number; + dx(t: number): number; + done(t: number): boolean; + } + export default Scroll; +} +declare module "component/recycleScroller/scroll/touchTracker" { + export interface TrackerHandler { + onTouchStart(): void; + onTouchMove(x: number, y: number): void; + onTouchEnd(x: number, y: number, velocityX: number, velocityY: number): void; + onTouchCancel(): void; + onWheel(x: number, y: number): void; + } + class TouchTracker { + private _handler; + private _touchId; + private _startX; + private _startY; + private _historyX; + private _historyY; + private _historyTime; + private _wheelDeltaX; + private _wheelDeltaY; + constructor(_handler: TrackerHandler); + private _getTouchDelta; + private _onTouchMove; + private _onWheel; + handleTouchStart: (e: TouchEvent) => void; + handleTouchMove: (e: TouchEvent) => void; + handleTouchEnd: (e: TouchEvent) => void; + handleTouchCancel: (e: TouchEvent) => void; + handleWheel: (e: WheelEvent) => void; + } + export default TouchTracker; +} +declare module "component/recycleScroller/scroll/scrollHandler" { + import { TrackerHandler } from "component/recycleScroller/scroll/touchTracker"; + class ScrollHandler implements TrackerHandler { + private _updatePosition; + private _scrollModel; + private _linearModel; + private _startPosition; + private _position; + private _animate; + private _getExtent; + constructor(getExtent: () => number, _updatePosition: (pos: number) => void); + onTouchStart(): void; + onTouchMove(dx: number, dy: number): void; + onTouchEnd(dx: number, dy: number, velocityX: number, velocityY: number): void; + onTouchCancel(): void; + onWheel(x: number, y: number): void; + getPosition(): number; + updatePosition(position: number): void; + scrollTo(position: number, duration?: number): void; + } + export default ScrollHandler; +} diff --git a/node_modules/vconsole/dist/vconsole.min.js b/node_modules/vconsole/dist/vconsole.min.js new file mode 100644 index 0000000..ff1f2b9 --- /dev/null +++ b/node_modules/vconsole/dist/vconsole.min.js @@ -0,0 +1,10 @@ +/*! + * vConsole v3.15.1 (https://github.com/Tencent/vConsole) + * + * Tencent is pleased to support the open source community by making vConsole available. + * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + */ +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("VConsole",[],n):"object"==typeof exports?exports.VConsole=n():t.VConsole=n()}(this||self,(function(){return function(){var __webpack_modules__={4264:function(t,n,e){t.exports=e(7588)},5036:function(t,n,e){e(1719),e(5677),e(6394),e(5334),e(6969),e(2021),e(8328),e(2129);var o=e(1287);t.exports=o.Promise},2582:function(t,n,e){e(1646),e(6394),e(2004),e(462),e(8407),e(2429),e(1172),e(8288),e(1274),e(8201),e(6626),e(3211),e(9952),e(15),e(9831),e(7521),e(2972),e(6956),e(5222),e(2257);var o=e(1287);t.exports=o.Symbol},8257:function(t,n,e){var o=e(7583),r=e(9212),i=e(5637),a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},1186:function(t,n,e){var o=e(7583),r=e(2097),i=e(5637),a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a constructor")}},9882:function(t,n,e){var o=e(7583),r=e(9212),i=o.String,a=o.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},6288:function(t,n,e){var o=e(3649),r=e(3590),i=e(4615),a=o("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:r(null)}),t.exports=function(t){c[a][t]=!0}},4761:function(t,n,e){var o=e(7583),r=e(2447),i=o.TypeError;t.exports=function(t,n){if(r(n,t))return t;throw i("Incorrect invocation")}},2569:function(t,n,e){var o=e(7583),r=e(794),i=o.String,a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},5766:function(t,n,e){var o=e(2977),r=e(6782),i=e(1825),a=function(t){return function(n,e,a){var c,u=o(n),s=i(u),l=r(a,s);if(t&&e!=e){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===e)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4805:function(t,n,e){var o=e(2938),r=e(7386),i=e(5044),a=e(1324),c=e(1825),u=e(4822),s=r([].push),l=function(t){var n=1==t,e=2==t,r=3==t,l=4==t,f=6==t,d=7==t,v=5==t||f;return function(p,h,g,m){for(var _,b,y=a(p),w=i(y),E=o(h,g),L=c(w),T=0,x=m||u,C=n?x(p,L):e||d?x(p,0):void 0;L>T;T++)if((v||T in w)&&(b=E(_=w[T],T,y),t))if(n)C[T]=b;else if(b)switch(t){case 3:return!0;case 5:return _;case 6:return T;case 2:s(C,_)}else switch(t){case 4:return!1;case 7:s(C,_)}return f?-1:r||l?l:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9269:function(t,n,e){var o=e(6544),r=e(3649),i=e(4061),a=r("species");t.exports=function(t){return i>=51||!o((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},4546:function(t,n,e){var o=e(7583),r=e(6782),i=e(1825),a=e(5999),c=o.Array,u=Math.max;t.exports=function(t,n,e){for(var o=i(t),s=r(n,o),l=r(void 0===e?o:e,o),f=c(u(l-s,0)),d=0;s0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),t.exports=r},5690:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1178:function(t,n,e){var o=e(6544),r=e(4677);t.exports=!o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},7263:function(t,n,e){var o=e(7583),r=e(6683).f,i=e(57),a=e(1270),c=e(460),u=e(3478),s=e(4451);t.exports=function(t,n){var e,l,f,d,v,p=t.target,h=t.global,g=t.stat;if(e=h?o:g?o[p]||c(p,{}):(o[p]||{}).prototype)for(l in n){if(d=n[l],f=t.noTargetGet?(v=r(e,l))&&v.value:e[l],!s(h?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),a(e,l,d,t)}}},6544:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1611:function(t,n,e){var o=e(8987),r=Function.prototype,i=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},2938:function(t,n,e){var o=e(7386),r=e(8257),i=e(8987),a=o(o.bind);t.exports=function(t,n){return r(t),void 0===n?t:i?a(t,n):function(){return t.apply(n,arguments)}}},8987:function(t,n,e){var o=e(6544);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8262:function(t,n,e){var o=e(8987),r=Function.prototype.call;t.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},4340:function(t,n,e){var o=e(8494),r=e(2870),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,c=r(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!o||o&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},7386:function(t,n,e){var o=e(8987),r=Function.prototype,i=r.bind,a=r.call,c=o&&i.bind(a,a);t.exports=o?function(t){return t&&c(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5897:function(t,n,e){var o=e(7583),r=e(9212),i=function(t){return r(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(o[t]):o[t]&&o[t][n]}},8272:function(t,n,e){var o=e(3058),r=e(911),i=e(339),a=e(3649)("iterator");t.exports=function(t){if(null!=t)return r(t,a)||r(t,"@@iterator")||i[o(t)]}},6307:function(t,n,e){var o=e(7583),r=e(8262),i=e(8257),a=e(2569),c=e(5637),u=e(8272),s=o.TypeError;t.exports=function(t,n){var e=arguments.length<2?u(t):n;if(i(e))return a(r(e,t));throw s(c(t)+" is not iterable")}},911:function(t,n,e){var o=e(8257);t.exports=function(t,n){var e=t[n];return null==e?void 0:o(e)}},7583:function(t,n,e){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},2870:function(t,n,e){var o=e(7386),r=e(1324),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(r(t),n)}},4639:function(t){t.exports={}},2716:function(t,n,e){var o=e(7583);t.exports=function(t,n){var e=o.console;e&&e.error&&(1==arguments.length?e.error(t):e.error(t,n))}},482:function(t,n,e){var o=e(5897);t.exports=o("document","documentElement")},275:function(t,n,e){var o=e(8494),r=e(6544),i=e(6668);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5044:function(t,n,e){var o=e(7583),r=e(7386),i=e(6544),a=e(9624),c=o.Object,u=r("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):c(t)}:c},9734:function(t,n,e){var o=e(7386),r=e(9212),i=e(1314),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},4402:function(t,n,e){var o=e(794),r=e(57);t.exports=function(t,n){o(n)&&"cause"in n&&r(t,"cause",n.cause)}},2743:function(t,n,e){var o,r,i,a=e(9491),c=e(7583),u=e(7386),s=e(794),l=e(57),f=e(2870),d=e(1314),v=e(9137),p=e(4639),h="Object already initialized",g=c.TypeError,m=c.WeakMap;if(a||d.state){var _=d.state||(d.state=new m),b=u(_.get),y=u(_.has),w=u(_.set);o=function(t,n){if(y(_,t))throw new g(h);return n.facade=t,w(_,t,n),n},r=function(t){return b(_,t)||{}},i=function(t){return y(_,t)}}else{var E=v("state");p[E]=!0,o=function(t,n){if(f(t,E))throw new g(h);return n.facade=t,l(t,E,n),n},r=function(t){return f(t,E)?t[E]:{}},i=function(t){return f(t,E)}}t.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(n){var e;if(!s(n)||(e=r(n)).type!==t)throw g("Incompatible receiver, "+t+" required");return e}}}},114:function(t,n,e){var o=e(3649),r=e(339),i=o("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)}},4521:function(t,n,e){var o=e(9624);t.exports=Array.isArray||function(t){return"Array"==o(t)}},9212:function(t){t.exports=function(t){return"function"==typeof t}},2097:function(t,n,e){var o=e(7386),r=e(6544),i=e(9212),a=e(3058),c=e(5897),u=e(9734),s=function(){},l=[],f=c("Reflect","construct"),d=/^\s*(?:class|function)\b/,v=o(d.exec),p=!d.exec(s),h=function(t){if(!i(t))return!1;try{return f(s,l,t),!0}catch(t){return!1}},g=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!v(d,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!f||r((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?g:h},4451:function(t,n,e){var o=e(6544),r=e(9212),i=/#|\.prototype\./,a=function(t,n){var e=u[c(t)];return e==l||e!=s&&(r(n)?o(n):!!n)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},794:function(t,n,e){var o=e(9212);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},6268:function(t){t.exports=!1},5871:function(t,n,e){var o=e(7583),r=e(5897),i=e(9212),a=e(2447),c=e(7786),u=o.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return i(n)&&a(n.prototype,u(t))}},4026:function(t,n,e){var o=e(7583),r=e(2938),i=e(8262),a=e(2569),c=e(5637),u=e(114),s=e(1825),l=e(2447),f=e(6307),d=e(8272),v=e(7093),p=o.TypeError,h=function(t,n){this.stopped=t,this.result=n},g=h.prototype;t.exports=function(t,n,e){var o,m,_,b,y,w,E,L=e&&e.that,T=!(!e||!e.AS_ENTRIES),x=!(!e||!e.IS_ITERATOR),C=!(!e||!e.INTERRUPTED),O=r(n,L),I=function(t){return o&&v(o,"normal",t),new h(!0,t)},D=function(t){return T?(a(t),C?O(t[0],t[1],I):O(t[0],t[1])):C?O(t,I):O(t)};if(x)o=t;else{if(!(m=d(t)))throw p(c(t)+" is not iterable");if(u(m)){for(_=0,b=s(t);b>_;_++)if((y=D(t[_]))&&l(g,y))return y;return new h(!1)}o=f(t,m)}for(w=o.next;!(E=i(w,o)).done;){try{y=D(E.value)}catch(t){v(o,"throw",t)}if("object"==typeof y&&y&&l(g,y))return y}return new h(!1)}},7093:function(t,n,e){var o=e(8262),r=e(2569),i=e(911);t.exports=function(t,n,e){var a,c;r(t);try{if(!(a=i(t,"return"))){if("throw"===n)throw e;return e}a=o(a,t)}catch(t){c=!0,a=t}if("throw"===n)throw e;if(c)throw a;return r(a),e}},2365:function(t,n,e){"use strict";var o,r,i,a=e(6544),c=e(9212),u=e(3590),s=e(729),l=e(1270),f=e(3649),d=e(6268),v=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=s(s(i)))!==Object.prototype&&(o=r):p=!0),null==o||a((function(){var t={};return o[v].call(t)!==t}))?o={}:d&&(o=u(o)),c(o[v])||l(o,v,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},339:function(t){t.exports={}},1825:function(t,n,e){var o=e(97);t.exports=function(t){return o(t.length)}},2095:function(t,n,e){var o,r,i,a,c,u,s,l,f=e(7583),d=e(2938),v=e(6683).f,p=e(8117).set,h=e(7020),g=e(3256),m=e(6846),_=e(5354),b=f.MutationObserver||f.WebKitMutationObserver,y=f.document,w=f.process,E=f.Promise,L=v(f,"queueMicrotask"),T=L&&L.value;T||(o=function(){var t,n;for(_&&(t=w.domain)&&t.exit();r;){n=r.fn,r=r.next;try{n()}catch(t){throw r?a():i=void 0,t}}i=void 0,t&&t.enter()},h||_||m||!b||!y?!g&&E&&E.resolve?((s=E.resolve(void 0)).constructor=E,l=d(s.then,s),a=function(){l(o)}):_?a=function(){w.nextTick(o)}:(p=d(p,f),a=function(){p(o)}):(c=!0,u=y.createTextNode(""),new b(o).observe(u,{characterData:!0}),a=function(){u.data=c=!c})),t.exports=T||function(t){var n={fn:t,next:void 0};i&&(i.next=n),r||(r=n,a()),i=n}},783:function(t,n,e){var o=e(7583);t.exports=o.Promise},8640:function(t,n,e){var o=e(4061),r=e(6544);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},9491:function(t,n,e){var o=e(7583),r=e(9212),i=e(9734),a=o.WeakMap;t.exports=r(a)&&/native code/.test(i(a))},5084:function(t,n,e){"use strict";var o=e(8257),r=function(t){var n,e;this.promise=new t((function(t,o){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=o})),this.resolve=o(n),this.reject=o(e)};t.exports.f=function(t){return new r(t)}},2764:function(t,n,e){var o=e(8320);t.exports=function(t,n){return void 0===t?arguments.length<2?"":n:o(t)}},3590:function(t,n,e){var o,r=e(2569),i=e(8728),a=e(5690),c=e(4639),u=e(482),s=e(6668),l=e(9137),f=l("IE_PROTO"),d=function(){},v=function(t){return" + diff --git a/node_modules/vue-qrcode-reader/docs/.vuepress/public/select-camera-demo.html b/node_modules/vue-qrcode-reader/docs/.vuepress/public/select-camera-demo.html new file mode 100644 index 0000000..9206497 --- /dev/null +++ b/node_modules/vue-qrcode-reader/docs/.vuepress/public/select-camera-demo.html @@ -0,0 +1,76 @@ + + + + + + + + + +cameras:
+
    +
    + + + + + diff --git a/node_modules/vue-qrcode-reader/shell.nix b/node_modules/vue-qrcode-reader/shell.nix new file mode 100644 index 0000000..49f4a83 --- /dev/null +++ b/node_modules/vue-qrcode-reader/shell.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + + buildInputs = with pkgs; [ + nodejs_18 + nodePackages.pnpm + nodePackages.typescript-language-server + nodePackages.volar + ]; + +} diff --git a/node_modules/zxing-wasm/LICENSE b/node_modules/zxing-wasm/LICENSE new file mode 100644 index 0000000..5dd3d5b --- /dev/null +++ b/node_modules/zxing-wasm/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Ze-Zheng Wu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/zxing-wasm/README.md b/node_modules/zxing-wasm/README.md new file mode 100644 index 0000000..035fb87 --- /dev/null +++ b/node_modules/zxing-wasm/README.md @@ -0,0 +1,248 @@ +# zxing-wasm + +[![npm](https://img.shields.io/npm/v/zxing-wasm)](https://www.npmjs.com/package/zxing-wasm/v/latest) [![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/zxing-wasm)](https://www.npmjs.com/package/zxing-wasm/v/latest) [![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/zxing-wasm?color=%23ff5627)](https://cdn.jsdelivr.net/npm/zxing-wasm@latest/) [![deploy status](https://github.com/Sec-ant/zxing-wasm/actions/workflows/deploy.yml/badge.svg)](https://github.com/Sec-ant/zxing-wasm/actions/workflows/deploy.yml) + +[ZXing-C++](https://github.com/zxing-cpp/zxing-cpp) WebAssembly as an ES/CJS module with types. Read or write barcodes in various JS runtimes: web, node, bun and deno. + +Visit [this online demo](https://zxing-wasm-demo.deno.dev/) to quickly explore its basic functions. It works best on the latest chromium browsers. + +## Build + +```bash +git clone --recurse-submodules https://github.com/Sec-ant/zxing-wasm +cd zxing-wasm +# install pnpm first: +# https://pnpm.io/installation +pnpm i --frozen-lockfile +# install cmake first: +# https://cmake.org/download/ +pnpm cmake +# install emscripten first: +# https://emscripten.org/docs/getting_started/downloads.html +pnpm build:wasm +pnpm build +``` + +## Install + +``` +npm i zxing-wasm +``` + +## Documentation + +https://zxing-wasm.deno.dev/ + +## Demo + +Demo page: https://zxing-wasm-demo.deno.dev/ + +Demo source: https://github.com/Sec-ant/zxing-wasm-demo + +## Usage + +This package exports 3 subpaths: `full`, `reader` and `writer`. You can choose whichever fits your needs. If you use TypeScript, you should set [`moduleResolution`](https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution) to [`bundler`](https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler), [`node16` or `nodenext`](https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext-1) in your `tsconfig.json` file to properly resolve the exported module. + +### `zxing-wasm` or `zxing-wasm/full` + +These 2 subpaths include functions to both read and write barcodes. The wasm binary size is ~1.19 MB. + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, + writeBarcodeToImageFile, +} from "zxing-wasm"; +``` + +or + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, + writeBarcodeToImageFile, +} from "zxing-wasm/full"; +``` + +### `zxing-wasm/reader` + +This subpath only includes functions to read barcodes. The wasm binary size is ~917 KB. + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, +} from "zxing-wasm/reader"; +``` + +### `zxing-wasm/writer` + +This subpath only includes a function to write barcodes. The wasm binary size is ~366 KB. + +```ts +import { writeBarcodeToImageFile } from "zxing-wasm/writer"; +``` + +### IIFE Scripts + +Apart from ES and CJS modules, this package also ships IIFE scripts. The registered global variable is named `ZXingWASM`. + +```html + + + + + + + + +``` + +### [`readBarcodesFromImageFile`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageFile.html) and [`readBarcodesFromImageData`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageData.html) + +These 2 functions are for reading barcodes. + +[`readBarcodesFromImageFile`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageFile.html) accepts an image [`Blob`](https://developer.mozilla.org/docs/Web/API/Blob) or an image [`File`](https://developer.mozilla.org/docs/Web/API/File) as the first input. They're encoded images, e.g. `.png` `.jpg` files. + +[`readBarcodesFromImageData`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageData.html) accepts an [`ImageData`](https://developer.mozilla.org/docs/Web/API/ImageData) as the first input. They're raw pixels that usually acquired from [``](https://developer.mozilla.org/docs/Web/HTML/Element/canvas) or related APIs. + +Both of these 2 functions optionally accept the same second input: [`ReaderOptions`](https://zxing-wasm.deno.dev/interfaces/full.ReaderOptions.html). + +The return result of these 2 functions is a `Promise` of an array of [`ReadResult`](https://zxing-wasm.deno.dev/interfaces/full.ReadResult.html)s. + +e.g. + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, + type ReaderOptions, +} from "zxing-wasm/reader"; + +const readerOptions: ReaderOptions = { + tryHarder: true, + formats: ["QRCode"], + maxNumberOfSymbols: 1, +}; + +/** + * Read from image file/blob + */ +const imageFile = await fetch( + "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Hello%20world!", +).then((resp) => resp.blob()); + +const imageFileReadResults = await readBarcodesFromImageFile( + imageFile, + readerOptions, +); + +console.log(imageFileReadResults[0].text); // Hello world! + +/** + * Read from image data + */ +const imageData = await createImageBitmap(imageFile).then((imageBitmap) => { + const { width, height } = imageBitmap; + const context = new OffscreenCanvas(width, height).getContext( + "2d", + ) as OffscreenCanvasRenderingContext2D; + context.drawImage(imageBitmap, 0, 0, width, height); + return context.getImageData(0, 0, width, height); +}); + +const imageDataReadResults = await readBarcodesFromImageData( + imageData, + readerOptions, +); + +console.log(imageDataReadResults[0].text); // Hello world! +``` + +### [`writeBarcodeToImageFile`](https://zxing-wasm.deno.dev/functions/full.writeBarcodeToImageFile.html) + +This function is used to write barcodes. The first argument of this function is a text string to be encoded and the optional second argument is an [`WriterOptions`](https://zxing-wasm.deno.dev/interfaces/full.WriterOptions.html). + +The return result of this function is a `Promise` of a [`WriteResult`](https://zxing-wasm.deno.dev/interfaces/full.WriteResult.html). + +e.g. + +```ts +import { writeBarcodeToImageFile, type WriterOptions } from "zxing-wasm/writer"; + +const writerOptions: WriterOptions = { + format: "QRCode", + width: 150, + height: 150, + margin: 10, + eccLevel: 2, +}; + +const writeOutput = await writeBarcodeToImageFile( + "Hello world!", + writerOptions, +); + +console.log(writeOutput.image); +``` + +## Notes + +When using this package, the `.wasm` binary needs to be served along with the JS glue code. In order to provide a smooth dev experience, the serve path is automatically assigned the [jsDelivr CDN](https://fastly.jsdelivr.net/npm/zxing-wasm/) url upon build. + +If you would like to change the serve path (to one of your local network hosts, some other CDNs, or just Base64 encoded data URIs), please use [`setZXingModuleOverrides`](https://zxing-wasm.deno.dev/functions/full.setZXingModuleOverrides.html) to override the [`locateFile`](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#Module.locateFile) function in advance. `locateFile` is one of the [Emscripten `Module` attribute hooks](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#affecting-execution) that can affect the code execution of the `Module` object during its lifecycles. + +e.g. + +```ts +import { setZXingModuleOverrides, writeBarcodeToImageFile } from "zxing-wasm"; + +// override the locateFile function +setZXingModuleOverrides({ + locateFile: (path, prefix) => { + if (path.endsWith(".wasm")) { + return `https://unpkg.com/zxing-wasm@1/dist/full/${path}`; + } + return prefix + path; + }, +}); + +// call read or write functions afterwards +const writeOutput = await writeBarcodeToImageFile("Hello world!"); +``` + +The wasm binary won't be fetched or instantiated unless a [read](#readbarcodesfromimagefile-and-readbarcodesfromimagedata) or [write](#writebarcodetoimagefile) function is firstly called, and will only be instantiated once given the same ([`Object.is`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/is)) [ZXingModuleOverrides](https://zxing-wasm.deno.dev/types/full.ZXingModuleOverrides). If you want to manually trigger the download and instantiation of the wasm binary prior to any read or write functions, you can use [`getZXingModule`](https://zxing-wasm.deno.dev/functions/full.getZXingModule). This function will also return a `Promise` that resolves to a [`ZXingModule`](https://zxing-wasm.deno.dev/types/full.ZXingModule). + +```ts +import { getZXingModule } from "zxing-wasm"; + +/** + * This function will trigger the download and + * instantiation of the wasm binary immediately + */ +const zxingModulePromise1 = getZXingModule(); + +const zxingModulePromise2 = getZXingModule(); + +console.log(zxingModulePromise1 === zxingModulePromise2); // true +``` + +[`getZXingModule`](https://zxing-wasm.deno.dev/functions/full.getZXingModule) can also optionally accept a [`ZXingModuleOverrides`](https://zxing-wasm.deno.dev/types/full.ZXingModuleOverrides.html) argument. + +```ts +import { getZXingModule } from "zxing-wasm"; + +getZXingModule({ + locateFile: (path, prefix) => { + if (path.endsWith(".wasm")) { + return `https://unpkg.com/zxing-wasm@1/dist/full/${path}`; + } + return prefix + path; + }, +}); +``` + +## License + +MIT diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/barcodeFormat.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/barcodeFormat.d.ts new file mode 100644 index 0000000..287560e --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/barcodeFormat.d.ts @@ -0,0 +1,21 @@ +export declare const barcodeFormats: readonly ["Aztec", "Codabar", "Code128", "Code39", "Code93", "DataBar", "DataBarExpanded", "DataBarLimited", "DataMatrix", "DXFilmEdge", "EAN-13", "EAN-8", "ITF", "Linear-Codes", "Matrix-Codes", "MaxiCode", "MicroQRCode", "None", "PDF417", "QRCode", "rMQRCode", "UPC-A", "UPC-E"]; +/** + * @internal + */ +export type BarcodeFormat = (typeof barcodeFormats)[number]; +/** + * Barcode formats that can be used in {@link ReaderOptions.formats | `ReaderOptions.formats`} to read barcodes. + */ +export type ReadInputBarcodeFormat = Exclude; +/** + * Barcode formats that can be used in {@link WriterOptions.format | `WriterOptions.format`} to write barcodes. + */ +export type WriteInputBarcodeFormat = Exclude; +/** + * Barcode formats that may be returned in {@link ReadResult.format} in read functions. + */ +export type ReadOutputBarcodeFormat = Exclude; +export declare function formatsToString(formats: BarcodeFormat[]): string; +export declare function formatsFromString(formatString: string): BarcodeFormat[]; +export declare function formatFromString(format: string): BarcodeFormat; +export declare function normalizeFormatString(format: string): string; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/binarizer.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/binarizer.d.ts new file mode 100644 index 0000000..294133d --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/binarizer.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const binarizers: readonly ["LocalAverage", "GlobalHistogram", "FixedThreshold", "BoolCast"]; +export type Binarizer = (typeof binarizers)[number]; +/** + * @internal + */ +export type ZXingBinarizer = Record; +export declare function binarizerToZXingEnum(zxingModule: ZXingModule, binarizer: Binarizer): ZXingEnum; +export declare function zxingEnumToBinarizer(zxingEnum: ZXingEnum): Binarizer; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/characterSet.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/characterSet.d.ts new file mode 100644 index 0000000..bff72f8 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/characterSet.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule, ZXingModuleType } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const characterSets: readonly ["Unknown", "ASCII", "ISO8859_1", "ISO8859_2", "ISO8859_3", "ISO8859_4", "ISO8859_5", "ISO8859_6", "ISO8859_7", "ISO8859_8", "ISO8859_9", "ISO8859_10", "ISO8859_11", "ISO8859_13", "ISO8859_14", "ISO8859_15", "ISO8859_16", "Cp437", "Cp1250", "Cp1251", "Cp1252", "Cp1256", "Shift_JIS", "Big5", "GB2312", "GB18030", "EUC_JP", "EUC_KR", "UTF16BE", "UTF8", "UTF16LE", "UTF32BE", "UTF32LE", "BINARY"]; +export type CharacterSet = (typeof characterSets)[number]; +/** + * @internal + */ +export type ZXingCharacterSet = Record; +export declare function characterSetToZXingEnum(zxingModule: ZXingModule, characterSet: CharacterSet): ZXingEnum; +export declare function zxingEnumToCharacterSet(zxingEnum: ZXingEnum): CharacterSet; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/contentType.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/contentType.d.ts new file mode 100644 index 0000000..a18e62d --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/contentType.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const contentTypes: readonly ["Text", "Binary", "Mixed", "GS1", "ISO15434", "UnknownECI"]; +export type ContentType = (typeof contentTypes)[number]; +/** + * @internal + */ +export type ZXingContentType = Record; +export declare function contentTypeToZXingEnum(zxingModule: ZXingModule, contentType: ContentType): ZXingEnum; +export declare function zxingEnumToContentType(zxingEnum: ZXingEnum): ContentType; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/eanAddOnSymbol.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/eanAddOnSymbol.d.ts new file mode 100644 index 0000000..ed3a5b2 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/eanAddOnSymbol.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const eanAddOnSymbols: readonly ["Ignore", "Read", "Require"]; +export type EanAddOnSymbol = (typeof eanAddOnSymbols)[number]; +/** + * @internal + */ +export type ZXingEanAddOnSymbol = Record; +export declare function eanAddOnSymbolToZXingEnum(zxingModule: ZXingModule, eanAddOnSymbol: EanAddOnSymbol): ZXingEnum; +export declare function zxingEnumToEanAddOnSymbol(zxingEnum: ZXingEnum): EanAddOnSymbol; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/eccLevel.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/eccLevel.d.ts new file mode 100644 index 0000000..bbfb1bc --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/eccLevel.d.ts @@ -0,0 +1,4 @@ +export declare const writeInputEccLevels: readonly [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8]; +export type WriteInputEccLevel = (typeof writeInputEccLevels)[number]; +export declare const readOutputEccLevels: readonly ["L", "M", "Q", "H"]; +export type ReadOutputEccLevel = (typeof readOutputEccLevels)[number]; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/enum.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/enum.d.ts new file mode 100644 index 0000000..7d42d60 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/enum.d.ts @@ -0,0 +1,6 @@ +/** + * @internal + */ +export interface ZXingEnum { + value: number; +} diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/exposedReaderBindings.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/exposedReaderBindings.d.ts new file mode 100644 index 0000000..5876088 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/exposedReaderBindings.d.ts @@ -0,0 +1,17 @@ +import { type ReaderOptions } from "./index.js"; +export declare const defaultReaderOptions: Required; +export { barcodeFormats, type BarcodeFormat, type ReadInputBarcodeFormat, type ReadOutputBarcodeFormat, binarizers, type ZXingBinarizer, type Binarizer, characterSets, type ZXingCharacterSet, type CharacterSet, contentTypes, type ZXingContentType, type ContentType, type ZXingReaderOptions, type ReaderOptions, eanAddOnSymbols, type ZXingEanAddOnSymbol, type EanAddOnSymbol, readOutputEccLevels, type ReadOutputEccLevel, type ZXingEnum, type ZXingPoint, type ZXingPosition, type Point, type Position, type ZXingReadResult, type ReadResult, textModes, type ZXingTextMode, type TextMode, type ZXingVector, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultReaderOptions` + */ +defaultReaderOptions as defaultDecodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingReaderOptions` + */ +ZXingReaderOptions as ZXingDecodeHints, +/** + * @deprecated renamed as `ReaderOptions` + */ +ReaderOptions as DecodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/exposedWriterBindings.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/exposedWriterBindings.d.ts new file mode 100644 index 0000000..dfc4b5d --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/exposedWriterBindings.d.ts @@ -0,0 +1,17 @@ +import { type WriterOptions } from "./index.js"; +export declare const defaultWriterOptions: Required; +export { barcodeFormats, type BarcodeFormat, type WriteInputBarcodeFormat, characterSets, type ZXingCharacterSet, type CharacterSet, writeInputEccLevels, type WriteInputEccLevel, type ZXingWriterOptions, type WriterOptions, type ZXingEnum, type ZXingWriteResult, type WriteResult, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultWriterOptions` + */ +defaultWriterOptions as defaultEncodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingWriterOptions` + */ +ZXingWriterOptions as ZXingEncodeHints, +/** + * @deprecated renamed as `WriterOptions` + */ +WriterOptions as EncodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/index.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/index.d.ts new file mode 100644 index 0000000..0081c44 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/index.d.ts @@ -0,0 +1,14 @@ +export * from "./barcodeFormat.js"; +export * from "./binarizer.js"; +export * from "./characterSet.js"; +export * from "./contentType.js"; +export * from "./readerOptions.js"; +export * from "./eanAddOnSymbol.js"; +export * from "./eccLevel.js"; +export * from "./writerOptions.js"; +export * from "./enum.js"; +export * from "./position.js"; +export * from "./readResult.js"; +export * from "./textMode.js"; +export * from "./vector.js"; +export * from "./writeResult.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/position.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/position.d.ts new file mode 100644 index 0000000..2cbe76c --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/position.d.ts @@ -0,0 +1,55 @@ +/** + * @internal + */ +export interface ZXingPoint { + x: number; + y: number; +} +/** + * @internal + */ +export interface ZXingPosition { + topLeft: ZXingPoint; + topRight: ZXingPoint; + bottomLeft: ZXingPoint; + bottomRight: ZXingPoint; +} +/** + * X, Y coordinates to describe a point. + * + * @property x X coordinate. + * @property y Y coordinate. + * + * @see {@link Position | `Position`} + */ +export interface Point extends ZXingPoint { +} +/** + * Position of the decoded barcode. + */ +export interface Position { + /** + * Top-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topLeft: Point; + /** + * Top-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topRight: Point; + /** + * Bottom-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomLeft: Point; + /** + * Bottom-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomRight: Point; +} diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/readResult.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/readResult.d.ts new file mode 100644 index 0000000..ae40842 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/readResult.d.ts @@ -0,0 +1,123 @@ +import { type ReadOutputBarcodeFormat } from "./barcodeFormat.js"; +import { type ContentType } from "./contentType.js"; +import type { ReadOutputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +import type { Position, ZXingPosition } from "./position.js"; +/** + * @internal + */ +export interface ZXingReadResult { + /** + * Whether the barcode is valid. + */ + isValid: boolean; + /** + * Error message (if any). + * + * @see {@link ReaderOptions.returnErrors | `ReaderOptions.returnErrors`} + */ + error: string; + format: string; + /** + * Raw / Standard content without any modifications like character set conversions. + */ + bytes: Uint8Array; + /** + * Raw / Standard content following the ECI protocol. + */ + bytesECI: Uint8Array; + /** + * The {@link ReadResult.bytes | `ReadResult.bytes`} content rendered to unicode / utf8 text + * accoring to specified {@link ReaderOptions.textMode | `ReaderOptions.textMode`}. + */ + text: string; + eccLevel: string; + contentType: ZXingEnum; + /** + * Whether or not an ECI tag was found. + */ + hasECI: boolean; + position: ZXingPosition; + /** + * Orientation of the barcode in degree. + */ + orientation: number; + /** + * Whether the symbol is mirrored (currently only supported by QRCode and DataMatrix). + */ + isMirrored: boolean; + /** + * Whether the symbol is inverted / has reveresed reflectance. + * + * @see {@link ReaderOptions.tryInvert | `ReaderOptions.tryInvert`} + */ + isInverted: boolean; + /** + * Symbology identifier `"]cm"` where `"c"` is the symbology code character, `"m"` the modifier. + */ + symbologyIdentifier: string; + /** + * Number of symbols in a structured append sequence. + * + * If this is not part of a structured append sequence, the returned value is `-1`. + * If it is a structured append symbol but the total number of symbols is unknown, the + * returned value is `0` (see PDF417 if optional "Segment Count" not given). + */ + sequenceSize: number; + /** + * The 0-based index of this symbol in a structured append sequence. + */ + sequenceIndex: number; + /** + * ID to check if a set of symbols belongs to the same structured append sequence. + * + * If the symbology does not support this feature, the returned value is empty (see MaxiCode). + * For QR Code, this is the parity integer converted to a string. + * For PDF417 and DataMatrix, this is the `"fileId"`. + */ + sequenceId: string; + /** + * Set if this is the reader initialisation / programming symbol. + */ + readerInit: boolean; + /** + * Number of lines have been detected with this code (applies only to linear symbologies). + */ + lineCount: number; + /** + * QRCode / DataMatrix / Aztec version or size. + * + * This property will be removed in the future. + * + * @deprecated + */ + version: string; +} +export interface ReadResult extends Omit { + /** + * Format of the barcode, should be one of {@link ReadOutputBarcodeFormat | `ReadOutputBarcodeFormat`}. + * + * Possible values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"None"`, + * `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + */ + format: ReadOutputBarcodeFormat; + /** + * Error correction level of the symbol (empty string if not applicable). + * + * This property may be renamed to `ecLevel` in the future. + */ + eccLevel: ReadOutputEccLevel; + /** + * A hint to the type of the content found. + */ + contentType: ContentType; + /** + * Position of the detected barcode. + */ + position: Position; +} +export declare function zxingReadResultToReadResult(zxingReadResult: ZXingReadResult): ReadResult; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/readerOptions.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/readerOptions.d.ts new file mode 100644 index 0000000..ba5e9e7 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/readerOptions.d.ts @@ -0,0 +1,207 @@ +import type { ZXingModule } from "../core.js"; +import { type ReadInputBarcodeFormat } from "./barcodeFormat.js"; +import { type Binarizer } from "./binarizer.js"; +import { type CharacterSet } from "./characterSet.js"; +import { type EanAddOnSymbol } from "./eanAddOnSymbol.js"; +import type { ZXingEnum } from "./enum.js"; +import { type TextMode } from "./textMode.js"; +/** + * @internal + */ +export interface ZXingReaderOptions { + formats: string; + /** + * Spend more time to try to find a barcode. Optimize for accuracy, not speed. + * + * @defaultValue `true` + */ + tryHarder: boolean; + /** + * Try detecting code in 90, 180 and 270 degree rotated images. + * + * @defaultValue `true` + */ + tryRotate: boolean; + /** + * Try detecting inverted (reversed reflectance) codes if the format allows for those. + * + * @defaultValue `true` + */ + tryInvert: boolean; + /** + * Try detecting code in downscaled images (depending on image size). + * + * @defaultValue `true` + * @see {@link downscaleFactor | `downscaleFactor`} {@link downscaleThreshold | `downscaleThreshold`} + */ + tryDownscale: boolean; + binarizer: ZXingEnum; + /** + * Set to `true` if the input contains nothing but a single perfectly aligned barcode (usually generated images). + * + * @defaultValue `false` + */ + isPure: boolean; + /** + * Image size ( min(width, height) ) threshold at which to start downscaled scanning + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `500` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleFactor | `downscaleFactor`} + */ + downscaleThreshold: number; + /** + * Scale factor to use during downscaling, meaningful values are `2`, `3` and `4`. + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `3` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleThreshold | `downscaleThreshold`} + */ + downscaleFactor: number; + /** + * The number of scan lines in a linear barcode that have to be equal to accept the result. + * + * @defaultValue `2` + */ + minLineCount: number; + /** + * The maximum number of symbols / barcodes to detect / look for in the image. + * The upper limit of this number is 255. + * + * @defaultValue `255` + */ + maxNumberOfSymbols: number; + /** + * If `true`, the Code-39 reader will try to read extended mode. + * + * @defaultValue `false` + */ + tryCode39ExtendedMode: boolean; + /** + * Assume Code-39 codes employ a check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateCode39CheckSum: boolean; + /** + * Assume ITF codes employ a GS1 check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateITFCheckSum: boolean; + /** + * If `true`, return the start and end chars in a Codabar barcode instead of stripping them. + * + * @defaultValue `false` + * @deprecated upstream + */ + returnCodabarStartEnd: boolean; + /** + * If `true`, return the barcodes with errors as well (e.g. checksum errors). + * + * @defaultValue `false` + */ + returnErrors: boolean; + eanAddOnSymbol: ZXingEnum; + textMode: ZXingEnum; + characterSet: ZXingEnum; +} +/** + * Reader options for reading barcodes. + */ +export interface ReaderOptions extends Partial> { + /** + * A set of {@link ReadInputBarcodeFormat | `ReadInputBarcodeFormat`}s that should be searched for. + * An empty list `[]` indicates all supported formats. + * + * Supported values in this list are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, `"Linear-Codes"`, `"Matrix-Codes"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `[]` + */ + formats?: ReadInputBarcodeFormat[]; + /** + * Algorithm to use for the grayscale to binary transformation. + * The difference is how to get to a threshold value T + * which results in a bit value R = L <= T. + * + * - `"LocalAverage"` + * + * T = average of neighboring pixels for matrix and GlobalHistogram for linear + * + * - `"GlobalHistogram"` + * + * T = valley between the 2 largest peaks in the histogram (per line in linear case) + * + * - `"FixedThreshold"` + * + * T = 127 + * + * - `"BoolCast"` + * + * T = 0, fastest possible + * + * @defaultValue `"LocalAverage"` + */ + binarizer?: Binarizer; + /** + * Specify whether to ignore, read or require EAN-2 / 5 add-on symbols while scanning EAN / UPC codes. + * + * - `"Ignore"` + * + * Ignore any Add-On symbol during read / scan + * + * - `"Read"` + * + * Read EAN-2 / EAN-5 Add-On symbol if found + * + * - `"Require"` + * + * Require EAN-2 / EAN-5 Add-On symbol to be present + * + * @defaultValue `"Read"` + */ + eanAddOnSymbol?: EanAddOnSymbol; + /** + * Specifies the `TextMode` that controls the result of {@link ReadResult.text | `ReadResult.text`}. + * + * - `"Plain"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to unicode based on ECI info or guessed character set + * + * - `"ECI"` + * + * Standard content following the ECI protocol with every character set ECI segment transcoded to unicode + * + * - `"HRI"` + * + * Human Readable Interpretation (dependent on the ContentType) + * + * - `"Hex"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to ASCII string of HEX values + * + * - `"Escaped"` + * + * Escape non-graphical characters in angle brackets (e.g. ASCII `29` will be transcoded to `""`) + * + * @defaultValue `"Plain"` + */ + textMode?: TextMode; + /** + * Character set to use (when applicable). + * If this is set to `"Unknown"`, auto-detecting will be used. + * + * @defaultValue `"Unknown"` + */ + characterSet?: CharacterSet; +} +export declare const defaultReaderOptions: Required; +export declare function readerOptionsToZXingReaderOptions(zxingModule: ZXingModule, readerOptions: Required): ZXingReaderOptions; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/textMode.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/textMode.d.ts new file mode 100644 index 0000000..ec52783 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/textMode.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const textModes: readonly ["Plain", "ECI", "HRI", "Hex", "Escaped"]; +export type TextMode = (typeof textModes)[number]; +/** + * @internal + */ +export type ZXingTextMode = Record; +export declare function textModeToZXingEnum(zxingModule: ZXingModule, textMode: TextMode): ZXingEnum; +export declare function zxingEnumToTextMode(zxingEnum: ZXingEnum): TextMode; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/vector.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/vector.d.ts new file mode 100644 index 0000000..034bd5a --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/vector.d.ts @@ -0,0 +1,7 @@ +/** + * @internal + */ +export interface ZXingVector { + size: () => number; + get: (i: number) => T | undefined; +} diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/writeResult.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/writeResult.d.ts new file mode 100644 index 0000000..ac46b1f --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/writeResult.d.ts @@ -0,0 +1,24 @@ +/** + * @internal + */ +export interface ZXingWriteResult { + image: Uint8Array; + /** + * Encoding error. + * If there's no error, this will be an empty string `""`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + error: string; + delete: () => void; +} +export interface WriteResult extends Omit { + /** + * The encoded barcode as an image blob. + * If some error happens, this will be `null`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + image: Blob | null; +} +export declare function zxingWriteResultToWriteResult(zxingWriteResult: ZXingWriteResult): WriteResult; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/writerOptions.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/writerOptions.d.ts new file mode 100644 index 0000000..8a777af --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/writerOptions.d.ts @@ -0,0 +1,64 @@ +import type { ZXingModule } from "../core.js"; +import type { WriteInputBarcodeFormat } from "./barcodeFormat.js"; +import { type CharacterSet } from "./characterSet.js"; +import type { WriteInputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +/** + * @internal + */ +export interface ZXingWriterOptions { + /** + * Width of the barcode. + * + * @defaultValue `200` + */ + width: number; + /** + * Height of the barcode. + * + * @defaultValue `200` + */ + height: number; + format: string; + characterSet: ZXingEnum; + eccLevel: number; + /** + * The minimum number of quiet zone pixels. + * + * @defaultValue `10` + */ + margin: number; +} +/** + * Writer options for writing barcodes. + */ +export interface WriterOptions extends Partial> { + /** + * The format of the barcode to write. + * + * Supported values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataMatrix"`, `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"PDF417"`, `"QRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `"QRCode"` + */ + format?: WriteInputBarcodeFormat; + /** + * Character set to use for encoding the text. + * Used for Aztec, PDF417, and QRCode only. + * + * @defaultValue `"UTF8"` + */ + characterSet?: CharacterSet; + /** + * Error correction level of the symbol. + * Used for Aztec, PDF417, and QRCode only. + * `-1` means auto. + * + * @defaultValue `-1` + */ + eccLevel?: WriteInputEccLevel; +} +export declare const defaultWriterOptions: Required; +export declare function writerOptionsToZXingWriterOptions(zxingModule: ZXingModule, writerOptions: Required): ZXingWriterOptions; diff --git a/node_modules/zxing-wasm/dist/cjs/core-CzvqAd2a.js b/node_modules/zxing-wasm/dist/cjs/core-CzvqAd2a.js new file mode 100644 index 0000000..8468d45 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/core-CzvqAd2a.js @@ -0,0 +1 @@ +"use strict";const g=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function E(e){return e.join("|")}function T(e){const t=y(e);let r=0,n=g.length-1;for(;r<=n;){const o=Math.floor((r+n)/2),a=g[o],i=y(a);if(i===t)return a;i{const r=e.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${r[1]}/${e}`:t+e}};let m=new WeakMap;function f(e,t){var a;const r=m.get(e);if(r!=null&&r.modulePromise&&(t===void 0||Object.is(t,r.moduleOverrides)))return r.modulePromise;const n=(a=t!=null?t:r==null?void 0:r.moduleOverrides)!=null?a:X,o=e({...n});return m.set(e,{moduleOverrides:n,modulePromise:o}),o}function x(){m=new WeakMap}function Z(e,t){m.set(e,{moduleOverrides:t})}async function z(e,t,r=d){const n={...d,...r},o=await f(e),{size:a}=t,i=new Uint8Array(await t.arrayBuffer()),u=o._malloc(a);o.HEAPU8.set(i,u);const l=o.readBarcodesFromImage(u,a,C(o,n));o._free(u);const c=[];for(let s=0;s; + readBarcodesFromPixmap(bufferPtr: number, imgWidth: number, imgHeight: number, zxingReaderOptions: ZXingReaderOptions): ZXingVector; +} +/** + * @internal + */ +export interface ZXingWriterModule extends ZXingBaseModule { + writeBarcodeToImage(text: string, zxingWriterOptions: ZXingWriterOptions): ZXingWriteResult; +} +/** + * @internal + */ +export interface ZXingFullModule extends ZXingReaderModule, ZXingWriterModule { +} +export type ZXingModule = T extends "reader" ? ZXingReaderModule : T extends "writer" ? ZXingWriterModule : T extends "full" ? ZXingFullModule : ZXingReaderModule | ZXingWriterModule | ZXingFullModule; +export type ZXingReaderModuleFactory = EmscriptenModuleFactory; +export type ZXingWriterModuleFactory = EmscriptenModuleFactory; +export type ZXingFullModuleFactory = EmscriptenModuleFactory; +export type ZXingModuleFactory = T extends "reader" ? ZXingReaderModuleFactory : T extends "writer" ? ZXingWriterModuleFactory : T extends "full" ? ZXingFullModuleFactory : ZXingReaderModuleFactory | ZXingWriterModuleFactory | ZXingFullModuleFactory; +export type ZXingModuleOverrides = Partial; +export declare function getZXingModuleWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides?: ZXingModuleOverrides): Promise>; +export declare function purgeZXingModule(): void; +export declare function setZXingModuleOverridesWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageDataWithFactory(zxingModuleFactory: ZXingModuleFactory, imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, text: string, writerOptions?: WriterOptions): Promise; +export {}; diff --git a/node_modules/zxing-wasm/dist/cjs/full/index.d.ts b/node_modules/zxing-wasm/dist/cjs/full/index.d.ts new file mode 100644 index 0000000..ae019d0 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/full/index.d.ts @@ -0,0 +1,10 @@ +import type { ReaderOptions, WriterOptions } from "../bindings/index.js"; +import { type ZXingFullModule, type ZXingModuleOverrides } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingFullModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/full/index.js b/node_modules/zxing-wasm/dist/cjs/full/index.js new file mode 100644 index 0000000..aacef85 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/full/index.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../core-CzvqAd2a.js");var ar=(()=>{var V;var k=typeof document<"u"&&((V=document.currentScript)==null?void 0:V.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(Ve={}){var Zr,c=Ve,Xr,or,Be=new Promise((r,e)=>{Xr=r,or=e}),Ne=typeof window=="object",Le=typeof Bun<"u",Pr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Gr=Object.assign({},c),qr="./this.program",j="";function ze(r){return c.locateFile?c.locateFile(r,j):j+r}var Kr,Ar;if(Ne||Pr||Le){var Fr;Pr?j=self.location.href:typeof document<"u"&&((Fr=document.currentScript)===null||Fr===void 0?void 0:Fr.tagName.toUpperCase())==="SCRIPT"&&(j=document.currentScript.src),k&&(j=k),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1),Pr&&(Ar=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Kr=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ze=c.print||console.log.bind(console),X=c.printErr||console.error.bind(console);Object.assign(c,Gr),Gr=null,c.arguments&&c.arguments,c.thisProgram&&(qr=c.thisProgram);var sr=c.wasmBinary,ur,Qr=!1,W,E,G,Q,B,$,Yr,Jr;function re(){var r=ur.buffer;c.HEAP8=W=new Int8Array(r),c.HEAP16=G=new Int16Array(r),c.HEAPU8=E=new Uint8Array(r),c.HEAPU16=Q=new Uint16Array(r),c.HEAP32=B=new Int32Array(r),c.HEAPU32=$=new Uint32Array(r),c.HEAPF32=Yr=new Float32Array(r),c.HEAPF64=Jr=new Float64Array(r)}var ee=[],te=[],ne=[];function Xe(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ke)),Rr(ee)}function Ge(){Rr(te)}function qe(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ye)),Rr(ne)}function Ke(r){ee.unshift(r)}function Qe(r){te.unshift(r)}function Ye(r){ne.unshift(r)}var N=0,Y=null;function Je(r){var e;N++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,N)}function rt(r){var e;if(N--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,N),N==0&&Y){var t=Y;Y=null,t()}}function Er(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",X(r),Qr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw or(t),t}var et="data:application/octet-stream;base64,",ie=r=>r.startsWith(et);function tt(){var r="zxing_full.wasm";return ie(r)?r:ze(r)}var lr;function ae(r){if(r==lr&&sr)return new Uint8Array(sr);if(Ar)return Ar(r);throw"both async and sync fetching of the wasm failed"}function nt(r){return sr?Promise.resolve().then(()=>ae(r)):Kr(r).then(e=>new Uint8Array(e),()=>ae(r))}function oe(r,e,t){return nt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{X(`failed to asynchronously prepare wasm: ${n}`),Er(n)})}function it(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!ie(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return X(`wasm streaming compile failed: ${s}`),X("falling back to ArrayBuffer instantiation"),oe(e,t,n)})}):oe(e,t,n)}function at(){return{a:qn}}function ot(){var r,e=at();function t(i,a){return w=i.exports,ur=w.za,re(),_e=w.Da,Qe(w.Aa),rt(),w}Je();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){X(`Module.instantiateWasm callback failed with error: ${i}`),or(i)}return(r=lr)!==null&&r!==void 0||(lr=tt()),it(sr,lr,e,n).catch(or),{}}var Rr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var h=r=>Ee(r),_=()=>Re(),cr=[],fr=0,st=r=>{var e=new kr(r);return e.get_caught()||(e.set_caught(!0),fr--),e.set_rethrown(!1),cr.push(e),Se(r),Ae(r)},I=0,ut=()=>{d(0,0);var r=cr.pop();ke(r.excPtr),I=0};class kr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,W[this.ptr+12]=e}get_caught(){return W[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,W[this.ptr+13]=e}get_rethrown(){return W[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}}var lt=r=>{throw I||(I=r),I},vr=r=>Fe(r),Sr=r=>{var e=I;if(!e)return vr(0),0;var t=new kr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return vr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(Oe(i,n,a))return vr(i),e}return vr(n),e},ct=()=>Sr([]),ft=r=>Sr([r]),vt=(r,e)=>Sr([r,e]),dt=()=>{var r=cr.pop();r||Er("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(cr.push(r),r.set_rethrown(!0),r.set_caught(!1),fr++),I=e,I},pt=(r,e,t)=>{var n=new kr(r);throw n.init(e,t),I=r,fr++,I},ht=()=>fr,_t=()=>{Er("")},dr={},Or=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function J(r){return this.fromWireType($[r>>2])}var q={},L={},pr={},se,hr=r=>{throw new se(r)},z=(r,e,t)=>{r.forEach(o=>pr[o]=e);function n(o){var u=t(o);u.length!==r.length&&hr("Mismatched type converter count");for(var l=0;l{L.hasOwnProperty(o)?i[u]=L[o]:(a.push(o),q.hasOwnProperty(o)||(q[o]=[]),q[o].push(()=>{i[u]=L[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},gt=r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));z([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,v=s[l],p=u.getter,m=u.getterContext,b=s[l+i.length],P=u.setter,T=u.setterContext;o[f]={read:C=>v.fromWireType(p(m,C)),write:(C,Z)=>{var R=[];P(T,C,b.toWireType(R,Z)),Or(R)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var v=t();for(f in o)o[f].write(v,l[f]);return u!==null&&u.push(n,v),v},argPackAdvance:D,readValueFromPointer:J,destructorFunction:n}]})},yt=(r,e,t,n,i)=>{},mt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);ue=r},ue,F=r=>{for(var e="",t=r;E[t];)e+=ue[E[t++]];return e},K,y=r=>{throw new K(r)};function $t(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(L[r]=e,delete pr[r],q.hasOwnProperty(r)){var i=q[r];delete q[r],i.forEach(a=>a())}}function S(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $t(r,e,t)}var D=8,bt=(r,e,t,n)=>{e=F(e),S(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:D,readValueFromPointer:function(i){return this.fromWireType(E[i])},destructorFunction:null})},wt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),jr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Wr=!1,le=r=>{},Tt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},ce=r=>{r.count.value-=1;var e=r.count.value===0;e&&Tt(r)},fe=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=fe(r,e,t.baseClass);return n===null?null:t.downcast(n)},ve={},Ct={},Pt=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},At=(r,e)=>(e=Pt(r,e),Ct[e]),_r=(r,e)=>{(!e.ptrType||!e.ptr)&&hr("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&hr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},rr(Object.create(r,{$$:{value:e,writable:!0}}))};function Ft(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=At(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?_r(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):_r(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=ve[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=fe(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?_r(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):_r(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var rr=r=>typeof FinalizationRegistry>"u"?(rr=e=>e,r):(Wr=new FinalizationRegistry(e=>{ce(e.$$)}),rr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Wr.register(e,i,e)}return e},le=e=>Wr.unregister(e),rr(r)),gr=[],Et=()=>{for(;gr.length;){var r=gr.pop();r.$$.deleteScheduled=!1,r.delete()}},de,Rt=()=>{Object.assign(yr.prototype,{isAliasOf(r){if(!(this instanceof yr)||!(r instanceof yr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=rr(Object.create(Object.getPrototypeOf(this),{$$:{value:wt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),le(this),ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),gr.push(this),gr.length===1&&de&&de(Et),this.$$.deleteScheduled=!0,this}})};function yr(){}var er=(r,e)=>Object.defineProperty(e,"name",{value:r}),pe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),pe(c,r,r),c.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},kt=48,St=57,Ot=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=kt&&e<=St?`_${r}`:r};function jt(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Ir=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function Wt(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Ir(e.$$.ptr,t,this.registeredClass);return n}function Dt(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Ir(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,U.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function It(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Ir(e.$$.ptr,t,this.registeredClass);return n}var Mt=()=>{Object.assign(mr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:D,readValueFromPointer:J,fromWireType:Ft})};function mr(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,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=f,!i&&e.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=It,this.destructorFunction=null):this.toWireType=Dt}var he=(r,e,t)=>{c.hasOwnProperty(r)||hr("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},Ut=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},$r=[],_e,g=r=>{var e=$r[r];return e||(r>=$r.length&&($r.length=r+1),$r[r]=e=_e.get(r)),e},xt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return Ut(r,e,t);var n=g(e)(...t);return n},Ht=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=F(r);function t(){return r.includes("j")?Ht(r,e):g(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Vt=(r,e)=>{var t=er(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},ge,ye=r=>{var e=Pe(r),t=F(e);return x(e),t},br=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!L[a]){if(pr[a]){pr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new ge(`${r}: `+t.map(ye).join([", "]))},Bt=(r,e,t,n,i,a,s,o,u,l,f,v,p)=>{f=F(f),a=O(i,a),o&&(o=O(s,o)),l&&(l=O(u,l)),p=O(v,p);var m=Ot(f);Dr(m,function(){br(`Cannot construct ${f} due to unbound types`,[n])}),z([r,e,t],n?[n]:[],b=>{b=b[0];var P,T;n?(P=b.registeredClass,T=P.instancePrototype):T=yr.prototype;var C=er(f,function(){if(Object.getPrototypeOf(this)!==Z)throw new K("Use 'new' to construct "+f);if(R.constructor_body===void 0)throw new K(f+" has no accessible constructor");for(var xe=arguments.length,Tr=new Array(xe),Cr=0;Cr{for(var t=[],n=0;n>2]);return t};function Nt(r){for(var e=1;e{var s=Mr(e,t);i=O(n,i),z([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{br(`Cannot construct ${o.name} due to unbound types`,s)},z([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=Ur(u,l,null,i,a),[])),[]})},me=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},zt=(r,e,t,n,i,a,s,o,u,l)=>{var f=Mr(t,n);e=F(e),e=me(e),a=O(i,a),z([],[r],v=>{v=v[0];var p=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&v.registeredClass.pureVirtualFunctions.push(e);function m(){br(`Cannot call ${p} due to unbound types`,f)}var b=v.registeredClass.instancePrototype,P=b[e];return P===void 0||P.overloadTable===void 0&&P.className!==v.name&&P.argCount===t-2?(m.argCount=t-2,m.className=v.name,b[e]=m):(pe(b,e,p),b[e].overloadTable[t-2]=m),z([],f,T=>{var C=Ur(p,T,v,a,s);return b[e].overloadTable===void 0?(C.argCount=t-2,b[e]=C):b[e].overloadTable[t-2]=C,[]}),[]})},xr=[],M=[],Hr=r=>{r>9&&--M[r+1]===0&&(M[r]=void 0,xr.push(r))},Zt=()=>M.length/2-5-xr.length,Xt=()=>{M.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Zt},U={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),M[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=xr.pop()||M.length;return M[e]=r,M[e+1]=1,e}}}},$e={name:"emscripten::val",fromWireType:r=>{var e=U.toValue(r);return Hr(r),e},toWireType:(r,e)=>U.toHandle(e),argPackAdvance:D,readValueFromPointer:J,destructorFunction:null},Gt=r=>S(r,$e),qt=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(W[n])}:function(n){return this.fromWireType(E[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(Q[n>>1])};case 4:return t?function(n){return this.fromWireType(B[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Kt=(r,e,t,n)=>{e=F(e);function i(){}i.values={},S(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:D,readValueFromPointer:qt(e,t,n),destructorFunction:null}),Dr(e,i)},Vr=(r,e)=>{var t=L[r];return t===void 0&&y(`${e} has unknown type ${ye(r)}`),t},Qt=(r,e,t)=>{var n=Vr(r,"enum");e=F(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:er(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},Br=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Yt=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Yr[t>>2])};case 8:return function(t){return this.fromWireType(Jr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Jt=(r,e,t)=>{e=F(e),S(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:D,readValueFromPointer:Yt(e,t),destructorFunction:null})},rn=(r,e,t,n,i,a,s,o)=>{var u=Mr(e,t);r=F(r),r=me(r),i=O(n,i),Dr(r,function(){br(`Cannot call ${r} due to unbound types`,u)},e-1),z([],u,l=>{var f=[l[0],null].concat(l.slice(1));return he(r,Ur(r,f,null,i,a),e-1),[]})},en=(r,e,t)=>{switch(e){case 1:return t?n=>W[n]:n=>E[n];case 2:return t?n=>G[n>>1]:n=>Q[n>>1];case 4:return t?n=>B[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},tn=(r,e,t,n,i)=>{e=F(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,v)=>{},l;o?l=function(f,v){return u(v,this.name),v>>>0}:l=function(f,v){return u(v,this.name),v},S(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:D,readValueFromPointer:en(e,t,n!==0),destructorFunction:null})},nn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=$[s>>2],u=$[s+4>>2];return new i(W.buffer,u,o)}t=F(t),S(r,{name:t,fromWireType:a,argPackAdvance:D,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},an=Object.assign({optional:!0},$e),on=(r,e)=>{S(r,an)},sn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},tr=(r,e,t)=>sn(r,E,e,t),un=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},be=typeof TextDecoder<"u"?new TextDecoder:void 0,we=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&be)return be.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},ln=(r,e)=>r?we(E,r,e):"",cn=(r,e)=>{e=F(e);var t=e==="std::string";S(r,{name:e,fromWireType(n){var i=$[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||E[l]==0){var f=l-o,v=ln(o,f);s===void 0?s=v:(s+="\0",s+=v),o=l+1}}else{for(var p=new Array(i),u=0;u>2]=a,t&&s)tr(i,u,a+1);else if(s)for(var l=0;l255&&(x(u),y("String has UTF-16 code units that do not fit in 8 bits")),E[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&Q[n];)++n;if(t=n<<1,t-r>32&&Te)return Te.decode(E.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=G[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},vn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return G[e>>1]=0,e-i},dn=r=>r.length*2,pn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=B[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},hn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(B[e>>2]=o,e+=4,e+4>a)break}return B[e>>2]=0,e-i},_n=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},gn=(r,e,t)=>{t=F(t);var n,i,a,s;e===2?(n=fn,i=vn,s=dn,a=o=>Q[o>>1]):e===4&&(n=pn,i=hn,s=_n,a=o=>$[o>>2]),S(r,{name:t,fromWireType:o=>{for(var u=$[o>>2],l,f=o+4,v=0;v<=u;++v){var p=o+4+v*e;if(v==u||a(p)==0){var m=p-f,b=n(f,m);l===void 0?l=b:(l+="\0",l+=b),f=p+e}}return x(o),l},toWireType:(o,u)=>{typeof u!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=zr(4+l+e);return $[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(x,f),f},argPackAdvance:D,readValueFromPointer:J,destructorFunction(o){x(o)}})},yn=(r,e,t,n,i,a)=>{dr[r]={name:F(e),rawConstructor:O(t,n),rawDestructor:O(i,a),fields:[]}},mn=(r,e,t,n,i,a,s,o,u,l)=>{dr[r].fields.push({fieldName:F(e),getterReturnType:t,getter:O(n,i),getterContext:a,setterArgumentType:s,setter:O(o,u),setterContext:l})},$n=(r,e)=>{e=F(e),S(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},bn=(r,e,t)=>E.copyWithin(r,e,e+t),Nr=[],wn=(r,e,t,n)=>(r=Nr[r],e=U.toValue(e),r(null,e,t,n)),Tn={},Cn=r=>{var e=Tn[r];return e===void 0?F(r):e},Ce=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Pn=r=>r===0?U.toHandle(Ce()):(r=Cn(r),U.toHandle(Ce()[r])),An=r=>{var e=Nr.length;return Nr.push(r),e},Fn=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},En=Reflect.construct,Rn=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&($[e>>2]=U.toHandle(n)),i},kn=(r,e,t)=>{var n=Fn(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,v)=>{for(var p=0,m=0;mu.name).join(", ")}) => ${i.name}>`;return An(er(o,s))},Sn=r=>{r>9&&(M[r+1]+=1)},On=r=>{var e=U.toValue(r);Or(e),Hr(r)},jn=(r,e)=>{r=Vr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return U.toHandle(t)},Wn=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);$[r>>2]=l*60,B[e>>2]=+(o!=u);var f=m=>{var b=m>=0?"-":"+",P=Math.abs(m),T=String(Math.floor(P/60)).padStart(2,"0"),C=String(P%60).padStart(2,"0");return`UTC${b}${T}${C}`},v=f(o),p=f(u);u2147483648,In=(r,e)=>Math.ceil(r/e)*e,Mn=r=>{var e=ur.buffer,t=(r-e.byteLength+65535)/65536|0;try{return ur.grow(t),re(),1}catch{}},Un=r=>{var e=E.length;r>>>=0;var t=Dn();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,In(Math.max(r,i),65536)),s=Mn(a);if(s)return!0}return!1},Lr={},xn=()=>qr||"./this.program",nr=()=>{if(!nr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:xn()};for(var t in Lr)Lr[t]===void 0?delete e[t]:e[t]=Lr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);nr.strings=n}return nr.strings},Hn=(r,e)=>{for(var t=0;t{var t=0;return nr().forEach((n,i)=>{var a=e+t;$[r+i*4>>2]=a,Hn(n,a),t+=n.length+1}),0},Bn=(r,e)=>{var t=nr();$[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),$[e>>2]=n,0},Nn=r=>52;function Ln(r,e,t,n,i){return 70}var zn=[null,[],[]],Zn=(r,e)=>{var t=zn[r];e===0||e===10?((r===1?Ze:X)(we(t)),t.length=0):t.push(e)},Xn=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=$[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Gn=r=>r;se=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},mt(),K=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Rt(),Mt(),ge=c.UnboundTypeError=Vt(Error,"UnboundTypeError"),Xt();var qn={t:st,x:ut,a:ct,j:ft,k:vt,Q:dt,r:pt,ia:ht,d:lt,ea:_t,wa:gt,da:yt,qa:bt,ua:Bt,ta:Lt,G:zt,pa:Gt,H:Kt,q:Qt,Y:Jt,S:rn,z:tn,v:nn,va:on,W:cn,R:gn,E:yn,xa:mn,ra:$n,la:bn,V:wn,ya:Hr,_:Pn,X:kn,Z:Sn,$:On,sa:jn,fa:Wn,ja:Un,ga:Vn,ha:Bn,ka:Nn,ba:Ln,U:Xn,L:_i,D:yi,N:ri,T:Pi,s:vi,b:Kn,F:hi,na:$i,c:ti,ma:bi,i:Jn,h:si,n:ui,P:pi,w:li,K:Ti,M:di,B:mi,J:Ai,ca:Ei,aa:Ri,m:ni,g:ei,e:Yn,f:Qn,O:Ci,l:ai,oa:gi,o:ii,u:ci,y:fi,C:wi,p:oi,I:Fi,A:Gn},w=ot(),Pe=r=>(Pe=w.Ba)(r),x=c._free=r=>(x=c._free=w.Ca)(r),zr=c._malloc=r=>(zr=c._malloc=w.Ea)(r),Ae=r=>(Ae=w.Fa)(r),d=(r,e)=>(d=w.Ga)(r,e),Fe=r=>(Fe=w.Ha)(r),Ee=r=>(Ee=w.Ia)(r),Re=()=>(Re=w.Ja)(),ke=r=>(ke=w.Ka)(r),Se=r=>(Se=w.La)(r),Oe=(r,e,t)=>(Oe=w.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=w.Na)(r,e,t,n,i,a,s);var je=c.dynCall_jiii=(r,e,t,n)=>(je=c.dynCall_jiii=w.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=w.Pa)(r,e,t,n,i);var We=c.dynCall_jiiii=(r,e,t,n,i)=>(We=c.dynCall_jiiii=w.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=w.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=w.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=w.Ta)(r,e,t,n,i,a,s,o,u,l);function Kn(r,e){var t=_();try{return g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function Qn(r,e,t,n){var i=_();try{g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Yn(r,e,t){var n=_();try{g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function Jn(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function ri(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function ei(r,e){var t=_();try{g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function ti(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function ni(r){var e=_();try{g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function ii(r,e,t,n,i,a){var s=_();try{g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function ai(r,e,t,n,i){var a=_();try{g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function oi(r,e,t,n,i,a,s,o,u,l,f){var v=_();try{g(r)(e,t,n,i,a,s,o,u,l,f)}catch(p){if(h(v),p!==p+0)throw p;d(1,0)}}function si(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function ui(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function li(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function ci(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function fi(r,e,t,n,i,a,s,o,u){var l=_();try{g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function vi(r){var e=_();try{return g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function di(r,e,t,n,i,a,s,o,u){var l=_();try{return g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function pi(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function hi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function _i(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function gi(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function yi(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function mi(r,e,t,n,i,a,s,o,u,l){var f=_();try{return g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function $i(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function bi(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function wi(r,e,t,n,i,a,s,o,u,l){var f=_();try{g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function Ti(r,e,t,n,i,a,s,o){var u=_();try{return g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function Ci(r,e,t,n,i,a,s){var o=_();try{g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function Pi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ai(r,e,t,n,i,a,s,o,u,l,f,v){var p=_();try{return g(r)(e,t,n,i,a,s,o,u,l,f,v)}catch(m){if(h(p),m!==m+0)throw m;d(1,0)}}function Fi(r,e,t,n,i,a,s,o,u,l,f,v,p,m,b,P){var T=_();try{g(r)(e,t,n,i,a,s,o,u,l,f,v,p,m,b,P)}catch(C){if(h(T),C!==C+0)throw C;d(1,0)}}function Ei(r,e,t,n){var i=_();try{return je(r,e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ri(r,e,t,n,i){var a=_();try{return We(r,e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}var wr,De;Y=function r(){wr||Ie(),wr||(Y=r)};function Ie(){if(N>0||!De&&(De=1,Xe(),N>0))return;function r(){var e;wr||(wr=1,c.calledRun=1,!Qr&&(Ge(),Xr(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),qe()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Ie(),Zr=Be,Zr}})();function Si(k){return A.getZXingModuleWithFactory(ar,k)}function Oi(k){return A.setZXingModuleOverridesWithFactory(ar,k)}async function ji(k,V){return A.readBarcodesFromImageFileWithFactory(ar,k,V)}async function Wi(k,V){return A.readBarcodesFromImageDataWithFactory(ar,k,V)}async function Di(k,V){return A.writeBarcodeToImageFileWithFactory(ar,k,V)}exports.barcodeFormats=A.barcodeFormats;exports.binarizers=A.binarizers;exports.characterSets=A.characterSets;exports.contentTypes=A.contentTypes;exports.defaultDecodeHints=A.defaultReaderOptions;exports.defaultEncodeHints=A.defaultWriterOptions;exports.defaultReaderOptions=A.defaultReaderOptions;exports.defaultWriterOptions=A.defaultWriterOptions;exports.eanAddOnSymbols=A.eanAddOnSymbols;exports.purgeZXingModule=A.purgeZXingModule;exports.readOutputEccLevels=A.readOutputEccLevels;exports.textModes=A.textModes;exports.writeInputEccLevels=A.writeInputEccLevels;exports.getZXingModule=Si;exports.readBarcodesFromImageData=Wi;exports.readBarcodesFromImageFile=ji;exports.setZXingModuleOverrides=Oi;exports.writeBarcodeToImageFile=Di; diff --git a/node_modules/zxing-wasm/dist/cjs/package.json b/node_modules/zxing-wasm/dist/cjs/package.json new file mode 100644 index 0000000..5bbefff --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/node_modules/zxing-wasm/dist/cjs/reader/index.d.ts b/node_modules/zxing-wasm/dist/cjs/reader/index.d.ts new file mode 100644 index 0000000..2d31960 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/reader/index.d.ts @@ -0,0 +1,8 @@ +import type { ReaderOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingReaderModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export { purgeZXingModule, type ZXingReaderModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/reader/index.js b/node_modules/zxing-wasm/dist/cjs/reader/index.js new file mode 100644 index 0000000..c099fbd --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/reader/index.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../core-CzvqAd2a.js");var Cr=(()=>{var Z;var j=typeof document<"u"&&((Z=document.currentScript)==null?void 0:Z.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(Ve={}){var Zr,c=Ve,Xr,ar,Be=new Promise((r,e)=>{Xr=r,ar=e}),Ne=typeof window=="object",ze=typeof Bun<"u",Pr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Gr=Object.assign({},c),qr="./this.program",O="";function Le(r){return c.locateFile?c.locateFile(r,O):O+r}var Kr,Ar;if(Ne||Pr||ze){var Fr;Pr?O=self.location.href:typeof document<"u"&&((Fr=document.currentScript)===null||Fr===void 0?void 0:Fr.tagName.toUpperCase())==="SCRIPT"&&(O=document.currentScript.src),j&&(O=j),O.startsWith("blob:")?O="":O=O.substr(0,O.replace(/[?#].*/,"").lastIndexOf("/")+1),Pr&&(Ar=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Kr=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ze=c.print||console.log.bind(console),X=c.printErr||console.error.bind(console);Object.assign(c,Gr),Gr=null,c.arguments&&c.arguments,c.thisProgram&&(qr=c.thisProgram);var or=c.wasmBinary,sr,Qr=!1,W,F,G,Q,V,$,Yr,Jr;function re(){var r=sr.buffer;c.HEAP8=W=new Int8Array(r),c.HEAP16=G=new Int16Array(r),c.HEAPU8=F=new Uint8Array(r),c.HEAPU16=Q=new Uint16Array(r),c.HEAP32=V=new Int32Array(r),c.HEAPU32=$=new Uint32Array(r),c.HEAPF32=Yr=new Float32Array(r),c.HEAPF64=Jr=new Float64Array(r)}var ee=[],te=[],ne=[];function Xe(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ke)),Rr(ee)}function Ge(){Rr(te)}function qe(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ye)),Rr(ne)}function Ke(r){ee.unshift(r)}function Qe(r){te.unshift(r)}function Ye(r){ne.unshift(r)}var B=0,Y=null;function Je(r){var e;B++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,B)}function rt(r){var e;if(B--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,B),B==0&&Y){var t=Y;Y=null,t()}}function Er(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",X(r),Qr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw ar(t),t}var et="data:application/octet-stream;base64,",ie=r=>r.startsWith(et);function tt(){var r="zxing_reader.wasm";return ie(r)?r:Le(r)}var ur;function ae(r){if(r==ur&&or)return new Uint8Array(or);if(Ar)return Ar(r);throw"both async and sync fetching of the wasm failed"}function nt(r){return or?Promise.resolve().then(()=>ae(r)):Kr(r).then(e=>new Uint8Array(e),()=>ae(r))}function oe(r,e,t){return nt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{X(`failed to asynchronously prepare wasm: ${n}`),Er(n)})}function it(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!ie(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return X(`wasm streaming compile failed: ${s}`),X("falling back to ArrayBuffer instantiation"),oe(e,t,n)})}):oe(e,t,n)}function at(){return{a:qn}}function ot(){var r,e=at();function t(i,a){return w=i.exports,sr=w.za,re(),_e=w.Da,Qe(w.Aa),rt(),w}Je();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){X(`Module.instantiateWasm callback failed with error: ${i}`),ar(i)}return(r=ur)!==null&&r!==void 0||(ur=tt()),it(or,ur,e,n).catch(ar),{}}var Rr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var h=r=>Ee(r),_=()=>Re(),lr=[],cr=0,st=r=>{var e=new kr(r);return e.get_caught()||(e.set_caught(!0),cr--),e.set_rethrown(!1),lr.push(e),Se(r),Ae(r)},M=0,ut=()=>{d(0,0);var r=lr.pop();ke(r.excPtr),M=0};class kr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,W[this.ptr+12]=e}get_caught(){return W[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,W[this.ptr+13]=e}get_rethrown(){return W[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}}var lt=r=>{throw M||(M=r),M},fr=r=>Fe(r),Sr=r=>{var e=M;if(!e)return fr(0),0;var t=new kr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return fr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(je(i,n,a))return fr(i),e}return fr(n),e},ct=()=>Sr([]),ft=r=>Sr([r]),vt=(r,e)=>Sr([r,e]),dt=()=>{var r=lr.pop();r||Er("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(lr.push(r),r.set_rethrown(!0),r.set_caught(!1),cr++),M=e,M},pt=(r,e,t)=>{var n=new kr(r);throw n.init(e,t),M=r,cr++,M},ht=()=>cr,_t=()=>{Er("")},vr={},jr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function J(r){return this.fromWireType($[r>>2])}var q={},N={},dr={},se,pr=r=>{throw new se(r)},z=(r,e,t)=>{r.forEach(o=>dr[o]=e);function n(o){var u=t(o);u.length!==r.length&&pr("Mismatched type converter count");for(var l=0;l{N.hasOwnProperty(o)?i[u]=N[o]:(a.push(o),q.hasOwnProperty(o)||(q[o]=[]),q[o].push(()=>{i[u]=N[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},gt=r=>{var e=vr[r];delete vr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));z([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,v=s[l],p=u.getter,m=u.getterContext,b=s[l+i.length],P=u.setter,T=u.setterContext;o[f]={read:C=>v.fromWireType(p(m,C)),write:(C,L)=>{var E=[];P(T,C,b.toWireType(E,L)),jr(E)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var v=t();for(f in o)o[f].write(v,l[f]);return u!==null&&u.push(n,v),v},argPackAdvance:D,readValueFromPointer:J,destructorFunction:n}]})},yt=(r,e,t,n,i)=>{},mt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);ue=r},ue,A=r=>{for(var e="",t=r;F[t];)e+=ue[F[t++]];return e},K,y=r=>{throw new K(r)};function $t(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),N.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(N[r]=e,delete dr[r],q.hasOwnProperty(r)){var i=q[r];delete q[r],i.forEach(a=>a())}}function k(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $t(r,e,t)}var D=8,bt=(r,e,t,n)=>{e=A(e),k(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:D,readValueFromPointer:function(i){return this.fromWireType(F[i])},destructorFunction:null})},wt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Or=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Wr=!1,le=r=>{},Tt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},ce=r=>{r.count.value-=1;var e=r.count.value===0;e&&Tt(r)},fe=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=fe(r,e,t.baseClass);return n===null?null:t.downcast(n)},ve={},Ct={},Pt=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},At=(r,e)=>(e=Pt(r,e),Ct[e]),hr=(r,e)=>{(!e.ptrType||!e.ptr)&&pr("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&pr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},rr(Object.create(r,{$$:{value:e,writable:!0}}))};function Ft(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=At(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?hr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):hr(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=ve[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=fe(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?hr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):hr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var rr=r=>typeof FinalizationRegistry>"u"?(rr=e=>e,r):(Wr=new FinalizationRegistry(e=>{ce(e.$$)}),rr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Wr.register(e,i,e)}return e},le=e=>Wr.unregister(e),rr(r)),_r=[],Et=()=>{for(;_r.length;){var r=_r.pop();r.$$.deleteScheduled=!1,r.delete()}},de,Rt=()=>{Object.assign(gr.prototype,{isAliasOf(r){if(!(this instanceof gr)||!(r instanceof gr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||Or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=rr(Object.create(Object.getPrototypeOf(this),{$$:{value:wt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),le(this),ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),_r.push(this),_r.length===1&&de&&de(Et),this.$$.deleteScheduled=!0,this}})};function gr(){}var er=(r,e)=>Object.defineProperty(e,"name",{value:r}),pe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),pe(c,r,r),c.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},kt=48,St=57,jt=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=kt&&e<=St?`_${r}`:r};function Ot(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Mr=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function Wt(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Mr(e.$$.ptr,t,this.registeredClass);return n}function Dt(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Mr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,x.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function Mt(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Mr(e.$$.ptr,t,this.registeredClass);return n}var Ut=()=>{Object.assign(yr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:D,readValueFromPointer:J,fromWireType:Ft})};function yr(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,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=f,!i&&e.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=Dt}var he=(r,e,t)=>{c.hasOwnProperty(r)||pr("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},xt=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},mr=[],_e,g=r=>{var e=mr[r];return e||(r>=mr.length&&(mr.length=r+1),mr[r]=e=_e.get(r)),e},It=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return xt(r,e,t);var n=g(e)(...t);return n},Ht=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=A(r);function t(){return r.includes("j")?Ht(r,e):g(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Vt=(r,e)=>{var t=er(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},ge,ye=r=>{var e=Pe(r),t=A(e);return I(e),t},$r=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!N[a]){if(dr[a]){dr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new ge(`${r}: `+t.map(ye).join([", "]))},Bt=(r,e,t,n,i,a,s,o,u,l,f,v,p)=>{f=A(f),a=S(i,a),o&&(o=S(s,o)),l&&(l=S(u,l)),p=S(v,p);var m=jt(f);Dr(m,function(){$r(`Cannot construct ${f} due to unbound types`,[n])}),z([r,e,t],n?[n]:[],b=>{b=b[0];var P,T;n?(P=b.registeredClass,T=P.instancePrototype):T=gr.prototype;var C=er(f,function(){if(Object.getPrototypeOf(this)!==L)throw new K("Use 'new' to construct "+f);if(E.constructor_body===void 0)throw new K(f+" has no accessible constructor");for(var Ie=arguments.length,wr=new Array(Ie),Tr=0;Tr{for(var t=[],n=0;n>2]);return t};function Nt(r){for(var e=1;e{var s=Ur(e,t);i=S(n,i),z([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{$r(`Cannot construct ${o.name} due to unbound types`,s)},z([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=xr(u,l,null,i,a),[])),[]})},me=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Lt=(r,e,t,n,i,a,s,o,u,l)=>{var f=Ur(t,n);e=A(e),e=me(e),a=S(i,a),z([],[r],v=>{v=v[0];var p=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&v.registeredClass.pureVirtualFunctions.push(e);function m(){$r(`Cannot call ${p} due to unbound types`,f)}var b=v.registeredClass.instancePrototype,P=b[e];return P===void 0||P.overloadTable===void 0&&P.className!==v.name&&P.argCount===t-2?(m.argCount=t-2,m.className=v.name,b[e]=m):(pe(b,e,p),b[e].overloadTable[t-2]=m),z([],f,T=>{var C=xr(p,T,v,a,s);return b[e].overloadTable===void 0?(C.argCount=t-2,b[e]=C):b[e].overloadTable[t-2]=C,[]}),[]})},Ir=[],U=[],Hr=r=>{r>9&&--U[r+1]===0&&(U[r]=void 0,Ir.push(r))},Zt=()=>U.length/2-5-Ir.length,Xt=()=>{U.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Zt},x={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),U[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ir.pop()||U.length;return U[e]=r,U[e+1]=1,e}}}},$e={name:"emscripten::val",fromWireType:r=>{var e=x.toValue(r);return Hr(r),e},toWireType:(r,e)=>x.toHandle(e),argPackAdvance:D,readValueFromPointer:J,destructorFunction:null},Gt=r=>k(r,$e),qt=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(W[n])}:function(n){return this.fromWireType(F[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(Q[n>>1])};case 4:return t?function(n){return this.fromWireType(V[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Kt=(r,e,t,n)=>{e=A(e);function i(){}i.values={},k(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:D,readValueFromPointer:qt(e,t,n),destructorFunction:null}),Dr(e,i)},Vr=(r,e)=>{var t=N[r];return t===void 0&&y(`${e} has unknown type ${ye(r)}`),t},Qt=(r,e,t)=>{var n=Vr(r,"enum");e=A(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:er(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},Br=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Yt=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Yr[t>>2])};case 8:return function(t){return this.fromWireType(Jr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Jt=(r,e,t)=>{e=A(e),k(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:D,readValueFromPointer:Yt(e,t),destructorFunction:null})},rn=(r,e,t,n,i,a,s,o)=>{var u=Ur(e,t);r=A(r),r=me(r),i=S(n,i),Dr(r,function(){$r(`Cannot call ${r} due to unbound types`,u)},e-1),z([],u,l=>{var f=[l[0],null].concat(l.slice(1));return he(r,xr(r,f,null,i,a),e-1),[]})},en=(r,e,t)=>{switch(e){case 1:return t?n=>W[n]:n=>F[n];case 2:return t?n=>G[n>>1]:n=>Q[n>>1];case 4:return t?n=>V[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},tn=(r,e,t,n,i)=>{e=A(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,v)=>{},l;o?l=function(f,v){return u(v,this.name),v>>>0}:l=function(f,v){return u(v,this.name),v},k(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:D,readValueFromPointer:en(e,t,n!==0),destructorFunction:null})},nn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=$[s>>2],u=$[s+4>>2];return new i(W.buffer,u,o)}t=A(t),k(r,{name:t,fromWireType:a,argPackAdvance:D,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},an=Object.assign({optional:!0},$e),on=(r,e)=>{k(r,an)},sn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},tr=(r,e,t)=>sn(r,F,e,t),un=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},be=typeof TextDecoder<"u"?new TextDecoder:void 0,we=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&be)return be.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},ln=(r,e)=>r?we(F,r,e):"",cn=(r,e)=>{e=A(e);var t=e==="std::string";k(r,{name:e,fromWireType(n){var i=$[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||F[l]==0){var f=l-o,v=ln(o,f);s===void 0?s=v:(s+="\0",s+=v),o=l+1}}else{for(var p=new Array(i),u=0;u>2]=a,t&&s)tr(i,u,a+1);else if(s)for(var l=0;l255&&(I(u),y("String has UTF-16 code units that do not fit in 8 bits")),F[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&Q[n];)++n;if(t=n<<1,t-r>32&&Te)return Te.decode(F.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=G[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},vn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return G[e>>1]=0,e-i},dn=r=>r.length*2,pn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=V[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},hn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(V[e>>2]=o,e+=4,e+4>a)break}return V[e>>2]=0,e-i},_n=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},gn=(r,e,t)=>{t=A(t);var n,i,a,s;e===2?(n=fn,i=vn,s=dn,a=o=>Q[o>>1]):e===4&&(n=pn,i=hn,s=_n,a=o=>$[o>>2]),k(r,{name:t,fromWireType:o=>{for(var u=$[o>>2],l,f=o+4,v=0;v<=u;++v){var p=o+4+v*e;if(v==u||a(p)==0){var m=p-f,b=n(f,m);l===void 0?l=b:(l+="\0",l+=b),f=p+e}}return I(o),l},toWireType:(o,u)=>{typeof u!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=Lr(4+l+e);return $[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(I,f),f},argPackAdvance:D,readValueFromPointer:J,destructorFunction(o){I(o)}})},yn=(r,e,t,n,i,a)=>{vr[r]={name:A(e),rawConstructor:S(t,n),rawDestructor:S(i,a),fields:[]}},mn=(r,e,t,n,i,a,s,o,u,l)=>{vr[r].fields.push({fieldName:A(e),getterReturnType:t,getter:S(n,i),getterContext:a,setterArgumentType:s,setter:S(o,u),setterContext:l})},$n=(r,e)=>{e=A(e),k(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},bn=(r,e,t)=>F.copyWithin(r,e,e+t),Nr=[],wn=(r,e,t,n)=>(r=Nr[r],e=x.toValue(e),r(null,e,t,n)),Tn={},Cn=r=>{var e=Tn[r];return e===void 0?A(r):e},Ce=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Pn=r=>r===0?x.toHandle(Ce()):(r=Cn(r),x.toHandle(Ce()[r])),An=r=>{var e=Nr.length;return Nr.push(r),e},Fn=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},En=Reflect.construct,Rn=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&($[e>>2]=x.toHandle(n)),i},kn=(r,e,t)=>{var n=Fn(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,v)=>{for(var p=0,m=0;mu.name).join(", ")}) => ${i.name}>`;return An(er(o,s))},Sn=r=>{r>9&&(U[r+1]+=1)},jn=r=>{var e=x.toValue(r);jr(e),Hr(r)},On=(r,e)=>{r=Vr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return x.toHandle(t)},Wn=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);$[r>>2]=l*60,V[e>>2]=+(o!=u);var f=m=>{var b=m>=0?"-":"+",P=Math.abs(m),T=String(Math.floor(P/60)).padStart(2,"0"),C=String(P%60).padStart(2,"0");return`UTC${b}${T}${C}`},v=f(o),p=f(u);u2147483648,Mn=(r,e)=>Math.ceil(r/e)*e,Un=r=>{var e=sr.buffer,t=(r-e.byteLength+65535)/65536|0;try{return sr.grow(t),re(),1}catch{}},xn=r=>{var e=F.length;r>>>=0;var t=Dn();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,Mn(Math.max(r,i),65536)),s=Un(a);if(s)return!0}return!1},zr={},In=()=>qr||"./this.program",nr=()=>{if(!nr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:In()};for(var t in zr)zr[t]===void 0?delete e[t]:e[t]=zr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);nr.strings=n}return nr.strings},Hn=(r,e)=>{for(var t=0;t{var t=0;return nr().forEach((n,i)=>{var a=e+t;$[r+i*4>>2]=a,Hn(n,a),t+=n.length+1}),0},Bn=(r,e)=>{var t=nr();$[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),$[e>>2]=n,0},Nn=r=>52;function zn(r,e,t,n,i){return 70}var Ln=[null,[],[]],Zn=(r,e)=>{var t=Ln[r];e===0||e===10?((r===1?Ze:X)(we(t)),t.length=0):t.push(e)},Xn=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=$[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Gn=r=>r;se=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},mt(),K=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Rt(),Ut(),ge=c.UnboundTypeError=Vt(Error,"UnboundTypeError"),Xt();var qn={t:st,x:ut,a:ct,j:ft,k:vt,O:dt,q:pt,ga:ht,d:lt,ca:_t,va:gt,ba:yt,pa:bt,ta:Bt,sa:zt,E:Lt,oa:Gt,F:Kt,n:Qt,W:Jt,X:rn,y:tn,u:nn,ua:on,V:cn,P:gn,L:yn,wa:mn,qa:$n,ja:bn,T:wn,xa:Hr,ya:Pn,U:kn,Y:Sn,Z:jn,ra:On,da:Wn,ha:xn,ea:Vn,fa:Bn,ia:Nn,$:zn,S:Xn,J:_i,C:yi,Q:ri,R:Pi,r:vi,b:Kn,D:hi,la:$i,c:ti,ka:bi,h:Jn,i:oi,s:si,N:pi,w:li,I:Ti,K:di,z:mi,H:Ai,aa:Ei,_:Ri,l:ni,f:ei,e:Yn,g:Qn,M:Ci,m:ai,ma:gi,p:ui,v:ci,na:fi,B:wi,o:ii,G:Fi,A:Gn},w=ot(),Pe=r=>(Pe=w.Ba)(r),I=c._free=r=>(I=c._free=w.Ca)(r),Lr=c._malloc=r=>(Lr=c._malloc=w.Ea)(r),Ae=r=>(Ae=w.Fa)(r),d=(r,e)=>(d=w.Ga)(r,e),Fe=r=>(Fe=w.Ha)(r),Ee=r=>(Ee=w.Ia)(r),Re=()=>(Re=w.Ja)(),ke=r=>(ke=w.Ka)(r),Se=r=>(Se=w.La)(r),je=(r,e,t)=>(je=w.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=w.Na)(r,e,t,n,i,a,s);var Oe=c.dynCall_jiii=(r,e,t,n)=>(Oe=c.dynCall_jiii=w.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=w.Pa)(r,e,t,n,i);var We=c.dynCall_jiiii=(r,e,t,n,i)=>(We=c.dynCall_jiiii=w.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=w.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=w.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=w.Ta)(r,e,t,n,i,a,s,o,u,l);function Kn(r,e){var t=_();try{return g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function Qn(r,e,t,n){var i=_();try{g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Yn(r,e,t){var n=_();try{g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function Jn(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function ri(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function ei(r,e){var t=_();try{g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function ti(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function ni(r){var e=_();try{g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function ii(r,e,t,n,i,a,s,o,u,l,f){var v=_();try{g(r)(e,t,n,i,a,s,o,u,l,f)}catch(p){if(h(v),p!==p+0)throw p;d(1,0)}}function ai(r,e,t,n,i){var a=_();try{g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function oi(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function si(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function ui(r,e,t,n,i,a){var s=_();try{g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function li(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function ci(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function fi(r,e,t,n,i,a,s,o,u){var l=_();try{g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function vi(r){var e=_();try{return g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function di(r,e,t,n,i,a,s,o,u){var l=_();try{return g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function pi(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function hi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function _i(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function gi(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function yi(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function mi(r,e,t,n,i,a,s,o,u,l){var f=_();try{return g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function $i(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function bi(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function wi(r,e,t,n,i,a,s,o,u,l){var f=_();try{g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function Ti(r,e,t,n,i,a,s,o){var u=_();try{return g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function Ci(r,e,t,n,i,a,s){var o=_();try{g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function Pi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ai(r,e,t,n,i,a,s,o,u,l,f,v){var p=_();try{return g(r)(e,t,n,i,a,s,o,u,l,f,v)}catch(m){if(h(p),m!==m+0)throw m;d(1,0)}}function Fi(r,e,t,n,i,a,s,o,u,l,f,v,p,m,b,P){var T=_();try{g(r)(e,t,n,i,a,s,o,u,l,f,v,p,m,b,P)}catch(C){if(h(T),C!==C+0)throw C;d(1,0)}}function Ei(r,e,t,n){var i=_();try{return Oe(r,e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ri(r,e,t,n,i){var a=_();try{return We(r,e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}var br,De;Y=function r(){br||Me(),br||(Y=r)};function Me(){if(B>0||!De&&(De=1,Xe(),B>0))return;function r(){var e;br||(br=1,c.calledRun=1,!Qr&&(Ge(),Xr(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),qe()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Me(),Zr=Be,Zr}})();function Si(j){return R.getZXingModuleWithFactory(Cr,j)}function ji(j){return R.setZXingModuleOverridesWithFactory(Cr,j)}async function Oi(j,Z){return R.readBarcodesFromImageFileWithFactory(Cr,j,Z)}async function Wi(j,Z){return R.readBarcodesFromImageDataWithFactory(Cr,j,Z)}exports.barcodeFormats=R.barcodeFormats;exports.binarizers=R.binarizers;exports.characterSets=R.characterSets;exports.contentTypes=R.contentTypes;exports.defaultDecodeHints=R.defaultReaderOptions;exports.defaultReaderOptions=R.defaultReaderOptions;exports.eanAddOnSymbols=R.eanAddOnSymbols;exports.purgeZXingModule=R.purgeZXingModule;exports.readOutputEccLevels=R.readOutputEccLevels;exports.textModes=R.textModes;exports.getZXingModule=Si;exports.readBarcodesFromImageData=Wi;exports.readBarcodesFromImageFile=Oi;exports.setZXingModuleOverrides=ji; diff --git a/node_modules/zxing-wasm/dist/cjs/writer/index.d.ts b/node_modules/zxing-wasm/dist/cjs/writer/index.d.ts new file mode 100644 index 0000000..a312e07 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/writer/index.d.ts @@ -0,0 +1,13 @@ +/** + * The writer part API of this package is subject to change a lot. + * Please track the status of [this issue](https://github.com/zxing-cpp/zxing-cpp/issues/332). + * + * @packageDocumentation + */ +import type { WriterOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingWriterModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingWriterModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/writer/index.js b/node_modules/zxing-wasm/dist/cjs/writer/index.js new file mode 100644 index 0000000..ae03bd1 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/writer/index.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../core-CzvqAd2a.js");var wr=(()=>{var G;var S=typeof document<"u"&&((G=document.currentScript)==null?void 0:G.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(ie={}){var Tr,f=ie,$r,K,oe=new Promise((r,e)=>{$r=r,K=e}),se=typeof window=="object",ue=typeof Bun<"u",ur=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Ar=Object.assign({},f),A="";function fe(r){return f.locateFile?f.locateFile(r,A):A+r}var Er,fr;if(se||ur||ue){var cr;ur?A=self.location.href:typeof document<"u"&&((cr=document.currentScript)===null||cr===void 0?void 0:cr.tagName.toUpperCase())==="SCRIPT"&&(A=document.currentScript.src),S&&(A=S),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),ur&&(fr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Er=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}f.print||console.log.bind(console);var B=f.printErr||console.error.bind(console);Object.assign(f,Ar),Ar=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram;var J=f.wasmBinary,Q,Cr=!1,U,b,j,N,D,_,Fr,Rr;function Pr(){var r=Q.buffer;f.HEAP8=U=new Int8Array(r),f.HEAP16=j=new Int16Array(r),f.HEAPU8=b=new Uint8Array(r),f.HEAPU16=N=new Uint16Array(r),f.HEAP32=D=new Int32Array(r),f.HEAPU32=_=new Uint32Array(r),f.HEAPF32=Fr=new Float32Array(r),f.HEAPF64=Rr=new Float64Array(r)}var Wr=[],kr=[],Sr=[];function ce(){var r=f.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(de)),lr(Wr)}function ve(){lr(kr)}function le(){var r=f.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(he)),lr(Sr)}function de(r){Wr.unshift(r)}function _e(r){kr.unshift(r)}function he(r){Sr.unshift(r)}var x=0,X=null;function pe(r){var e;x++,(e=f.monitorRunDependencies)===null||e===void 0||e.call(f,x)}function ge(r){var e;if(x--,(e=f.monitorRunDependencies)===null||e===void 0||e.call(f,x),x==0&&X){var t=X;X=null,t()}}function vr(r){var e;(e=f.onAbort)===null||e===void 0||e.call(f,r),r="Aborted("+r+")",B(r),Cr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw K(t),t}var me="data:application/octet-stream;base64,",Ur=r=>r.startsWith(me);function ye(){var r="zxing_writer.wasm";return Ur(r)?r:fe(r)}var Y;function Mr(r){if(r==Y&&J)return new Uint8Array(J);if(fr)return fr(r);throw"both async and sync fetching of the wasm failed"}function be(r){return J?Promise.resolve().then(()=>Mr(r)):Er(r).then(e=>new Uint8Array(e),()=>Mr(r))}function xr(r,e,t){return be(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{B(`failed to asynchronously prepare wasm: ${n}`),vr(n)})}function we(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Ur(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return B(`wasm streaming compile failed: ${o}`),B("falling back to ArrayBuffer instantiation"),xr(e,t,n)})}):xr(e,t,n)}function Te(){return{a:Ht}}function $e(){var r,e=Te();function t(a,i){return y=a.exports,Q=y.Y,Pr(),Xr=y.$,_e(y.Z),ge(),y}pe();function n(a){t(a.instance)}if(f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(a){B(`Module.instantiateWasm callback failed with error: ${a}`),K(a)}return(r=Y)!==null&&r!==void 0||(Y=ye()),we(J,Y,e,n).catch(K),{}}var lr=r=>{r.forEach(e=>e(f))};f.noExitRuntime;var g=r=>Qr(r),m=()=>Yr(),z=[],Ae=r=>{var e=new dr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),z.push(e),re(r),te(r)},F=0,Ee=()=>{p(0,0);var r=z.pop();zr(r.excPtr),F=0};class dr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){_[this.ptr+4>>2]=e}get_type(){return _[this.ptr+4>>2]}set_destructor(e){_[this.ptr+8>>2]=e}get_destructor(){return _[this.ptr+8>>2]}set_caught(e){e=e?1:0,U[this.ptr+12]=e}get_caught(){return U[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,U[this.ptr+13]=e}get_rethrown(){return U[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){_[this.ptr+16>>2]=e}get_adjusted_ptr(){return _[this.ptr+16>>2]}}var Ce=r=>{throw F||(F=r),F},rr=r=>Jr(r),_r=r=>{var e=F;if(!e)return rr(0),0;var t=new dr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return rr(0),e;for(var a of r){if(a===0||a===n)break;var i=t.ptr+16;if(ee(a,n,i))return rr(a),e}return rr(n),e},Fe=()=>_r([]),Re=r=>_r([r]),Pe=(r,e)=>_r([r,e]),We=()=>{var r=z.pop();r||vr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(z.push(r),r.set_rethrown(!0),r.set_caught(!1)),F=e,F},ke=(r,e,t)=>{var n=new dr(r);throw n.init(e,t),F=r,F},Se=()=>{vr("")},er={},hr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function tr(r){return this.fromWireType(_[r>>2])}var V={},I={},nr={},Ir,Or=r=>{throw new Ir(r)},jr=(r,e,t)=>{r.forEach(s=>nr[s]=e);function n(s){var u=t(s);u.length!==r.length&&Or("Mismatched type converter count");for(var c=0;c{I.hasOwnProperty(s)?a[u]=I[s]:(i.push(s),V.hasOwnProperty(s)||(V[s]=[]),V[s].push(()=>{a[u]=I[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Ue=r=>{var e=er[r];delete er[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));jr([r],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,l=o[c],d=u.getter,T=u.getterContext,M=o[c+a.length],L=u.setter,C=u.setterContext;s[v]={read:q=>l.fromWireType(d(T,q)),write:(q,br)=>{var sr=[];L(C,q,M.toWireType(sr,br)),hr(sr)}}}),[{name:e.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in s)s[v].write(l,c[v]);return u!==null&&u.push(n,l),l},argPackAdvance:R,readValueFromPointer:tr,destructorFunction:n}]})},Me=(r,e,t,n,a)=>{},xe=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Dr=r},Dr,w=r=>{for(var e="",t=r;b[t];)e+=Dr[b[t++]];return e},Vr,$=r=>{throw new Vr(r)};function Ie(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),I.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(I[r]=e,delete nr[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach(i=>i())}}function E(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ie(r,e,t)}var R=8,Oe=(r,e,t,n)=>{e=w(e),E(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:R,readValueFromPointer:function(a){return this.fromWireType(b[a])},destructorFunction:null})},pr=[],P=[],gr=r=>{r>9&&--P[r+1]===0&&(P[r]=void 0,pr.push(r))},je=()=>P.length/2-5-pr.length,De=()=>{P.push(0,1,void 0,1,null,1,!0,1,!1,1),f.count_emval_handles=je},O={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),P[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=pr.pop()||P.length;return P[e]=r,P[e+1]=1,e}}}},Ve={name:"emscripten::val",fromWireType:r=>{var e=O.toValue(r);return gr(r),e},toWireType:(r,e)=>O.toHandle(e),argPackAdvance:R,readValueFromPointer:tr,destructorFunction:null},He=r=>E(r,Ve),Be=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o{f.hasOwnProperty(r)?((t===void 0||f[r].overloadTable!==void 0&&f[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Be(f,r,r),f.hasOwnProperty(t)&&$(`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))},Ne=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(U[n])}:function(n){return this.fromWireType(b[n])};case 2:return t?function(n){return this.fromWireType(j[n>>1])}:function(n){return this.fromWireType(N[n>>1])};case 4:return t?function(n){return this.fromWireType(D[n>>2])}:function(n){return this.fromWireType(_[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Xe=(r,e,t,n)=>{e=w(e);function a(){}a.values={},E(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:R,readValueFromPointer:Ne(e,t,n),destructorFunction:null}),Hr(e,a)},ar=(r,e)=>Object.defineProperty(e,"name",{value:r}),Br=r=>{var e=Kr(r),t=w(e);return W(e),t},Nr=(r,e)=>{var t=I[r];return t===void 0&&$(`${e} has unknown type ${Br(r)}`),t},Ze=(r,e,t)=>{var n=Nr(r,"enum");e=w(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ar(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Le=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Fr[t>>2])};case 8:return function(t){return this.fromWireType(Rr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},qe=(r,e,t)=>{e=w(e),E(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:R,readValueFromPointer:Le(e,t),destructorFunction:null})};function Ge(r){for(var e=1;e{for(var t=[],n=0;n>2]);return t},Qe=(r,e,t)=>{f.hasOwnProperty(r)||Or("Replacing nonexistent public symbol"),f[r].overloadTable!==void 0&&t!==void 0?f[r].overloadTable[t]=e:(f[r]=e,f[r].argCount=t)},Ye=(r,e,t)=>{r=r.replace(/p/g,"i");var n=f["dynCall_"+r];return n(e,...t)},ir=[],Xr,h=r=>{var e=ir[r];return e||(r>=ir.length&&(ir.length=r+1),ir[r]=e=Xr.get(r)),e},ze=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return Ye(r,e,t);var n=h(e)(...t);return n},rt=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a{r=w(r);function t(){return r.includes("j")?rt(r,e):h(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},et=(r,e)=>{var t=ar(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Zr,tt=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!I[i]){if(nr[i]){nr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Zr(`${r}: `+t.map(Br).join([", "]))},nt=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},at=(r,e,t,n,a,i,o,s)=>{var u=Je(e,t);r=w(r),r=nt(r),a=Z(n,a),Hr(r,function(){tt(`Cannot call ${r} due to unbound types`,u)},e-1),jr([],u,c=>{var v=[c[0],null].concat(c.slice(1));return Qe(r,Ke(r,v,null,a,i),e-1),[]})},it=(r,e,t)=>{switch(e){case 1:return t?n=>U[n]:n=>b[n];case 2:return t?n=>j[n>>1]:n=>N[n>>1];case 4:return t?n=>D[n>>2]:n=>_[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},ot=(r,e,t,n,a)=>{e=w(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<>>o}var s=e.includes("unsigned"),u=(v,l)=>{},c;s?c=function(v,l){return u(l,this.name),l>>>0}:c=function(v,l){return u(l,this.name),l},E(r,{name:e,fromWireType:i,toWireType:c,argPackAdvance:R,readValueFromPointer:it(e,t,n!==0),destructorFunction:null})},st=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=_[o>>2],u=_[o+4>>2];return new a(U.buffer,u,s)}t=w(t),E(r,{name:t,fromWireType:i,argPackAdvance:R,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},ut=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o=55296&&s<=57343){var u=r.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},ft=(r,e,t)=>ut(r,b,e,t),ct=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},Lr=typeof TextDecoder<"u"?new TextDecoder:void 0,vt=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Lr)return Lr.decode(r.subarray(e,a));for(var i="";e>10,56320|c&1023)}}return i},lt=(r,e)=>r?vt(b,r,e):"",dt=(r,e)=>{e=w(e);var t=e==="std::string";E(r,{name:e,fromWireType(n){var a=_[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||b[c]==0){var v=c-s,l=lt(s,v);o===void 0?o=l:(o+="\0",o+=l),s=c+1}}else{for(var d=new Array(a),u=0;u>2]=i,t&&o)ft(a,u,i+1);else if(o)for(var c=0;c255&&(W(u),$("String has UTF-16 code units that do not fit in 8 bits")),b[u+c]=v}else for(var c=0;c{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&N[n];)++n;if(t=n<<1,t-r>32&&qr)return qr.decode(b.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=j[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},ht=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t>1]=s,e+=2}return j[e>>1]=0,e-a},pt=r=>r.length*2,gt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=D[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},mt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o=55296&&s<=57343){var u=r.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(D[e>>2]=s,e+=4,e+4>i)break}return D[e>>2]=0,e-a},yt=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},bt=(r,e,t)=>{t=w(t);var n,a,i,o;e===2?(n=_t,a=ht,o=pt,i=s=>N[s>>1]):e===4&&(n=gt,a=mt,o=yt,i=s=>_[s>>2]),E(r,{name:t,fromWireType:s=>{for(var u=_[s>>2],c,v=s+4,l=0;l<=u;++l){var d=s+4+l*e;if(l==u||i(d)==0){var T=d-v,M=n(v,T);c===void 0?c=M:(c+="\0",c+=M),v=d+e}}return W(s),c},toWireType:(s,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=yr(4+c+e);return _[v>>2]=c/e,a(u,v+4,c+e),s!==null&&s.push(W,v),v},argPackAdvance:R,readValueFromPointer:tr,destructorFunction(s){W(s)}})},wt=(r,e,t,n,a,i)=>{er[r]={name:w(e),rawConstructor:Z(t,n),rawDestructor:Z(a,i),fields:[]}},Tt=(r,e,t,n,a,i,o,s,u,c)=>{er[r].fields.push({fieldName:w(e),getterReturnType:t,getter:Z(n,a),getterContext:i,setterArgumentType:o,setter:Z(s,u),setterContext:c})},$t=(r,e)=>{e=w(e),E(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},At=(r,e,t)=>b.copyWithin(r,e,e+t),mr=[],Et=(r,e,t,n)=>(r=mr[r],e=O.toValue(e),r(null,e,t,n)),Ct={},Ft=r=>{var e=Ct[r];return e===void 0?w(r):e},Gr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Rt=r=>r===0?O.toHandle(Gr()):(r=Ft(r),O.toHandle(Gr()[r])),Pt=r=>{var e=mr.length;return mr.push(r),e},Wt=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},kt=Reflect.construct,St=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(_[e>>2]=O.toHandle(n)),a},Ut=(r,e,t)=>{var n=Wt(r,e),a=n.shift();r--;var i=new Array(r),o=(u,c,v,l)=>{for(var d=0,T=0;Tu.name).join(", ")}) => ${a.name}>`;return Pt(ar(s,o))},Mt=r=>{r>9&&(P[r+1]+=1)},xt=r=>{var e=O.toValue(r);hr(e),gr(r)},It=()=>2147483648,Ot=(r,e)=>Math.ceil(r/e)*e,jt=r=>{var e=Q.buffer,t=(r-e.byteLength+65535)/65536|0;try{return Q.grow(t),Pr(),1}catch{}},Dt=r=>{var e=b.length;r>>>=0;var t=It();if(r>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var i=Math.min(t,Ot(Math.max(r,a),65536)),o=jt(i);if(o)return!0}return!1},Vt=r=>r;Ir=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},xe(),Vr=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},De(),Zr=f.UnboundTypeError=et(Error,"UnboundTypeError");var Ht={x:Ae,y:Ee,a:Fe,l:Re,u:Pe,N:We,n:ke,f:Ce,J:Se,T:Ue,I:Me,P:Oe,O:He,R:Xe,k:Ze,B:qe,S:at,s:ot,o:st,A:dt,z:bt,C:wt,U:Tt,Q:$t,L:At,F:Et,W:gr,H:Rt,G:Ut,D:Mt,X:xt,K:Dt,E:qt,v:nn,e:Bt,c:Gt,m:Lt,h:tn,i:zt,M:rn,q:Kt,g:Nt,d:Yt,b:Qt,j:Zt,p:Xt,w:en,r:an,t:Jt,V:Vt},y=$e(),Kr=r=>(Kr=y._)(r),yr=f._malloc=r=>(yr=f._malloc=y.aa)(r),W=f._free=r=>(W=f._free=y.ba)(r),p=(r,e)=>(p=y.ca)(r,e),Jr=r=>(Jr=y.da)(r),Qr=r=>(Qr=y.ea)(r),Yr=()=>(Yr=y.fa)(),zr=r=>(zr=y.ga)(r),re=r=>(re=y.ha)(r),ee=(r,e,t)=>(ee=y.ia)(r,e,t),te=r=>(te=y.ja)(r);function Bt(r,e){var t=m();try{return h(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Nt(r,e){var t=m();try{h(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Xt(r,e,t,n,a,i){var o=m();try{h(r)(e,t,n,a,i)}catch(s){if(g(o),s!==s+0)throw s;p(1,0)}}function Zt(r,e,t,n,a){var i=m();try{h(r)(e,t,n,a)}catch(o){if(g(i),o!==o+0)throw o;p(1,0)}}function Lt(r,e,t,n){var a=m();try{return h(r)(e,t,n)}catch(i){if(g(a),i!==i+0)throw i;p(1,0)}}function qt(r,e,t,n,a){var i=m();try{return h(r)(e,t,n,a)}catch(o){if(g(i),o!==o+0)throw o;p(1,0)}}function Gt(r,e,t){var n=m();try{return h(r)(e,t)}catch(a){if(g(n),a!==a+0)throw a;p(1,0)}}function Kt(r){var e=m();try{h(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function Jt(r,e,t,n,a,i,o,s,u,c,v){var l=m();try{h(r)(e,t,n,a,i,o,s,u,c,v)}catch(d){if(g(l),d!==d+0)throw d;p(1,0)}}function Qt(r,e,t,n){var a=m();try{h(r)(e,t,n)}catch(i){if(g(a),i!==i+0)throw i;p(1,0)}}function Yt(r,e,t){var n=m();try{h(r)(e,t)}catch(a){if(g(n),a!==a+0)throw a;p(1,0)}}function zt(r,e,t,n,a,i){var o=m();try{return h(r)(e,t,n,a,i)}catch(s){if(g(o),s!==s+0)throw s;p(1,0)}}function rn(r,e,t,n,a,i,o){var s=m();try{return h(r)(e,t,n,a,i,o)}catch(u){if(g(s),u!==u+0)throw u;p(1,0)}}function en(r,e,t,n,a,i,o,s){var u=m();try{h(r)(e,t,n,a,i,o,s)}catch(c){if(g(u),c!==c+0)throw c;p(1,0)}}function tn(r,e,t,n,a){var i=m();try{return h(r)(e,t,n,a)}catch(o){if(g(i),o!==o+0)throw o;p(1,0)}}function nn(r){var e=m();try{return h(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function an(r,e,t,n,a,i,o,s,u){var c=m();try{h(r)(e,t,n,a,i,o,s,u)}catch(v){if(g(c),v!==v+0)throw v;p(1,0)}}var or,ne;X=function r(){or||ae(),or||(X=r)};function ae(){if(x>0||!ne&&(ne=1,ce(),x>0))return;function r(){var e;or||(or=1,f.calledRun=1,!Cr&&(ve(),$r(f),(e=f.onRuntimeInitialized)===null||e===void 0||e.call(f),le()))}f.setStatus?(f.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>f.setStatus(""),1),r()},1)):r()}if(f.preInit)for(typeof f.preInit=="function"&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();return ae(),Tr=oe,Tr}})();function sn(S){return k.getZXingModuleWithFactory(wr,S)}function un(S){return k.setZXingModuleOverridesWithFactory(wr,S)}async function fn(S,G){return k.writeBarcodeToImageFileWithFactory(wr,S,G)}exports.barcodeFormats=k.barcodeFormats;exports.characterSets=k.characterSets;exports.defaultEncodeHints=k.defaultWriterOptions;exports.defaultWriterOptions=k.defaultWriterOptions;exports.purgeZXingModule=k.purgeZXingModule;exports.writeInputEccLevels=k.writeInputEccLevels;exports.getZXingModule=sn;exports.setZXingModuleOverrides=un;exports.writeBarcodeToImageFile=fn; diff --git a/node_modules/zxing-wasm/dist/es/bindings/barcodeFormat.d.ts b/node_modules/zxing-wasm/dist/es/bindings/barcodeFormat.d.ts new file mode 100644 index 0000000..287560e --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/barcodeFormat.d.ts @@ -0,0 +1,21 @@ +export declare const barcodeFormats: readonly ["Aztec", "Codabar", "Code128", "Code39", "Code93", "DataBar", "DataBarExpanded", "DataBarLimited", "DataMatrix", "DXFilmEdge", "EAN-13", "EAN-8", "ITF", "Linear-Codes", "Matrix-Codes", "MaxiCode", "MicroQRCode", "None", "PDF417", "QRCode", "rMQRCode", "UPC-A", "UPC-E"]; +/** + * @internal + */ +export type BarcodeFormat = (typeof barcodeFormats)[number]; +/** + * Barcode formats that can be used in {@link ReaderOptions.formats | `ReaderOptions.formats`} to read barcodes. + */ +export type ReadInputBarcodeFormat = Exclude; +/** + * Barcode formats that can be used in {@link WriterOptions.format | `WriterOptions.format`} to write barcodes. + */ +export type WriteInputBarcodeFormat = Exclude; +/** + * Barcode formats that may be returned in {@link ReadResult.format} in read functions. + */ +export type ReadOutputBarcodeFormat = Exclude; +export declare function formatsToString(formats: BarcodeFormat[]): string; +export declare function formatsFromString(formatString: string): BarcodeFormat[]; +export declare function formatFromString(format: string): BarcodeFormat; +export declare function normalizeFormatString(format: string): string; diff --git a/node_modules/zxing-wasm/dist/es/bindings/binarizer.d.ts b/node_modules/zxing-wasm/dist/es/bindings/binarizer.d.ts new file mode 100644 index 0000000..294133d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/binarizer.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const binarizers: readonly ["LocalAverage", "GlobalHistogram", "FixedThreshold", "BoolCast"]; +export type Binarizer = (typeof binarizers)[number]; +/** + * @internal + */ +export type ZXingBinarizer = Record; +export declare function binarizerToZXingEnum(zxingModule: ZXingModule, binarizer: Binarizer): ZXingEnum; +export declare function zxingEnumToBinarizer(zxingEnum: ZXingEnum): Binarizer; diff --git a/node_modules/zxing-wasm/dist/es/bindings/characterSet.d.ts b/node_modules/zxing-wasm/dist/es/bindings/characterSet.d.ts new file mode 100644 index 0000000..bff72f8 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/characterSet.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule, ZXingModuleType } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const characterSets: readonly ["Unknown", "ASCII", "ISO8859_1", "ISO8859_2", "ISO8859_3", "ISO8859_4", "ISO8859_5", "ISO8859_6", "ISO8859_7", "ISO8859_8", "ISO8859_9", "ISO8859_10", "ISO8859_11", "ISO8859_13", "ISO8859_14", "ISO8859_15", "ISO8859_16", "Cp437", "Cp1250", "Cp1251", "Cp1252", "Cp1256", "Shift_JIS", "Big5", "GB2312", "GB18030", "EUC_JP", "EUC_KR", "UTF16BE", "UTF8", "UTF16LE", "UTF32BE", "UTF32LE", "BINARY"]; +export type CharacterSet = (typeof characterSets)[number]; +/** + * @internal + */ +export type ZXingCharacterSet = Record; +export declare function characterSetToZXingEnum(zxingModule: ZXingModule, characterSet: CharacterSet): ZXingEnum; +export declare function zxingEnumToCharacterSet(zxingEnum: ZXingEnum): CharacterSet; diff --git a/node_modules/zxing-wasm/dist/es/bindings/contentType.d.ts b/node_modules/zxing-wasm/dist/es/bindings/contentType.d.ts new file mode 100644 index 0000000..a18e62d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/contentType.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const contentTypes: readonly ["Text", "Binary", "Mixed", "GS1", "ISO15434", "UnknownECI"]; +export type ContentType = (typeof contentTypes)[number]; +/** + * @internal + */ +export type ZXingContentType = Record; +export declare function contentTypeToZXingEnum(zxingModule: ZXingModule, contentType: ContentType): ZXingEnum; +export declare function zxingEnumToContentType(zxingEnum: ZXingEnum): ContentType; diff --git a/node_modules/zxing-wasm/dist/es/bindings/eanAddOnSymbol.d.ts b/node_modules/zxing-wasm/dist/es/bindings/eanAddOnSymbol.d.ts new file mode 100644 index 0000000..ed3a5b2 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/eanAddOnSymbol.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const eanAddOnSymbols: readonly ["Ignore", "Read", "Require"]; +export type EanAddOnSymbol = (typeof eanAddOnSymbols)[number]; +/** + * @internal + */ +export type ZXingEanAddOnSymbol = Record; +export declare function eanAddOnSymbolToZXingEnum(zxingModule: ZXingModule, eanAddOnSymbol: EanAddOnSymbol): ZXingEnum; +export declare function zxingEnumToEanAddOnSymbol(zxingEnum: ZXingEnum): EanAddOnSymbol; diff --git a/node_modules/zxing-wasm/dist/es/bindings/eccLevel.d.ts b/node_modules/zxing-wasm/dist/es/bindings/eccLevel.d.ts new file mode 100644 index 0000000..bbfb1bc --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/eccLevel.d.ts @@ -0,0 +1,4 @@ +export declare const writeInputEccLevels: readonly [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8]; +export type WriteInputEccLevel = (typeof writeInputEccLevels)[number]; +export declare const readOutputEccLevels: readonly ["L", "M", "Q", "H"]; +export type ReadOutputEccLevel = (typeof readOutputEccLevels)[number]; diff --git a/node_modules/zxing-wasm/dist/es/bindings/enum.d.ts b/node_modules/zxing-wasm/dist/es/bindings/enum.d.ts new file mode 100644 index 0000000..7d42d60 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/enum.d.ts @@ -0,0 +1,6 @@ +/** + * @internal + */ +export interface ZXingEnum { + value: number; +} diff --git a/node_modules/zxing-wasm/dist/es/bindings/exposedReaderBindings.d.ts b/node_modules/zxing-wasm/dist/es/bindings/exposedReaderBindings.d.ts new file mode 100644 index 0000000..5876088 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/exposedReaderBindings.d.ts @@ -0,0 +1,17 @@ +import { type ReaderOptions } from "./index.js"; +export declare const defaultReaderOptions: Required; +export { barcodeFormats, type BarcodeFormat, type ReadInputBarcodeFormat, type ReadOutputBarcodeFormat, binarizers, type ZXingBinarizer, type Binarizer, characterSets, type ZXingCharacterSet, type CharacterSet, contentTypes, type ZXingContentType, type ContentType, type ZXingReaderOptions, type ReaderOptions, eanAddOnSymbols, type ZXingEanAddOnSymbol, type EanAddOnSymbol, readOutputEccLevels, type ReadOutputEccLevel, type ZXingEnum, type ZXingPoint, type ZXingPosition, type Point, type Position, type ZXingReadResult, type ReadResult, textModes, type ZXingTextMode, type TextMode, type ZXingVector, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultReaderOptions` + */ +defaultReaderOptions as defaultDecodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingReaderOptions` + */ +ZXingReaderOptions as ZXingDecodeHints, +/** + * @deprecated renamed as `ReaderOptions` + */ +ReaderOptions as DecodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/es/bindings/exposedWriterBindings.d.ts b/node_modules/zxing-wasm/dist/es/bindings/exposedWriterBindings.d.ts new file mode 100644 index 0000000..dfc4b5d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/exposedWriterBindings.d.ts @@ -0,0 +1,17 @@ +import { type WriterOptions } from "./index.js"; +export declare const defaultWriterOptions: Required; +export { barcodeFormats, type BarcodeFormat, type WriteInputBarcodeFormat, characterSets, type ZXingCharacterSet, type CharacterSet, writeInputEccLevels, type WriteInputEccLevel, type ZXingWriterOptions, type WriterOptions, type ZXingEnum, type ZXingWriteResult, type WriteResult, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultWriterOptions` + */ +defaultWriterOptions as defaultEncodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingWriterOptions` + */ +ZXingWriterOptions as ZXingEncodeHints, +/** + * @deprecated renamed as `WriterOptions` + */ +WriterOptions as EncodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/es/bindings/index.d.ts b/node_modules/zxing-wasm/dist/es/bindings/index.d.ts new file mode 100644 index 0000000..0081c44 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/index.d.ts @@ -0,0 +1,14 @@ +export * from "./barcodeFormat.js"; +export * from "./binarizer.js"; +export * from "./characterSet.js"; +export * from "./contentType.js"; +export * from "./readerOptions.js"; +export * from "./eanAddOnSymbol.js"; +export * from "./eccLevel.js"; +export * from "./writerOptions.js"; +export * from "./enum.js"; +export * from "./position.js"; +export * from "./readResult.js"; +export * from "./textMode.js"; +export * from "./vector.js"; +export * from "./writeResult.js"; diff --git a/node_modules/zxing-wasm/dist/es/bindings/position.d.ts b/node_modules/zxing-wasm/dist/es/bindings/position.d.ts new file mode 100644 index 0000000..2cbe76c --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/position.d.ts @@ -0,0 +1,55 @@ +/** + * @internal + */ +export interface ZXingPoint { + x: number; + y: number; +} +/** + * @internal + */ +export interface ZXingPosition { + topLeft: ZXingPoint; + topRight: ZXingPoint; + bottomLeft: ZXingPoint; + bottomRight: ZXingPoint; +} +/** + * X, Y coordinates to describe a point. + * + * @property x X coordinate. + * @property y Y coordinate. + * + * @see {@link Position | `Position`} + */ +export interface Point extends ZXingPoint { +} +/** + * Position of the decoded barcode. + */ +export interface Position { + /** + * Top-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topLeft: Point; + /** + * Top-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topRight: Point; + /** + * Bottom-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomLeft: Point; + /** + * Bottom-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomRight: Point; +} diff --git a/node_modules/zxing-wasm/dist/es/bindings/readResult.d.ts b/node_modules/zxing-wasm/dist/es/bindings/readResult.d.ts new file mode 100644 index 0000000..ae40842 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/readResult.d.ts @@ -0,0 +1,123 @@ +import { type ReadOutputBarcodeFormat } from "./barcodeFormat.js"; +import { type ContentType } from "./contentType.js"; +import type { ReadOutputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +import type { Position, ZXingPosition } from "./position.js"; +/** + * @internal + */ +export interface ZXingReadResult { + /** + * Whether the barcode is valid. + */ + isValid: boolean; + /** + * Error message (if any). + * + * @see {@link ReaderOptions.returnErrors | `ReaderOptions.returnErrors`} + */ + error: string; + format: string; + /** + * Raw / Standard content without any modifications like character set conversions. + */ + bytes: Uint8Array; + /** + * Raw / Standard content following the ECI protocol. + */ + bytesECI: Uint8Array; + /** + * The {@link ReadResult.bytes | `ReadResult.bytes`} content rendered to unicode / utf8 text + * accoring to specified {@link ReaderOptions.textMode | `ReaderOptions.textMode`}. + */ + text: string; + eccLevel: string; + contentType: ZXingEnum; + /** + * Whether or not an ECI tag was found. + */ + hasECI: boolean; + position: ZXingPosition; + /** + * Orientation of the barcode in degree. + */ + orientation: number; + /** + * Whether the symbol is mirrored (currently only supported by QRCode and DataMatrix). + */ + isMirrored: boolean; + /** + * Whether the symbol is inverted / has reveresed reflectance. + * + * @see {@link ReaderOptions.tryInvert | `ReaderOptions.tryInvert`} + */ + isInverted: boolean; + /** + * Symbology identifier `"]cm"` where `"c"` is the symbology code character, `"m"` the modifier. + */ + symbologyIdentifier: string; + /** + * Number of symbols in a structured append sequence. + * + * If this is not part of a structured append sequence, the returned value is `-1`. + * If it is a structured append symbol but the total number of symbols is unknown, the + * returned value is `0` (see PDF417 if optional "Segment Count" not given). + */ + sequenceSize: number; + /** + * The 0-based index of this symbol in a structured append sequence. + */ + sequenceIndex: number; + /** + * ID to check if a set of symbols belongs to the same structured append sequence. + * + * If the symbology does not support this feature, the returned value is empty (see MaxiCode). + * For QR Code, this is the parity integer converted to a string. + * For PDF417 and DataMatrix, this is the `"fileId"`. + */ + sequenceId: string; + /** + * Set if this is the reader initialisation / programming symbol. + */ + readerInit: boolean; + /** + * Number of lines have been detected with this code (applies only to linear symbologies). + */ + lineCount: number; + /** + * QRCode / DataMatrix / Aztec version or size. + * + * This property will be removed in the future. + * + * @deprecated + */ + version: string; +} +export interface ReadResult extends Omit { + /** + * Format of the barcode, should be one of {@link ReadOutputBarcodeFormat | `ReadOutputBarcodeFormat`}. + * + * Possible values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"None"`, + * `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + */ + format: ReadOutputBarcodeFormat; + /** + * Error correction level of the symbol (empty string if not applicable). + * + * This property may be renamed to `ecLevel` in the future. + */ + eccLevel: ReadOutputEccLevel; + /** + * A hint to the type of the content found. + */ + contentType: ContentType; + /** + * Position of the detected barcode. + */ + position: Position; +} +export declare function zxingReadResultToReadResult(zxingReadResult: ZXingReadResult): ReadResult; diff --git a/node_modules/zxing-wasm/dist/es/bindings/readerOptions.d.ts b/node_modules/zxing-wasm/dist/es/bindings/readerOptions.d.ts new file mode 100644 index 0000000..ba5e9e7 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/readerOptions.d.ts @@ -0,0 +1,207 @@ +import type { ZXingModule } from "../core.js"; +import { type ReadInputBarcodeFormat } from "./barcodeFormat.js"; +import { type Binarizer } from "./binarizer.js"; +import { type CharacterSet } from "./characterSet.js"; +import { type EanAddOnSymbol } from "./eanAddOnSymbol.js"; +import type { ZXingEnum } from "./enum.js"; +import { type TextMode } from "./textMode.js"; +/** + * @internal + */ +export interface ZXingReaderOptions { + formats: string; + /** + * Spend more time to try to find a barcode. Optimize for accuracy, not speed. + * + * @defaultValue `true` + */ + tryHarder: boolean; + /** + * Try detecting code in 90, 180 and 270 degree rotated images. + * + * @defaultValue `true` + */ + tryRotate: boolean; + /** + * Try detecting inverted (reversed reflectance) codes if the format allows for those. + * + * @defaultValue `true` + */ + tryInvert: boolean; + /** + * Try detecting code in downscaled images (depending on image size). + * + * @defaultValue `true` + * @see {@link downscaleFactor | `downscaleFactor`} {@link downscaleThreshold | `downscaleThreshold`} + */ + tryDownscale: boolean; + binarizer: ZXingEnum; + /** + * Set to `true` if the input contains nothing but a single perfectly aligned barcode (usually generated images). + * + * @defaultValue `false` + */ + isPure: boolean; + /** + * Image size ( min(width, height) ) threshold at which to start downscaled scanning + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `500` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleFactor | `downscaleFactor`} + */ + downscaleThreshold: number; + /** + * Scale factor to use during downscaling, meaningful values are `2`, `3` and `4`. + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `3` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleThreshold | `downscaleThreshold`} + */ + downscaleFactor: number; + /** + * The number of scan lines in a linear barcode that have to be equal to accept the result. + * + * @defaultValue `2` + */ + minLineCount: number; + /** + * The maximum number of symbols / barcodes to detect / look for in the image. + * The upper limit of this number is 255. + * + * @defaultValue `255` + */ + maxNumberOfSymbols: number; + /** + * If `true`, the Code-39 reader will try to read extended mode. + * + * @defaultValue `false` + */ + tryCode39ExtendedMode: boolean; + /** + * Assume Code-39 codes employ a check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateCode39CheckSum: boolean; + /** + * Assume ITF codes employ a GS1 check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateITFCheckSum: boolean; + /** + * If `true`, return the start and end chars in a Codabar barcode instead of stripping them. + * + * @defaultValue `false` + * @deprecated upstream + */ + returnCodabarStartEnd: boolean; + /** + * If `true`, return the barcodes with errors as well (e.g. checksum errors). + * + * @defaultValue `false` + */ + returnErrors: boolean; + eanAddOnSymbol: ZXingEnum; + textMode: ZXingEnum; + characterSet: ZXingEnum; +} +/** + * Reader options for reading barcodes. + */ +export interface ReaderOptions extends Partial> { + /** + * A set of {@link ReadInputBarcodeFormat | `ReadInputBarcodeFormat`}s that should be searched for. + * An empty list `[]` indicates all supported formats. + * + * Supported values in this list are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, `"Linear-Codes"`, `"Matrix-Codes"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `[]` + */ + formats?: ReadInputBarcodeFormat[]; + /** + * Algorithm to use for the grayscale to binary transformation. + * The difference is how to get to a threshold value T + * which results in a bit value R = L <= T. + * + * - `"LocalAverage"` + * + * T = average of neighboring pixels for matrix and GlobalHistogram for linear + * + * - `"GlobalHistogram"` + * + * T = valley between the 2 largest peaks in the histogram (per line in linear case) + * + * - `"FixedThreshold"` + * + * T = 127 + * + * - `"BoolCast"` + * + * T = 0, fastest possible + * + * @defaultValue `"LocalAverage"` + */ + binarizer?: Binarizer; + /** + * Specify whether to ignore, read or require EAN-2 / 5 add-on symbols while scanning EAN / UPC codes. + * + * - `"Ignore"` + * + * Ignore any Add-On symbol during read / scan + * + * - `"Read"` + * + * Read EAN-2 / EAN-5 Add-On symbol if found + * + * - `"Require"` + * + * Require EAN-2 / EAN-5 Add-On symbol to be present + * + * @defaultValue `"Read"` + */ + eanAddOnSymbol?: EanAddOnSymbol; + /** + * Specifies the `TextMode` that controls the result of {@link ReadResult.text | `ReadResult.text`}. + * + * - `"Plain"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to unicode based on ECI info or guessed character set + * + * - `"ECI"` + * + * Standard content following the ECI protocol with every character set ECI segment transcoded to unicode + * + * - `"HRI"` + * + * Human Readable Interpretation (dependent on the ContentType) + * + * - `"Hex"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to ASCII string of HEX values + * + * - `"Escaped"` + * + * Escape non-graphical characters in angle brackets (e.g. ASCII `29` will be transcoded to `""`) + * + * @defaultValue `"Plain"` + */ + textMode?: TextMode; + /** + * Character set to use (when applicable). + * If this is set to `"Unknown"`, auto-detecting will be used. + * + * @defaultValue `"Unknown"` + */ + characterSet?: CharacterSet; +} +export declare const defaultReaderOptions: Required; +export declare function readerOptionsToZXingReaderOptions(zxingModule: ZXingModule, readerOptions: Required): ZXingReaderOptions; diff --git a/node_modules/zxing-wasm/dist/es/bindings/textMode.d.ts b/node_modules/zxing-wasm/dist/es/bindings/textMode.d.ts new file mode 100644 index 0000000..ec52783 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/textMode.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const textModes: readonly ["Plain", "ECI", "HRI", "Hex", "Escaped"]; +export type TextMode = (typeof textModes)[number]; +/** + * @internal + */ +export type ZXingTextMode = Record; +export declare function textModeToZXingEnum(zxingModule: ZXingModule, textMode: TextMode): ZXingEnum; +export declare function zxingEnumToTextMode(zxingEnum: ZXingEnum): TextMode; diff --git a/node_modules/zxing-wasm/dist/es/bindings/vector.d.ts b/node_modules/zxing-wasm/dist/es/bindings/vector.d.ts new file mode 100644 index 0000000..034bd5a --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/vector.d.ts @@ -0,0 +1,7 @@ +/** + * @internal + */ +export interface ZXingVector { + size: () => number; + get: (i: number) => T | undefined; +} diff --git a/node_modules/zxing-wasm/dist/es/bindings/writeResult.d.ts b/node_modules/zxing-wasm/dist/es/bindings/writeResult.d.ts new file mode 100644 index 0000000..ac46b1f --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/writeResult.d.ts @@ -0,0 +1,24 @@ +/** + * @internal + */ +export interface ZXingWriteResult { + image: Uint8Array; + /** + * Encoding error. + * If there's no error, this will be an empty string `""`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + error: string; + delete: () => void; +} +export interface WriteResult extends Omit { + /** + * The encoded barcode as an image blob. + * If some error happens, this will be `null`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + image: Blob | null; +} +export declare function zxingWriteResultToWriteResult(zxingWriteResult: ZXingWriteResult): WriteResult; diff --git a/node_modules/zxing-wasm/dist/es/bindings/writerOptions.d.ts b/node_modules/zxing-wasm/dist/es/bindings/writerOptions.d.ts new file mode 100644 index 0000000..8a777af --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/writerOptions.d.ts @@ -0,0 +1,64 @@ +import type { ZXingModule } from "../core.js"; +import type { WriteInputBarcodeFormat } from "./barcodeFormat.js"; +import { type CharacterSet } from "./characterSet.js"; +import type { WriteInputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +/** + * @internal + */ +export interface ZXingWriterOptions { + /** + * Width of the barcode. + * + * @defaultValue `200` + */ + width: number; + /** + * Height of the barcode. + * + * @defaultValue `200` + */ + height: number; + format: string; + characterSet: ZXingEnum; + eccLevel: number; + /** + * The minimum number of quiet zone pixels. + * + * @defaultValue `10` + */ + margin: number; +} +/** + * Writer options for writing barcodes. + */ +export interface WriterOptions extends Partial> { + /** + * The format of the barcode to write. + * + * Supported values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataMatrix"`, `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"PDF417"`, `"QRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `"QRCode"` + */ + format?: WriteInputBarcodeFormat; + /** + * Character set to use for encoding the text. + * Used for Aztec, PDF417, and QRCode only. + * + * @defaultValue `"UTF8"` + */ + characterSet?: CharacterSet; + /** + * Error correction level of the symbol. + * Used for Aztec, PDF417, and QRCode only. + * `-1` means auto. + * + * @defaultValue `-1` + */ + eccLevel?: WriteInputEccLevel; +} +export declare const defaultWriterOptions: Required; +export declare function writerOptionsToZXingWriterOptions(zxingModule: ZXingModule, writerOptions: Required): ZXingWriterOptions; diff --git a/node_modules/zxing-wasm/dist/es/core-C2hxqLt7.js b/node_modules/zxing-wasm/dist/es/core-C2hxqLt7.js new file mode 100644 index 0000000..47ca9e2 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/core-C2hxqLt7.js @@ -0,0 +1,287 @@ +const C = [ + "Aztec", + "Codabar", + "Code128", + "Code39", + "Code93", + "DataBar", + "DataBarExpanded", + "DataBarLimited", + "DataMatrix", + "DXFilmEdge", + "EAN-13", + "EAN-8", + "ITF", + "Linear-Codes", + "Matrix-Codes", + "MaxiCode", + "MicroQRCode", + "None", + "PDF417", + "QRCode", + "rMQRCode", + "UPC-A", + "UPC-E" +]; +function T(e) { + return e.join("|"); +} +function p(e) { + const t = I(e); + let r = 0, o = C.length - 1; + for (; r <= o; ) { + const n = Math.floor((r + o) / 2), a = C[n], s = I(a); + if (s === t) + return a; + s < t ? r = n + 1 : o = n - 1; + } + return "None"; +} +function I(e) { + return e.toLowerCase().replace(/_-\[\]/g, ""); +} +const v = [ + "LocalAverage", + "GlobalHistogram", + "FixedThreshold", + "BoolCast" +]; +function b(e, t) { + return e.Binarizer[t]; +} +const L = [ + "Unknown", + "ASCII", + "ISO8859_1", + "ISO8859_2", + "ISO8859_3", + "ISO8859_4", + "ISO8859_5", + "ISO8859_6", + "ISO8859_7", + "ISO8859_8", + "ISO8859_9", + "ISO8859_10", + "ISO8859_11", + "ISO8859_13", + "ISO8859_14", + "ISO8859_15", + "ISO8859_16", + "Cp437", + "Cp1250", + "Cp1251", + "Cp1252", + "Cp1256", + "Shift_JIS", + "Big5", + "GB2312", + "GB18030", + "EUC_JP", + "EUC_KR", + "UTF16BE", + "UTF8", + "UTF16LE", + "UTF32BE", + "UTF32LE", + "BINARY" +]; +function O(e, t) { + return e.CharacterSet[t]; +} +const w = [ + "Text", + "Binary", + "Mixed", + "GS1", + "ISO15434", + "UnknownECI" +]; +function F(e) { + return w[e.value]; +} +const P = ["Ignore", "Read", "Require"]; +function _(e, t) { + return e.EanAddOnSymbol[t]; +} +const M = ["Plain", "ECI", "HRI", "Hex", "Escaped"]; +function R(e, t) { + return e.TextMode[t]; +} +const d = { + formats: [], + tryHarder: !0, + tryRotate: !0, + tryInvert: !0, + tryDownscale: !0, + binarizer: "LocalAverage", + isPure: !1, + downscaleFactor: 3, + downscaleThreshold: 500, + minLineCount: 2, + maxNumberOfSymbols: 255, + tryCode39ExtendedMode: !1, + validateCode39CheckSum: !1, + validateITFCheckSum: !1, + returnCodabarStartEnd: !1, + returnErrors: !1, + eanAddOnSymbol: "Read", + textMode: "Plain", + characterSet: "Unknown" +}; +function y(e, t) { + return { + ...t, + formats: T(t.formats), + binarizer: b(e, t.binarizer), + eanAddOnSymbol: _( + e, + t.eanAddOnSymbol + ), + textMode: R(e, t.textMode), + characterSet: O( + e, + t.characterSet + ) + }; +} +const x = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8], W = ["L", "M", "Q", "H"], S = { + width: 200, + height: 200, + format: "QRCode", + characterSet: "UTF8", + eccLevel: -1, + margin: 10 +}; +function B(e, t) { + return { + ...t, + characterSet: O( + e, + t.characterSet + ) + }; +} +function E(e) { + return { + ...e, + format: p(e.format), + eccLevel: e.eccLevel, + contentType: F(e.contentType) + }; +} +function A(e) { + const { image: t, error: r } = e; + return t ? { + image: new Blob([new Uint8Array(t)], { + type: "image/png" + }), + error: "" + } : { + image: null, + error: r + }; +} +const U = { + locateFile: (e, t) => { + const r = e.match(/_(.+?)\.wasm$/); + return r ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${r[1]}/${e}` : t + e; + } +}; +let m = /* @__PURE__ */ new WeakMap(); +function h(e, t) { + var a; + const r = m.get(e); + if (r != null && r.modulePromise && (t === void 0 || Object.is(t, r.moduleOverrides))) + return r.modulePromise; + const o = (a = t != null ? t : r == null ? void 0 : r.moduleOverrides) != null ? a : U, n = e({ + ...o + }); + return m.set(e, { + moduleOverrides: o, + modulePromise: n + }), n; +} +function X() { + m = /* @__PURE__ */ new WeakMap(); +} +function Z(e, t) { + m.set(e, { + moduleOverrides: t + }); +} +async function z(e, t, r = d) { + const o = { + ...d, + ...r + }, n = await h(e), { size: a } = t, s = new Uint8Array(await t.arrayBuffer()), u = n._malloc(a); + n.HEAPU8.set(s, u); + const l = n.readBarcodesFromImage( + u, + a, + y(n, o) + ); + n._free(u); + const i = []; + for (let c = 0; c < l.size(); ++c) + i.push( + E(l.get(c)) + ); + return i; +} +async function D(e, t, r = d) { + const o = { + ...d, + ...r + }, n = await h(e), { + data: a, + width: s, + height: u, + data: { byteLength: l } + } = t, i = n._malloc(l); + n.HEAPU8.set(a, i); + const c = n.readBarcodesFromPixmap( + i, + s, + u, + y(n, o) + ); + n._free(i); + const g = []; + for (let f = 0; f < c.size(); ++f) + g.push( + E(c.get(f)) + ); + return g; +} +async function H(e, t, r = S) { + const o = { + ...S, + ...r + }, n = await h(e), a = n.writeBarcodeToImage( + t, + B(n, o) + ); + return A(a); +} +const k = { + ...d, + formats: [...d.formats] +}, N = { ...S }; +export { + D as a, + C as b, + v as c, + k as d, + L as e, + w as f, + h as g, + P as h, + W as i, + N as j, + x as k, + X as p, + z as r, + Z as s, + M as t, + H as w +}; diff --git a/node_modules/zxing-wasm/dist/es/core.d.ts b/node_modules/zxing-wasm/dist/es/core.d.ts new file mode 100644 index 0000000..f3d913d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/core.d.ts @@ -0,0 +1,40 @@ +import { type ReadResult, type ReaderOptions, type WriterOptions, type ZXingBinarizer, type ZXingCharacterSet, type ZXingContentType, type ZXingEanAddOnSymbol, type ZXingReadResult, type ZXingReaderOptions, type ZXingTextMode, type ZXingVector, type ZXingWriteResult, type ZXingWriterOptions } from "./bindings/index.js"; +export type ZXingModuleType = "reader" | "writer" | "full"; +interface ZXingBaseModule extends EmscriptenModule { + CharacterSet: ZXingCharacterSet; +} +/** + * @internal + */ +export interface ZXingReaderModule extends ZXingBaseModule { + Binarizer: ZXingBinarizer; + ContentType: ZXingContentType; + EanAddOnSymbol: ZXingEanAddOnSymbol; + TextMode: ZXingTextMode; + readBarcodesFromImage(bufferPtr: number, bufferLength: number, zxingReaderOptions: ZXingReaderOptions): ZXingVector; + readBarcodesFromPixmap(bufferPtr: number, imgWidth: number, imgHeight: number, zxingReaderOptions: ZXingReaderOptions): ZXingVector; +} +/** + * @internal + */ +export interface ZXingWriterModule extends ZXingBaseModule { + writeBarcodeToImage(text: string, zxingWriterOptions: ZXingWriterOptions): ZXingWriteResult; +} +/** + * @internal + */ +export interface ZXingFullModule extends ZXingReaderModule, ZXingWriterModule { +} +export type ZXingModule = T extends "reader" ? ZXingReaderModule : T extends "writer" ? ZXingWriterModule : T extends "full" ? ZXingFullModule : ZXingReaderModule | ZXingWriterModule | ZXingFullModule; +export type ZXingReaderModuleFactory = EmscriptenModuleFactory; +export type ZXingWriterModuleFactory = EmscriptenModuleFactory; +export type ZXingFullModuleFactory = EmscriptenModuleFactory; +export type ZXingModuleFactory = T extends "reader" ? ZXingReaderModuleFactory : T extends "writer" ? ZXingWriterModuleFactory : T extends "full" ? ZXingFullModuleFactory : ZXingReaderModuleFactory | ZXingWriterModuleFactory | ZXingFullModuleFactory; +export type ZXingModuleOverrides = Partial; +export declare function getZXingModuleWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides?: ZXingModuleOverrides): Promise>; +export declare function purgeZXingModule(): void; +export declare function setZXingModuleOverridesWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageDataWithFactory(zxingModuleFactory: ZXingModuleFactory, imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, text: string, writerOptions?: WriterOptions): Promise; +export {}; diff --git a/node_modules/zxing-wasm/dist/es/full/index.d.ts b/node_modules/zxing-wasm/dist/es/full/index.d.ts new file mode 100644 index 0000000..ae019d0 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/full/index.d.ts @@ -0,0 +1,10 @@ +import type { ReaderOptions, WriterOptions } from "../bindings/index.js"; +import { type ZXingFullModule, type ZXingModuleOverrides } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingFullModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/es/full/index.js b/node_modules/zxing-wasm/dist/es/full/index.js new file mode 100644 index 0000000..9db029d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/full/index.js @@ -0,0 +1,1646 @@ +import { g as ki, s as Si, r as ji, a as Wi, w as Oi } from "../core-C2hxqLt7.js"; +import { b as Li, c as Zi, e as Gi, f as Xi, d as qi, j as Ki, d as Qi, j as Yi, h as Ji, p as ra, i as ea, t as ta, k as na } from "../core-C2hxqLt7.js"; +var ir = (() => { + var H; + var R = typeof document < "u" && ((H = document.currentScript) == null ? void 0 : H.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(He = {}) { + var Lr, f = He, Zr, ar, Ve = new Promise((r, e) => { + Zr = r, ar = e; + }), Be = typeof window == "object", Ne = typeof Bun < "u", Cr = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var Gr = Object.assign({}, f), Xr = "./this.program", j = ""; + function ze(r) { + return f.locateFile ? f.locateFile(r, j) : j + r; + } + var qr, Pr; + if (Be || Cr || Ne) { + var Ar; + Cr ? j = self.location.href : typeof document < "u" && ((Ar = document.currentScript) === null || Ar === void 0 ? void 0 : Ar.tagName.toUpperCase()) === "SCRIPT" && (j = document.currentScript.src), R && (j = R), j.startsWith("blob:") ? j = "" : j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1), Cr && (Pr = (r) => { + var e = new XMLHttpRequest(); + return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); + }), qr = (r) => fetch(r, { + credentials: "same-origin" + }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url))); + } + var Le = f.print || console.log.bind(console), Z = f.printErr || console.error.bind(console); + Object.assign(f, Gr), Gr = null, f.arguments && f.arguments, f.thisProgram && (Xr = f.thisProgram); + var or = f.wasmBinary, sr, Kr = !1, W, E, G, K, V, $, Qr, Yr; + function Jr() { + var r = sr.buffer; + f.HEAP8 = W = new Int8Array(r), f.HEAP16 = G = new Int16Array(r), f.HEAPU8 = E = new Uint8Array(r), f.HEAPU16 = K = new Uint16Array(r), f.HEAP32 = V = new Int32Array(r), f.HEAPU32 = $ = new Uint32Array(r), f.HEAPF32 = Qr = new Float32Array(r), f.HEAPF64 = Yr = new Float64Array(r); + } + var re = [], ee = [], te = []; + function Ze() { + var r = f.preRun; + r && (typeof r == "function" && (r = [r]), r.forEach(qe)), Fr(re); + } + function Ge() { + Fr(ee); + } + function Xe() { + var r = f.postRun; + r && (typeof r == "function" && (r = [r]), r.forEach(Qe)), Fr(te); + } + function qe(r) { + re.unshift(r); + } + function Ke(r) { + ee.unshift(r); + } + function Qe(r) { + te.unshift(r); + } + var B = 0, Q = null; + function Ye(r) { + var e; + B++, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, B); + } + function Je(r) { + var e; + if (B--, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, B), B == 0 && Q) { + var t = Q; + Q = null, t(); + } + } + function Er(r) { + var e; + (e = f.onAbort) === null || e === void 0 || e.call(f, r), r = "Aborted(" + r + ")", Z(r), Kr = !0, r += ". Build with -sASSERTIONS for more info."; + var t = new WebAssembly.RuntimeError(r); + throw ar(t), t; + } + var rt = "data:application/octet-stream;base64,", ne = (r) => r.startsWith(rt); + function et() { + var r = "zxing_full.wasm"; + return ne(r) ? r : ze(r); + } + var ur; + function ie(r) { + if (r == ur && or) + return new Uint8Array(or); + if (Pr) + return Pr(r); + throw "both async and sync fetching of the wasm failed"; + } + function tt(r) { + return or ? Promise.resolve().then(() => ie(r)) : qr(r).then((e) => new Uint8Array(e), () => ie(r)); + } + function ae(r, e, t) { + return tt(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => { + Z(`failed to asynchronously prepare wasm: ${n}`), Er(n); + }); + } + function nt(r, e, t, n) { + return !r && typeof WebAssembly.instantiateStreaming == "function" && !ne(e) && typeof fetch == "function" ? fetch(e, { + credentials: "same-origin" + }).then((i) => { + var a = WebAssembly.instantiateStreaming(i, t); + return a.then(n, function(s) { + return Z(`wasm streaming compile failed: ${s}`), Z("falling back to ArrayBuffer instantiation"), ae(e, t, n); + }); + }) : ae(e, t, n); + } + function it() { + return { + a: Xn + }; + } + function at() { + var r, e = it(); + function t(i, a) { + return w = i.exports, sr = w.za, Jr(), he = w.Da, Ke(w.Aa), Je(), w; + } + Ye(); + function n(i) { + t(i.instance); + } + if (f.instantiateWasm) + try { + return f.instantiateWasm(e, t); + } catch (i) { + Z(`Module.instantiateWasm callback failed with error: ${i}`), ar(i); + } + return (r = ur) !== null && r !== void 0 || (ur = et()), nt(or, ur, e, n).catch(ar), {}; + } + var Fr = (r) => { + r.forEach((e) => e(f)); + }; + f.noExitRuntime; + var h = (r) => Ee(r), _ = () => Fe(), lr = [], fr = 0, ot = (r) => { + var e = new Rr(r); + return e.get_caught() || (e.set_caught(!0), fr--), e.set_rethrown(!1), lr.push(e), ke(r), Pe(r); + }, D = 0, st = () => { + d(0, 0); + var r = lr.pop(); + Re(r.excPtr), D = 0; + }; + class Rr { + constructor(e) { + this.excPtr = e, this.ptr = e - 24; + } + set_type(e) { + $[this.ptr + 4 >> 2] = e; + } + get_type() { + return $[this.ptr + 4 >> 2]; + } + set_destructor(e) { + $[this.ptr + 8 >> 2] = e; + } + get_destructor() { + return $[this.ptr + 8 >> 2]; + } + set_caught(e) { + e = e ? 1 : 0, W[this.ptr + 12] = e; + } + get_caught() { + return W[this.ptr + 12] != 0; + } + set_rethrown(e) { + e = e ? 1 : 0, W[this.ptr + 13] = e; + } + get_rethrown() { + return W[this.ptr + 13] != 0; + } + init(e, t) { + this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t); + } + set_adjusted_ptr(e) { + $[this.ptr + 16 >> 2] = e; + } + get_adjusted_ptr() { + return $[this.ptr + 16 >> 2]; + } + } + var ut = (r) => { + throw D || (D = r), D; + }, cr = (r) => Ae(r), kr = (r) => { + var e = D; + if (!e) + return cr(0), 0; + var t = new Rr(e); + t.set_adjusted_ptr(e); + var n = t.get_type(); + if (!n) + return cr(0), e; + for (var i of r) { + if (i === 0 || i === n) + break; + var a = t.ptr + 16; + if (Se(i, n, a)) + return cr(i), e; + } + return cr(n), e; + }, lt = () => kr([]), ft = (r) => kr([r]), ct = (r, e) => kr([r, e]), vt = () => { + var r = lr.pop(); + r || Er("no exception to throw"); + var e = r.excPtr; + throw r.get_rethrown() || (lr.push(r), r.set_rethrown(!0), r.set_caught(!1), fr++), D = e, D; + }, dt = (r, e, t) => { + var n = new Rr(r); + throw n.init(e, t), D = r, fr++, D; + }, pt = () => fr, ht = () => { + Er(""); + }, vr = {}, Sr = (r) => { + for (; r.length; ) { + var e = r.pop(), t = r.pop(); + t(e); + } + }; + function Y(r) { + return this.fromWireType($[r >> 2]); + } + var X = {}, N = {}, dr = {}, oe, pr = (r) => { + throw new oe(r); + }, z = (r, e, t) => { + r.forEach((o) => dr[o] = e); + function n(o) { + var u = t(o); + u.length !== r.length && pr("Mismatched type converter count"); + for (var l = 0; l < r.length; ++l) + k(r[l], u[l]); + } + var i = new Array(e.length), a = [], s = 0; + e.forEach((o, u) => { + N.hasOwnProperty(o) ? i[u] = N[o] : (a.push(o), X.hasOwnProperty(o) || (X[o] = []), X[o].push(() => { + i[u] = N[o], ++s, s === a.length && n(i); + })); + }), a.length === 0 && n(i); + }, _t = (r) => { + var e = vr[r]; + delete vr[r]; + var t = e.rawConstructor, n = e.rawDestructor, i = e.fields, a = i.map((s) => s.getterReturnType).concat(i.map((s) => s.setterArgumentType)); + z([r], a, (s) => { + var o = {}; + return i.forEach((u, l) => { + var c = u.fieldName, v = s[l], p = u.getter, m = u.getterContext, b = s[l + i.length], P = u.setter, T = u.setterContext; + o[c] = { + read: (C) => v.fromWireType(p(m, C)), + write: (C, L) => { + var F = []; + P(T, C, b.toWireType(F, L)), Sr(F); + } + }; + }), [{ + name: e.name, + fromWireType: (u) => { + var l = {}; + for (var c in o) + l[c] = o[c].read(u); + return n(u), l; + }, + toWireType: (u, l) => { + for (var c in o) + if (!(c in l)) + throw new TypeError(`Missing field: "${c}"`); + var v = t(); + for (c in o) + o[c].write(v, l[c]); + return u !== null && u.push(n, v), v; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: n + }]; + }); + }, gt = (r, e, t, n, i) => { + }, yt = () => { + for (var r = new Array(256), e = 0; e < 256; ++e) + r[e] = String.fromCharCode(e); + se = r; + }, se, A = (r) => { + for (var e = "", t = r; E[t]; ) + e += se[E[t++]]; + return e; + }, q, y = (r) => { + throw new q(r); + }; + function mt(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = e.name; + if (r || y(`type "${n}" must have a positive integer typeid pointer`), N.hasOwnProperty(r)) { + if (t.ignoreDuplicateRegistrations) + return; + y(`Cannot register type '${n}' twice`); + } + if (N[r] = e, delete dr[r], X.hasOwnProperty(r)) { + var i = X[r]; + delete X[r], i.forEach((a) => a()); + } + } + function k(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return mt(r, e, t); + } + var O = 8, $t = (r, e, t, n) => { + e = A(e), k(r, { + name: e, + fromWireType: function(i) { + return !!i; + }, + toWireType: function(i, a) { + return a ? t : n; + }, + argPackAdvance: O, + readValueFromPointer: function(i) { + return this.fromWireType(E[i]); + }, + destructorFunction: null + }); + }, bt = (r) => ({ + count: r.count, + deleteScheduled: r.deleteScheduled, + preservePointerOnDelete: r.preservePointerOnDelete, + ptr: r.ptr, + ptrType: r.ptrType, + smartPtr: r.smartPtr, + smartPtrType: r.smartPtrType + }), jr = (r) => { + function e(t) { + return t.$$.ptrType.registeredClass.name; + } + y(e(r) + " instance already deleted"); + }, Wr = !1, ue = (r) => { + }, wt = (r) => { + r.smartPtr ? r.smartPtrType.rawDestructor(r.smartPtr) : r.ptrType.registeredClass.rawDestructor(r.ptr); + }, le = (r) => { + r.count.value -= 1; + var e = r.count.value === 0; + e && wt(r); + }, fe = (r, e, t) => { + if (e === t) + return r; + if (t.baseClass === void 0) + return null; + var n = fe(r, e, t.baseClass); + return n === null ? null : t.downcast(n); + }, ce = {}, Tt = {}, Ct = (r, e) => { + for (e === void 0 && y("ptr should not be undefined"); r.baseClass; ) + e = r.upcast(e), r = r.baseClass; + return e; + }, Pt = (r, e) => (e = Ct(r, e), Tt[e]), hr = (r, e) => { + (!e.ptrType || !e.ptr) && pr("makeClassHandle requires ptr and ptrType"); + var t = !!e.smartPtrType, n = !!e.smartPtr; + return t !== n && pr("Both smartPtrType and smartPtr must be specified"), e.count = { + value: 1 + }, J(Object.create(r, { + $$: { + value: e, + writable: !0 + } + })); + }; + function At(r) { + var e = this.getPointee(r); + if (!e) + return this.destructor(r), null; + var t = Pt(this.registeredClass, e); + if (t !== void 0) { + if (t.$$.count.value === 0) + return t.$$.ptr = e, t.$$.smartPtr = r, t.clone(); + var n = t.clone(); + return this.destructor(r), n; + } + function i() { + return this.isSmartPointer ? hr(this.registeredClass.instancePrototype, { + ptrType: this.pointeeType, + ptr: e, + smartPtrType: this, + smartPtr: r + }) : hr(this.registeredClass.instancePrototype, { + ptrType: this, + ptr: r + }); + } + var a = this.registeredClass.getActualType(e), s = ce[a]; + if (!s) + return i.call(this); + var o; + this.isConst ? o = s.constPointerType : o = s.pointerType; + var u = fe(e, this.registeredClass, o.registeredClass); + return u === null ? i.call(this) : this.isSmartPointer ? hr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u, + smartPtrType: this, + smartPtr: r + }) : hr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u + }); + } + var J = (r) => typeof FinalizationRegistry > "u" ? (J = (e) => e, r) : (Wr = new FinalizationRegistry((e) => { + le(e.$$); + }), J = (e) => { + var t = e.$$, n = !!t.smartPtr; + if (n) { + var i = { + $$: t + }; + Wr.register(e, i, e); + } + return e; + }, ue = (e) => Wr.unregister(e), J(r)), _r = [], Et = () => { + for (; _r.length; ) { + var r = _r.pop(); + r.$$.deleteScheduled = !1, r.delete(); + } + }, ve, Ft = () => { + Object.assign(gr.prototype, { + isAliasOf(r) { + if (!(this instanceof gr) || !(r instanceof gr)) + return !1; + var e = this.$$.ptrType.registeredClass, t = this.$$.ptr; + r.$$ = r.$$; + for (var n = r.$$.ptrType.registeredClass, i = r.$$.ptr; e.baseClass; ) + t = e.upcast(t), e = e.baseClass; + for (; n.baseClass; ) + i = n.upcast(i), n = n.baseClass; + return e === n && t === i; + }, + clone() { + if (this.$$.ptr || jr(this), this.$$.preservePointerOnDelete) + return this.$$.count.value += 1, this; + var r = J(Object.create(Object.getPrototypeOf(this), { + $$: { + value: bt(this.$$) + } + })); + return r.$$.count.value += 1, r.$$.deleteScheduled = !1, r; + }, + delete() { + this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), ue(this), le(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); + }, + isDeleted() { + return !this.$$.ptr; + }, + deleteLater() { + return this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), _r.push(this), _r.length === 1 && ve && ve(Et), this.$$.deleteScheduled = !0, this; + } + }); + }; + function gr() { + } + var rr = (r, e) => Object.defineProperty(e, "name", { + value: r + }), de = (r, e, t) => { + if (r[e].overloadTable === void 0) { + var n = r[e]; + r[e] = function() { + for (var i = arguments.length, a = new Array(i), s = 0; s < i; s++) + a[s] = arguments[s]; + return r[e].overloadTable.hasOwnProperty(a.length) || y(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${r[e].overloadTable})!`), r[e].overloadTable[a.length].apply(this, a); + }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n; + } + }, Or = (r, e, t) => { + f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && y(`Cannot register public name '${r}' twice`), de(f, r, r), f.hasOwnProperty(t) && y(`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)); + }, Rt = 48, kt = 57, St = (r) => { + r = r.replace(/[^a-zA-Z0-9_]/g, "$"); + var e = r.charCodeAt(0); + return e >= Rt && e <= kt ? `_${r}` : r; + }; + function jt(r, e, t, n, i, a, s, o) { + this.name = r, this.constructor = e, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = []; + } + var Dr = (r, e, t) => { + for (; e !== t; ) + e.upcast || y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`), r = e.upcast(r), e = e.baseClass; + return r; + }; + function Wt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + function Ot(r, e) { + var t; + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), r !== null && r.push(this.rawDestructor, t), t) : 0; + (!e || !e.$$) && y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + var n = e.$$.ptrType.registeredClass; + if (t = Dr(e.$$.ptr, n, this.registeredClass), this.isSmartPointer) + switch (e.$$.smartPtr === void 0 && y("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { + case 0: + e.$$.smartPtrType === this ? t = e.$$.smartPtr : y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + break; + case 1: + t = e.$$.smartPtr; + break; + case 2: + if (e.$$.smartPtrType === this) + t = e.$$.smartPtr; + else { + var i = e.clone(); + t = this.rawShare(t, x.toHandle(() => i.delete())), r !== null && r.push(this.rawDestructor, t); + } + break; + default: + y("Unsupporting sharing policy"); + } + return t; + } + function Dt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + var Ut = () => { + Object.assign(yr.prototype, { + getPointee(r) { + return this.rawGetPointee && (r = this.rawGetPointee(r)), r; + }, + destructor(r) { + var e; + (e = this.rawDestructor) === null || e === void 0 || e.call(this, r); + }, + argPackAdvance: O, + readValueFromPointer: Y, + fromWireType: At + }); + }; + function yr(r, e, t, n, i, a, s, o, u, l, c) { + this.name = r, this.registeredClass = e, 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 = c, !i && e.baseClass === void 0 ? n ? (this.toWireType = Wt, this.destructorFunction = null) : (this.toWireType = Dt, this.destructorFunction = null) : this.toWireType = Ot; + } + var pe = (r, e, t) => { + f.hasOwnProperty(r) || pr("Replacing nonexistent public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t); + }, xt = (r, e, t) => { + r = r.replace(/p/g, "i"); + var n = f["dynCall_" + r]; + return n(e, ...t); + }, mr = [], he, g = (r) => { + var e = mr[r]; + return e || (r >= mr.length && (mr.length = r + 1), mr[r] = e = he.get(r)), e; + }, It = function(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (r.includes("j")) + return xt(r, e, t); + var n = g(e)(...t); + return n; + }, Mt = (r, e) => function() { + for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) + n[i] = arguments[i]; + return It(r, e, n); + }, S = (r, e) => { + r = A(r); + function t() { + return r.includes("j") ? Mt(r, e) : g(e); + } + var n = t(); + return typeof n != "function" && y(`unknown function pointer with signature ${r}: ${e}`), n; + }, Ht = (r, e) => { + var t = rr(e, function(n) { + this.name = e, this.message = n; + var i = new Error(n).stack; + i !== void 0 && (this.stack = this.toString() + ` +` + i.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, t; + }, _e, ge = (r) => { + var e = Ce(r), t = A(e); + return I(e), t; + }, $r = (r, e) => { + var t = [], n = {}; + function i(a) { + if (!n[a] && !N[a]) { + if (dr[a]) { + dr[a].forEach(i); + return; + } + t.push(a), n[a] = !0; + } + } + throw e.forEach(i), new _e(`${r}: ` + t.map(ge).join([", "])); + }, Vt = (r, e, t, n, i, a, s, o, u, l, c, v, p) => { + c = A(c), a = S(i, a), o && (o = S(s, o)), l && (l = S(u, l)), p = S(v, p); + var m = St(c); + Or(m, function() { + $r(`Cannot construct ${c} due to unbound types`, [n]); + }), z([r, e, t], n ? [n] : [], (b) => { + b = b[0]; + var P, T; + n ? (P = b.registeredClass, T = P.instancePrototype) : T = gr.prototype; + var C = rr(c, function() { + if (Object.getPrototypeOf(this) !== L) + throw new q("Use 'new' to construct " + c); + if (F.constructor_body === void 0) + throw new q(c + " has no accessible constructor"); + for (var Ie = arguments.length, wr = new Array(Ie), Tr = 0; Tr < Ie; Tr++) + wr[Tr] = arguments[Tr]; + var Me = F.constructor_body[wr.length]; + if (Me === void 0) + throw new q(`Tried to invoke ctor of ${c} with invalid number of parameters (${wr.length}) - expected (${Object.keys(F.constructor_body).toString()}) parameters instead!`); + return Me.apply(this, wr); + }), L = Object.create(T, { + constructor: { + value: C + } + }); + C.prototype = L; + var F = new jt(c, C, L, p, P, a, o, l); + if (F.baseClass) { + var M, nr; + (nr = (M = F.baseClass).__derivedClasses) !== null && nr !== void 0 || (M.__derivedClasses = []), F.baseClass.__derivedClasses.push(F); + } + var Ri = new yr(c, F, !0, !1, !1), Ue = new yr(c + "*", F, !1, !1, !1), xe = new yr(c + " const*", F, !1, !0, !1); + return ce[r] = { + pointerType: Ue, + constPointerType: xe + }, pe(m, C), [Ri, Ue, xe]; + }); + }, Ur = (r, e) => { + for (var t = [], n = 0; n < r; n++) + t.push($[e + n * 4 >> 2]); + return t; + }; + function Bt(r) { + for (var e = 1; e < r.length; ++e) + if (r[e] !== null && r[e].destructorFunction === void 0) + return !0; + return !1; + } + function xr(r, e, t, n, i, a) { + var s = e.length; + s < 2 && y("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var o = e[1] !== null && t !== null, u = Bt(e), l = e[0].name !== "void", c = s - 2, v = new Array(c), p = [], m = [], b = function() { + m.length = 0; + var P; + p.length = o ? 2 : 1, p[0] = i, o && (P = e[1].toWireType(m, this), p[1] = P); + for (var T = 0; T < c; ++T) + v[T] = e[T + 2].toWireType(m, T < 0 || arguments.length <= T ? void 0 : arguments[T]), p.push(v[T]); + var C = n(...p); + function L(F) { + if (u) + Sr(m); + else + for (var M = o ? 1 : 2; M < e.length; M++) { + var nr = M === 1 ? P : v[M - 2]; + e[M].destructorFunction !== null && e[M].destructorFunction(nr); + } + if (l) + return e[0].fromWireType(F); + } + return L(C); + }; + return rr(r, b); + } + var Nt = (r, e, t, n, i, a) => { + var s = Ur(e, t); + i = S(n, i), z([], [r], (o) => { + o = o[0]; + var u = `constructor ${o.name}`; + if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[e - 1] !== void 0) + throw new q(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`); + return o.registeredClass.constructor_body[e - 1] = () => { + $r(`Cannot construct ${o.name} due to unbound types`, s); + }, z([], s, (l) => (l.splice(1, 0, null), o.registeredClass.constructor_body[e - 1] = xr(u, l, null, i, a), [])), []; + }); + }, ye = (r) => { + r = r.trim(); + const e = r.indexOf("("); + return e !== -1 ? r.substr(0, e) : r; + }, zt = (r, e, t, n, i, a, s, o, u, l) => { + var c = Ur(t, n); + e = A(e), e = ye(e), a = S(i, a), z([], [r], (v) => { + v = v[0]; + var p = `${v.name}.${e}`; + e.startsWith("@@") && (e = Symbol[e.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(e); + function m() { + $r(`Cannot call ${p} due to unbound types`, c); + } + var b = v.registeredClass.instancePrototype, P = b[e]; + return P === void 0 || P.overloadTable === void 0 && P.className !== v.name && P.argCount === t - 2 ? (m.argCount = t - 2, m.className = v.name, b[e] = m) : (de(b, e, p), b[e].overloadTable[t - 2] = m), z([], c, (T) => { + var C = xr(p, T, v, a, s); + return b[e].overloadTable === void 0 ? (C.argCount = t - 2, b[e] = C) : b[e].overloadTable[t - 2] = C, []; + }), []; + }); + }, Ir = [], U = [], Mr = (r) => { + r > 9 && --U[r + 1] === 0 && (U[r] = void 0, Ir.push(r)); + }, Lt = () => U.length / 2 - 5 - Ir.length, Zt = () => { + U.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), f.count_emval_handles = Lt; + }, x = { + toValue: (r) => (r || y("Cannot use deleted val. handle = " + r), U[r]), + toHandle: (r) => { + switch (r) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const e = Ir.pop() || U.length; + return U[e] = r, U[e + 1] = 1, e; + } + } + } + }, me = { + name: "emscripten::val", + fromWireType: (r) => { + var e = x.toValue(r); + return Mr(r), e; + }, + toWireType: (r, e) => x.toHandle(e), + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: null + }, Gt = (r) => k(r, me), Xt = (r, e, t) => { + switch (e) { + case 1: + return t ? function(n) { + return this.fromWireType(W[n]); + } : function(n) { + return this.fromWireType(E[n]); + }; + case 2: + return t ? function(n) { + return this.fromWireType(G[n >> 1]); + } : function(n) { + return this.fromWireType(K[n >> 1]); + }; + case 4: + return t ? function(n) { + return this.fromWireType(V[n >> 2]); + } : function(n) { + return this.fromWireType($[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, qt = (r, e, t, n) => { + e = A(e); + function i() { + } + i.values = {}, k(r, { + name: e, + constructor: i, + fromWireType: function(a) { + return this.constructor.values[a]; + }, + toWireType: (a, s) => s.value, + argPackAdvance: O, + readValueFromPointer: Xt(e, t, n), + destructorFunction: null + }), Or(e, i); + }, Hr = (r, e) => { + var t = N[r]; + return t === void 0 && y(`${e} has unknown type ${ge(r)}`), t; + }, Kt = (r, e, t) => { + var n = Hr(r, "enum"); + e = A(e); + var i = n.constructor, a = Object.create(n.constructor.prototype, { + value: { + value: t + }, + constructor: { + value: rr(`${n.name}_${e}`, function() { + }) + } + }); + i.values[t] = a, i[e] = a; + }, Vr = (r) => { + if (r === null) + return "null"; + var e = typeof r; + return e === "object" || e === "array" || e === "function" ? r.toString() : "" + r; + }, Qt = (r, e) => { + switch (e) { + case 4: + return function(t) { + return this.fromWireType(Qr[t >> 2]); + }; + case 8: + return function(t) { + return this.fromWireType(Yr[t >> 3]); + }; + default: + throw new TypeError(`invalid float width (${e}): ${r}`); + } + }, Yt = (r, e, t) => { + e = A(e), k(r, { + name: e, + fromWireType: (n) => n, + toWireType: (n, i) => i, + argPackAdvance: O, + readValueFromPointer: Qt(e, t), + destructorFunction: null + }); + }, Jt = (r, e, t, n, i, a, s, o) => { + var u = Ur(e, t); + r = A(r), r = ye(r), i = S(n, i), Or(r, function() { + $r(`Cannot call ${r} due to unbound types`, u); + }, e - 1), z([], u, (l) => { + var c = [l[0], null].concat(l.slice(1)); + return pe(r, xr(r, c, null, i, a), e - 1), []; + }); + }, rn = (r, e, t) => { + switch (e) { + case 1: + return t ? (n) => W[n] : (n) => E[n]; + case 2: + return t ? (n) => G[n >> 1] : (n) => K[n >> 1]; + case 4: + return t ? (n) => V[n >> 2] : (n) => $[n >> 2]; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, en = (r, e, t, n, i) => { + e = A(e); + var a = (c) => c; + if (n === 0) { + var s = 32 - 8 * t; + a = (c) => c << s >>> s; + } + var o = e.includes("unsigned"), u = (c, v) => { + }, l; + o ? l = function(c, v) { + return u(v, this.name), v >>> 0; + } : l = function(c, v) { + return u(v, this.name), v; + }, k(r, { + name: e, + fromWireType: a, + toWireType: l, + argPackAdvance: O, + readValueFromPointer: rn(e, t, n !== 0), + destructorFunction: null + }); + }, tn = (r, e, t) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[e]; + function a(s) { + var o = $[s >> 2], u = $[s + 4 >> 2]; + return new i(W.buffer, u, o); + } + t = A(t), k(r, { + name: t, + fromWireType: a, + argPackAdvance: O, + readValueFromPointer: a + }, { + ignoreDuplicateRegistrations: !0 + }); + }, nn = Object.assign({ + optional: !0 + }, me), an = (r, e) => { + k(r, nn); + }, on = (r, e, t, n) => { + if (!(n > 0)) return 0; + for (var i = t, a = t + n - 1, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (o <= 127) { + if (t >= a) break; + e[t++] = o; + } else if (o <= 2047) { + if (t + 1 >= a) break; + e[t++] = 192 | o >> 6, e[t++] = 128 | o & 63; + } else if (o <= 65535) { + if (t + 2 >= a) break; + e[t++] = 224 | o >> 12, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } else { + if (t + 3 >= a) break; + e[t++] = 240 | o >> 18, e[t++] = 128 | o >> 12 & 63, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } + } + return e[t] = 0, t - i; + }, er = (r, e, t) => on(r, E, e, t), sn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3; + } + return e; + }, $e = typeof TextDecoder < "u" ? new TextDecoder() : void 0, be = function(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = e + t, i = e; r[i] && !(i >= n); ) ++i; + if (i - e > 16 && r.buffer && $e) + return $e.decode(r.subarray(e, i)); + for (var a = ""; e < i; ) { + var s = r[e++]; + if (!(s & 128)) { + a += String.fromCharCode(s); + continue; + } + var o = r[e++] & 63; + if ((s & 224) == 192) { + a += String.fromCharCode((s & 31) << 6 | o); + continue; + } + var u = r[e++] & 63; + if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | r[e++] & 63, s < 65536) + a += String.fromCharCode(s); + else { + var l = s - 65536; + a += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023); + } + } + return a; + }, un = (r, e) => r ? be(E, r, e) : "", ln = (r, e) => { + e = A(e); + var t = e === "std::string"; + k(r, { + name: e, + fromWireType(n) { + var i = $[n >> 2], a = n + 4, s; + if (t) + for (var o = a, u = 0; u <= i; ++u) { + var l = a + u; + if (u == i || E[l] == 0) { + var c = l - o, v = un(o, c); + s === void 0 ? s = v : (s += "\0", s += v), o = l + 1; + } + } + else { + for (var p = new Array(i), u = 0; u < i; ++u) + p[u] = String.fromCharCode(E[a + u]); + s = p.join(""); + } + return I(n), s; + }, + toWireType(n, i) { + i instanceof ArrayBuffer && (i = new Uint8Array(i)); + var a, s = typeof i == "string"; + s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || y("Cannot pass non-string to std::string"), t && s ? a = sn(i) : a = i.length; + var o = zr(4 + a + 1), u = o + 4; + if ($[o >> 2] = a, t && s) + er(i, u, a + 1); + else if (s) + for (var l = 0; l < a; ++l) { + var c = i.charCodeAt(l); + c > 255 && (I(u), y("String has UTF-16 code units that do not fit in 8 bits")), E[u + l] = c; + } + else + for (var l = 0; l < a; ++l) + E[u + l] = i[l]; + return n !== null && n.push(I, o), o; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(n) { + I(n); + } + }); + }, we = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, fn = (r, e) => { + for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && K[n]; ) ++n; + if (t = n << 1, t - r > 32 && we) return we.decode(E.subarray(r, t)); + for (var a = "", s = 0; !(s >= e / 2); ++s) { + var o = G[r + s * 2 >> 1]; + if (o == 0) break; + a += String.fromCharCode(o); + } + return a; + }, cn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2) return 0; + t -= 2; + for (var i = e, a = t < r.length * 2 ? t / 2 : r.length, s = 0; s < a; ++s) { + var o = r.charCodeAt(s); + G[e >> 1] = o, e += 2; + } + return G[e >> 1] = 0, e - i; + }, vn = (r) => r.length * 2, dn = (r, e) => { + for (var t = 0, n = ""; !(t >= e / 4); ) { + var i = V[r + t * 4 >> 2]; + if (i == 0) break; + if (++t, i >= 65536) { + var a = i - 65536; + n += String.fromCharCode(55296 | a >> 10, 56320 | a & 1023); + } else + n += String.fromCharCode(i); + } + return n; + }, pn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4) return 0; + for (var i = e, a = i + t - 4, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (V[e >> 2] = o, e += 4, e + 4 > a) break; + } + return V[e >> 2] = 0, e - i; + }, hn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n >= 55296 && n <= 57343 && ++t, e += 4; + } + return e; + }, _n = (r, e, t) => { + t = A(t); + var n, i, a, s; + e === 2 ? (n = fn, i = cn, s = vn, a = (o) => K[o >> 1]) : e === 4 && (n = dn, i = pn, s = hn, a = (o) => $[o >> 2]), k(r, { + name: t, + fromWireType: (o) => { + for (var u = $[o >> 2], l, c = o + 4, v = 0; v <= u; ++v) { + var p = o + 4 + v * e; + if (v == u || a(p) == 0) { + var m = p - c, b = n(c, m); + l === void 0 ? l = b : (l += "\0", l += b), c = p + e; + } + } + return I(o), l; + }, + toWireType: (o, u) => { + typeof u != "string" && y(`Cannot pass non-string to C++ string type ${t}`); + var l = s(u), c = zr(4 + l + e); + return $[c >> 2] = l / e, i(u, c + 4, l + e), o !== null && o.push(I, c), c; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(o) { + I(o); + } + }); + }, gn = (r, e, t, n, i, a) => { + vr[r] = { + name: A(e), + rawConstructor: S(t, n), + rawDestructor: S(i, a), + fields: [] + }; + }, yn = (r, e, t, n, i, a, s, o, u, l) => { + vr[r].fields.push({ + fieldName: A(e), + getterReturnType: t, + getter: S(n, i), + getterContext: a, + setterArgumentType: s, + setter: S(o, u), + setterContext: l + }); + }, mn = (r, e) => { + e = A(e), k(r, { + isVoid: !0, + name: e, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (t, n) => { + } + }); + }, $n = (r, e, t) => E.copyWithin(r, e, e + t), Br = [], bn = (r, e, t, n) => (r = Br[r], e = x.toValue(e), r(null, e, t, n)), wn = {}, Tn = (r) => { + var e = wn[r]; + return e === void 0 ? A(r) : e; + }, Te = () => { + if (typeof globalThis == "object") + return globalThis; + function r(e) { + e.$$$embind_global$$$ = e; + var t = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e; + return t || delete e.$$$embind_global$$$, t; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && r(global) ? $$$embind_global$$$ = global : typeof self == "object" && r(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Cn = (r) => r === 0 ? x.toHandle(Te()) : (r = Tn(r), x.toHandle(Te()[r])), Pn = (r) => { + var e = Br.length; + return Br.push(r), e; + }, An = (r, e) => { + for (var t = new Array(r), n = 0; n < r; ++n) + t[n] = Hr($[e + n * 4 >> 2], "parameter " + n); + return t; + }, En = Reflect.construct, Fn = (r, e, t) => { + var n = [], i = r.toWireType(n, t); + return n.length && ($[e >> 2] = x.toHandle(n)), i; + }, Rn = (r, e, t) => { + var n = An(r, e), i = n.shift(); + r--; + var a = new Array(r), s = (u, l, c, v) => { + for (var p = 0, m = 0; m < r; ++m) + a[m] = n[m].readValueFromPointer(v + p), p += n[m].argPackAdvance; + var b = t === 1 ? En(l, a) : l.apply(u, a); + return Fn(i, c, b); + }, o = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${i.name}>`; + return Pn(rr(o, s)); + }, kn = (r) => { + r > 9 && (U[r + 1] += 1); + }, Sn = (r) => { + var e = x.toValue(r); + Sr(e), Mr(r); + }, jn = (r, e) => { + r = Hr(r, "_emval_take_value"); + var t = r.readValueFromPointer(e); + return x.toHandle(t); + }, Wn = (r, e, t, n) => { + var i = (/* @__PURE__ */ new Date()).getFullYear(), a = new Date(i, 0, 1), s = new Date(i, 6, 1), o = a.getTimezoneOffset(), u = s.getTimezoneOffset(), l = Math.max(o, u); + $[r >> 2] = l * 60, V[e >> 2] = +(o != u); + var c = (m) => { + var b = m >= 0 ? "-" : "+", P = Math.abs(m), T = String(Math.floor(P / 60)).padStart(2, "0"), C = String(P % 60).padStart(2, "0"); + return `UTC${b}${T}${C}`; + }, v = c(o), p = c(u); + u < o ? (er(v, t, 17), er(p, n, 17)) : (er(v, n, 17), er(p, t, 17)); + }, On = () => 2147483648, Dn = (r, e) => Math.ceil(r / e) * e, Un = (r) => { + var e = sr.buffer, t = (r - e.byteLength + 65535) / 65536 | 0; + try { + return sr.grow(t), Jr(), 1; + } catch { + } + }, xn = (r) => { + var e = E.length; + r >>>= 0; + var t = On(); + if (r > t) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var i = e * (1 + 0.2 / n); + i = Math.min(i, r + 100663296); + var a = Math.min(t, Dn(Math.max(r, i), 65536)), s = Un(a); + if (s) + return !0; + } + return !1; + }, Nr = {}, In = () => Xr || "./this.program", tr = () => { + if (!tr.strings) { + var r = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = { + USER: "web_user", + LOGNAME: "web_user", + PATH: "/", + PWD: "/", + HOME: "/home/web_user", + LANG: r, + _: In() + }; + for (var t in Nr) + Nr[t] === void 0 ? delete e[t] : e[t] = Nr[t]; + var n = []; + for (var t in e) + n.push(`${t}=${e[t]}`); + tr.strings = n; + } + return tr.strings; + }, Mn = (r, e) => { + for (var t = 0; t < r.length; ++t) + W[e++] = r.charCodeAt(t); + W[e] = 0; + }, Hn = (r, e) => { + var t = 0; + return tr().forEach((n, i) => { + var a = e + t; + $[r + i * 4 >> 2] = a, Mn(n, a), t += n.length + 1; + }), 0; + }, Vn = (r, e) => { + var t = tr(); + $[r >> 2] = t.length; + var n = 0; + return t.forEach((i) => n += i.length + 1), $[e >> 2] = n, 0; + }, Bn = (r) => 52; + function Nn(r, e, t, n, i) { + return 70; + } + var zn = [null, [], []], Ln = (r, e) => { + var t = zn[r]; + e === 0 || e === 10 ? ((r === 1 ? Le : Z)(be(t)), t.length = 0) : t.push(e); + }, Zn = (r, e, t, n) => { + for (var i = 0, a = 0; a < t; a++) { + var s = $[e >> 2], o = $[e + 4 >> 2]; + e += 8; + for (var u = 0; u < o; u++) + Ln(r, E[s + u]); + i += o; + } + return $[n >> 2] = i, 0; + }, Gn = (r) => r; + oe = f.InternalError = class extends Error { + constructor(e) { + super(e), this.name = "InternalError"; + } + }, yt(), q = f.BindingError = class extends Error { + constructor(e) { + super(e), this.name = "BindingError"; + } + }, Ft(), Ut(), _e = f.UnboundTypeError = Ht(Error, "UnboundTypeError"), Zt(); + var Xn = { + t: ot, + x: st, + a: lt, + j: ft, + k: ct, + Q: vt, + r: dt, + ia: pt, + d: ut, + ea: ht, + wa: _t, + da: gt, + qa: $t, + ua: Vt, + ta: Nt, + G: zt, + pa: Gt, + H: qt, + q: Kt, + Y: Yt, + S: Jt, + z: en, + v: tn, + va: an, + W: ln, + R: _n, + E: gn, + xa: yn, + ra: mn, + la: $n, + V: bn, + ya: Mr, + _: Cn, + X: Rn, + Z: kn, + $: Sn, + sa: jn, + fa: Wn, + ja: xn, + ga: Hn, + ha: Vn, + ka: Bn, + ba: Nn, + U: Zn, + L: hi, + D: gi, + N: Jn, + T: Ci, + s: ci, + b: qn, + F: pi, + na: mi, + c: ei, + ma: $i, + i: Yn, + h: oi, + n: si, + P: di, + w: ui, + K: wi, + M: vi, + B: yi, + J: Pi, + ca: Ei, + aa: Fi, + m: ti, + g: ri, + e: Qn, + f: Kn, + O: Ti, + l: ii, + oa: _i, + o: ni, + u: li, + y: fi, + C: bi, + p: ai, + I: Ai, + A: Gn + }, w = at(), Ce = (r) => (Ce = w.Ba)(r), I = f._free = (r) => (I = f._free = w.Ca)(r), zr = f._malloc = (r) => (zr = f._malloc = w.Ea)(r), Pe = (r) => (Pe = w.Fa)(r), d = (r, e) => (d = w.Ga)(r, e), Ae = (r) => (Ae = w.Ha)(r), Ee = (r) => (Ee = w.Ia)(r), Fe = () => (Fe = w.Ja)(), Re = (r) => (Re = w.Ka)(r), ke = (r) => (ke = w.La)(r), Se = (r, e, t) => (Se = w.Ma)(r, e, t); + f.dynCall_viijii = (r, e, t, n, i, a, s) => (f.dynCall_viijii = w.Na)(r, e, t, n, i, a, s); + var je = f.dynCall_jiii = (r, e, t, n) => (je = f.dynCall_jiii = w.Oa)(r, e, t, n); + f.dynCall_jiji = (r, e, t, n, i) => (f.dynCall_jiji = w.Pa)(r, e, t, n, i); + var We = f.dynCall_jiiii = (r, e, t, n, i) => (We = f.dynCall_jiiii = w.Qa)(r, e, t, n, i); + f.dynCall_iiiiij = (r, e, t, n, i, a, s) => (f.dynCall_iiiiij = w.Ra)(r, e, t, n, i, a, s), f.dynCall_iiiiijj = (r, e, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = w.Sa)(r, e, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (r, e, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = w.Ta)(r, e, t, n, i, a, s, o, u, l); + function qn(r, e) { + var t = _(); + try { + return g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function Kn(r, e, t, n) { + var i = _(); + try { + g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Qn(r, e, t) { + var n = _(); + try { + g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function Yn(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Jn(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ri(r, e) { + var t = _(); + try { + g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function ei(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function ti(r) { + var e = _(); + try { + g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function ni(r, e, t, n, i, a) { + var s = _(); + try { + g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function ii(r, e, t, n, i) { + var a = _(); + try { + g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ai(r, e, t, n, i, a, s, o, u, l, c) { + var v = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c); + } catch (p) { + if (h(v), p !== p + 0) throw p; + d(1, 0); + } + } + function oi(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function si(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function ui(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function li(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function fi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function ci(r) { + var e = _(); + try { + return g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function vi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + return g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function di(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function pi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function hi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function _i(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function gi(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function yi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function mi(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function $i(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function bi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function wi(r, e, t, n, i, a, s, o) { + var u = _(); + try { + return g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function Ti(r, e, t, n, i, a, s) { + var o = _(); + try { + g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function Ci(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Pi(r, e, t, n, i, a, s, o, u, l, c, v) { + var p = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l, c, v); + } catch (m) { + if (h(p), m !== m + 0) throw m; + d(1, 0); + } + } + function Ai(r, e, t, n, i, a, s, o, u, l, c, v, p, m, b, P) { + var T = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c, v, p, m, b, P); + } catch (C) { + if (h(T), C !== C + 0) throw C; + d(1, 0); + } + } + function Ei(r, e, t, n) { + var i = _(); + try { + return je(r, e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Fi(r, e, t, n, i) { + var a = _(); + try { + return We(r, e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + var br, Oe; + Q = function r() { + br || De(), br || (Q = r); + }; + function De() { + if (B > 0 || !Oe && (Oe = 1, Ze(), B > 0)) + return; + function r() { + var e; + br || (br = 1, f.calledRun = 1, !Kr && (Ge(), Zr(f), (e = f.onRuntimeInitialized) === null || e === void 0 || e.call(f), Xe())); + } + f.setStatus ? (f.setStatus("Running..."), setTimeout(() => { + setTimeout(() => f.setStatus(""), 1), r(); + }, 1)) : r(); + } + if (f.preInit) + for (typeof f.preInit == "function" && (f.preInit = [f.preInit]); f.preInit.length > 0; ) + f.preInit.pop()(); + return De(), Lr = Ve, Lr; + }; +})(); +function Ii(R) { + return ki( + ir, + R + ); +} +function Mi(R) { + return Si( + ir, + R + ); +} +async function Hi(R, H) { + return ji( + ir, + R, + H + ); +} +async function Vi(R, H) { + return Wi( + ir, + R, + H + ); +} +async function Bi(R, H) { + return Oi( + ir, + R, + H + ); +} +export { + Li as barcodeFormats, + Zi as binarizers, + Gi as characterSets, + Xi as contentTypes, + qi as defaultDecodeHints, + Ki as defaultEncodeHints, + Qi as defaultReaderOptions, + Yi as defaultWriterOptions, + Ji as eanAddOnSymbols, + Ii as getZXingModule, + ra as purgeZXingModule, + Vi as readBarcodesFromImageData, + Hi as readBarcodesFromImageFile, + ea as readOutputEccLevels, + Mi as setZXingModuleOverrides, + ta as textModes, + Bi as writeBarcodeToImageFile, + na as writeInputEccLevels +}; diff --git a/node_modules/zxing-wasm/dist/es/reader/index.d.ts b/node_modules/zxing-wasm/dist/es/reader/index.d.ts new file mode 100644 index 0000000..2d31960 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/reader/index.d.ts @@ -0,0 +1,8 @@ +import type { ReaderOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingReaderModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export { purgeZXingModule, type ZXingReaderModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/es/reader/index.js b/node_modules/zxing-wasm/dist/es/reader/index.js new file mode 100644 index 0000000..a78b7c9 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/reader/index.js @@ -0,0 +1,1635 @@ +import { g as ki, s as Si, r as ji, a as Wi } from "../core-C2hxqLt7.js"; +import { b as Ni, c as zi, e as Li, f as Zi, d as Gi, d as Xi, h as qi, p as Ki, i as Qi, t as Yi } from "../core-C2hxqLt7.js"; +var Cr = (() => { + var L; + var S = typeof document < "u" && ((L = document.currentScript) == null ? void 0 : L.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(He = {}) { + var Lr, f = He, Zr, ir, Ve = new Promise((r, e) => { + Zr = r, ir = e; + }), Be = typeof window == "object", Ne = typeof Bun < "u", Tr = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var Gr = Object.assign({}, f), Xr = "./this.program", j = ""; + function ze(r) { + return f.locateFile ? f.locateFile(r, j) : j + r; + } + var qr, Pr; + if (Be || Tr || Ne) { + var Ar; + Tr ? j = self.location.href : typeof document < "u" && ((Ar = document.currentScript) === null || Ar === void 0 ? void 0 : Ar.tagName.toUpperCase()) === "SCRIPT" && (j = document.currentScript.src), S && (j = S), j.startsWith("blob:") ? j = "" : j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1), Tr && (Pr = (r) => { + var e = new XMLHttpRequest(); + return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); + }), qr = (r) => fetch(r, { + credentials: "same-origin" + }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url))); + } + var Le = f.print || console.log.bind(console), Z = f.printErr || console.error.bind(console); + Object.assign(f, Gr), Gr = null, f.arguments && f.arguments, f.thisProgram && (Xr = f.thisProgram); + var ar = f.wasmBinary, or, Kr = !1, W, E, G, K, H, $, Qr, Yr; + function Jr() { + var r = or.buffer; + f.HEAP8 = W = new Int8Array(r), f.HEAP16 = G = new Int16Array(r), f.HEAPU8 = E = new Uint8Array(r), f.HEAPU16 = K = new Uint16Array(r), f.HEAP32 = H = new Int32Array(r), f.HEAPU32 = $ = new Uint32Array(r), f.HEAPF32 = Qr = new Float32Array(r), f.HEAPF64 = Yr = new Float64Array(r); + } + var re = [], ee = [], te = []; + function Ze() { + var r = f.preRun; + r && (typeof r == "function" && (r = [r]), r.forEach(qe)), Fr(re); + } + function Ge() { + Fr(ee); + } + function Xe() { + var r = f.postRun; + r && (typeof r == "function" && (r = [r]), r.forEach(Qe)), Fr(te); + } + function qe(r) { + re.unshift(r); + } + function Ke(r) { + ee.unshift(r); + } + function Qe(r) { + te.unshift(r); + } + var V = 0, Q = null; + function Ye(r) { + var e; + V++, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, V); + } + function Je(r) { + var e; + if (V--, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, V), V == 0 && Q) { + var t = Q; + Q = null, t(); + } + } + function Er(r) { + var e; + (e = f.onAbort) === null || e === void 0 || e.call(f, r), r = "Aborted(" + r + ")", Z(r), Kr = !0, r += ". Build with -sASSERTIONS for more info."; + var t = new WebAssembly.RuntimeError(r); + throw ir(t), t; + } + var rt = "data:application/octet-stream;base64,", ne = (r) => r.startsWith(rt); + function et() { + var r = "zxing_reader.wasm"; + return ne(r) ? r : ze(r); + } + var sr; + function ie(r) { + if (r == sr && ar) + return new Uint8Array(ar); + if (Pr) + return Pr(r); + throw "both async and sync fetching of the wasm failed"; + } + function tt(r) { + return ar ? Promise.resolve().then(() => ie(r)) : qr(r).then((e) => new Uint8Array(e), () => ie(r)); + } + function ae(r, e, t) { + return tt(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => { + Z(`failed to asynchronously prepare wasm: ${n}`), Er(n); + }); + } + function nt(r, e, t, n) { + return !r && typeof WebAssembly.instantiateStreaming == "function" && !ne(e) && typeof fetch == "function" ? fetch(e, { + credentials: "same-origin" + }).then((i) => { + var a = WebAssembly.instantiateStreaming(i, t); + return a.then(n, function(s) { + return Z(`wasm streaming compile failed: ${s}`), Z("falling back to ArrayBuffer instantiation"), ae(e, t, n); + }); + }) : ae(e, t, n); + } + function it() { + return { + a: Xn + }; + } + function at() { + var r, e = it(); + function t(i, a) { + return w = i.exports, or = w.za, Jr(), he = w.Da, Ke(w.Aa), Je(), w; + } + Ye(); + function n(i) { + t(i.instance); + } + if (f.instantiateWasm) + try { + return f.instantiateWasm(e, t); + } catch (i) { + Z(`Module.instantiateWasm callback failed with error: ${i}`), ir(i); + } + return (r = sr) !== null && r !== void 0 || (sr = et()), nt(ar, sr, e, n).catch(ir), {}; + } + var Fr = (r) => { + r.forEach((e) => e(f)); + }; + f.noExitRuntime; + var h = (r) => Ee(r), _ = () => Fe(), ur = [], lr = 0, ot = (r) => { + var e = new Rr(r); + return e.get_caught() || (e.set_caught(!0), lr--), e.set_rethrown(!1), ur.push(e), ke(r), Pe(r); + }, D = 0, st = () => { + d(0, 0); + var r = ur.pop(); + Re(r.excPtr), D = 0; + }; + class Rr { + constructor(e) { + this.excPtr = e, this.ptr = e - 24; + } + set_type(e) { + $[this.ptr + 4 >> 2] = e; + } + get_type() { + return $[this.ptr + 4 >> 2]; + } + set_destructor(e) { + $[this.ptr + 8 >> 2] = e; + } + get_destructor() { + return $[this.ptr + 8 >> 2]; + } + set_caught(e) { + e = e ? 1 : 0, W[this.ptr + 12] = e; + } + get_caught() { + return W[this.ptr + 12] != 0; + } + set_rethrown(e) { + e = e ? 1 : 0, W[this.ptr + 13] = e; + } + get_rethrown() { + return W[this.ptr + 13] != 0; + } + init(e, t) { + this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t); + } + set_adjusted_ptr(e) { + $[this.ptr + 16 >> 2] = e; + } + get_adjusted_ptr() { + return $[this.ptr + 16 >> 2]; + } + } + var ut = (r) => { + throw D || (D = r), D; + }, fr = (r) => Ae(r), kr = (r) => { + var e = D; + if (!e) + return fr(0), 0; + var t = new Rr(e); + t.set_adjusted_ptr(e); + var n = t.get_type(); + if (!n) + return fr(0), e; + for (var i of r) { + if (i === 0 || i === n) + break; + var a = t.ptr + 16; + if (Se(i, n, a)) + return fr(i), e; + } + return fr(n), e; + }, lt = () => kr([]), ft = (r) => kr([r]), ct = (r, e) => kr([r, e]), vt = () => { + var r = ur.pop(); + r || Er("no exception to throw"); + var e = r.excPtr; + throw r.get_rethrown() || (ur.push(r), r.set_rethrown(!0), r.set_caught(!1), lr++), D = e, D; + }, dt = (r, e, t) => { + var n = new Rr(r); + throw n.init(e, t), D = r, lr++, D; + }, pt = () => lr, ht = () => { + Er(""); + }, cr = {}, Sr = (r) => { + for (; r.length; ) { + var e = r.pop(), t = r.pop(); + t(e); + } + }; + function Y(r) { + return this.fromWireType($[r >> 2]); + } + var X = {}, B = {}, vr = {}, oe, dr = (r) => { + throw new oe(r); + }, N = (r, e, t) => { + r.forEach((o) => vr[o] = e); + function n(o) { + var u = t(o); + u.length !== r.length && dr("Mismatched type converter count"); + for (var l = 0; l < r.length; ++l) + R(r[l], u[l]); + } + var i = new Array(e.length), a = [], s = 0; + e.forEach((o, u) => { + B.hasOwnProperty(o) ? i[u] = B[o] : (a.push(o), X.hasOwnProperty(o) || (X[o] = []), X[o].push(() => { + i[u] = B[o], ++s, s === a.length && n(i); + })); + }), a.length === 0 && n(i); + }, _t = (r) => { + var e = cr[r]; + delete cr[r]; + var t = e.rawConstructor, n = e.rawDestructor, i = e.fields, a = i.map((s) => s.getterReturnType).concat(i.map((s) => s.setterArgumentType)); + N([r], a, (s) => { + var o = {}; + return i.forEach((u, l) => { + var c = u.fieldName, v = s[l], p = u.getter, m = u.getterContext, b = s[l + i.length], P = u.setter, C = u.setterContext; + o[c] = { + read: (T) => v.fromWireType(p(m, T)), + write: (T, z) => { + var F = []; + P(C, T, b.toWireType(F, z)), Sr(F); + } + }; + }), [{ + name: e.name, + fromWireType: (u) => { + var l = {}; + for (var c in o) + l[c] = o[c].read(u); + return n(u), l; + }, + toWireType: (u, l) => { + for (var c in o) + if (!(c in l)) + throw new TypeError(`Missing field: "${c}"`); + var v = t(); + for (c in o) + o[c].write(v, l[c]); + return u !== null && u.push(n, v), v; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: n + }]; + }); + }, gt = (r, e, t, n, i) => { + }, yt = () => { + for (var r = new Array(256), e = 0; e < 256; ++e) + r[e] = String.fromCharCode(e); + se = r; + }, se, A = (r) => { + for (var e = "", t = r; E[t]; ) + e += se[E[t++]]; + return e; + }, q, y = (r) => { + throw new q(r); + }; + function mt(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = e.name; + if (r || y(`type "${n}" must have a positive integer typeid pointer`), B.hasOwnProperty(r)) { + if (t.ignoreDuplicateRegistrations) + return; + y(`Cannot register type '${n}' twice`); + } + if (B[r] = e, delete vr[r], X.hasOwnProperty(r)) { + var i = X[r]; + delete X[r], i.forEach((a) => a()); + } + } + function R(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return mt(r, e, t); + } + var O = 8, $t = (r, e, t, n) => { + e = A(e), R(r, { + name: e, + fromWireType: function(i) { + return !!i; + }, + toWireType: function(i, a) { + return a ? t : n; + }, + argPackAdvance: O, + readValueFromPointer: function(i) { + return this.fromWireType(E[i]); + }, + destructorFunction: null + }); + }, bt = (r) => ({ + count: r.count, + deleteScheduled: r.deleteScheduled, + preservePointerOnDelete: r.preservePointerOnDelete, + ptr: r.ptr, + ptrType: r.ptrType, + smartPtr: r.smartPtr, + smartPtrType: r.smartPtrType + }), jr = (r) => { + function e(t) { + return t.$$.ptrType.registeredClass.name; + } + y(e(r) + " instance already deleted"); + }, Wr = !1, ue = (r) => { + }, wt = (r) => { + r.smartPtr ? r.smartPtrType.rawDestructor(r.smartPtr) : r.ptrType.registeredClass.rawDestructor(r.ptr); + }, le = (r) => { + r.count.value -= 1; + var e = r.count.value === 0; + e && wt(r); + }, fe = (r, e, t) => { + if (e === t) + return r; + if (t.baseClass === void 0) + return null; + var n = fe(r, e, t.baseClass); + return n === null ? null : t.downcast(n); + }, ce = {}, Ct = {}, Tt = (r, e) => { + for (e === void 0 && y("ptr should not be undefined"); r.baseClass; ) + e = r.upcast(e), r = r.baseClass; + return e; + }, Pt = (r, e) => (e = Tt(r, e), Ct[e]), pr = (r, e) => { + (!e.ptrType || !e.ptr) && dr("makeClassHandle requires ptr and ptrType"); + var t = !!e.smartPtrType, n = !!e.smartPtr; + return t !== n && dr("Both smartPtrType and smartPtr must be specified"), e.count = { + value: 1 + }, J(Object.create(r, { + $$: { + value: e, + writable: !0 + } + })); + }; + function At(r) { + var e = this.getPointee(r); + if (!e) + return this.destructor(r), null; + var t = Pt(this.registeredClass, e); + if (t !== void 0) { + if (t.$$.count.value === 0) + return t.$$.ptr = e, t.$$.smartPtr = r, t.clone(); + var n = t.clone(); + return this.destructor(r), n; + } + function i() { + return this.isSmartPointer ? pr(this.registeredClass.instancePrototype, { + ptrType: this.pointeeType, + ptr: e, + smartPtrType: this, + smartPtr: r + }) : pr(this.registeredClass.instancePrototype, { + ptrType: this, + ptr: r + }); + } + var a = this.registeredClass.getActualType(e), s = ce[a]; + if (!s) + return i.call(this); + var o; + this.isConst ? o = s.constPointerType : o = s.pointerType; + var u = fe(e, this.registeredClass, o.registeredClass); + return u === null ? i.call(this) : this.isSmartPointer ? pr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u, + smartPtrType: this, + smartPtr: r + }) : pr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u + }); + } + var J = (r) => typeof FinalizationRegistry > "u" ? (J = (e) => e, r) : (Wr = new FinalizationRegistry((e) => { + le(e.$$); + }), J = (e) => { + var t = e.$$, n = !!t.smartPtr; + if (n) { + var i = { + $$: t + }; + Wr.register(e, i, e); + } + return e; + }, ue = (e) => Wr.unregister(e), J(r)), hr = [], Et = () => { + for (; hr.length; ) { + var r = hr.pop(); + r.$$.deleteScheduled = !1, r.delete(); + } + }, ve, Ft = () => { + Object.assign(_r.prototype, { + isAliasOf(r) { + if (!(this instanceof _r) || !(r instanceof _r)) + return !1; + var e = this.$$.ptrType.registeredClass, t = this.$$.ptr; + r.$$ = r.$$; + for (var n = r.$$.ptrType.registeredClass, i = r.$$.ptr; e.baseClass; ) + t = e.upcast(t), e = e.baseClass; + for (; n.baseClass; ) + i = n.upcast(i), n = n.baseClass; + return e === n && t === i; + }, + clone() { + if (this.$$.ptr || jr(this), this.$$.preservePointerOnDelete) + return this.$$.count.value += 1, this; + var r = J(Object.create(Object.getPrototypeOf(this), { + $$: { + value: bt(this.$$) + } + })); + return r.$$.count.value += 1, r.$$.deleteScheduled = !1, r; + }, + delete() { + this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), ue(this), le(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); + }, + isDeleted() { + return !this.$$.ptr; + }, + deleteLater() { + return this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), hr.push(this), hr.length === 1 && ve && ve(Et), this.$$.deleteScheduled = !0, this; + } + }); + }; + function _r() { + } + var rr = (r, e) => Object.defineProperty(e, "name", { + value: r + }), de = (r, e, t) => { + if (r[e].overloadTable === void 0) { + var n = r[e]; + r[e] = function() { + for (var i = arguments.length, a = new Array(i), s = 0; s < i; s++) + a[s] = arguments[s]; + return r[e].overloadTable.hasOwnProperty(a.length) || y(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${r[e].overloadTable})!`), r[e].overloadTable[a.length].apply(this, a); + }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n; + } + }, Or = (r, e, t) => { + f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && y(`Cannot register public name '${r}' twice`), de(f, r, r), f.hasOwnProperty(t) && y(`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)); + }, Rt = 48, kt = 57, St = (r) => { + r = r.replace(/[^a-zA-Z0-9_]/g, "$"); + var e = r.charCodeAt(0); + return e >= Rt && e <= kt ? `_${r}` : r; + }; + function jt(r, e, t, n, i, a, s, o) { + this.name = r, this.constructor = e, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = []; + } + var Dr = (r, e, t) => { + for (; e !== t; ) + e.upcast || y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`), r = e.upcast(r), e = e.baseClass; + return r; + }; + function Wt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + function Ot(r, e) { + var t; + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), r !== null && r.push(this.rawDestructor, t), t) : 0; + (!e || !e.$$) && y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + var n = e.$$.ptrType.registeredClass; + if (t = Dr(e.$$.ptr, n, this.registeredClass), this.isSmartPointer) + switch (e.$$.smartPtr === void 0 && y("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { + case 0: + e.$$.smartPtrType === this ? t = e.$$.smartPtr : y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + break; + case 1: + t = e.$$.smartPtr; + break; + case 2: + if (e.$$.smartPtrType === this) + t = e.$$.smartPtr; + else { + var i = e.clone(); + t = this.rawShare(t, x.toHandle(() => i.delete())), r !== null && r.push(this.rawDestructor, t); + } + break; + default: + y("Unsupporting sharing policy"); + } + return t; + } + function Dt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + var Ut = () => { + Object.assign(gr.prototype, { + getPointee(r) { + return this.rawGetPointee && (r = this.rawGetPointee(r)), r; + }, + destructor(r) { + var e; + (e = this.rawDestructor) === null || e === void 0 || e.call(this, r); + }, + argPackAdvance: O, + readValueFromPointer: Y, + fromWireType: At + }); + }; + function gr(r, e, t, n, i, a, s, o, u, l, c) { + this.name = r, this.registeredClass = e, 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 = c, !i && e.baseClass === void 0 ? n ? (this.toWireType = Wt, this.destructorFunction = null) : (this.toWireType = Dt, this.destructorFunction = null) : this.toWireType = Ot; + } + var pe = (r, e, t) => { + f.hasOwnProperty(r) || dr("Replacing nonexistent public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t); + }, xt = (r, e, t) => { + r = r.replace(/p/g, "i"); + var n = f["dynCall_" + r]; + return n(e, ...t); + }, yr = [], he, g = (r) => { + var e = yr[r]; + return e || (r >= yr.length && (yr.length = r + 1), yr[r] = e = he.get(r)), e; + }, Mt = function(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (r.includes("j")) + return xt(r, e, t); + var n = g(e)(...t); + return n; + }, It = (r, e) => function() { + for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) + n[i] = arguments[i]; + return Mt(r, e, n); + }, k = (r, e) => { + r = A(r); + function t() { + return r.includes("j") ? It(r, e) : g(e); + } + var n = t(); + return typeof n != "function" && y(`unknown function pointer with signature ${r}: ${e}`), n; + }, Ht = (r, e) => { + var t = rr(e, function(n) { + this.name = e, this.message = n; + var i = new Error(n).stack; + i !== void 0 && (this.stack = this.toString() + ` +` + i.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, t; + }, _e, ge = (r) => { + var e = Te(r), t = A(e); + return M(e), t; + }, mr = (r, e) => { + var t = [], n = {}; + function i(a) { + if (!n[a] && !B[a]) { + if (vr[a]) { + vr[a].forEach(i); + return; + } + t.push(a), n[a] = !0; + } + } + throw e.forEach(i), new _e(`${r}: ` + t.map(ge).join([", "])); + }, Vt = (r, e, t, n, i, a, s, o, u, l, c, v, p) => { + c = A(c), a = k(i, a), o && (o = k(s, o)), l && (l = k(u, l)), p = k(v, p); + var m = St(c); + Or(m, function() { + mr(`Cannot construct ${c} due to unbound types`, [n]); + }), N([r, e, t], n ? [n] : [], (b) => { + b = b[0]; + var P, C; + n ? (P = b.registeredClass, C = P.instancePrototype) : C = _r.prototype; + var T = rr(c, function() { + if (Object.getPrototypeOf(this) !== z) + throw new q("Use 'new' to construct " + c); + if (F.constructor_body === void 0) + throw new q(c + " has no accessible constructor"); + for (var Me = arguments.length, br = new Array(Me), wr = 0; wr < Me; wr++) + br[wr] = arguments[wr]; + var Ie = F.constructor_body[br.length]; + if (Ie === void 0) + throw new q(`Tried to invoke ctor of ${c} with invalid number of parameters (${br.length}) - expected (${Object.keys(F.constructor_body).toString()}) parameters instead!`); + return Ie.apply(this, br); + }), z = Object.create(C, { + constructor: { + value: T + } + }); + T.prototype = z; + var F = new jt(c, T, z, p, P, a, o, l); + if (F.baseClass) { + var I, nr; + (nr = (I = F.baseClass).__derivedClasses) !== null && nr !== void 0 || (I.__derivedClasses = []), F.baseClass.__derivedClasses.push(F); + } + var Ri = new gr(c, F, !0, !1, !1), Ue = new gr(c + "*", F, !1, !1, !1), xe = new gr(c + " const*", F, !1, !0, !1); + return ce[r] = { + pointerType: Ue, + constPointerType: xe + }, pe(m, T), [Ri, Ue, xe]; + }); + }, Ur = (r, e) => { + for (var t = [], n = 0; n < r; n++) + t.push($[e + n * 4 >> 2]); + return t; + }; + function Bt(r) { + for (var e = 1; e < r.length; ++e) + if (r[e] !== null && r[e].destructorFunction === void 0) + return !0; + return !1; + } + function xr(r, e, t, n, i, a) { + var s = e.length; + s < 2 && y("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var o = e[1] !== null && t !== null, u = Bt(e), l = e[0].name !== "void", c = s - 2, v = new Array(c), p = [], m = [], b = function() { + m.length = 0; + var P; + p.length = o ? 2 : 1, p[0] = i, o && (P = e[1].toWireType(m, this), p[1] = P); + for (var C = 0; C < c; ++C) + v[C] = e[C + 2].toWireType(m, C < 0 || arguments.length <= C ? void 0 : arguments[C]), p.push(v[C]); + var T = n(...p); + function z(F) { + if (u) + Sr(m); + else + for (var I = o ? 1 : 2; I < e.length; I++) { + var nr = I === 1 ? P : v[I - 2]; + e[I].destructorFunction !== null && e[I].destructorFunction(nr); + } + if (l) + return e[0].fromWireType(F); + } + return z(T); + }; + return rr(r, b); + } + var Nt = (r, e, t, n, i, a) => { + var s = Ur(e, t); + i = k(n, i), N([], [r], (o) => { + o = o[0]; + var u = `constructor ${o.name}`; + if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[e - 1] !== void 0) + throw new q(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`); + return o.registeredClass.constructor_body[e - 1] = () => { + mr(`Cannot construct ${o.name} due to unbound types`, s); + }, N([], s, (l) => (l.splice(1, 0, null), o.registeredClass.constructor_body[e - 1] = xr(u, l, null, i, a), [])), []; + }); + }, ye = (r) => { + r = r.trim(); + const e = r.indexOf("("); + return e !== -1 ? r.substr(0, e) : r; + }, zt = (r, e, t, n, i, a, s, o, u, l) => { + var c = Ur(t, n); + e = A(e), e = ye(e), a = k(i, a), N([], [r], (v) => { + v = v[0]; + var p = `${v.name}.${e}`; + e.startsWith("@@") && (e = Symbol[e.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(e); + function m() { + mr(`Cannot call ${p} due to unbound types`, c); + } + var b = v.registeredClass.instancePrototype, P = b[e]; + return P === void 0 || P.overloadTable === void 0 && P.className !== v.name && P.argCount === t - 2 ? (m.argCount = t - 2, m.className = v.name, b[e] = m) : (de(b, e, p), b[e].overloadTable[t - 2] = m), N([], c, (C) => { + var T = xr(p, C, v, a, s); + return b[e].overloadTable === void 0 ? (T.argCount = t - 2, b[e] = T) : b[e].overloadTable[t - 2] = T, []; + }), []; + }); + }, Mr = [], U = [], Ir = (r) => { + r > 9 && --U[r + 1] === 0 && (U[r] = void 0, Mr.push(r)); + }, Lt = () => U.length / 2 - 5 - Mr.length, Zt = () => { + U.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), f.count_emval_handles = Lt; + }, x = { + toValue: (r) => (r || y("Cannot use deleted val. handle = " + r), U[r]), + toHandle: (r) => { + switch (r) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const e = Mr.pop() || U.length; + return U[e] = r, U[e + 1] = 1, e; + } + } + } + }, me = { + name: "emscripten::val", + fromWireType: (r) => { + var e = x.toValue(r); + return Ir(r), e; + }, + toWireType: (r, e) => x.toHandle(e), + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: null + }, Gt = (r) => R(r, me), Xt = (r, e, t) => { + switch (e) { + case 1: + return t ? function(n) { + return this.fromWireType(W[n]); + } : function(n) { + return this.fromWireType(E[n]); + }; + case 2: + return t ? function(n) { + return this.fromWireType(G[n >> 1]); + } : function(n) { + return this.fromWireType(K[n >> 1]); + }; + case 4: + return t ? function(n) { + return this.fromWireType(H[n >> 2]); + } : function(n) { + return this.fromWireType($[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, qt = (r, e, t, n) => { + e = A(e); + function i() { + } + i.values = {}, R(r, { + name: e, + constructor: i, + fromWireType: function(a) { + return this.constructor.values[a]; + }, + toWireType: (a, s) => s.value, + argPackAdvance: O, + readValueFromPointer: Xt(e, t, n), + destructorFunction: null + }), Or(e, i); + }, Hr = (r, e) => { + var t = B[r]; + return t === void 0 && y(`${e} has unknown type ${ge(r)}`), t; + }, Kt = (r, e, t) => { + var n = Hr(r, "enum"); + e = A(e); + var i = n.constructor, a = Object.create(n.constructor.prototype, { + value: { + value: t + }, + constructor: { + value: rr(`${n.name}_${e}`, function() { + }) + } + }); + i.values[t] = a, i[e] = a; + }, Vr = (r) => { + if (r === null) + return "null"; + var e = typeof r; + return e === "object" || e === "array" || e === "function" ? r.toString() : "" + r; + }, Qt = (r, e) => { + switch (e) { + case 4: + return function(t) { + return this.fromWireType(Qr[t >> 2]); + }; + case 8: + return function(t) { + return this.fromWireType(Yr[t >> 3]); + }; + default: + throw new TypeError(`invalid float width (${e}): ${r}`); + } + }, Yt = (r, e, t) => { + e = A(e), R(r, { + name: e, + fromWireType: (n) => n, + toWireType: (n, i) => i, + argPackAdvance: O, + readValueFromPointer: Qt(e, t), + destructorFunction: null + }); + }, Jt = (r, e, t, n, i, a, s, o) => { + var u = Ur(e, t); + r = A(r), r = ye(r), i = k(n, i), Or(r, function() { + mr(`Cannot call ${r} due to unbound types`, u); + }, e - 1), N([], u, (l) => { + var c = [l[0], null].concat(l.slice(1)); + return pe(r, xr(r, c, null, i, a), e - 1), []; + }); + }, rn = (r, e, t) => { + switch (e) { + case 1: + return t ? (n) => W[n] : (n) => E[n]; + case 2: + return t ? (n) => G[n >> 1] : (n) => K[n >> 1]; + case 4: + return t ? (n) => H[n >> 2] : (n) => $[n >> 2]; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, en = (r, e, t, n, i) => { + e = A(e); + var a = (c) => c; + if (n === 0) { + var s = 32 - 8 * t; + a = (c) => c << s >>> s; + } + var o = e.includes("unsigned"), u = (c, v) => { + }, l; + o ? l = function(c, v) { + return u(v, this.name), v >>> 0; + } : l = function(c, v) { + return u(v, this.name), v; + }, R(r, { + name: e, + fromWireType: a, + toWireType: l, + argPackAdvance: O, + readValueFromPointer: rn(e, t, n !== 0), + destructorFunction: null + }); + }, tn = (r, e, t) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[e]; + function a(s) { + var o = $[s >> 2], u = $[s + 4 >> 2]; + return new i(W.buffer, u, o); + } + t = A(t), R(r, { + name: t, + fromWireType: a, + argPackAdvance: O, + readValueFromPointer: a + }, { + ignoreDuplicateRegistrations: !0 + }); + }, nn = Object.assign({ + optional: !0 + }, me), an = (r, e) => { + R(r, nn); + }, on = (r, e, t, n) => { + if (!(n > 0)) return 0; + for (var i = t, a = t + n - 1, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (o <= 127) { + if (t >= a) break; + e[t++] = o; + } else if (o <= 2047) { + if (t + 1 >= a) break; + e[t++] = 192 | o >> 6, e[t++] = 128 | o & 63; + } else if (o <= 65535) { + if (t + 2 >= a) break; + e[t++] = 224 | o >> 12, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } else { + if (t + 3 >= a) break; + e[t++] = 240 | o >> 18, e[t++] = 128 | o >> 12 & 63, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } + } + return e[t] = 0, t - i; + }, er = (r, e, t) => on(r, E, e, t), sn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3; + } + return e; + }, $e = typeof TextDecoder < "u" ? new TextDecoder() : void 0, be = function(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = e + t, i = e; r[i] && !(i >= n); ) ++i; + if (i - e > 16 && r.buffer && $e) + return $e.decode(r.subarray(e, i)); + for (var a = ""; e < i; ) { + var s = r[e++]; + if (!(s & 128)) { + a += String.fromCharCode(s); + continue; + } + var o = r[e++] & 63; + if ((s & 224) == 192) { + a += String.fromCharCode((s & 31) << 6 | o); + continue; + } + var u = r[e++] & 63; + if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | r[e++] & 63, s < 65536) + a += String.fromCharCode(s); + else { + var l = s - 65536; + a += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023); + } + } + return a; + }, un = (r, e) => r ? be(E, r, e) : "", ln = (r, e) => { + e = A(e); + var t = e === "std::string"; + R(r, { + name: e, + fromWireType(n) { + var i = $[n >> 2], a = n + 4, s; + if (t) + for (var o = a, u = 0; u <= i; ++u) { + var l = a + u; + if (u == i || E[l] == 0) { + var c = l - o, v = un(o, c); + s === void 0 ? s = v : (s += "\0", s += v), o = l + 1; + } + } + else { + for (var p = new Array(i), u = 0; u < i; ++u) + p[u] = String.fromCharCode(E[a + u]); + s = p.join(""); + } + return M(n), s; + }, + toWireType(n, i) { + i instanceof ArrayBuffer && (i = new Uint8Array(i)); + var a, s = typeof i == "string"; + s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || y("Cannot pass non-string to std::string"), t && s ? a = sn(i) : a = i.length; + var o = zr(4 + a + 1), u = o + 4; + if ($[o >> 2] = a, t && s) + er(i, u, a + 1); + else if (s) + for (var l = 0; l < a; ++l) { + var c = i.charCodeAt(l); + c > 255 && (M(u), y("String has UTF-16 code units that do not fit in 8 bits")), E[u + l] = c; + } + else + for (var l = 0; l < a; ++l) + E[u + l] = i[l]; + return n !== null && n.push(M, o), o; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(n) { + M(n); + } + }); + }, we = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, fn = (r, e) => { + for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && K[n]; ) ++n; + if (t = n << 1, t - r > 32 && we) return we.decode(E.subarray(r, t)); + for (var a = "", s = 0; !(s >= e / 2); ++s) { + var o = G[r + s * 2 >> 1]; + if (o == 0) break; + a += String.fromCharCode(o); + } + return a; + }, cn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2) return 0; + t -= 2; + for (var i = e, a = t < r.length * 2 ? t / 2 : r.length, s = 0; s < a; ++s) { + var o = r.charCodeAt(s); + G[e >> 1] = o, e += 2; + } + return G[e >> 1] = 0, e - i; + }, vn = (r) => r.length * 2, dn = (r, e) => { + for (var t = 0, n = ""; !(t >= e / 4); ) { + var i = H[r + t * 4 >> 2]; + if (i == 0) break; + if (++t, i >= 65536) { + var a = i - 65536; + n += String.fromCharCode(55296 | a >> 10, 56320 | a & 1023); + } else + n += String.fromCharCode(i); + } + return n; + }, pn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4) return 0; + for (var i = e, a = i + t - 4, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (H[e >> 2] = o, e += 4, e + 4 > a) break; + } + return H[e >> 2] = 0, e - i; + }, hn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n >= 55296 && n <= 57343 && ++t, e += 4; + } + return e; + }, _n = (r, e, t) => { + t = A(t); + var n, i, a, s; + e === 2 ? (n = fn, i = cn, s = vn, a = (o) => K[o >> 1]) : e === 4 && (n = dn, i = pn, s = hn, a = (o) => $[o >> 2]), R(r, { + name: t, + fromWireType: (o) => { + for (var u = $[o >> 2], l, c = o + 4, v = 0; v <= u; ++v) { + var p = o + 4 + v * e; + if (v == u || a(p) == 0) { + var m = p - c, b = n(c, m); + l === void 0 ? l = b : (l += "\0", l += b), c = p + e; + } + } + return M(o), l; + }, + toWireType: (o, u) => { + typeof u != "string" && y(`Cannot pass non-string to C++ string type ${t}`); + var l = s(u), c = zr(4 + l + e); + return $[c >> 2] = l / e, i(u, c + 4, l + e), o !== null && o.push(M, c), c; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(o) { + M(o); + } + }); + }, gn = (r, e, t, n, i, a) => { + cr[r] = { + name: A(e), + rawConstructor: k(t, n), + rawDestructor: k(i, a), + fields: [] + }; + }, yn = (r, e, t, n, i, a, s, o, u, l) => { + cr[r].fields.push({ + fieldName: A(e), + getterReturnType: t, + getter: k(n, i), + getterContext: a, + setterArgumentType: s, + setter: k(o, u), + setterContext: l + }); + }, mn = (r, e) => { + e = A(e), R(r, { + isVoid: !0, + name: e, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (t, n) => { + } + }); + }, $n = (r, e, t) => E.copyWithin(r, e, e + t), Br = [], bn = (r, e, t, n) => (r = Br[r], e = x.toValue(e), r(null, e, t, n)), wn = {}, Cn = (r) => { + var e = wn[r]; + return e === void 0 ? A(r) : e; + }, Ce = () => { + if (typeof globalThis == "object") + return globalThis; + function r(e) { + e.$$$embind_global$$$ = e; + var t = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e; + return t || delete e.$$$embind_global$$$, t; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && r(global) ? $$$embind_global$$$ = global : typeof self == "object" && r(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Tn = (r) => r === 0 ? x.toHandle(Ce()) : (r = Cn(r), x.toHandle(Ce()[r])), Pn = (r) => { + var e = Br.length; + return Br.push(r), e; + }, An = (r, e) => { + for (var t = new Array(r), n = 0; n < r; ++n) + t[n] = Hr($[e + n * 4 >> 2], "parameter " + n); + return t; + }, En = Reflect.construct, Fn = (r, e, t) => { + var n = [], i = r.toWireType(n, t); + return n.length && ($[e >> 2] = x.toHandle(n)), i; + }, Rn = (r, e, t) => { + var n = An(r, e), i = n.shift(); + r--; + var a = new Array(r), s = (u, l, c, v) => { + for (var p = 0, m = 0; m < r; ++m) + a[m] = n[m].readValueFromPointer(v + p), p += n[m].argPackAdvance; + var b = t === 1 ? En(l, a) : l.apply(u, a); + return Fn(i, c, b); + }, o = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${i.name}>`; + return Pn(rr(o, s)); + }, kn = (r) => { + r > 9 && (U[r + 1] += 1); + }, Sn = (r) => { + var e = x.toValue(r); + Sr(e), Ir(r); + }, jn = (r, e) => { + r = Hr(r, "_emval_take_value"); + var t = r.readValueFromPointer(e); + return x.toHandle(t); + }, Wn = (r, e, t, n) => { + var i = (/* @__PURE__ */ new Date()).getFullYear(), a = new Date(i, 0, 1), s = new Date(i, 6, 1), o = a.getTimezoneOffset(), u = s.getTimezoneOffset(), l = Math.max(o, u); + $[r >> 2] = l * 60, H[e >> 2] = +(o != u); + var c = (m) => { + var b = m >= 0 ? "-" : "+", P = Math.abs(m), C = String(Math.floor(P / 60)).padStart(2, "0"), T = String(P % 60).padStart(2, "0"); + return `UTC${b}${C}${T}`; + }, v = c(o), p = c(u); + u < o ? (er(v, t, 17), er(p, n, 17)) : (er(v, n, 17), er(p, t, 17)); + }, On = () => 2147483648, Dn = (r, e) => Math.ceil(r / e) * e, Un = (r) => { + var e = or.buffer, t = (r - e.byteLength + 65535) / 65536 | 0; + try { + return or.grow(t), Jr(), 1; + } catch { + } + }, xn = (r) => { + var e = E.length; + r >>>= 0; + var t = On(); + if (r > t) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var i = e * (1 + 0.2 / n); + i = Math.min(i, r + 100663296); + var a = Math.min(t, Dn(Math.max(r, i), 65536)), s = Un(a); + if (s) + return !0; + } + return !1; + }, Nr = {}, Mn = () => Xr || "./this.program", tr = () => { + if (!tr.strings) { + var r = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = { + USER: "web_user", + LOGNAME: "web_user", + PATH: "/", + PWD: "/", + HOME: "/home/web_user", + LANG: r, + _: Mn() + }; + for (var t in Nr) + Nr[t] === void 0 ? delete e[t] : e[t] = Nr[t]; + var n = []; + for (var t in e) + n.push(`${t}=${e[t]}`); + tr.strings = n; + } + return tr.strings; + }, In = (r, e) => { + for (var t = 0; t < r.length; ++t) + W[e++] = r.charCodeAt(t); + W[e] = 0; + }, Hn = (r, e) => { + var t = 0; + return tr().forEach((n, i) => { + var a = e + t; + $[r + i * 4 >> 2] = a, In(n, a), t += n.length + 1; + }), 0; + }, Vn = (r, e) => { + var t = tr(); + $[r >> 2] = t.length; + var n = 0; + return t.forEach((i) => n += i.length + 1), $[e >> 2] = n, 0; + }, Bn = (r) => 52; + function Nn(r, e, t, n, i) { + return 70; + } + var zn = [null, [], []], Ln = (r, e) => { + var t = zn[r]; + e === 0 || e === 10 ? ((r === 1 ? Le : Z)(be(t)), t.length = 0) : t.push(e); + }, Zn = (r, e, t, n) => { + for (var i = 0, a = 0; a < t; a++) { + var s = $[e >> 2], o = $[e + 4 >> 2]; + e += 8; + for (var u = 0; u < o; u++) + Ln(r, E[s + u]); + i += o; + } + return $[n >> 2] = i, 0; + }, Gn = (r) => r; + oe = f.InternalError = class extends Error { + constructor(e) { + super(e), this.name = "InternalError"; + } + }, yt(), q = f.BindingError = class extends Error { + constructor(e) { + super(e), this.name = "BindingError"; + } + }, Ft(), Ut(), _e = f.UnboundTypeError = Ht(Error, "UnboundTypeError"), Zt(); + var Xn = { + t: ot, + x: st, + a: lt, + j: ft, + k: ct, + O: vt, + q: dt, + ga: pt, + d: ut, + ca: ht, + va: _t, + ba: gt, + pa: $t, + ta: Vt, + sa: Nt, + E: zt, + oa: Gt, + F: qt, + n: Kt, + W: Yt, + X: Jt, + y: en, + u: tn, + ua: an, + V: ln, + P: _n, + L: gn, + wa: yn, + qa: mn, + ja: $n, + T: bn, + xa: Ir, + ya: Tn, + U: Rn, + Y: kn, + Z: Sn, + ra: jn, + da: Wn, + ha: xn, + ea: Hn, + fa: Vn, + ia: Bn, + $: Nn, + S: Zn, + J: hi, + C: gi, + Q: Jn, + R: Ti, + r: ci, + b: qn, + D: pi, + la: mi, + c: ei, + ka: $i, + h: Yn, + i: ai, + s: oi, + N: di, + w: ui, + I: wi, + K: vi, + z: yi, + H: Pi, + aa: Ei, + _: Fi, + l: ti, + f: ri, + e: Qn, + g: Kn, + M: Ci, + m: ii, + ma: _i, + p: si, + v: li, + na: fi, + B: bi, + o: ni, + G: Ai, + A: Gn + }, w = at(), Te = (r) => (Te = w.Ba)(r), M = f._free = (r) => (M = f._free = w.Ca)(r), zr = f._malloc = (r) => (zr = f._malloc = w.Ea)(r), Pe = (r) => (Pe = w.Fa)(r), d = (r, e) => (d = w.Ga)(r, e), Ae = (r) => (Ae = w.Ha)(r), Ee = (r) => (Ee = w.Ia)(r), Fe = () => (Fe = w.Ja)(), Re = (r) => (Re = w.Ka)(r), ke = (r) => (ke = w.La)(r), Se = (r, e, t) => (Se = w.Ma)(r, e, t); + f.dynCall_viijii = (r, e, t, n, i, a, s) => (f.dynCall_viijii = w.Na)(r, e, t, n, i, a, s); + var je = f.dynCall_jiii = (r, e, t, n) => (je = f.dynCall_jiii = w.Oa)(r, e, t, n); + f.dynCall_jiji = (r, e, t, n, i) => (f.dynCall_jiji = w.Pa)(r, e, t, n, i); + var We = f.dynCall_jiiii = (r, e, t, n, i) => (We = f.dynCall_jiiii = w.Qa)(r, e, t, n, i); + f.dynCall_iiiiij = (r, e, t, n, i, a, s) => (f.dynCall_iiiiij = w.Ra)(r, e, t, n, i, a, s), f.dynCall_iiiiijj = (r, e, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = w.Sa)(r, e, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (r, e, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = w.Ta)(r, e, t, n, i, a, s, o, u, l); + function qn(r, e) { + var t = _(); + try { + return g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function Kn(r, e, t, n) { + var i = _(); + try { + g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Qn(r, e, t) { + var n = _(); + try { + g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function Yn(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Jn(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ri(r, e) { + var t = _(); + try { + g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function ei(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function ti(r) { + var e = _(); + try { + g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function ni(r, e, t, n, i, a, s, o, u, l, c) { + var v = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c); + } catch (p) { + if (h(v), p !== p + 0) throw p; + d(1, 0); + } + } + function ii(r, e, t, n, i) { + var a = _(); + try { + g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ai(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function oi(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function si(r, e, t, n, i, a) { + var s = _(); + try { + g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function ui(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function li(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function fi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function ci(r) { + var e = _(); + try { + return g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function vi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + return g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function di(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function pi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function hi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function _i(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function gi(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function yi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function mi(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function $i(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function bi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function wi(r, e, t, n, i, a, s, o) { + var u = _(); + try { + return g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function Ci(r, e, t, n, i, a, s) { + var o = _(); + try { + g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function Ti(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Pi(r, e, t, n, i, a, s, o, u, l, c, v) { + var p = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l, c, v); + } catch (m) { + if (h(p), m !== m + 0) throw m; + d(1, 0); + } + } + function Ai(r, e, t, n, i, a, s, o, u, l, c, v, p, m, b, P) { + var C = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c, v, p, m, b, P); + } catch (T) { + if (h(C), T !== T + 0) throw T; + d(1, 0); + } + } + function Ei(r, e, t, n) { + var i = _(); + try { + return je(r, e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Fi(r, e, t, n, i) { + var a = _(); + try { + return We(r, e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + var $r, Oe; + Q = function r() { + $r || De(), $r || (Q = r); + }; + function De() { + if (V > 0 || !Oe && (Oe = 1, Ze(), V > 0)) + return; + function r() { + var e; + $r || ($r = 1, f.calledRun = 1, !Kr && (Ge(), Zr(f), (e = f.onRuntimeInitialized) === null || e === void 0 || e.call(f), Xe())); + } + f.setStatus ? (f.setStatus("Running..."), setTimeout(() => { + setTimeout(() => f.setStatus(""), 1), r(); + }, 1)) : r(); + } + if (f.preInit) + for (typeof f.preInit == "function" && (f.preInit = [f.preInit]); f.preInit.length > 0; ) + f.preInit.pop()(); + return De(), Lr = Ve, Lr; + }; +})(); +function xi(S) { + return ki( + Cr, + S + ); +} +function Mi(S) { + return Si( + Cr, + S + ); +} +async function Ii(S, L) { + return ji( + Cr, + S, + L + ); +} +async function Hi(S, L) { + return Wi( + Cr, + S, + L + ); +} +export { + Ni as barcodeFormats, + zi as binarizers, + Li as characterSets, + Zi as contentTypes, + Gi as defaultDecodeHints, + Xi as defaultReaderOptions, + qi as eanAddOnSymbols, + xi as getZXingModule, + Ki as purgeZXingModule, + Hi as readBarcodesFromImageData, + Ii as readBarcodesFromImageFile, + Qi as readOutputEccLevels, + Mi as setZXingModuleOverrides, + Yi as textModes +}; diff --git a/node_modules/zxing-wasm/dist/es/writer/index.d.ts b/node_modules/zxing-wasm/dist/es/writer/index.d.ts new file mode 100644 index 0000000..a312e07 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/writer/index.d.ts @@ -0,0 +1,13 @@ +/** + * The writer part API of this package is subject to change a lot. + * Please track the status of [this issue](https://github.com/zxing-cpp/zxing-cpp/issues/332). + * + * @packageDocumentation + */ +import type { WriterOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingWriterModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingWriterModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/es/writer/index.js b/node_modules/zxing-wasm/dist/es/writer/index.js new file mode 100644 index 0000000..c2de1f0 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/writer/index.js @@ -0,0 +1,1099 @@ +import { g as on, s as sn, w as un } from "../core-C2hxqLt7.js"; +import { b as gn, e as mn, j as yn, j as bn, p as wn, k as Tn } from "../core-C2hxqLt7.js"; +var br = (() => { + var G; + var k = typeof document < "u" && ((G = document.currentScript) == null ? void 0 : G.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(ae = {}) { + var wr, f = ae, Tr, K, ie = new Promise((r, e) => { + Tr = r, K = e; + }), oe = typeof window == "object", se = typeof Bun < "u", sr = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var $r = Object.assign({}, f), A = ""; + function ue(r) { + return f.locateFile ? f.locateFile(r, A) : A + r; + } + var Ar, ur; + if (oe || sr || se) { + var fr; + sr ? A = self.location.href : typeof document < "u" && ((fr = document.currentScript) === null || fr === void 0 ? void 0 : fr.tagName.toUpperCase()) === "SCRIPT" && (A = document.currentScript.src), k && (A = k), A.startsWith("blob:") ? A = "" : A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1), sr && (ur = (r) => { + var e = new XMLHttpRequest(); + return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); + }), Ar = (r) => fetch(r, { + credentials: "same-origin" + }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url))); + } + f.print || console.log.bind(console); + var H = f.printErr || console.error.bind(console); + Object.assign(f, $r), $r = null, f.arguments && f.arguments, f.thisProgram && f.thisProgram; + var q = f.wasmBinary, J, Er = !1, U, b, j, N, D, _, Cr, Rr; + function Fr() { + var r = J.buffer; + f.HEAP8 = U = new Int8Array(r), f.HEAP16 = j = new Int16Array(r), f.HEAPU8 = b = new Uint8Array(r), f.HEAPU16 = N = new Uint16Array(r), f.HEAP32 = D = new Int32Array(r), f.HEAPU32 = _ = new Uint32Array(r), f.HEAPF32 = Cr = new Float32Array(r), f.HEAPF64 = Rr = new Float64Array(r); + } + var Pr = [], Wr = [], kr = []; + function fe() { + var r = f.preRun; + r && (typeof r == "function" && (r = [r]), r.forEach(le)), cr(Pr); + } + function ve() { + cr(Wr); + } + function ce() { + var r = f.postRun; + r && (typeof r == "function" && (r = [r]), r.forEach(_e)), cr(kr); + } + function le(r) { + Pr.unshift(r); + } + function de(r) { + Wr.unshift(r); + } + function _e(r) { + kr.unshift(r); + } + var x = 0, B = null; + function he(r) { + var e; + x++, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, x); + } + function pe(r) { + var e; + if (x--, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, x), x == 0 && B) { + var t = B; + B = null, t(); + } + } + function vr(r) { + var e; + (e = f.onAbort) === null || e === void 0 || e.call(f, r), r = "Aborted(" + r + ")", H(r), Er = !0, r += ". Build with -sASSERTIONS for more info."; + var t = new WebAssembly.RuntimeError(r); + throw K(t), t; + } + var ge = "data:application/octet-stream;base64,", Ur = (r) => r.startsWith(ge); + function me() { + var r = "zxing_writer.wasm"; + return Ur(r) ? r : ue(r); + } + var Q; + function Sr(r) { + if (r == Q && q) + return new Uint8Array(q); + if (ur) + return ur(r); + throw "both async and sync fetching of the wasm failed"; + } + function ye(r) { + return q ? Promise.resolve().then(() => Sr(r)) : Ar(r).then((e) => new Uint8Array(e), () => Sr(r)); + } + function xr(r, e, t) { + return ye(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => { + H(`failed to asynchronously prepare wasm: ${n}`), vr(n); + }); + } + function be(r, e, t, n) { + return !r && typeof WebAssembly.instantiateStreaming == "function" && !Ur(e) && typeof fetch == "function" ? fetch(e, { + credentials: "same-origin" + }).then((a) => { + var i = WebAssembly.instantiateStreaming(a, t); + return i.then(n, function(o) { + return H(`wasm streaming compile failed: ${o}`), H("falling back to ArrayBuffer instantiation"), xr(e, t, n); + }); + }) : xr(e, t, n); + } + function we() { + return { + a: Vt + }; + } + function Te() { + var r, e = we(); + function t(a, i) { + return y = a.exports, J = y.Y, Fr(), Br = y.$, de(y.Z), pe(), y; + } + he(); + function n(a) { + t(a.instance); + } + if (f.instantiateWasm) + try { + return f.instantiateWasm(e, t); + } catch (a) { + H(`Module.instantiateWasm callback failed with error: ${a}`), K(a); + } + return (r = Q) !== null && r !== void 0 || (Q = me()), be(q, Q, e, n).catch(K), {}; + } + var cr = (r) => { + r.forEach((e) => e(f)); + }; + f.noExitRuntime; + var g = (r) => Jr(r), m = () => Qr(), Y = [], $e = (r) => { + var e = new lr(r); + return e.get_caught() || e.set_caught(!0), e.set_rethrown(!1), Y.push(e), zr(r), ee(r); + }, R = 0, Ae = () => { + p(0, 0); + var r = Y.pop(); + Yr(r.excPtr), R = 0; + }; + class lr { + constructor(e) { + this.excPtr = e, this.ptr = e - 24; + } + set_type(e) { + _[this.ptr + 4 >> 2] = e; + } + get_type() { + return _[this.ptr + 4 >> 2]; + } + set_destructor(e) { + _[this.ptr + 8 >> 2] = e; + } + get_destructor() { + return _[this.ptr + 8 >> 2]; + } + set_caught(e) { + e = e ? 1 : 0, U[this.ptr + 12] = e; + } + get_caught() { + return U[this.ptr + 12] != 0; + } + set_rethrown(e) { + e = e ? 1 : 0, U[this.ptr + 13] = e; + } + get_rethrown() { + return U[this.ptr + 13] != 0; + } + init(e, t) { + this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t); + } + set_adjusted_ptr(e) { + _[this.ptr + 16 >> 2] = e; + } + get_adjusted_ptr() { + return _[this.ptr + 16 >> 2]; + } + } + var Ee = (r) => { + throw R || (R = r), R; + }, z = (r) => qr(r), dr = (r) => { + var e = R; + if (!e) + return z(0), 0; + var t = new lr(e); + t.set_adjusted_ptr(e); + var n = t.get_type(); + if (!n) + return z(0), e; + for (var a of r) { + if (a === 0 || a === n) + break; + var i = t.ptr + 16; + if (re(a, n, i)) + return z(a), e; + } + return z(n), e; + }, Ce = () => dr([]), Re = (r) => dr([r]), Fe = (r, e) => dr([r, e]), Pe = () => { + var r = Y.pop(); + r || vr("no exception to throw"); + var e = r.excPtr; + throw r.get_rethrown() || (Y.push(r), r.set_rethrown(!0), r.set_caught(!1)), R = e, R; + }, We = (r, e, t) => { + var n = new lr(r); + throw n.init(e, t), R = r, R; + }, ke = () => { + vr(""); + }, rr = {}, _r = (r) => { + for (; r.length; ) { + var e = r.pop(), t = r.pop(); + t(e); + } + }; + function er(r) { + return this.fromWireType(_[r >> 2]); + } + var O = {}, M = {}, tr = {}, Mr, Ir = (r) => { + throw new Mr(r); + }, jr = (r, e, t) => { + r.forEach((s) => tr[s] = e); + function n(s) { + var u = t(s); + u.length !== r.length && Ir("Mismatched type converter count"); + for (var v = 0; v < r.length; ++v) + E(r[v], u[v]); + } + var a = new Array(e.length), i = [], o = 0; + e.forEach((s, u) => { + M.hasOwnProperty(s) ? a[u] = M[s] : (i.push(s), O.hasOwnProperty(s) || (O[s] = []), O[s].push(() => { + a[u] = M[s], ++o, o === i.length && n(a); + })); + }), i.length === 0 && n(a); + }, Ue = (r) => { + var e = rr[r]; + delete rr[r]; + var t = e.rawConstructor, n = e.rawDestructor, a = e.fields, i = a.map((o) => o.getterReturnType).concat(a.map((o) => o.setterArgumentType)); + jr([r], i, (o) => { + var s = {}; + return a.forEach((u, v) => { + var c = u.fieldName, l = o[v], d = u.getter, T = u.getterContext, S = o[v + a.length], L = u.setter, C = u.setterContext; + s[c] = { + read: (Z) => l.fromWireType(d(T, Z)), + write: (Z, yr) => { + var or = []; + L(C, Z, S.toWireType(or, yr)), _r(or); + } + }; + }), [{ + name: e.name, + fromWireType: (u) => { + var v = {}; + for (var c in s) + v[c] = s[c].read(u); + return n(u), v; + }, + toWireType: (u, v) => { + for (var c in s) + if (!(c in v)) + throw new TypeError(`Missing field: "${c}"`); + var l = t(); + for (c in s) + s[c].write(l, v[c]); + return u !== null && u.push(n, l), l; + }, + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction: n + }]; + }); + }, Se = (r, e, t, n, a) => { + }, xe = () => { + for (var r = new Array(256), e = 0; e < 256; ++e) + r[e] = String.fromCharCode(e); + Dr = r; + }, Dr, w = (r) => { + for (var e = "", t = r; b[t]; ) + e += Dr[b[t++]]; + return e; + }, Or, $ = (r) => { + throw new Or(r); + }; + function Me(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = e.name; + if (r || $(`type "${n}" must have a positive integer typeid pointer`), M.hasOwnProperty(r)) { + if (t.ignoreDuplicateRegistrations) + return; + $(`Cannot register type '${n}' twice`); + } + if (M[r] = e, delete tr[r], O.hasOwnProperty(r)) { + var a = O[r]; + delete O[r], a.forEach((i) => i()); + } + } + function E(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return Me(r, e, t); + } + var F = 8, Ie = (r, e, t, n) => { + e = w(e), E(r, { + name: e, + fromWireType: function(a) { + return !!a; + }, + toWireType: function(a, i) { + return i ? t : n; + }, + argPackAdvance: F, + readValueFromPointer: function(a) { + return this.fromWireType(b[a]); + }, + destructorFunction: null + }); + }, hr = [], P = [], pr = (r) => { + r > 9 && --P[r + 1] === 0 && (P[r] = void 0, hr.push(r)); + }, je = () => P.length / 2 - 5 - hr.length, De = () => { + P.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), f.count_emval_handles = je; + }, I = { + toValue: (r) => (r || $("Cannot use deleted val. handle = " + r), P[r]), + toHandle: (r) => { + switch (r) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const e = hr.pop() || P.length; + return P[e] = r, P[e + 1] = 1, e; + } + } + } + }, Oe = { + name: "emscripten::val", + fromWireType: (r) => { + var e = I.toValue(r); + return pr(r), e; + }, + toWireType: (r, e) => I.toHandle(e), + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction: null + }, Ve = (r) => E(r, Oe), He = (r, e, t) => { + if (r[e].overloadTable === void 0) { + var n = r[e]; + r[e] = function() { + for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) + i[o] = arguments[o]; + return r[e].overloadTable.hasOwnProperty(i.length) || $(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`), r[e].overloadTable[i.length].apply(this, i); + }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n; + } + }, Vr = (r, e, t) => { + f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && $(`Cannot register public name '${r}' twice`), He(f, r, r), f.hasOwnProperty(t) && $(`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)); + }, Ne = (r, e, t) => { + switch (e) { + case 1: + return t ? function(n) { + return this.fromWireType(U[n]); + } : function(n) { + return this.fromWireType(b[n]); + }; + case 2: + return t ? function(n) { + return this.fromWireType(j[n >> 1]); + } : function(n) { + return this.fromWireType(N[n >> 1]); + }; + case 4: + return t ? function(n) { + return this.fromWireType(D[n >> 2]); + } : function(n) { + return this.fromWireType(_[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, Be = (r, e, t, n) => { + e = w(e); + function a() { + } + a.values = {}, E(r, { + name: e, + constructor: a, + fromWireType: function(i) { + return this.constructor.values[i]; + }, + toWireType: (i, o) => o.value, + argPackAdvance: F, + readValueFromPointer: Ne(e, t, n), + destructorFunction: null + }), Vr(e, a); + }, nr = (r, e) => Object.defineProperty(e, "name", { + value: r + }), Hr = (r) => { + var e = Kr(r), t = w(e); + return W(e), t; + }, Nr = (r, e) => { + var t = M[r]; + return t === void 0 && $(`${e} has unknown type ${Hr(r)}`), t; + }, Xe = (r, e, t) => { + var n = Nr(r, "enum"); + e = w(e); + var a = n.constructor, i = Object.create(n.constructor.prototype, { + value: { + value: t + }, + constructor: { + value: nr(`${n.name}_${e}`, function() { + }) + } + }); + a.values[t] = i, a[e] = i; + }, Le = (r, e) => { + switch (e) { + case 4: + return function(t) { + return this.fromWireType(Cr[t >> 2]); + }; + case 8: + return function(t) { + return this.fromWireType(Rr[t >> 3]); + }; + default: + throw new TypeError(`invalid float width (${e}): ${r}`); + } + }, Ze = (r, e, t) => { + e = w(e), E(r, { + name: e, + fromWireType: (n) => n, + toWireType: (n, a) => a, + argPackAdvance: F, + readValueFromPointer: Le(e, t), + destructorFunction: null + }); + }; + function Ge(r) { + for (var e = 1; e < r.length; ++e) + if (r[e] !== null && r[e].destructorFunction === void 0) + return !0; + return !1; + } + function Ke(r, e, t, n, a, i) { + var o = e.length; + o < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var s = e[1] !== null && t !== null, u = Ge(e), v = e[0].name !== "void", c = o - 2, l = new Array(c), d = [], T = [], S = function() { + T.length = 0; + var L; + d.length = s ? 2 : 1, d[0] = a, s && (L = e[1].toWireType(T, this), d[1] = L); + for (var C = 0; C < c; ++C) + l[C] = e[C + 2].toWireType(T, C < 0 || arguments.length <= C ? void 0 : arguments[C]), d.push(l[C]); + var Z = n(...d); + function yr(or) { + if (u) + _r(T); + else + for (var V = s ? 1 : 2; V < e.length; V++) { + var an = V === 1 ? L : l[V - 2]; + e[V].destructorFunction !== null && e[V].destructorFunction(an); + } + if (v) + return e[0].fromWireType(or); + } + return yr(Z); + }; + return nr(r, S); + } + var qe = (r, e) => { + for (var t = [], n = 0; n < r; n++) + t.push(_[e + n * 4 >> 2]); + return t; + }, Je = (r, e, t) => { + f.hasOwnProperty(r) || Ir("Replacing nonexistent public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t); + }, Qe = (r, e, t) => { + r = r.replace(/p/g, "i"); + var n = f["dynCall_" + r]; + return n(e, ...t); + }, ar = [], Br, h = (r) => { + var e = ar[r]; + return e || (r >= ar.length && (ar.length = r + 1), ar[r] = e = Br.get(r)), e; + }, Ye = function(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (r.includes("j")) + return Qe(r, e, t); + var n = h(e)(...t); + return n; + }, ze = (r, e) => function() { + for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++) + n[a] = arguments[a]; + return Ye(r, e, n); + }, X = (r, e) => { + r = w(r); + function t() { + return r.includes("j") ? ze(r, e) : h(e); + } + var n = t(); + return typeof n != "function" && $(`unknown function pointer with signature ${r}: ${e}`), n; + }, rt = (r, e) => { + var t = nr(e, function(n) { + this.name = e, this.message = n; + var a = new Error(n).stack; + a !== void 0 && (this.stack = this.toString() + ` +` + a.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, t; + }, Xr, et = (r, e) => { + var t = [], n = {}; + function a(i) { + if (!n[i] && !M[i]) { + if (tr[i]) { + tr[i].forEach(a); + return; + } + t.push(i), n[i] = !0; + } + } + throw e.forEach(a), new Xr(`${r}: ` + t.map(Hr).join([", "])); + }, tt = (r) => { + r = r.trim(); + const e = r.indexOf("("); + return e !== -1 ? r.substr(0, e) : r; + }, nt = (r, e, t, n, a, i, o, s) => { + var u = qe(e, t); + r = w(r), r = tt(r), a = X(n, a), Vr(r, function() { + et(`Cannot call ${r} due to unbound types`, u); + }, e - 1), jr([], u, (v) => { + var c = [v[0], null].concat(v.slice(1)); + return Je(r, Ke(r, c, null, a, i), e - 1), []; + }); + }, at = (r, e, t) => { + switch (e) { + case 1: + return t ? (n) => U[n] : (n) => b[n]; + case 2: + return t ? (n) => j[n >> 1] : (n) => N[n >> 1]; + case 4: + return t ? (n) => D[n >> 2] : (n) => _[n >> 2]; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, it = (r, e, t, n, a) => { + e = w(e); + var i = (c) => c; + if (n === 0) { + var o = 32 - 8 * t; + i = (c) => c << o >>> o; + } + var s = e.includes("unsigned"), u = (c, l) => { + }, v; + s ? v = function(c, l) { + return u(l, this.name), l >>> 0; + } : v = function(c, l) { + return u(l, this.name), l; + }, E(r, { + name: e, + fromWireType: i, + toWireType: v, + argPackAdvance: F, + readValueFromPointer: at(e, t, n !== 0), + destructorFunction: null + }); + }, ot = (r, e, t) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e]; + function i(o) { + var s = _[o >> 2], u = _[o + 4 >> 2]; + return new a(U.buffer, u, s); + } + t = w(t), E(r, { + name: t, + fromWireType: i, + argPackAdvance: F, + readValueFromPointer: i + }, { + ignoreDuplicateRegistrations: !0 + }); + }, st = (r, e, t, n) => { + if (!(n > 0)) return 0; + for (var a = t, i = t + n - 1, o = 0; o < r.length; ++o) { + var s = r.charCodeAt(o); + if (s >= 55296 && s <= 57343) { + var u = r.charCodeAt(++o); + s = 65536 + ((s & 1023) << 10) | u & 1023; + } + if (s <= 127) { + if (t >= i) break; + e[t++] = s; + } else if (s <= 2047) { + if (t + 1 >= i) break; + e[t++] = 192 | s >> 6, e[t++] = 128 | s & 63; + } else if (s <= 65535) { + if (t + 2 >= i) break; + e[t++] = 224 | s >> 12, e[t++] = 128 | s >> 6 & 63, e[t++] = 128 | s & 63; + } else { + if (t + 3 >= i) break; + e[t++] = 240 | s >> 18, e[t++] = 128 | s >> 12 & 63, e[t++] = 128 | s >> 6 & 63, e[t++] = 128 | s & 63; + } + } + return e[t] = 0, t - a; + }, ut = (r, e, t) => st(r, b, e, t), ft = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3; + } + return e; + }, Lr = typeof TextDecoder < "u" ? new TextDecoder() : void 0, vt = function(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = e + t, a = e; r[a] && !(a >= n); ) ++a; + if (a - e > 16 && r.buffer && Lr) + return Lr.decode(r.subarray(e, a)); + for (var i = ""; e < a; ) { + var o = r[e++]; + if (!(o & 128)) { + i += String.fromCharCode(o); + continue; + } + var s = r[e++] & 63; + if ((o & 224) == 192) { + i += String.fromCharCode((o & 31) << 6 | s); + continue; + } + var u = r[e++] & 63; + if ((o & 240) == 224 ? o = (o & 15) << 12 | s << 6 | u : o = (o & 7) << 18 | s << 12 | u << 6 | r[e++] & 63, o < 65536) + i += String.fromCharCode(o); + else { + var v = o - 65536; + i += String.fromCharCode(55296 | v >> 10, 56320 | v & 1023); + } + } + return i; + }, ct = (r, e) => r ? vt(b, r, e) : "", lt = (r, e) => { + e = w(e); + var t = e === "std::string"; + E(r, { + name: e, + fromWireType(n) { + var a = _[n >> 2], i = n + 4, o; + if (t) + for (var s = i, u = 0; u <= a; ++u) { + var v = i + u; + if (u == a || b[v] == 0) { + var c = v - s, l = ct(s, c); + o === void 0 ? o = l : (o += "\0", o += l), s = v + 1; + } + } + else { + for (var d = new Array(a), u = 0; u < a; ++u) + d[u] = String.fromCharCode(b[i + u]); + o = d.join(""); + } + return W(n), o; + }, + toWireType(n, a) { + a instanceof ArrayBuffer && (a = new Uint8Array(a)); + var i, o = typeof a == "string"; + o || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || $("Cannot pass non-string to std::string"), t && o ? i = ft(a) : i = a.length; + var s = mr(4 + i + 1), u = s + 4; + if (_[s >> 2] = i, t && o) + ut(a, u, i + 1); + else if (o) + for (var v = 0; v < i; ++v) { + var c = a.charCodeAt(v); + c > 255 && (W(u), $("String has UTF-16 code units that do not fit in 8 bits")), b[u + v] = c; + } + else + for (var v = 0; v < i; ++v) + b[u + v] = a[v]; + return n !== null && n.push(W, s), s; + }, + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction(n) { + W(n); + } + }); + }, Zr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, dt = (r, e) => { + for (var t = r, n = t >> 1, a = n + e / 2; !(n >= a) && N[n]; ) ++n; + if (t = n << 1, t - r > 32 && Zr) return Zr.decode(b.subarray(r, t)); + for (var i = "", o = 0; !(o >= e / 2); ++o) { + var s = j[r + o * 2 >> 1]; + if (s == 0) break; + i += String.fromCharCode(s); + } + return i; + }, _t = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2) return 0; + t -= 2; + for (var a = e, i = t < r.length * 2 ? t / 2 : r.length, o = 0; o < i; ++o) { + var s = r.charCodeAt(o); + j[e >> 1] = s, e += 2; + } + return j[e >> 1] = 0, e - a; + }, ht = (r) => r.length * 2, pt = (r, e) => { + for (var t = 0, n = ""; !(t >= e / 4); ) { + var a = D[r + t * 4 >> 2]; + if (a == 0) break; + if (++t, a >= 65536) { + var i = a - 65536; + n += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023); + } else + n += String.fromCharCode(a); + } + return n; + }, gt = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4) return 0; + for (var a = e, i = a + t - 4, o = 0; o < r.length; ++o) { + var s = r.charCodeAt(o); + if (s >= 55296 && s <= 57343) { + var u = r.charCodeAt(++o); + s = 65536 + ((s & 1023) << 10) | u & 1023; + } + if (D[e >> 2] = s, e += 4, e + 4 > i) break; + } + return D[e >> 2] = 0, e - a; + }, mt = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n >= 55296 && n <= 57343 && ++t, e += 4; + } + return e; + }, yt = (r, e, t) => { + t = w(t); + var n, a, i, o; + e === 2 ? (n = dt, a = _t, o = ht, i = (s) => N[s >> 1]) : e === 4 && (n = pt, a = gt, o = mt, i = (s) => _[s >> 2]), E(r, { + name: t, + fromWireType: (s) => { + for (var u = _[s >> 2], v, c = s + 4, l = 0; l <= u; ++l) { + var d = s + 4 + l * e; + if (l == u || i(d) == 0) { + var T = d - c, S = n(c, T); + v === void 0 ? v = S : (v += "\0", v += S), c = d + e; + } + } + return W(s), v; + }, + toWireType: (s, u) => { + typeof u != "string" && $(`Cannot pass non-string to C++ string type ${t}`); + var v = o(u), c = mr(4 + v + e); + return _[c >> 2] = v / e, a(u, c + 4, v + e), s !== null && s.push(W, c), c; + }, + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction(s) { + W(s); + } + }); + }, bt = (r, e, t, n, a, i) => { + rr[r] = { + name: w(e), + rawConstructor: X(t, n), + rawDestructor: X(a, i), + fields: [] + }; + }, wt = (r, e, t, n, a, i, o, s, u, v) => { + rr[r].fields.push({ + fieldName: w(e), + getterReturnType: t, + getter: X(n, a), + getterContext: i, + setterArgumentType: o, + setter: X(s, u), + setterContext: v + }); + }, Tt = (r, e) => { + e = w(e), E(r, { + isVoid: !0, + name: e, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (t, n) => { + } + }); + }, $t = (r, e, t) => b.copyWithin(r, e, e + t), gr = [], At = (r, e, t, n) => (r = gr[r], e = I.toValue(e), r(null, e, t, n)), Et = {}, Ct = (r) => { + var e = Et[r]; + return e === void 0 ? w(r) : e; + }, Gr = () => { + if (typeof globalThis == "object") + return globalThis; + function r(e) { + e.$$$embind_global$$$ = e; + var t = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e; + return t || delete e.$$$embind_global$$$, t; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && r(global) ? $$$embind_global$$$ = global : typeof self == "object" && r(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Rt = (r) => r === 0 ? I.toHandle(Gr()) : (r = Ct(r), I.toHandle(Gr()[r])), Ft = (r) => { + var e = gr.length; + return gr.push(r), e; + }, Pt = (r, e) => { + for (var t = new Array(r), n = 0; n < r; ++n) + t[n] = Nr(_[e + n * 4 >> 2], "parameter " + n); + return t; + }, Wt = Reflect.construct, kt = (r, e, t) => { + var n = [], a = r.toWireType(n, t); + return n.length && (_[e >> 2] = I.toHandle(n)), a; + }, Ut = (r, e, t) => { + var n = Pt(r, e), a = n.shift(); + r--; + var i = new Array(r), o = (u, v, c, l) => { + for (var d = 0, T = 0; T < r; ++T) + i[T] = n[T].readValueFromPointer(l + d), d += n[T].argPackAdvance; + var S = t === 1 ? Wt(v, i) : v.apply(u, i); + return kt(a, c, S); + }, s = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${a.name}>`; + return Ft(nr(s, o)); + }, St = (r) => { + r > 9 && (P[r + 1] += 1); + }, xt = (r) => { + var e = I.toValue(r); + _r(e), pr(r); + }, Mt = () => 2147483648, It = (r, e) => Math.ceil(r / e) * e, jt = (r) => { + var e = J.buffer, t = (r - e.byteLength + 65535) / 65536 | 0; + try { + return J.grow(t), Fr(), 1; + } catch { + } + }, Dt = (r) => { + var e = b.length; + r >>>= 0; + var t = Mt(); + if (r > t) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var a = e * (1 + 0.2 / n); + a = Math.min(a, r + 100663296); + var i = Math.min(t, It(Math.max(r, a), 65536)), o = jt(i); + if (o) + return !0; + } + return !1; + }, Ot = (r) => r; + Mr = f.InternalError = class extends Error { + constructor(e) { + super(e), this.name = "InternalError"; + } + }, xe(), Or = f.BindingError = class extends Error { + constructor(e) { + super(e), this.name = "BindingError"; + } + }, De(), Xr = f.UnboundTypeError = rt(Error, "UnboundTypeError"); + var Vt = { + x: $e, + y: Ae, + a: Ce, + l: Re, + u: Fe, + N: Pe, + n: We, + f: Ee, + J: ke, + T: Ue, + I: Se, + P: Ie, + O: Ve, + R: Be, + k: Xe, + B: Ze, + S: nt, + s: it, + o: ot, + A: lt, + z: yt, + C: bt, + U: wt, + Q: Tt, + L: $t, + F: At, + W: pr, + H: Rt, + G: Ut, + D: St, + X: xt, + K: Dt, + E: Zt, + v: tn, + e: Ht, + c: Gt, + m: Lt, + h: en, + i: Yt, + M: zt, + q: Kt, + g: Nt, + d: Qt, + b: Jt, + j: Xt, + p: Bt, + w: rn, + r: nn, + t: qt, + V: Ot + }, y = Te(), Kr = (r) => (Kr = y._)(r), mr = f._malloc = (r) => (mr = f._malloc = y.aa)(r), W = f._free = (r) => (W = f._free = y.ba)(r), p = (r, e) => (p = y.ca)(r, e), qr = (r) => (qr = y.da)(r), Jr = (r) => (Jr = y.ea)(r), Qr = () => (Qr = y.fa)(), Yr = (r) => (Yr = y.ga)(r), zr = (r) => (zr = y.ha)(r), re = (r, e, t) => (re = y.ia)(r, e, t), ee = (r) => (ee = y.ja)(r); + function Ht(r, e) { + var t = m(); + try { + return h(r)(e); + } catch (n) { + if (g(t), n !== n + 0) throw n; + p(1, 0); + } + } + function Nt(r, e) { + var t = m(); + try { + h(r)(e); + } catch (n) { + if (g(t), n !== n + 0) throw n; + p(1, 0); + } + } + function Bt(r, e, t, n, a, i) { + var o = m(); + try { + h(r)(e, t, n, a, i); + } catch (s) { + if (g(o), s !== s + 0) throw s; + p(1, 0); + } + } + function Xt(r, e, t, n, a) { + var i = m(); + try { + h(r)(e, t, n, a); + } catch (o) { + if (g(i), o !== o + 0) throw o; + p(1, 0); + } + } + function Lt(r, e, t, n) { + var a = m(); + try { + return h(r)(e, t, n); + } catch (i) { + if (g(a), i !== i + 0) throw i; + p(1, 0); + } + } + function Zt(r, e, t, n, a) { + var i = m(); + try { + return h(r)(e, t, n, a); + } catch (o) { + if (g(i), o !== o + 0) throw o; + p(1, 0); + } + } + function Gt(r, e, t) { + var n = m(); + try { + return h(r)(e, t); + } catch (a) { + if (g(n), a !== a + 0) throw a; + p(1, 0); + } + } + function Kt(r) { + var e = m(); + try { + h(r)(); + } catch (t) { + if (g(e), t !== t + 0) throw t; + p(1, 0); + } + } + function qt(r, e, t, n, a, i, o, s, u, v, c) { + var l = m(); + try { + h(r)(e, t, n, a, i, o, s, u, v, c); + } catch (d) { + if (g(l), d !== d + 0) throw d; + p(1, 0); + } + } + function Jt(r, e, t, n) { + var a = m(); + try { + h(r)(e, t, n); + } catch (i) { + if (g(a), i !== i + 0) throw i; + p(1, 0); + } + } + function Qt(r, e, t) { + var n = m(); + try { + h(r)(e, t); + } catch (a) { + if (g(n), a !== a + 0) throw a; + p(1, 0); + } + } + function Yt(r, e, t, n, a, i) { + var o = m(); + try { + return h(r)(e, t, n, a, i); + } catch (s) { + if (g(o), s !== s + 0) throw s; + p(1, 0); + } + } + function zt(r, e, t, n, a, i, o) { + var s = m(); + try { + return h(r)(e, t, n, a, i, o); + } catch (u) { + if (g(s), u !== u + 0) throw u; + p(1, 0); + } + } + function rn(r, e, t, n, a, i, o, s) { + var u = m(); + try { + h(r)(e, t, n, a, i, o, s); + } catch (v) { + if (g(u), v !== v + 0) throw v; + p(1, 0); + } + } + function en(r, e, t, n, a) { + var i = m(); + try { + return h(r)(e, t, n, a); + } catch (o) { + if (g(i), o !== o + 0) throw o; + p(1, 0); + } + } + function tn(r) { + var e = m(); + try { + return h(r)(); + } catch (t) { + if (g(e), t !== t + 0) throw t; + p(1, 0); + } + } + function nn(r, e, t, n, a, i, o, s, u) { + var v = m(); + try { + h(r)(e, t, n, a, i, o, s, u); + } catch (c) { + if (g(v), c !== c + 0) throw c; + p(1, 0); + } + } + var ir, te; + B = function r() { + ir || ne(), ir || (B = r); + }; + function ne() { + if (x > 0 || !te && (te = 1, fe(), x > 0)) + return; + function r() { + var e; + ir || (ir = 1, f.calledRun = 1, !Er && (ve(), Tr(f), (e = f.onRuntimeInitialized) === null || e === void 0 || e.call(f), ce())); + } + f.setStatus ? (f.setStatus("Running..."), setTimeout(() => { + setTimeout(() => f.setStatus(""), 1), r(); + }, 1)) : r(); + } + if (f.preInit) + for (typeof f.preInit == "function" && (f.preInit = [f.preInit]); f.preInit.length > 0; ) + f.preInit.pop()(); + return ne(), wr = ie, wr; + }; +})(); +function ln(k) { + return on( + br, + k + ); +} +function dn(k) { + return sn( + br, + k + ); +} +async function _n(k, G) { + return un( + br, + k, + G + ); +} +export { + gn as barcodeFormats, + mn as characterSets, + yn as defaultEncodeHints, + bn as defaultWriterOptions, + ln as getZXingModule, + wn as purgeZXingModule, + dn as setZXingModuleOverrides, + _n as writeBarcodeToImageFile, + Tn as writeInputEccLevels +}; diff --git a/node_modules/zxing-wasm/dist/full/zxing_full.wasm b/node_modules/zxing-wasm/dist/full/zxing_full.wasm new file mode 100644 index 0000000..3d48bb0 Binary files /dev/null and b/node_modules/zxing-wasm/dist/full/zxing_full.wasm differ diff --git a/node_modules/zxing-wasm/dist/iife/full/index.js b/node_modules/zxing-wasm/dist/iife/full/index.js new file mode 100644 index 0000000..965e98b --- /dev/null +++ b/node_modules/zxing-wasm/dist/iife/full/index.js @@ -0,0 +1,2 @@ +var ZXingWASM=function(A){"use strict";const Dr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function nt(v){return v.join("|")}function it(v){const h=ae(v);let C=0,k=Dr.length-1;for(;C<=k;){const c=Math.floor((C+k)/2),I=Dr[c],j=ae(I);if(j===h)return I;j{const C=v.match(/_(.+?)\.wasm$/);return C?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${C[1]}/${v}`:h+v}};let gr=new WeakMap;function mr(v,h){var I;const C=gr.get(v);if(C!=null&&C.modulePromise&&(h===void 0||Object.is(h,C.moduleOverrides)))return C.modulePromise;const k=(I=h!=null?h:C==null?void 0:C.moduleOverrides)!=null?I:gt,c=v({...k});return gr.set(v,{moduleOverrides:k,modulePromise:c}),c}function mt(){gr=new WeakMap}function yt(v,h){gr.set(v,{moduleOverrides:h})}async function $t(v,h,C=rr){const k={...rr,...C},c=await mr(v),{size:I}=h,j=new Uint8Array(await h.arrayBuffer()),G=c._malloc(I);c.HEAPU8.set(j,G);const er=c.readBarcodesFromImage(G,I,ue(c,k));c._free(G);const Z=[];for(let M=0;M{var h;var v=typeof document<"u"&&((h=document.currentScript)==null?void 0:h.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(C={}){var k,c=C,I,j,G=new Promise((r,e)=>{I=r,j=e}),er=typeof window=="object",Z=typeof Bun<"u",M=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var ur=Object.assign({},c),tr="./this.program",B="";function St(r){return c.locateFile?c.locateFile(r,B):B+r}var ve,Br;if(er||M||Z){var Hr;M?B=self.location.href:typeof document<"u"&&((Hr=document.currentScript)===null||Hr===void 0?void 0:Hr.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),v&&(B=v),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),M&&(Br=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ve=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ft=c.print||console.log.bind(console),nr=c.printErr||console.error.bind(console);Object.assign(c,ur),ur=null,c.arguments&&c.arguments,c.thisProgram&&(tr=c.thisProgram);var yr=c.wasmBinary,$r,de=!1,H,O,ir,cr,Q,w,he,pe;function _e(){var r=$r.buffer;c.HEAP8=H=new Int8Array(r),c.HEAP16=ir=new Int16Array(r),c.HEAPU8=O=new Uint8Array(r),c.HEAPU16=cr=new Uint16Array(r),c.HEAP32=Q=new Int32Array(r),c.HEAPU32=w=new Uint32Array(r),c.HEAPF32=he=new Float32Array(r),c.HEAPF64=pe=new Float64Array(r)}var ge=[],me=[],ye=[];function Rt(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(It)),Vr(ge)}function Ot(){Vr(me)}function kt(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(jt)),Vr(ye)}function It(r){ge.unshift(r)}function Wt(r){me.unshift(r)}function jt(r){ye.unshift(r)}var q=0,lr=null;function Ut(r){var e;q++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q)}function Dt(r){var e;if(q--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q),q==0&&lr){var t=lr;lr=null,t()}}function xr(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",nr(r),de=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw j(t),t}var Mt="data:application/octet-stream;base64,",$e=r=>r.startsWith(Mt);function Bt(){var r="zxing_full.wasm";return $e(r)?r:St(r)}var br;function be(r){if(r==br&&yr)return new Uint8Array(yr);if(Br)return Br(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return yr?Promise.resolve().then(()=>be(r)):ve(r).then(e=>new Uint8Array(e),()=>be(r))}function we(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{nr(`failed to asynchronously prepare wasm: ${n}`),xr(n)})}function xt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!$e(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return nr(`wasm streaming compile failed: ${s}`),nr("falling back to ArrayBuffer instantiation"),we(e,t,n)})}):we(e,t,n)}function Vt(){return{a:ki}}function Lt(){var r,e=Vt();function t(i,a){return P=i.exports,$r=P.za,_e(),ke=P.Da,Wt(P.Aa),Dt(),P}Ut();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){nr(`Module.instantiateWasm callback failed with error: ${i}`),j(i)}return(r=br)!==null&&r!==void 0||(br=Bt()),xt(yr,br,e,n).catch(j),{}}var Vr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var g=r=>Ne(r),m=()=>ze(),wr=[],Cr=0,Nt=r=>{var e=new Lr(r);return e.get_caught()||(e.set_caught(!0),Cr--),e.set_rethrown(!1),wr.push(e),Ze(r),Ve(r)},V=0,zt=()=>{p(0,0);var r=wr.pop();Xe(r.excPtr),V=0};class Lr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,H[this.ptr+12]=e}get_caught(){return H[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,H[this.ptr+13]=e}get_rethrown(){return H[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Xt=r=>{throw V||(V=r),V},Tr=r=>Le(r),Nr=r=>{var e=V;if(!e)return Tr(0),0;var t=new Lr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Tr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(Ge(i,n,a))return Tr(i),e}return Tr(n),e},Zt=()=>Nr([]),Gt=r=>Nr([r]),Qt=(r,e)=>Nr([r,e]),qt=()=>{var r=wr.pop();r||xr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(wr.push(r),r.set_rethrown(!0),r.set_caught(!1),Cr++),V=e,V},Jt=(r,e,t)=>{var n=new Lr(r);throw n.init(e,t),V=r,Cr++,V},Kt=()=>Cr,Yt=()=>{xr("")},Pr={},zr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function fr(r){return this.fromWireType(w[r>>2])}var ar={},J={},Ar={},Ce,Er=r=>{throw new Ce(r)},K=(r,e,t)=>{r.forEach(o=>Ar[o]=e);function n(o){var u=t(o);u.length!==r.length&&Er("Mismatched type converter count");for(var l=0;l{J.hasOwnProperty(o)?i[u]=J[o]:(a.push(o),ar.hasOwnProperty(o)||(ar[o]=[]),ar[o].push(()=>{i[u]=J[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},rn=r=>{var e=Pr[r];delete Pr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));K([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,d=s[l],_=u.getter,b=u.getterContext,T=s[l+i.length],F=u.setter,E=u.setterContext;o[f]={read:S=>d.fromWireType(_(b,S)),write:(S,Y)=>{var W=[];F(E,S,T.toWireType(W,Y)),zr(W)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var d=t();for(f in o)o[f].write(d,l[f]);return u!==null&&u.push(n,d),d},argPackAdvance:x,readValueFromPointer:fr,destructorFunction:n}]})},en=(r,e,t,n,i)=>{},tn=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Te=r},Te,R=r=>{for(var e="",t=r;O[t];)e+=Te[O[t++]];return e},or,$=r=>{throw new or(r)};function nn(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),J.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(J[r]=e,delete Ar[r],ar.hasOwnProperty(r)){var i=ar[r];delete ar[r],i.forEach(a=>a())}}function U(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return nn(r,e,t)}var x=8,an=(r,e,t,n)=>{e=R(e),U(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:x,readValueFromPointer:function(i){return this.fromWireType(O[i])},destructorFunction:null})},on=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Xr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}$(e(r)+" instance already deleted")},Zr=!1,Pe=r=>{},sn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Ae=r=>{r.count.value-=1;var e=r.count.value===0;e&&sn(r)},Ee=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ee(r,e,t.baseClass);return n===null?null:t.downcast(n)},Se={},un={},cn=(r,e)=>{for(e===void 0&&$("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},ln=(r,e)=>(e=cn(r,e),un[e]),Sr=(r,e)=>{(!e.ptrType||!e.ptr)&&Er("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Er("Both smartPtrType and smartPtr must be specified"),e.count={value:1},vr(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ln(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?Sr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Sr(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=Se[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=Ee(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var vr=r=>typeof FinalizationRegistry>"u"?(vr=e=>e,r):(Zr=new FinalizationRegistry(e=>{Ae(e.$$)}),vr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Zr.register(e,i,e)}return e},Pe=e=>Zr.unregister(e),vr(r)),Fr=[],vn=()=>{for(;Fr.length;){var r=Fr.pop();r.$$.deleteScheduled=!1,r.delete()}},Fe,dn=()=>{Object.assign(Rr.prototype,{isAliasOf(r){if(!(this instanceof Rr)||!(r instanceof Rr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||Xr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=vr(Object.create(Object.getPrototypeOf(this),{$$:{value:on(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Pe(this),Ae(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Fr.push(this),Fr.length===1&&Fe&&Fe(vn),this.$$.deleteScheduled=!0,this}})};function Rr(){}var dr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Re=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Re(c,r,r),c.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},hn=48,pn=57,_n=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=hn&&e<=pn?`_${r}`:r};function gn(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Qr=(r,e,t)=>{for(;e!==t;)e.upcast||$(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function mn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}function yn(r,e){var t;if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Qr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&$("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,N.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:$("Unsupporting sharing policy")}return t}function $n(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}var bn=()=>{Object.assign(Or.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:x,readValueFromPointer:fr,fromWireType:fn})};function Or(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,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=f,!i&&e.baseClass===void 0?n?(this.toWireType=mn,this.destructorFunction=null):(this.toWireType=$n,this.destructorFunction=null):this.toWireType=yn}var Oe=(r,e,t)=>{c.hasOwnProperty(r)||Er("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},wn=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},kr=[],ke,y=r=>{var e=kr[r];return e||(r>=kr.length&&(kr.length=r+1),kr[r]=e=ke.get(r)),e},Cn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return wn(r,e,t);var n=y(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=R(r);function t(){return r.includes("j")?Tn(r,e):y(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},Pn=(r,e)=>{var t=dr(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Ie,We=r=>{var e=xe(r),t=R(e);return z(e),t},Ir=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!J[a]){if(Ar[a]){Ar[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new Ie(`${r}: `+t.map(We).join([", "]))},An=(r,e,t,n,i,a,s,o,u,l,f,d,_)=>{f=R(f),a=D(i,a),o&&(o=D(s,o)),l&&(l=D(u,l)),_=D(d,_);var b=_n(f);Gr(b,function(){Ir(`Cannot construct ${f} due to unbound types`,[n])}),K([r,e,t],n?[n]:[],T=>{T=T[0];var F,E;n?(F=T.registeredClass,E=F.instancePrototype):E=Rr.prototype;var S=dr(f,function(){if(Object.getPrototypeOf(this)!==Y)throw new or("Use 'new' to construct "+f);if(W.constructor_body===void 0)throw new or(f+" has no accessible constructor");for(var et=arguments.length,jr=new Array(et),Ur=0;Ur{for(var t=[],n=0;n>2]);return t};function En(r){for(var e=1;e{var s=qr(e,t);i=D(n,i),K([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new or(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{Ir(`Cannot construct ${o.name} due to unbound types`,s)},K([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=Jr(u,l,null,i,a),[])),[]})},je=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Fn=(r,e,t,n,i,a,s,o,u,l)=>{var f=qr(t,n);e=R(e),e=je(e),a=D(i,a),K([],[r],d=>{d=d[0];var _=`${d.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&d.registeredClass.pureVirtualFunctions.push(e);function b(){Ir(`Cannot call ${_} due to unbound types`,f)}var T=d.registeredClass.instancePrototype,F=T[e];return F===void 0||F.overloadTable===void 0&&F.className!==d.name&&F.argCount===t-2?(b.argCount=t-2,b.className=d.name,T[e]=b):(Re(T,e,_),T[e].overloadTable[t-2]=b),K([],f,E=>{var S=Jr(_,E,d,a,s);return T[e].overloadTable===void 0?(S.argCount=t-2,T[e]=S):T[e].overloadTable[t-2]=S,[]}),[]})},Kr=[],L=[],Yr=r=>{r>9&&--L[r+1]===0&&(L[r]=void 0,Kr.push(r))},Rn=()=>L.length/2-5-Kr.length,On=()=>{L.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Rn},N={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),L[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Kr.pop()||L.length;return L[e]=r,L[e+1]=1,e}}}},Ue={name:"emscripten::val",fromWireType:r=>{var e=N.toValue(r);return Yr(r),e},toWireType:(r,e)=>N.toHandle(e),argPackAdvance:x,readValueFromPointer:fr,destructorFunction:null},kn=r=>U(r,Ue),In=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(H[n])}:function(n){return this.fromWireType(O[n])};case 2:return t?function(n){return this.fromWireType(ir[n>>1])}:function(n){return this.fromWireType(cr[n>>1])};case 4:return t?function(n){return this.fromWireType(Q[n>>2])}:function(n){return this.fromWireType(w[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Wn=(r,e,t,n)=>{e=R(e);function i(){}i.values={},U(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:x,readValueFromPointer:In(e,t,n),destructorFunction:null}),Gr(e,i)},re=(r,e)=>{var t=J[r];return t===void 0&&$(`${e} has unknown type ${We(r)}`),t},jn=(r,e,t)=>{var n=re(r,"enum");e=R(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:dr(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},ee=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Un=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(he[t>>2])};case 8:return function(t){return this.fromWireType(pe[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Dn=(r,e,t)=>{e=R(e),U(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:x,readValueFromPointer:Un(e,t),destructorFunction:null})},Mn=(r,e,t,n,i,a,s,o)=>{var u=qr(e,t);r=R(r),r=je(r),i=D(n,i),Gr(r,function(){Ir(`Cannot call ${r} due to unbound types`,u)},e-1),K([],u,l=>{var f=[l[0],null].concat(l.slice(1));return Oe(r,Jr(r,f,null,i,a),e-1),[]})},Bn=(r,e,t)=>{switch(e){case 1:return t?n=>H[n]:n=>O[n];case 2:return t?n=>ir[n>>1]:n=>cr[n>>1];case 4:return t?n=>Q[n>>2]:n=>w[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Hn=(r,e,t,n,i)=>{e=R(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,d)=>{},l;o?l=function(f,d){return u(d,this.name),d>>>0}:l=function(f,d){return u(d,this.name),d},U(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:x,readValueFromPointer:Bn(e,t,n!==0),destructorFunction:null})},xn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=w[s>>2],u=w[s+4>>2];return new i(H.buffer,u,o)}t=R(t),U(r,{name:t,fromWireType:a,argPackAdvance:x,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Vn=Object.assign({optional:!0},Ue),Ln=(r,e)=>{U(r,Vn)},Nn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},hr=(r,e,t)=>Nn(r,O,e,t),zn=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},De=typeof TextDecoder<"u"?new TextDecoder:void 0,Me=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&De)return De.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},Xn=(r,e)=>r?Me(O,r,e):"",Zn=(r,e)=>{e=R(e);var t=e==="std::string";U(r,{name:e,fromWireType(n){var i=w[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||O[l]==0){var f=l-o,d=Xn(o,f);s===void 0?s=d:(s+="\0",s+=d),o=l+1}}else{for(var _=new Array(i),u=0;u>2]=a,t&&s)hr(i,u,a+1);else if(s)for(var l=0;l255&&(z(u),$("String has UTF-16 code units that do not fit in 8 bits")),O[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&cr[n];)++n;if(t=n<<1,t-r>32&&Be)return Be.decode(O.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=ir[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},Qn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return ir[e>>1]=0,e-i},qn=r=>r.length*2,Jn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=Q[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},Kn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(Q[e>>2]=o,e+=4,e+4>a)break}return Q[e>>2]=0,e-i},Yn=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},ri=(r,e,t)=>{t=R(t);var n,i,a,s;e===2?(n=Gn,i=Qn,s=qn,a=o=>cr[o>>1]):e===4&&(n=Jn,i=Kn,s=Yn,a=o=>w[o>>2]),U(r,{name:t,fromWireType:o=>{for(var u=w[o>>2],l,f=o+4,d=0;d<=u;++d){var _=o+4+d*e;if(d==u||a(_)==0){var b=_-f,T=n(f,b);l===void 0?l=T:(l+="\0",l+=T),f=_+e}}return z(o),l},toWireType:(o,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=ie(4+l+e);return w[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(z,f),f},argPackAdvance:x,readValueFromPointer:fr,destructorFunction(o){z(o)}})},ei=(r,e,t,n,i,a)=>{Pr[r]={name:R(e),rawConstructor:D(t,n),rawDestructor:D(i,a),fields:[]}},ti=(r,e,t,n,i,a,s,o,u,l)=>{Pr[r].fields.push({fieldName:R(e),getterReturnType:t,getter:D(n,i),getterContext:a,setterArgumentType:s,setter:D(o,u),setterContext:l})},ni=(r,e)=>{e=R(e),U(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ii=(r,e,t)=>O.copyWithin(r,e,e+t),te=[],ai=(r,e,t,n)=>(r=te[r],e=N.toValue(e),r(null,e,t,n)),oi={},si=r=>{var e=oi[r];return e===void 0?R(r):e},He=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ui=r=>r===0?N.toHandle(He()):(r=si(r),N.toHandle(He()[r])),ci=r=>{var e=te.length;return te.push(r),e},li=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},fi=Reflect.construct,vi=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&(w[e>>2]=N.toHandle(n)),i},di=(r,e,t)=>{var n=li(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,d)=>{for(var _=0,b=0;bu.name).join(", ")}) => ${i.name}>`;return ci(dr(o,s))},hi=r=>{r>9&&(L[r+1]+=1)},pi=r=>{var e=N.toValue(r);zr(e),Yr(r)},_i=(r,e)=>{r=re(r,"_emval_take_value");var t=r.readValueFromPointer(e);return N.toHandle(t)},gi=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);w[r>>2]=l*60,Q[e>>2]=+(o!=u);var f=b=>{var T=b>=0?"-":"+",F=Math.abs(b),E=String(Math.floor(F/60)).padStart(2,"0"),S=String(F%60).padStart(2,"0");return`UTC${T}${E}${S}`},d=f(o),_=f(u);u2147483648,yi=(r,e)=>Math.ceil(r/e)*e,$i=r=>{var e=$r.buffer,t=(r-e.byteLength+65535)/65536|0;try{return $r.grow(t),_e(),1}catch{}},bi=r=>{var e=O.length;r>>>=0;var t=mi();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,yi(Math.max(r,i),65536)),s=$i(a);if(s)return!0}return!1},ne={},wi=()=>tr||"./this.program",pr=()=>{if(!pr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:wi()};for(var t in ne)ne[t]===void 0?delete e[t]:e[t]=ne[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);pr.strings=n}return pr.strings},Ci=(r,e)=>{for(var t=0;t{var t=0;return pr().forEach((n,i)=>{var a=e+t;w[r+i*4>>2]=a,Ci(n,a),t+=n.length+1}),0},Pi=(r,e)=>{var t=pr();w[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),w[e>>2]=n,0},Ai=r=>52;function Ei(r,e,t,n,i){return 70}var Si=[null,[],[]],Fi=(r,e)=>{var t=Si[r];e===0||e===10?((r===1?Ft:nr)(Me(t)),t.length=0):t.push(e)},Ri=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=w[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Oi=r=>r;Ce=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},tn(),or=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},dn(),bn(),Ie=c.UnboundTypeError=Pn(Error,"UnboundTypeError"),On();var ki={t:Nt,x:zt,a:Zt,j:Gt,k:Qt,Q:qt,r:Jt,ia:Kt,d:Xt,ea:Yt,wa:rn,da:en,qa:an,ua:An,ta:Sn,G:Fn,pa:kn,H:Wn,q:jn,Y:Dn,S:Mn,z:Hn,v:xn,va:Ln,W:Zn,R:ri,E:ei,xa:ti,ra:ni,la:ii,V:ai,ya:Yr,_:ui,X:di,Z:hi,$:pi,sa:_i,fa:gi,ja:bi,ga:Ti,ha:Pi,ka:Ai,ba:Ei,U:Ri,L:Yi,D:ea,N:Di,T:ua,s:Qi,b:Ii,F:Ki,na,c:Bi,ma:ia,i:Ui,h:Ni,n:zi,P:Ji,w:Xi,K:oa,M:qi,B:ta,J:ca,ca:fa,aa:va,m:Hi,g:Mi,e:ji,f:Wi,O:sa,l:Vi,oa:ra,o:xi,u:Zi,y:Gi,C:aa,p:Li,I:la,A:Oi},P=Lt(),xe=r=>(xe=P.Ba)(r),z=c._free=r=>(z=c._free=P.Ca)(r),ie=c._malloc=r=>(ie=c._malloc=P.Ea)(r),Ve=r=>(Ve=P.Fa)(r),p=(r,e)=>(p=P.Ga)(r,e),Le=r=>(Le=P.Ha)(r),Ne=r=>(Ne=P.Ia)(r),ze=()=>(ze=P.Ja)(),Xe=r=>(Xe=P.Ka)(r),Ze=r=>(Ze=P.La)(r),Ge=(r,e,t)=>(Ge=P.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=P.Na)(r,e,t,n,i,a,s);var Qe=c.dynCall_jiii=(r,e,t,n)=>(Qe=c.dynCall_jiii=P.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=P.Pa)(r,e,t,n,i);var qe=c.dynCall_jiiii=(r,e,t,n,i)=>(qe=c.dynCall_jiiii=P.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=P.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=P.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=P.Ta)(r,e,t,n,i,a,s,o,u,l);function Ii(r,e){var t=m();try{return y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Wi(r,e,t,n){var i=m();try{y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ji(r,e,t){var n=m();try{y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Ui(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Di(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Mi(r,e){var t=m();try{y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Bi(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Hi(r){var e=m();try{y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function xi(r,e,t,n,i,a){var s=m();try{y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Vi(r,e,t,n,i){var a=m();try{y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Li(r,e,t,n,i,a,s,o,u,l,f){var d=m();try{y(r)(e,t,n,i,a,s,o,u,l,f)}catch(_){if(g(d),_!==_+0)throw _;p(1,0)}}function Ni(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function zi(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Xi(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Zi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function Gi(r,e,t,n,i,a,s,o,u){var l=m();try{y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Qi(r){var e=m();try{return y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function qi(r,e,t,n,i,a,s,o,u){var l=m();try{return y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Ji(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Ki(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Yi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ra(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function ea(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function ta(r,e,t,n,i,a,s,o,u,l){var f=m();try{return y(r)(e,t,n,i,a,s,o,u,l)}catch(d){if(g(f),d!==d+0)throw d;p(1,0)}}function na(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function ia(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function aa(r,e,t,n,i,a,s,o,u,l){var f=m();try{y(r)(e,t,n,i,a,s,o,u,l)}catch(d){if(g(f),d!==d+0)throw d;p(1,0)}}function oa(r,e,t,n,i,a,s,o){var u=m();try{return y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function sa(r,e,t,n,i,a,s){var o=m();try{y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function ua(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ca(r,e,t,n,i,a,s,o,u,l,f,d){var _=m();try{return y(r)(e,t,n,i,a,s,o,u,l,f,d)}catch(b){if(g(_),b!==b+0)throw b;p(1,0)}}function la(r,e,t,n,i,a,s,o,u,l,f,d,_,b,T,F){var E=m();try{y(r)(e,t,n,i,a,s,o,u,l,f,d,_,b,T,F)}catch(S){if(g(E),S!==S+0)throw S;p(1,0)}}function fa(r,e,t,n){var i=m();try{return Qe(r,e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function va(r,e,t,n,i){var a=m();try{return qe(r,e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}var Wr,Je;lr=function r(){Wr||Ke(),Wr||(lr=r)};function Ke(){if(q>0||!Je&&(Je=1,Rt(),q>0))return;function r(){var e;Wr||(Wr=1,c.calledRun=1,!de&&(Ot(),I(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),kt()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Ke(),k=G,k}})();const le={...rr,formats:[...rr.formats]},fe={...Mr};function Ct(v){return mr(sr,v)}function Tt(v){return yt(sr,v)}async function Pt(v,h){return $t(sr,v,h)}async function At(v,h){return bt(sr,v,h)}async function Et(v,h){return wt(sr,v,h)}return A.barcodeFormats=Dr,A.binarizers=at,A.characterSets=st,A.contentTypes=se,A.defaultDecodeHints=le,A.defaultEncodeHints=fe,A.defaultReaderOptions=le,A.defaultWriterOptions=fe,A.eanAddOnSymbols=ct,A.getZXingModule=Ct,A.purgeZXingModule=mt,A.readBarcodesFromImageData=At,A.readBarcodesFromImageFile=Pt,A.readOutputEccLevels=ht,A.setZXingModuleOverrides=Tt,A.textModes=ft,A.writeBarcodeToImageFile=Et,A.writeInputEccLevels=dt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),A}({}); diff --git a/node_modules/zxing-wasm/dist/iife/reader/index.js b/node_modules/zxing-wasm/dist/iife/reader/index.js new file mode 100644 index 0000000..a85d204 --- /dev/null +++ b/node_modules/zxing-wasm/dist/iife/reader/index.js @@ -0,0 +1,2 @@ +var ZXingWASM=function(R){"use strict";const Dr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function rt(d){return d.join("|")}function et(d){const h=ie(d);let P=0,j=Dr.length-1;for(;P<=j;){const c=Math.floor((P+j)/2),I=Dr[c],W=ie(I);if(W===h)return I;W{const P=d.match(/_(.+?)\.wasm$/);return P?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${P[1]}/${d}`:h+d}};let _r=new WeakMap;function Ur(d,h){var I;const P=_r.get(d);if(P!=null&&P.modulePromise&&(h===void 0||Object.is(h,P.moduleOverrides)))return P.modulePromise;const j=(I=h!=null?h:P==null?void 0:P.moduleOverrides)!=null?I:vt,c=d({...j});return _r.set(d,{moduleOverrides:j,modulePromise:c}),c}function dt(){_r=new WeakMap}function ht(d,h){_r.set(d,{moduleOverrides:h})}async function pt(d,h,P=rr){const j={...rr,...P},c=await Ur(d),{size:I}=h,W=new Uint8Array(await h.arrayBuffer()),G=c._malloc(I);c.HEAPU8.set(W,G);const er=c.readBarcodesFromImage(G,I,oe(c,j));c._free(G);const Z=[];for(let M=0;M{var h;var d=typeof document<"u"&&((h=document.currentScript)==null?void 0:h.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(P={}){var j,c=P,I,W,G=new Promise((r,e)=>{I=r,W=e}),er=typeof window=="object",Z=typeof Bun<"u",M=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var sr=Object.assign({},c),tr="./this.program",H="";function bt(r){return c.locateFile?c.locateFile(r,H):H+r}var ce,Mr;if(er||M||Z){var Hr;M?H=self.location.href:typeof document<"u"&&((Hr=document.currentScript)===null||Hr===void 0?void 0:Hr.tagName.toUpperCase())==="SCRIPT"&&(H=document.currentScript.src),d&&(H=d),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),M&&(Mr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ce=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var wt=c.print||console.log.bind(console),nr=c.printErr||console.error.bind(console);Object.assign(c,sr),sr=null,c.arguments&&c.arguments,c.thisProgram&&(tr=c.thisProgram);var mr=c.wasmBinary,yr,le=!1,B,O,ir,ur,Q,w,fe,ve;function de(){var r=yr.buffer;c.HEAP8=B=new Int8Array(r),c.HEAP16=ir=new Int16Array(r),c.HEAPU8=O=new Uint8Array(r),c.HEAPU16=ur=new Uint16Array(r),c.HEAP32=Q=new Int32Array(r),c.HEAPU32=w=new Uint32Array(r),c.HEAPF32=fe=new Float32Array(r),c.HEAPF64=ve=new Float64Array(r)}var he=[],pe=[],_e=[];function Ct(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(At)),xr(he)}function Tt(){xr(pe)}function Pt(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(St)),xr(_e)}function At(r){he.unshift(r)}function Et(r){pe.unshift(r)}function St(r){_e.unshift(r)}var q=0,cr=null;function Ft(r){var e;q++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q)}function Rt(r){var e;if(q--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q),q==0&&cr){var t=cr;cr=null,t()}}function Br(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",nr(r),le=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw W(t),t}var Ot="data:application/octet-stream;base64,",ge=r=>r.startsWith(Ot);function kt(){var r="zxing_reader.wasm";return ge(r)?r:bt(r)}var $r;function me(r){if(r==$r&&mr)return new Uint8Array(mr);if(Mr)return Mr(r);throw"both async and sync fetching of the wasm failed"}function jt(r){return mr?Promise.resolve().then(()=>me(r)):ce(r).then(e=>new Uint8Array(e),()=>me(r))}function ye(r,e,t){return jt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{nr(`failed to asynchronously prepare wasm: ${n}`),Br(n)})}function It(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!ge(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return nr(`wasm streaming compile failed: ${s}`),nr("falling back to ArrayBuffer instantiation"),ye(e,t,n)})}):ye(e,t,n)}function Wt(){return{a:Pi}}function Dt(){var r,e=Wt();function t(i,a){return T=i.exports,yr=T.za,de(),Fe=T.Da,Et(T.Aa),Rt(),T}Ft();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){nr(`Module.instantiateWasm callback failed with error: ${i}`),W(i)}return(r=$r)!==null&&r!==void 0||($r=kt()),It(mr,$r,e,n).catch(W),{}}var xr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var g=r=>xe(r),m=()=>Ve(),br=[],wr=0,Ut=r=>{var e=new Vr(r);return e.get_caught()||(e.set_caught(!0),wr--),e.set_rethrown(!1),br.push(e),Le(r),He(r)},V=0,Mt=()=>{p(0,0);var r=br.pop();Ne(r.excPtr),V=0};class Vr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,B[this.ptr+12]=e}get_caught(){return B[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,B[this.ptr+13]=e}get_rethrown(){return B[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Ht=r=>{throw V||(V=r),V},Cr=r=>Be(r),Nr=r=>{var e=V;if(!e)return Cr(0),0;var t=new Vr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Cr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(ze(i,n,a))return Cr(i),e}return Cr(n),e},Bt=()=>Nr([]),xt=r=>Nr([r]),Vt=(r,e)=>Nr([r,e]),Nt=()=>{var r=br.pop();r||Br("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(br.push(r),r.set_rethrown(!0),r.set_caught(!1),wr++),V=e,V},Lt=(r,e,t)=>{var n=new Vr(r);throw n.init(e,t),V=r,wr++,V},zt=()=>wr,Xt=()=>{Br("")},Tr={},Lr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function lr(r){return this.fromWireType(w[r>>2])}var ar={},J={},Pr={},$e,Ar=r=>{throw new $e(r)},K=(r,e,t)=>{r.forEach(o=>Pr[o]=e);function n(o){var u=t(o);u.length!==r.length&&Ar("Mismatched type converter count");for(var l=0;l{J.hasOwnProperty(o)?i[u]=J[o]:(a.push(o),ar.hasOwnProperty(o)||(ar[o]=[]),ar[o].push(()=>{i[u]=J[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},Zt=r=>{var e=Tr[r];delete Tr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));K([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,v=s[l],_=u.getter,b=u.getterContext,C=s[l+i.length],S=u.setter,A=u.setterContext;o[f]={read:E=>v.fromWireType(_(b,E)),write:(E,Y)=>{var k=[];S(A,E,C.toWireType(k,Y)),Lr(k)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var v=t();for(f in o)o[f].write(v,l[f]);return u!==null&&u.push(n,v),v},argPackAdvance:x,readValueFromPointer:lr,destructorFunction:n}]})},Gt=(r,e,t,n,i)=>{},Qt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);be=r},be,F=r=>{for(var e="",t=r;O[t];)e+=be[O[t++]];return e},or,$=r=>{throw new or(r)};function qt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),J.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(J[r]=e,delete Pr[r],ar.hasOwnProperty(r)){var i=ar[r];delete ar[r],i.forEach(a=>a())}}function D(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return qt(r,e,t)}var x=8,Jt=(r,e,t,n)=>{e=F(e),D(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:x,readValueFromPointer:function(i){return this.fromWireType(O[i])},destructorFunction:null})},Kt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),zr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}$(e(r)+" instance already deleted")},Xr=!1,we=r=>{},Yt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Ce=r=>{r.count.value-=1;var e=r.count.value===0;e&&Yt(r)},Te=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Te(r,e,t.baseClass);return n===null?null:t.downcast(n)},Pe={},rn={},en=(r,e)=>{for(e===void 0&&$("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},tn=(r,e)=>(e=en(r,e),rn[e]),Er=(r,e)=>{(!e.ptrType||!e.ptr)&&Ar("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Ar("Both smartPtrType and smartPtr must be specified"),e.count={value:1},fr(Object.create(r,{$$:{value:e,writable:!0}}))};function nn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=tn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?Er(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Er(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=Pe[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=Te(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?Er(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):Er(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var fr=r=>typeof FinalizationRegistry>"u"?(fr=e=>e,r):(Xr=new FinalizationRegistry(e=>{Ce(e.$$)}),fr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Xr.register(e,i,e)}return e},we=e=>Xr.unregister(e),fr(r)),Sr=[],an=()=>{for(;Sr.length;){var r=Sr.pop();r.$$.deleteScheduled=!1,r.delete()}},Ae,on=()=>{Object.assign(Fr.prototype,{isAliasOf(r){if(!(this instanceof Fr)||!(r instanceof Fr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||zr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=fr(Object.create(Object.getPrototypeOf(this),{$$:{value:Kt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||zr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),we(this),Ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||zr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Sr.push(this),Sr.length===1&&Ae&&Ae(an),this.$$.deleteScheduled=!0,this}})};function Fr(){}var vr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Ee=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Ee(c,r,r),c.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},sn=48,un=57,cn=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=sn&&e<=un?`_${r}`:r};function ln(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Gr=(r,e,t)=>{for(;e!==t;)e.upcast||$(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function fn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${re(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Gr(e.$$.ptr,t,this.registeredClass);return n}function vn(r,e){var t;if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&$(`Cannot pass "${re(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Gr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&$("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,L.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:$("Unsupporting sharing policy")}return t}function dn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${re(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Gr(e.$$.ptr,t,this.registeredClass);return n}var hn=()=>{Object.assign(Rr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:x,readValueFromPointer:lr,fromWireType:nn})};function Rr(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,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=f,!i&&e.baseClass===void 0?n?(this.toWireType=fn,this.destructorFunction=null):(this.toWireType=dn,this.destructorFunction=null):this.toWireType=vn}var Se=(r,e,t)=>{c.hasOwnProperty(r)||Ar("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},pn=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},Or=[],Fe,y=r=>{var e=Or[r];return e||(r>=Or.length&&(Or.length=r+1),Or[r]=e=Fe.get(r)),e},_n=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return pn(r,e,t);var n=y(e)(...t);return n},gn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=F(r);function t(){return r.includes("j")?gn(r,e):y(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},mn=(r,e)=>{var t=vr(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Re,Oe=r=>{var e=Me(r),t=F(e);return z(e),t},kr=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!J[a]){if(Pr[a]){Pr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new Re(`${r}: `+t.map(Oe).join([", "]))},yn=(r,e,t,n,i,a,s,o,u,l,f,v,_)=>{f=F(f),a=U(i,a),o&&(o=U(s,o)),l&&(l=U(u,l)),_=U(v,_);var b=cn(f);Zr(b,function(){kr(`Cannot construct ${f} due to unbound types`,[n])}),K([r,e,t],n?[n]:[],C=>{C=C[0];var S,A;n?(S=C.registeredClass,A=S.instancePrototype):A=Fr.prototype;var E=vr(f,function(){if(Object.getPrototypeOf(this)!==Y)throw new or("Use 'new' to construct "+f);if(k.constructor_body===void 0)throw new or(f+" has no accessible constructor");for(var Ke=arguments.length,Ir=new Array(Ke),Wr=0;Wr{for(var t=[],n=0;n>2]);return t};function $n(r){for(var e=1;e{var s=Qr(e,t);i=U(n,i),K([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new or(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{kr(`Cannot construct ${o.name} due to unbound types`,s)},K([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=qr(u,l,null,i,a),[])),[]})},ke=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},wn=(r,e,t,n,i,a,s,o,u,l)=>{var f=Qr(t,n);e=F(e),e=ke(e),a=U(i,a),K([],[r],v=>{v=v[0];var _=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&v.registeredClass.pureVirtualFunctions.push(e);function b(){kr(`Cannot call ${_} due to unbound types`,f)}var C=v.registeredClass.instancePrototype,S=C[e];return S===void 0||S.overloadTable===void 0&&S.className!==v.name&&S.argCount===t-2?(b.argCount=t-2,b.className=v.name,C[e]=b):(Ee(C,e,_),C[e].overloadTable[t-2]=b),K([],f,A=>{var E=qr(_,A,v,a,s);return C[e].overloadTable===void 0?(E.argCount=t-2,C[e]=E):C[e].overloadTable[t-2]=E,[]}),[]})},Jr=[],N=[],Kr=r=>{r>9&&--N[r+1]===0&&(N[r]=void 0,Jr.push(r))},Cn=()=>N.length/2-5-Jr.length,Tn=()=>{N.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Cn},L={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),N[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Jr.pop()||N.length;return N[e]=r,N[e+1]=1,e}}}},je={name:"emscripten::val",fromWireType:r=>{var e=L.toValue(r);return Kr(r),e},toWireType:(r,e)=>L.toHandle(e),argPackAdvance:x,readValueFromPointer:lr,destructorFunction:null},Pn=r=>D(r,je),An=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(B[n])}:function(n){return this.fromWireType(O[n])};case 2:return t?function(n){return this.fromWireType(ir[n>>1])}:function(n){return this.fromWireType(ur[n>>1])};case 4:return t?function(n){return this.fromWireType(Q[n>>2])}:function(n){return this.fromWireType(w[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},En=(r,e,t,n)=>{e=F(e);function i(){}i.values={},D(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:x,readValueFromPointer:An(e,t,n),destructorFunction:null}),Zr(e,i)},Yr=(r,e)=>{var t=J[r];return t===void 0&&$(`${e} has unknown type ${Oe(r)}`),t},Sn=(r,e,t)=>{var n=Yr(r,"enum");e=F(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:vr(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},re=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Fn=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(fe[t>>2])};case 8:return function(t){return this.fromWireType(ve[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Rn=(r,e,t)=>{e=F(e),D(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:x,readValueFromPointer:Fn(e,t),destructorFunction:null})},On=(r,e,t,n,i,a,s,o)=>{var u=Qr(e,t);r=F(r),r=ke(r),i=U(n,i),Zr(r,function(){kr(`Cannot call ${r} due to unbound types`,u)},e-1),K([],u,l=>{var f=[l[0],null].concat(l.slice(1));return Se(r,qr(r,f,null,i,a),e-1),[]})},kn=(r,e,t)=>{switch(e){case 1:return t?n=>B[n]:n=>O[n];case 2:return t?n=>ir[n>>1]:n=>ur[n>>1];case 4:return t?n=>Q[n>>2]:n=>w[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},jn=(r,e,t,n,i)=>{e=F(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,v)=>{},l;o?l=function(f,v){return u(v,this.name),v>>>0}:l=function(f,v){return u(v,this.name),v},D(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:x,readValueFromPointer:kn(e,t,n!==0),destructorFunction:null})},In=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=w[s>>2],u=w[s+4>>2];return new i(B.buffer,u,o)}t=F(t),D(r,{name:t,fromWireType:a,argPackAdvance:x,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Wn=Object.assign({optional:!0},je),Dn=(r,e)=>{D(r,Wn)},Un=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},dr=(r,e,t)=>Un(r,O,e,t),Mn=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},Ie=typeof TextDecoder<"u"?new TextDecoder:void 0,We=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&Ie)return Ie.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},Hn=(r,e)=>r?We(O,r,e):"",Bn=(r,e)=>{e=F(e);var t=e==="std::string";D(r,{name:e,fromWireType(n){var i=w[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||O[l]==0){var f=l-o,v=Hn(o,f);s===void 0?s=v:(s+="\0",s+=v),o=l+1}}else{for(var _=new Array(i),u=0;u>2]=a,t&&s)dr(i,u,a+1);else if(s)for(var l=0;l255&&(z(u),$("String has UTF-16 code units that do not fit in 8 bits")),O[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&ur[n];)++n;if(t=n<<1,t-r>32&&De)return De.decode(O.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=ir[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},Vn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return ir[e>>1]=0,e-i},Nn=r=>r.length*2,Ln=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=Q[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},zn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(Q[e>>2]=o,e+=4,e+4>a)break}return Q[e>>2]=0,e-i},Xn=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},Zn=(r,e,t)=>{t=F(t);var n,i,a,s;e===2?(n=xn,i=Vn,s=Nn,a=o=>ur[o>>1]):e===4&&(n=Ln,i=zn,s=Xn,a=o=>w[o>>2]),D(r,{name:t,fromWireType:o=>{for(var u=w[o>>2],l,f=o+4,v=0;v<=u;++v){var _=o+4+v*e;if(v==u||a(_)==0){var b=_-f,C=n(f,b);l===void 0?l=C:(l+="\0",l+=C),f=_+e}}return z(o),l},toWireType:(o,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=ne(4+l+e);return w[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(z,f),f},argPackAdvance:x,readValueFromPointer:lr,destructorFunction(o){z(o)}})},Gn=(r,e,t,n,i,a)=>{Tr[r]={name:F(e),rawConstructor:U(t,n),rawDestructor:U(i,a),fields:[]}},Qn=(r,e,t,n,i,a,s,o,u,l)=>{Tr[r].fields.push({fieldName:F(e),getterReturnType:t,getter:U(n,i),getterContext:a,setterArgumentType:s,setter:U(o,u),setterContext:l})},qn=(r,e)=>{e=F(e),D(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Jn=(r,e,t)=>O.copyWithin(r,e,e+t),ee=[],Kn=(r,e,t,n)=>(r=ee[r],e=L.toValue(e),r(null,e,t,n)),Yn={},ri=r=>{var e=Yn[r];return e===void 0?F(r):e},Ue=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ei=r=>r===0?L.toHandle(Ue()):(r=ri(r),L.toHandle(Ue()[r])),ti=r=>{var e=ee.length;return ee.push(r),e},ni=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},ii=Reflect.construct,ai=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&(w[e>>2]=L.toHandle(n)),i},oi=(r,e,t)=>{var n=ni(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,v)=>{for(var _=0,b=0;bu.name).join(", ")}) => ${i.name}>`;return ti(vr(o,s))},si=r=>{r>9&&(N[r+1]+=1)},ui=r=>{var e=L.toValue(r);Lr(e),Kr(r)},ci=(r,e)=>{r=Yr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return L.toHandle(t)},li=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);w[r>>2]=l*60,Q[e>>2]=+(o!=u);var f=b=>{var C=b>=0?"-":"+",S=Math.abs(b),A=String(Math.floor(S/60)).padStart(2,"0"),E=String(S%60).padStart(2,"0");return`UTC${C}${A}${E}`},v=f(o),_=f(u);u2147483648,vi=(r,e)=>Math.ceil(r/e)*e,di=r=>{var e=yr.buffer,t=(r-e.byteLength+65535)/65536|0;try{return yr.grow(t),de(),1}catch{}},hi=r=>{var e=O.length;r>>>=0;var t=fi();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,vi(Math.max(r,i),65536)),s=di(a);if(s)return!0}return!1},te={},pi=()=>tr||"./this.program",hr=()=>{if(!hr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:pi()};for(var t in te)te[t]===void 0?delete e[t]:e[t]=te[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);hr.strings=n}return hr.strings},_i=(r,e)=>{for(var t=0;t{var t=0;return hr().forEach((n,i)=>{var a=e+t;w[r+i*4>>2]=a,_i(n,a),t+=n.length+1}),0},mi=(r,e)=>{var t=hr();w[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),w[e>>2]=n,0},yi=r=>52;function $i(r,e,t,n,i){return 70}var bi=[null,[],[]],wi=(r,e)=>{var t=bi[r];e===0||e===10?((r===1?wt:nr)(We(t)),t.length=0):t.push(e)},Ci=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=w[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Ti=r=>r;$e=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Qt(),or=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},on(),hn(),Re=c.UnboundTypeError=mn(Error,"UnboundTypeError"),Tn();var Pi={t:Ut,x:Mt,a:Bt,j:xt,k:Vt,O:Nt,q:Lt,ga:zt,d:Ht,ca:Xt,va:Zt,ba:Gt,pa:Jt,ta:yn,sa:bn,E:wn,oa:Pn,F:En,n:Sn,W:Rn,X:On,y:jn,u:In,ua:Dn,V:Bn,P:Zn,L:Gn,wa:Qn,qa:qn,ja:Jn,T:Kn,xa:Kr,ya:ei,U:oi,Y:si,Z:ui,ra:ci,da:li,ha:hi,ea:gi,fa:mi,ia:yi,$:$i,S:Ci,J:Xi,C:Gi,Q:Ri,R:ea,r:Vi,b:Ai,D:zi,la:qi,c:ki,ka:Ji,h:Fi,i:Di,s:Ui,N:Li,w:Hi,I:Yi,K:Ni,z:Qi,H:ta,aa:ia,_:aa,l:ji,f:Oi,e:Si,g:Ei,M:ra,m:Wi,ma:Zi,p:Mi,v:Bi,na:xi,B:Ki,o:Ii,G:na,A:Ti},T=Dt(),Me=r=>(Me=T.Ba)(r),z=c._free=r=>(z=c._free=T.Ca)(r),ne=c._malloc=r=>(ne=c._malloc=T.Ea)(r),He=r=>(He=T.Fa)(r),p=(r,e)=>(p=T.Ga)(r,e),Be=r=>(Be=T.Ha)(r),xe=r=>(xe=T.Ia)(r),Ve=()=>(Ve=T.Ja)(),Ne=r=>(Ne=T.Ka)(r),Le=r=>(Le=T.La)(r),ze=(r,e,t)=>(ze=T.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=T.Na)(r,e,t,n,i,a,s);var Xe=c.dynCall_jiii=(r,e,t,n)=>(Xe=c.dynCall_jiii=T.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=T.Pa)(r,e,t,n,i);var Ze=c.dynCall_jiiii=(r,e,t,n,i)=>(Ze=c.dynCall_jiiii=T.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=T.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=T.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=T.Ta)(r,e,t,n,i,a,s,o,u,l);function Ai(r,e){var t=m();try{return y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Ei(r,e,t,n){var i=m();try{y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Si(r,e,t){var n=m();try{y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Fi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Ri(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Oi(r,e){var t=m();try{y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function ki(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function ji(r){var e=m();try{y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function Ii(r,e,t,n,i,a,s,o,u,l,f){var v=m();try{y(r)(e,t,n,i,a,s,o,u,l,f)}catch(_){if(g(v),_!==_+0)throw _;p(1,0)}}function Wi(r,e,t,n,i){var a=m();try{y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Di(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Ui(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Mi(r,e,t,n,i,a){var s=m();try{y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Hi(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Bi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function xi(r,e,t,n,i,a,s,o,u){var l=m();try{y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Vi(r){var e=m();try{return y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function Ni(r,e,t,n,i,a,s,o,u){var l=m();try{return y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Li(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function zi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Xi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Zi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function Gi(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Qi(r,e,t,n,i,a,s,o,u,l){var f=m();try{return y(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(g(f),v!==v+0)throw v;p(1,0)}}function qi(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Ji(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Ki(r,e,t,n,i,a,s,o,u,l){var f=m();try{y(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(g(f),v!==v+0)throw v;p(1,0)}}function Yi(r,e,t,n,i,a,s,o){var u=m();try{return y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function ra(r,e,t,n,i,a,s){var o=m();try{y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function ea(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ta(r,e,t,n,i,a,s,o,u,l,f,v){var _=m();try{return y(r)(e,t,n,i,a,s,o,u,l,f,v)}catch(b){if(g(_),b!==b+0)throw b;p(1,0)}}function na(r,e,t,n,i,a,s,o,u,l,f,v,_,b,C,S){var A=m();try{y(r)(e,t,n,i,a,s,o,u,l,f,v,_,b,C,S)}catch(E){if(g(A),E!==E+0)throw E;p(1,0)}}function ia(r,e,t,n){var i=m();try{return Xe(r,e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function aa(r,e,t,n,i){var a=m();try{return Ze(r,e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}var jr,Ge;cr=function r(){jr||Qe(),jr||(cr=r)};function Qe(){if(q>0||!Ge&&(Ge=1,Ct(),q>0))return;function r(){var e;jr||(jr=1,c.calledRun=1,!le&&(Tt(),I(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),Pt()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Qe(),j=G,j}})();const ue={...rr,formats:[...rr.formats]};function gt(d){return Ur(gr,d)}function mt(d){return ht(gr,d)}async function yt(d,h){return pt(gr,d,h)}async function $t(d,h){return _t(gr,d,h)}return R.barcodeFormats=Dr,R.binarizers=tt,R.characterSets=it,R.contentTypes=ae,R.defaultDecodeHints=ue,R.defaultReaderOptions=ue,R.eanAddOnSymbols=st,R.getZXingModule=gt,R.purgeZXingModule=dt,R.readBarcodesFromImageData=$t,R.readBarcodesFromImageFile=yt,R.readOutputEccLevels=ft,R.setZXingModuleOverrides=mt,R.textModes=ct,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),R}({}); diff --git a/node_modules/zxing-wasm/dist/iife/writer/index.js b/node_modules/zxing-wasm/dist/iife/writer/index.js new file mode 100644 index 0000000..76d4e6a --- /dev/null +++ b/node_modules/zxing-wasm/dist/iife/writer/index.js @@ -0,0 +1,2 @@ +var ZXingWASM=function(F){"use strict";const fe=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"],ve=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function le(d,_){return d.CharacterSet[_]}const de=[-1,0,1,2,3,4,5,6,7,8],lr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function _e(d,_){return{..._,characterSet:le(d,_.characterSet)}}function he(d){const{image:_,error:y}=d;return _?{image:new Blob([new Uint8Array(_)],{type:"image/png"}),error:""}:{image:null,error:y}}const pe={locateFile:(d,_)=>{const y=d.match(/_(.+?)\.wasm$/);return y?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${y[1]}/${d}`:_+d}};let Y=new WeakMap;function Fr(d,_){var j;const y=Y.get(d);if(y!=null&&y.modulePromise&&(_===void 0||Object.is(_,y.moduleOverrides)))return y.modulePromise;const D=(j=_!=null?_:y==null?void 0:y.moduleOverrides)!=null?j:pe,u=d({...D});return Y.set(d,{moduleOverrides:D,modulePromise:u}),u}function ge(){Y=new WeakMap}function me(d,_){Y.set(d,{moduleOverrides:_})}async function ye(d,_,y=lr){const D={...lr,...y},u=await Fr(d),j=u.writeBarcodeToImage(_,_e(u,D));return he(j)}var dr=(()=>{var _;var d=typeof document<"u"&&((_=document.currentScript)==null?void 0:_.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(y={}){var D,u=y,j,z,$e=new Promise((r,e)=>{j=r,z=e}),Ae=typeof window=="object",Ce=typeof Bun<"u",_r=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Pr=Object.assign({},u),R="";function Ee(r){return u.locateFile?u.locateFile(r,R):R+r}var Sr,hr;if(Ae||_r||Ce){var pr;_r?R=self.location.href:typeof document<"u"&&((pr=document.currentScript)===null||pr===void 0?void 0:pr.tagName.toUpperCase())==="SCRIPT"&&(R=document.currentScript.src),d&&(R=d),R.startsWith("blob:")?R="":R=R.substr(0,R.replace(/[?#].*/,"").lastIndexOf("/")+1),_r&&(hr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Sr=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}u.print||console.log.bind(console);var Z=u.printErr||console.error.bind(console);Object.assign(u,Pr),Pr=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram;var rr=u.wasmBinary,er,Wr=!1,O,$,N,Q,x,p,Ir,Ur;function kr(){var r=er.buffer;u.HEAP8=O=new Int8Array(r),u.HEAP16=N=new Int16Array(r),u.HEAPU8=$=new Uint8Array(r),u.HEAPU16=Q=new Uint16Array(r),u.HEAP32=x=new Int32Array(r),u.HEAPU32=p=new Uint32Array(r),u.HEAPF32=Ir=new Float32Array(r),u.HEAPF64=Ur=new Float64Array(r)}var Or=[],Mr=[],Dr=[];function Fe(){var r=u.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Se)),mr(Or)}function Re(){mr(Mr)}function Pe(){var r=u.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ie)),mr(Dr)}function Se(r){Or.unshift(r)}function We(r){Mr.unshift(r)}function Ie(r){Dr.unshift(r)}var B=0,G=null;function Ue(r){var e;B++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,B)}function ke(r){var e;if(B--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,B),B==0&&G){var t=G;G=null,t()}}function gr(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",Z(r),Wr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw z(t),t}var Oe="data:application/octet-stream;base64,",jr=r=>r.startsWith(Oe);function Me(){var r="zxing_writer.wasm";return jr(r)?r:Ee(r)}var tr;function Br(r){if(r==tr&&rr)return new Uint8Array(rr);if(hr)return hr(r);throw"both async and sync fetching of the wasm failed"}function De(r){return rr?Promise.resolve().then(()=>Br(r)):Sr(r).then(e=>new Uint8Array(e),()=>Br(r))}function Hr(r,e,t){return De(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),gr(n)})}function je(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!jr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),Hr(e,t,n)})}):Hr(e,t,n)}function Be(){return{a:an}}function He(){var r,e=Be();function t(a,i){return T=a.exports,er=T.Y,kr(),Jr=T.$,We(T.Z),ke(),T}Ue();function n(a){t(a.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,t)}catch(a){Z(`Module.instantiateWasm callback failed with error: ${a}`),z(a)}return(r=tr)!==null&&r!==void 0||(tr=Me()),je(rr,tr,e,n).catch(z),{}}var mr=r=>{r.forEach(e=>e(u))};u.noExitRuntime;var b=r=>te(r),w=()=>ne(),nr=[],Ve=r=>{var e=new yr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),nr.push(e),ie(r),se(r)},W=0,Ne=()=>{m(0,0);var r=nr.pop();ae(r.excPtr),W=0};class yr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){p[this.ptr+4>>2]=e}get_type(){return p[this.ptr+4>>2]}set_destructor(e){p[this.ptr+8>>2]=e}get_destructor(){return p[this.ptr+8>>2]}set_caught(e){e=e?1:0,O[this.ptr+12]=e}get_caught(){return O[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,O[this.ptr+13]=e}get_rethrown(){return O[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){p[this.ptr+16>>2]=e}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var xe=r=>{throw W||(W=r),W},ar=r=>ee(r),br=r=>{var e=W;if(!e)return ar(0),0;var t=new yr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return ar(0),e;for(var a of r){if(a===0||a===n)break;var i=t.ptr+16;if(oe(a,n,i))return ar(a),e}return ar(n),e},Xe=()=>br([]),Le=r=>br([r]),Ze=(r,e)=>br([r,e]),Qe=()=>{var r=nr.pop();r||gr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(nr.push(r),r.set_rethrown(!0),r.set_caught(!1)),W=e,W},Ge=(r,e,t)=>{var n=new yr(r);throw n.init(e,t),W=r,W},Je=()=>{gr("")},ir={},wr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function or(r){return this.fromWireType(p[r>>2])}var X={},H={},sr={},Vr,Nr=r=>{throw new Vr(r)},xr=(r,e,t)=>{r.forEach(s=>sr[s]=e);function n(s){var c=t(s);c.length!==r.length&&Nr("Mismatched type converter count");for(var f=0;f{H.hasOwnProperty(s)?a[c]=H[s]:(i.push(s),X.hasOwnProperty(s)||(X[s]=[]),X[s].push(()=>{a[c]=H[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Ke=r=>{var e=ir[r];delete ir[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));xr([r],i,o=>{var s={};return a.forEach((c,f)=>{var v=c.fieldName,l=o[f],h=c.getter,C=c.getterContext,M=o[f+a.length],K=c.setter,S=c.setterContext;s[v]={read:q=>l.fromWireType(h(C,q)),write:(q,Er)=>{var vr=[];K(S,q,M.toWireType(vr,Er)),wr(vr)}}}),[{name:e.name,fromWireType:c=>{var f={};for(var v in s)f[v]=s[v].read(c);return n(c),f},toWireType:(c,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in s)s[v].write(l,f[v]);return c!==null&&c.push(n,l),l},argPackAdvance:I,readValueFromPointer:or,destructorFunction:n}]})},qe=(r,e,t,n,a)=>{},Ye=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Xr=r},Xr,A=r=>{for(var e="",t=r;$[t];)e+=Xr[$[t++]];return e},Lr,E=r=>{throw new Lr(r)};function ze(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||E(`type "${n}" must have a positive integer typeid pointer`),H.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;E(`Cannot register type '${n}' twice`)}if(H[r]=e,delete sr[r],X.hasOwnProperty(r)){var a=X[r];delete X[r],a.forEach(i=>i())}}function P(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ze(r,e,t)}var I=8,rt=(r,e,t,n)=>{e=A(e),P(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:I,readValueFromPointer:function(a){return this.fromWireType($[a])},destructorFunction:null})},Tr=[],U=[],$r=r=>{r>9&&--U[r+1]===0&&(U[r]=void 0,Tr.push(r))},et=()=>U.length/2-5-Tr.length,tt=()=>{U.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=et},V={toValue:r=>(r||E("Cannot use deleted val. handle = "+r),U[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Tr.pop()||U.length;return U[e]=r,U[e+1]=1,e}}}},nt={name:"emscripten::val",fromWireType:r=>{var e=V.toValue(r);return $r(r),e},toWireType:(r,e)=>V.toHandle(e),argPackAdvance:I,readValueFromPointer:or,destructorFunction:null},at=r=>P(r,nt),it=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&E(`Cannot register public name '${r}' twice`),it(u,r,r),u.hasOwnProperty(t)&&E(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},ot=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(O[n])}:function(n){return this.fromWireType($[n])};case 2:return t?function(n){return this.fromWireType(N[n>>1])}:function(n){return this.fromWireType(Q[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(p[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},st=(r,e,t,n)=>{e=A(e);function a(){}a.values={},P(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:I,readValueFromPointer:ot(e,t,n),destructorFunction:null}),Zr(e,a)},ur=(r,e)=>Object.defineProperty(e,"name",{value:r}),Qr=r=>{var e=re(r),t=A(e);return k(e),t},Gr=(r,e)=>{var t=H[r];return t===void 0&&E(`${e} has unknown type ${Qr(r)}`),t},ut=(r,e,t)=>{var n=Gr(r,"enum");e=A(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},ct=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Ir[t>>2])};case 8:return function(t){return this.fromWireType(Ur[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ft=(r,e,t)=>{e=A(e),P(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:I,readValueFromPointer:ct(e,t),destructorFunction:null})};function vt(r){for(var e=1;e{for(var t=[],n=0;n>2]);return t},_t=(r,e,t)=>{u.hasOwnProperty(r)||Nr("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},ht=(r,e,t)=>{r=r.replace(/p/g,"i");var n=u["dynCall_"+r];return n(e,...t)},cr=[],Jr,g=r=>{var e=cr[r];return e||(r>=cr.length&&(cr.length=r+1),cr[r]=e=Jr.get(r)),e},pt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return ht(r,e,t);var n=g(e)(...t);return n},gt=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a{r=A(r);function t(){return r.includes("j")?gt(r,e):g(e)}var n=t();return typeof n!="function"&&E(`unknown function pointer with signature ${r}: ${e}`),n},mt=(r,e)=>{var t=ur(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Kr,yt=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!H[i]){if(sr[i]){sr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Kr(`${r}: `+t.map(Qr).join([", "]))},bt=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},wt=(r,e,t,n,a,i,o,s)=>{var c=dt(e,t);r=A(r),r=bt(r),a=J(n,a),Zr(r,function(){yt(`Cannot call ${r} due to unbound types`,c)},e-1),xr([],c,f=>{var v=[f[0],null].concat(f.slice(1));return _t(r,lt(r,v,null,a,i),e-1),[]})},Tt=(r,e,t)=>{switch(e){case 1:return t?n=>O[n]:n=>$[n];case 2:return t?n=>N[n>>1]:n=>Q[n>>1];case 4:return t?n=>x[n>>2]:n=>p[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},$t=(r,e,t,n,a)=>{e=A(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<>>o}var s=e.includes("unsigned"),c=(v,l)=>{},f;s?f=function(v,l){return c(l,this.name),l>>>0}:f=function(v,l){return c(l,this.name),l},P(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:I,readValueFromPointer:Tt(e,t,n!==0),destructorFunction:null})},At=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=p[o>>2],c=p[o+4>>2];return new a(O.buffer,c,s)}t=A(t),P(r,{name:t,fromWireType:i,argPackAdvance:I,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Ct=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o=55296&&s<=57343){var c=r.charCodeAt(++o);s=65536+((s&1023)<<10)|c&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},Et=(r,e,t)=>Ct(r,$,e,t),Ft=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},qr=typeof TextDecoder<"u"?new TextDecoder:void 0,Rt=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&qr)return qr.decode(r.subarray(e,a));for(var i="";e>10,56320|f&1023)}}return i},Pt=(r,e)=>r?Rt($,r,e):"",St=(r,e)=>{e=A(e);var t=e==="std::string";P(r,{name:e,fromWireType(n){var a=p[n>>2],i=n+4,o;if(t)for(var s=i,c=0;c<=a;++c){var f=i+c;if(c==a||$[f]==0){var v=f-s,l=Pt(s,v);o===void 0?o=l:(o+="\0",o+=l),s=f+1}}else{for(var h=new Array(a),c=0;c>2]=i,t&&o)Et(a,c,i+1);else if(o)for(var f=0;f255&&(k(c),E("String has UTF-16 code units that do not fit in 8 bits")),$[c+f]=v}else for(var f=0;f{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&Q[n];)++n;if(t=n<<1,t-r>32&&Yr)return Yr.decode($.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=N[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},It=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t>1]=s,e+=2}return N[e>>1]=0,e-a},Ut=r=>r.length*2,kt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=x[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},Ot=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o=55296&&s<=57343){var c=r.charCodeAt(++o);s=65536+((s&1023)<<10)|c&1023}if(x[e>>2]=s,e+=4,e+4>i)break}return x[e>>2]=0,e-a},Mt=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},Dt=(r,e,t)=>{t=A(t);var n,a,i,o;e===2?(n=Wt,a=It,o=Ut,i=s=>Q[s>>1]):e===4&&(n=kt,a=Ot,o=Mt,i=s=>p[s>>2]),P(r,{name:t,fromWireType:s=>{for(var c=p[s>>2],f,v=s+4,l=0;l<=c;++l){var h=s+4+l*e;if(l==c||i(h)==0){var C=h-v,M=n(v,C);f===void 0?f=M:(f+="\0",f+=M),v=h+e}}return k(s),f},toWireType:(s,c)=>{typeof c!="string"&&E(`Cannot pass non-string to C++ string type ${t}`);var f=o(c),v=Cr(4+f+e);return p[v>>2]=f/e,a(c,v+4,f+e),s!==null&&s.push(k,v),v},argPackAdvance:I,readValueFromPointer:or,destructorFunction(s){k(s)}})},jt=(r,e,t,n,a,i)=>{ir[r]={name:A(e),rawConstructor:J(t,n),rawDestructor:J(a,i),fields:[]}},Bt=(r,e,t,n,a,i,o,s,c,f)=>{ir[r].fields.push({fieldName:A(e),getterReturnType:t,getter:J(n,a),getterContext:i,setterArgumentType:o,setter:J(s,c),setterContext:f})},Ht=(r,e)=>{e=A(e),P(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Vt=(r,e,t)=>$.copyWithin(r,e,e+t),Ar=[],Nt=(r,e,t,n)=>(r=Ar[r],e=V.toValue(e),r(null,e,t,n)),xt={},Xt=r=>{var e=xt[r];return e===void 0?A(r):e},zr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Lt=r=>r===0?V.toHandle(zr()):(r=Xt(r),V.toHandle(zr()[r])),Zt=r=>{var e=Ar.length;return Ar.push(r),e},Qt=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},Gt=Reflect.construct,Jt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(p[e>>2]=V.toHandle(n)),a},Kt=(r,e,t)=>{var n=Qt(r,e),a=n.shift();r--;var i=new Array(r),o=(c,f,v,l)=>{for(var h=0,C=0;Cc.name).join(", ")}) => ${a.name}>`;return Zt(ur(s,o))},qt=r=>{r>9&&(U[r+1]+=1)},Yt=r=>{var e=V.toValue(r);wr(e),$r(r)},zt=()=>2147483648,rn=(r,e)=>Math.ceil(r/e)*e,en=r=>{var e=er.buffer,t=(r-e.byteLength+65535)/65536|0;try{return er.grow(t),kr(),1}catch{}},tn=r=>{var e=$.length;r>>>=0;var t=zt();if(r>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var i=Math.min(t,rn(Math.max(r,a),65536)),o=en(i);if(o)return!0}return!1},nn=r=>r;Vr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Ye(),Lr=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},tt(),Kr=u.UnboundTypeError=mt(Error,"UnboundTypeError");var an={x:Ve,y:Ne,a:Xe,l:Le,u:Ze,N:Qe,n:Ge,f:xe,J:Je,T:Ke,I:qe,P:rt,O:at,R:st,k:ut,B:ft,S:wt,s:$t,o:At,A:St,z:Dt,C:jt,U:Bt,Q:Ht,L:Vt,F:Nt,W:$r,H:Lt,G:Kt,D:qt,X:Yt,K:tn,E:vn,v:wn,e:on,c:ln,m:fn,h:bn,i:gn,M:mn,q:dn,g:sn,d:pn,b:hn,j:cn,p:un,w:yn,r:Tn,t:_n,V:nn},T=He(),re=r=>(re=T._)(r),Cr=u._malloc=r=>(Cr=u._malloc=T.aa)(r),k=u._free=r=>(k=u._free=T.ba)(r),m=(r,e)=>(m=T.ca)(r,e),ee=r=>(ee=T.da)(r),te=r=>(te=T.ea)(r),ne=()=>(ne=T.fa)(),ae=r=>(ae=T.ga)(r),ie=r=>(ie=T.ha)(r),oe=(r,e,t)=>(oe=T.ia)(r,e,t),se=r=>(se=T.ja)(r);function on(r,e){var t=w();try{return g(r)(e)}catch(n){if(b(t),n!==n+0)throw n;m(1,0)}}function sn(r,e){var t=w();try{g(r)(e)}catch(n){if(b(t),n!==n+0)throw n;m(1,0)}}function un(r,e,t,n,a,i){var o=w();try{g(r)(e,t,n,a,i)}catch(s){if(b(o),s!==s+0)throw s;m(1,0)}}function cn(r,e,t,n,a){var i=w();try{g(r)(e,t,n,a)}catch(o){if(b(i),o!==o+0)throw o;m(1,0)}}function fn(r,e,t,n){var a=w();try{return g(r)(e,t,n)}catch(i){if(b(a),i!==i+0)throw i;m(1,0)}}function vn(r,e,t,n,a){var i=w();try{return g(r)(e,t,n,a)}catch(o){if(b(i),o!==o+0)throw o;m(1,0)}}function ln(r,e,t){var n=w();try{return g(r)(e,t)}catch(a){if(b(n),a!==a+0)throw a;m(1,0)}}function dn(r){var e=w();try{g(r)()}catch(t){if(b(e),t!==t+0)throw t;m(1,0)}}function _n(r,e,t,n,a,i,o,s,c,f,v){var l=w();try{g(r)(e,t,n,a,i,o,s,c,f,v)}catch(h){if(b(l),h!==h+0)throw h;m(1,0)}}function hn(r,e,t,n){var a=w();try{g(r)(e,t,n)}catch(i){if(b(a),i!==i+0)throw i;m(1,0)}}function pn(r,e,t){var n=w();try{g(r)(e,t)}catch(a){if(b(n),a!==a+0)throw a;m(1,0)}}function gn(r,e,t,n,a,i){var o=w();try{return g(r)(e,t,n,a,i)}catch(s){if(b(o),s!==s+0)throw s;m(1,0)}}function mn(r,e,t,n,a,i,o){var s=w();try{return g(r)(e,t,n,a,i,o)}catch(c){if(b(s),c!==c+0)throw c;m(1,0)}}function yn(r,e,t,n,a,i,o,s){var c=w();try{g(r)(e,t,n,a,i,o,s)}catch(f){if(b(c),f!==f+0)throw f;m(1,0)}}function bn(r,e,t,n,a){var i=w();try{return g(r)(e,t,n,a)}catch(o){if(b(i),o!==o+0)throw o;m(1,0)}}function wn(r){var e=w();try{return g(r)()}catch(t){if(b(e),t!==t+0)throw t;m(1,0)}}function Tn(r,e,t,n,a,i,o,s,c){var f=w();try{g(r)(e,t,n,a,i,o,s,c)}catch(v){if(b(f),v!==v+0)throw v;m(1,0)}}var fr,ue;G=function r(){fr||ce(),fr||(G=r)};function ce(){if(B>0||!ue&&(ue=1,Fe(),B>0))return;function r(){var e;fr||(fr=1,u.calledRun=1,!Wr&&(Re(),j(u),(e=u.onRuntimeInitialized)===null||e===void 0||e.call(u),Pe()))}u.setStatus?(u.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>u.setStatus(""),1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return ce(),D=$e,D}})();const Rr={...lr};function be(d){return Fr(dr,d)}function we(d){return me(dr,d)}async function Te(d,_){return ye(dr,d,_)}return F.barcodeFormats=fe,F.characterSets=ve,F.defaultEncodeHints=Rr,F.defaultWriterOptions=Rr,F.getZXingModule=be,F.purgeZXingModule=ge,F.setZXingModuleOverrides=we,F.writeBarcodeToImageFile=Te,F.writeInputEccLevels=de,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),F}({}); diff --git a/node_modules/zxing-wasm/dist/reader/zxing_reader.wasm b/node_modules/zxing-wasm/dist/reader/zxing_reader.wasm new file mode 100644 index 0000000..19cb444 Binary files /dev/null and b/node_modules/zxing-wasm/dist/reader/zxing_reader.wasm differ diff --git a/node_modules/zxing-wasm/dist/writer/zxing_writer.wasm b/node_modules/zxing-wasm/dist/writer/zxing_writer.wasm new file mode 100644 index 0000000..fe9fccd Binary files /dev/null and b/node_modules/zxing-wasm/dist/writer/zxing_writer.wasm differ diff --git a/node_modules/zxing-wasm/package.json b/node_modules/zxing-wasm/package.json new file mode 100644 index 0000000..8da6ae1 --- /dev/null +++ b/node_modules/zxing-wasm/package.json @@ -0,0 +1,155 @@ +{ + "_from": "zxing-wasm@1.3.4", + "_id": "zxing-wasm@1.3.4", + "_inBundle": false, + "_integrity": "sha512-9l0QymyATF19FmI92QHe7Dayb+BUN7P7zFAt5iDgTnUf0dFWokz6GVA/W9EepjW5q8s3e89fIE/7uxpX27yqEQ==", + "_location": "/zxing-wasm", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "zxing-wasm@1.3.4", + "name": "zxing-wasm", + "escapedName": "zxing-wasm", + "rawSpec": "1.3.4", + "saveSpec": null, + "fetchSpec": "1.3.4" + }, + "_requiredBy": [ + "/barcode-detector" + ], + "_resolved": "https://registry.npmmirror.com/zxing-wasm/-/zxing-wasm-1.3.4.tgz", + "_shasum": "4bc45b78dc3594278bb0c24233bfb035ca9efab1", + "_spec": "zxing-wasm@1.3.4", + "_where": "D:\\work\\tourGuide\\node_modules\\barcode-detector", + "author": { + "name": "Ze-Zheng Wu" + }, + "bugs": { + "url": "https://github.com/Sec-ant/zxing-wasm/issues", + "email": "zezhengwu@proton.me" + }, + "bundleDependencies": false, + "dependencies": { + "@types/emscripten": "^1.39.13" + }, + "deprecated": false, + "description": "ZXing-C++ WebAssembly as an ES/CJS module with types", + "devDependencies": { + "@babel/core": "^7.26.0", + "@babel/types": "^7.26.0", + "@biomejs/biome": "1.9.4", + "@changesets/cli": "^2.27.9", + "@types/babel__core": "^7.20.5", + "@types/node": "^22.9.0", + "@vitest/ui": "^2.1.4", + "concurrently": "^9.1.0", + "copy-files-from-to": "^3.11.0", + "jimp": "^1.6.0", + "lint-staged": "^15.2.10", + "nano-memoize": "^3.0.16", + "prettier": "^3.3.3", + "pretty-quick": "^4.0.0", + "rimraf": "^6.0.1", + "simple-git-hooks": "^2.11.1", + "tinyglobby": "^0.2.10", + "tsx": "^4.19.2", + "typedoc": "^0.26.11", + "typescript": "^5.6.3", + "vite": "^5.4.10", + "vite-plugin-babel": "^1.2.0", + "vitest": "^2.1.4" + }, + "exports": { + ".": { + "import": "./dist/es/full/index.js", + "require": "./dist/cjs/full/index.js", + "default": "./dist/es/full/index.js" + }, + "./full": { + "import": "./dist/es/full/index.js", + "require": "./dist/cjs/full/index.js", + "default": "./dist/es/full/index.js" + }, + "./reader": { + "import": "./dist/es/reader/index.js", + "require": "./dist/cjs/reader/index.js", + "default": "./dist/es/reader/index.js" + }, + "./writer": { + "import": "./dist/es/writer/index.js", + "require": "./dist/cjs/writer/index.js", + "default": "./dist/es/writer/index.js" + }, + "./reader/zxing_reader.wasm": "./dist/reader/zxing_reader.wasm", + "./writer/zxing_writer.wasm": "./dist/writer/zxing_writer.wasm", + "./full/zxing_full.wasm": "./dist/full/zxing_full.wasm" + }, + "files": [ + "./dist" + ], + "homepage": "https://github.com/Sec-ant/zxing-wasm", + "keywords": [ + "qrcode", + "barcode", + "wasm", + "zxing", + "zxing-cpp", + "esmodule", + "webassembly" + ], + "license": "MIT", + "main": "./dist/cjs/full/index.js", + "module": "./dist/es/full/index.js", + "name": "zxing-wasm", + "overrides": { + "typedoc": { + "typescript": "$typescript" + } + }, + "private": false, + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Sec-ant/zxing-wasm.git" + }, + "scripts": { + "build": "conc \"pnpm:build:es\" \"pnpm:build:cjs\" \"pnpm:build:iife\"", + "build:all": "pnpm -s submodule:init && pnpm -s cmake && pnpm -s build:wasm && pnpm -s build", + "build:cjs": "tsx ./scripts/build-cjs.ts", + "build:es": "vite build", + "build:iife": "tsx ./scripts/build-iife.ts", + "build:wasm": "cmake --build build -j$(($(nproc 2>/dev/null || sysctl -n hw.logicalcpu) - 1))", + "bump-biome:latest": "pnpm add -DE @biomejs/biome@latest", + "bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly", + "check": "pnpm -s format:prettier && pnpm -s check:biome", + "check:biome": "biome check --write .", + "clear:dist": "rimraf dist", + "cmake": "emcmake cmake -S src/cpp -B build", + "copy:wasm": "copy-files-from-to", + "dev": "vite", + "docs:build": "typedoc --excludeInternal", + "docs:dev": "conc \"pnpm:docs:preview\" \"typedoc --watch --excludeInternal\"", + "docs:preview": "vite preview --outDir ./docs", + "format": "pnpm -s format:prettier && pnpm -s format:biome", + "format:biome": "biome format . --write", + "format:prettier": "pretty-quick", + "lint": "biome lint .", + "postbuild": "conc \"pnpm:copy:wasm\" \"pnpm:docs:build\"", + "postbuild:cjs": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/cjs", + "postbuild:es": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/es", + "prebuild": "pnpm -s check && pnpm -s type-check && pnpm -s clear:dist", + "preview": "vite preview", + "submodule:init": "git submodule update --init", + "submodule:update": "git submodule update --remote", + "sync-emsdk": "./scripts/sync-emsdk.sh", + "test": "vitest --hideSkippedTests", + "test:ui": "vitest --hideSkippedTests --ui", + "type-check": "tsc -p ./tsconfig.pkg.json --noEmit --emitDeclarationOnly false", + "update-hooks": "simple-git-hooks" + }, + "type": "module", + "version": "1.3.4" +} diff --git a/pages/index/index.vue b/pages/index/index.vue index afb3a88..895894a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@ @@ -39,7 +43,9 @@
    \ No newline at end of file + document.write('')
    \ No newline at end of file diff --git a/unpackage/dist/build/web/static/js/chunk-vendors.27f6cb6a.js b/unpackage/dist/build/web/static/js/chunk-vendors.27f6cb6a.js new file mode 100644 index 0000000..5bc71be --- /dev/null +++ b/unpackage/dist/build/web/static/js/chunk-vendors.27f6cb6a.js @@ -0,0 +1,13 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00c2":function(t,e,n){"use strict";var r=n("bb80"),i=n("338c"),o=n("f660"),a=n("036b").indexOf,c=n("11bf"),s=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(c,n)&&i(r,n)&&s(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||s(l,n));return l}},"00ca":function(t,e,n){var r=n("56c8"),i=n("da1d"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"0173":function(t,e,n){"use strict";var r,i,o=n("85c1"),a=n("29d8"),c=o.process,s=o.Deno,u=c&&c.versions||s&&s.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"01a2":function(t,e,n){"use strict";n("223c"),n("e5d4"),n("0768"),n("d4b5"),n("6994")},"036b":function(t,e,n){"use strict";var r=n("f660"),i=n("e34c"),o=n("1fc1"),a=function(t){return function(e,n,a){var c=r(e),s=o(c);if(0===s)return!t&&-1;var u,l=i(a,s);if(t&&n!==n){while(s>l)if(u=c[l++],u!==u)return!0}else for(;s>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"03a0":function(t,e,n){"use strict";var r=n("bb80"),i=n("497b"),o=n("9e70"),a=n("862c"),c=r("".charAt),s=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),d=i(n),h=f.length;return d<0||d>=h?t?"":void 0:(r=s(f,d),r<55296||r>56319||d+1===h||(l=s(f,d+1))<56320||l>57343?t?c(f,d):r:t?u(f,d,d+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},"03dc":function(t,e,n){"use strict";var r=n("03a0").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0506":function(t,e,n){"use strict";n("5c47");var r=n("8bdb"),i=n("71e9"),o=n("474f"),a=n("e7e3"),c=n("9e70"),s=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),u=/./.test;r({target:"RegExp",proto:!0,forced:!s},{test:function(t){var e=a(this),n=c(t),r=e.exec;if(!o(r))return i(u,e,n);var s=i(r,e,n);return null!==s&&(a(s),!0)}})},"0699":function(t,e,n){var r=n("d191"),i=n("d5ca"),o=n("c646"),a=n("29d5"),c=a("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||o(n=r(a)[c])?e:i(n)}},"0768":function(t,e,n){"use strict";var r=n("8bdb"),i=n("338c"),o=n("ddd3"),a=n("52df"),c=n("8b3b"),s=n("5b2c"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(u,t))return u[t]}})},"07da":function(t,e,n){"use strict";var r=n("71e9"),i=n("e7e3"),o=n("474f"),a=n("ada5"),c=n("9ad8"),s=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=r(n,t,e);return null!==u&&i(u),u}if("RegExp"===a(t))return r(c,t,e);throw new s("RegExp#exec called on incompatible receiver")}},"0829":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ea07").entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},"08eb":function(t,e,n){"use strict";var r=n("8bdb"),i=n("3d77"),o=n("29ba"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},"0931":function(t,e,n){"use strict";var r=n("8c08"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"0b5a":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"0c26":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ee98").trim,o=n("8b27");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"0cc2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("a734"),a=n("8945"),c=n("474f"),s=n("4afb"),u=n("c337"),l=n("8c4f"),f=n("181d"),d=n("6aca"),h=n("81a9"),p=n("8c08"),v=n("799d"),g=n("5057"),m=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,k){s(n,e,a);var S,C,T,O=function(t){if(t===p&&j)return j;if(!_&&t&&t in I)return I[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)};case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,I=t.prototype,L=I[w]||I["@@iterator"]||p&&I[p],j=!_&&L||O(p),M="Array"===e&&I.entries||L;if(M&&(S=u(M.call(new t)),S!==Object.prototype&&S.next&&(o||u(S)===y||(l?l(S,y):c(S[w])||h(S,w,x)),f(S,E,!0,!0),o&&(v[E]=x))),m&&"values"===p&&L&&"values"!==L.name&&(!o&&b?d(I,"name","values"):(A=!0,j=function(){return i(L,this)})),p)if(C={values:O("values"),keys:g?j:O("keys"),entries:O("entries")},k)for(T in C)(_||A||!(T in I))&&h(I,T,C[T]);else r({target:e,proto:!0,forced:_||A},C);return o&&!k||I[w]===j||h(I,w,j,{name:p}),v[e]=j,C}},"0e36":function(t,e,n){var r=n("d95b"),i=n("d970"),o=n("1e5d"),a=function(t){return function(e,n,a){var c,s=r(e),u=o(s),l=i(a,u);if(t&&n!=n){while(u>l)if(c=s[l++],c!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"0e40":function(t,e,n){"use strict";var r=n("86ca");t.exports=Math.fround||function(t){return r(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},"0ee4":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},1001:function(t,e,n){"use strict";var r=n("bb80"),i=n("1099"),o=Math.floor,a=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var h=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=u),c(d,v,(function(i,c){var u;switch(a(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,h);case"<":u=f[s(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(c,1):r[d-1]+a(c,1):i}u=r[l-1]}return void 0===u?"":u}))}},1099:function(t,e,n){"use strict";var r=n("862c"),i=Object;t.exports=function(t){return i(r(t))}},"114e":function(t,e,n){"use strict";var r=n("85c1"),i=n("181d");i(r.JSON,"JSON",!0)},"11bf":function(t,e,n){"use strict";t.exports={}},1297:function(t,e,n){"use strict";var r=n("bb80");t.exports=r({}.isPrototypeOf)},12973:function(t,e,n){"use strict";var r=n("7ddb"),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var t,e=i(this).length,n=a(e/2),r=0;while(r0?i(r(t),9007199254740991):0}},1535:function(t,e,n){var r=n("7aa6"),i=n("fdca"),o=/#|\.prototype\./,a=function(t,e){var n=s[c(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},c=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},"15ab":function(t,e,n){"use strict";var r=n("7658"),i=n("57e7");r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},"15d1":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("6aa6"),a=n("bb80"),c=n("71e9"),s=n("af9e"),u=n("9e70"),l=n("7f28"),f=n("3b19").c2i,d=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),g=String.fromCharCode,m=a("".charAt),b=a("".replace),y=a(d.exec),_=!!v&&!s((function(){return"hi"!==v("aGk=")})),w=_&&s((function(){return""!==v(" ")})),x=_&&!s((function(){v("a")})),k=_&&!s((function(){v()})),S=_&&1!==v.length,C=!_||w||x||k||S;r({global:!0,bind:!0,enumerable:!0,forced:C},{atob:function(t){if(l(arguments.length,1),_&&!w&&!x)return c(v,i,t);var e,n,r,a=b(u(t),h,""),s="",k=0,S=0;if(a.length%4===0&&(a=b(a,p,"")),e=a.length,e%4===1||y(d,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(k>(-2*S&6)));return s}})},"175f":function(t,e,n){"use strict";var r=n("6aa6"),i=n("338c"),o=n("6aca"),a=n("1297"),c=n("8c4f"),s=n("3d8a"),u=n("e157"),l=n("dcda"),f=n("e7da"),d=n("5330"),h=n("8cb1"),p=n("ab4a"),v=n("a734");t.exports=function(t,e,n,g){var m=g?2:1,b=t.split("."),y=b[b.length-1],_=r.apply(null,b);if(_){var w=_.prototype;if(!v&&i(w,"cause")&&delete w.cause,!n)return _;var x=r("Error"),k=e((function(t,e){var n=f(g?e:t,void 0),r=g?new _(t):new _;return void 0!==n&&o(r,"message",n),h(r,k,r.stack,2),this&&a(w,this)&&l(r,this,k),arguments.length>m&&d(r,arguments[m]),r}));if(k.prototype=w,"Error"!==y?c?c(k,x):s(k,x,{name:!0}):p&&"stackTraceLimit"in _&&(u(k,_,"stackTraceLimit"),u(k,_,"prepareStackTrace")),s(k,_),!v)try{w.name!==y&&o(w,"name",y),w.constructor=k}catch(S){}return k}}},"177f":function(t,e,n){var r=n("85e5"),i=n("d10a");t.exports=function(t){if("Function"===r(t))return i(t)}},"17fc":function(t,e,n){"use strict";var r=n("ac5f"),i=n("8ae2"),o=n("1c06"),a=n("8c08"),c=a("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===s||r(e.prototype))?e=void 0:o(e)&&(e=e[c],null===e&&(e=void 0))),void 0===e?s:e}},"181d":function(t,e,n){"use strict";var r=n("d6b1").f,i=n("338c"),o=n("8c08"),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},1851:function(t,e,n){"use strict";var r=n("8bdb"),i=n("84d6"),o=n("1cb5");r({target:"Array",proto:!0},{fill:i}),o("fill")},"18e4":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t,"string");return"symbol"===(0,r.default)(e)?e:String(e)};var r=o(n("fcf3")),i=o(n("fab0"));function o(t){return t&&t.__esModule?t:{default:t}}},"18f7":function(t,e,n){"use strict";var r=n("03a0").charAt,i=n("9e70"),o=n("235c"),a=n("0cc2"),c=n("97ed"),s=o.set,u=o.getterFor("String Iterator");a(String,"String",(function(t){s(this,{type:"String Iterator",string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?c(void 0,!0):(t=r(n,i),e.index+=t.length,c(t,!1))}))},1954:function(t,e,n){"use strict";var r=n("85c1"),i=n("9f9e"),o=n("7ddb"),a=n("af9e"),c=n("37ad"),s=r.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!s&&a((function(){f.call(new s(1))})),h=a((function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(f,d?c(u(this)):u(this),c(arguments))}),h)},1959:function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("f0b5"),a=n("f439"),c=n("a5c6"),s=n("7c26"),u=n("59f8");r({target:"Promise",stat:!0,forced:u},{all:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,l=c((function(){var n=o(e.resolve),a=[],c=0,l=1;s(t,(function(t){var o=c++,s=!1;l++,i(n,e,t).then((function(t){s||(s=!0,a[o]=t,--l||r(a))}),u)})),--l||r(a)}));return l.error&&u(l.value),n.promise}})},"198e":function(t,e,n){"use strict";var r=n("7ddb"),i=n("323c"),o=n("af9e"),a=n("37ad"),c=r.aTypedArray,s=r.exportTypedArrayMethod,u=o((function(){new Int8Array(1).slice()}));s("slice",(function(t,e){var n=a(c(this),t,e),r=i(this),o=0,s=n.length,u=new r(s);while(s>o)u[o]=n[o++];return u}),u)},"1aad":function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},"1ad7":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"1ae3":function(t,e,n){var r=n("fdca"),i=n("c2d7"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},"1b8e":function(t,e,n){var r=n("720d"),i=n("218d"),o=n("c646"),a=n("d459"),c=n("29d5"),s=c("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},"1c06":function(t,e,n){"use strict";var r=n("474f");t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},"1c16":function(t,e,n){"use strict";var r=n("3c7a"),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},"1cb5":function(t,e,n){"use strict";var r=n("8c08"),i=n("e37c"),o=n("d6b1").f,a=r("unscopables"),c=Array.prototype;void 0===c[a]&&o(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},"1cf1":function(t,e,n){"use strict";var r=n("7ddb").exportTypedArrayMethod,i=n("af9e"),o=n("85c1"),a=n("bb80"),c=o.Uint8Array,s=c&&c.prototype||{},u=[].toString,l=a([].join);i((function(){u.call({})}))&&(u=function(){return l(this)});var f=s.toString!==u;r("toString",u,f)},"1d18":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(l){u=!0,i=l}finally{try{if(!s&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return c}},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("aa9c")},"1d57":function(t,e,n){"use strict";var r=n("af9e");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"1ded":function(t,e,n){"use strict";var r=n("ab4a"),i=n("71e9"),o=n("346b"),a=n("0b5a"),c=n("f660"),s=n("f9ed"),u=n("338c"),l=n("2ba7"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=s(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},"1e4f":function(t,e,n){var r=n("29d5"),i=n("d459"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},"1e5d":function(t,e,n){var r=n("1501");t.exports=function(t){return r(t.length)}},"1ea2":function(t,e,n){"use strict";var r=n("af9e"),i=n("1c06"),o=n("ada5"),a=n("5d6e"),c=Object.isExtensible,s=r((function(){c(1)}));t.exports=s||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!==o(t))&&(!c||c(t)))}:c},"1eb8":function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},"1faa":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1fc1":function(t,e,n){"use strict";var r=n("c435");t.exports=function(t){return r(t.length)}},"218d":function(t,e,n){var r=n("f0b5"),i=n("c646");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},"223c":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("71e9"),a=n("bb80"),c=n("a734"),s=n("ab4a"),u=n("af71"),l=n("af9e"),f=n("338c"),d=n("1297"),h=n("e7e3"),p=n("f660"),v=n("f9ed"),g=n("9e70"),m=n("0b5a"),b=n("e37c"),y=n("ff4f"),_=n("80bb"),w=n("8449"),x=n("7d3c"),k=n("1ded"),S=n("d6b1"),C=n("a3fb"),T=n("346b"),O=n("81a9"),E=n("e4ca"),A=n("8b3b"),I=n("b223"),L=n("11bf"),j=n("d7b4"),M=n("8c08"),P=n("9917"),$=n("f259"),R=n("effb"),D=n("181d"),B=n("235c"),N=n("4d16").forEach,U=I("hidden"),V=B.set,F=B.getterFor("Symbol"),W=Object["prototype"],q=i.Symbol,z=q&&q["prototype"],H=i.RangeError,G=i.TypeError,X=i.QObject,Y=k.f,K=S.f,Z=w.f,J=T.f,Q=a([].push),tt=A("symbols"),et=A("op-symbols"),nt=A("wks"),rt=!X||!X["prototype"]||!X["prototype"].findChild,it=function(t,e,n){var r=Y(W,e);r&&delete W[e],K(t,e,n),r&&t!==W&&K(W,e,r)},ot=s&&l((function(){return 7!==b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?it:K,at=function(t,e){var n=tt[t]=b(z);return V(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},ct=function(t,e,n){t===W&&ct(et,e,n),h(t);var r=v(e);return h(n),f(tt,r)?(n.enumerable?(f(t,U)&&t[U][r]&&(t[U][r]=!1),n=b(n,{enumerable:m(0,!1)})):(f(t,U)||K(t,U,m(1,b(null))),t[U][r]=!0),ot(t,r,n)):K(t,r,n)},st=function(t,e){h(t);var n=p(e),r=y(n).concat(dt(n));return N(r,(function(e){s&&!o(ut,n,e)||ct(t,e,n[e])})),t},ut=function(t){var e=v(t),n=o(J,this,e);return!(this===W&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,U)&&this[U][e])||n)},lt=function(t,e){var n=p(t),r=v(e);if(n!==W||!f(tt,r)||f(et,r)){var i=Y(n,r);return!i||!f(tt,r)||f(n,U)&&n[U][r]||(i.enumerable=!0),i}},ft=function(t){var e=Z(p(t)),n=[];return N(e,(function(t){f(tt,t)||f(L,t)||Q(n,t)})),n},dt=function(t){var e=t===W,n=Z(e?et:p(t)),r=[];return N(n,(function(t){!f(tt,t)||e&&!f(W,t)||Q(r,tt[t])})),r};u||(q=function(){if(d(z,this))throw new G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=j(t),n=function(t){var r=void 0===this?i:this;r===W&&o(n,et,t),f(r,U)&&f(r[U],e)&&(r[U][e]=!1);var a=m(1,t);try{ot(r,e,a)}catch(c){if(!(c instanceof H))throw c;it(r,e,a)}};return s&&rt&&ot(W,e,{configurable:!0,set:n}),at(e,t)},z=q["prototype"],O(z,"toString",(function(){return F(this).tag})),O(q,"withoutSetter",(function(t){return at(j(t),t)})),T.f=ut,S.f=ct,C.f=st,k.f=lt,_.f=w.f=ft,x.f=dt,P.f=function(t){return at(M(t),t)},s&&(E(z,"description",{configurable:!0,get:function(){return F(this).description}}),c||O(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),N(y(nt),(function(t){$(t)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):st(b(t),e)},defineProperty:ct,defineProperties:st,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft}),R(),D(q,"Symbol"),L[U]=!0},"22b6":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ea07").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"235c":function(t,e,n){"use strict";var r,i,o,a=n("a20b"),c=n("85c1"),s=n("1c06"),u=n("6aca"),l=n("338c"),f=n("9b55"),d=n("b223"),h=n("11bf"),p=c.TypeError,v=c.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");h[m]=!0,r=function(t,e){if(l(t,m))throw new p("Object already initialized");return e.facade=t,u(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}},2378:function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").find,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"23f4":function(t,e,n){"use strict";var r=n("ab4a"),i=n("85c1"),o=n("bb80"),a=n("8466"),c=n("dcda"),s=n("6aca"),u=n("e37c"),l=n("80bb").f,f=n("1297"),d=n("e629"),h=n("9e70"),p=n("52ac"),v=n("edb7"),g=n("e157"),m=n("81a9"),b=n("af9e"),y=n("338c"),_=n("235c").enforce,w=n("437f"),x=n("8c08"),k=n("b0a8"),S=n("cca9"),C=x("match"),T=i.RegExp,O=T.prototype,E=i.SyntaxError,A=o(O.exec),I=o("".charAt),L=o("".replace),j=o("".indexOf),M=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$=/a/g,R=/a/g,D=new T($)!==$,B=v.MISSED_STICKY,N=v.UNSUPPORTED_Y,U=r&&(!D||B||k||S||b((function(){return R[C]=!1,T($)!==$||T(R)===R||"/a/i"!==String(T($,"i"))})));if(a("RegExp",U)){for(var V=function(t,e){var n,r,i,o,a,l,v=f(O,this),g=d(t),m=void 0===e,b=[],w=t;if(!v&&g&&m&&t.constructor===V)return t;if((g||f(O,t))&&(t=t.source,m&&(e=p(w))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),w=t,k&&"dotAll"in $&&(r=!!e&&j(e,"s")>-1,r&&(e=L(e,/s/g,""))),n=e,B&&"sticky"in $&&(i=!!e&&j(e,"y")>-1,i&&N&&(e=L(e,/y/g,""))),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a=u(null),c=!1,s=!1,l=0,f="";r<=n;r++){if(e=I(t,r),"\\"===e)e+=I(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:A(P,M(t,r+1))&&(r+=2,s=!0),i+=e,l++;continue;case">"===e&&s:if(""===f||y(a,f))throw new E("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],s=!1,f="";continue}s?f+=e:i+=e}return[i,o]}(t),t=o[0],b=o[1]),a=c(T(t,e),v?this:O,V),(r||i||b.length)&&(l=_(a),r&&(l.dotAll=!0,l.raw=V(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)e=I(t,r),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+I(t,++r);return i}(t),n)),i&&(l.sticky=!0),b.length&&(l.groups=b)),t!==w)try{s(a,"source",""===w?"(?:)":w)}catch(x){}return a},F=l(T),W=0;F.length>W;)g(V,T,F[W++]);O.constructor=V,V.prototype=O,m(i,"RegExp",V,{constructor:!0})}w("RegExp")},2425:function(t,e,n){"use strict";n("e7d8")},"266a":function(t,e,n){"use strict";var r=n("af9e"),i=n("8c08"),o=n("ab4a"),a=n("a734"),c=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e["delete"]("b"),r+=n+t})),n["delete"]("a",2),n["delete"]("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2779:function(t,e,n){"use strict";var r=n("508d"),i=n("c86b"),o=n("3a4b"),a=n("3c5d"),c=n("83b3").CONSTRUCTOR,s=n("7478"),u=i("Promise"),l=o&&!c;r({target:"Promise",stat:!0,forced:o||c},{resolve:function(t){return s(l&&this===u?a:this,t)}})},2797:function(t,e,n){"use strict";var r=n("85c1"),i=n("3de7"),o=n("fb6b"),a=n("f3f2"),c=n("6aca"),s=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(o)},"27cc":function(t,e,n){var r=n("fdca"),i=n("415b"),o=n("472b"),a=n("a030");t.exports=function(t,e,n,c){c||(c={});var s=c.enumerable,u=void 0!==c.name?c.name:e;if(r(n)&&o(n,u,c),c.global)s?t[e]=n:a(e,n);else{try{c.unsafe?t[e]&&(s=!0):delete t[e]}catch(l){}s?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},"29ba":function(t,e,n){"use strict";var r=n("8c08"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(s){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(s){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"29d5":function(t,e,n){var r=n("8394"),i=n("c62a"),o=n("77cd"),a=n("8fa1"),c=n("d9a7"),s=n("344f"),u=i("wks"),l=r.Symbol,f=l&&l["for"],d=s?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!c&&"string"!=typeof u[t]){var e="Symbol."+t;c&&o(l,t)?u[t]=l[t]:u[t]=s&&f?f(e):d(e)}return u[t]}},"29d8":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"2b04":function(t,e,n){"use strict";var r=n("af9e");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},"2ba7":function(t,e,n){"use strict";var r=n("ab4a"),i=n("af9e"),o=n("3f57");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"2c10":function(t,e,n){"use strict";var r=n("71e9"),i=n("7edc"),o=n("e7e3"),a=n("1eb8"),c=n("c435"),s=n("9e70"),u=n("862c"),l=n("60bc"),f=n("03dc"),d=n("07da");i("match",(function(t,e,n){return[function(e){var n=u(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),a=n(e,r,i);if(a.done)return a.value;if(!r.global)return d(r,i);var u=r.unicode;r.lastIndex=0;var l,h=[],p=0;while(null!==(l=d(r,i))){var v=s(l[0]);h[p]=v,""===v&&(r.lastIndex=f(i,c(r.lastIndex),u)),p++}return 0===p?null:h}]}))},"2c57":function(t,e,n){"use strict";var r=n("85c1"),i=n("af9e"),o=n("bb80"),a=n("9e70"),c=n("ee98").trim,s=n("f072"),u=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,h=o(d.exec),p=8!==u(s+"08")||22!==u(s+"0x16")||f&&!i((function(){u(Object(f))}));t.exports=p?function(t,e){var n=c(a(t));return u(n,e>>>0||(h(d,n)?16:10))}:u},"2c6b":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},"2e66":function(t,e,n){var r=n("fdca"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"323c":function(t,e,n){"use strict";var r=n("7ddb"),i=n("5dfa"),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;t.exports=function(t){return o(i(t,a(t)))}},3242:function(t,e,n){"use strict";var r=n("17fc");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"330d":function(t,e,n){var r=n("1ad7"),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"335a":function(t,e,n){var r=n("d10a"),i=n("d191"),o=n("2e66");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"338c":function(t,e,n){"use strict";var r=n("bb80"),i=n("1099"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"344f":function(t,e,n){var r=n("d9a7");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3462:function(t,e){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=n},"346b":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},3487:function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("3a4b"),a=n("9360"),c=n("fdca"),s=n("9320"),u=n("8a29"),l=n("335a"),f=n("ebe8"),d=n("d1a8"),h=n("27cc"),p=n("29d5"),v=n("d459"),g=n("4c77"),m=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,k){s(n,e,a);var S,C,T,O=function(t){if(t===p&&j)return j;if(!_&&t in I)return I[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)};case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,I=t.prototype,L=I[w]||I["@@iterator"]||p&&I[p],j=!_&&L||O(p),M="Array"==e&&I.entries||L;if(M&&(S=u(M.call(new t)),S!==Object.prototype&&S.next&&(o||u(S)===y||(l?l(S,y):c(S[w])||h(S,w,x)),f(S,E,!0,!0),o&&(v[E]=x))),m&&"values"==p&&L&&"values"!==L.name&&(!o&&b?d(I,"name","values"):(A=!0,j=function(){return i(L,this)})),p)if(C={values:O("values"),keys:g?j:O("keys"),entries:O("entries")},k)for(T in C)(_||A||!(T in I))&&h(I,T,C[T]);else r({target:e,proto:!0,forced:_||A},C);return o&&!k||I[w]===j||h(I,w,j,{name:p}),v[e]=j,C}},3671:function(t,e,n){var r=n("c86b");t.exports=r("document","documentElement")},3794:function(t,e,n){"use strict";var r=n("6aa6");t.exports=r("document","documentElement")},"37ad":function(t,e,n){"use strict";var r=n("bb80");t.exports=r([].slice)},3840:function(t,e,n){"use strict";var r,i,o,a=n("508d"),c=n("3a4b"),s=n("e8b8"),u=n("8394"),l=n("d7b8"),f=n("27cc"),d=n("335a"),h=n("ebe8"),p=n("f82c"),v=n("f0b5"),g=n("fdca"),m=n("1ae3"),b=n("9b8f"),y=n("0699"),_=n("fd1d").set,w=n("fac1"),x=n("4743"),k=n("a5c6"),S=n("3462"),C=n("7b05"),T=n("3c5d"),O=n("83b3"),E=n("f439"),A=O.CONSTRUCTOR,I=O.REJECTION_EVENT,L=O.SUBCLASSING,j=C.getterFor("Promise"),M=C.set,P=T&&T.prototype,$=T,R=P,D=u.TypeError,B=u.document,N=u.process,U=E.f,V=U,F=!!(B&&B.createEvent&&u.dispatchEvent),W=function(t){var e;return!(!m(t)||!g(e=t.then))&&e},q=function(t,e){var n,r,i,o=e.value,a=1==e.state,c=a?t.ok:t.fail,s=t.resolve,u=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&Y(e),e.rejection=1),!0===c?n=o:(f&&f.enter(),n=c(o),f&&(f.exit(),i=!0)),n===t.promise?u(D("Promise-chain cycle")):(r=W(n))?l(r,n,s,u):s(n)):u(o)}catch(d){f&&!i&&f.exit(),u(d)}},z=function(t,e){t.notified||(t.notified=!0,w((function(){var n,r=t.reactions;while(n=r.get())q(n,t);t.notified=!1,e&&!t.rejection&&G(t)})))},H=function(t,e,n){var r,i;F?(r=B.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!I&&(i=u["on"+t])?i(r):"unhandledrejection"===t&&x("Unhandled promise rejection",n)},G=function(t){l(_,u,(function(){var e,n=t.facade,r=t.value,i=X(t);if(i&&(e=k((function(){s?N.emit("unhandledRejection",r,n):H("unhandledrejection",n,r)})),t.rejection=s||X(t)?2:1,e.error))throw e.value}))},X=function(t){return 1!==t.rejection&&!t.parent},Y=function(t){l(_,u,(function(){var e=t.facade;s?N.emit("rejectionHandled",e):H("rejectionhandled",e,t.value)}))},K=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,z(t,!0))},J=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw D("Promise can't be resolved itself");var r=W(e);r?w((function(){var n={done:!1};try{l(r,e,K(J,n,t),K(Z,n,t))}catch(i){Z(n,i,t)}})):(t.value=e,t.state=1,z(t,!1))}catch(i){Z({done:!1},i,t)}}};if(A&&($=function(t){b(this,R),v(t),l(r,this);var e=j(this);try{t(K(J,e),K(Z,e))}catch(n){Z(e,n)}},R=$.prototype,r=function(t){M(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})},r.prototype=f(R,"then",(function(t,e){var n=j(this),r=U(y(this,$));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=s?N.domain:void 0,0==n.state?n.reactions.add(r):w((function(){q(r,n)})),r.promise})),i=function(){var t=new r,e=j(t);this.promise=t,this.resolve=K(J,e),this.reject=K(Z,e)},E.f=U=function(t){return t===$||void 0===t?new i(t):V(t)},!c&&g(T)&&P!==Object.prototype)){o=P.then,L||f(P,"then",(function(t,e){var n=this;return new $((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete P.constructor}catch(Q){}d&&d(P,R)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:$}),h($,"Promise",!1,!0),p("Promise")},3872:function(t,e,n){var r=n("c62a"),i=n("8fa1"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},"3872e":function(t,e,n){"use strict";var r=n("f259");r("asyncIterator")},"39d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){e=(0,r.default)(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n;return t},n("6a54");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("18e4"))},"3a4b":function(t,e){t.exports=!1},"3b19":function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(t){for(var e={},n=0;n<64;n++)e[t.charAt(n)]=n;return e};t.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},"3b78":function(t,e,n){var r=n("8394"),i=n("1ae3"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},"3c5d":function(t,e,n){var r=n("8394");t.exports=r.Promise},"3c7a":function(t,e,n){"use strict";var r=n("497b"),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}},"3d77":function(t,e,n){"use strict";var r=n("ae5c"),i=n("71e9"),o=n("1099"),a=n("7f5f"),c=n("81a7"),s=n("8ae2"),u=n("1fc1"),l=n("85f7"),f=n("d67c"),d=n("5112"),h=Array;t.exports=function(t){var e=o(t),n=s(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,p>2?arguments[2]:void 0));var m,b,y,_,w,x,k=d(e),S=0;if(!k||this===h&&c(k))for(m=u(e),b=n?new this(m):h(m);m>S;S++)x=g?v(e[S],S):e[S],l(b,S,x);else for(b=n?new this:[],_=f(e,k),w=_.next;!(y=i(w,_)).done;S++)x=g?a(_,v,[y.value,S],!0):y.value,l(b,S,x);return b.length=S,b}},"3d8a":function(t,e,n){"use strict";var r=n("338c"),i=n("6ac9"),o=n("1ded"),a=n("d6b1");t.exports=function(t,e,n){for(var c=i(e),s=a.f,u=o.f,l=0;l=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{c(p,"name",{value:"values"})}catch(v){}},"3de7":function(t,e,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"3efd":function(t,e,n){"use strict";var r=n("8bdb"),i=n("1099"),o=n("1fc1"),a=n("b2b1"),c=n("a830"),s=n("41c7"),u=1!==[].unshift(0),l=u||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){s(n+r);var u=n;while(u--){var l=u+r;u in e?e[l]=e[u]:c(e,l)}for(var f=0;f3)){if(p)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;ru(n)?1:-1}}(t)),n=c(i),r=0;while(r9007199254740991)throw r("Maximum allowed index exceeded");return t}},4379:function(t,e,n){"use strict";var r=n("ac38"),i=n("323c");t.exports=function(t,e){return r(i(t),e)}},"437f":function(t,e,n){"use strict";var r=n("6aa6"),i=n("e4ca"),o=n("8c08"),a=n("ab4a"),c=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&i(e,c,{configurable:!0,get:function(){return this}})}},"45da":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("bb80"),a=n("862c"),c=n("474f"),s=n("1eb8"),u=n("e629"),l=n("9e70"),f=n("60bc"),d=n("52ac"),h=n("1001"),p=n("8c08"),v=n("a734"),g=p("replace"),m=TypeError,b=o("".indexOf),y=o("".replace),_=o("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,x,k,S,C,T,O=a(this),E=0,A=0,I="";if(!s(t)){if(n=u(t),n&&(r=l(a(d(t))),!~b(r,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(o=f(t,g),o)return i(o,t,O,e);if(v&&n)return y(l(O),t,e)}p=l(O),x=l(t),k=c(e),k||(e=l(e)),S=x.length,C=w(1,S),E=b(p,x);while(-1!==E)T=k?l(e(x,E,p)):h(x,p,E,[],void 0,e),I+=_(p,A,E)+T,A=E+S,E=E+C>p.length?-1:b(p,x,E+C);return A1?arguments[1]:void 0)}}),a("includes")},"471d":function(t,e,n){"use strict";var r=n("e7e3");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},"472b":function(t,e,n){var r=n("7aa6"),i=n("fdca"),o=n("77cd"),a=n("1faa"),c=n("9360").CONFIGURABLE,s=n("97cf"),u=n("7b05"),l=u.enforce,f=u.get,d=Object.defineProperty,h=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),h&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&f(this).source||s(this)}),"toString")},"473f":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9a51").left,o=n("2b04"),a=n("0173"),c=n("db06"),s=!c&&a>79&&a<83,u=s||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},4743:function(t,e,n){var r=n("8394");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"474f":function(t,e,n){"use strict";var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4825:function(t,e,n){var r=n("d10a"),i=n("7aa6"),o=n("fdca"),a=n("720d"),c=n("c86b"),s=n("97cf"),u=function(){},l=[],f=c("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.exec(u),v=function(t){if(!o(t))return!1;try{return f(u,l,t),!0}catch(e){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,s(t))}catch(e){return!0}};g.sham=!0,t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},"497b":function(t,e,n){"use strict";var r=n("1aad");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"49a5":function(t,e,n){var r=n("8394"),i=n("a030"),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},"49fc":function(t,e,n){"use strict";var r=n("bb80"),i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,s=r(o.exec),u=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),h=r([].push),p=r("".replace),v=r("".split),g=r("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;t=n?u(t/700):t>>1,t+=u(t/e);while(t>455)t=u(t/35),r+=36;return u(r+36*t/(t+38))},y=function(t){var e=[];t=function(t){var e=[],n=0,r=t.length;while(n=55296&&i<=56319&&n=o&&ru((2147483647-s)/_))throw new c(a);for(s+=(y-o)*_,o=y,n=0;n2147483647)throw new c(a);if(r===o){var w=s,x=36;while(1){var k=x<=p?1:x>=p+26?26:x-p;if(wS;S++)if((h||S in w)&&(b=w[S],y=k(b,S,_),t))if(e)T[S]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:u(T,b)}else switch(t){case 4:return!1;case 7:u(T,b)}return f?-1:i||l?l:T}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},"4d4a":function(t,e,n){"use strict";var r=n("8bdb"),i=n("338c");r({target:"Object",stat:!0},{hasOwn:i})},"4d8f":function(t,e,n){"use strict";var r=n("7ddb"),i=n("1fc1"),o=n("497b"),a=r.aTypedArray,c=r.exportTypedArrayMethod;c("at",(function(t){var e=a(this),n=i(e),r=o(t),c=r>=0?r:n+r;return c<0||c>=n?void 0:e[c]}))},"4db2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9f69"),o=n("af9e"),a=n("efa5"),c=n("e7e3"),s=n("e34c"),u=n("c435"),l=n("5dfa"),f=a.ArrayBuffer,d=a.DataView,h=d.prototype,p=i(f.prototype.slice),v=i(h.getUint8),g=i(h.setUint8),m=o((function(){return!new f(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(t,e){if(p&&void 0===e)return p(c(this),t);var n=c(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(l(this,f))(u(i-r)),a=new d(this),h=new d(o),m=0;while(rb;b++)if(_=I(t[b]),_&&u(v,_))return _;return new p(!1)}g=l(t,m)}w=C?t.next:g.next;while(!(x=i(w,g)).done){try{_=I(x.value)}catch(L){d(g,"throw",L)}if("object"==typeof _&&_&&u(v,_))return _}return new p(!1)}},"508d":function(t,e,n){var r=n("8394"),i=n("d953").f,o=n("d1a8"),a=n("27cc"),c=n("a030"),s=n("c199"),u=n("1535");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||c(v,{}):(r[v]||{}).prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},"50d5":function(t,e,n){"use strict";var r=n("c215"),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},5112:function(t,e,n){"use strict";var r=n("8e02"),i=n("60bc"),o=n("1eb8"),a=n("799d"),c=n("8c08"),s=c("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},5145:function(t,e,n){"use strict";var r=n("9f9e"),i=n("f660"),o=n("497b"),a=n("1fc1"),c=n("2b04"),s=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=c("lastIndexOf"),d=l||!f;t.exports=d?function(t){if(l)return r(u,this,arguments)||0;var e=i(this),n=a(e);if(0===n)return-1;var c=n-1;for(arguments.length>1&&(c=s(c,o(arguments[1]))),c<0&&(c=n+c);c>=0;c--)if(c in e&&e[c]===t)return c||0;return-1}:u},"52ac":function(t,e,n){"use strict";var r=n("71e9"),i=n("338c"),o=n("1297"),a=n("471d"),c=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in c||i(t,"flags")||!o(c,t)?e:r(a,t)}},"52df":function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},5330:function(t,e,n){"use strict";var r=n("1c06"),i=n("6aca");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},"53f7":function(t,e,n){"use strict";var r=n("7658"),i=n("57e7");r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},5628:function(t,e,n){var r=n("1faa"),i=n("632d"),o=n("415b"),a=n("d191"),c=n("d95b"),s=n("9105");e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=c(e),i=s(e),u=i.length,l=0;while(u>l)o.f(t,n=i[l++],r[n]);return t}},"569b":function(t,e,n){"use strict";var r=n("8c08"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"56c8":function(t,e,n){var r=n("d10a"),i=n("77cd"),o=n("d95b"),a=n("0e36").indexOf,c=n("bd8a"),s=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(c,n)&&i(r,n)&&s(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||s(l,n));return l}},"57e2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},"57e7":function(t,e,n){"use strict";var r=n("e37c"),i=n("e4ca"),o=n("a74c"),a=n("ae5c"),c=n("b720"),s=n("1eb8"),u=n("5075"),l=n("0cc2"),f=n("97ed"),d=n("437f"),h=n("ab4a"),p=n("d0b1").fastKey,v=n("235c"),g=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,i){c(t,d),g(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),h||(t.size=0),s(i)||u(i,t[l],{that:t,AS_ENTRIES:n})})),d=f.prototype,v=m(e),b=function(t,e,n){var r,i,o=v(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=v(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return o(d,{clear:function(){var t=v(this),e=t.first;while(e)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=r(null),h?t.size=0:this.size=0},delete:function(t){var e=v(this),n=y(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first===n&&(e.first=r),e.last===n&&(e.last=i),h?e.size--:this.size--}return!!n},forEach:function(t){var e,n=v(this),r=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!y(this,t)}}),o(d,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),h&&i(d,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=m(e),o=m(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},"59f8":function(t,e,n){var r=n("3c5d"),i=n("d47e"),o=n("83b3").CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},"5a56":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("6aa6"),a=n("0b5a"),c=n("d6b1").f,s=n("338c"),u=n("b720"),l=n("dcda"),f=n("e7da"),d=n("e6a2"),h=n("7e87"),p=n("ab4a"),v=n("a734"),g=o("Error"),m=o("DOMException"),b=function(){u(this,y);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new m(e,n),i=new g(e);return i.name="DOMException",c(r,"stack",a(1,h(i.stack,1))),l(r,this,b),r},y=b.prototype=m.prototype,_="stack"in new g("DOMException"),w="stack"in new m(1,2),x=m&&p&&Object.getOwnPropertyDescriptor(i,"DOMException"),k=!!x&&!(x.writable&&x.configurable),S=_&&!k&&!w;r({global:!0,constructor:!0,forced:v||S},{DOMException:S?b:m});var C=o("DOMException"),T=C.prototype;if(T.constructor!==C)for(var O in v||c(T,"constructor",a(1,C)),d)if(s(d,O)){var E=d[O],A=E.s;s(C,A)||c(C,A,a(6,E.c))}},"5ac7":function(t,e,n){"use strict";var r=n("8bdb"),i=n("bb80"),o=n("b6a1"),a=n("862c"),c=n("9e70"),s=n("0931"),u=i("".indexOf);r({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~u(c(a(this)),c(o(t)),arguments.length>1?arguments[1]:void 0)}})},"5b2c":function(t,e,n){"use strict";var r=n("af71");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"5c47":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9ad8");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},"5d56":function(t,e,n){"use strict";var r=n("bb80"),i=n("ac5f"),o=n("474f"),a=n("ada5"),c=n("9e70"),s=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},"5ee2":function(t,e,n){"use strict";var r=n("8ae2"),i=n("52df"),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},"5ef2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9f69"),o=n("036b").indexOf,a=n("2b04"),c=i([].indexOf),s=!!c&&1/c([1],1,-0)<0,u=s||!a("indexOf");r({target:"Array",proto:!0,forced:u},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return s?c(this,t,e)||0:o(this,t,e)}})},"5fd9":function(t,e,n){"use strict";var r=n("29d8"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"60bc":function(t,e,n){"use strict";var r=n("7992"),i=n("1eb8");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},6158:function(t,e,n){"use strict";var r=n("ae5c"),i=n("7e41"),o=n("1099"),a=n("1fc1"),c=function(t){var e=1===t;return function(n,c,s){var u,l,f=o(n),d=i(f),h=a(d),p=r(c,s);while(h-- >0)if(u=d[h],l=p(u,h,f),l)switch(t){case 0:return u;case 1:return h}return e?-1:void 0}};t.exports={findLast:c(0),findLastIndex:c(1)}},"61a3":function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("f439"),a=n("83b3").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6242:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return t}},"62f7":function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6314:function(t,e,n){var r=n("c86b"),i=n("d10a"),o=n("00ca"),a=n("ed01"),c=n("d191"),s=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=a.f;return n?s(e,n(t)):e}},"632d":function(t,e,n){var r=n("1faa"),i=n("7aa6");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"63b1":function(t,e,n){"use strict";var r=n("85c1"),i=n("9f69"),o=n("af9e"),a=n("7992"),c=n("b643"),s=n("7ddb"),u=n("5fd9"),l=n("8d24"),f=n("0173"),d=n("a700"),h=s.aTypedArray,p=s.exportTypedArrayMethod,v=r.Uint16Array,g=v&&i(v.prototype.sort),m=!!g&&!(o((function(){g(new v(2),null)}))&&o((function(){g(new v(2),{})}))),b=!!g&&!o((function(){if(f)return f<74;if(u)return u<67;if(l)return!0;if(d)return d<602;var t,e,n=new v(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&a(t),b?g(this,t):c(h(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!b||m)},"641a":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").findIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"64aa":function(t,e,n){"use strict";var r=n("8bdb"),i=n("a734"),o=n("ab4a"),a=n("85c1"),c=n("a1d4"),s=n("bb80"),u=n("8466"),l=n("338c"),f=n("dcda"),d=n("1297"),h=n("ddd3"),p=n("c215"),v=n("af9e"),g=n("80bb").f,m=n("1ded").f,b=n("d6b1").f,y=n("83fa"),_=n("ee98").trim,w=a["Number"],x=c["Number"],k=w.prototype,S=a.TypeError,C=s("".slice),T=s("".charCodeAt),O=function(t){var e=p(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,r,i,o,a,c,s,u=p(t,"number");if(h(u))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=_(u),e=T(u,0),43===e||45===e){if(n=T(u,2),88===n||120===n)return NaN}else if(48===e){switch(T(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=C(u,2),a=o.length,c=0;ci)return NaN;return parseInt(o,r)}return+u},A=u("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),I=function(t){return d(k,t)&&v((function(){y(t)}))},L=function(t){var e=arguments.length<1?0:w(O(t));return I(this)?f(Object(e),this,L):e};L.prototype=k,A&&!i&&(k.constructor=L),r({global:!0,constructor:!0,wrap:!0,forced:A},{Number:L});var j=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&b(t,n,m(e,n))};i&&x&&j(c["Number"],x),(A||i)&&j(c["Number"],w)},"64e0":function(t,e,n){"use strict";var r=n("7ddb"),i=n("6158").findLast,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"668a":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").every,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"66b1":function(t,e,n){var r=n("57e2");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"66ee":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"68fd":function(t,e,n){"use strict";var r=n("8e02");t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},6994:function(t,e,n){"use strict";var r=n("8bdb"),i=n("af71"),o=n("af9e"),a=n("7d3c"),c=n("1099"),s=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(c(t)):[]}})},"6a2b":function(t,e,n){"use strict";var r=n("1099"),i=n("e34c"),o=n("1fc1"),a=n("a830"),c=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n),u=i(t,s),l=i(e,s),f=arguments.length>2?arguments[2]:void 0,d=c((void 0===f?s:i(f,s))-l,s-u),h=1;l0)l in n?n[u]=n[l]:a(n,u),u+=h,l+=h;return n}},"6a50":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("71e9"),a=n("ab4a"),c=n("9839"),s=n("7ddb"),u=n("efa5"),l=n("b720"),f=n("0b5a"),d=n("6aca"),h=n("f221"),p=n("c435"),v=n("cc36"),g=n("1c16"),m=n("7df8"),b=n("f9ed"),y=n("338c"),_=n("8e02"),w=n("1c06"),x=n("ddd3"),k=n("e37c"),S=n("1297"),C=n("8c4f"),T=n("80bb").f,O=n("b32e"),E=n("4d16").forEach,A=n("437f"),I=n("e4ca"),L=n("d6b1"),j=n("1ded"),M=n("ac38"),P=n("235c"),$=n("dcda"),R=P.get,D=P.set,B=P.enforce,N=L.f,U=j.f,V=i.RangeError,F=u.ArrayBuffer,W=F.prototype,q=u.DataView,z=s.NATIVE_ARRAY_BUFFER_VIEWS,H=s.TYPED_ARRAY_TAG,G=s.TypedArray,X=s.TypedArrayPrototype,Y=s.isTypedArray,K=function(t,e){I(t,e,{configurable:!0,get:function(){return R(this)[e]}})},Z=function(t){var e;return S(W,t)||"ArrayBuffer"===(e=_(t))||"SharedArrayBuffer"===e},J=function(t,e){return Y(t)&&!x(e)&&e in t&&h(+e)&&e>=0},Q=function(t,e){return e=b(e),J(t,e)?f(2,t[e]):U(t,e)},tt=function(t,e,n){return e=b(e),!(J(t,e)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(t,e,n):(t[e]=n.value,t)};a?(z||(j.f=Q,L.f=tt,K(X,"buffer"),K(X,"byteOffset"),K(X,"byteLength"),K(X,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:Q,defineProperty:tt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,s=t+(n?"Clamped":"")+"Array",u="get"+t,f="set"+t,h=i[s],b=h,y=b&&b.prototype,_={},x=function(t,e){N(t,e,{get:function(){return function(t,e){var n=R(t);return n.view[u](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=R(t);i.view[f](e*a+i.byteOffset,n?m(r):r,!0)}(this,e,t)},enumerable:!0})};z?c&&(b=e((function(t,e,n,r){return l(t,y),$(function(){return w(e)?Z(e)?void 0!==r?new h(e,g(n,a),r):void 0!==n?new h(e,g(n,a)):new h(e):Y(e)?M(b,e):o(O,b,e):new h(v(e))}(),t,b)})),C&&C(b,G),E(T(h),(function(t){t in b||d(b,t,h[t])})),b.prototype=y):(b=e((function(t,e,n,r){l(t,y);var i,c,s,u=0,f=0;if(w(e)){if(!Z(e))return Y(e)?M(b,e):o(O,b,e);i=e,f=g(n,a);var d=e.byteLength;if(void 0===r){if(d%a)throw new V("Wrong length");if(c=d-f,c<0)throw new V("Wrong length")}else if(c=p(r)*a,c+f>d)throw new V("Wrong length");s=c/a}else s=v(e),c=s*a,i=new F(c);D(t,{buffer:i,byteOffset:f,byteLength:c,length:s,view:new q(i)});while(u?@[\\\]^|]/,Q=/[\0\t\n\r #/:<>?@[\\\]^|]/,tt=/^[\u0000-\u0020]+/,et=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nt=/[\t\n\r]/g,rt=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)q(e,t%256),t=L(t/256);return $(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=R(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},it={},ot=p({},it,{" ":1,'"':1,"<":1,">":1,"`":1}),at=p({},ot,{"#":1,"?":1,"{":1,"}":1}),ct=p({},at,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),st=function(t,e){var n=m(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},ut={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lt=function(t,e){var n;return 2===t.length&&P(z,M(t,0))&&(":"===(n=M(t,1))||!e&&"|"===n)},ft=function(t){var e;return t.length>1&<(F(t,0,2))&&(2===t.length||"/"===(e=M(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===W(t)},ht=function(t){return t=W(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},pt={},vt={},gt={},mt={},bt={},yt={},_t={},wt={},xt={},kt={},St={},Ct={},Tt={},Ot={},Et={},At={},It={},Lt={},jt={},Mt={},Pt={},$t=function(t,e,n){var r,i,o,a=y(t);if(e){if(i=this.parse(a),i)throw new A(i);this.searchParams=null}else{if(void 0!==n&&(r=new $t(n,!0)),i=this.parse(a,null,r),i)throw new A(i);o=O(new T),o.bindURL(this),this.searchParams=o}};$t.prototype={type:"URL",parse:function(t,e,n){var i,o,a,c,s=this,u=e||pt,l=0,f="",d=!1,p=!1,m=!1;t=y(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=N(t,tt,""),t=N(t,et,"$1")),t=N(t,nt,""),i=v(t);while(l<=i.length){switch(o=i[l],u){case pt:if(!o||!P(z,o)){if(e)return"Invalid scheme";u=gt;continue}f+=W(o),u=vt;break;case vt:if(o&&(P(H,o)||"+"===o||"-"===o||"."===o))f+=W(o);else{if(":"!==o){if(e)return"Invalid scheme";f="",u=gt,l=0;continue}if(e&&(s.isSpecial()!==h(ut,f)||"file"===f&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=f,e)return void(s.isSpecial()&&ut[s.scheme]===s.port&&(s.port=null));f="","file"===s.scheme?u=Ot:s.isSpecial()&&n&&n.scheme===s.scheme?u=mt:s.isSpecial()?u=wt:"/"===i[l+1]?(u=bt,l++):(s.cannotBeABaseURL=!0,B(s.path,""),u=jt)}break;case gt:if(!n||n.cannotBeABaseURL&&"#"!==o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===o){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,u=Pt;break}u="file"===n.scheme?Ot:yt;continue;case mt:if("/"!==o||"/"!==i[l+1]){u=yt;continue}u=xt,l++;break;case bt:if("/"===o){u=kt;break}u=Lt;continue;case yt:if(s.scheme=n.scheme,o===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===o||"\\"===o&&s.isSpecial())u=_t;else if("?"===o)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",u=Mt;else{if("#"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,u=Lt;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",u=Pt}break;case _t:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=Lt;continue}u=kt}else u=xt;break;case wt:if(u=xt,"/"!==o||"/"!==M(f,l+1))continue;l++;break;case xt:if("/"!==o&&"\\"!==o){u=kt;continue}break;case kt:if("@"===o){d&&(f="%40"+f),d=!0,a=v(f);for(var b=0;b65535)return"Invalid port";s.port=s.isSpecial()&&x===ut[s.scheme]?null:x,f=""}if(e)return;u=It;continue}return"Invalid port"}f+=o;break;case Ot:if(s.scheme="file","/"===o||"\\"===o)u=Et;else{if(!n||"file"!==n.scheme){u=Lt;continue}switch(o){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",u=Mt;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",u=Pt;break;default:ft($(g(i,l),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),u=Lt;continue}}break;case Et:if("/"===o||"\\"===o){u=At;break}n&&"file"===n.scheme&&!ft($(g(i,l),""))&&(lt(n.path[0],!0)?B(s.path,n.path[0]):s.host=n.host),u=Lt;continue;case At:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&<(f))u=Lt;else if(""===f){if(s.host="",e)return;u=It}else{if(c=s.parseHost(f),c)return c;if("localhost"===s.host&&(s.host=""),e)return;f="",u=It}continue}f+=o;break;case It:if(s.isSpecial()){if(u=Lt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(u=Lt,"/"!==o))continue}else s.fragment="",u=Pt;else s.query="",u=Mt;break;case Lt:if(o===r||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(ht(f)?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||B(s.path,"")):dt(f)?"/"===o||"\\"===o&&s.isSpecial()||B(s.path,""):("file"===s.scheme&&!s.path.length&<(f)&&(s.host&&(s.host=""),f=M(f,0)+":"),B(s.path,f)),f="","file"===s.scheme&&(o===r||"?"===o||"#"===o))while(s.path.length>1&&""===s.path[0])U(s.path);"?"===o?(s.query="",u=Mt):"#"===o&&(s.fragment="",u=Pt)}else f+=st(o,at);break;case jt:"?"===o?(s.query="",u=Mt):"#"===o?(s.fragment="",u=Pt):o!==r&&(s.path[0]+=st(o,it));break;case Mt:e||"#"!==o?o!==r&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":st(o,it)):(s.fragment="",u=Pt);break;case Pt:o!==r&&(s.fragment+=st(o,ot));break}l++}},parseHost:function(t){var e,n,r;if("["===M(t,0)){if("]"!==M(t,t.length-1))return"Invalid host";if(e=function(t){var e,n,r,i,o,a,c,s=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,d=function(){return M(t,f)};if(":"===d()){if(":"!==M(t,1))return;f+=2,u++,l=u}while(d()){if(8===u)return;if(":"!==d()){e=n=0;while(n<4&&P(Z,d()))e=16*e+I(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,u>6)return;r=0;while(d()){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!P(G,d()))return;while(P(G,d())){if(o=I(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}s[u]=256*s[u]+i,r++,2!==r&&4!==r||u++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;s[u++]=e}else{if(null!==l)return;f++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!==u&&a>0)c=s[u],s[u--]=s[l+a-1],s[l+--a]=c}else if(8!==u)return;return s}(F(t,1,-1)),!e)return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=b(t),P(J,t))return"Invalid host";if(e=function(t){var e,n,r,i,o,a,c,s=V(t,".");if(s.length&&""===s[s.length-1]&&s.length--,e=s.length,e>4)return t;for(n=[],r=0;r1&&"0"===M(i,0)&&(o=P(X,i)?16:8,i=F(i,8===o?1:2)),""===i)a=0;else{if(!P(10===o?K:8===o?Y:Z,i))return t;a=I(i,o)}B(n,a)}for(r=0;r=j(256,5-e))return null}else if(a>255)return null;for(c=D(n),r=0;r1?arguments[1]:void 0,r=S(e,new $t(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Dt=Rt.prototype,Bt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Dt,"href",Bt("serialize","setHref")),f(Dt,"origin",Bt("getOrigin")),f(Dt,"protocol",Bt("getProtocol","setProtocol")),f(Dt,"username",Bt("getUsername","setUsername")),f(Dt,"password",Bt("getPassword","setPassword")),f(Dt,"host",Bt("getHost","setHost")),f(Dt,"hostname",Bt("getHostname","setHostname")),f(Dt,"port",Bt("getPort","setPort")),f(Dt,"pathname",Bt("getPathname","setPathname")),f(Dt,"search",Bt("getSearch","setSearch")),f(Dt,"searchParams",Bt("getSearchParams")),f(Dt,"hash",Bt("getHash","setHash"))),l(Dt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(Dt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),E){var Nt=E.createObjectURL,Ut=E.revokeObjectURL;Nt&&l(Rt,"createObjectURL",s(Nt,E)),Ut&&l(Rt,"revokeObjectURL",s(Ut,E))}_(Rt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Rt})},"6be7":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("1c06"),a=n("e7e3"),c=n("cfaf"),s=n("1ded"),u=n("c337");r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return a(e)===f?e[n]:(r=s.f(e,n),r?c(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(l=u(e))?t(l,n,f):void 0)}})},"6bfa":function(t,e,n){"use strict";var r=n("f660"),i=n("1cb5"),o=n("799d"),a=n("235c"),c=n("d6b1").f,s=n("0cc2"),u=n("97ed"),l=n("a734"),f=n("ab4a"),d=a.set,h=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){d(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{c(p,"name",{value:"values"})}catch(v){}},"6c13":function(t,e,n){var r=n("c86b");t.exports=r("navigator","userAgent")||""},"6e4a":function(t,e,n){"use strict";var r=n("508d"),i=n("3a4b"),o=n("3c5d"),a=n("7aa6"),c=n("c86b"),s=n("fdca"),u=n("0699"),l=n("7478"),f=n("27cc"),d=o&&o.prototype,h=!!o&&a((function(){d["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(t){var e=u(this,c("Promise")),n=s(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&s(o)){var p=c("Promise").prototype["finally"];d["finally"]!==p&&f(d,"finally",p,{unsafe:!0})}},"6f19":function(t,e,n){var r=n("6c13");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},7054:function(t,e,n){"use strict";var r=n("e7e3"),i=n("df92"),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},"70a5":function(t,e,n){var r=n("6c13"),i=n("8394");t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},"71e9":function(t,e,n){"use strict";var r=n("8f26"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},"720d":function(t,e,n){var r=n("d456"),i=n("fdca"),o=n("85e5"),a=n("29d5"),c=a("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=s(t),c))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},7257:function(t,e,n){"use strict";var r=n("db06");t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(e){}}},7478:function(t,e,n){var r=n("d191"),i=n("1ae3"),o=n("f439");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},7658:function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("bb80"),a=n("8466"),c=n("81a9"),s=n("d0b1"),u=n("5075"),l=n("b720"),f=n("474f"),d=n("1eb8"),h=n("1c06"),p=n("af9e"),v=n("29ba"),g=n("181d"),m=n("dcda");t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),_=b?"set":"add",w=i[t],x=w&&w.prototype,k=w,S={},C=function(t){var e=o(x[t]);c(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(y&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return y&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(y&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},T=a(t,!f(w)||!(y||x.forEach&&!p((function(){(new w).entries().next()}))));if(T)k=n.getConstructor(e,t,b,_),s.enable();else if(a(t,!0)){var O=new k,E=O[_](y?{}:-0,1)!==O,A=p((function(){O.has(1)})),I=v((function(t){new w(t)})),L=!y&&p((function(){var t=new w,e=5;while(e--)t[_](e,e);return!t.has(-0)}));I||(k=e((function(t,e){l(t,x);var n=m(new w,t,k);return d(e)||u(e,n[_],{that:n,AS_ENTRIES:b}),n})),k.prototype=x,x.constructor=k),(A||L)&&(C("delete"),C("has"),b&&C("get")),(L||E)&&C(_),y&&x.clear&&delete x.clear}return S[t]=k,r({global:!0,constructor:!0,forced:k!==w},S),g(k,t),y||n.setStrong(k,t,b),k}},"77b2":function(t,e,n){var r=n("d10a");t.exports=r({}.isPrototypeOf)},"77cd":function(t,e,n){var r=n("d10a"),i=n("b510"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7934:function(t,e,n){"use strict";var r=n("569b"),i=n("8e02");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},7992:function(t,e,n){"use strict";var r=n("474f"),i=n("52df"),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},7996:function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("181d");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},"799d":function(t,e,n){"use strict";t.exports={}},"7a76":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("9f9e"),a=n("175f"),c=i["WebAssembly"],s=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,s),r({global:!0,constructor:!0,arity:1,forced:s},n)},l=function(t,e){if(c&&c[t]){var n={};n[t]=a("WebAssembly."+t,e,s),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:s},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),l("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),l("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),l("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},"7aa6":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7b05":function(t,e,n){var r,i,o,a=n("c7dd"),c=n("8394"),s=n("1ae3"),u=n("d1a8"),l=n("77cd"),f=n("49a5"),d=n("3872"),h=n("bd8a"),p=c.TypeError,v=c.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");h[m]=!0,r=function(t,e){if(l(t,m))throw p("Object already initialized");return e.facade=t,u(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},"7b97":function(t,e,n){"use strict";var r=n("bb80"),i=n("7ddb"),o=n("6a2b"),a=r(o),c=i.aTypedArray,s=i.exportTypedArrayMethod;s("copyWithin",(function(t,e){return a(c(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"7c26":function(t,e,n){var r=n("dbc3"),i=n("d7b8"),o=n("d191"),a=n("e158"),c=n("1e4f"),s=n("1e5d"),u=n("77b2"),l=n("bef2"),f=n("1b8e"),d=n("e39d"),h=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,m,b,y,_,w,x,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),E=r(e,k),A=function(t){return g&&d(g,"normal",t),new p(!0,t)},I=function(t){return S?(o(t),O?E(t[0],t[1],A):E(t[0],t[1])):O?E(t,A):E(t)};if(C)g=t.iterator;else if(T)g=t;else{if(m=f(t),!m)throw h(a(t)+" is not iterable");if(c(m)){for(b=0,y=s(t);y>b;b++)if(_=I(t[b]),_&&u(v,_))return _;return new p(!1)}g=l(t,m)}w=C?t.next:g.next;while(!(x=i(w,g)).done){try{_=I(x.value)}catch(L){d(g,"throw",L)}if("object"==typeof _&&_&&u(v,_))return _}return new p(!1)}},"7d2f":function(t,e,n){"use strict";var r=n("ab4a"),i=n("b0a8"),o=n("ada5"),a=n("e4ca"),c=n("235c").get,s=RegExp.prototype,u=TypeError;r&&i&&a(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===o(this))return!!c(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})},"7d3c":function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"7ddb":function(t,e,n){"use strict";var r,i,o,a=n("c89b"),c=n("ab4a"),s=n("85c1"),u=n("474f"),l=n("1c06"),f=n("338c"),d=n("8e02"),h=n("52df"),p=n("6aca"),v=n("81a9"),g=n("e4ca"),m=n("1297"),b=n("c337"),y=n("8c4f"),_=n("8c08"),w=n("d7b4"),x=n("235c"),k=x.enforce,S=x.get,C=s.Int8Array,T=C&&C.prototype,O=s.Uint8ClampedArray,E=O&&O.prototype,A=C&&b(C),I=T&&b(T),L=Object.prototype,j=s.TypeError,M=_("toStringTag"),P=w("TYPED_ARRAY_TAG"),$=a&&!!y&&"Opera"!==d(s.opera),R=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},N=function(t){var e=b(t);if(l(e)){var n=S(e);return n&&f(n,"TypedArrayConstructor")?n["TypedArrayConstructor"]:N(e)}},U=function(t){if(!l(t))return!1;var e=d(t);return f(D,e)||f(B,e)};for(r in D)i=s[r],o=i&&i.prototype,o?k(o)["TypedArrayConstructor"]=i:$=!1;for(r in B)i=s[r],o=i&&i.prototype,o&&(k(o)["TypedArrayConstructor"]=i);if((!$||!u(A)||A===Function.prototype)&&(A=function(){throw new j("Incorrect invocation")},$))for(r in D)s[r]&&y(s[r],A);if((!$||!I||I===L)&&(I=A.prototype,$))for(r in D)s[r]&&y(s[r].prototype,I);if($&&b(E)!==I&&y(E,I),c&&!f(I,M))for(r in R=!0,g(I,M,{configurable:!0,get:function(){return l(this)?this[P]:void 0}}),D)s[r]&&p(s[r],P,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:R&&P,aTypedArray:function(t){if(U(t))return t;throw new j("Target is not a typed array")},aTypedArrayConstructor:function(t){if(u(t)&&(!y||m(A,t)))return t;throw new j(h(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(c){if(n)for(var i in D){var o=s[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(u){}}}I[t]&&!n||v(I,t,n?e:$&&T[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(c){if(y){if(n)for(r in D)if(i=s[r],i&&f(i,t))try{delete i[t]}catch(o){}if(A[t]&&!n)return;try{return v(A,t,n?e:$&&A[t]||e)}catch(o){}}for(r in D)i=s[r],!i||i[t]&&!n||v(i,t,e)}},getTypedArrayConstructor:N,isView:function(t){if(!l(t))return!1;var e=d(t);return"DataView"===e||f(D,e)||f(B,e)},isTypedArray:U,TypedArray:A,TypedArrayPrototype:I}},"7df8":function(t,e,n){"use strict";var r=Math.round;t.exports=function(t){var e=r(t);return e<0?0:e>255?255:255&e}},"7e41":function(t,e,n){"use strict";var r=n("bb80"),i=n("af9e"),o=n("ada5"),a=Object,c=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?c(t,""):a(t)}:a},"7e87":function(t,e,n){"use strict";var r=n("bb80"),i=Error,o=r("".replace),a=function(t){return String(new i("zxcasd").stack)}(),c=/\n\s*at [^:]*:[^\n]*/,s=c.test(a);t.exports=function(t,e){if(s&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,c,"");return t}},"7e91":function(t,e,n){"use strict";var r=n("71e9"),i=n("e7e3"),o=n("60bc");t.exports=function(t,e,n){var a,c;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(s){c=!0,a=s}if("throw"===e)throw n;if(c)throw a;return i(a),n}},"7edc":function(t,e,n){"use strict";n("5c47");var r=n("71e9"),i=n("81a9"),o=n("9ad8"),a=n("af9e"),c=n("8c08"),s=n("6aca"),u=c("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=c(t),h=!a((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),p=h&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!h||!p||n){var v=/./[d],g=e(d,""[t],(function(t,e,n,i,a){var c=e.exec;return c===o||c===l.exec?h&&!a?{done:!0,value:r(v,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,d,g[1])}f&&s(l[d],"sham",!0)}},"7edd":function(t,e,n){"use strict";var r=n("85c1"),i=n("af9e"),o=n("bb80"),a=n("7ddb"),c=n("6bfa"),s=n("8c08"),u=s("iterator"),l=r.Uint8Array,f=o(c.values),d=o(c.keys),h=o(c.entries),p=a.aTypedArray,v=a.exportTypedArrayMethod,g=l&&l.prototype,m=!i((function(){g[u].call([1])})),b=!!g&&g.values&&g[u]===g.values&&"values"===g.values.name,y=function(){return f(p(this))};v("entries",(function(){return h(p(this))}),m),v("keys",(function(){return d(p(this))}),m),v("values",y,m||!b,{name:"values"}),v(u,y,m||!b,{name:"values"})},"7f28":function(t,e,n){"use strict";var r=TypeError;t.exports=function(t,e){if(t"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&r?p(r):function(){var t,e=u("iframe");return e.style.display="none",s.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(h("document.F=Object")),t.close(),t.F}():p(r);var t=a.length;while(t--)delete v["prototype"][a[t]];return v()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d["prototype"]=i(t),n=new d,d["prototype"]=null,n[f]=t):n=v(),void 0===e?n:o.f(n,e)}},"84d6":function(t,e,n){"use strict";var r=n("1099"),i=n("e34c"),o=n("1fc1");t.exports=function(t){var e=r(this),n=o(e),a=arguments.length,c=i(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,u=void 0===s?n:i(s,n);while(u>c)e[c++]=t;return e}},8557:function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").some,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},8598:function(t,e,n){"use strict";var r=n("bb80"),i=n("7992"),o=n("1c06"),a=n("338c"),c=n("37ad"),s=n("8f26"),u=Function,l=r([].concat),f=r([].join),d={},h=function(t,e,n){if(!a(d,e)){for(var r=[],i=0;in||l!==l?s*(1/0):s*l}},"884b":function(t,e,n){"use strict";var r=n("338c"),i=n("81a9"),o=n("7054"),a=n("8c08"),c=a("toPrimitive"),s=Date.prototype;r(s,c)||i(s,c,o)},8945:function(t,e,n){"use strict";var r=n("ab4a"),i=n("338c"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),s=c&&"something"===function(){}.name,u=c&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:u}},"8a29":function(t,e,n){var r=n("77cd"),i=n("fdca"),o=n("b510"),a=n("3872"),c=n("66ee"),s=a("IE_PROTO"),u=Object,l=u.prototype;t.exports=c?u.getPrototypeOf:function(t){var e=o(t);if(r(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},"8a8d":function(t,e,n){"use strict";var r=n("8bdb"),i=n("8c4f");r({target:"Object",stat:!0},{setPrototypeOf:i})},"8ae2":function(t,e,n){"use strict";var r=n("bb80"),i=n("af9e"),o=n("474f"),a=n("8e02"),c=n("6aa6"),s=n("ca99"),u=function(){},l=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(u),p=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,s(t))}catch(e){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},"8b27":function(t,e,n){"use strict";var r=n("8945").PROPER,i=n("af9e"),o=n("f072");t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},"8b3b":function(t,e,n){"use strict";var r=n("9b55");t.exports=function(t,e){return r[t]||(r[t]=e||{})}},"8bdb":function(t,e,n){"use strict";var r=n("85c1"),i=n("1ded").f,o=n("6aca"),a=n("81a9"),c=n("c9b7"),s=n("3d8a"),u=n("8466");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||c(v,{}):r[v]&&r[v].prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},"8c08":function(t,e,n){"use strict";var r=n("85c1"),i=n("8b3b"),o=n("338c"),a=n("d7b4"),c=n("af71"),s=n("4f04"),u=r.Symbol,l=i("wks"),f=s?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=c&&o(u,t)?u[t]:f("Symbol."+t)),l[t]}},"8c18":function(t,e,n){"use strict";var r=n("7ddb"),i=n("9a51").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},"8c4f":function(t,e,n){"use strict";var r=n("960c"),i=n("1c06"),o=n("862c"),a=n("a048");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(c){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},"8cb1":function(t,e,n){"use strict";var r=n("6aca"),i=n("7e87"),o=n("417a"),a=Error.captureStackTrace;t.exports=function(t,e,n,c){o&&(a?a(t,e):r(t,"stack",i(n,c)))}},"8d0b":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var c=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.config.silent=c,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function g(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var c=m(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit((function(){l.set(c,s,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=b(n,r,i),a=o.payload,c=o.options,s=o.type;return c&&c.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,i){var o=b(n,r,i),a=o.payload,c=o.options,s=o.type;c&&c.root||(s=e+s),t.commit(s,a,c)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){var r=a+n;(function(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))})(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;(function(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))})(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;(function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}})(t,r,e,u)})),r.forEachChild((function(r,o){g(t,e,n.concat(o),r,i)}))}function m(t,e){return e.reduce((function(t,e){return t[e]}),t)}function b(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){l&&t===l||(l=t, +/*! + * vuex v3.6.2 + * (c) 2021 Evan You + * @license MIT + */ +function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,i=b(t,e,n),o=i.type,a=i.payload,c=(i.options,{type:o,payload:a}),s=this._mutations[o];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(c,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=b(t,e),i=r.type,o=r.payload,a={type:i,payload:o},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var s=c.length>1?Promise.all(c.map((function(t){return t(o)}))):c[0](o);return new Promise((function(t,e){s.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return h(n,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),p(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),p(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=T(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),w=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=T(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),x=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),k=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=T(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function S(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function T(t,e,n){var r=t._modulesNamespaceMap[n];return r}function O(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function E(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function A(){var t=new Date;return" @ "+I(t.getHours(),2)+":"+I(t.getMinutes(),2)+":"+I(t.getSeconds(),2)+"."+I(t.getMilliseconds(),3)}function I(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var L={Store:f,install:y,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:k,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:x.bind(null,t),mapMutations:w.bind(null,t),mapActions:k.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var c=t.actionTransformer;void 0===c&&(c=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=i(t.state);"undefined"!==typeof l&&(s&&t.subscribe((function(t,a){var c=i(a);if(n(t,f,c)){var s=A(),u=o(t),d="mutation "+t.type+s;O(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(c)),E(l)}f=c})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=A(),i=c(t),o="action "+t.type+r;O(l,o,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),E(l)}})))}}};t.exports=L}).call(this,n("0ee4"))},"8f71":function(t,e,n){"use strict";var r=n("8bdb"),i=n("4d16").filter,o=n("a554"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"8fa1":function(t,e,n){var r=n("d10a"),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},"8ff5":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").filter,o=n("4379"),a=r.aTypedArray,c=r.exportTypedArrayMethod;c("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},9105:function(t,e,n){var r=n("56c8"),i=n("da1d");t.exports=Object.keys||function(t){return r(t,i)}},"911a":function(t,e,n){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}},"926e":function(t,e,n){"use strict";var r=n("8bdb"),i=n("af9e"),o=n("1099"),a=n("c337"),c=n("1d57"),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:s,sham:!c},{getPrototypeOf:function(t){return a(o(t))}})},"92b3":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9320:function(t,e,n){"use strict";var r=n("4c77").IteratorPrototype,i=n("849d"),o=n("92b3"),a=n("ebe8"),c=n("d459"),s=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,l,!1,!0),c[l]=s,t}},9337:function(t,e,n){(function(t){var r=n("bdbb").default;n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("4e9b"),n("114e"),n("c240"),n("5ef2"),n("23f4"),n("7d2f"),n("5c47"),n("9c4e"),n("ab80"),n("0506"),n("e838"),n("2c10"),n("a1c1"),n("0c26"),n("e966"),n("c223"),n("dc8a"),n("2797"),n("aa9c"),n("8f71"),n("fd3c"),n("dd2b"),n("64aa"),n("de6c"),n("7a76"),n("c9b5"),n("4626"),n("22b6"),n("80e3"),n("4db2"),n("f7a5"),n("18f7"),n("9db6"),n("aa77"),n("d4b5"),n("473f"),n("15d1"),n("d5c6"),n("5a56"),n("f074"),n("4100"),n("08eb"),n("844d"),n("9a2c"),n("a644"),n("a03a"),n("3efd"),n("3872e"),n("926e"),n("8a8d"),n("dc69"),n("9480"),n("4d8f"),n("7b97"),n("668a"),n("c5b7"),n("8ff5"),n("2378"),n("641a"),n("64e0"),n("cce3"),n("efba"),n("d009"),n("bd7d"),n("7edd"),n("d798"),n("f547"),n("5e54"),n("b60a"),n("8c18"),n("12973"),n("f991"),n("198e"),n("8557"),n("63b1"),n("1954"),n("1cf1"),n("5ac7"),n("af8f"),n("c976"),n("dfcf"),n("bd06"),n("dc89"),n("2425"),n("6a88"),n("7996"),n("6be7"),n("45da"),function(i,o){"object"===r(e)&&"object"===r(t)?t.exports=o(n("d3b4"),n("9b8e"),n("bcdb")):n("2c6b")([,,],o)}("undefined"!==typeof self&&self,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="393d")}({"0071":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("340d"),i=n("71a4");function o(t){var e={};for(var n in t){var o=t[n];Object(r["k"])(o)&&(e[n]=Object(i["a"])(o),delete t[n])}return e}},"0126":function(t,e,n){"use strict";n.r(e),n.d(e,"getLaunchOptionsSync",(function(){return i})),n.d(e,"getEnterOptionsSync",(function(){return o}));var r=n("3d1e");function i(){return Object(r["e"])()}function o(){return Object(r["d"])()}},"01aa":function(t,e,n){"use strict";var r=n("e32e"),i=n.n(r);i.a},"01fd":function(t,e,n){"use strict";n.r(e),n.d(e,"getTheme",(function(){return i})),n.d(e,"getBrowserInfo",(function(){return d}));var r=n("340d");function i(){if(!0!==__uniConfig.darkmode)return Object(r["m"])(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(t){return"light"}}var o=navigator.userAgent,a=/android/i.test(o),c=/iphone|ipad|ipod/i.test(o),s=o.match(/Windows NT ([\d|\d.\d]*)/i),u=/Macintosh|Mac/i.test(o),l=/Linux|X11/i.test(o),f=u&&navigator.maxTouchPoints>0;function d(){var t,e,n,r=navigator.language,d="phone";if(c){t="iOS";var h=o.match(/OS\s([\w_]+)\slike/);h&&(e=h[1].replace(/_/g,"."));var p=o.match(/\(([a-zA-Z]+);/);p&&(n=p[1])}else if(a){t="Android";var v=o.match(/Android[\s/]([\w\.]+)[;\s]/);v&&(e=v[1]);for(var g=o.match(/\((.+?)\)/),m=g?g[1].split(";"):o.split(" "),b=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],y=0;y0){n=_.split("Build")[0].trim();break}for(var w=void 0,x=0;x-1&&t.indexOf("MSIE")>-1,n=t.indexOf("Edge")>-1&&!e,r=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(e){var i=new RegExp("MSIE (\\d+\\.\\d+);");i.test(t);var o=parseFloat(RegExp.$1);return o>6?o:6}return n?-1:r?11:-1}());if("-1"!==A)E="IE";else for(var I=["Version","Firefox","Chrome","Edge{0,1}"],L=["Safari","Firefox","Chrome","Edge"],j=0;j=0&&a.splice(e,1)}}function l(e){c.push(e),t.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}Object(i["d"])(o["b"],(function(t){a.forEach((function(e){Object(r["a"])(e,t)}))})),Object(i["d"])("onUIStyleChange",(function(t){c.forEach((function(e){Object(r["a"])(e,t)}))}))}.call(this,n("418b")["default"])},"04d4":function(t,e,n){"use strict";var r=n("340d"),i=n("b435");e["a"]={props:{dashArray:{type:Array,default:function(){return[0,0]}},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},mounted:function(){var t=this,e=this.$parent;e.mapReady((function(){t.drawPolygon(),Object.keys(t.$props).forEach((function(e){t.$watch(e,(function(){t.drawPolygon()}),{deep:!0})}))}))},methods:{drawPolygon:function(){var t=this.points,e=this.strokeWidth,n=this.strokeColor,o=this.dashArray,a=this.fillColor,c=this.zIndex,s=this.$parent,u=s._maps,l=s._map,f=t.map((function(t){var e=t.latitude,n=t.longitude;return i["c"]?[n,e]:new u.LatLng(e,n)})),d=Object(r["j"])(a),h=d.r,p=d.g,v=d.b,g=d.a,m=Object(r["j"])(n),b=m.r,y=m.g,_=m.b,w=m.a,x={clickable:!0,cursor:"crosshair",editable:!1,map:l,fillColor:"",path:f,strokeColor:"",strokeDashStyle:o.some((function(t){return t>0}))?"dash":"solid",strokeWeight:e,visible:!0,zIndex:c};u.Color?(x.fillColor=new u.Color(h,p,v,g),x.strokeColor=new u.Color(b,y,_,w)):(x.fillColor="rgb(".concat(h,", ").concat(p,", ").concat(v,")"),x.fillOpacity=g,x.strokeColor="rgb(".concat(b,", ").concat(y,", ").concat(_,")"),x.strokeOpacity=w),this.polygonIns?this.polygonIns.setOptions(x):this.polygonIns=new u.Polygon(x)}},beforeDestroy:function(){this.polygonIns.setMap(null),this.polygonIns=null},render:function(){return null}}},"04ed":function(t,e,n){},"050f":function(t,e,n){"use strict";var r=Object.create(null),i=n("1fe9");i.keys().forEach((function(t){Object.assign(r,i(t))}));var o=r,a=n("b15e");e["a"]=Object.assign(Object.create(null),o,a["a"])},"0671":function(t,e,n){"use strict";var r=n("24f2"),i=n.n(r);i.a},"0680":function(t,e,n){"use strict";(function(t,e,r){var i=n("951c"),o=n.n(i),a=n("eeff");function c(t,e){for(var n=0;n.5&&e._A<=.5?o.forEach((function(t){t.color=a})):c<=.5&&e._A>.5&&o.forEach((function(t){t.color="#fff"})),e._A=c,r&&(r.style.opacity=c),n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(c,")"),l.forEach((function(t,e){var n=u[e],r=n.match(/[\d+\.]+/g);r[3]=(1-c)*(4===r.length?r[3]:1),t.backgroundColor="rgba(".concat(r,")")})))}))}else if("float"===this.type){for(var h=this.$el.querySelectorAll(".uni-btn-icon"),p=[],v=0;v-1&&this.selectionEndNumber>-1&&"number"!==t.type&&(t.selectionStart=this.selectionStartNumber,t.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var t=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==t.type&&(t.selectionEnd=t.selectionStart=this.cursorNumber)}}}}).call(this,n("31d2"))},"0c61":function(t,e,n){},"0cac":function(t,e,n){},"0db3":function(t,e,n){"use strict";(function(t){function r(e,n){return n?e?e.$el:n.$el:t.error("page is not ready")}function i(t){return t.matches||(t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;while(--n>=0&&e.item(n)!==this);return n>-1}),t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n("418b")["default"])},"0db8":function(t,e,n){"use strict";function r(t,e){for(var n=this.$children,i=n.length,o=arguments.length,a=new Array(o>2?o-2:0),c=2;c2?i-2:0),a=2;a2?n-2:0),o=2;o0&&(n.currentTime=t)}));var i=["canplay","pause","seeking","seeked","timeUpdate"];["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"].forEach((function(t){n.addEventListener(t.toLowerCase(),(function(){e._stoping&&i.indexOf(t)>=0||e._events["on".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))].forEach((function(t){t()}))}),!1)}))}return function(t,e,n){e&&i(t.prototype,e),n&&i(t,n)}(t,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((function(t){t()}))}},{key:"seek",value:function(t){this._stoping=!1,t=Number(t),"number"!==typeof t||isNaN(t)||(this._audio.currentTime=t)}},{key:"destroy",value:function(){this.stop()}}]),t}();function s(){return new c}a.forEach((function(t){c.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}})),["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"].forEach((function(t){c.prototype[t]=function(e){var n=this._events[t.replace("off","on")],r=n.indexOf(e);r>=0&&n.splice(r,1)}}))},1332:function(t,e,n){},1720:function(t,e,n){"use strict";var r=n("a187"),i=n.n(r);i.a},1867:function(t,e,n){"use strict";var r=n("9a78"),i=n.n(r);i.a},"1c3e":function(t,e,n){"use strict";n.r(e),n.d(e,"onNetworkStatusChange",(function(){return a})),n.d(e,"offNetworkStatusChange",(function(){return c}));var r=n("9131"),i=n("745a"),o=[];function a(t){o.push(t)}function c(t){if(t){var e=o.indexOf(t);e>=0&&o.splice(e,1)}}Object(i["d"])("onNetworkStatusChange",(function(t){o.forEach((function(e){Object(r["a"])(e,t)}))}))},"1d2e":function(t,e,n){"use strict";n.r(e),function(t,r){var i=n("0372");e["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var e=this,n="",o=function(t){return function(r){n=t,setTimeout((function(){e.showToast=r}),10)}};t.on("onShowToast",o("onShowToast")),t.on("onShowLoading",o("onShowLoading"));var a=function(t){return function(){if(n){var o="";if("onHideToast"===t&&"onShowToast"!==n?o=Object(i["g"])("uni.showToast.unpaired"):"onHideLoading"===t&&"onShowLoading"!==n&&(o=Object(i["g"])("uni.showLoading.unpaired")),o)return r.warn(o);n="",setTimeout((function(){e.showToast.visible=!1}),10)}}};t.on("onHidePopup",a("onHidePopup")),t.on("onHideToast",a("onHideToast")),t.on("onHideLoading",a("onHideLoading"))}}}.call(this,n("2c9f"),n("418b")["default"])},"1da9":function(t){t.exports=JSON.parse('{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.chooseFile.notUserActivation":"文件选择器对话框只能在由用户激活时显示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.startSoterAuthentication.waitingContent":"无法识别","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送","uni.chooseLocation.search":"搜索地点","uni.chooseLocation.cancel":"取消"}')},"1daa":function(t,e,n){"use strict";function r(t,e,n,r){var i,o=document.createElement("script"),a=e.callback||"callback",c="__callback"+Date.now()+Math.random().toString().slice(2),s=e.timeout||3e4;function u(){clearTimeout(i),delete window[c],o.remove()}window[c]=function(t){"function"===typeof n&&n(t),u()},o.onerror=function(){"function"===typeof r&&r(),u()},i=setTimeout((function(){"function"===typeof r&&r(),u()}),s),o.src=t+(t.indexOf("?")>=0?"&":"?")+a+"="+c,document.body.appendChild(o)}n.d(e,"a",(function(){return r}))},"1efd":function(t,e,n){"use strict";n.r(e),n.d(e,"getWindowInfo",(function(){return a}));var r=n("8d7d"),i=n("f621"),o=n.n(i);function a(){var t=window.screen,e=window.devicePixelRatio,n=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,i=n&&90===Math.abs(window.orientation),a=n?Math[i?"max":"min"](t.width,t.height):t.width,c=n?Math[i?"min":"max"](t.height,t.width):t.height,s=Math.min(window.innerWidth,document.documentElement.clientWidth,a)||a,u=window.innerHeight,l=o.a.top,f={left:o.a.left,right:s-o.a.right,top:o.a.top,bottom:u-o.a.bottom,width:s-o.a.left-o.a.right,height:u-o.a.top-o.a.bottom},d=Object(r["a"])(),h=d.top,p=d.bottom;return u-=h,u-=p,{windowTop:h,windowBottom:p,windowWidth:s,windowHeight:u,pixelRatio:e,screenWidth:a,screenHeight:c,statusBarHeight:l,safeArea:f,safeAreaInsets:{top:o.a.top,right:o.a.right,bottom:o.a.bottom,left:o.a.left},screenTop:c-u}}},"1f8a":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i={name:"Radio",mixins:[r["a"],r["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007AFF"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{radioStyle:function(){if(this.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};var t={};return this.radioChecked?(t.color=this.iconColor,t.backgroundColor=this.activeBackgroundColor||this.color,t.borderColor=this.activeBorderColor||t.backgroundColor):(this.borderColor&&(t.borderColor=this.borderColor),this.backgroundColor&&(t.backgroundColor=this.backgroundColor)),t}},watch:{checked:function(t){this.radioChecked=t},value:function(t){this.radioValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",t,this))},_resetFormData:function(){this.radioChecked=this.min}}},o=i,a=(n("9854"),n("8844")),c=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio",t._g({attrs:{disabled:t.disabled},on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":t.radioChecked?t.radioStyle.borderColor:t.activeBorderColor}},[n("div",{staticClass:"uni-radio-input",class:{"uni-radio-input-checked":t.radioChecked,"uni-radio-input-disabled":t.disabled},style:t.radioStyle}),t._t("default")],2)])}),[],!1,null,null,null);e["default"]=c.exports},"1fdf":function(t,e,n){},"1fe9":function(t,e,n){var r={"./base/base64.js":"78b7","./base/can-i-use.js":"9bd9","./base/interceptor.js":"c9da","./base/upx2px.js":"c165","./context/audio.js":"e748","./context/background-audio.js":"86d3","./context/canvas.js":"6352","./context/create-map-context.js":"ed2c","./context/create-video-context.js":"e68a","./context/editor.js":"5883","./context/inner-audio.js":"beab","./device/network.js":"1c3e","./device/theme.js":"0426","./keyboard/get-selected-text-range.js":"7958","./keyboard/keyboard.js":"7068","./media/preview-image.js":"7317","./media/recorder.js":"d91a","./network/download-file.js":"cf97","./network/request.js":"dc02","./network/socket.js":"32a0","./network/update.js":"c4cd","./network/upload-file.js":"bceb","./plugin/__f__.js":"61a5","./plugin/push.js":"9f56","./ui/create-animation.js":"a2f6","./ui/create-intersection-observer.js":"a6f2","./ui/create-media-query-observer.js":"a874","./ui/create-selector-query.js":"8379","./ui/load-font-face.js":"fdcd","./ui/locale.js":"ebda","./ui/page-scroll-to.js":"3313","./ui/set-page-meta.js":"be92","./ui/tab-bar.js":"e87f","./ui/window.js":"ccdf"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="1fe9"},2066:function(t,e,n){"use strict";n.r(e);var r={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var t=this.$el;t.style.position="absolute",t.style.width="100%",t.style.height="100%";var e=this.$vnode._callbacks;e&&e.forEach((function(t){t()}))}},i=r,o=(n("95bd"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-swiper-item",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=a.exports},"211f":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"uploadFile",(function(){return c}));var r=n("bdee");function i(t,e){for(var n=0;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function c(e,n){var i=e.url,o=e.file,c=e.filePath,s=e.name,u=e.files,l=e.header,f=e.formData,d=e.timeout,h=void 0===d?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:d,p=t,v=p.invokeCallbackHandler,g=new a(null,n);return Array.isArray(u)&&u.length||(u=[{name:s,file:o,uri:c}]),Promise.all(u.map((function(t){var e=t.file,n=t.uri;return e instanceof Blob?Promise.resolve(Object(r["a"])(e)):Object(r["f"])(n)}))).then((function(t){var e,r=new XMLHttpRequest,o=new FormData;Object.keys(f).forEach((function(t){o.append(t,f[t])})),Object.values(u).forEach((function(e,n){var r=e.name,i=t[n];o.append(r||"file",i,i.name||"file-".concat(Date.now()))})),r.open("POST",i),Object.keys(l).forEach((function(t){r.setRequestHeader(t,l[t])})),r.upload.onprogress=function(t){g._callbacks.forEach((function(e){var n=t.loaded,r=t.total,i=Math.round(n/r*100);e({progress:i,totalBytesSent:n,totalBytesExpectedToSend:r})}))},r.onerror=function(){clearTimeout(e),v(n,{errMsg:"uploadFile:fail"})},r.onabort=function(){clearTimeout(e),v(n,{errMsg:"uploadFile:fail abort"})},r.onload=function(){clearTimeout(e);var t=r.status;v(n,{errMsg:"uploadFile:ok",statusCode:t,data:r.responseText||r.response})},g._isAbort?v(n,{errMsg:"uploadFile:fail abort"}):(e=setTimeout((function(){r.upload.onprogress=r.onload=r.onabort=r.onerror=null,g.abort(),v(n,{errMsg:"uploadFile:fail timeout"})}),h),r.send(o),g._xhr=r)})).catch((function(){setTimeout((function(){v(n,{errMsg:"uploadFile:fail file error"})}),0)})),g}}.call(this,n("2c9f"))},"21f5":function(t,e,n){},2214:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"c",(function(){return S}));var r=n("340d"),i=n("71a4"),o=n("d334"),a=n("0071"),c=n("8b82"),s=n("41cb");function u(t,e,n){var r="".concat(e,":fail ").concat(t);if(-1===n)throw new Error(r);return"number"===typeof n&&y(n,{errMsg:r}),!1}var l=[{name:"callback",type:Function,required:!0}],f=["beforeValidate","beforeAll","beforeSuccess"];function d(t,e,n){var i=c["a"][t];if(!i&&Object(o["a"])(t)&&(i=l),i){if(Array.isArray(i)&&Array.isArray(e)){var a=Object.create(null),d=Object.create(null),h=e.length;i.forEach((function(t,n){a[t.name]=t,h>n&&(d[t.name]=e[n])})),i=a,e=d}if(Object(r["k"])(i.beforeValidate)){var p=i.beforeValidate(e);if(p)return u(p,t,n)}for(var v=Object.keys(i),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(r["l"])(e))return{params:e};e=Object.assign({},e);var o=Object(a["a"])(e),c=o.success,s=o.fail,u=o.cancel,l=o.complete,f=Object(r["k"])(c),d=Object(r["k"])(s),v=Object(r["k"])(u),g=Object(r["k"])(l);if(!f&&!d&&!v&&!g)return{params:e};var m={};for(var b in n){var y=n[b];Object(r["k"])(y)&&(m[b]=Object(i["b"])(y))}var _=m.beforeSuccess,w=m.afterSuccess,x=m.beforeFail,k=m.afterFail,S=m.beforeCancel,C=m.afterCancel,T=m.beforeAll,O=m.afterAll,E=h++,A="api."+t+"."+E,I=function(n){if(n.errMsg=n.errMsg||t+":ok",-1!==n.errMsg.indexOf(":ok"))n.errMsg=t+":ok";else if(-1!==n.errMsg.indexOf(":cancel"))n.errMsg=t+":cancel";else if(-1!==n.errMsg.indexOf(":fail")){var i="",o=n.errMsg.indexOf(" ");o>-1&&(i=n.errMsg.substr(o)),n.errMsg=t+":fail"+i}Object(r["k"])(T)&&T(n);var a=n.errMsg;0===a.indexOf(t+":ok")?(Object(r["k"])(_)&&_(n,e),f&&c(n),Object(r["k"])(w)&&w(n)):0===a.indexOf(t+":cancel")?(n.errMsg=n.errMsg.replace(t+":cancel",t+":fail cancel"),d&&s(n),Object(r["k"])(S)&&S(n),v&&u(n),Object(r["k"])(C)&&C(n)):0===a.indexOf(t+":fail")&&(Object(r["k"])(x)&&x(n),d&&s(n),Object(r["k"])(k)&&k(n)),g&&l(n),Object(r["k"])(O)&&O(n)};return p[E]={name:A,callback:I},{params:e,callbackId:E}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=m(t,e,n),o=i.params,a=i.callbackId;return Object(r["l"])(o)&&!d(t,o,a)?{params:o,callbackId:!1}:{params:o,callbackId:a}}function y(t,e,n){if("number"===typeof t){var r=p[t];if(r)return r.keepAlive||delete p[t],r.callback(e,n)}return e}function _(t){delete p[t]}function w(e){return function(n){t.error("API `"+e+"` is not yet implemented")}}function x(t,e){var n=c["a"][t];n&&(Object(r["k"])(n.beforeAll)&&(e.beforeAll=n.beforeAll),Object(r["k"])(n.beforeSuccess)&&(e.beforeSuccess=n.beforeSuccess))}var k=["getPushClientId","onPushMessage","offPushMessage"];function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k.indexOf(t)>-1||!Object(r["k"])(e)?e:(x(t,n),function(){for(var i=arguments.length,a=new Array(i),c=0;c0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],i=a();if(!i)return n&&t.error("app is not ready"),[];var o=i.$children[0];if(o&&o.$children.length){var c=o.$children.find((function(t){return"TabBar"===t.$options.name})),s=o.$children.find((function(t){return"Layout"===t.$options.name}));s&&(o=s),o.$children.forEach((function(t){if(c!==t&&t.$children.length&&"Page"===t.$children[0].$options.name&&t.$children[0].$slots.page){var n=t.$children[0].$children.find((function(t){return"PageBody"===t.$options.name})),o=n&&n.$children.find((function(t){return!!t.$page}));if(o){var a=!0;!e&&c&&o.$page&&o.$page.meta.isTabBar&&(i.$route.meta&&i.$route.meta.isTabBar?i.$route.path!==o.$page.path&&(a=!1):c.__path__!==o.$page.path&&(a=!1)),a&&r.push(o)}}}))}var u=r.length;if(u>1){var l=r[u-1];l.$page.path!==i.$route.path&&r.splice(u-1,1)}return r}function s(t,e,n){o=e,o.$vm=e,o.globalData=o.$options.globalData||{},Object(r["d"])(t,o),Object(i["a"])(o,n)}}).call(this,n("418b")["default"])},"27d2":function(t,e,n){},"283d":function(t,e,n){"use strict";var r=n("b62a"),i=n.n(r);i.a},"286e":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getFileInfo",(function(){return a}));var r=n("bdee"),i=t,o=i.invokeCallbackHandler;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.filePath,n=arguments.length>1?arguments[1]:void 0;Object(r["f"])(e).then((function(t){o(n,{errMsg:"getFileInfo:ok",size:t.size})})).catch((function(t){o(n,{errMsg:"getFileInfo:fail "+t.message})}))}}.call(this,n("2c9f"))},"2a78":function(t,e,n){"use strict";n.r(e);var r=n("9f62"),i=r["a"],o=(n("d638"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-label",t._g({class:{"uni-label-pointer":t.pointer},on:{click:t._onClick}},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=a.exports},"2ace":function(t,e,n){"use strict";(function(t){var r=n("340d");e["a"]={props:{id:{type:String,default:""}},created:function(){var t=this;this._addListeners(this.id),this.$watch("id",(function(e,n){t._removeListeners(n,!0),t._addListeners(e,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(e,n){var i=this;if(!n||e){var o=this.$options.listeners;Object(r["l"])(o)&&Object.keys(o).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&t.on("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]]):0===r.indexOf("@")?i.$on("uni-".concat(r.substr(1)),i[o[r]]):0===r.indexOf("uni-")?t.on(r,i[o[r]]):e&&t.on("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]])}))}},_removeListeners:function(e,n){var i=this;if(!n||e){var o=this.$options.listeners;Object(r["l"])(o)&&Object.keys(o).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&t.off("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]]):0===r.indexOf("@")?i.$off("uni-".concat(r.substr(1)),i[o[r]]):0===r.indexOf("uni-")?t.off(r,i[o[r]]):e&&t.off("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]])}))}}}}}).call(this,n("31d2"))},"2be0":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("340d"),i=n("909e");function o(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function a(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var c={name:"uni://form-field",init:function(t,e){e.constructor.options.props&&e.constructor.options.props.name&&e.constructor.options.props.value||(e.constructor.options.props||(e.constructor.options.props={}),e.constructor.options.props.name||(e.constructor.options.props.name=t.props.name={type:String}),e.constructor.options.props.value||(e.constructor.options.props.value=t.props.value={type:null})),t.propsData||(t.propsData={});var n=e.$vnode;if(n&&n.data&&n.data.attrs&&(Object(r["i"])(n.data.attrs,"name")&&(t.propsData.name=n.data.attrs.name),Object(r["i"])(n.data.attrs,"value")&&(t.propsData.value=n.data.attrs.value)),!e.constructor.options.methods||!e.constructor.options.methods._getFormData){e.constructor.options.methods||(e.constructor.options.methods={}),t.methods||(t.methods={});var c={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(e.constructor.options.methods,c),Object.assign(t.methods,c),Object.assign(e.constructor.options.methods,i["a"].methods),Object.assign(t.methods,i["a"].methods);var s=t.created;e.constructor.options.created=t.created=s?[].concat(o,s):[o];var u=t.beforeDestroy;e.constructor.options.beforeDestroy=t.beforeDestroy=u?[].concat(a,u):[a]}}};var s=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},c.name,c);function u(t,e){t.behaviors.forEach((function(n){var r=s[n];r&&r.init(t,e)}))}},"2c9f":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return s})),n.d(e,"off",(function(){return u})),n.d(e,"once",(function(){return l})),n.d(e,"emit",(function(){return f})),n.d(e,"subscribe",(function(){return d})),n.d(e,"unsubscribe",(function(){return h})),n.d(e,"subscribeHandler",(function(){return p}));var r=n("951c"),i=n.n(r),o=n("2214");n.d(e,"invokeCallbackHandler",(function(){return o["a"]})),n.d(e,"removeCallbackHandler",(function(){return o["b"]}));var a=n("89ec");n.d(e,"publishHandler",(function(){return a["b"]}));var c=new i.a,s=c.$on.bind(c),u=c.$off.bind(c),l=c.$once.bind(c),f=c.$emit.bind(c);function d(t,e){return s("view."+t,e)}function h(t,e){return u("view."+t,e)}function p(t,e,n){return f("view."+t,e,n)}},"2d10":function(t,e,n){},"2daf":function(t,e,n){"use strict";n.r(e),function(t){function r(){return window.location.protocol+"//"+window.location.host}function i(e,n){var i=e.src,o=t,a=o.invokeCallbackHandler,c=new Image,s=i;c.onload=function(){a(n,{errMsg:"getImageInfo:ok",width:c.naturalWidth,height:c.naturalHeight,path:0===s.indexOf("/")?r()+s:s})},c.onerror=function(t){a(n,{errMsg:"getImageInfo:fail"})},c.src=i}n.d(e,"getImageInfo",(function(){return i}))}.call(this,n("2c9f"))},"2eb1":function(t,e,n){"use strict";var r=n("0c61"),i=n.n(r);i.a},"2f5c":function(t,e,n){"use strict";n.r(e),n.d(e,"TEMP_PATH",(function(){return r}));var r=""},"31d2":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return p})),n.d(e,"off",(function(){return v})),n.d(e,"once",(function(){return g})),n.d(e,"emit",(function(){return m})),n.d(e,"subscribe",(function(){return b})),n.d(e,"unsubscribe",(function(){return y})),n.d(e,"subscribeHandler",(function(){return _})),n.d(e,"publishHandler",(function(){return d["a"]}));var r=n("951c"),i=n.n(r);var o=n("49c2"),a=n("d661"),c=n("c08f"),s={setPageMeta:function(t){var e=t.pageStyle,n=t.rootFontSize,r=document.querySelector("uni-page-body")||document.body;r.setAttribute("style",e),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)},requestComponentInfo:o["a"],requestComponentObserver:a["b"],destroyComponentObserver:a["a"],requestMediaQueryObserver:c["b"],destroyMediaQueryObserver:c["a"]},u=n("493f"),l=n("fa95"),f=n("83ee");var d=n("a805"),h=new i.a,p=h.$on.bind(h),v=h.$off.bind(h),g=h.$once.bind(h),m=h.$emit.bind(h);function b(t,e){return p("service."+t,e)}function y(t,e){return v("service."+t,e)}function _(t,e,n){m("service."+t,e,n)}(function(t){Object.keys(s).forEach((function(e){t(e,s[e])})),t("pageScrollTo",u["c"]),t("loadFontFace",l["a"]),Object(f["a"])(t)})(b)},"32a0":function(t,e,n){"use strict";n.r(e),n.d(e,"connectSocket",(function(){return l})),n.d(e,"sendSocketMessage",(function(){return f})),n.d(e,"closeSocket",(function(){return d})),n.d(e,"onSocketOpen",(function(){return h})),n.d(e,"onSocketError",(function(){return p})),n.d(e,"onSocketMessage",(function(){return v})),n.d(e,"onSocketClose",(function(){return g}));var r=n("9131"),i=n("745a");function o(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.success,n=t.fail,r=t.complete,i=arguments.length>1?arguments[1]:void 0,o={errMsg:i};/:ok$/.test(i)?"function"===typeof e&&e(o):"function"===typeof n&&n(o),"function"===typeof r&&r(o)}}]),t}(),c=Object.create(null),s=[],u=Object.create(null);function l(t,e){var n=Object(i["c"])("createSocketTask",t),o=n.socketTaskId,u=new a(o);return c[o]=u,s.push(u),setTimeout((function(){Object(r["a"])(e,{errMsg:"connectSocket:ok"})}),0),u}function f(t,e){var n=s[0];if(n&&n.readyState===n.OPEN)return Object(i["c"])("operateSocketTask",Object.assign({},t,{operationType:"send",socketTaskId:n.id}));Object(r["a"])(e,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})}function d(t,e){var n=s[0];if(n)return n.readyState=n.CLOSING,Object(i["c"])("operateSocketTask",Object.assign({},t,{operationType:"close",socketTaskId:n.id}));Object(r["a"])(e,{errMsg:"closeSocket:fail WebSocket is not connected"})}function h(t){u.open=t}function p(t){u.error=t}function v(t){u.message=t}function g(t){u.close=t}Object(i["d"])("onSocketTaskStateChange",(function(t){var e=t.socketTaskId,n=t.state,i=t.data,o=t.code,a=t.reason,l=(t.errMsg,c[e]);if(l){var f="message"===n?{data:i}:"close"===n?{code:o,reason:a}:{};if("open"===n&&(l.readyState=l.OPEN),l===s[0]&&u[n]&&Object(r["a"])(u[n],f),"error"===n||"close"===n){l.readyState=l.CLOSED,delete c[e];var d=s.indexOf(l);d>=0&&s.splice(d,1)}l._callbacks[n].forEach((function(t){"function"===typeof t&&t(f)}))}}))},3313:function(t,e,n){"use strict";n.r(e),function(t){function r(e){var n=getCurrentPages();return n.length&&t.publishHandler("pageScrollTo",e,n[n.length-1].$page.id),{}}n.d(e,"pageScrollTo",(function(){return r}))}.call(this,n("2c9f"))},"33b2":function(t,e,n){"use strict";function r(t){var e=t.service;return{service:e,provider:[]}}n.r(e),n.d(e,"getProvider",(function(){return r}))},"33e2":function(t,e,n){"use strict";n.r(e);var r=n("44f1"),i=n.n(r),o=n("909e");function a(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,i)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;nthis.CACHE_TIME}}]),t}();l(f,"IC",0),l(f,"IS",0),Object.assign(f.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var d=function(){function t(){c(this,t),this._instance=null,this._adConfig=null,this._guid=null}return u(t,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new t,this._instance._init()),this._instance}}]),u(t,[{key:"_init",value:function(){var t=this._getConfig();null!==t&&t.guid?this._guid=t.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}},{key:"get",value:function(t){this._process(Object.assign(t,{d:location.hostname,i:this._guid}))}},{key:"_process",value:function(t){uni.request({url:this.URL,method:"GET",data:t,dataType:"json",success:function(){}})}},{key:"_newGUID",value:function(){for(var t="",e="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",n=0;nparseInt(this.widescreenWidth),this._loadData(),d.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:f.IC,is:f.IS})},beforeDestroy:function(){this._clearCheckTimer(),this.$refs.container.innerHTML="",this._shanhuAd&&delete this._shanhuAd},methods:{_onhandle:function(t){this._report(41)},_reset:function(){this._pd={},this._pl=[],this._pi=0,this._clearCheckTimer(),this.$refs.container.innerHTML="",this._isReady=!1},_loadData:function(t){var e=this;this._reset();var n=t||this.adpid,r=this._isWidescreen&&this.adpidWidescreen||n;f.instance.get(r,(function(t,n){e._ab=t,e._pl=n,e._renderAd()}),(function(t){e.$trigger("error",{},t)}))},_renderAd:function(){var t=this;if(!(this._pi>this._pl.length-1)){var e=this._pl[this._pi],n=this._ab[e.a1][e.t],r=n.script;this._currentChannel=e.a1;var i=this._randomId(),o=this._createView(i);"10023"===e.a1?h.instance.load(e.t,r,(function(){t._renderShanhu(i,e)}),(function(e){t.$trigger("error",{},e)})):"10010"===e.a1?h.instance.load(e.t,r,(function(){t._renderBaidu(i,e.a2)}),(function(e){t.$trigger("error",{},e)})):"10012"===e.a1?this._renderScript(o,r):h.instance.load(e.t,r,(function(){t._renderAdView(i,r.s,e)}),(function(e){t.$trigger("error",{},e)}))}},_createView:function(t){var e=document.createElement("div");return e.setAttribute("id",t),e.setAttribute("class",t),this.$refs.container.innerHTML="",this.$refs.container.append(e),e},_renderScript:function(t,e){var n=document.createElement("script");for(var r in e)n.setAttribute(r,e[r]);t.appendChild(n),this._startCheckTimer()},_renderBaidu:function(t,e){(window.slotbydup=window.slotbydup||[]).push({id:e,container:t,async:!0}),this._startCheckTimer()},_renderAdView:function(t,e,n){var r=window;e.split(".").reduce((function(t,e){return r=t,t[e]}),window).bind(r)(n.a2,t,2),this._startCheckTimer()},_renderShanhu:function(t,e){var n=this,r=new window.CoralAdv({app_id:e.a2,placement_id:e.a3,type:e.a4,display_type:e.a5,container_id:t,count:e.a6||1});r.ready().then(function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function c(t){a(o,r,i,c,s,"next",t)}function s(t){a(o,r,i,c,s,"throw",t)}c(void 0)}))}}(i.a.mark((function t(e){return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:0===e.ret?n.$trigger("load",{},{}):n.$trigger("error",{},e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){n.$trigger("error",{},t)})),this._startCheckTimer()},_renderNext:function(){this._pi>=this._pl.length-1||(this._pi++,this._renderAd())},_checkRender:function(){var t=this.$refs.container.children.length>0&&this.$refs.container.clientHeight>40;return t&&this._report(40,this._currentChannel),t},_startCheckTimer:function(){var t=this;this._clearCheckTimer(),this._checkTimer=setInterval((function(){if(t._checkTimerCount++,t._checkTimerCount>=5)return t._clearCheckTimer(),void t._renderNext();t._checkRender()&&t._clearCheckTimer()}),1e3)},_clearCheckTimer:function(){this._checkTimerCount=0,null!=this._checkTimer&&(window.clearInterval(this._checkTimer),this._checkTimer=null)},_report:function(t,e){var n={h:__uniConfig.compilerVersion,a:this.adpid,at:t};e&&(n.t=e),d.instance.get(n)},_randomId:function(){for(var t="",e=0;e<4;e++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return"_u"+t}}},v=p,g=(n("c885"),n("8844")),m=Object(g["a"])(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-ad",t._g(t._b({},"uni-ad",t.attrs,!1),t.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container",on:{click:t._onhandle}})])}),[],!1,null,null,null);e["default"]=m.exports},"340d":function(t,e,n){"use strict";n.d(e,"t",(function(){return o})),n.d(e,"k",(function(){return p})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return m})),n.d(e,"i",(function(){return b})),n.d(e,"v",(function(){return y})),n.d(e,"p",(function(){return w})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return S})),n.d(e,"r",(function(){return C})),n.d(e,"h",(function(){return T})),n.d(e,"g",(function(){return O})),n.d(e,"x",(function(){return E})),n.d(e,"d",(function(){return A})),n.d(e,"u",(function(){return I})),n.d(e,"n",(function(){return L})),n.d(e,"f",(function(){return j})),n.d(e,"w",(function(){return l})),n.d(e,"s",(function(){return M})),n.d(e,"j",(function(){return R})),n.d(e,"e",(function(){return B})),n.d(e,"q",(function(){return N})),n.d(e,"a",(function(){return W})),n.d(e,"o",(function(){return G}));var i,o=!1;try{var a={};Object.defineProperty(a,"passive",{get:function(){o=!0}}),window.addEventListener("test-passive",null,a)}catch(X){}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function u(){var t,e=uni.getStorageSync("uni_id_token")||"",n=e.split(".");if(!e||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(t){return decodeURIComponent(i(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function l(t){t.prototype.uniIDHasRole=function(t){var e=u(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=u(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=u(),e=t.tokenExpired;return e>Date.now()}}i="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!s.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var f=Object.prototype.toString,d=Object.prototype.hasOwnProperty,h=function(t){return t>9?t:"0"+t};function p(t){return"function"===typeof t}function v(t){return"string"===typeof t}Array.isArray,Object.assign;var g=v;function m(t){return"[object Object]"===f.call(t)}function b(t,e){return d.call(t,e)}function y(t){return f.call(t).slice(8,-1)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function w(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){if(t){for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function O(t){var e=t.date,n=void 0===e?new Date:e,r=t.mode,i=void 0===r?"date":r;return"time"===i?h(n.getHours())+":"+h(n.getMinutes()):n.getFullYear()+"-"+h(n.getMonth()+1)+"-"+h(n.getDate())}function E(t,e){for(var n in e)t.style[n]=e[n]}function A(t,e){var n,r=function(){var r=arguments,i=this;clearTimeout(n);var o=function(){return t.apply(i,r)};n=setTimeout(o,e)};return r.cancel=function(){clearTimeout(n)},r}function I(t,e){var n,r,i=0,o=function(){for(var o=this,a=arguments.length,c=new Array(a),s=0;st.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach((function(n){try{e[n]=D(t[n])}catch(X){e[n]=t[n]}})),e}function N(t){if("function"===typeof t)return window.plus?t():void document.addEventListener("plusready",t)}var U=0,V={};function F(t,e){var n=V[t]||{};delete V[t];var r=e.errMsg||"";new RegExp("\\:\\s*fail").test(r)?n.fail&&n.fail(e):n.success&&n.success(e),n.complete&&n.complete(e)}var W={warp:function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(U++);V[n]={success:e.success,fail:e.fail,complete:e.complete};var r=Object.assign({},e),i=t.bind(this)(r,n);i&&F(n,i)}},invoke:F};function q(t){return q="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},q(t)}var z={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function H(t,e,n){if(g(e)&&e.startsWith("@")){var r=e.replace("@",""),i=t[r]||e;switch(n){case"titleColor":i=function(t){return"black"===t?"#000000":"#ffffff"}(i);break;case"borderStyle":i=function(t){return t&&t in z?z[t]:t}(i);break;default:break}return i}return e}function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"light",r=e[n],i={};return"undefined"===typeof r?t:(Object.keys(t).forEach((function(o){var a=t[o];i[o]=function(){return m(a)?G(a,e,n):Array.isArray(a)?a.map((function(t){return"object"===q(t)?G(t,e,n):H(r,t)})):H(r,a,o)}()})),i)}},3596:function(t,e,n){},"36a6":function(t,e,n){},"383e":function(t,e,n){"use strict";n.r(e);var r=n("39bd"),i=n("340d");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;ethis.displayMultipleItemsNumber},circularEnabled:function(){return this.circular&&this.swiperEnabled}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(t){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(t){this._currentCheck()},currentSync:function(t,e){this._currentChanged(t,e),this.$emit("update:current",t),this._setNavigationState()},currentItemId:function(t){this._currentCheck()},currentItemIdSync:function(t){this.$emit("update:currentItemId",t)},displayMultipleItemsNumber:function(){this._resetLayout()},navigation:{immediate:!0,handler:function(t){this.isNavigationAuto="auto"===t,this.hideNavigation=!0!==t||this.isNavigationAuto,this._navigationSwiperAddMouseEvent()}},items:function(){this._setNavigationState()},swiperEnabled:function(t){t||(this.prevDisabled=!0,this.nextDisabled=!0,this.isNavigationAuto&&(this.hideNavigation=!0))}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var t=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return t.autoplay&&!t.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout),this._navigationSwiperAddMouseEvent()},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=-1;if(this.currentItemId)for(var e=0,n=this.items;ei/2?1:0)}var o=this.items[t];o&&this._itemReady(o,(function(){var t=n.currentItemIdSync=o.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:t,source:r})}))},_scheduleAutoplay:function(){var t=this;this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout((function e(){t._timer=null,t.currentChangeSource="autoplay",t.circularEnabled?t.currentSync=t._normalizeCurrentValue(t.currentSync+1):t.currentSync=t.currentSync+t.displayMultipleItemsNumbere-this.displayMultipleItemsNumber)return e-this.displayMultipleItemsNumber;return n},_upx2px:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")})),t||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var t=this.items,e=0;e0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var i=this._viewportPosition;this._viewportPosition=-2;var o=this.currentSync;o>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(i+o-this._contentTrackViewport),this._contentTrackViewport=o):(this._updateViewport(o),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(t){if(!this._invalid)for(var e=this.items,n=e.length,r=t+this.displayMultipleItemsNumber,i=0;i=this.items.length&&(t-=this.items.length),t=this._transitionStart%1>.5||this._transitionStart<0?t-1:t,this.$trigger("transition",{},{dx:this.vertical?0:t*i.offsetWidth,dy:this.vertical?t*i.offsetHeight:0})},_animateFrameFuncProto:function(){var t=this;if(this._animating){var e=this._animating,n=e.toPos,r=e.acc,i=e.endTime,o=e.source,a=i-Date.now();if(a<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var c=this.items[this.currentSync];c&&this._itemReady(c,(function(){var e=c.componentInstance.itemId||"";t.$trigger("animationfinish",{},{current:t.currentSync,currentItemId:e,source:o})}))}else{var s=r*a*a/2,u=n+s;this._updateViewport(u),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(t,e,n){this._cancelViewportAnimation();var r=this.durationNumber,i=this.items.length,o=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;ot;)o-=i}else if(n>0){for(;o>t;)o-=i;for(;o+it;)o-=i;o+i-ti)&&(r<0?r=-o(-r):r>i&&(r=i+o(r-i)),e._contentTrackSpeed=0),e._updateViewport(r)}var c=this._contentTrackT-n||1;this.vertical?a(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/c):a(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/c)},_handleTrackEnd:function(t){this.userTracking=!1;var e=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!t&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*e);var r=this._normalizeCurrentValue(this._viewportPosition+n);t?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=r,this._animateViewport(r,"touch",0!==n?n:0===r&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(t){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===t.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===t.detail.state)return this._handleTrackEnd(!1);if("cancel"===t.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var e=Math.abs(t.detail.dx),n=Math.abs(t.detail.dy);if((e>=n&&this.vertical||e<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(t.detail),!1}}},_onSwiperDotClick:function(t){this._animateViewport(this.currentSync=t,this.currentChangeSource="click",this.circularEnabled?1:0)},_navigationClick:function(t,e,n){if(t.stopPropagation(),!n){var r=this.items.length,i=this.currentSync;switch(e){case"prev":i--,i<0&&this.circularEnabled&&(i=r-1);break;case"next":i++,i>=r&&this.circularEnabled&&(i=0);break}this._onSwiperDotClick(i)}},_navigationMouseMove:function(t){var e=this;clearTimeout(this.hideNavigationTimer);var n,r=t.clientX,i=t.clientY,o=this.$refs.slidesWrapper.getBoundingClientRect(),a=o.left,c=o.right,s=o.top,u=o.bottom,l=o.width,f=o.height;n=this.vertical?!(i-s=t}},render:function(t){var e=this,n=[],r=[];this.$slots.default&&Object(i["f"])(this.$slots.default,t).forEach((function(t){t.componentOptions&&"v-uni-swiper-item"===t.componentOptions.tag&&r.push(t)}));for(var o=function(r,i){var o=e.currentSync;n.push(t("div",{on:{click:function(){return e._onSwiperDotClick(r)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":r=o||r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t[e])&&t[e].length}function c(t){var e={},n=t.__vue__;function i(t,n){var i=t.$attrs;for(var o in i)if(o.startsWith("data-")){var a=Object(r["b"])(o.substr(5).toLowerCase()),c=i[o];e[a]=n?c:e[a]||c}}if(n){var o=n;while(o&&o.$el===t)i(o),o=o.$children[0];var a=n.$parent;while(a&&a.$el===t)i(a,!0),a=a.$parent}else e=Object.assign({},t.dataset,t.__uniDataset);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t)),n=Object.keys(e),r=n.length;if(r)for(var i=0;i=0&&i.splice(e,1)}i.length||a()}}.call(this,n("2c9f"))},"39bd":function(t,e,n){"use strict";var r=function(t,e,n,r){t.addEventListener(e,(function(t){"function"===typeof n&&!1===n(t)&&(t.preventDefault(),t.stopPropagation())}),{capture:r,passive:!1})};e["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(t,e,n){var i,o,a,c=this,s=this,u=0,l=0,f=0,d=0,h=function(t,n,r,i){if(!1===s[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:n,x:r,y:i,dx:r-u,dy:i-l,ddx:r-f,ddy:i-d,timeStamp:t.timeStamp}}))return!1},p=null;r(t,"touchstart",(function(t){if(o=!0,1===t.touches.length&&!p)return p=t,u=f=t.touches[0].pageX,l=d=t.touches[0].pageY,h(t,"start",u,l)})),r(t,"mousedown",(function(t){if(a=!0,!o&&!p)return p=t,u=f=t.pageX,l=d=t.pageY,h(t,"start",u,l)})),r(t,"touchmove",(function(t){if(1===t.touches.length&&p){var e=h(t,"move",t.touches[0].pageX,t.touches[0].pageY);return f=t.touches[0].pageX,d=t.touches[0].pageY,e}}));var v=this.__clickEventListener=function(t){t.preventDefault(),t.stopPropagation()},g=this.__mouseMoveEventListener=function(t){if(!o&&a&&p){!i&&(Math.abs(f-u)>2||Math.abs(d-l)>2)&&(document.addEventListener("click",v,!0),i=!0);var e=h(t,"move",t.pageX,t.pageY);return f=t.pageX,d=t.pageY,e}};document.addEventListener("mousemove",g),r(t,"touchend",(function(t){if(0===t.touches.length&&p)return o=!1,p=null,h(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)}));var m=this.__mouseUpEventListener=function(t){if(a=!1,!o&&p)return i&&setTimeout((function(){document.removeEventListener("click",c.__clickEventListener,!0),i=!1}),0),p=null,h(t,"end",t.pageX,t.pageY)};document.addEventListener("mouseup",m),r(t,"touchcancel",(function(t){if(p){o=!1;var e=p;return p=null,h(t,n?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}}))}}}},"3a3e":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i={name:"RadioGroup",mixins:[r["a"],r["f"]],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t,e){var n=this.radioList.indexOf(e);this._resetRadioGroupValue(n,!0),this.$trigger("change",t,{value:e.radioValue})},_radioGroupUpdateHandler:function(t){if("add"===t.type)this.radioList.push(t.vm);else{var e=this.radioList.indexOf(t.vm);this.radioList.splice(e,1)}},_resetRadioGroupValue:function(t,e){var n=this;this.radioList.forEach((function(r,i){i!==t&&(e?n.radioList[i].radioChecked=!1:n.radioList.forEach((function(t,e){i>=e||n.radioList[e].radioChecked&&(n.radioList[i].radioChecked=!1)})))}))},_getFormData:function(){var t={};if(""!==this.name){var e="";this.radioList.forEach((function(t){t.radioChecked&&(e=t.value)})),t.value=e,t.key=this.name}return t}}},o=i,a=(n("01aa"),n("8844")),c=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio-group",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=c.exports},"3acf":function(t,e,n){"use strict";n.r(e),n.d(e,"pageScrollTo",(function(){return r}));var r={scrollTop:{type:Number},duration:{type:Number,default:300,validator:function(t,e){e.duration=Math.max(0,t)}}}},"3b2d":function(t,e,n){"use strict";n.r(e),n.d(e,"$on",(function(){return c})),n.d(e,"$off",(function(){return s})),n.d(e,"$once",(function(){return u})),n.d(e,"$emit",(function(){return l}));var r=n("951c"),i=n.n(r),o=new i.a;function a(t,e,n){return t[e].apply(t,n)}function c(){return a(o,"$on",Array.prototype.slice.call(arguments))}function s(){return a(o,"$off",Array.prototype.slice.call(arguments))}function u(){return a(o,"$once",Array.prototype.slice.call(arguments))}function l(){return a(o,"$emit",Array.prototype.slice.call(arguments))}},"3b8d":function(t,e,n){"use strict";n.r(e),n.d(e,"scanCode",(function(){return r}));var r={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean},sound:{type:String,default:"none"},autoZoom:{type:Boolean,default:!0}}},"3bbb":function(t,e,n){"use strict";n.r(e),n.d(e,"compressVideo",(function(){return i}));var r=n("4738"),i={src:{type:String,required:!0,validator:function(t,e){e.src=Object(r["a"])(t)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}}},"3bd6":function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",(function(){return a})),n.d(e,"setTabBarStyle",(function(){return c})),n.d(e,"hideTabBar",(function(){return s})),n.d(e,"showTabBar",(function(){return u})),n.d(e,"hideTabBarRedDot",(function(){return l})),n.d(e,"showTabBarRedDot",(function(){return f})),n.d(e,"removeTabBarBadge",(function(){return d})),n.d(e,"setTabBarBadge",(function(){return h}));var r=n("340d"),i=n("4738"),o={type:Number,required:!0},a={index:o,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},c={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(t,e){t&&!/^(linear|radial)-gradient\(.+?\);?$/.test(t)&&(e.backgroundImage=Object(i["a"])(t))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(t,e){t&&(e.borderStyle="black"===t?"black":"white")}}},s={animation:{type:Boolean,default:!1}},u={animation:{type:Boolean,default:!1}},l={index:o},f={index:o},d={index:o},h={index:o,text:{type:String,required:!0,validator:function(t,e){Object(r["h"])(t)>=4&&(e.text="...")}}}},"3c5f":function(t,e,n){"use strict";var r=n("df50"),i=n.n(r);i.a},"3d1e":function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return d}));var r=n("cff9"),i=n("2626");n.d(e,"b",(function(){return i["b"]})),n.d(e,"c",(function(){return i["c"]}));var o=Object.assign;function a(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}var c=a(),s=a();function u(){return s}function l(){return c}function f(t){var e=t.path,n=t.query,r=t.referrerInfo;return o(s,{path:e,query:n||{},referrerInfo:r||{}}),o(c,s),s}function d(e,n,o){return{created:function(){Object(i["a"])(e,this,n),o.meta.name||t.emit("onPageNotFound",{path:o.path,query:o.query,isEntryPage:!0})},beforeMount:function(){this.$el=document.getElementById("app")},mounted:function(){f({path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query}),Object(r["a"])(this,"onLaunch",s),Object(r["a"])(this,"onShow",c)}}}}).call(this,n("2c9f"))},"3d8f":function(t,e,n){"use strict";var r=n("f5e7"),i=n.n(r);i.a},"3e92":function(t,e,n){"use strict";var r=n("d0aa"),i=n.n(r);i.a},"3fc5":function(t,e,n){"use strict";n.r(e),n.d(e,"downloadFile",(function(){return r}));var r={url:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}}}},"418b":function(t,e,n){"use strict";n.r(e),function(t){var n=Array.prototype.unshift;function r(t){return n.call(t,"[system]"),t}function i(e){return function(){var n=!0;"debug"!==e||__uniConfig.debug||(n=!1),n&&t.console[e].apply(t.console,r(arguments))}}e["default"]={log:i("log"),info:i("info"),warn:i("warn"),debug:i("debug"),error:i("error")}}.call(this,n("0ee4"))},"418c":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"setNavigationBarColor",(function(){return o})),n.d(e,"showNavigationBarLoading",(function(){return a})),n.d(e,"hideNavigationBarLoading",(function(){return c})),n.d(e,"setNavigationBarTitle",(function(){return s}));var r=n("d4ee");function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object(r["getPageHolder"])(n.__page__);if(i)switch(e){case"setNavigationBarColor":var o=n.frontColor,a=n.backgroundColor,c=n.animation,s=c.duration,u=c.timingFunc;o&&(i.navigationBar.textColor="#000000"===o?"black":"white"),a&&(i.navigationBar.backgroundColor=a),t.emit("onNavigationBarChange",{textColor:"#000000"===o?"#000":"#fff",backgroundColor:i.navigationBar.backgroundColor}),i.navigationBar.duration=s+"ms",i.navigationBar.timingFunc=u;break;case"showNavigationBarLoading":i.navigationBar.loading=!0;break;case"hideNavigationBarLoading":i.navigationBar.loading=!1;break;case"setNavigationBarTitle":var l=n.title;i.navigationBar.titleText=l,Object(r["isCurrentPage"])(i)&&(document.title=l),t.emit("onNavigationBarChange",{titleText:l});break}return{}}function o(t){return i("setNavigationBarColor",t)}function a(t){return i("showNavigationBarLoading",t)}function c(t){return i("hideNavigationBarLoading",t)}function s(t){return i("setNavigationBarTitle",t)}}.call(this,n("2c9f"))},"41cb":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("340d");function o(t){return o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},o(t)}function a(t,e,n){var r=e[t],o=!Object(i["i"])(n,t),a=n[t],s=function(t,e){if(!Array.isArray(e))return f(e,t)?0:-1;for(var n=0,r=e.length;n-1&&o&&!Object(i["i"])(r,"default")&&(a=!1),void 0===a&&Object(i["i"])(r,"default")){var u=r.default;a=Object(i["k"])(u)?u():u,n[t]=a}return c(r,t,a,o,n)}function c(t,e,n,r,i){if(t.required&&r)return"Missing required parameter `".concat(e,"`");if(null==n&&!t.required){var o=t.validator;return o?o(n,i):void 0}var a=t.type,c=!a||!0===a,s=[];if(a){Array.isArray(a)||(a=[a]);for(var l=0;l=0||("Object"===r?Object(i["l"])(t):"Array"===r?Array.isArray(t):t instanceof e||Object(i["v"])(t)===l(e));return{valid:n,expectedType:r}}function l(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function f(t,e){return l(t)===l(e)}function d(t,e,n){var r="parameter `".concat(t,"`.")+" Expected ".concat(n.join(", ")),o=n[0],a=Object(i["v"])(e),c=h(e,o),s=h(e,a);return 1===n.length&&v(o)&&!function(){for(var t=arguments.length,e=new Array(t),n=0;n1||this._handleHoverStart(t)},_hoverMousedown:function(t){this._hoverTouch||(this._handleHoverStart(t),window.addEventListener("mouseup",this._hoverMouseup))},_handleHoverStart:function(t){var e=this;t._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(this.hoverStopPropagation&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){e.hovering=!0,e._hoverTouch||e._hoverReset()}),this.hoverStartTime))},_hoverMouseup:function(){this._hoverTouch&&(this._handleHoverEnd(),window.removeEventListener("mouseup",this._hoverMouseup))},_hoverTouchEnd:function(){this._handleHoverEnd()},_handleHoverEnd:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var t=this;requestAnimationFrame((function(){clearTimeout(t._hoverStayTimer),t._hoverStayTimer=setTimeout((function(){t.hovering=!1}),t.hoverStayTime)}))},_hoverTouchCancel:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"43df":function(t,e,n){"use strict";n.r(e),n.d(e,"saveFile",(function(){return i})),n.d(e,"getFileInfo",(function(){return a})),n.d(e,"getSavedFileInfo",(function(){return c})),n.d(e,"removeSavedFile",(function(){return s}));var r=n("4738"),i={tempFilePath:{type:String,required:!0,validator:function(t,e){e.tempFilePath=Object(r["a"])(t)}}},o=["md5","sha1"],a={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}},digestAlgorithm:{type:String,validator:function(t,e){e.digestAlgorithm=o.includes(t)?t:o[0]},default:o[0]}},c={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}}},s={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}}}},4442:function(t,e,n){var i=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=l(t,e,n);if("normal"===s.type){if(r=n.done?h:"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}t.wrap=u;var f="suspendedStart",d="executing",h="completed",p={};function v(){}function g(){}function m(){}var b={};b[a]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(E([])));_&&_!==n&&i.call(_,a)&&(b=_);var w=m.prototype=v.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t,e){function n(o,a,c,s){var u=l(t[o],t,a);if("throw"!==u.type){var f=u.arg,d=f.value;return d&&"object"===r(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(d).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var n=t[a];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){while(++r=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=i}catch(o){Function("r","regeneratorRuntime = r")(i)}},4498:function(t,e,n){"use strict";function r(){var t=document.getElementById("#clipboard"),e=t?t.value:void 0;return e?{data:e,errMsg:"getClipboardData:ok"}:{errMsg:"getClipboardData:fail"}}function i(t){var e=t.data,n=document.getElementById("#clipboard");n&&n.remove();var r=document.createElement("textarea");r.setAttribute("inputmode","none"),r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);var i=document.execCommand("Copy",!1,null);return r.blur(),i?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}n.r(e),n.d(e,"getClipboardData",(function(){return r})),n.d(e,"setClipboardData",(function(){return i}))},"44b9":function(t,e,n){"use strict";n.r(e),n.d(e,"compressImage",(function(){return i}));var r=n("4738"),i={src:{type:String,required:!0,validator:function(t,e){e.src=Object(r["a"])(t)}}}},"44f1":function(t,e,n){t.exports=n("4442")},"45a2":function(t,e,n){"use strict";n.r(e);var r=n("951c"),i=n.n(r),o=n("7d96"),a=o["a"],c=(n("8a24"),n("8844")),s=Object(c["a"])(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-app",{class:{"uni-app--showtabbar":t.showTabBar,"uni-app--maxwidth":t.showMaxWidth}},[n("layout",{ref:"layout",attrs:{"router-key":t.key,"keep-alive-include":t.keepAliveInclude},on:{maxWidth:t.onMaxWidth,layout:t.onLayout}}),t.hasTabBar?n("tab-bar",t._b({directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}],ref:"tabBar"},"tab-bar",t.tabBarOptions,!1)):t._e(),t.$options.components.Toast?n("toast",t._b({},"toast",t.showToast,!1)):t._e(),t.$options.components.ActionSheet?n("action-sheet",t._b({on:{close:t._onActionSheetClose}},"action-sheet",t.showActionSheet,!1)):t._e(),t.$options.components.Modal?n("modal",t._b({on:{close:t._onModalClose}},"modal",t.showModal,!1)):t._e(),t.$options.components.PreviewImage?n("preview-image",t._b({on:{close:t._onPreviewClose}},"preview-image",t.previewImage,!1)):t._e(),t.sysComponents&&t.sysComponents.length?t._l(t.sysComponents,(function(t,e){return n(t,{key:e,tag:"component"})})):t._e()],2)}),[],!1,null,null,null),u=s.exports,l=n("e5b3"),f=l["a"],d=(n("fc7c"),Object(c["a"])(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page",{attrs:{"data-page":t.$route.meta.pagePath}},["none"!==t.navigationBar.type?n("page-head",t._b({},"page-head",t.navigationBar,!1)):t._e(),t.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:t.refreshOptions.color,offset:t.refreshOptions.offset}}):t._e(),t.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(e){return t._touchstart(e)},touchmove:function(e){return t._touchmove(e)},touchend:function(e){return t._touchend(e)},touchcancel:function(e){return t._touchend(e)}}},[t._t("page")],2):n("page-body",[t._t("page")],2)],1)}),[],!1,null,null,null)),h=d.exports,p=n("0372"),v={name:"AsyncError",mixins:[p["c"]],methods:{_onClick:function(){window.location.reload()}}},g=v,m=(n("5505"),Object(c["a"])(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-error",on:{click:t._onClick}},[t._v(" "+t._s(t.$$t("uni.async.error"))+" ")])}),[],!1,null,null,null)),b=m.exports,y={name:"AsyncLoading"},_=(n("d937"),Object(c["a"])(y,(function(){var t=this;t.$createElement;return t._self._c,t._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"uni-async-loading"},[e("i",{staticClass:"uni-loading"})])}],!1,null,null,null)),w=_.exports,x=n("8b77"),k=x["a"],S=Object(c["a"])(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hasTabBar?n("uni-tabbar",{directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}]},[n("div",{staticClass:"uni-tabbar",style:{"flex-direction":"vertical"===t.direction?"column":"row",backgroundColor:t.tabBarOptions.backgroundColor}},[t._l(t.tabBarOptions.list,(function(e,r){return[!1!==e.visible?n("div",{key:e.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return t._switchTab(e,r)}}},[n("div",{staticClass:"uni-tabbar__bd"},[t.showIcon&&e.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text}},[n("img",{attrs:{src:t._getRealPath(t.selectedIndex===r?e.selectedIconPath:e.iconPath)}}),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")]):t._e()]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.selectedIndex===r?t.tabBarOptions.selectedColor:t.tabBarOptions.color,fontSize:t.showIcon&&e.iconPath?"10px":"14px"}},[t._v(" "+t._s(e.text)+" "),!e.redDot||t.showIcon&&e.iconPath?t._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")])]):t._e()])]):t._e()]}))],2)]):t._e()}),[],!1,null,null,null),C=S.exports,T=n("4ed4"),O=T["a"],E=(n("b16b"),Object(c["a"])(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-choose-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:t.latitude,longitude:t.longitude,"show-location":"",libraries:["places"]},on:{updated:t.getList,regionchange:t.onRegionChange}},[n("div",{staticClass:"map-location",style:t.locationStyle}),n("div",{staticClass:"map-move",on:{click:t.moveToLocation}},[n("i",[t._v("")])])]),n("div",{staticClass:"nav"},[n("div",{staticClass:"nav-btn back",on:{click:t.back}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])]),n("div",{staticClass:"nav-btn confirm",class:{disable:!t.selected},on:{click:t.choose}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])]),n("div",{staticClass:"menu"},[n("div",{staticClass:"search"},[n("v-uni-input",{staticClass:"search-input",attrs:{placeholder:t.$$t("uni.chooseLocation.search")},on:{focus:function(e){t.searching=!0},input:t.input},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t.searching?n("div",{staticClass:"search-btn",on:{click:function(e){t.searching=!1,t.keyword=""}}},[t._v(" "+t._s(t.$$t("uni.chooseLocation.cancel"))+" ")]):t._e()],1),n("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":""},on:{scrolltolower:t.loadMore}},[t.loading?n("div",{staticClass:"list-loading"},[n("i",{staticClass:"uni-loading"})]):t._e(),t._l(t.list,(function(e,r){return n("div",{key:r,staticClass:"list-item",class:{selected:t.selectedIndex===r},on:{click:function(n){t.selectedIndex=r,t.latitude=e.latitude,t.longitude=e.longitude}}},[n("div",{staticClass:"list-item-title"},[t._v(" "+t._s(e.name)+" ")]),n("div",{staticClass:"list-item-detail"},[t._v(" "+t._s(t._f("distance")(e.distance))+t._s(e.address)+" ")])])}))],2)],1)],1)}),[],!1,null,null,null)),A=E.exports,I=n("b435"),L={name:"SystemOpenLocation",data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude,r=t.scale,i=void 0===r?18:r,o=t.name,a=void 0===o?"":o,c=t.address,s=void 0===c?"":c;return{latitude:e,longitude:n,scale:i,name:a,address:s,center:{latitude:e,longitude:n},marker:{id:1,latitude:e,longitude:n,iconPath:I["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:I["a"],width:44,height:44}}},mounted:function(){var t=this;uni.getLocation({type:"gcj02",success:function(e){var n=e.latitude,r=e.longitude;t.location.latitude=n,t.location.longitude=r}})},methods:{onRegionChange:function(t){var e=t.detail.centerLocation;e&&(this.center.latitude=e.latitude,this.center.longitude=e.longitude)},setCenter:function(t){var e=t.latitude,n=t.longitude;this.center.latitude=e,this.center.longitude=n},back:function(){getApp().$router.back()},nav:function(){var t=Object(I["e"])(),e="";if(t.type===I["d"].GOOGLE){var n=this.location.latitude?"&origin=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";e="https://www.google.com/maps/dir/?api=1".concat(n,"&destination=").concat(this.latitude,"%2C").concat(this.longitude)}else if(t.type===I["d"].QQ){var r=this.location.latitude?"&fromcoord=".concat(this.location.latitude,"%2C").concat(this.location.longitude,"&from=").concat(encodeURIComponent("我的位置")):"";e="https://apis.map.qq.com/uri/v1/routeplan?type=drive".concat(r,"&tocoord=").concat(this.latitude,"%2C").concat(this.longitude,"&to=").concat(encodeURIComponent(this.name||"目的地"),"&ref=").concat(t.key)}else if(t.type===I["d"].AMAP){var i=this.location.latitude?"from=".concat(this.location.longitude,",").concat(this.location.latitude,",").concat(encodeURIComponent("我的位置"),"&"):"";e="https://uri.amap.com/navigation?".concat(i,"to=").concat(this.longitude,",").concat(this.latitude,",").concat(encodeURIComponent(this.name||"目的地"))}window.open(e)}}},j=L,M=(n("724c"),Object(c["a"])(j,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-open-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:t.center.latitude,longitude:t.center.longitude,markers:[t.marker,t.location]},on:{regionchange:t.onRegionChange}},[n("div",{staticClass:"map-move",on:{click:function(e){return t.setCenter(t.location)}}},[n("i",[t._v("")])])]),n("div",{staticClass:"info"},[n("div",{staticClass:"name",on:{click:function(e){return t.setCenter(t.marker)}}},[t._v(" "+t._s(t.name)+" ")]),n("div",{staticClass:"address",on:{click:function(e){return t.setCenter(t.marker)}}},[t._v(" "+t._s(t.address)+" ")]),n("div",{staticClass:"nav",on:{click:t.nav}},[n("svg",{attrs:{width:"26",height:"26",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M896 544c-207.807 0-388.391 82.253-480 203.149V173.136l201.555 201.555c12.412 12.412 32.723 12.412 45.136 0 12.412-12.412 12.412-32.723 0-45.136L408.913 75.777a31.93 31.93 0 0 0-2.222-2.468c-6.222-6.222-14.429-9.324-22.631-9.308l-0.059-0.002-0.059 0.002c-8.202-0.016-16.409 3.085-22.631 9.308a31.93 31.93 0 0 0-2.222 2.468l-253.78 253.778c-12.412 12.412-12.412 32.723 0 45.136 12.412 12.412 32.723 12.412 45.136 0L352 173.136V928c0 17.6 14.4 32 32 32s32-14.4 32-32c0-176.731 214.903-320 480-320 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z",fill:"#ffffff"}})])])]),n("div",{staticClass:"nav-btn-back",on:{click:t.back}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])],1)}),[],!1,null,null,null)),P=M.exports,$={ChooseLocation:A,OpenLocation:P};i.a.component(u.name,u),i.a.component(h.name,h),i.a.component(b.name,b),i.a.component(w.name,w),i.a.component(C.name,C),Object.keys($).forEach((function(t){var e=$[t];i.a.component(e.name,e)}))},"466b":function(t,e,n){},4705:function(t,e,n){"use strict";(function(t){var r,i=n("909e"),o=n("7cce"),a=n("dfa7"),c=n("bdee");function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r||(r=document.createElement("canvas")),r.width=t,r.height=e,r}e["a"]={name:"Canvas",mixins:[i["g"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var t=this,e=Object.assign({},this.$listeners);return["touchstart","touchmove","touchend"].forEach((function(n){var r=e[n],i=[];r&&i.push((function(e){t.$trigger(n,Object.assign({},e,{touches:f(e.currentTarget,e.touches),changedTouches:f(e.currentTarget,e.changedTouches)}))})),t.disableScroll&&"touchmove"===n&&i.push(t._touchmove),e[n]=i})),e},pixelRatio:function(){return this.hidpi?o["a"]:1}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var t=this.$refs.canvas;t.height=t.width=0},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,r=void 0===n?{}:n,i=this[e];0!==e.indexOf("_")&&"function"===typeof i&&i(r)},_resize:function(t){var e=this.$refs.canvas,n=!t||e.width!==Math.floor(t.width*this.pixelRatio)||e.height!==Math.floor(t.height*this.pixelRatio);if(n)if(e.width>0&&e.height>0){var r=e.getContext("2d"),i=r.getImageData(0,0,e.width,e.height);Object(o["b"])(e,this.hidpi),r.putImageData(i,0,0)}else Object(o["b"])(e,this.hidpi)},_touchmove:function(t){t.preventDefault()},actionsChanged:function(e){var n=this,r=e.actions,i=e.reserve,o=e.callbackId,a=this;if(r)if(this.actionsWaiting)this._actionsDefer.push([r,i,o]);else{var c=this.$refs.canvas,u=c.getContext("2d");i||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,c.width,c.height)),this.preloadImage(r);var f=function(t){var e=r[t],i=e.method,c=e.data;if(/^set/.test(i)&&"setTransform"!==i){var f,d=i[3].toLowerCase()+i.slice(4);if("fillStyle"===d||"strokeStyle"===d){if("normal"===c[0])f=l(c[1]);else if("linear"===c[0]){var v=u.createLinearGradient.apply(u,s(c[1]));c[2].forEach((function(t){var e=t[0],n=l(t[1]);v.addColorStop(e,n)})),f=v}else if("radial"===c[0]){var g=c[1][0],m=c[1][1],b=c[1][2],y=u.createRadialGradient(g,m,0,g,m,b);c[2].forEach((function(t){var e=t[0],n=l(t[1]);y.addColorStop(e,n)})),f=y}else if("pattern"===c[0]){var _=n.checkImageLoaded(c[1],r.slice(t+1),o,(function(t){t&&(u[d]=u.createPattern(t,c[2]))}));return _?"continue":"break"}u[d]=f}else if("globalAlpha"===d)u[d]=c[0]/255;else if("shadow"===d)h=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],c.forEach((function(t,e){u[h[e]]="shadowColor"===h[e]?l(t):t}));else if("fontSize"===d){var w=u.__font__||u.font;u.__font__=u.font=w.replace(/\d+\.?\d*px/,c[0]+"px")}else"lineDash"===d?(u.setLineDash(c[0]),u.lineDashOffset=c[1]||0):"textBaseline"===d?("normal"===c[0]&&(c[0]="alphabetic"),u[d]=c[0]):"font"===d?u.__font__=u.font=c[0]:u[d]=c[0]}else if("fillPath"===i||"strokePath"===i)i=i.replace(/Path/,""),u.beginPath(),c.forEach((function(t){u[t.method].apply(u,t.data)})),u[i]();else if("fillText"===i)u.fillText.apply(u,c);else if("drawImage"===i){if(p=function(){var e=s(c),n=e[0],i=e.slice(1);if(a._images=a._images||{},!a.checkImageLoaded(n,r.slice(t+1),o,(function(t){t&&u.drawImage.apply(u,[t].concat(s(i.slice(4,8)),s(i.slice(0,4))))})))return"break"}(),"break"===p)return"break"}else"clip"===i?(c.forEach((function(t){u[t.method].apply(u,t.data)})),u.clip()):u[i].apply(u,c)};t:for(var d=0;d1&&(c.multiple="multiple"),1===n.length&&"camera"===n[0]&&(c.capture="camera"),c}},"493f":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s}));var r,i=n("a805");function o(t){t.preventDefault()}function a(t){var e=t.scrollTop,n=t.selector,r=t.duration;if("undefined"===typeof e){var i=document.querySelector(n);if(i){var o=i.getBoundingClientRect(),a=o.top,c=o.height;e=a+window.pageYOffset,e-=c}}var s=document.documentElement,u=s.clientHeight,l=s.scrollHeight;e=Math.min(e,l-u),0!==r?window.scrollY!==e&&function t(n){if(n<=0)window.scrollTo(0,e);else{var r=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+r/n*10),t(n-10)}))}}(r):s.scrollTop=document.body.scrollTop=e}var c=0;function s(e,n){var o=n.enablePageScroll,a=n.enablePageReachBottom,s=n.onReachBottomDistance,u=n.enableTransparentTitleNView,l=!1,f=!1,d=!0;function h(){var t=document.documentElement.scrollHeight,e=window.innerHeight,n=window.scrollY,r=n>0&&t>e&&n+e+s>=t,i=Math.abs(t-c)>s;return!r||f&&!i?(!r&&f&&(f=!1),!1):(c=t,f=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===e){var c=window.pageYOffset;o&&Object(i["a"])("onPageScroll",{scrollTop:c},e),u&&t.emit("onPageScroll",{scrollTop:c}),a&&d&&(s()||(r=setTimeout(s,300))),l=!1}function s(){if(h())return Object(i["a"])("onReachBottom",{},e),d=!1,setTimeout((function(){d=!0}),350),!0}}return function(){clearTimeout(r),l||requestAnimationFrame(p),l=!0}}}).call(this,n("31d2"))},"49c2":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n("38ce"),i=n("340d"),o=n("8d7d"),a=n("0db3");function c(t,e){var n={},a=Object(o["a"])(),c=a.top;if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(r["b"])(t)),e.rect||e.size){var s=t.getBoundingClientRect();e.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-c,n.bottom=s.bottom-c),e.size&&(n.width=s.width,n.height=s.height)}if(Array.isArray(e.properties)){var u=t.__vue__&&t.__vue__.$props;u&&e.properties.forEach((function(t){"string"===typeof t&&(t=Object(i["b"])(t),null!=u[t]&&(n[t]=u[t]))}))}if(e.scrollOffset&&("UNI-SCROLL-VIEW"===t.tagName&&t.__vue__&&t.__vue__.getScrollPosition?Object.assign(n,t.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(e.computedStyle)){var l=getComputedStyle(t);e.computedStyle.forEach((function(t){n[t]=l[t]}))}return e.context&&t.__vue__&&t.__vue__._getContextInfo&&(n.context=t.__vue__._getContextInfo()),n}function s(t,e,n,r,i){var o=Object(a["a"])(Object(a["b"])(e,t));if(!o||o&&8===o.nodeType)return r?null:[];if(r){var s=o.matches(n)?o:o.querySelector(n);return s?c(s,i):null}var u=[],l=o.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,(function(t){return c(t,i)}))),o.matches(n)&&u.unshift(c(o,i)),u}function u(e,n){var r,i=e.reqId,o=e.reqs;if(n._isVue)r=n;else{var a=getCurrentPages(),c=a.find((function(t){return t.$page.id===n}));if(!c)throw new Error("Not Found:Page[".concat(n,"]"));r=c.$vm}var u=[];o.forEach((function(t){var e=t.component,n=t.selector,i=t.single,o=t.fields;0===e?u.push(function(t){var e={};if(t.id&&(e.id=""),t.dataset&&(e.dataset={}),t.rect&&(e.left=0,e.right=0,e.top=0,e.bottom=0),t.size&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight),t.scrollOffset){var n=document.documentElement,r=document.body;e.scrollLeft=n.scrollLeft||r.scrollLeft||0,e.scrollTop=n.scrollTop||r.scrollTop||0,e.scrollHeight=n.scrollHeight||r.scrollHeight||0,e.scrollWidth=n.scrollWidth||r.scrollWidth||0}return e}(o)):u.push(s(r,e,n,i,o))})),t.publishHandler("onRequestComponentInfo",{reqId:i,res:u})}}).call(this,n("31d2"))},"49df":function(t,e,n){"use strict";n.r(e);var r=[],i=n("2432");i.keys().forEach((function(t){"./index.js"!==t&&r.push(i(t).default)})),e["default"]=r},"4a3f":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n){var r=e.filePath,i=t,o=i.invokeCallbackHandler;window.open(r),o(n,{errMsg:"openDocument:ok"})}n.d(e,"openDocument",(function(){return r}))}.call(this,n("2c9f"))},"4b21":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n("d97d");function i(e){e=function(t){return t.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);var n=[],i={node:"root",children:[]};return Object(r["a"])(e,{start:function(t,e,r){var o={name:t};if(0!==e.length&&(o.attrs=function(t){return t.reduce((function(t,e){var n=e.value,r=e.name;return n.match(/ /)&&-1===["style","src"].indexOf(r)&&(n=n.split(" ")),t[r]?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n,t}),{})}(e)),r){var a=n[0]||i;a.children||(a.children=[]),a.children.push(o)}else n.unshift(o)},end:function(e){var r=n.shift();if(r.name!==e&&t.error("invalid state: mismatch end tag"),0===n.length)i.children.push(r);else{var o=n[0];o.children||(o.children=[]),o.children.push(r)}},chars:function(t){var e={type:"text",text:t};if(0===n.length)i.children.push(e);else{var r=n[0];r.children||(r.children=[]),r.children.push(e)}},comment:function(t){var e={node:"comment",text:t},r=n[0];r&&(r.children||(r.children=[]),r.children.push(e))}}),i.children}}).call(this,n("418b")["default"])},"4b7e":function(t,e,n){var r={"./base/base64.js":"53f9","./base/can-i-use.js":"5bcf","./base/event-bus.js":"fd5d","./base/interceptor.js":"9879","./base/upx2px.js":"6856","./context/canvas.js":"e0ec","./context/context.js":"6625","./device/add-phone-contact.js":"cedc","./device/make-phone-call.js":"6f73","./device/scan-code.js":"3b8d","./device/set-clipboard-data.js":"51e5","./file/file.js":"43df","./file/open-document.js":"09f0","./location/choose-location.js":"ec60","./location/get-location.js":"e0f9","./location/open-location.js":"d280","./media/choose-file.js":"925f","./media/choose-image.js":"dac9","./media/choose-video.js":"a111","./media/compress-image.js":"44b9","./media/compress-video.js":"3bbb","./media/get-image-info.js":"61d8","./media/get-video-info.js":"9bfe","./media/preview-image.js":"4ca1","./media/save-image-to-photos-album.js":"03d0","./network/download-file.js":"3fc5","./network/request.js":"b32f","./network/socket.js":"123c","./network/upload-file.js":"b75a","./plugin/get-provider.js":"90f0","./plugin/load-sub-package.js":"a8a7","./plugin/pre-login.js":"5f30","./route/route.js":"6bd7","./storage/storage.js":"67c3","./ui/load-font-face.js":"c6eb","./ui/navigation-bar.js":"796c","./ui/page-scroll-to.js":"3acf","./ui/popup.js":"f60b","./ui/tab-bar.js":"3bd6"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="4b7e"},"4ba6":function(t,e,n){"use strict";function r(t,e,n){return t>e-n&&t0){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),f=(e-u*t)/(l-u),d=t-f;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+f*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+f*l*n}}}var h=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=t,g=(e-p*t)/h;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(h*t)+g*Math.sin(h*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(h*t),r=Math.sin(h*t);return e*(g*h*n-v*h*r)+p*e*(g*r+v*n)}}},o.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},o.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},o.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!i(e,.4)){e=e||0;var r=this._endPosition;this._solution&&(i(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),i(e,.4)&&(e=0),i(r,.4)&&(r=0),r+=this._endPosition),this._solution&&i(r-t,.4)&&i(e,.4)||(this._endPosition=t,this._solution=this._solve(r-this._endPosition,e),this._startTime=n)}},o.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},o.prototype.done=function(t){return t||(t=(new Date).getTime()),r(this.x(),this._endPosition,.4)&&i(this.dx(),.4)},o.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},o.prototype.springConstant=function(){return this._k},o.prototype.damping=function(){return this._c},o.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]}},"4c68":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i=n("340d"),o=n("0372"),a=!!i["t"]&&{passive:!1},c={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},s={name:"Video",filters:{time:function(t){t=t>0&&t<1/0?t:0;var e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.floor(t%3600%60);e=(e<10?"0":"")+e,n=(n<10?"0":"")+n,r=(r<10?"0":"")+r;var i=n+":"+r;return"00"!==e&&(i=e+":"+i),i}},mixins:[o["c"],r["g"],r["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,controlsTouching:!1,touchStartOrigin:{x:0,y:0},gestureType:c.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,buffered:0,isSafari:/^Apple/.test(navigator.vendor)}},computed:{centerPlayBtnShow:function(){return this.showCenterPlayBtn&&!this.start},controlsShow:function(){return!this.centerPlayBtnShow&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(t){this.$emit("update:enableDanmu",t)},autoHideContorls:function(t){t?this.autoHideStart():this.autoHideEnd()},srcSync:function(t){this.playing=!1,this.currentTime=0},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()},buffered:function(t){0!==t&&this.$trigger("progress",{},{buffered:t})}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var t=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));t.sort((function(t,e){return(t.time||0)-(e.time||0)}))},mounted:function(){var t,e,n,r=this,i=this,o=!0,c=this.$refs.ball;function s(r){var a=r.targetTouches[0],c=a.pageX,s=a.pageY;if(o&&Math.abs(c-t)100&&(f=100),i.progress=f,r.preventDefault(),r.stopPropagation()}}function u(t){i.controlsTouching=!1,i.touching&&(c.removeEventListener("touchmove",s,a),o||(t.preventDefault(),t.stopPropagation(),i.seek(i.$refs.video.duration*i.progress/100)),i.touching=!1)}c.addEventListener("touchstart",(function(i){r.controlsTouching=!0;var u=i.targetTouches[0];t=u.pageX,e=u.pageY,n=r.progress,o=!0,r.touching=!0,c.addEventListener("touchmove",s,a)})),c.addEventListener("touchend",u),c.addEventListener("touchcancel",u)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(t){var e,n=t.type,r=t.data,i=void 0===r?{}:r;switch(n){case"seek":e=i.position;break;case"sendDanmu":e=i;break;case"playbackRate":e=i.rate;break}["play","pause","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"].indexOf(n)>=0&&this[n](e)},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(t){t=Number(t),"number"!==typeof t||isNaN(t)||(this.$refs.video.currentTime=t)},clickProgress:function(t){var e=this.$refs.progress,n=t.target,r=t.offsetX;while(n!==e)r+=n.offsetLeft,n=n.parentNode;var i=e.offsetWidth,o=0;r>=0&&r<=i&&(o=r/i,this.seek(this.$refs.video.duration*o))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(t){var e=document.createElement("p");e.className="uni-video-danmu-item",e.innerText=t.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(t.color,";");e.setAttribute("style",n),this.$refs.danmu.appendChild(e),setTimeout((function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",e.setAttribute("style",n),setTimeout((function(){e.remove()}),4e3)}),17)},sendDanmu:function(t){var e=this.otherData;e.danmuList.splice(e.danmuIndex.index+1,0,{text:String(t.text),color:t.color,time:this.$refs.video.currentTime||0})},playbackRate:function(t){this.$refs.video.playbackRate=t},triggerFullscreen:function(t){var e,n=this.$refs.container,r=this.$refs.video;t?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?r.webkitEnterFullScreen?r.webkitEnterFullScreen():(e=!0,n.remove(),n.classList.add("uni-video-type-fullscreen"),document.body.appendChild(n)):n[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():r.webkitExitFullScreen?r.webkitExitFullScreen():(e=!0,n.remove(),n.classList.remove("uni-video-type-fullscreen"),this.$el.appendChild(n)),e&&this.emitFullscreenChange(t)},onFullscreenChange:function(t,e){e&&document.fullscreenEnabled||this.emitFullscreenChange(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:function(t){this.fullscreen=t,this.$trigger("fullscreenchange",{},{fullScreen:t,direction:"vertical"})},requestFullScreen:function(){this.triggerFullscreen(!0)},exitFullScreen:function(){this.triggerFullscreen(!1)},onDurationChange:function(t){var e=t.target;this.durationTime=e.duration},onLoadedMetadata:function(t){var e=Number(this.initialTime)||0,n=t.target;e>0&&(n.currentTime=e),this.$trigger("loadedmetadata",t,{width:n.videoWidth,height:n.videoHeight,duration:n.duration}),this.onProgress(t)},onProgress:function(t){var e=t.target,n=e.buffered;n.length&&(this.buffered=n.end(n.length-1)/e.duration*100)},onWaiting:function(t){this.$trigger("waiting",t,{})},onVideoError:function(t){this.playing=!1,this.$trigger("error",t,{})},onPlay:function(t){this.start=!0,this.playing=!0,this.$trigger("play",t,{})},onPause:function(t){this.playing=!1,this.$trigger("pause",t,{})},onEnded:function(t){this.playing=!1,this.$trigger("ended",t,{})},onTimeUpdate:function(t){var e=t.target,n=this.otherData,r=this.currentTime=e.currentTime,i=n.danmuIndex,o={time:r,index:i.index},a=n.danmuList;if(r>i.time)for(var c=i.index+1;c=(s.time||0)))break;o.index=c,this.playing&&this.enableDanmuSync&&this.playDanmu(s)}else if(r-1;u--){var l=a[u];if(!(r<=(l.time||0)))break;o.index=u-1}n.danmuIndex=o,this.$trigger("timeupdate",t,{currentTime:r,duration:e.duration})},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(t){var e=t.targetTouches[0];this.touchStartOrigin={x:e.pageX,y:e.pageY},this.gestureType=c.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(t){function e(){t.stopPropagation(),t.preventDefault()}this.fullscreen&&e();var n=this.gestureType;if(n!==c.STOP){var r=t.targetTouches[0],i=r.pageX,o=r.pageY,a=this.touchStartOrigin;if(n===c.PROGRESS?this.changeProgress(i-a.x):n===c.VOLUME&&this.changeVolume(o-a.y),n===c.NONE)if(Math.abs(i-a.x)>Math.abs(o-a.y)){if(!this.enableProgressGesture)return void(this.gestureType=c.STOP);this.gestureType=c.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||e()}else{if(!this.pageGesture)return void(this.gestureType=c.STOP);this.gestureType=c.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||e()}}},touchend:function(t){this.gestureType!==c.NONE&&this.gestureType!==c.STOP&&(t.stopPropagation(),t.preventDefault()),this.gestureType===c.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=c.NONE},changeProgress:function(t){var e=this.$refs.video.duration,n=t/600*e+this.currentTimeOld;n<0?n=0:n>e&&(n=e),this.currentTimeNew=n},changeVolume:function(t){var e,n=this.volumeOld;"number"===typeof n&&(e=n-t/200,e<0?e=0:e>1&&(e=1),this.$refs.video.volume=e,this.volumeNew=e)},autoHideStart:function(){var t=this;this.otherData.hideTiming=setTimeout((function(){t.controlsVisible=!1}),3e3)},autoHideEnd:function(){var t=this.otherData;t.hideTiming&&(clearTimeout(t.hideTiming),t.hideTiming=null)},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},u=s,l=(n("a61d"),n("8844")),f=Object(l["a"])(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-video",t._g({attrs:{id:t.id}},t.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",on:{touchstart:t.touchstart,touchend:t.touchend,touchmove:t.touchmove,fullscreenchange:function(e){return e.stopPropagation(),t.onFullscreenChange(e)},webkitfullscreenchange:function(e){return e.stopPropagation(),t.onFullscreenChange(e,!0)}}},[n("video",t._b({ref:"video",staticClass:"uni-video-video",style:{objectFit:t.objectFit},attrs:{loop:t.loop,src:t.srcSync,poster:t.poster,autoplay:t.autoplay,"webkit-playsinline":"",playsinline:""},domProps:{muted:t.muted},on:{click:t.triggerControls,durationchange:t.onDurationChange,loadedmetadata:t.onLoadedMetadata,progress:t.onProgress,waiting:t.onWaiting,error:t.onVideoError,play:t.onPlay,pause:t.onPause,ended:t.onEnded,timeupdate:t.onTimeUpdate,webkitbeginfullscreen:function(e){return t.emitFullscreenChange(!0)},x5videoenterfullscreen:function(e){return t.emitFullscreenChange(!0)},webkitendfullscreen:function(e){return t.emitFullscreenChange(!1)},x5videoexitfullscreen:function(e){return t.emitFullscreenChange(!1)}}},"video",t.$attrs,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:t.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!t.playing,"uni-video-control-button-pause":t.playing},on:{click:function(e){return e.stopPropagation(),t.trigger(e)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],staticClass:"uni-video-current-time"},[t._v(" "+t._s(t._f("time")(t.currentTime))+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(e){return e.stopPropagation(),t.clickProgress(e)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:t.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:t.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],staticClass:"uni-video-duration"},[t._v(" "+t._s(t._f("time")(t.duration||t.durationTime))+" ")])]),t.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":t.enableDanmuSync},on:{click:function(e){return e.stopPropagation(),t.triggerDanmu(e)}}},[t._v(" "+t._s(t.$$t("uni.video.danmu"))+" ")]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":t.fullscreen},on:{click:function(e){return e.stopPropagation(),t.triggerFullscreen(!t.fullscreen)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.start&&t.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),t.centerPlayBtnShow?n("div",{staticClass:"uni-video-cover",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(e){return e.stopPropagation(),t.play(e)}}}),n("p",{staticClass:"uni-video-cover-duration"},[t._v(" "+t._s(t._f("time")(t.duration||t.durationTime))+" ")])]):t._e(),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(" "+t._s(t.$$t("uni.video.volume"))+" ")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*t.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},t._l(10,(function(t,e){return n("div",{key:e,staticClass:"uni-video-toast-volume-grids-item"})})),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(" "+t._s(t._f("time")(t.currentTimeNew))+" / "+t._s(t._f("time")(t.durationTime))+" ")])]),n("div",{staticClass:"uni-video-slots"},[t._t("default")],2)])])}),[],!1,null,null,null);e["default"]=f.exports},"4ca1":function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",(function(){return i}));var r=n("4738"),i={urls:{type:Array,required:!0,validator:function(t,e){var n;if(e.urls=t.map((function(t){if("string"===typeof t)return Object(r["a"])(t);n=!0})),n)return"url is not string"}},current:{type:[String,Number],validator:function(t,e){"number"===typeof t?e.current=t>0&&t=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function c(e,n){var i,o=e.url,c=e.header,s=e.timeout,u=void 0===s?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:s,l=t,f=l.invokeCallbackHandler,d=new XMLHttpRequest,h=new a(d);return d.open("GET",o,!0),Object.keys(c).forEach((function(t){d.setRequestHeader(t,c[t])})),d.responseType="blob",d.onload=function(){clearTimeout(i);var t,e=d.status,a=this.response,c=d.getResponseHeader("content-disposition");if(c){var s=c.match(/filename="?(\S+)"?\b/);s&&(t=s[1])}a.name=t||Object(r["c"])(o),f(n,{errMsg:"downloadFile:ok",statusCode:e,tempFilePath:Object(r["b"])(a)})},d.onabort=function(){clearTimeout(i),f(n,{errMsg:"downloadFile:fail abort"})},d.onerror=function(){clearTimeout(i),f(n,{errMsg:"downloadFile:fail"})},d.onprogress=function(t){h._callbacks.forEach((function(e){var n=t.loaded,r=t.total,i=Math.round(n/r*100);e({progress:i,totalBytesWritten:n,totalBytesExpectedToWrite:r})}))},d.send(),i=setTimeout((function(){d.onprogress=d.onload=d.onabort=d.onerror=null,h.abort(),f(n,{errMsg:"downloadFile:fail timeout"})}),u),h}}.call(this,n("2c9f"))},"4d5a":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"redirectTo",(function(){return s})),n.d(e,"navigateTo",(function(){return u})),n.d(e,"navigateBack",(function(){return l})),n.d(e,"reLaunch",(function(){return f})),n.d(e,"switchTab",(function(){return d})),n.d(e,"preloadPage",(function(){return h}));var r=n("38ce"),i=n("c879"),o=t,a=o.invokeCallbackHandler;function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,o=e.delta,a=e.events,s=e.exists,u=e.animationType,l=e.animationDuration,f=e.from,d=void 0===f?"navigateBack":f,h=e.detail,p=getApp().$router;switch(delete p.$eventChannel,t){case"redirectTo":if("back"===s){var v=Object(r["a"])(n);if(-1!==v){var g=getCurrentPages().length-1-v;if(g>0)return c("navigateBack",{delta:g})}}p.replace({type:t,path:n});break;case"navigateTo":return p.$eventChannel=Object(i["a"])(a),p.push({type:t,path:n,animationType:u,animationDuration:l}),{errMsg:t+":ok",eventChannel:p.$eventChannel};case"navigateBack":var m=!0,b=getCurrentPages();if(b.length){var y=b[b.length-1];Object(r["c"])(y.$options,"onBackPress")&&!0===y.__call_hook("onBackPress",{from:d})&&(m=!1)}m&&(o>1&&(p._$delta=o),p.go(-o,{animationType:u,animationDuration:l}));break;case"reLaunch":p.replace({type:t,path:n});break;case"switchTab":p.replace({type:t,path:n,params:{detail:h}});break}return{errMsg:t+":ok"}}function s(t){return c("redirectTo",t)}function u(t){return c("navigateTo",t)}function l(t){return c("navigateBack",t)}function f(t){return c("reLaunch",t)}function d(t){return c("switchTab",t)}function h(t,e){var n=t.url,r=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(r.substr(1)).then((function(){a(e,{url:n,errMsg:"preloadPage:ok"})})).catch((function(t){a(e,{url:n,errMsg:"preloadPage:fail "+t})}))}}.call(this,n("2c9f"))},"4dc6":function(t,e,n){"use strict";var r=n("655d"),i=n.n(r);i.a},"4e46":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("951c"),i=n.n(r),o=n("0372"),a=n("b405"),c=__uniConfig.tabBar||{};__uniConfig.tabBar=i.a.observable(Object(a["d"])(Object(o["f"])(c))),Object(a["c"])((function(){var t=Object(a["d"])(Object(o["f"])(c));__uniConfig.tabBar.backgroundColor=t.backgroundColor,__uniConfig.tabBar.borderStyle=t.borderStyle,__uniConfig.tabBar.color=t.color,__uniConfig.tabBar.selectedColor=t.selectedColor,__uniConfig.tabBar.blurEffect=t.blurEffect,__uniConfig.tabBar.midButton=t.midButton,t.list&&t.list.length&&__uniConfig.tabBar.list.length&&t.list.forEach((function(t,e){__uniConfig.tabBar.list[e].iconPath=t.iconPath,__uniConfig.tabBar.list[e].selectedIconPath=t.selectedIconPath}))}));var s=__uniConfig.tabBar},"4ed4":function(t,e,n){"use strict";(function(t,r){var i=n("340d"),o=n("1daa"),a=n("0372"),c=n("b435");e["a"]={name:"SystemChooseLocation",filters:{distance:function(t){return t>100?"".concat(t>1e3?(t/1e3).toFixed(1)+"k":t.toFixed(0),"m | "):t>0?"<100m | ":""}},mixins:[a["c"]],data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude;return{latitude:e,longitude:n,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:-1,list:[],keyword:"",searching:!1,loading:!0,adcode:"",locationStyle:'background-image: url("'.concat(c["b"],'")')}},computed:{selected:function(){return this.list[this.selectedIndex]},boundary:function(){return this.adcode?"region(".concat(this.adcode,",1,").concat(this.latitude,",").concat(this.longitude,")"):"nearby(".concat(this.latitude,",").concat(this.longitude,",5000)")}},created:function(){var t=this;this.latitude&&this.longitude||this.moveToLocation(),this.search=Object(i["d"])((function(){t.reset(),t.keyword&&t.getList()}),1e3),this.$watch("searching",(function(e){t.reset(),e||t.getList()}))},methods:{choose:function(){this.selected&&(t.publishHandler("onChooseLocation",Object.assign({},this.selected)),getApp().$router.back())},back:function(){t.publishHandler("onChooseLocation",null),getApp().$router.back()},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},onRegionChange:function(t){var e=t.detail.centerLocation;e&&this.move(e)},pushData:function(t){var e=this;t.forEach((function(t){e.list.push({name:t.title||t.name,address:t.address,distance:t._distance||t.distance,latitude:t.location.lat,longitude:t.location.lng})}))},getList:function(){var t=this;this.loading=!0;var e=Object(c["e"])();if(e.type===c["d"].GOOGLE){if(this.pageIndex>1&&this.nextPage)return void this.nextPage();var n=new window.google.maps.places.PlacesService(document.createElement("div"));n[this.searching?"textSearch":"nearbySearch"]({location:{lat:this.latitude,lng:this.longitude},query:this.keyword,radius:5e3},(function(e,n,r){t.loading=!1,e&&e.length&&e.forEach((function(e){t.list.push({name:e.name||"",address:e.vicinity||e.formatted_address||"",distance:0,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})})),r&&(r.hasNextPage?t.nextPage=function(){r.nextPage()}:t.hasNextPage=!1)}))}else if(e.type===c["d"].QQ){var i=this.searching?"https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=".concat(e.key,"&boundary=").concat(this.boundary,"&keyword=").concat(this.keyword,"&page_size=").concat(this.pageSize,"&page_index=").concat(this.pageIndex):"https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=".concat(e.key,"&location=").concat(this.latitude,",").concat(this.longitude,"&get_poi=1&poi_options=page_size=").concat(this.pageSize,";page_index=").concat(this.pageIndex);Object(o["a"])(i,{callback:"callback"},(function(e){if(t.loading=!1,t.searching&&"data"in e&&e.data.length)t.pushData(e.data);else if("result"in e){var n=e.result;t.adcode=n.ad_info?n.ad_info.adcode:"",n.pois&&t.pushData(n.pois),t.list.length===t.pageSize*t.pageIndex&&(t.hasNextPage=!1)}}),(function(){t.loading=!1}))}else if(e.type===c["d"].AMAP){var a=this;window.AMap.plugin("AMap.PlaceSearch",(function(){if(a.longitude&&a.latitude){var t=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:a.pageIndex}),e=a.searching?a.keyword:"",n=a.searching?5e4:5e3;t.searchNearBy(e,[a.longitude,a.latitude],n,(function(t,e){"error"===t?r.error(e):"no_data"===t?a.hasNextPage=!1:a.pushData(e.poiList.pois)}))}a.loading=!1}))}},loadMore:function(){!this.loading&&this.hasNextPage&&(this.pageIndex++,this.getList())},reset:function(){this.selectedIndex=-1,this.pageIndex=1,this.hasNextPage=!0,this.nextPage=null,this.list=[]},move:function(t){var e=t.latitude,n=t.longitude;this.latitude=e,this.longitude=n,this.searching||(this.reset(),this.getList())},input:function(){this.search()}}}}).call(this,n("31d2"),n("418b")["default"])},"4ef5":function(t){t.exports=JSON.parse('{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.chooseFile.notUserActivation":"文件選擇器對話框只能在由用戶激活時顯示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.startSoterAuthentication.waitingContent":"無法識別","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送","uni.chooseLocation.search":"搜索地點","uni.chooseLocation.cancel":"取消"}')},"4f2e":function(t,e,n){"use strict";n.r(e);var r={name:"CoverView",props:{scrollTop:{type:[String,Number],default:0}},watch:{scrollTop:function(t){this.setScrollTop(t)}},mounted:function(){this.setScrollTop(this.scrollTop)},methods:{setScrollTop:function(t){var e=this.$refs.content;"scroll"===getComputedStyle(e).overflowY&&(e.scrollTop=this._upx2pxNum(t))},_upx2pxNum:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return uni.upx2px(parseFloat(t))})),parseFloat(t)||0}}},i=r,o=(n("ca54"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-cover-view",t._g({attrs:{"scroll-top":t.scrollTop}},t.$listeners),[n("div",{ref:"content",staticClass:"uni-cover-view"},[t._t("default")],2)])}),[],!1,null,null,null);e["default"]=a.exports},"4fcb":function(t,e,n){"use strict";n.r(e),function(t){var r=n("340d");e["default"]={data:function(){return{showModal:{visible:!1}}},created:function(){var e=this;t.on("onShowModal",(function(t,n){e.showModal=t,e.onModalCloseCallback=n})),t.on("onHidePopup",(function(t){e.showModal.visible=!1}))},methods:{_onModalClose:function(t){this.showModal.visible=!1,Object(r["k"])(this.onModalCloseCallback)&&this.onModalCloseCallback(t)}}}}.call(this,n("2c9f"))},"508e":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("cff9"),i=n("6564");function o(t,e){var n=t.name,r=t.arg;"postMessage"===n||uni[n](r)}function a(t,e){var n=e.getApp,a=e.getCurrentPages;function c(t,e){var n=a();n.length&&Object(r["b"])(n[n.length-1],t,e)}function s(t){return function(e){c(t,e)}}t("onError",(function(t){Object(r["a"])(n(),"onError",t)})),t("onPageNotFound",(function(t){Object(r["a"])(n(),"onPageNotFound",t)})),t("onAppEnterBackground",(function(){Object(r["a"])(n(),"onHide"),c("onHide")})),t("onAppEnterForeground",(function(t){Object(r["a"])(n(),"onShow",t);var e=a();0!==e.length&&c("onShow")})),t("onResize",(function(t,e){var n=a().find((function(t){return t.$page.id===e}));n&&Object(r["b"])(n,"onResize",t)})),t("onPullDownRefresh",(function(t,e){var n=a().find((function(t){return t.$page.id===e}));n&&(Object(i["setPullDownRefreshPageId"])(e),Object(r["b"])(n,"onPullDownRefresh"))})),t("onTabItemTap",s("onTabItemTap")),t("onNavigationBarButtonTap",s("onNavigationBarButtonTap")),t("onNavigationBarSearchInputChanged",s("onNavigationBarSearchInputChanged")),t("onNavigationBarSearchInputConfirmed",s("onNavigationBarSearchInputConfirmed")),t("onNavigationBarSearchInputClicked",s("onNavigationBarSearchInputClicked")),t("onNavigationBarSearchInputFocusChanged",s("onNavigationBarSearchInputFocusChanged")),t("onWebInvokeAppService",o)}},"50d3":function(t,e,n){"use strict";n.r(e);var r=n("951c"),i=n.n(r),o=n("4738"),a=n("cce2"),c={methods:{$getRealPath:function(t){return t?Object(o["a"])(t):t},$trigger:function(t,e,n){this.$emit(t,a["b"].call(this,t,e,n,this.$el,this.$el))}}};function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&(a.length=1),f.push("".concat(o,"(").concat(a.join(","),")"));else if(r.concat(i).includes(a[0])){o=a[0];var c=a[1];u[o]=i.includes(o)?l(c):c}})),u.transform=u.webkitTransform=f.join(" "),u.transition=u.webkitTransition=Object.keys(u).map((function(t){return"".concat(function(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})).replace("webkit","-webkit")}(t)," ").concat(c.duration,"ms ").concat(c.timingFunction," ").concat(c.delay,"ms")})).join(","),u.transformOrigin=u.webkitTransformOrigin=a.transformOrigin,u}(e);Object.keys(c).forEach((function(e){t.$el.style[e]=c[e]})),n+=1,n0&&void 0!==arguments[0]?arguments[0]:"/",e=decodeURI(window.location.pathname),n=window.location.search,r=window.location.hash;return"/"===t[t.length-1]&&e===t.substring(0,t.length-1)&&(e=t,window.history.replaceState({},"",t+n+r)),t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+n+r}e["default"]={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.routes;e.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(e.config.devtools=!1),Object(u["a"])(e),Object(s["a"])(e),Object(f["w"])(e),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var v=d(r),g=new i.a({id:v,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:r,scrollBehavior:function(t,e,n){if(n)return n;if(t&&e&&t.meta.isTabBar&&e.meta.isTabBar){var r=Object(l["b"])(t.params.__id__);if(r)return r}return{x:0,y:0}}}),m=[],b=g.match("history"===__uniConfig.router.mode?p(__uniConfig.router.base):h());if(b.meta.name&&(b.meta.id?m.push(b.meta.name+"-"+b.meta.id):m.push(b.meta.name+"-"+(v+1))),b.meta&&b.meta.name&&(document.body.className="uni-body "+b.meta.name,b.meta.isNVue)){var y="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(y,"")}e.mixin({beforeCreate:function(){var n=this.$options;if("app"===n.mpType){n.data=function(){return{keepAliveInclude:m}};var i=Object(a["a"])(e,r,b);Object.keys(i).forEach((function(t){n[t]=n[t]?[].concat(i[t],n[t]):[i[t]]})),n.router=g,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(e){t.error(e)}])}else if(Object(o["d"])(this)){var s=Object(c["a"])();Object.keys(s).forEach((function(t){n.mpOptions?n[t]=n[t]?[].concat(n[t],s[t]):[s[t]]:n[t]=n[t]?[].concat(s[t],n[t]):[s[t]]}))}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(e.prototype,"$page",{get:function(){return this.__page__}}),e.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},e.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},e.prototype.createMediaQueryObserver=function(t){return uni.createMediaQueryObserver(this,t)},e.use(i.a)}}}.call(this,n("418b")["default"])},"51e5":function(t,e,n){"use strict";n.r(e),n.d(e,"setClipboardData",(function(){return i}));var r=n("0372"),i={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(t,e){if(e.showToast){var n=Object(r["g"])("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}}},"526c":function(t,e,n){"use strict";var r=n("b91d"),i=n.n(r);i.a},"53f9":function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",(function(){return r})),n.d(e,"arrayBufferToBase64",(function(){return i}));var r=[{name:"base64",type:String,required:!0}],i=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},"541c":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n,r,i){var o=n.$page.id;t.publishHandler(o+"-map-"+e,{mapId:e,type:r,data:i},o)}n.d(e,"operateMapPlayer",(function(){return r}))}.call(this,n("2c9f"))},5505:function(t,e,n){"use strict";var r=n("c93f"),i=n.n(r);i.a},5556:function(t,e,n){"use strict";var r=n("68d2"),i=n.n(r);i.a},"56ae":function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},i(t)}n.r(e),n.d(e,"setStorage",(function(){return a})),n.d(e,"setStorageSync",(function(){return c})),n.d(e,"getStorage",(function(){return s})),n.d(e,"getStorageSync",(function(){return u})),n.d(e,"removeStorage",(function(){return l})),n.d(e,"removeStorageSync",(function(){return f})),n.d(e,"clearStorage",(function(){return d})),n.d(e,"clearStorageSync",(function(){return h})),n.d(e,"getStorageInfo",(function(){return p})),n.d(e,"getStorageInfoSync",(function(){return v}));function o(t){try{var e="string"===typeof t?JSON.parse(t):t,n=e.type;if(["object","string","number","boolean","undefined"].indexOf(n)>=0){var r=Object.keys(e);if(2===r.length&&"data"in e){if(i(e.data)===n)return e.data;if("object"===n&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(e.data))return new Date(e.data)}else if(1===r.length)return""}}catch(a){}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=t.data,r=i(n),o="string"===r?n:JSON.stringify({type:r,data:n});try{localStorage.setItem(e,o)}catch(a){return{errMsg:"setStorage:fail ".concat(a)}}return{errMsg:"setStorage:ok"}}function c(t,e){a({key:t,data:e})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage&&localStorage.getItem(e);if("string"!==typeof n)return{data:"",errMsg:"getStorage:fail"};var r=n;try{var i=JSON.parse(n),a=o(i);void 0!==a&&(r=a)}catch(c){}return{data:r,errMsg:"getStorage:ok"}}function u(t){var e=s({key:t});return e.data}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key;return localStorage&&localStorage.removeItem(e),{errMsg:"removeStorage:ok"}}function f(t){l({key:t})}function d(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){d()}function p(){for(var t=localStorage&&localStorage.length||0,e=[],n=0,r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("418b")["default"])},"5db9":function(t,e,n){"use strict";var r=n("ea72"),i=r["a"],o=(n("5f77"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-tabbar",{class:["uni-tabbar-"+t.position]},[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:t.tabbarBackgroundColor,"backdrop-filter":"none"!==t.blurEffect?"blur(10px)":t.blurEffect}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:t.borderColor}}),t._l(t.visibleList,(function(e,r){return n("div",{key:e.isMidButton?r:e.pagePath,staticClass:"uni-tabbar__item",style:e.isMidButton?{flex:"0 0 "+e.width,position:"relative"}:{},on:{click:function(n){return t._switchTab(e,r)}}},[e.isMidButton?n("div",{staticClass:"uni-tabbar__mid",style:t._uniTabbarBdStyle(e)},[e.iconPath?n("img",{style:{width:e.iconWidth,height:e.iconWidth},attrs:{src:t._getRealPath(e.iconPath)}}):t._e()]):t._e(),n("div",{staticClass:"uni-tabbar__bd",style:{height:t.height}},[t.getIconPath(e,r)||e.iconfont||e.iconPath||e.isMidButton?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text},style:{width:t.iconWidth,height:t.iconWidth}},[e.iconfont?n("div",{staticClass:"uni-tabbar__iconfont",style:{color:t.selectedIndex===r?e.iconfont.selectedColor:e.iconfont.color,fontSize:e.iconfont.fontSize||t.iconWidth}},[t._v(" "+t._s(t.selectedIndex===r?e.iconfont.selectedText:e.iconfont.text)+" ")]):e.isMidButton?t._e():n("img",{attrs:{src:t._getRealPath(t.getIconPath(e,r))}})]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.selectedIndex===r?t.selectedColor:t.color,fontSize:t.fontSize,lineHeight:e.iconPath?"normal":1.8,marginTop:e.iconPath?t.spacing:"inherit"}},[t._v(" "+t._s(e.text)+" ")]):t._e(),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")]):t._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:t.height}})])}),[],!1,null,null,null),c=a.exports,s=n("e16e"),u=s["a"],l=(n("5556"),Object(o["a"])(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.responsive?n("uni-layout",{class:{"uni-app--showlayout":t.showLayout,"uni-app--showtopwindow":t.showTopWindow,"uni-app--showleftwindow":t.showLeftWindow,"uni-app--showrightwindow":t.showRightWindow}},[t.topWindow?n("uni-top-window",{directives:[{name:"show",rawName:"v-show",value:t.showTopWindow||t.apiShowTopWindow,expression:"showTopWindow || apiShowTopWindow"}]},[n("div",{ref:"topWindow",staticClass:"uni-top-window",style:t.topWindowStyle},[n("v-uni-top-window",t._b({ref:"top",attrs:{"navigation-bar-title-text":t.navigationBarTitleText},on:{"hook:mounted":t.onTopWindowInit}},"v-uni-top-window",t.bindWindow,!1))],1),n("div",{staticClass:"uni-top-window--placeholder",style:{height:t.topWindowHeight}})]):t._e(),n("uni-content",[n("uni-main",[n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.routerKey})],1)],1),t.leftWindow?n("uni-left-window",{directives:[{name:"show",rawName:"v-show",value:t.showLeftWindow||t.apiShowLeftWindow,expression:"showLeftWindow || apiShowLeftWindow"}],ref:"leftWindow",style:t.leftWindowStyle,attrs:{"data-show":t.apiShowLeftWindow}},[t.apiShowLeftWindow?n("div",{staticClass:"uni-mask",on:{click:function(e){t.apiShowLeftWindow=!1}}}):t._e(),n("div",{staticClass:"uni-left-window"},[n("v-uni-left-window",t._b({ref:"left",on:{"hook:mounted":t.onLeftWindowInit}},"v-uni-left-window",t.bindWindow,!1))],1)]):t._e(),t.rightWindow?n("uni-right-window",{directives:[{name:"show",rawName:"v-show",value:t.showRightWindow||t.apiShowRightWindow,expression:"showRightWindow || apiShowRightWindow"}],ref:"rightWindow",style:t.rightWindowStyle,attrs:{"data-show":t.apiShowRightWindow}},[t.apiShowRightWindow?n("div",{staticClass:"uni-mask",on:{click:function(e){t.apiShowRightWindow=!1}}}):t._e(),n("div",{staticClass:"uni-right-window"},[n("v-uni-right-window",t._b({ref:"right",on:{"hook:mounted":t.onRightWindowInit}},"v-uni-right-window",t.bindWindow,!1))],1)]):t._e()],1)],1):n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.routerKey})],1)}),[],!1,null,null,null)),f=l.exports,d=n("dad6"),h=d["a"],p=(n("cbd0"),Object(o["a"])(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[t.visible?n("uni-toast",{attrs:{"data-duration":t.duration}},[t.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(t){t.preventDefault()}}}):t._e(),t.image||t.iconClass?n("div",{staticClass:"uni-toast"},[t.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:t.image}}):n("i",{staticClass:"uni-icon_toast",class:t.iconClass}),n("p",{staticClass:"uni-toast__content"},[t._v(" "+t._s(t.title)+" ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(" "+t._s(t.title)+" ")])])]):t._e()],1)}),[],!1,null,null,null)),v=p.exports,g=n("a409"),m=n("7687"),b=n("b405");var y={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}};function _(t){this.cancelColor_=y[t].cancelColor}var w={name:"Modal",components:{keypress:m["a"]},mixins:[g["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},data:function(){return{cancelColor_:"#000"}},watch:{visible:function(t){t?(this.cancelColor_=this.$parent.showModal.cancelColor,"#000"===this.$parent.showModal.cancelColor&&("dark"===Object(b["a"])()&&this._onThemeChange({theme:"dark"}),Object(b["c"])(this._onThemeChange))):Object(b["b"])(this._onThemeChange)}},methods:{_onThemeChange:function(t){var e=t.theme;_.call(this,e)},_close:function(t){var e=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,!0);this.editable&&"confirm"===t&&(e.content=this.$refs.editContent.value),this.$emit("close",e)}}},x=w,k=(n("96b9"),Object(o["a"])(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],on:{touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"uni-mask"}),n("div",{staticClass:"uni-modal"},[t.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title",domProps:{textContent:t._s(t.title)}})]):t._e(),t.editable?n("textarea",{ref:"editContent",staticClass:"uni-modal__textarea",attrs:{rows:"1",placeholder:t.placeholderText},domProps:{value:t.content}}):n("div",{staticClass:"uni-modal__bd",domProps:{textContent:t._s(t.content)},on:{touchmove:function(t){t.stopPropagation()}}}),n("div",{staticClass:"uni-modal__ft"},[t.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:t.cancelColor_},on:{click:function(e){return t._close("cancel")}}},[t._v(" "+t._s(t.cancelText)+" ")]):t._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:t.confirmColor},on:{click:function(e){return t._close("confirm")}}},[t._v(" "+t._s(t.confirmText)+" ")])])]),n("keypress",{attrs:{disable:!t.visible},on:{esc:function(e){return t._close("cancel")},enter:function(e){!t.editable&&t._close("confirm")}}})],1)],1)}),[],!1,null,null,null)),S=k.exports,C=n("a202"),T=n("0372"),O=n("39bd"),E=n("c700"),A=n("d4c9"),I=n("4ba6"),L=n("6f75");var j={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function M(t){var e=this;["listItemColor","cancelItemColor"].forEach((function(n){e[n]=j[t][n]}))}var P={name:"ActionSheet",components:{keypress:m["a"]},mixins:[T["c"],C["default"],O["a"],E["a"]],props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},data:function(){return{HEIGHT:260,contentHeight:0,titleHeight:0,deltaY:0,scrollTop:0,listItemColor:"#000000",cancelItemColor:"#000000"}},watch:{visible:function(t){var e=this;t?(this.$nextTick((function(){e.title&&(e.titleHeight=document.querySelector(".uni-actionsheet__title").offsetHeight),e._scroller.update(),e.contentHeight=e.$refs.content.clientHeight-e.HEIGHT,document.querySelectorAll(".uni-actionsheet__cell").forEach((function(t){(function(t){var e=0,n=0;t.addEventListener("touchstart",(function(t){var r=t.changedTouches[0];e=r.clientX,n=r.clientY})),t.addEventListener("touchend",(function(t){var r=t.changedTouches[0];if(Math.abs(r.clientX-e)<20&&Math.abs(r.clientY-n)<20){var i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(t){i[t]=r[t]})),t.target.dispatchEvent(i)}}))})(t)}))})),this.listItemColor=this.cancelItemColor=this.itemColor,"#000"===this.$parent.showActionSheet.itemColor&&("dark"===Object(b["a"])()&&this._onThemeChange({theme:"dark"}),Object(b["c"])(this._onThemeChange))):Object(b["b"])(this._onThemeChange)}},mounted:function(){var t=this;this.touchtrack(this.$refs.content,"_handleTrack",!0),this.$nextTick((function(){t.initScroller(t.$refs.content,{enableY:!0,friction:new A["a"](1e-4),spring:new I["a"](2,90,20),onScroll:function(e){t.scrollTop=e.target.scrollTop}})})),Object(L["b"])()},methods:{_onThemeChange:function(t){var e=t.theme;M.call(this,e)},_close:function(t){this.$emit("close",t)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t),Object(L["a"])({disable:!0});break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t),Object(L["a"])({disable:!1})}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;Math.abs(e)>10?(this.scrollTop+=e/3,this.scrollTop=this.scrollTop>=this.contentHeight?this.contentHeight:this.scrollTop<=0?0:this.scrollTop,this._scroller.scrollTo(this.scrollTop)):this.deltaY=e,t.preventDefault()}}},$=P,R=(n("5fe8"),Object(o["a"])($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-actionsheet",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask uni-actionsheet__mask",on:{click:function(e){return t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible},style:t.popupStyle.content},[n("div",{ref:"main",staticClass:"uni-actionsheet__menu",on:{wheel:t._handleWheel}},[t.title?n("div",{staticClass:"uni-actionsheet__cell",style:{height:t.titleHeight+"px"}}):t._e(),t.title?n("div",{staticClass:"uni-actionsheet__title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),n("div",{style:{maxHeight:t.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},t._l(t.itemList,(function(e,r){return n("div",{key:r,staticClass:"uni-actionsheet__cell",style:{color:t.listItemColor},on:{click:function(e){return t._close(r)}}},[t._v(" "+t._s(e)+" ")])})),0)])]),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.cancelItemColor},on:{click:function(e){return t._close(-1)}}},[t._v(" "+t._s(t.$$t("uni.showActionSheet.cancel"))+" ")])]),n("div",{style:t.popupStyle.triangle})]),n("keypress",{attrs:{disable:!t.visible},on:{esc:function(e){return t._close(-1)}}})],1)}),[],!1,null,null,null)),D=R.exports,B={name:"ImageView",props:{src:{type:String,default:""}},data:function(){return{direction:"none"}},created:function(){this.scale=1,this.imgWidth=0,this.imgHeight=0,this.width=0,this.height=0},methods:{onScale:function(t){var e=t.detail.scale;this.scale=e},onImgLoad:function(t){var e=t.target,n=e.getBoundingClientRect();this.imgWidth=n.width,this.imgHeight=n.height},onTouchStart:function(t){var e=this.$el,n=e.getBoundingClientRect();this.width=n.width,this.height=n.height,this.checkDirection(t)},onTouchEnd:function(t){var e=this.scale,n=e*this.imgWidth>this.width,r=e*this.imgHeight>this.height;this.direction=n&&r?"all":n?"horizontal":r?"vertical":"none",this.checkDirection(t)},checkDirection:function(t){var e=this.direction;"all"!==e&&"horizontal"!==e||t.stopPropagation()}}},N=B,U=(n("1867"),Object(o["a"])(N,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-movable-area",{staticClass:"image-view-area",nativeOn:{touchstart:function(e){return t.onTouchStart(e)},touchmove:function(e){return t.checkDirection(e)},touchend:function(e){return t.onTouchEnd(e)}}},[n("v-uni-movable-view",{staticClass:"image-view-view",attrs:{direction:t.direction,inertia:"",scale:"","scale-min":"1","scale-max":"4"},on:{scale:t.onScale}},[n("img",{staticClass:"image-view-img",attrs:{src:t.src},on:{load:t.onImgLoad}})])],1)}),[],!1,null,null,null)),V=U.exports,F={name:"PreviewImage",components:{imageView:V},props:{visible:{type:Boolean,default:!1},urls:{type:Array,default:function(){return[]}},current:{type:[String,Number],default:0}},data:function(){return{index:0}},watch:{visible:function(t){if(t){var e="number"===typeof this.current?this.current:this.urls.indexOf(this.current);this.index=e<0?0:e}}},mounted:function(){var t=this,e=0,n=0;this.$el.addEventListener("mousedown",(function(r){t.preventDefault=!1,e=r.clientX,n=r.clientY})),this.$el.addEventListener("mouseup",(function(r){(Math.abs(r.clientX-e)>20||Math.abs(r.clientY-n)>20)&&(t.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||this.$emit("close")}}},W=F,q=(n("4213"),Object(o["a"])(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"uni-system-preview-image",on:{click:t._click}},[n("v-uni-swiper",{staticClass:"uni-system-preview-image-swiper",attrs:{navigation:"auto",current:t.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(e){t.index=e}}},t._l(t.urls,(function(t,e){return n("v-uni-swiper-item",{key:e},[n("image-view",{attrs:{src:t}})],1)})),1),t._m(0)],1):t._e()}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-btn-back"},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])}],!1,null,null,null)),z=q.exports,H={Toast:v,Modal:S,ActionSheet:D,PreviewImage:z};function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e["a"]=function(t){for(var e=1;e1?n-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?p:255,[f,d,h,p]}return i.error("unsupported color:"+t),[0,0,0,255]}function _(t,e){this.type="pattern",this.data=t,this.colorStop=e}var w=function(){function t(e,n){h(this,t),this.type=e,this.data=n,this.colorStop=[]}return v(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,y(e)])}}]),t}();function x(t){this.width=t}var k=function(){function t(e,n){h(this,t),this.id=e,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return v(t,[{key:"draw",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=f(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(t=g.push(n)),m(this.id,this.pageId,"actionsChanged",{actions:r,reserve:e,callbackId:t})}},{key:"createLinearGradient",value:function(t,e,n,r){return new w("linear",[t,e,n,r])}},{key:"createCircularGradient",value:function(t,e,n){return new w("radial",[t,e,n])}},{key:"createPattern",value:function(t,e){if(void 0===e)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(e)<0))return new _(t,e);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+e+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(t){var e,n=this.state.font;return e=function(t,e){var n=document.createElement("canvas"),r=n.getContext("2d");return r.font=e,r.measureText(t).width||0}(t,n),new x(e)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}},{key:"moveTo",value:function(t,e){this.path.push({method:"moveTo",data:[t,e]}),this.subpath=[[t,e]]}},{key:"lineTo",value:function(t,e){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[t,e]}):this.path.push({method:"lineTo",data:[t,e]}),this.subpath.push([t,e])}},{key:"quadraticCurveTo",value:function(t,e,n,r){this.path.push({method:"quadraticCurveTo",data:[t,e,n,r]}),this.subpath.push([n,r])}},{key:"bezierCurveTo",value:function(t,e,n,r,i,o){this.path.push({method:"bezierCurveTo",data:[t,e,n,r,i,o]}),this.subpath.push([i,o])}},{key:"arc",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[t,e,n,r,i,o]}),this.subpath.push([t,e])}},{key:"rect",value:function(t,e,n,r){this.path.push({method:"rect",data:[t,e,n,r]}),this.subpath=[[t,e]]}},{key:"arcTo",value:function(t,e,n,r,i){this.path.push({method:"arcTo",data:[t,e,n,r,i]}),this.subpath.push([n,r])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:f(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var t=f(this.actions);return this.clearActions(),t}},{key:"lineDashOffset",set:function(t){this.actions.push({method:"setLineDashOffset",data:[t]})}},{key:"globalCompositeOperation",set:function(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}},{key:"shadowBlur",set:function(t){this.actions.push({method:"setShadowBlur",data:[t]})}},{key:"shadowColor",set:function(t){this.actions.push({method:"setShadowColor",data:[t]})}},{key:"shadowOffsetX",set:function(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}},{key:"shadowOffsetY",set:function(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}},{key:"font",set:function(t){var e=this;this.state.font=t;var n=t.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),o=parseFloat(n[3]),a=n[7],c=[];r.forEach((function(t,n){["italic","oblique","normal"].indexOf(t)>-1?(c.push({method:"setFontStyle",data:[t]}),e.state.fontStyle=t):["bold","normal"].indexOf(t)>-1?(c.push({method:"setFontWeight",data:[t]}),e.state.fontWeight=t):0===n?(c.push({method:"setFontStyle",data:["normal"]}),e.state.fontStyle="normal"):1===n&&s()})),1===r.length&&s(),r=c.map((function(t){return t.data[0]})).join(" "),this.state.fontSize=o,this.state.fontFamily=a,this.actions.push({method:"setFont",data:["".concat(r," ").concat(o,"px ").concat(a)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){c.push({method:"setFontWeight",data:["normal"]}),e.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(t){this.setFillStyle(t)}},{key:"strokeStyle",set:function(t){this.setStrokeStyle(t)}},{key:"globalAlpha",set:function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}},{key:"textAlign",set:function(t){this.actions.push({method:"setTextAlign",data:[t]})}},{key:"lineCap",set:function(t){this.actions.push({method:"setLineCap",data:[t]})}},{key:"lineJoin",set:function(t){this.actions.push({method:"setLineJoin",data:[t]})}},{key:"lineWidth",set:function(t){this.actions.push({method:"setLineWidth",data:[t]})}},{key:"miterLimit",set:function(t){this.actions.push({method:"setMiterLimit",data:[t]})}},{key:"textBaseline",set:function(t){this.actions.push({method:"setTextBaseline",data:[t]})}}]),t}();function S(e,n){if(n)return new k(e,n.$page.id);var r=Object(c["a"])();if(r)return new k(e,r);t.emit("onError","createCanvasContext:fail")}function C(t,e){var n=t.canvasId,r=t.x,i=t.y,o=t.width,a=t.height,u=Object(c["a"])();if(u){var l=g.push((function(t){var n=t.data;n&&n.length&&(t.data=new Uint8ClampedArray(n)),Object(s["a"])(e,t)}));m(n,u,"getImageData",{x:r,y:i,width:o,height:a,callbackId:l})}else Object(s["a"])(e,{errMsg:"canvasGetImageData:fail"})}function T(t,e){var n=t.canvasId,r=t.data,i=t.x,o=t.y,a=t.width,u=t.height,l=Object(c["a"])();if(l){var f=g.push((function(t){Object(s["a"])(e,t)}));r=Array.prototype.slice.call(r),m(n,l,"putImageData",{data:r,x:i,y:o,width:a,height:u,compressed:void 0,callbackId:f})}else Object(s["a"])(e,{errMsg:"canvasPutImageData:fail"})}function O(t,e){var n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.width,l=t.height,f=t.destWidth,d=t.destHeight,h=t.canvasId,p=t.fileType,v=t.quality,b=Object(c["a"])();if(b){var y=g.push((function(t){Object(s["a"])(e,t)})),_="".concat(u["TEMP_PATH"],"/canvas");m(h,b,"toTempFilePath",{x:r,y:o,width:a,height:l,destWidth:f,destHeight:d,fileType:p,quality:v,dirname:_,callbackId:y})}else Object(s["a"])(e,{errMsg:"canvasToTempFilePath:fail"})}[].concat(["scale","rotate","translate","setTransform","transform"],["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"]).forEach((function(t){k.prototype[t]=function(t){switch(t){case"fill":case"stroke":return function(){this.actions.push({method:t+"Path",data:f(this.path)})};case"fillRect":return function(t,e,n,r){this.actions.push({method:"fillPath",data:[{method:"rect",data:[t,e,n,r]}]})};case"strokeRect":return function(t,e,n,r){this.actions.push({method:"strokePath",data:[{method:"rect",data:[t,e,n,r]}]})};case"fillText":case"strokeText":return function(e,n,r,i){var o=[e.toString(),n,r];"number"===typeof i&&o.push(i),this.actions.push({method:t,data:o})};case"drawImage":return function(e,n,r,i,o,a,c,s,u){var l;function f(t){return"number"===typeof t}void 0===u&&(a=n,c=r,s=i,u=o,n=void 0,r=void 0,i=void 0,o=void 0),l=f(n)&&f(r)&&f(i)&&f(o)?[e,a,c,s,u,n,r,i,o]:f(s)&&f(u)?[e,a,c,s,u]:[e,a,c],this.actions.push({method:t,data:l})};default:return function(){for(var e=arguments.length,n=new Array(e),r=0;re-n&&tthis._t&&(t=this._t,this._lastDt=t);var e=this._x_v*t+.5*this._x_a*Math.pow(t,2)+this._x_s,n=this._y_v*t+.5*this._y_a*Math.pow(t,2)+this._y_s;return(this._x_a>0&&ethis._endPositionX)&&(e=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:e,y:n}},c.prototype.ds=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t),{dx:this._x_v+this._x_a*t,dy:this._y_v+this._y_a*t}},c.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},c.prototype.dt=function(){return-this._x_v/this._x_a},c.prototype.done=function(){var t=i(this.s().x,this._endPositionX)||i(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},c.prototype.setEnd=function(t,e){this._endPositionX=t,this._endPositionY=e},c.prototype.reconfigure=function(t,e){this._m=t,this._f=1e3*e},s.prototype._solve=function(t,e){var n=this._c,r=this._m,i=this._k,o=n*n-4*r*i;if(0===o){var a=-n/(2*r),c=t,s=e/(a*t);return{x:function(t){return(c+s*t)*Math.pow(Math.E,a*t)},dx:function(t){var e=Math.pow(Math.E,a*t);return a*(c+s*t)*e+s*e}}}if(o>0){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),f=(e-u*t)/(l-u),d=t-f;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+f*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+f*l*n}}}var h=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=t,g=(e-p*t)/h;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(h*t)+g*Math.sin(h*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(h*t),r=Math.sin(h*t);return e*(g*h*n-v*h*r)+p*e*(g*r+v*n)}}},s.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},s.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},s.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!o(e,.1)){e=e||0;var r=this._endPosition;this._solution&&(o(e,.1)&&(e=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),o(e,.1)&&(e=0),o(r,.1)&&(r=0),r+=this._endPosition),this._solution&&o(r-t,.1)&&o(e,.1)||(this._endPosition=t,this._solution=this._solve(r-this._endPosition,e),this._startTime=n)}},s.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},s.prototype.done=function(t){return t||(t=(new Date).getTime()),i(this.x(),this._endPosition,.1)&&o(this.dx(),.1)},s.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},s.prototype.springConstant=function(){return this._k},s.prototype.damping=function(){return this._c},s.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]},u.prototype.setEnd=function(t,e,n,r){var i=(new Date).getTime();this._springX.setEnd(t,r,i),this._springY.setEnd(e,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},u.prototype.x=function(){var t=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(t),y:this._springY.x(t),scale:this._springScale.x(t)}},u.prototype.done=function(){var t=(new Date).getTime();return this._springX.done(t)&&this._springY.done(t)&&this._springScale.done(t)},u.prototype.reconfigure=function(t,e,n){this._springX.reconfigure(t,e,n),this._springY.reconfigure(t,e,n),this._springScale.reconfigure(t,e,n)};var l=n("6f75"),f=!1;function d(t){f||(f=!0,requestAnimationFrame((function(){t(),f=!1})))}function h(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)}function p(t,e,n){var r={id:0,cancelled:!1};return function e(n,r,i,o){if(!n||!n.cancelled){i(r);var a=t.done();a||n.cancelled||(n.id=requestAnimationFrame(e.bind(null,n,r,i,o))),a&&o&&o(r)}}(r,t,e,n),{cancel:function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}.bind(null,r),model:t}}var v={name:"MovableView",mixins:[r["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var t=Number(this.damping);return isNaN(t)?20:t},frictionNumber:function(){var t=Number(this.friction);return isNaN(t)||t<=0?2:t},scaleMinNumber:function(){var t=Number(this.scaleMin);return isNaN(t)?.1:t},scaleMaxNumber:function(){var t=Number(this.scaleMax);return isNaN(t)?10:t},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(t){this.xSync=this._getPx(t)},xSync:function(t){this._setX(t)},y:function(t){this.ySync=this._getPx(t)},ySync:function(t){this._setY(t)},disabled:function(){this.__handleTouchStart()},scaleValue:function(t){this.scaleValueSync=Number(t)||0},scaleValueSync:function(t){this._setScaleValue(t)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new u(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new c(1,this.frictionNumber),this._declineX=new a,this._declineY=new a,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",Object(l["b"])()},methods:{_getPx:function(t){return/\d+[ur]px$/i.test(t)?uni.upx2px(parseFloat(t)):Number(t)||0},_setX:function(t){if(this.xMove){if(t+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(t+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return t},_setY:function(t){if(this.yMove){if(t+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,t+this._scaleOffset.y,this._scale)}return t},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(t){return!!this.scale&&(t=this._adjustScale(t),this._updateScale(t,!0),this._updateOldScale(t),t)},__handleTouchStart:function(){this._isScaling||this.disabled||(Object(l["a"])({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(t){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,r=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=t.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dx/t.detail.dy)<1)),this.yMove&&(r=t.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(r),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dy/t.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(t.detail.timeStamp),!this._checkCanMove){t.preventDefault();var i="touch";nthis.maxX&&(this.outOfBounds?(i="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),rthis.maxY&&(this.outOfBounds?(i="touch-out-of-bounds",r=this.maxY+this._declineY.x(r-this.maxY)):r=this.maxY),d((function(){e._setTransform(n,r,e._scale,i)}))}}},__handleTouchEnd:function(){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(l["a"])({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,n),this._friction.setS(this._translateX,this._translateY);var r=this._friction.delta().x,i=this._friction.delta().y,o=r+this._translateX,a=i+this._translateY;othis.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*i/r),athis.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*r/i),this._friction.setEnd(o,a),this._FA=p(this._friction,(function(){var e=t._friction.s(),n=e.x,r=e.y;t._setTransform(n,r,t._scale,"friction")}),(function(){t._FA.cancel()}))}},_onTrack:function(t){switch(t.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(t);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(t,e){var n=!1;return t>this.maxX?(t=this.maxX,n=!0):tthis.maxY?(e=this.maxY,n=!0):e3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateX||0),null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateY||0),t=Number(t.toFixed(1)),e=Number(e.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===t&&this._translateY===e||i||this.$trigger("change",{},{x:h(t,this._scaleOffset.x),y:h(e,this._scaleOffset.y),source:r}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),o&&n!==this._scale&&this.$trigger("scale",{},{x:t,y:e,scale:n});var a="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=a,this.$el.style.webkitTransform=a,this._translateX=t,this._translateY=e,this._scale=n}}},g=v,m=(n("5e27"),n("8844")),b=Object(m["a"])(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-movable-view",t._g({},t.$listeners),[n("v-uni-resize-sensor",{on:{resize:t.setParent}}),t._t("default")],2)}),[],!1,null,null,null);e["default"]=b.exports},"65db":function(t,e,n){},6625:function(t,e,n){"use strict";n.r(e),n.d(e,"createAudioContext",(function(){return i})),n.d(e,"createVideoContext",(function(){return o})),n.d(e,"createMapContext",(function(){return a})),n.d(e,"createCanvasContext",(function(){return c}));var r=[{name:"id",type:String,required:!0}],i=r,o=r,a=r,c=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},6729:function(t,e,n){},6773:function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"chooseImage",(function(){return f}));var i=n("bdee"),o=n("0372"),a=n("493d"),c=n("909e"),s=t,u=s.invokeCallbackHandler,l=null;function f(t,e){var n=t.count,s=t.sourceType,f=t.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:s,extension:f,type:"image"}),document.body.appendChild(l),l.addEventListener("change",(function(t){for(var r=[],o=t.target.files.length,a=function(e){var o=t.target.files[e],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||Object(i["b"])(o),a}}),e1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:o(t)},beforeAll:function(){r=""}},e)}function c(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var s=a("redirectTo"),u=a("reLaunch"),l=a("navigateTo",c(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),f=a("switchTab"),d=Object.assign({delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}},c(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),h={url:{type:String,required:!0,validator:o("preloadPage")}},p={url:{type:String,required:!0,validator:o("unPreloadPage")}}},"6c36":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n){var r=t,i=r.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location",query:e},(function(){t.subscribe("onChooseLocation",(function e(r){t.unsubscribe("onChooseLocation",e),i(n,r?Object.assign(r,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})}))}),(function(){i(n,{errMsg:"chooseLocation:fail"})}))}n.d(e,"chooseLocation",(function(){return r}))}.call(this,n("2c9f"))},"6d4b":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r,i=n("b435"),o=n("d359"),a={};function c(e,n){var c=Object(i["e"])();if(c.key){var s=a[c.type]=a[c.type]||[];if(r)n(r);else if(window[c.type]&&window[c.type].maps)r=i["c"]?window[c.type]:window[c.type].maps,r.Callout=r.Callout||Object(o["a"])(r),n(r);else if(s.length)s.push(n);else{s.push(n);var u=window,l="__map_callback__"+c.type;u[l]=function(){delete u[l],r=i["c"]?window[c.type]:window[c.type].maps,r.Callout=Object(o["a"])(r),s.forEach((function(t){return t(r)})),s.length=0};var f=document.createElement("script"),d=function(t){return{qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&"}[t]}(c.type);c.type===i["d"].QQ&&e.push("geometry"),e.length&&(d+="libraries=".concat(e.join("%2C"),"&")),i["c"]&&function(t){window._AMapSecurityConfig={securityJsCode:t.securityJsCode||"",serviceHost:t.serviceHost||""}}(c),f.src="".concat(d,"key=").concat(c.key,"&callback=").concat(l),f.onerror=function(){t.error("Map load failed.")},document.body.appendChild(f)}}else t.error("Map key not configured.")}}).call(this,n("418b")["default"])},"6ddd":function(t,e,n){},"6f73":function(t,e,n){"use strict";n.r(e),n.d(e,"makePhoneCall",(function(){return r}));var r={phoneNumber:{type:String,required:!0,validator:function(t){if(!t)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},"6f75":function(t,e,n){"use strict";function r(){}function i(t){t.disable}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},7068:function(t,e,n){"use strict";n.r(e),n.d(e,"onKeyboardHeightChange",(function(){return a})),n.d(e,"offKeyboardHeightChange",(function(){return c}));var r,i=n("9131"),o=n("745a");function a(t){Object(i["b"])(r),r=t}function c(){r=null}Object(o["d"])("onKeyboardHeightChange",(function(t){r&&Object(i["a"])(r,t)}))},"70bc":function(t,e,n){},"71a4":function(t,e,n){"use strict";(function(t){function r(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}function i(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n("418b")["default"])},"71be":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("340d"),i=n("cff9"),o=n("9798");function a(){return{created:function(){var t=Object(r["e"])(this.$route.query);(function(t,e){var n=t.$route;t.route=n.meta.pagePath,t.options||(t.options=e);var i=Object(r["i"])(n.params,"__id__")?n.params.__id__:n.meta.id,a=n.fullPath;n.meta.isEntry&&-1===a.indexOf(n.meta.pagePath)&&(a="/"+n.meta.pagePath+a.replace("/","")),t.__page__={id:i,path:n.path,route:n.meta.pagePath,fullPath:a,options:e,meta:Object.assign({},n.meta)};var c=t.$router.$eventChannel||new o["a"];t.getOpenerEventChannel=function(){return c},t.$vm=t,t.$root=t,t.$holder=t.$parent.$parent,t.$mp={mpType:"page",page:t,query:{},status:""}})(this,t),Object(i["b"])(this,"onLoad",t),Object(i["b"])(this,"onShow")}}}},"724c":function(t,e,n){"use strict";var r=n("5a2d"),i=n.n(r);i.a},7317:function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",(function(){return a})),n.d(e,"closePreviewImage",(function(){return c}));var r=n("745a"),i="longPressActionsCallback",o={};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o=t.longPressActions||{},(o.success||o.fail||o.complete)&&(o.callbackId=i),Object(r["c"])("previewImagePlus",t)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["c"])("closePreviewImagePlus",t)}Object(r["d"])(i,(function(t){var e=t.errMsg||"";new RegExp("\\:\\s*fail").test(e)?o.fail&&o.fail(t):o.success&&o.success(t),o.complete&&o.complete(t)}))},"745a":function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n("b15e");function i(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?v.PICKER:v.SELECT},system:function(){if(this.mode===h.DATE&&!Object.values(p).includes(this.fields)&&this.isDesktop&&/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""}},watch:{visible:function(t){var e=this;t?(clearTimeout(this.__contentVisibleDelay),this.contentVisible=t,this._select()):this.__contentVisibleDelay=setTimeout((function(){e.contentVisible=t}),300)},value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray()},valueArray:function(t){var e=this;if(this.mode===h.TIME||this.mode===h.DATE){var n=this.mode===h.TIME?this._getTimeValue:this._getDateValue,r=this.valueArray,i=this.startArray,o=this.endArray;if(this.mode===h.DATE){var a=this.dateArray,c=a[2].length,s=Number(a[2][r[2]])||1,u=new Date("".concat(a[0][r[0]],"/").concat(a[1][r[1]],"/").concat(s)).getDate();un(o)&&this._cloneArray(r,o)}t.forEach((function(t,n){t!==e.oldValueArray[n]&&(e.oldValueArray[n]=t,e.mode===h.MULTISELECTOR&&e.$trigger("columnchange",{},{column:n,value:t}))}))}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this._setValueSync()},beforeDestroy:function(){this.$refs.picker.remove(),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(t){var e=this;if(!this.disabled){this.valueChangeSource="";var n=this.$refs.picker;n.remove(),(document.querySelector("uni-app")||document.body).appendChild(n),n.style.display="block";var r=t.currentTarget.getBoundingClientRect();this.popover={top:r.top,left:r.left,width:r.width,height:r.height},setTimeout((function(){e.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case h.SELECTOR:this.valueSync=0;break;case h.MULTISELECTOR:this.valueSync=this.value.map((function(t){return 0}));break;case h.DATE:case h.TIME:this.valueSync="";break;default:break}},_createTime:function(){var t=[],e=[];t.splice(0,t.length);for(var n=0;n<24;n++)t.push((n<10?"0":"")+n);e.splice(0,e.length);for(var r=0;r<60;r++)e.push((r<10?"0":"")+r);this.timeArray.push(t,e)},_createDate:function(){for(var t=[],e=function(t){var e=(new Date).getFullYear(),n=e-150,r=e+150;if(t.start){var i=new Date(t.start).getFullYear();!isNaN(i)&&ir&&(r=o)}return{start:n,end:r}}(this),n=e.start,r=e.end;n<=r;n++)t.push(String(n));for(var i=[],o=1;o<=12;o++)i.push((o<10?"0":"")+o);for(var a=[],c=1;c<=31;c++)a.push((c<10?"0":"")+c);this.dateArray.push(t,i,a)},_getTimeValue:function(t){return 60*t[0]+t[1]},_getDateValue:function(t){return 31*t[0]*12+31*(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;na?0:o)}break;case h.TIME:case h.DATE:this.valueSync=String(t);break;default:var c=Number(t);this.valueSync=c<0?0:c;break}},_setValueArray:function(){var t,e=this.valueSync;switch(this.mode){case h.MULTISELECTOR:t=u(e);break;case h.TIME:t=this._getDateValueArray(e,Object(o["g"])({mode:h.TIME}));break;case h.DATE:t=this._getDateValueArray(e,Object(o["g"])({mode:h.DATE}));break;default:t=[e];break}this.oldValueArray=u(t),this.valueArray=u(t)},_getValue:function(){var t=this,e=this.valueArray;switch(this.mode){case h.SELECTOR:return e[0];case h.MULTISELECTOR:return e.map((function(t){return t}));case h.TIME:return this.valueArray.map((function(e,n){return t.timeArray[n][e]})).join(":");case h.DATE:return this.valueArray.map((function(e,n){return t.dateArray[n][e]})).join("-")}},_getDateValueArray:function(t,e){var n,r=this.mode===h.DATE?"-":":",i=this.mode===h.DATE?this.dateArray:this.timeArray;if(this.mode===h.TIME)n=2;else switch(this.fields){case p.YEAR:n=1;break;case p.MONTH:n=2;break;default:n=3;break}for(var o=String(t).split(r),a=[],c=0;c=0&&(a=e?this._getDateValueArray(e):a.map((function(){return 0}))),a},_change:function(){this._close(),this.valueChangeSource="click";var t=this._getValue();this.valueSync=Array.isArray(t)?t.map((function(t){return t})):t,this.$trigger("change",{},{value:t})},_cancel:function(t){if("firefox"===this.system){var e=this.popover,n=e.top,r=e.left,i=e.width,o=e.height,a=t.pageX,c=t.pageY;if(a>r&&an&&c0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e.animation={duration:t.duration||0,timingFunc:t.timingFunc||"linear"}}}},o={title:{type:String,required:!0}}},"7aa4":function(t,e,n){},"7aa9":function(t,e,n){"use strict";n.r(e);var r=n("4b21"),i=n("340d"),o=n("4738"),a={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},c={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function s(t){return t.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(t,e){if(Object(i["i"])(c,e)&&c[e])return c[e];if(/^#[0-9]{1,4}$/.test(e))return String.fromCharCode(e.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(e))return String.fromCharCode("0"+e.slice(1));var n=document.createElement("div");return n.innerHTML=t,n.innerText||n.textContent}))}function u(t,e,n){return"img"===t&&"src"===e?Object(o["a"])(n):n}function l(t,e,n,r){return t.forEach((function(t){if(Object(i["l"])(t))if(Object(i["i"])(t,"type")&&"node"!==t.type)"text"===t.type&&"string"===typeof t.text&&""!==t.text&&e.appendChild(document.createTextNode(s(t.text)));else{if("string"!==typeof t.name||!t.name)return;var o=t.name.toLowerCase();if(!Object(i["i"])(a,o))return;var c=document.createElement(o);if(!c)return;var f=t.attrs;if(n&&c.setAttribute(n,""),Object(i["l"])(f)){var d=a[o]||[];Object.keys(f).forEach((function(t){var e=f[t];switch(t){case"class":Array.isArray(e)&&(e=e.join(" "));case"style":c.setAttribute(t,e);break;default:-1!==d.indexOf(t)&&c.setAttribute(t,u(o,t,e))}}))}(function(t,e,n){["a","img"].includes(t.name)&&n&&(e.setAttribute("onClick","return false;"),e.addEventListener("click",(function(e){n(e,{node:t}),e.stopPropagation()}),!0))})(t,c,r);var h=t.children;Array.isArray(h)&&h.length&&l(t.children,c,n,r),e.appendChild(c)}})),e}var f={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(t){this._renderNodes(t)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(t){var e="",n=this;while(n)!e&&(e=n.$options._scopeId),n=n.$parent;var i=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof t&&(t=Object(r["a"])(t));var o=l(t,document.createDocumentFragment(),e,i&&this.triggerItemClick);o.appendChild(this.$refs.sensor.$el);var a=this.$refs.content;a.innerHTML="",a.appendChild(o)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",t,e)}}},d=f,h=n("8844"),p=Object(h["a"])(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-rich-text",t._g({},t.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._updateView()}}})],1)])}),[],!1,null,null,null);e["default"]=p.exports},"7cce":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n("340d"),i=function(){var t=document.createElement("canvas");t.height=t.width=0;var e=t.getContext("2d"),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),o=CanvasRenderingContext2D.prototype;function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.width=t.offsetWidth*(e?i:1),t.height=t.offsetHeight*(e?i:1),t.__hidpi__=e,t.__context2d__=t.getContext("2d"),t.__context2d__.__hidpi__=e}o.drawImageByCanvas=function(t){return function(e,n,r,o,a,c,s,u,l,f){if(!this.__hidpi__)return t.apply(this,arguments);n*=i,r*=i,o*=i,a*=i,c*=i,s*=i,u=f?u*i:u,l=f?l*i:l,t.call(this,e,n,r,o,a,c,s,u,l)}}(o.drawImage),1!==i&&(function(t,e){for(var n in t)Object(r["i"])(t,n)&&e(t[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(t,e){o[e]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map((function(t){return t*i}));else if(Array.isArray(t))for(var r=0;r10&&(t=2*Math.round(t/2)),t}var a={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var t="auto",e="";switch(this.mode){case"aspectFit":t="contain",e="center center";break;case"aspectFill":t="cover",e="center center";break;case"widthFix":case"heightFix":t="100% 100%";break;case"top":e="center top";break;case"bottom":e="center bottom";break;case"center":e="center center";break;case"left":e="left center";break;case"right":e="right center";break;case"top left":e="left top";break;case"top right":e="right top";break;case"bottom left":e="left bottom";break;case"bottom right":e="right bottom";break;default:t="100% 100%",e="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":e,"background-size":t,"background-repeat":"no-repeat"}}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"!==e&&"heightFix"!==e||this._resetSize(),"widthFix"!==t&&"heightFix"!==t||this._fixSize()},contentPath:function(t){!t&&this.__img&&(this.__img.remove(),delete this.__img)}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var t=this.$el;if("widthFix"===this.mode){var e=t.offsetWidth;e&&(t.style.height=o(e/this.ratio)+"px")}else if("heightFix"===this.mode){var n=t.offsetHeight;n&&(t.style.width=o(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var t=this,e=this.$getRealPath(this.src);if(e){var n=this._img=this._img||new Image;n.onload=function(r){t._img=null;var i=t.originalWidth=n.width,o=t.originalHeight=n.height;t._fixSize(),t.contentPath=e,n.draggable=t.draggable,t.__img&&t.__img.remove(),t.__img=n,t.$el.appendChild(n),t.$trigger("load",r,{width:i,height:o})},n.onerror=function(e){t._img=null,t._resetData(),t.$trigger("error",e,{errMsg:"GET ".concat(t.src," 404 (Not Found)")})},n.src=e}else this._clearImage(),this._resetData()},_clearImage:function(){var t=this._img;t&&(t.onload=null,t.onerror=null,this._img=null)}}},c=a,s=(n("4dc6"),n("8844")),u=Object(s["a"])(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-image",t._g({},t.$listeners),[n("div",{ref:"content",style:t.style}),"widthFix"===t.mode||"heightFix"===t.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._fixSize()}}}):t._e()],1)}),[],!1,null,null,null);e["default"]=u.exports},"7fd2":function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"chooseFile",(function(){return f}));var i=n("bdee"),o=n("0372"),a=n("493d"),c=n("909e"),s=t,u=s.invokeCallbackHandler,l=null;function f(t,e){var n=t.count,s=t.sourceType,f=t.type,d=t.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:s,type:f,extension:d}),document.body.appendChild(l),l.addEventListener("change",(function(t){for(var r=[],o=t.target.files.length,a=function(e){var o=t.target.files[e],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||Object(i["b"])(o),a}}),e100&&(t=100),t}},watch:{realPercent:function(t,e){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=e||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var t=this;this.active?(this.currentPercent=this.activeMode===r.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){t.currentPercent+1>t.realPercent?(t.currentPercent=t.realPercent,t.strokeTimer&&clearInterval(t.strokeTimer)):t.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},o=i,a=(n("a18d"),n("8844")),c=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-progress",t._g({staticClass:"uni-progress"},t.$listeners),[n("div",{staticClass:"uni-progress-bar",style:t.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:t.innerBarStyle})]),t.showInfo?[n("p",{staticClass:"uni-progress-info"},[t._v(" "+t._s(t.currentPercent)+"% ")])]:t._e()],2)}),[],!1,null,null,null);e["default"]=c.exports},8076:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"previewImage",(function(){return a})),n.d(e,"closePreviewImage",(function(){return c}));var r=t,i=r.emit,o=r.invokeCallbackHandler;function a(t,e){i("onShowPreviewImage",t,(function(t){o(e,{errMsg:"previewImage:ok"})}))}function c(t,e){i("onClosePreviewImage",(function(){o(e,{errMsg:"closePreviewImage:ok"})}))}}.call(this,n("2c9f"))},"81ff":function(t,e,n){"use strict";n.r(e),n.d(e,"vibrateLong",(function(){return i})),n.d(e,"vibrateShort",(function(){return o}));var r=!!window.navigator.vibrate;function i(){return r&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function o(){return r&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"82f1":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getVideoInfo",(function(){return i}));var r=n("bdee");function i(e,n){var i=e.src,o=t,a=o.invokeCallbackHandler;Object(r["f"])(i,!0).then((function(t){return t})).catch((function(){return{}})).then((function(t){var e=t.size?{size:t.size,errMsg:"getVideoInfo:ok"}:{errMsg:"getVideoInfo:fail"},r=document.createElement("video");if(void 0!==r.onloadedmetadata){var o=setTimeout((function(){r.onloadedmetadata=null,r.onerror=null,a(n,e)}),i.startsWith("data:")||i.startsWith("blob:")?300:3e3);r.onloadedmetadata=function(){clearTimeout(o),r.onerror=null,a(n,Object.assign(e,{size:Math.ceil((t?t.size:0)/1024),duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0,errMsg:"getVideoInfo:ok"}))},r.onerror=function(){clearTimeout(o),r.onloadedmetadata=null,a(n,e)},r.src=i}else a(n,e)}))}}.call(this,n("2c9f"))},8379:function(t,e,n){"use strict";n.r(e),n.d(e,"createSelectorQuery",(function(){return g}));var r=n("340d"),i=n("745a"),o=n("6352"),a=n("ed2c"),c=n("e68a"),s=n("5883");function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=document.getElementById(e);r&&n&&(r.parentNode.removeChild(r),r=null),r||(r=document.createElement("style"),r.type="text/css",e&&(r.id=e),document.getElementsByTagName("head")[0].appendChild(r)),r.appendChild(document.createTextNode(t))}n.d(e,"a",(function(){return r}))},"86d3":function(t,e,n){"use strict";n.r(e),n.d(e,"getBackgroundAudioManager",(function(){return f}));var r=n("745a");function i(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(!r){var e=["touchstart","touchmove","touchend","mousedown","mouseup"];e.forEach((function(t){document.addEventListener(t,(function(){!c&&s(!0),c++,setTimeout((function(){!--c&&s(!1)}),0)}),o)})),r=!0}a.push(t)}e["a"]={data:function(){return{userInteract:!1}},mounted:function(){u(this)},beforeDestroy:function(){(function(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)})(this)},addInteractListener:u,getStatus:function(){return!!c}}},"89ce":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"request",(function(){return c}));var r=n("340d");function i(t,e){for(var n=0;n-1&&(this.selectedIndex=n)}}},methods:{_getRealPath:function(t){return/^([a-z-]+:)?\/\//i.test(t)||/^data:.*,.*/.test(t)||0===t.indexOf("/")||(t="/"+t),Object(r["a"])(t)},_switchTab:function(e,n){var r=e.text,i=e.pagePath;this.selectedIndex=n;var o="/"+i;o===__uniRoutes[0].alias&&(o="/");var a={index:n,text:r,pagePath:i};this.$emit("onTabItemTap",a),this.$route.path===o&&t.emit("onTabItemTap",a)}}}}).call(this,n("2c9f"))},"8b82":function(t,e,n){"use strict";var r=Object.create(null),i=n("4b7e");i.keys().forEach((function(t){Object.assign(r,i(t))})),e["a"]=r},"8c7c":function(e,n){e.exports=t},"8cbb":function(t,e,n){"use strict";var r=n("27d2"),i=n.n(r);i.a},"8d7d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("c80c"),i=n("f621"),o=n.n(i);function a(){if(uni.canIUse("css.var")){var t=document.documentElement.style,e=parseInt((t.getPropertyValue("--window-top").match(/\d+/)||["0"])[0]),n=parseInt((t.getPropertyValue("--window-bottom").match(/\d+/)||["0"])[0]),i=parseInt((t.getPropertyValue("--window-left").match(/\d+/)||["0"])[0]),a=parseInt((t.getPropertyValue("--window-right").match(/\d+/)||["0"])[0]),c=parseInt((t.getPropertyValue("--top-window-height").match(/\d+/)||["0"])[0]);return{top:(e?e+o.a.top:0)+(c||0),bottom:n?n+o.a.bottom:0,left:i?i+o.a.left:0,right:a?a+o.a.right:0}}var s=0,u=0,l=getCurrentPages();if(l.length){var f=l[l.length-1].$parent.$parent,d=f.navigationBar.type;s="default"===d||"float"===d?r["a"]:0}var h=getApp();return h&&(u=h.$children[0]&&h.$children[0].showTabBar?r["d"]:0),{top:s,bottom:u,left:0,right:0}}},"8def":function(t,e,n){"use strict";var r=n("70bc"),i=n.n(r);i.a},"8f2f":function(t,e,n){"use strict";function r(t,e){if(e){if(0===e.indexOf("/"))return e}else{if(e=t,0===e.indexOf("/"))return e;var n=getCurrentPages();t=n.length?n[n.length-1].$page.route:""}if(0===e.indexOf("./"))return r(t,e.substr(2));for(var i=e.split("/"),o=i.length,a=0;a0?t.split("/"):[];return c.splice(c.length-a-1,a+1),"/"+c.concat(i).join("/")}n.d(e,"a",(function(){return r}))},"8f80":function(t,e,n){"use strict";n.r(e);var r=n("fa54"),i=r["a"],o=(n("f08e"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-scroll-view",t._g({},t.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":t.scrollX?"auto":"hidden","overflow-y":t.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[t.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":t.refresherBackground,height:t.refresherHeight+"px"}},["none"!==t.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==t.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+t.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):t._e(),"refreshing"==t.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):t._e()])]):t._e(),"none"==t.refresherDefaultStyle?t._t("refresher"):t._e()],2):t._e(),t._t("default")],2)])])])}),[],!1,null,null,null);e["default"]=a.exports},"8fc6":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7553"),i=n("cff9");function o(t,e){e.getApp;var n=e.getCurrentPages;function o(t){return function(e,r){r=parseInt(r);var o=n(),a=o.find((function(t){return t.$page.id===r}));a&&Object(i["b"])(a,t,e)}}var a=Object(r["a"])("requestComponentInfo");var c=Object(r["a"])("requestComponentObserver");var s=Object(r["a"])("requestMediaQueryObserver");t("onPageReady",o("onReady")),t("onPageScroll",o("onPageScroll")),t("onReachBottom",o("onReachBottom")),t("onRequestComponentInfo",(function(t){var e=t.reqId,n=t.res,r=a.pop(e);r&&r(n)})),t("onRequestComponentObserver",(function(t){var e=t.reqId,n=t.reqEnd,r=t.res,i=c.get(e);if(i){if(n)return void c.pop(e);i(r)}})),t("onRequestMediaQueryObserver",(function(t){var e=t.reqId,n=t.reqEnd,r=t.res,i=s.get(e);if(i){if(n)return void s.pop(e);i(r)}}))}},"909e":function(t,e,n){"use strict";var r=n("0db8");n.d(e,"a",(function(){return r["a"]}));var i=n("2ace");n.d(e,"f",(function(){return i["a"]}));var o=n("4335");n.d(e,"c",(function(){return o["a"]}));var a=n("23a1");n.d(e,"g",(function(){return a["a"]}));var c=n("0e4a");n.d(e,"e",(function(){return c["a"]}));var s=n("0c40");n.d(e,"b",(function(){return s["a"]}));var u=n("88a8");n.d(e,"d",(function(){return u["a"]}))},"90f0":function(t,e,n){"use strict";n.r(e),n.d(e,"getProvider",(function(){return i}));var r={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},i={service:{type:String,required:!0,validator:function(t,e){if(t=(t||"").toUpperCase(),t&&Object.values(r).indexOf(t)<0)return"service error"}}}},9131:function(t,e,n){"use strict";(function(t){function r(){var e;return(e=t).invokeCallbackHandler.apply(e,arguments)}function i(e){return t.removeCallbackHandler(e)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))}).call(this,n("2c9f"))},9151:function(t,e){(function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,a,c=.75*t.length,s=t.length,u=0;"="===t[t.length-1]&&(c--,"="===t[t.length-2]&&c--);var l=new ArrayBuffer(c),f=new Uint8Array(l);for(e=0;e>4,f[u++]=(15&i)<<4|o>>2,f[u++]=(3&o)<<6|63&a;return l}})()},"923d":function(t,e,n){"use strict";(function(t){var r=n("84ed"),i=n("4738"),o=n("0854"),a={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};e["a"]={name:"PageHead",mixins:[o["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:function(){return"transparent"===this.type?"#000":"#F8F8F8"}},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(t){return-1!==["default","transparent","float"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},titlePenetrate:{type:Boolean,default:!1},shadow:{type:Object,default:function(){return{}}}},data:function(){return{focus:!1,text:"",composing:!1,showPlaceholder:!1}},computed:{btns:function(){var t=this,e=[],n={};return this.buttons.length&&this.buttons.forEach((function(o){var a=Object.assign({},o);if(a.fontSrc&&!a.fontFamily){var c,s=a.fontSrc=Object(i["a"])(a.fontSrc);if(s in n)c=n[s];else{c="font".concat(Date.now()),n[s]=c;var u='@font-face{font-family: "'.concat(c,'";src: url("').concat(s,'") format("truetype")}');Object(r["a"])(u,"uni-btn-font-"+c)}a.fontFamily=c}a.color="transparent"===t.type?"#fff":a.color||t.textColor;var l=a.fontSize||("transparent"===t.type||/\\u/.test(a.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),a.fontSize=l,a.fontWeight=a.fontWeight||"normal",e.push(a)})),e},headClass:function(){var t=this.shadow.colorType,e={"uni-page-head-transparent":"transparent"===this.type,"uni-page-head-titlePenetrate":this.titlePenetrate,"uni-page-head-shadow":t};return t&&(e["uni-page-head-shadow-".concat(t)]=t),e}},mounted:function(){var e=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",(function(t){e.composing=t})),n.$watch("valueSync",(function(t){e.showPlaceholder=!!t})),this.searchInput.disabled?n.$el.addEventListener("click",(function(){t.emit("onNavigationBarSearchInputClicked","")})):(n.$refs.input.addEventListener("keyup",(function(n){"ENTER"===n.key.toUpperCase()&&t.emit("onNavigationBarSearchInputConfirmed",{text:e.text})})),n.$refs.input.addEventListener("focus",(function(){t.emit("onNavigationBarSearchInputFocusChanged",{focus:!0})})),n.$refs.input.addEventListener("blur",(function(){t.emit("onNavigationBarSearchInputFocusChanged",{focus:!1})})))}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton"})},_onBtnClick:function(e){t.emit("onNavigationBarButtonTap",Object.assign({},this.btns[e],{index:e}))},_formatBtnFontText:function(t){return t.fontSrc&&t.fontFamily?t.text.replace("\\u","&#x"):a[t.type]?a[t.type]:t.text||""},_formatBtnStyle:function(t){var e={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight};return t.fontFamily&&(e.fontFamily=t.fontFamily),e},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(e){t.emit("onNavigationBarSearchInputChanged",{text:e})},_clearInput:function(){this.text="",this._input(this.text)}}}}).call(this,n("2c9f"))},"925f":function(t,e,n){"use strict";n.r(e),n.d(e,"chooseFile",(function(){return o}));var r=["all","image","video"],i=["album","camera"],o={count:{type:Number,required:!1,default:100,validator:function(t,e){t<=0&&(e.count=100)}},sourceType:{type:Array,required:!1,default:i,validator:function(t,e){t=t.filter((function(t){return i.includes(t)})),e.sourceType=t.length?t:i}},type:{type:String,required:!1,default:"all",validator:function(t,e){r.includes(t)||(e.type=r[0]),e.type="all"===e.type?e.type="*":e.type}},extension:{type:Array,validator:function(t,e){if(t){if(0===t.length)return"param extension should not be empty."}else"all"!==e.type&&"*"!==e.type&&e.type?e.extension=["*"]:e.extension=[""]}}}},"951c":function(t,n){t.exports=e},9593:function(t,e,n){"use strict";var r=n("83c2"),i=n.n(r);i.a},"95bd":function(t,e,n){"use strict";var r=n("1fdf"),i=n.n(r);i.a},9602:function(t,e,n){"use strict";n.r(e),function(t){var r=n("38ce"),i=n("cce2"),o=n("2be0"),a=n("f98c");function c(){t.publishHandler("onPageReady",{},this.$page.id)}e["default"]={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.routes,Object(i["a"])();var n=function(t,e){for(var n=t.target;n&&n!==e;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};t.prototype.$handleEvent=function(t){if(t instanceof Event){var e=n(t,this.$el);t=i["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.prototype.$getComponentDescriptor=function(t,e){return Object(a["a"])(t||this,e)},Object.defineProperty(t.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),t.prototype.$handleWxsEvent=function(t){if(t instanceof Event){var e=t.currentTarget,r=e&&(e.__vue__||e),o=e&&r.$getComponentDescriptor&&r.$getComponentDescriptor(r,!1),a=t;t=i["b"].call(this,a.type,a,{},n(a,this.$el)||a.target,a.currentTarget),t.instance=o,t.preventDefault=function(){return a.preventDefault()},t.stopPropagation=function(){return a.stopPropagation()}}return t},t.mixin({beforeCreate:function(){var t=this,e=this.$options,n=e.wxs;n&&Object.keys(n).forEach((function(e){t[e]=n[e]})),e.behaviors&&e.behaviors.length&&Object(o["a"])(e,this),Object(r["d"])(this)&&(e.mounted=e.mounted?[].concat(c,e.mounted):[c])}})}}}.call(this,n("31d2"))},"96b9":function(t,e,n){"use strict";var r=n("c194"),i=n.n(r);i.a},9798:function(t,e,n){"use strict";function r(t,e){for(var n=0;n1?e-1:0),r=1;r0;)this.emit.apply(this,[t].concat(e.shift()))}},{key:"_addListener",value:function(t,e,n){(this.listener[t]||(this.listener[t]=[])).push({fn:n,type:e})}}]),t}()},"97af":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return v}));var r=n("cff9");function i(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}var o=[];function a(t){if("number"===typeof t)o=this.keepAliveInclude.splice(-(t-1)).map((function(t){return parseInt(t.split("-").pop())}));else{var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}}var c=Object.create(null);function s(t){return c[t]}function u(t){c[t]={x:window.pageXOffset,y:window.pageYOffset}}function l(t,e,n){e&&n&&e.meta.isTabBar&&n.meta.isTabBar&&u(n.params.__id__);for(var i=getCurrentPages(),o=i.length-1;o>=0;o--){var c=i[o],s=c.$page.meta;s.isTabBar||(a.call(this,s.name+"-"+c.$page.id),Object(r["b"])(c,"onUnload"))}}function f(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(!0),n=e.length-1;n>=0;n--)Object(r["b"])(e[n],"onUnload"),e[n].$destroy();this.keepAliveInclude=[],c=Object.create(null)}var d=[];function h(t,e,n,r){d=getCurrentPages(!0);var o=e.params.__id__,c=t.params.__id__,s=t.meta.name+"-"+c;if(c===o&&"reLaunch"!==t.type)t.fullPath!==e.fullPath?(i.call(this,s),n()):n(!1);else if(t.meta.id&&t.meta.id!==c)n({path:t.path,replace:!0});else{var u=e.meta.name+"-"+o;switch(t.type){case"navigateTo":break;case"redirectTo":a.call(this,u),e.meta&&e.meta.isQuit&&(t.meta.isQuit=!0,t.meta.isEntry=!!e.meta.isEntry);break;case"switchTab":l.call(this,r,t,e);break;case"reLaunch":f.call(this,s),t.meta.isQuit=!0;break;default:o&&o>c&&(a.call(this,u),this.$router._$delta>1&&a.call(this,this.$router._$delta));break}if("reLaunch"!==t.type&&"redirectTo"!==t.type&&e.meta.id&&i.call(this,u),i.call(this,s),t.meta&&t.meta.name){document.body.className="uni-body "+t.meta.name;var h="nvue-dir-"+__uniConfig.nvue["flex-direction"];t.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(h,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(h))}n()}}function p(e,n){var i,a=n.params.__id__,c=e.params.__id__;function s(t){if(t){Object(r["b"])(t,"onUnload");var e=d.indexOf(t);e>=0&&d.splice(e,1)}}switch(i=n.meta.isSet?d.find((function(t){return t.$page.meta.pagePath===n.meta.pagePath})):d.find((function(t){return t.$page.id===a})),e.type){case"navigateTo":i&&Object(r["b"])(i,"onHide");break;case"redirectTo":s(i);break;case"switchTab":n.meta.isTabBar&&i&&Object(r["b"])(i,"onHide");break;case"reLaunch":break;default:a&&a>c&&(s(i),this.$router._$delta>1&&o.reverse().forEach((function(t){var e=d.find((function(e){return e.$page.id===t}));s(e)})));break}if(delete this.$router._$delta,o.length=0,"reLaunch"!==e.type){var u,l=getCurrentPages(!0);u=e.meta.isSet?l.find((function(t){return t.$page.meta.pagePath===e.meta.pagePath})):l.find((function(t){return t.$page.id===c})),u&&(setTimeout((function(){t.emit("onNavigationBarChange",u.$parent.$parent.navigationBar),Object(r["b"])(u,"onShow")}),0),document.title=u.$parent.$parent.navigationBar.titleText)}}function v(t,e){t.$router.beforeEach((function(n,r,i){h.call(t,n,r,i,e)})),t.$router.afterEach((function(e,n){p.call(t,e,n)}))}}).call(this,n("2c9f"))},"97c3":function(t,e,n){"use strict";function r(t){if(0===t.indexOf("#")){var e=t.substr(1);return function(t){return!(!t.componentInstance||t.componentInstance.id!==e)||!(!t.data||!t.data.attrs||t.data.attrs.id!==e)}}if(0===t.indexOf(".")){var n=t.substr(1);return function(t){return t.data&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?-1!==e.split(i).indexOf(t):n&&"string"===typeof n?-1!==n.split(i).indexOf(t):void 0}(n,t.data.staticClass,t.data.class)}}}n.d(e,"a",(function(){return o}));var i=/\s+/;function o(t){t.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},t.prototype.createMediaQueryObserver=function(t){return uni.createMediaQueryObserver(this,t)},t.prototype.selectComponent=function(t){return function t(e,n){if(n(e.$vnode||e._vnode))return e;for(var r=e.$children,i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&h.splice(e,1)}else h.length=0}},"9f62":function(t,e,n){"use strict";(function(t){var r=n("909e");e["a"]={name:"Label",mixins:[r["a"]],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(e){var n=/^uni-(checkbox|radio|switch)-/.test(e.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(e.target.tagName)),n||(this.for?t.emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}}}}).call(this,n("31d2"))},"9f69":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"startLocationUpdate",(function(){return l})),n.d(e,"stopLocationUpdate",(function(){return f})),n.d(e,"onLocationChange",(function(){return d})),n.d(e,"offLocationChange",(function(){return h})),n.d(e,"onLocationChangeError",(function(){return p})),n.d(e,"offLocationChangeError",(function(){return v}));var r=n("b435"),i=t,o=i.invokeCallbackHandler,a=[],c=[],s=!1,u=0;function l(t,e){var n=t.type,i=void 0===n?"gcj02":n;if(!navigator.geolocation)return{errMsg:"startLocationUpdate:fail"};u=u||navigator.geolocation.watchPosition((function(t){s=!0,Object(r["f"])(i,t.coords).then((function(t){a.forEach((function(e){o(e,t)}))})).catch((function(t){c.forEach((function(e){o(e,{errMsg:"onLocationChange:fail ".concat(t.message)})}))}))}),(function(t){s||(o(e,{errMsg:"startLocationUpdate:fail ".concat(t.message)}),s=!0),c.forEach((function(e){o(e,{errMsg:"onLocationChange:fail ".concat(t.message)})}))})),setTimeout((function(){o(e,{errMsg:"startLocationUpdate:ok"})}),100)}function f(){return 0!==u&&(navigator.geolocation.clearWatch(u),s=!1,u=0),{}}function d(t){a.push(t)}function h(t){if(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)}else a=[]}function p(t){c.push(t)}function v(t){if(t){var e=c.indexOf(t);e>=0&&c.splice(e,1)}else c=[]}}.call(this,n("2c9f"))},a004:function(t,e){t.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},a050:function(t,e,n){"use strict";n.r(e);var r=n("909e"),i=n("39bd"),o={add:function(t){var e,n,r;try{e=this.toString().split(".")[1].length}catch(i){e=0}try{n=t.toString().split(".")[1].length}catch(i){n=0}return r=Math.pow(10,Math.max(e,n)),(this*r+t*r)/r},sub:function(t){return this.add(-t)},mul:function(t){var e=0,n=this.toString(),r=t.toString();try{e+=n.split(".")[1].length}catch(i){}try{e+=r.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,e)},div:function(t){var e,n,i=0,o=0;try{i=this.toString().split(".")[1].length}catch(r){}try{o=t.toString().split(".")[1].length}catch(r){}return e=Number(this.toString().replace(".","")),n=Number(t.toString().replace(".","")),e/n*Math.pow(10,o-i)},mod:function(t){var e,n,r=0,i=0;try{r=this.toString().split(".")[1].length}catch(o){}try{i=t.toString().split(".")[1].length}catch(o){}var a=Math.pow(10,Math.abs(r-i));1==a&&(a=Math.pow(10,r)),e=(this*a).toString().split(".")[0],n=t*a;var c=(this*a).toString().split(".")[1]?(this*a).toString().split(".")[1]:"";return(e%n+c)/a}},a={name:"Slider",mixins:[r["a"],r["f"],i["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(t){this.sliderValue=Number(t)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(t){var e=this.$refs["uni-slider-value"],n=getComputedStyle(e,null).marginLeft,r=e.offsetWidth;r+=parseInt(n);var i=this.$refs["uni-slider"],o=i.offsetWidth-(this.showValue?r:0),a=i.getBoundingClientRect().left,c=(t.x-a)*(this.max-this.min)/o+Number(this.min);this.sliderValue=this._filterValue(c)},_filterValue:function(t){var e=Number(this.max),n=Number(this.min);return te?e:o.mul.call(Math.round((t-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(t){if(!this.disabled)return"move"===t.detail.state?(this._onUserChangedValue({x:t.detail.x}),this.$trigger("changing",t,{value:this.sliderValue}),!1):"end"===t.detail.state&&this.$trigger("change",t,{value:this.sliderValue})},_onClick:function(t){this.disabled||(this._onUserChangedValue(t),this.$trigger("change",t,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var t={};return""!==this.name&&(t.value=this.sliderValue,t.key=this.name),t}}},c=a,s=(n("f2a9"),n("8844")),u=Object(s["a"])(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-slider",t._g({ref:"uni-slider",on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:t.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:t.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:t.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:t.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[t._v(t._s(t.sliderValue))])]),t._t("default")],2)}),[],!1,null,null,null);e["default"]=u.exports},a111:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseVideo",(function(){return i}));var r=["album","camera"],i={sourceType:{type:Array,required:!1,default:r,validator:function(t,e){t=t.filter((function(t){return r.includes(t)})),e.sourceType=t.length?t:r}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(t,e){if(0===t.length)return"param extension should not be empty."}}}},a187:function(t,e,n){},a18d:function(t,e,n){"use strict";var r=n("07b5"),i=n.n(r);i.a},a1d7:function(t,e,n){var r={"./audio/index.vue":"d55f","./button/index.vue":"d6fb","./canvas/index.vue":"63b1","./checkbox-group/index.vue":"d514","./checkbox/index.vue":"ca37","./editor/index.vue":"b1d2","./form/index.vue":"baa1","./icon/index.vue":"0abb","./image/index.vue":"7efa","./input/index.vue":"e0e1","./label/index.vue":"2a78","./movable-area/index.vue":"dbe8","./movable-view/index.vue":"65ce","./navigator/index.vue":"5c1f","./picker-view-column/index.vue":"e510","./picker-view/index.vue":"9eba","./progress/index.vue":"801b","./radio-group/index.vue":"3a3e","./radio/index.vue":"1f8a","./resize-sensor/index.vue":"120f","./rich-text/index.vue":"7aa9","./scroll-view/index.vue":"8f80","./slider/index.vue":"a050","./swiper-item/index.vue":"2066","./swiper/index.vue":"383e","./switch/index.vue":"c1f1","./text/index.vue":"e9d1","./textarea/index.vue":"da9d"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="a1d7"},a202:function(t,e,n){"use strict";n.r(e),e["default"]={data:function(){return{popupWidth:0,popupHeight:0}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},popupStyle:function(){var t={},e=t.content={},n=t.triangle={},r=this.popover;function i(t){return Number(t)||0}if(this.isDesktop&&r){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var o=i(r.left),a=i(r.width),c=i(r.top),s=i(r.height),u=o+a/2;e.transform="none !important";var l=Math.max(0,u-150);e.left="".concat(l,"px");var f=Math.max(12,u-l);f=Math.min(288,f),n.left="".concat(f,"px");var d=this.popupHeight/2;c+s-d>d-c?(e.top="auto",e.bottom="".concat(this.popupHeight-c+6,"px"),n.bottom="-6px",n["border-width"]="6px 6px 0 6px",n["border-color"]="#fcfcfd transparent transparent transparent"):(e.top="".concat(c+s+6,"px"),n.top="-6px",n["border-width"]="0 6px 6px 6px",n["border-color"]="transparent transparent #fcfcfd transparent")}return t}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),n=e.windowWidth,r=e.windowHeight,i=e.windowTop;t.popupWidth=n,t.popupHeight=r+i};window.addEventListener("resize",e),e(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",e)}))}}},a22f:function(t,e,n){"use strict";var r=n("21f5"),i=n.n(r);i.a},a2f6:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map((function(e){return"".concat(Number(t[e])||0,"px")})).join(" ")}},{key:"relativeTo",value:function(t,e){return this.options.relativeToSelector=t,this._makeRootMargin(e),this}},{key:"relativeToViewport",value:function(t){return this.options.relativeToSelector=null,this._makeRootMargin(t),this}},{key:"observe",value:function(e,n){"function"===typeof n&&(this.options.selector=e,this.reqId=c.push(n),t.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(i["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){t.publishHandler("destroyComponentObserver",{reqId:this.reqId},Object(i["a"])(this.component)?this.component:this.pageId)}}]),e}();function l(t,e){return t._isVue||(e=t,t=null),new u(t||Object(o["b"])("createIntersectionObserver"),e)}}.call(this,n("2c9f"))},a770:function(t,e){(function(){"use strict";if("object"===("undefined"===typeof window?"undefined":r(window)))if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},i.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(window,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,c(window,"resize",this._checkForIntersections,!0),c(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach((function(r){var i=r.element,a=u(i),c=this._rootContainsTarget(i),s=r.entry,l=t&&c&&this._computeTargetAndRootIntersection(i,e),f=r.entry=new n({time:o(),target:i,boundingClientRect:a,rootBounds:e,intersectionRect:l});s?t&&c?this._hasCrossedThreshold(s,f)&&this._queuedEntries.push(f):s&&s.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){var r=u(e),i=r,o=d(e),a=!1;while(!a){var c=null,l=1==o.nodeType?window.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==t?(a=!0,c=n):o!=t.body&&o!=t.documentElement&&"visible"!=l.overflow&&(c=u(o)),c&&(i=s(c,i),!i))break;o=d(o)}return i}},i.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:a,height:c}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t,e){var n=e;while(n){if(n==t)return!0;n=d(n)}return!1}function d(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}})()},a7fb:function(t,e,n){"use strict";var r=n("84ed"),i=n("4e46"),o={name:"PageBody",mounted:function(){var t=i["a"].height||"50px",e=".uni-app--showtabbar uni-page-wrapper {\n display: block;\n height: calc(100% - ".concat(t,");\n height: calc(100% - ").concat(t," - constant(safe-area-inset-bottom));\n height: calc(100% - ").concat(t," - env(safe-area-inset-bottom));\n }");e+="\n",e+='.uni-app--showtabbar uni-page-wrapper::after {\n content: "";\n display: block;\n width: 100%;\n height: '.concat(t,";\n height: calc(").concat(t," + constant(safe-area-inset-bottom));\n height: calc(").concat(t," + env(safe-area-inset-bottom));\n }"),e+="\n",e+='.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {\n height: calc(100% - 44px - '.concat(t,");\n height: calc(100% - 44px - constant(safe-area-inset-top) - ").concat(t," - constant(safe-area-inset-bottom));\n height: calc(100% - 44px - env(safe-area-inset-top) - ").concat(t," - env(safe-area-inset-bottom));\n }"),Object(r["a"])(e)}},a=o,c=(n("8cbb"),n("8844")),s=Object(c["a"])(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-wrapper",[n("uni-page-body",[t._t("default")],2)],1)}),[],!1,null,null,null);e["a"]=s.exports},a805:function(t,e,n){"use strict";(function(t){function r(e,n,r){t.UniServiceJSBridge.subscribeHandler(e,n,r)}n.d(e,"a",(function(){return r}))}).call(this,n("0ee4"))},a874:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"createMediaQueryObserver",(function(){return u}));var r=n("7553"),i=n("745a"),o=n("0795");function a(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=!1,u=getCurrentPages();if(u.length?u[u.length-1].$page.meta.isTabBar&&(s=!0):n.$children[0].hasTabBar&&(s=!0),!s)return{errMsg:"".concat(t,":fail not TabBar page")};var l=e.index,f=__uniConfig.tabBar;if(l>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(t,":fail tabbar item not found")};switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":e.iconfont&&(Object(r["r"])(f.list[l].iconfont,c,e.iconfont),e.iconfont=f.list[l].iconfont),Object(r["r"])(f.list[l],i,e);var d=e.pagePath,h=d&&__uniRoutes.find((function(t){var e=t.path;return e===d}));if(h){var p=h.meta;p.isTabBar=!0,p.tabBarIndex=l,p.isQuit=!0,p.isSet=!0,p.id=l+1;var v=__uniConfig.tabBar;v&&v.list&&v.list[l]&&(v.list[l].pagePath=d.startsWith("/")?d.substring(1):d)}break;case"setTabBarStyle":Object(r["r"])(f,o,e);break;case"showTabBarRedDot":Object(r["r"])(f.list[l],a,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(r["r"])(f.list[l],a,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(r["r"])(f.list[l],a,{badge:"",redDot:!1});break}}return{}}function u(t){return s("setTabBarItem",t)}function l(t){return s("setTabBarStyle",t)}function f(t){return s("hideTabBar",t)}function d(t){return s("showTabBar",t)}function h(t){return s("hideTabBarRedDot",t)}function p(t){return s("showTabBarRedDot",t)}function v(t){return s("removeTabBarBadge",t)}function g(t){return s("setTabBarBadge",t)}},a944:function(t,e,n){var r,i,o;(function(n,a){i=[],r=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(u){var t,e,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(u.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(u.stack),i=r&&r[1]||!1,o=r&&r[2]||!1,a=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");i===a&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]*