UNPKG

bry-biometric-collector

Version:

BRy web-collector component for biometric capture.

934 lines 1.65 MB
var p$ = Object.defineProperty, d$ = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, n) => (typeof require < "u" ? require : t)[n] }) : e)(function(e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }), og = (e, t) => { for (var n in t) p$(e, n, { get: t[n], enumerable: !0 }); }, h$ = {}; og(h$, { Abs: () => dl, Acos: () => ei, Acosh: () => ti, AdadeltaOptimizer: () => Cy, AdagradOptimizer: () => _y, AdamOptimizer: () => Ey, AdamaxOptimizer: () => $y, Add: () => es, AddN: () => ni, All: () => hl, Any: () => cl, ArgMax: () => ml, ArgMin: () => fl, Asin: () => ri, Asinh: () => ai, Atan: () => si, Atan2: () => oi, Atanh: () => ii, AvgPool: () => li, AvgPool3D: () => gl, AvgPool3DGrad: () => Cp, AvgPoolGrad: () => Tp, BackendWasm: () => P_, BatchMatMul: () => ui, BatchToSpaceND: () => yl, Bincount: () => bl, BitwiseAnd: () => xl, BroadcastArgs: () => _p, BroadcastTo: () => H0, Callback: () => zS, CallbackList: () => AI, Cast: () => pi, Ceil: () => di, ClipByValue: () => ts, Complex: () => ec, ComplexAbs: () => Ep, Concat: () => vl, Conv2D: () => hi, Conv2DBackpropFilter: () => tc, Conv2DBackpropInput: () => ci, Conv3D: () => mi, Conv3DBackpropFilterV2: () => wl, Conv3DBackpropInputV2: () => kl, Cos: () => fi, Cosh: () => gi, CropAndResize: () => Sl, Cumprod: () => Il, Cumsum: () => yi, CustomCallback: () => RI, DataStorage: () => Jh, DenseBincount: () => $p, DepthToSpace: () => Nl, DepthwiseConv2dNative: () => bi, DepthwiseConv2dNativeBackpropFilter: () => nc, DepthwiseConv2dNativeBackpropInput: () => rc, Diag: () => Ap, Dilation2D: () => xi, Dilation2DBackpropFilter: () => qo, Dilation2DBackpropInput: () => jo, Draw: () => ac, ENV: () => hg, EarlyStopping: () => PS, Einsum: () => sc, Elu: () => wi, EluGrad: () => Tl, Environment: () => U0, Equal: () => Cl, Erf: () => ki, Exp: () => Ii, ExpandDims: () => _l, Expm1: () => Si, FFT: () => ic, Fill: () => Fp, FlipLeftRight: () => El, Floor: () => Ni, FloorDiv: () => Ti, FromPixels: () => vh, FusedBatchNorm: () => Ci, FusedConv2D: () => Ms, FusedDepthwiseConv2D: () => Os, GPGPUContext: () => fh, GatherNd: () => Al, GatherV2: () => $l, GraphModel: () => gx, Greater: () => Fl, GreaterEqual: () => _i, History: () => FI, IFFT: () => oc, Identity: () => Ei, Imag: () => lc, InputSpec: () => $t, IsFinite: () => $i, IsInf: () => Ai, IsNan: () => Fi, KernelBackend: () => Sp, LRN: () => Oi, LRNGrad: () => Pl, LayerVariable: () => II, LayersModel: () => ia, LeakyRelu: () => Ri, Less: () => Rl, LessEqual: () => Dl, LinSpace: () => Ml, Log: () => Di, Log1p: () => Mi, LogSoftmax: () => q0, LogicalAnd: () => Ol, LogicalNot: () => Ll, LogicalOr: () => zl, LogicalXor: () => j0, LowerBound: () => rA, MathBackendCPU: () => xx, MathBackendWebGL: () => qx, MatrixBandPart: () => aA, Max: () => Li, MaxPool: () => Pi, MaxPool3D: () => Bl, MaxPool3DGrad: () => Dp, MaxPoolGrad: () => Rp, MaxPoolWithArgmax: () => Mp, Maximum: () => zi, Mean: () => Bi, Min: () => Wi, Minimum: () => Vi, MirrorPad: () => Ui, Mod: () => Gi, MomentumOptimizer: () => Ay, Multinomial: () => Wl, Multiply: () => Hi, Neg: () => Vl, NonMaxSuppressionV3: () => Gl, NonMaxSuppressionV4: () => Hl, NonMaxSuppressionV5: () => jl, NotEqual: () => Ul, OP_SCOPE_SUFFIX: () => yg, OneHot: () => ji, OnesLike: () => ql, Optimizer: () => ga, OptimizerConstructors: () => nI, Pack: () => Kl, PadV2: () => qi, Pool: () => sA, Pow: () => Ki, Prelu: () => Xi, Prod: () => Zi, RMSPropOptimizer: () => Fy, RNN: () => ya, RaggedGather: () => uc, RaggedRange: () => pc, RaggedTensorToTensor: () => dc, Range: () => Op, Rank: () => nf, Real: () => hc, RealDiv: () => vi, Reciprocal: () => Ji, Reduction: () => cn, Relu: () => Yi, Relu6: () => to, Reshape: () => Xl, ResizeBilinear: () => eo, ResizeBilinearGrad: () => Jl, ResizeNearestNeighbor: () => Qi, ResizeNearestNeighborGrad: () => Zl, Reverse: () => no, RotateWithOffset: () => hu, Round: () => ro, Rsqrt: () => ao, SGDOptimizer: () => Kc, ScatterNd: () => Yl, SearchSorted: () => eu, Select: () => tu, Selu: () => so, Sequential: () => om, Sigmoid: () => uo, Sign: () => lo, Sin: () => io, Sinh: () => oo, Slice: () => nu, Softmax: () => mo, Softplus: () => po, SpaceToBatchND: () => ru, SparseFillEmptyRows: () => Lp, SparseReshape: () => su, SparseSegmentMean: () => zp, SparseSegmentSum: () => Pp, SparseToDense: () => iu, SplitV: () => au, Sqrt: () => ho, Square: () => Bp, SquaredDifference: () => fo, StaticRegexReplace: () => Wp, Step: () => rs, StridedSlice: () => ou, StringNGrams: () => Vp, StringSplit: () => Up, StringToHashBucketFast: () => Gp, Sub: () => go, Sum: () => co, SymbolicTensor: () => Tr, Tan: () => yo, Tanh: () => bo, Tensor: () => Fe, TensorBuffer: () => At, TensorScatterUpdate: () => Ql, Tile: () => ns, TopK: () => lu, Transform: () => uu, Transpose: () => sa, Unique: () => Hp, Unpack: () => pu, UnsortedSegmentSum: () => jp, UpperBound: () => iA, Variable: () => Ls, ZerosLike: () => du, _FusedMatMul: () => Ds, abs: () => Et, acos: () => kg, acosh: () => Ig, add: () => X, addN: () => w1, all: () => yc, any: () => pp, argMax: () => Ws, argMin: () => Sg, asin: () => Ng, asinh: () => Tg, atan: () => Cg, atan2: () => _g, atanh: () => Eg, avgPool: () => ca, avgPool3d: () => Ag, backend: () => bg, backend_util: () => N, basicLSTMCell: () => N1, batchNorm: () => xo, batchNorm2d: () => Fg, batchNorm3d: () => Rg, batchNorm4d: () => Dg, batchToSpaceND: () => Qp, bincount: () => Mg, bitwiseAnd: () => T1, booleanMaskAsync: () => fk, broadcastArgs: () => C1, broadcastTo: () => $s, broadcast_util: () => cu, browser: () => hd, buffer: () => ze, callbacks: () => tG, cast: () => se, ceil: () => Og, clipByValue: () => sn, clone: () => Br, complex: () => la, concat: () => it, concat1d: () => Lg, concat2d: () => zg, concat3d: () => Pg, concat4d: () => Bg, constraints: () => CI, conv1d: () => bc, conv2d: () => gn, conv2dTranspose: () => xc, conv3d: () => Vg, conv3dTranspose: () => Ug, copyRegisteredKernels: () => pA, cos: () => ed, cosh: () => vc, cosineWindow: () => Uc, cumprod: () => cp, cumsum: () => wc, customGrad: () => Hr, data: () => uN, denseBincount: () => Sh, deprecationWarn: () => o1, depthToSpace: () => Gg, depthwiseConv2d: () => vo, deregisterOp: () => aG, device_util: () => Zp, diag: () => E1, dilation2d: () => Hg, disableDeprecationWarnings: () => BA, dispose: () => _e, disposeVariables: () => WA, div: () => me, divNoNan: () => jg, dot: () => qg, dropout: () => ky, einsum: () => Ss, elu: () => mu, enableDebugMode: () => PA, enableProdMode: () => zA, enclosingPowerOfTwo: () => Iy, engine: () => ur, ensureShape: () => A1, env: () => G, equal: () => Vn, erf: () => kc, euclideanNorm: () => Zg, exp: () => on, expandDims: () => jt, expm1: () => Jg, eye: () => Ic, fft: () => pd, fill: () => Wn, findBackend: () => qA, findBackendFactory: () => KA, floor: () => gu, floorDiv: () => gc, forceHalfFloat: () => RT, fused: () => tl, gather: () => yu, gatherND: () => xk, gather_util: () => My, getBackend: () => l1, getGradient: () => ef, getKernel: () => op, getKernelsForBackend: () => wh, getThreadsCount: () => lde, gpgpu_util: () => pT, grad: () => TD, grads: () => CD, greater: () => wn, greaterEqual: () => ma, ifft: () => el, imag: () => td, image: () => Jn, inTopKAsync: () => vk, initializers: () => _I, input: () => qI, io: () => rn, irfft: () => Oc, isFinite: () => Yg, isInf: () => Qg, isNaN: () => ey, keep: () => Ot, kernel_impls: () => Xr, layers: () => EI, leakyRelu: () => nd, less: () => Zo, lessEqual: () => ss, linalg: () => Ty, linspace: () => O1, loadGraphModel: () => pH, loadGraphModelSync: () => dH, loadLayersModel: () => Z4, localResponseNormalization: () => ty, log: () => Un, log1p: () => rd, logSigmoid: () => ny, logSoftmax: () => Nc, logSumExp: () => ad, logicalAnd: () => hr, logicalNot: () => sd, logicalOr: () => Tc, logicalXor: () => ry, losses: () => Fk, lowerBound: () => z1, matMul: () => Oe, math: () => Uk, max: () => tr, maxPool: () => Ut, maxPool3d: () => ay, maxPoolWithArgmax: () => P1, maximum: () => Kr, mean: () => vt, memory: () => Ih, meshgrid: () => B1, metrics: () => MS, min: () => Xo, minimum: () => Ga, mirrorPad: () => sy, mod: () => iy, model: () => Q4, models: () => OS, moments: () => id, movingAverage: () => gk, mul: () => z, multiRNNCell: () => W1, multinomial: () => V1, neg: () => ct, nextFrame: () => Oy, norm: () => fu, notEqual: () => Gs, oneHot: () => Jo, ones: () => Cn, onesLike: () => Gn, op: () => L, outerProduct: () => U1, pad: () => _r, pad1d: () => G1, pad2d: () => H1, pad3d: () => j1, pad4d: () => q1, pool: () => oy, pow: () => Gr, prelu: () => ld, print: () => wg, prod: () => ly, profile: () => VA, raggedGather: () => K1, raggedRange: () => X1, raggedTensorToTensor: () => Z1, rand: () => J1, randomGamma: () => tk, randomNormal: () => _c, randomStandardNormal: () => nk, randomUniform: () => is, randomUniformInt: () => rk, range: () => Hs, ready: () => HA, real: () => Yo, reciprocal: () => cy, registerBackend: () => fc, registerCallbackConstructor: () => tV, registerGradient: () => K0, registerKernel: () => qp, registerOp: () => rG, regularizers: () => LS, relu: () => et, relu6: () => Ec, removeBackend: () => jA, reshape: () => P, reverse: () => ar, reverse1d: () => ak, reverse2d: () => sk, reverse3d: () => ik, reverse4d: () => ok, rfft: () => dd, round: () => $c, rsqrt: () => Ac, scalar: () => we, scatterND: () => yk, scatter_util: () => Pc, searchSorted: () => Cc, selu: () => Fc, separableConv2d: () => bu, sequential: () => eV, serialization: () => ne, setBackend: () => GA, setPlatform: () => XA, setThreadsCount: () => ode, setWasmPath: () => sde, setWasmPaths: () => ide, setWebGLContext: () => D2, setdiff1dAsync: () => lk, shared: () => vx, sigmoid: () => dr, sign: () => my, signal: () => Ak, sin: () => Rc, sinh: () => Dc, slice: () => Ue, slice1d: () => ud, slice2d: () => Mc, slice3d: () => xu, slice4d: () => Qo, slice_util: () => zt, softmax: () => os, softplus: () => wo, spaceToBatchND: () => od, sparse: () => Rk, sparseToDense: () => bk, spectral: () => $k, split: () => _n, sqrt: () => Xt, square: () => st, squaredDifference: () => Lc, squeeze: () => ls, stack: () => Ft, step: () => ko, stridedSlice: () => fy, string: () => Dk, sub: () => de, sum: () => ge, sumOutType: () => mc, tan: () => gy, tanh: () => Ua, tensor: () => fn, tensor1d: () => Ye, tensor2d: () => Wr, tensor3d: () => zc, tensor4d: () => Ha, tensor5d: () => uk, tensor6d: () => pk, tensorScatterUpdate: () => hk, tensor_util: () => wr, test_util: () => Y1, tidy: () => B, tile: () => Bn, time: () => UA, topk: () => by, train: () => ws, transpose: () => Le, truncatedNormal: () => Wc, unique: () => xy, unregisterGradient: () => uA, unregisterKernel: () => lA, unsortedSegmentSum: () => Vc, unstack: () => Nt, upcastType: () => nr, upperBound: () => ck, util: () => w, valueAndGrad: () => _D, valueAndGrads: () => ED, variable: () => vy, variableGrads: () => L1, version: () => fde, version_converter: () => cH, version_core: () => QL, version_cpu: () => mj, version_layers: () => sb, version_wasm: () => ude, version_webgl: () => rJ, webgl: () => aJ, webgl_util: () => R2, where: () => Kt, whereAsync: () => wy, zeros: () => wt, zerosLike: () => He }); var c$ = Object.create, lg = Object.defineProperty, m$ = Object.getOwnPropertyDescriptor, f$ = Object.getOwnPropertyNames, g$ = Object.getPrototypeOf, y$ = Object.prototype.hasOwnProperty, Dt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Ee = (e, t) => { for (var n in t) lg(e, n, { get: t[n], enumerable: !0 }); }, b$ = (e, t, n, r) => { if (t && typeof t == "object" || typeof t == "function") for (let a of f$(t)) !y$.call(e, a) && a !== n && lg(e, a, { get: () => t[a], enumerable: !(r = m$(t, a)) || r.enumerable }); return e; }, Qa = (e, t, n) => (n = e != null ? c$(g$(e)) : {}, b$(t || !e || !e.__esModule ? lg(n, "default", { value: e, enumerable: !0 }) : n, e)), x$ = Dt((e, t) => { t.exports = r; var n = null; try { n = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11])), {}).exports; } catch { } function r(S, M, W) { this.low = S | 0, this.high = M | 0, this.unsigned = !!W; } r.prototype.__isLong__, Object.defineProperty(r.prototype, "__isLong__", { value: !0 }); function a(S) { return (S && S.__isLong__) === !0; } r.isLong = a; var s = {}, i = {}; function o(S, M) { var W, U, H; return M ? (S >>>= 0, (H = 0 <= S && S < 256) && (U = i[S], U) ? U : (W = p(S, (S | 0) < 0 ? -1 : 0, !0), H && (i[S] = W), W)) : (S |= 0, (H = -128 <= S && S < 128) && (U = s[S], U) ? U : (W = p(S, S < 0 ? -1 : 0, !1), H && (s[S] = W), W)); } r.fromInt = o; function l(S, M) { if (isNaN(S)) return M ? v : x; if (M) { if (S < 0) return v; if (S >= g) return A; } else { if (S <= -y) return R; if (S + 1 >= y) return E; } return S < 0 ? l(-S, M).neg() : p(S % f | 0, S / f | 0, M); } r.fromNumber = l; function p(S, M, W) { return new r(S, M, W); } r.fromBits = p; var u = Math.pow; function d(S, M, W) { if (S.length === 0) throw Error("empty string"); if (S === "NaN" || S === "Infinity" || S === "+Infinity" || S === "-Infinity") return x; if (typeof M == "number" ? (W = M, M = !1) : M = !!M, W = W || 10, W < 2 || 36 < W) throw RangeError("radix"); var U; if ((U = S.indexOf("-")) > 0) throw Error("interior hyphen"); if (U === 0) return d(S.substring(1), M, W).neg(); for (var H = l(u(W, 8)), K = x, j = 0; j < S.length; j += 8) { var Z = Math.min(8, S.length - j), ee = parseInt(S.substring(j, j + Z), W); if (Z < 8) { var Y = l(u(W, Z)); K = K.mul(Y).add(l(ee)); } else K = K.mul(H), K = K.add(l(ee)); } return K.unsigned = M, K; } r.fromString = d; function h(S, M) { return typeof S == "number" ? l(S, M) : typeof S == "string" ? d(S, M) : p(S.low, S.high, typeof M == "boolean" ? M : S.unsigned); } r.fromValue = h; var c = 65536, m = 1 << 24, f = c * c, g = f * f, y = g / 2, b = o(m), x = o(0); r.ZERO = x; var v = o(0, !0); r.UZERO = v; var I = o(1); r.ONE = I; var T = o(1, !0); r.UONE = T; var _ = o(-1); r.NEG_ONE = _; var E = p(-1, 2147483647, !1); r.MAX_VALUE = E; var A = p(-1, -1, !0); r.MAX_UNSIGNED_VALUE = A; var R = p(0, -2147483648, !1); r.MIN_VALUE = R; var F = r.prototype; F.toInt = function() { return this.unsigned ? this.low >>> 0 : this.low; }, F.toNumber = function() { return this.unsigned ? (this.high >>> 0) * f + (this.low >>> 0) : this.high * f + (this.low >>> 0); }, F.toString = function(S) { if (S = S || 10, S < 2 || 36 < S) throw RangeError("radix"); if (this.isZero()) return "0"; if (this.isNegative()) if (this.eq(R)) { var M = l(S), W = this.div(M), U = W.mul(M).sub(this); return W.toString(S) + U.toInt().toString(S); } else return "-" + this.neg().toString(S); for (var H = l(u(S, 6), this.unsigned), K = this, j = ""; ; ) { var Z = K.div(H), ee = K.sub(Z.mul(H)).toInt() >>> 0, Y = ee.toString(S); if (K = Z, K.isZero()) return Y + j; for (; Y.length < 6; ) Y = "0" + Y; j = "" + Y + j; } }, F.getHighBits = function() { return this.high; }, F.getHighBitsUnsigned = function() { return this.high >>> 0; }, F.getLowBits = function() { return this.low; }, F.getLowBitsUnsigned = function() { return this.low >>> 0; }, F.getNumBitsAbs = function() { if (this.isNegative()) return this.eq(R) ? 64 : this.neg().getNumBitsAbs(); for (var S = this.high != 0 ? this.high : this.low, M = 31; M > 0 && !(S & 1 << M); M--) ; return this.high != 0 ? M + 33 : M + 1; }, F.isZero = function() { return this.high === 0 && this.low === 0; }, F.eqz = F.isZero, F.isNegative = function() { return !this.unsigned && this.high < 0; }, F.isPositive = function() { return this.unsigned || this.high >= 0; }, F.isOdd = function() { return (this.low & 1) === 1; }, F.isEven = function() { return (this.low & 1) === 0; }, F.equals = function(S) { return a(S) || (S = h(S)), this.unsigned !== S.unsigned && this.high >>> 31 === 1 && S.high >>> 31 === 1 ? !1 : this.high === S.high && this.low === S.low; }, F.eq = F.equals, F.notEquals = function(S) { return !this.eq(S); }, F.neq = F.notEquals, F.ne = F.notEquals, F.lessThan = function(S) { return this.comp(S) < 0; }, F.lt = F.lessThan, F.lessThanOrEqual = function(S) { return this.comp(S) <= 0; }, F.lte = F.lessThanOrEqual, F.le = F.lessThanOrEqual, F.greaterThan = function(S) { return this.comp(S) > 0; }, F.gt = F.greaterThan, F.greaterThanOrEqual = function(S) { return this.comp(S) >= 0; }, F.gte = F.greaterThanOrEqual, F.ge = F.greaterThanOrEqual, F.compare = function(S) { if (a(S) || (S = h(S)), this.eq(S)) return 0; var M = this.isNegative(), W = S.isNegative(); return M && !W ? -1 : !M && W ? 1 : this.unsigned ? S.high >>> 0 > this.high >>> 0 || S.high === this.high && S.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(S).isNegative() ? -1 : 1; }, F.comp = F.compare, F.negate = function() { return !this.unsigned && this.eq(R) ? R : this.not().add(I); }, F.neg = F.negate, F.add = function(S) { a(S) || (S = h(S)); var M = this.high >>> 16, W = this.high & 65535, U = this.low >>> 16, H = this.low & 65535, K = S.high >>> 16, j = S.high & 65535, Z = S.low >>> 16, ee = S.low & 65535, Y = 0, re = 0, te = 0, ae = 0; return ae += H + ee, te += ae >>> 16, ae &= 65535, te += U + Z, re += te >>> 16, te &= 65535, re += W + j, Y += re >>> 16, re &= 65535, Y += M + K, Y &= 65535, p(te << 16 | ae, Y << 16 | re, this.unsigned); }, F.subtract = function(S) { return a(S) || (S = h(S)), this.add(S.neg()); }, F.sub = F.subtract, F.multiply = function(S) { if (this.isZero()) return x; if (a(S) || (S = h(S)), n) { var M = n.mul(this.low, this.high, S.low, S.high); return p(M, n.get_high(), this.unsigned); } if (S.isZero()) return x; if (this.eq(R)) return S.isOdd() ? R : x; if (S.eq(R)) return this.isOdd() ? R : x; if (this.isNegative()) return S.isNegative() ? this.neg().mul(S.neg()) : this.neg().mul(S).neg(); if (S.isNegative()) return this.mul(S.neg()).neg(); if (this.lt(b) && S.lt(b)) return l(this.toNumber() * S.toNumber(), this.unsigned); var W = this.high >>> 16, U = this.high & 65535, H = this.low >>> 16, K = this.low & 65535, j = S.high >>> 16, Z = S.high & 65535, ee = S.low >>> 16, Y = S.low & 65535, re = 0, te = 0, ae = 0, ie = 0; return ie += K * Y, ae += ie >>> 16, ie &= 65535, ae += H * Y, te += ae >>> 16, ae &= 65535, ae += K * ee, te += ae >>> 16, ae &= 65535, te += U * Y, re += te >>> 16, te &= 65535, te += H * ee, re += te >>> 16, te &= 65535, te += K * Z, re += te >>> 16, te &= 65535, re += W * Y + U * ee + H * Z + K * j, re &= 65535, p(ae << 16 | ie, re << 16 | te, this.unsigned); }, F.mul = F.multiply, F.divide = function(S) { if (a(S) || (S = h(S)), S.isZero()) throw Error("division by zero"); if (n) { if (!this.unsigned && this.high === -2147483648 && S.low === -1 && S.high === -1) return this; var M = (this.unsigned ? n.div_u : n.div_s)(this.low, this.high, S.low, S.high); return p(M, n.get_high(), this.unsigned); } if (this.isZero()) return this.unsigned ? v : x; var W, U, H; if (this.unsigned) { if (S.unsigned || (S = S.toUnsigned()), S.gt(this)) return v; if (S.gt(this.shru(1))) return T; H = v; } else { if (this.eq(R)) { if (S.eq(I) || S.eq(_)) return R; if (S.eq(R)) return I; var K = this.shr(1); return W = K.div(S).shl(1), W.eq(x) ? S.isNegative() ? I : _ : (U = this.sub(S.mul(W)), H = W.add(U.div(S)), H); } else if (S.eq(R)) return this.unsigned ? v : x; if (this.isNegative()) return S.isNegative() ? this.neg().div(S.neg()) : this.neg().div(S).neg(); if (S.isNegative()) return this.div(S.neg()).neg(); H = x; } for (U = this; U.gte(S); ) { W = Math.max(1, Math.floor(U.toNumber() / S.toNumber())); for (var j = Math.ceil(Math.log(W) / Math.LN2), Z = j <= 48 ? 1 : u(2, j - 48), ee = l(W), Y = ee.mul(S); Y.isNegative() || Y.gt(U); ) W -= Z, ee = l(W, this.unsigned), Y = ee.mul(S); ee.isZero() && (ee = I), H = H.add(ee), U = U.sub(Y); } return H; }, F.div = F.divide, F.modulo = function(S) { if (a(S) || (S = h(S)), n) { var M = (this.unsigned ? n.rem_u : n.rem_s)(this.low, this.high, S.low, S.high); return p(M, n.get_high(), this.unsigned); } return this.sub(this.div(S).mul(S)); }, F.mod = F.modulo, F.rem = F.modulo, F.not = function() { return p(~this.low, ~this.high, this.unsigned); }, F.and = function(S) { return a(S) || (S = h(S)), p(this.low & S.low, this.high & S.high, this.unsigned); }, F.or = function(S) { return a(S) || (S = h(S)), p(this.low | S.low, this.high | S.high, this.unsigned); }, F.xor = function(S) { return a(S) || (S = h(S)), p(this.low ^ S.low, this.high ^ S.high, this.unsigned); }, F.shiftLeft = function(S) { return a(S) && (S = S.toInt()), (S &= 63) === 0 ? this : S < 32 ? p(this.low << S, this.high << S | this.low >>> 32 - S, this.unsigned) : p(0, this.low << S - 32, this.unsigned); }, F.shl = F.shiftLeft, F.shiftRight = function(S) { return a(S) && (S = S.toInt()), (S &= 63) === 0 ? this : S < 32 ? p(this.low >>> S | this.high << 32 - S, this.high >> S, this.unsigned) : p(this.high >> S - 32, this.high >= 0 ? 0 : -1, this.unsigned); }, F.shr = F.shiftRight, F.shiftRightUnsigned = function(S) { if (a(S) && (S = S.toInt()), S &= 63, S === 0) return this; var M = this.high; if (S < 32) { var W = this.low; return p(W >>> S | M << 32 - S, M >>> S, this.unsigned); } else return S === 32 ? p(M, 0, this.unsigned) : p(M >>> S - 32, 0, this.unsigned); }, F.shru = F.shiftRightUnsigned, F.shr_u = F.shiftRightUnsigned, F.toSigned = function() { return this.unsigned ? p(this.low, this.high, !1) : this; }, F.toUnsigned = function() { return this.unsigned ? this : p(this.low, this.high, !0); }, F.toBytes = function(S) { return S ? this.toBytesLE() : this.toBytesBE(); }, F.toBytesLE = function() { var S = this.high, M = this.low; return [M & 255, M >>> 8 & 255, M >>> 16 & 255, M >>> 24, S & 255, S >>> 8 & 255, S >>> 16 & 255, S >>> 24]; }, F.toBytesBE = function() { var S = this.high, M = this.low; return [S >>> 24, S >>> 16 & 255, S >>> 8 & 255, S & 255, M >>> 24, M >>> 16 & 255, M >>> 8 & 255, M & 255]; }, r.fromBytes = function(S, M, W) { return W ? r.fromBytesLE(S, M) : r.fromBytesBE(S, M); }, r.fromBytesLE = function(S, M) { return new r(S[0] | S[1] << 8 | S[2] << 16 | S[3] << 24, S[4] | S[5] << 8 | S[6] << 16 | S[7] << 24, M); }, r.fromBytesBE = function(S, M) { return new r(S[4] << 24 | S[5] << 16 | S[6] << 8 | S[7], S[0] << 24 | S[1] << 16 | S[2] << 8 | S[3], M); }; }), v$ = Dt(() => { }), w$ = Dt(() => { }), k$ = Dt((e, t) => { (function(n, r, a) { function s(p) { var u = this, d = l(); u.next = function() { var h = 2091639 * u.s0 + u.c * 23283064365386963e-26; return u.s0 = u.s1, u.s1 = u.s2, u.s2 = h - (u.c = h | 0); }, u.c = 1, u.s0 = d(" "), u.s1 = d(" "), u.s2 = d(" "), u.s0 -= d(p), u.s0 < 0 && (u.s0 += 1), u.s1 -= d(p), u.s1 < 0 && (u.s1 += 1), u.s2 -= d(p), u.s2 < 0 && (u.s2 += 1), d = null; } function i(p, u) { return u.c = p.c, u.s0 = p.s0, u.s1 = p.s1, u.s2 = p.s2, u; } function o(p, u) { var d = new s(p), h = u && u.state, c = d.next; return c.int32 = function() { return d.next() * 4294967296 | 0; }, c.double = function() { return c() + (c() * 2097152 | 0) * 11102230246251565e-32; }, c.quick = c, h && (typeof h == "object" && i(h, d), c.state = function() { return i(d, {}); }), c; } function l() { var p = 4022871197, u = function(d) { d = String(d); for (var h = 0; h < d.length; h++) { p += d.charCodeAt(h); var c = 0.02519603282416938 * p; p = c >>> 0, c -= p, c *= p, p = c >>> 0, c -= p, p += c * 4294967296; } return (p >>> 0) * 23283064365386963e-26; }; return u; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.alea = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), I$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this, u = ""; p.x = 0, p.y = 0, p.z = 0, p.w = 0, p.next = function() { var h = p.x ^ p.x << 11; return p.x = p.y, p.y = p.z, p.z = p.w, p.w ^= p.w >>> 19 ^ h ^ h >>> 8; }, l === (l | 0) ? p.x = l : u += l; for (var d = 0; d < u.length + 64; d++) p.x ^= u.charCodeAt(d) | 0, p.next(); } function i(l, p) { return p.x = l.x, p.y = l.y, p.z = l.z, p.w = l.w, p; } function o(l, p) { var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (typeof d == "object" && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xor128 = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), S$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this, u = ""; p.next = function() { var h = p.x ^ p.x >>> 2; return p.x = p.y, p.y = p.z, p.z = p.w, p.w = p.v, (p.d = p.d + 362437 | 0) + (p.v = p.v ^ p.v << 4 ^ (h ^ h << 1)) | 0; }, p.x = 0, p.y = 0, p.z = 0, p.w = 0, p.v = 0, l === (l | 0) ? p.x = l : u += l; for (var d = 0; d < u.length + 64; d++) p.x ^= u.charCodeAt(d) | 0, d == u.length && (p.d = p.x << 10 ^ p.x >>> 4), p.next(); } function i(l, p) { return p.x = l.x, p.y = l.y, p.z = l.z, p.w = l.w, p.v = l.v, p.d = l.d, p; } function o(l, p) { var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (typeof d == "object" && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xorwow = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), N$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this; p.next = function() { var d = p.x, h = p.i, c, m; return c = d[h], c ^= c >>> 7, m = c ^ c << 24, c = d[h + 1 & 7], m ^= c ^ c >>> 10, c = d[h + 3 & 7], m ^= c ^ c >>> 3, c = d[h + 4 & 7], m ^= c ^ c << 7, c = d[h + 7 & 7], c = c ^ c << 13, m ^= c ^ c << 9, d[h] = m, p.i = h + 1 & 7, m; }; function u(d, h) { var c, m = []; if (h === (h | 0)) m[0] = h; else for (h = "" + h, c = 0; c < h.length; ++c) m[c & 7] = m[c & 7] << 15 ^ h.charCodeAt(c) + m[c + 1 & 7] << 13; for (; m.length < 8; ) m.push(0); for (c = 0; c < 8 && m[c] === 0; ++c) ; for (c == 8 ? m[7] = -1 : m[c], d.x = m, d.i = 0, c = 256; c > 0; --c) d.next(); } u(p, l); } function i(l, p) { return p.x = l.x.slice(), p.i = l.i, p; } function o(l, p) { l == null && (l = +/* @__PURE__ */ new Date()); var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (d.x && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xorshift7 = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), T$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this; p.next = function() { var d = p.w, h = p.X, c = p.i, m, f; return p.w = d = d + 1640531527 | 0, f = h[c + 34 & 127], m = h[c = c + 1 & 127], f ^= f << 13, m ^= m << 17, f ^= f >>> 15, m ^= m >>> 12, f = h[c] = f ^ m, p.i = c, f + (d ^ d >>> 16) | 0; }; function u(d, h) { var c, m, f, g, y, b = [], x = 128; for (h === (h | 0) ? (m = h, h = null) : (h = h + "\0", m = 0, x = Math.max(x, h.length)), f = 0, g = -32; g < x; ++g) h && (m ^= h.charCodeAt((g + 32) % h.length)), g === 0 && (y = m), m ^= m << 10, m ^= m >>> 15, m ^= m << 4, m ^= m >>> 13, g >= 0 && (y = y + 1640531527 | 0, c = b[g & 127] ^= m + y, f = c == 0 ? f + 1 : 0); for (f >= 128 && (b[(h && h.length || 0) & 127] = -1), f = 127, g = 4 * 128; g > 0; --g) m = b[f + 34 & 127], c = b[f = f + 1 & 127], m ^= m << 13, c ^= c << 17, m ^= m >>> 15, c ^= c >>> 12, b[f] = m ^ c; d.w = y, d.X = b, d.i = f; } u(p, l); } function i(l, p) { return p.i = l.i, p.w = l.w, p.X = l.X.slice(), p; } function o(l, p) { l == null && (l = +/* @__PURE__ */ new Date()); var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (d.X && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.xor4096 = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), C$ = Dt((e, t) => { (function(n, r, a) { function s(l) { var p = this, u = ""; p.next = function() { var h = p.b, c = p.c, m = p.d, f = p.a; return h = h << 25 ^ h >>> 7 ^ c, c = c - m | 0, m = m << 24 ^ m >>> 8 ^ f, f = f - h | 0, p.b = h = h << 20 ^ h >>> 12 ^ c, p.c = c = c - m | 0, p.d = m << 16 ^ c >>> 16 ^ f, p.a = f - h | 0; }, p.a = 0, p.b = 0, p.c = -1640531527, p.d = 1367130551, l === Math.floor(l) ? (p.a = l / 4294967296 | 0, p.b = l | 0) : u += l; for (var d = 0; d < u.length + 20; d++) p.b ^= u.charCodeAt(d) | 0, p.next(); } function i(l, p) { return p.a = l.a, p.b = l.b, p.c = l.c, p.d = l.d, p; } function o(l, p) { var u = new s(l), d = p && p.state, h = function() { return (u.next() >>> 0) / 4294967296; }; return h.double = function() { do var c = u.next() >>> 11, m = (u.next() >>> 0) / 4294967296, f = (c + m) / (1 << 21); while (f === 0); return f; }, h.int32 = u.next, h.quick = h, d && (typeof d == "object" && i(d, u), h.state = function() { return i(u, {}); }), h; } r && r.exports ? r.exports = o : a && a.amd ? a(function() { return o; }) : this.tychei = o; })(e, typeof t == "object" && t, typeof define == "function" && define); }), _$ = Dt(() => { }), E$ = Dt((e, t) => { (function(n, r, a) { var s = 256, i = 6, o = 52, l = "random", p = a.pow(s, i), u = a.pow(2, o), d = u * 2, h = s - 1, c; function m(I, T, _) { var E = []; T = T == !0 ? { entropy: !0 } : T || {}; var A = b(y(T.entropy ? [I, v(r)] : I ?? x(), 3), E), R = new f(E), F = function() { for (var S = R.g(i), M = p, W = 0; S < u; ) S = (S + W) * s, M *= s, W = R.g(1); for (; S >= d; ) S /= 2, M /= 2, W >>>= 1; return (S + W) / M; }; return F.int32 = function() { return R.g(4) | 0; }, F.quick = function() { return R.g(4) / 4294967296; }, F.double = F, b(v(R.S), r), (T.pass || _ || function(S, M, W, U) { return U && (U.S && g(U, R), S.state = function() { return g(R, {}); }), W ? (a[l] = S, M) : S; })(F, A, "global" in T ? T.global : this == a, T.state); } function f(I) { var T, _ = I.length, E = this, A = 0, R = E.i = E.j = 0, F = E.S = []; for (_ || (I = [_++]); A < s; ) F[A] = A++; for (A = 0; A < s; A++) F[A] = F[R = h & R + I[A % _] + (T = F[A])], F[R] = T; (E.g = function(S) { for (var M, W = 0, U = E.i, H = E.j, K = E.S; S--; ) M = K[U = h & U + 1], W = W * s + K[h & (K[U] = K[H = h & H + M]) + (K[H] = M)]; return E.i = U, E.j = H, W; })(s); } function g(I, T) { return T.i = I.i, T.j = I.j, T.S = I.S.slice(), T; } function y(I, T) { var _ = [], E = typeof I, A; if (T && E == "object") for (A in I) try { _.push(y(I[A], T - 1)); } catch { } return _.length ? _ : E == "string" ? I : I + "\0"; } function b(I, T) { for (var _ = I + "", E, A = 0; A < _.length; ) T[h & A] = h & (E ^= T[h & A] * 19) + _.charCodeAt(A++); return v(T); } function x() { try { var I; return c && (I = c.randomBytes) ? I = I(s) : (I = new Uint8Array(s), (n.crypto || n.msCrypto).getRandomValues(I)), v(I); } catch { var T = n.navigator, _ = T && T.plugins; return [+/* @__PURE__ */ new Date(), n, _, n.screen, v(r)]; } } function v(I) { return String.fromCharCode.apply(0, I); } if (b(a.random(), r), typeof t == "object" && t.exports) { t.exports = m; try { c = _$(); } catch { } } else typeof define == "function" && define.amd ? define(function() { return m; }) : a["seed" + l] = m; })(typeof self < "u" ? self : e, [], Math); }), Zh = Dt((e, t) => { var n = k$(), r = I$(), a = S$(), s = N$(), i = T$(), o = C$(), l = E$(); l.alea = n, l.xor128 = r, l.xorwow = a, l.xorshift7 = s, l.xor4096 = i, l.tychei = o, t.exports = l; }), A0 = Dt(() => { }), ug = Dt(() => { }), F0 = Dt(() => { }), $$ = Dt(() => { }), A$ = Dt(() => { }), F$ = Dt(() => { }), R$ = Dt((e, t) => { var n = (() => { var r = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0; return typeof __filename < "u" && (r = r || __filename), function(a) { a = a || {}; function s() { return j.buffer != he && Ge(j.buffer), Ie; } function i() { return j.buffer != he && Ge(j.buffer), Te; } function o() { return j.buffer != he && Ge(j.buffer), Re; } function l() { return j.buffer != he && Ge(j.buffer), Be; } function p() { return j.buffer != he && Ge(j.buffer), rt; } var u = typeof a < "u" ? a : {}, d, h; u.ready = new Promise(function(D, q) { d = D, h = q; }); var c; typeof process < "u" && process.listeners && (c = { uncaughtException: process.listeners("uncaughtException"), unhandledRejection: process.listeners("unhandledRejection") }); var m = Object.assign({}, u), f = (D, q) => { throw q; }, g = typeof window == "object", y = typeof importScripts == "function", b = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", x = u.ENVIRONMENT_IS_PTHREAD || !1, v = ""; function I(D) { return u.locateFile ? u.locateFile(D, v) : v + D; } var T, _, E; function A(D) { D instanceof Yr || U("exiting due to exception: " + D); } if (b) { var R = ug(), F = F0(); y ? v = F.dirname(v) + "/" : v = __dirname + "/", T = (q, le) => (q = va(q) ? new URL(q) : F.normalize(q), R.readFileSync(q, le ? void 0 : "utf8")), E = (q) => { var le = T(q, !0); return le.buffer || (le = new Uint8Array(le)), le; }, _ = (q, le, Ne) => { q = va(q) ? new URL(q) : F.normalize(q), R.readFile(q, function(Ae, Me) { Ae ? Ne(Ae) : le(Me.buffer); }); }, process.argv.length > 1 && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), process.on("uncaughtException", function(q) { if (!(q instanceof Yr)) throw q; }), process.on("unhandledRejection", function(q) { throw q; }), f = (q, le) => { if (St()) throw process.exitCode = q, le; A(le), process.exit(q); }, u.inspect = function() { return "[Emscripten Module object]"; }; let D; try { D = $$(); } catch (q) { throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'), q; } global.Worker = D.Worker; } else (g || y) && (y ? v = self.location.href : typeof document < "u" && document.currentScript && (v = document.currentScript.src), typeof r < "u" && r && (v = r), v.indexOf("blob:") !== 0 ? v = v.substr(0, v.replace(/[?#].*/, "").lastIndexOf("/") + 1) : v = "", b || (T = (D) => { var q = new XMLHttpRequest(); return q.open("GET", D, !1), q.send(null), q.responseText; }, y && (E = (D) => { var q = new XMLHttpRequest(); return q.open("GET", D, !1), q.responseType = "arraybuffer", q.send(null), new Uint8Array(q.response); }), _ = (D, q, le) => { var Ne = new XMLHttpRequest(); Ne.open("GET", D, !0), Ne.responseType = "arraybuffer", Ne.onload = () => { if (Ne.status == 200 || Ne.status == 0 && Ne.response) { q(Ne.response); return; } le(); }, Ne.onerror = le, Ne.send(null); })); b && typeof performance > "u" && (global.performance = A$().performance); var S = console.log.bind(console), M = console.warn.bind(console); b && (S = (D) => R.writeSync(1, D + ` `), M = (D) => R.writeSync(2, D + ` `)); var W = u.print || S, U = u.printErr || M; Object.assign(u, m), m = null, u.arguments && u.arguments, u.thisProgram && u.thisProgram, u.quit && (f = u.quit); var H; u.wasmBinary && (H = u.wasmBinary); var K = u.noExitRuntime || !0; typeof WebAssembly != "object" && Jr("no native wasm support detected"); var j, Z, ee = !1, Y; function re(D, q) { D || Jr(q); } var te = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0; function ae(D, q, le) { q >>>= 0; for (var Ne = q + le, Ae = q; D[Ae] && !(Ae >= Ne); ) ++Ae; if (Ae - q > 16 && D.buffer && te) return te.decode(D.buffer instanceof SharedArrayBuffer ? D.slice(q, Ae) : D.subarray(q, Ae)); for (var Me = ""; q < Ae; ) { var fe = D[q++]; if (!(fe & 128)) { Me += String.fromCharCode(fe); continue; } var ke = D[q++] & 63; if ((fe & 224) == 192) { Me += String.fromCharCode((fe & 31) << 6 | ke); continue; } var xt = D[q++] & 63; if ((fe & 240) == 224 ? fe = (fe & 15) << 12 | ke << 6 | xt : fe = (fe & 7) << 18 | ke << 12 | xt << 6 | D[q++] & 63, fe < 65536) Me += String.fromCharCode(fe); else { var Xn = fe - 65536; Me += String.fromCharCode(55296 | Xn >> 10, 56320 | Xn & 1023); } } return Me; } function ie(D, q) { return D >>>= 0, D ? ae(i(), D, q) : ""; } function ve(D, q, le, Ne) { if (le >>>= 0, !(Ne > 0)) return 0; for (var Ae = le, Me = le + Ne - 1, fe = 0; fe < D.length; ++fe) { var ke = D.charCodeAt(fe); if (ke >= 55296 && ke <= 57343) { var xt = D.charCodeAt(++fe); ke = 65536 + ((ke & 1023) << 10) | xt & 1023; } if (ke <= 127) { if (le >= Me) break; q[le++ >>> 0] = ke; } else if (ke <= 2047) { if (le + 1 >= Me) break; q[le++ >>> 0] = 192 | ke >> 6, q[le++ >>> 0] = 128 | ke & 63; } else if (ke <= 65535) { if (le + 2 >= Me) break; q[le++ >>> 0] = 224 | ke >> 12, q[le++ >>> 0] = 128 | ke >> 6 & 63, q[le++ >>> 0] = 128 | ke & 63; } else { if (le + 3 >= Me) break; q[le++ >>> 0] = 240 | ke >> 18, q[le++ >>> 0] = 128 | ke >> 12 & 63, q[le++ >>> 0] = 128 | ke >> 6 & 63, q[le++ >>> 0] = 128 | ke & 63; } } return q[le >>> 0] = 0, le - Ae; } function be(D, q, le) { return ve(D, i(), q, le); } var he, Ie, Te, Re, Be, rt; x && (he = u.buffer); function Ge(D) { he = D, u.HEAP8 = Ie = new Int8Array(D), u.HEAP16 = new Int16Array(D), u.HEAP32 = Re = new Int32Array(D), u.HEAPU8 = Te = new Uint8Array(D), u.HEAPU16 = new Uint16Array(D), u.HEAPU32 = Be = new Uint32Array(D), u.HEAPF32 = new Float32Array(D), u.HEAPF64 = rt = new Float64Array(D); } var qe = u.INITIAL_MEMORY || 16777216; if (x) j = u.wasmMemory, he = u.buffer; else if (u.wasmMemory) j = u.wasmMemory; else if (j = new WebAssembly.Memory({ initial: qe / 65536, maximum: 65536, shared: !0 }), !(j.buffer instanceof SharedArrayBuffer)) throw U("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"), b && U("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"), Error("bad memory"); j && (he = j.buffer), qe = he.byteLength, Ge(he); var $e, Je = [], pt = [], Rn = []; function St() { return K; } function In() { if (u.preRun) for (typeof u.preRun == "function" && (u.preRun = [u.preRun]); u.preRun.length; ) ir(u.preRun.shift()); dt(Je); } function Yt() { !x && dt(pt); } function Sn() { if (!x) { if (u.postRun) for (typeof u.postRun == "function" && (u.postRun = [u.postRun]); u.postRun.length; ) Nn(u.postRun.shift()); dt(Rn); } } function ir(D) { Je.unshift(D); } function Dn(D) { pt.unshift(D); } function Nn(D) { Rn.unshift(D); } var Qt = 0, qn = null; function xa(D) { Qt++, u.monitorRunDependencies && u.monitorRunDependencies(Qt); } function Mu(D) { if (Qt--, u.monitorRunDependencies && u.monitorRunDependencies(Qt), Qt == 0 && qn) { var q = qn; qn = null, q(); } } function Jr(D) { u.onAbort && u.onAbort(D), D = "Aborted(" + D + ")", U(D), ee = !0, Y = 1, D += ". Build with -sASSERTIONS for more info."; var q = new WebAssembly.RuntimeError(D); throw h(q), q; } var Ou = "data:application/octet-stream;base64,"; function $r(D) { return D.startsWith(Ou); } function va(D) { return D.startsWith("file://"); } var en; en = "tfjs-backend-wasm-threaded-simd.wasm", $r(en) || (en = I(en)); function Ed(D) { try { if (D == en && H) return new Uint8Array(H); if (E) return E(D); throw "both async and sync fetching of the wasm failed"; } catch (q) { Jr(q); } } function $d() { if (!H && (g || y)) { if (typeof fetch == "function" && !va(en)) return fetch(en, { credentials: "same-origin" }).then(function(D) { if (!D.ok) throw "failed to load wasm binary file at '" + en + "'"; return D.arrayBuffer(); }).catch(function() { return Ed(en); }); if (_) return new Promise(function(D, q) { _(en, function(le) { D(new Uint8Array(le)); }, q); }); } return Promise.resolve().then(function() { return Ed(en); }); } function Ad() { var D = { env: Rv, wasi_snapshot_preview1: Rv }; function q(fe, ke) { var xt = fe.exports; if (u.asm = xt, Qr(u.asm._emscripten_tls_init), $e = u.asm.__indirect_function_table, Dn(u.asm.__wasm_call_ctors), Z = ke, !x) { var Xn = ce.unusedWorkers.length; ce.unusedWorkers.forEach(function(ea) { ce.loadWasmModuleToWorker(ea, function() { --Xn || Mu(); }); }); } } x || xa(); function le(fe) { q(fe.instance, fe.module); } function Ne(fe) { return $d().then(function(ke) { return WebAssembly.instantiate(ke, D); }).then(function(ke) { return ke; }).then(fe, function(ke) { U("failed to asynchronously prepare wasm: " + ke), Jr(ke); }); } function Ae() { return !H && typeof WebAssembly.instantiateStreaming == "function" && !$r(en) && !va(en) && !b && typeof fetch == "function" ? fetch(en, { credentials: "same-origin" }).then(function(fe) { var ke = WebAssembly.instantiateStreaming(fe, D); return ke.then(le, function(xt) { return U("wasm streaming compile failed: " + xt), U("falling back to ArrayBuffer instantiation"), Ne(le); }); }) : Ne(le); } if (u.instantiateWasm) try { var Me = u.instantiateWasm(D, q); return Me; } catch (fe) { U("Module.instantiateWasm callback failed with error: " + fe), h(fe); } return Ae().catch(h), {}; } var Fd = {}; function Yr(D) { this.name = "ExitStatus", this.message = "Program terminated with exit(" + D + ")", this.status = D; } function Ao(D) { var q = ce.pthreads[D]; delete ce.pthreads[D], q.terminate(), Fm(D), ce.runningWorkers.splice(ce.runningWorkers.indexOf(q), 1), q.pthread_ptr = 0; } function Rd(D) { var q = ce.pthreads[D]; q.postMessage({ cmd: "cancel" }); } function gs(D) { var q = ce.pthreads[D]; re(q), ce.returnWorkerToPool(q); } function ys(D) { var q = ce.getNewWorker(); if (!q) return 6; ce.runningWorkers.push(q), ce.pthreads[D.pthread_ptr] = q, q.pthread_ptr = D.pthread_ptr; var le = { cmd: "run", start_routine: D.startRoutine, arg: D.arg, pthread_ptr: D.pthread_ptr }; return q.runPthread = () => { b && q.ref(), q.postMessage(le, D.transferList), delete q.runPthread; }, q.loaded && q.runPthread(), 0; } function Dd(D) { if (x) return Fo(1, 1, D); Y = D, St() || (ce.terminateAllThreads(), u.onExit && u.onExit(D), ee = !0), f(D, new Yr(D)); } function Q(D, q) { if (Y = D, !q && x) throw Ve(D), "unwind"; Dd(D); } var oe = Q; function Se(D) { if (D instanceof Yr || D == "unwind") return Y; f(1, D); } var ce = { unusedWorkers: [], runningWorkers: [], tlsInitFunctions: [], pthreads: {}, init: function() { x ? ce.initWorker() : ce.initMainThread(); }, initMainThread: function() { fo