UNPKG

@vladmandic/human

Version:

Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gesture Recognition

1,402 lines (1,400 loc) 2.07 MB
/* Human homepage: <https://github.com/vladmandic/human> author: <https://github.com/vladmandic>' */ var __defProp = Object.defineProperty; var __typeError = (msg) => { throw TypeError(msg); }; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __export = (target, all2) => { for (var name in all2) __defProp(target, name, { get: all2[name], enumerable: true }); }; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); // dist/tfjs.esm.js var tfjs_esm_exports = {}; __export(tfjs_esm_exports, { Abs: () => Xs, Acos: () => Vo, Acosh: () => Wo, AdadeltaOptimizer: () => Ju, AdagradOptimizer: () => ep, AdamOptimizer: () => tp, AdamaxOptimizer: () => rp, Add: () => uo, AddN: () => Uo, All: () => Go, Any: () => Ho, ArgMax: () => Ys, ArgMin: () => Qs, Asin: () => Ko, Asinh: () => qo, Atan: () => jo, Atan2: () => Yo, Atanh: () => Xo, AvgPool: () => Qo, AvgPool3D: () => Zs, AvgPool3DGrad: () => Ri, AvgPoolGrad: () => $i, BackendWasm: () => pm, BatchMatMul: () => Zo, BatchToSpaceND: () => Js, Bincount: () => Jo, BitwiseAnd: () => qa, BroadcastArgs: () => ea, BroadcastTo: () => qce, Cast: () => yo, Ceil: () => en, ClipByValue: () => bo, Complex: () => Di, ComplexAbs: () => Ai, Concat: () => ta, Conv2D: () => tn, Conv2DBackpropFilter: () => Fi, Conv2DBackpropInput: () => rn, Conv3D: () => on, Conv3DBackpropFilterV2: () => ja, Conv3DBackpropInputV2: () => nn, Cos: () => sn, Cosh: () => an, CropAndResize: () => cn, Cumprod: () => un, Cumsum: () => pn, DataStorage: () => Bo, DenseBincount: () => ra, DepthToSpace: () => ln, DepthwiseConv2dNative: () => mn, DepthwiseConv2dNativeBackpropFilter: () => Pi, DepthwiseConv2dNativeBackpropInput: () => Oi, Diag: () => oa, Dilation2D: () => dn, Dilation2DBackpropFilter: () => Li, Dilation2DBackpropInput: () => Mi, Draw: () => $u, ENV: () => nw, Einsum: () => Bi, Elu: () => hn, EluGrad: () => Xa, Environment: () => dl, Equal: () => xn, Erf: () => gn, Exp: () => yn, ExpandDims: () => na, Expm1: () => bn, FFT: () => zi, Fill: () => sa, FlipLeftRight: () => Cn, Floor: () => wn, FloorDiv: () => Sn, FromPixels: () => Du, FusedBatchNorm: () => In, FusedConv2D: () => Io, FusedDepthwiseConv2D: () => vo, GPGPUContext: () => bp, GatherNd: () => vn, GatherV2: () => aa, GraphModel: () => Bl, Greater: () => kn, GreaterEqual: () => Nn, IFFT: () => Vi, Identity: () => Co, Imag: () => Wi, IsFinite: () => Tn, IsInf: () => _n, IsNan: () => En, KernelBackend: () => ao, LRN: () => Bn, LRNGrad: () => Ya, LeakyRelu: () => $n, Less: () => Rn, LessEqual: () => Dn, LinSpace: () => An, Log: () => Fn, Log1p: () => Pn, LogSoftmax: () => jce, LogicalAnd: () => On, LogicalNot: () => Mn, LogicalOr: () => Ln, LogicalXor: () => R0, LowerBound: () => Xce, MathBackendCPU: () => xc, MathBackendWebGL: () => Lc, MatrixBandPart: () => Yce, Max: () => zn, MaxPool: () => Wn, MaxPool3D: () => ia, MaxPool3DGrad: () => Gi, MaxPoolGrad: () => Ui, MaxPoolWithArgmax: () => ua, Maximum: () => Vn, Mean: () => Un, Min: () => Gn, Minimum: () => Hn, MirrorPad: () => Kn, Mod: () => qn, MomentumOptimizer: () => op, Multinomial: () => jn, Multiply: () => Xn, Neg: () => pa, NonMaxSuppressionV3: () => Qn, NonMaxSuppressionV4: () => Qa, NonMaxSuppressionV5: () => Zn, NotEqual: () => Yn, OP_SCOPE_SUFFIX: () => Nw, OneHot: () => Jn, OnesLike: () => ca, Optimizer: () => kr, OptimizerConstructors: () => Fl, Pack: () => la, PadV2: () => es, Pool: () => Qce, Pow: () => ts, Prelu: () => rs, Prod: () => os, RMSPropOptimizer: () => np, RaggedGather: () => Hp, RaggedRange: () => Kp, RaggedTensorToTensor: () => qp, Range: () => ma, Rank: () => gw, Real: () => Hi, RealDiv: () => fn, Reciprocal: () => ns, Reduction: () => $t, Relu: () => ss, Relu6: () => us, Reshape: () => da, ResizeBilinear: () => is, ResizeBilinearGrad: () => Ja, ResizeNearestNeighbor: () => as, ResizeNearestNeighborGrad: () => Za, Reverse: () => ps, RotateWithOffset: () => Ds, Round: () => cs, Rsqrt: () => ls, SGDOptimizer: () => mi, ScatterNd: () => ms, SearchSorted: () => fs, Select: () => fa, Selu: () => hs, Sigmoid: () => bs, Sign: () => ys, Sin: () => gs, Sinh: () => xs, Slice: () => ha, Softmax: () => Is, Softplus: () => Cs, SpaceToBatchND: () => ga, SparseFillEmptyRows: () => Ki, SparseReshape: () => ei, SparseSegmentMean: () => ya, SparseSegmentSum: () => ba, SparseToDense: () => vs, SplitV: () => xa, Sqrt: () => ws, Square: () => qi, SquaredDifference: () => ks, StaticRegexReplace: () => Ru, Step: () => wo, StridedSlice: () => Ns, StringNGrams: () => Ca, StringSplit: () => ji, StringToHashBucketFast: () => Xi, Sub: () => Ts, Sum: () => Ss, Tan: () => _s, Tanh: () => Es, Tensor: () => mt, TensorBuffer: () => tt, TensorScatterUpdate: () => ds, Tile: () => po, TopK: () => $s, Transform: () => Rs, Transpose: () => co, Unique: () => Yi, Unpack: () => wa, UnsortedSegmentSum: () => Qi, UpperBound: () => Zce, Variable: () => ri, WebGPUBackend: () => jc, ZerosLike: () => Sa, _FusedMatMul: () => So, abs: () => Qt, acos: () => Rk, acosh: () => Dk, add: () => Ce, addN: () => Ak, all: () => Fk, any: () => Pk, argMax: () => Ok, argMin: () => Mk, asin: () => Lk, asinh: () => Bk, atan: () => zk, atan2: () => Vk, atanh: () => Wk, avgPool: () => dd, avgPool3d: () => Hk, backend: () => ak, backend_util: () => w, basicLSTMCell: () => Kk, batchNorm: () => nu, batchNorm2d: () => jk, batchNorm3d: () => Xk, batchNorm4d: () => Yk, batchToSpaceND: () => fd, bincount: () => hd, bitwiseAnd: () => Qk, booleanMaskAsync: () => L6, broadcastArgs: () => Zk, broadcastTo: () => su, broadcast_util: () => Sr, browser: () => cT, buffer: () => me, cast: () => Ue, ceil: () => Jk, clipByValue: () => e2, clone: () => Ur, complex: () => Er, concat: () => yt, concat1d: () => t2, concat2d: () => r22, concat3d: () => o2, concat4d: () => n2, conv1d: () => s2, conv2d: () => au, conv2dTranspose: () => a2, conv3d: () => i2, conv3dTranspose: () => p2, copyRegisteredKernels: () => ale, cos: () => c2, cosh: () => l2, cosineWindow: () => $l, cumprod: () => m2, cumsum: () => d2, customGrad: () => Ir, denseBincount: () => f2, deprecationWarn: () => Tw, depthToSpace: () => h2, depthwiseConv2d: () => sc, deregisterOp: () => V5, device_util: () => eu, diag: () => g2, dilation2d: () => x2, disableDeprecationWarnings: () => xme, dispose: () => Ot, disposeVariables: () => yme, div: () => je, divNoNan: () => b2, dot: () => C2, dropout: () => Y6, einsum: () => iu, elu: () => bd, enableDebugMode: () => gme, enableProdMode: () => hme, enclosingPowerOfTwo: () => Zw, engine: () => ur, ensureShape: () => w2, env: () => A, equal: () => yd, erf: () => S2, euclideanNorm: () => k2, exp: () => _o, expandDims: () => Ms, expm1: () => N2, eye: () => Cd, fft: () => uc, fill: () => $a, findBackend: () => kme, findBackendFactory: () => Nme, floor: () => wd, floorDiv: () => md, forceHalfFloat: () => GD, fused: () => Jw, gather: () => Sd, gatherND: () => j6, gather_util: () => af, getBackend: () => sk, getGradient: () => iw, getKernel: () => Xp, getKernelsForBackend: () => Ym, getThreadsCount: () => aae, gpgpu_util: () => mv, grad: () => VK, grads: () => WK, greater: () => Wu, greaterEqual: () => Id, ifft: () => ju, imag: () => pu, image: () => eX, inTopKAsync: () => Z6, io: () => di, irfft: () => Hd, isFinite: () => T2, isInf: () => _2, isNaN: () => E2, keep: () => $r, kernel_impls: () => Vt, leakyRelu: () => vd, less: () => Tl, lessEqual: () => ac, linalg: () => tX, linspace: () => $2, loadGraphModel: () => M8, loadGraphModelSync: () => L8, localResponseNormalization: () => R2, log: () => pi, log1p: () => kd, logSigmoid: () => D2, logSoftmax: () => A2, logSumExp: () => _d, logicalAnd: () => Uu, logicalNot: () => Ed, logicalOr: () => $d, logicalXor: () => F2, losses: () => rX, lowerBound: () => P2, matMul: () => Ze, math: () => aT, max: () => Ra, maxPool: () => Dd, maxPool3d: () => O2, maxPoolWithArgmax: () => M2, maximum: () => Ad, mean: () => Gu, memory: () => bme, meshgrid: () => L2, min: () => Nl, minimum: () => Hu, mirrorPad: () => B2, mod: () => z2, moments: () => V2, movingAverage: () => V6, mul: () => se, multiRNNCell: () => W2, multinomial: () => U2, neg: () => pr, nextFrame: () => cS, node: () => EQt, norm: () => Vu, notEqual: () => Fd, oneHot: () => El, ones: () => Da, onesLike: () => G2, op: () => N, outerProduct: () => H2, pad: () => Aa, pad1d: () => K2, pad2d: () => q2, pad3d: () => j2, pad4d: () => X2, pool: () => Y2, pow: () => ui, prelu: () => Od, print: () => ld, prod: () => Q2, profile: () => Cme, raggedGather: () => Z2, raggedRange: () => J2, raggedTensorToTensor: () => e1, rand: () => t1, randomGamma: () => S1, randomNormal: () => Wd, randomStandardNormal: () => I1, randomUniform: () => ic, randomUniformInt: () => v1, range: () => cu, ready: () => Ime, real: () => ci, reciprocal: () => k1, registerBackend: () => tu, registerGradient: () => ole, registerKernel: () => ti, registerOp: () => z5, relu: () => lu, relu6: () => Ud, removeBackend: () => vme, reshape: () => W, reverse: () => mo, reverse1d: () => N1, reverse2d: () => T1, reverse3d: () => _1, reverse4d: () => E1, rfft: () => pc, round: () => Gd, rsqrt: () => $1, scalar: () => ke, scatterND: () => U6, scatter_util: () => du, searchSorted: () => _l, selu: () => R1, separableConv2d: () => D1, serialization: () => jN, setBackend: () => Sme, setPlatform: () => Tme, setThreadsCount: () => sae, setWasmPath: () => oae, setWasmPaths: () => nae, setWebGLContext: () => NI, setdiff1dAsync: () => A1, shared: () => Ic, sigmoid: () => Ea, sign: () => F1, signal: () => Jj, sin: () => P1, sinh: () => O1, slice: () => Xe, slice1d: () => M1, slice2d: () => L1, slice3d: () => B1, slice4d: () => z1, slice_util: () => pt, softmax: () => V1, softplus: () => Td, spaceToBatchND: () => Pd, sparse: () => oX, sparseToDense: () => K6, spectral: () => Zj, split: () => li, sqrt: () => Rr, square: () => Zt, squaredDifference: () => Kd, squeeze: () => cc, stack: () => vr, step: () => qd, stridedSlice: () => W1, string: () => nX, sub: () => Te, sum: () => ot, sumOutType: () => oi, tan: () => U1, tanh: () => kl, tensor: () => ar, tensor1d: () => Jt, tensor2d: () => mu, tensor3d: () => jd, tensor4d: () => G1, tensor5d: () => H1, tensor6d: () => K1, tensorScatterUpdate: () => j1, tensor_util: () => rk, test_util: () => w1, tidy: () => De, tile: () => uu, time: () => wme, topk: () => X1, train: () => OGe, transpose: () => mc, truncatedNormal: () => Y1, unique: () => Q1, unregisterGradient: () => sle, unregisterKernel: () => nle, unsortedSegmentSum: () => Z1, unstack: () => fo, upcastType: () => dt, upperBound: () => J1, util: () => y, valueAndGrad: () => UK, valueAndGrads: () => GK, variable: () => eN, variableGrads: () => Vw, version: () => Vce, version_converter: () => z8, version_core: () => OX, version_cpu: () => yY, version_wasm: () => iae, version_webgl: () => d9, webgl: () => $at, webgl_util: () => Ec, webgpu_util: () => Zv, where: () => lo, whereAsync: () => Yd, zeros: () => Gr, zerosLike: () => Gt }); var _G = Object.create; var QC = Object.defineProperty; var EG = Object.getOwnPropertyDescriptor; var $G = Object.getOwnPropertyNames; var RG = Object.getPrototypeOf; var DG = Object.prototype.hasOwnProperty; var Kt = (r15, e) => () => (e || r15((e = { exports: {} }).exports, e), e.exports); var qe = (r15, e) => { for (var t10 in e) QC(r15, t10, { get: e[t10], enumerable: true }); }; var AG = (r15, e, t10, o) => { if (e && typeof e == "object" || typeof e == "function") for (let n of $G(e)) !DG.call(r15, n) && n !== t10 && QC(r15, n, { get: () => e[n], enumerable: !(o = EG(e, n)) || o.enumerable }); return r15; }; var zp = (r15, e, t10) => (t10 = r15 != null ? _G(RG(r15)) : {}, AG(e || !r15 || !r15.__esModule ? QC(t10, "default", { value: r15, enumerable: true }) : t10, r15)); var U0 = Kt((ple, W0) => { W0.exports = kt; var ko = null; try { ko = 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 (r15) { } function kt(r15, e, t10) { this.low = r15 | 0, this.high = e | 0, this.unsigned = !!t10; } kt.prototype.__isLong__; Object.defineProperty(kt.prototype, "__isLong__", { value: true }); function Wr(r15) { return (r15 && r15.__isLong__) === true; } kt.isLong = Wr; var A0 = {}, F0 = {}; function Fu(r15, e) { var t10, o, n; return e ? (r15 >>>= 0, (n = 0 <= r15 && r15 < 256) && (o = F0[r15], o) ? o : (t10 = Nt(r15, (r15 | 0) < 0 ? -1 : 0, true), n && (F0[r15] = t10), t10)) : (r15 |= 0, (n = -128 <= r15 && r15 < 128) && (o = A0[r15], o) ? o : (t10 = Nt(r15, r15 < 0 ? -1 : 0, false), n && (A0[r15] = t10), t10)); } kt.fromInt = Fu; function No(r15, e) { if (isNaN(r15)) return e ? Au : To; if (e) { if (r15 < 0) return Au; if (r15 >= L0) return V0; } else { if (r15 <= -O0) return Vr; if (r15 + 1 >= O0) return z0; } return r15 < 0 ? No(-r15, e).neg() : Nt(r15 % Qp | 0, r15 / Qp | 0, e); } kt.fromNumber = No; function Nt(r15, e, t10) { return new kt(r15, e, t10); } kt.fromBits = Nt; var Zm = Math.pow; function cw(r15, e, t10) { if (r15.length === 0) throw Error("empty string"); if (r15 === "NaN" || r15 === "Infinity" || r15 === "+Infinity" || r15 === "-Infinity") return To; if (typeof e == "number" ? (t10 = e, e = false) : e = !!e, t10 = t10 || 10, t10 < 2 || 36 < t10) throw RangeError("radix"); var o; if ((o = r15.indexOf("-")) > 0) throw Error("interior hyphen"); if (o === 0) return cw(r15.substring(1), e, t10).neg(); for (var n = No(Zm(t10, 8)), s = To, a = 0; a < r15.length; a += 8) { var i = Math.min(8, r15.length - a), p = parseInt(r15.substring(a, a + i), t10); if (i < 8) { var u = No(Zm(t10, i)); s = s.mul(u).add(No(p)); } else s = s.mul(n), s = s.add(No(p)); } return s.unsigned = e, s; } kt.fromString = cw; function As(r15, e) { return typeof r15 == "number" ? No(r15, e) : typeof r15 == "string" ? cw(r15, e) : Nt(r15.low, r15.high, typeof e == "boolean" ? e : r15.unsigned); } kt.fromValue = As; var P0 = 65536, r42 = 1 << 24, Qp = P0 * P0, L0 = Qp * Qp, O0 = L0 / 2, M0 = Fu(r42), To = Fu(0); kt.ZERO = To; var Au = Fu(0, true); kt.UZERO = Au; var Yp = Fu(1); kt.ONE = Yp; var B0 = Fu(1, true); kt.UONE = B0; var pw = Fu(-1); kt.NEG_ONE = pw; var z0 = Nt(-1, 2147483647, false); kt.MAX_VALUE = z0; var V0 = Nt(-1, -1, true); kt.MAX_UNSIGNED_VALUE = V0; var Vr = Nt(0, -2147483648, false); kt.MIN_VALUE = Vr; var de = kt.prototype; de.toInt = function() { return this.unsigned ? this.low >>> 0 : this.low; }; de.toNumber = function() { return this.unsigned ? (this.high >>> 0) * Qp + (this.low >>> 0) : this.high * Qp + (this.low >>> 0); }; de.toString = function(e) { if (e = e || 10, e < 2 || 36 < e) throw RangeError("radix"); if (this.isZero()) return "0"; if (this.isNegative()) if (this.eq(Vr)) { var t10 = No(e), o = this.div(t10), n = o.mul(t10).sub(this); return o.toString(e) + n.toInt().toString(e); } else return "-" + this.neg().toString(e); for (var s = No(Zm(e, 6), this.unsigned), a = this, i = ""; ; ) { var p = a.div(s), u = a.sub(p.mul(s)).toInt() >>> 0, c = u.toString(e); if (a = p, a.isZero()) return c + i; for (; c.length < 6; ) c = "0" + c; i = "" + c + i; } }; de.getHighBits = function() { return this.high; }; de.getHighBitsUnsigned = function() { return this.high >>> 0; }; de.getLowBits = function() { return this.low; }; de.getLowBitsUnsigned = function() { return this.low >>> 0; }; de.getNumBitsAbs = function() { if (this.isNegative()) return this.eq(Vr) ? 64 : this.neg().getNumBitsAbs(); for (var e = this.high != 0 ? this.high : this.low, t10 = 31; t10 > 0 && !(e & 1 << t10); t10--) ; return this.high != 0 ? t10 + 33 : t10 + 1; }; de.isZero = function() { return this.high === 0 && this.low === 0; }; de.eqz = de.isZero; de.isNegative = function() { return !this.unsigned && this.high < 0; }; de.isPositive = function() { return this.unsigned || this.high >= 0; }; de.isOdd = function() { return (this.low & 1) === 1; }; de.isEven = function() { return (this.low & 1) === 0; }; de.equals = function(e) { return Wr(e) || (e = As(e)), this.unsigned !== e.unsigned && this.high >>> 31 === 1 && e.high >>> 31 === 1 ? false : this.high === e.high && this.low === e.low; }; de.eq = de.equals; de.notEquals = function(e) { return !this.eq(e); }; de.neq = de.notEquals; de.ne = de.notEquals; de.lessThan = function(e) { return this.comp(e) < 0; }; de.lt = de.lessThan; de.lessThanOrEqual = function(e) { return this.comp(e) <= 0; }; de.lte = de.lessThanOrEqual; de.le = de.lessThanOrEqual; de.greaterThan = function(e) { return this.comp(e) > 0; }; de.gt = de.greaterThan; de.greaterThanOrEqual = function(e) { return this.comp(e) >= 0; }; de.gte = de.greaterThanOrEqual; de.ge = de.greaterThanOrEqual; de.compare = function(e) { if (Wr(e) || (e = As(e)), this.eq(e)) return 0; var t10 = this.isNegative(), o = e.isNegative(); return t10 && !o ? -1 : !t10 && o ? 1 : this.unsigned ? e.high >>> 0 > this.high >>> 0 || e.high === this.high && e.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(e).isNegative() ? -1 : 1; }; de.comp = de.compare; de.negate = function() { return !this.unsigned && this.eq(Vr) ? Vr : this.not().add(Yp); }; de.neg = de.negate; de.add = function(e) { Wr(e) || (e = As(e)); var t10 = this.high >>> 16, o = this.high & 65535, n = this.low >>> 16, s = this.low & 65535, a = e.high >>> 16, i = e.high & 65535, p = e.low >>> 16, u = e.low & 65535, c = 0, l = 0, m = 0, d = 0; return d += s + u, m += d >>> 16, d &= 65535, m += n + p, l += m >>> 16, m &= 65535, l += o + i, c += l >>> 16, l &= 65535, c += t10 + a, c &= 65535, Nt(m << 16 | d, c << 16 | l, this.unsigned); }; de.subtract = function(e) { return Wr(e) || (e = As(e)), this.add(e.neg()); }; de.sub = de.subtract; de.multiply = function(e) { if (this.isZero()) return To; if (Wr(e) || (e = As(e)), ko) { var t10 = ko.mul(this.low, this.high, e.low, e.high); return Nt(t10, ko.get_high(), this.unsigned); } if (e.isZero()) return To; if (this.eq(Vr)) return e.isOdd() ? Vr : To; if (e.eq(Vr)) return this.isOdd() ? Vr : To; if (this.isNegative()) return e.isNegative() ? this.neg().mul(e.neg()) : this.neg().mul(e).neg(); if (e.isNegative()) return this.mul(e.neg()).neg(); if (this.lt(M0) && e.lt(M0)) return No(this.toNumber() * e.toNumber(), this.unsigned); var o = this.high >>> 16, n = this.high & 65535, s = this.low >>> 16, a = this.low & 65535, i = e.high >>> 16, p = e.high & 65535, u = e.low >>> 16, c = e.low & 65535, l = 0, m = 0, d = 0, f = 0; return f += a * c, d += f >>> 16, f &= 65535, d += s * c, m += d >>> 16, d &= 65535, d += a * u, m += d >>> 16, d &= 65535, m += n * c, l += m >>> 16, m &= 65535, m += s * u, l += m >>> 16, m &= 65535, m += a * p, l += m >>> 16, m &= 65535, l += o * c + n * u + s * p + a * i, l &= 65535, Nt(d << 16 | f, l << 16 | m, this.unsigned); }; de.mul = de.multiply; de.divide = function(e) { if (Wr(e) || (e = As(e)), e.isZero()) throw Error("division by zero"); if (ko) { if (!this.unsigned && this.high === -2147483648 && e.low === -1 && e.high === -1) return this; var t10 = (this.unsigned ? ko.div_u : ko.div_s)(this.low, this.high, e.low, e.high); return Nt(t10, ko.get_high(), this.unsigned); } if (this.isZero()) return this.unsigned ? Au : To; var o, n, s; if (this.unsigned) { if (e.unsigned || (e = e.toUnsigned()), e.gt(this)) return Au; if (e.gt(this.shru(1))) return B0; s = Au; } else { if (this.eq(Vr)) { if (e.eq(Yp) || e.eq(pw)) return Vr; if (e.eq(Vr)) return Yp; var a = this.shr(1); return o = a.div(e).shl(1), o.eq(To) ? e.isNegative() ? Yp : pw : (n = this.sub(e.mul(o)), s = o.add(n.div(e)), s); } else if (e.eq(Vr)) return this.unsigned ? Au : To; if (this.isNegative()) return e.isNegative() ? this.neg().div(e.neg()) : this.neg().div(e).neg(); if (e.isNegative()) return this.div(e.neg()).neg(); s = To; } for (n = this; n.gte(e); ) { o = Math.max(1, Math.floor(n.toNumber() / e.toNumber())); for (var i = Math.ceil(Math.log(o) / Math.LN2), p = i <= 48 ? 1 : Zm(2, i - 48), u = No(o), c = u.mul(e); c.isNegative() || c.gt(n); ) o -= p, u = No(o, this.unsigned), c = u.mul(e); u.isZero() && (u = Yp), s = s.add(u), n = n.sub(c); } return s; }; de.div = de.divide; de.modulo = function(e) { if (Wr(e) || (e = As(e)), ko) { var t10 = (this.unsigned ? ko.rem_u : ko.rem_s)(this.low, this.high, e.low, e.high); return Nt(t10, ko.get_high(), this.unsigned); } return this.sub(this.div(e).mul(e)); }; de.mod = de.modulo; de.rem = de.modulo; de.not = function() { return Nt(~this.low, ~this.high, this.unsigned); }; de.and = function(e) { return Wr(e) || (e = As(e)), Nt(this.low & e.low, this.high & e.high, this.unsigned); }; de.or = function(e) { return Wr(e) || (e = As(e)), Nt(this.low | e.low, this.high | e.high, this.unsigned); }; de.xor = function(e) { return Wr(e) || (e = As(e)), Nt(this.low ^ e.low, this.high ^ e.high, this.unsigned); }; de.shiftLeft = function(e) { return Wr(e) && (e = e.toInt()), (e &= 63) === 0 ? this : e < 32 ? Nt(this.low << e, this.high << e | this.low >>> 32 - e, this.unsigned) : Nt(0, this.low << e - 32, this.unsigned); }; de.shl = de.shiftLeft; de.shiftRight = function(e) { return Wr(e) && (e = e.toInt()), (e &= 63) === 0 ? this : e < 32 ? Nt(this.low >>> e | this.high << 32 - e, this.high >> e, this.unsigned) : Nt(this.high >> e - 32, this.high >= 0 ? 0 : -1, this.unsigned); }; de.shr = de.shiftRight; de.shiftRightUnsigned = function(e) { if (Wr(e) && (e = e.toInt()), e &= 63, e === 0) return this; var t10 = this.high; if (e < 32) { var o = this.low; return Nt(o >>> e | t10 << 32 - e, t10 >>> e, this.unsigned); } else return e === 32 ? Nt(t10, 0, this.unsigned) : Nt(t10 >>> e - 32, 0, this.unsigned); }; de.shru = de.shiftRightUnsigned; de.shr_u = de.shiftRightUnsigned; de.toSigned = function() { return this.unsigned ? Nt(this.low, this.high, false) : this; }; de.toUnsigned = function() { return this.unsigned ? this : Nt(this.low, this.high, true); }; de.toBytes = function(e) { return e ? this.toBytesLE() : this.toBytesBE(); }; de.toBytesLE = function() { var e = this.high, t10 = this.low; return [t10 & 255, t10 >>> 8 & 255, t10 >>> 16 & 255, t10 >>> 24, e & 255, e >>> 8 & 255, e >>> 16 & 255, e >>> 24]; }; de.toBytesBE = function() { var e = this.high, t10 = this.low; return [e >>> 24, e >>> 16 & 255, e >>> 8 & 255, e & 255, t10 >>> 24, t10 >>> 16 & 255, t10 >>> 8 & 255, t10 & 255]; }; kt.fromBytes = function(e, t10, o) { return o ? kt.fromBytesLE(e, t10) : kt.fromBytesBE(e, t10); }; kt.fromBytesLE = function(e, t10) { return new kt(e[0] | e[1] << 8 | e[2] << 16 | e[3] << 24, e[4] | e[5] << 8 | e[6] << 16 | e[7] << 24, t10); }; kt.fromBytesBE = function(e, t10) { return new kt(e[4] << 24 | e[5] << 16 | e[6] << 8 | e[7], e[0] << 24 | e[1] << 16 | e[2] << 8 | e[3], t10); }; }); var Ek = Kt(() => { }); var $k = Kt(() => { }); var o1 = Kt((r1, Ww) => { (function(r15, e, t10) { function o(i) { var p = this, u = a(); p.next = function() { var c = 2091639 * p.s0 + p.c * 23283064365386963e-26; return p.s0 = p.s1, p.s1 = p.s2, p.s2 = c - (p.c = c | 0); }, p.c = 1, p.s0 = u(" "), p.s1 = u(" "), p.s2 = u(" "), p.s0 -= u(i), p.s0 < 0 && (p.s0 += 1), p.s1 -= u(i), p.s1 < 0 && (p.s1 += 1), p.s2 -= u(i), p.s2 < 0 && (p.s2 += 1), u = null; } function n(i, p) { return p.c = i.c, p.s0 = i.s0, p.s1 = i.s1, p.s2 = i.s2, p; } function s(i, p) { var u = new o(i), c = p && p.state, l = u.next; return l.int32 = function() { return u.next() * 4294967296 | 0; }, l.double = function() { return l() + (l() * 2097152 | 0) * 11102230246251565e-32; }, l.quick = l, c && (typeof c == "object" && n(c, u), l.state = function() { return n(u, {}); }), l; } function a() { var i = 4022871197, p = function(u) { u = String(u); for (var c = 0; c < u.length; c++) { i += u.charCodeAt(c); var l = 0.02519603282416938 * i; i = l >>> 0, l -= i, l *= i, i = l >>> 0, l -= i, i += l * 4294967296; } return (i >>> 0) * 23283064365386963e-26; }; return p; } e && e.exports ? e.exports = s : t10 && t10.amd ? t10(function() { return s; }) : this.alea = s; })(r1, typeof Ww == "object" && Ww, typeof define == "function" && define); }); var s1 = Kt((n1, Uw) => { (function(r15, e, t10) { function o(a) { var i = this, p = ""; i.x = 0, i.y = 0, i.z = 0, i.w = 0, i.next = function() { var c = i.x ^ i.x << 11; return i.x = i.y, i.y = i.z, i.z = i.w, i.w ^= i.w >>> 19 ^ c ^ c >>> 8; }, a === (a | 0) ? i.x = a : p += a; for (var u = 0; u < p.length + 64; u++) i.x ^= p.charCodeAt(u) | 0, i.next(); } function n(a, i) { return i.x = a.x, i.y = a.y, i.z = a.z, i.w = a.w, i; } function s(a, i) { var p = new o(a), u = i && i.state, c = function() { return (p.next() >>> 0) / 4294967296; }; return c.double = function() { do var l = p.next() >>> 11, m = (p.next() >>> 0) / 4294967296, d = (l + m) / (1 << 21); while (d === 0); return d; }, c.int32 = p.next, c.quick = c, u && (typeof u == "object" && n(u, p), c.state = function() { return n(p, {}); }), c; } e && e.exports ? e.exports = s : t10 && t10.amd ? t10(function() { return s; }) : this.xor128 = s; })(n1, typeof Uw == "object" && Uw, typeof define == "function" && define); }); var i1 = Kt((a1, Gw) => { (function(r15, e, t10) { function o(a) { var i = this, p = ""; i.next = function() { var c = i.x ^ i.x >>> 2; return i.x = i.y, i.y = i.z, i.z = i.w, i.w = i.v, (i.d = i.d + 362437 | 0) + (i.v = i.v ^ i.v << 4 ^ (c ^ c << 1)) | 0; }, i.x = 0, i.y = 0, i.z = 0, i.w = 0, i.v = 0, a === (a | 0) ? i.x = a : p += a; for (var u = 0; u < p.length + 64; u++) i.x ^= p.charCodeAt(u) | 0, u == p.length && (i.d = i.x << 10 ^ i.x >>> 4), i.next(); } function n(a, i) { return i.x = a.x, i.y = a.y, i.z = a.z, i.w = a.w, i.v = a.v, i.d = a.d, i; } function s(a, i) { var p = new o(a), u = i && i.state, c = function() { return (p.next() >>> 0) / 4294967296; }; return c.double = function() { do var l = p.next() >>> 11, m = (p.next() >>> 0) / 4294967296, d = (l + m) / (1 << 21); while (d === 0); return d; }, c.int32 = p.next, c.quick = c, u && (typeof u == "object" && n(u, p), c.state = function() { return n(p, {}); }), c; } e && e.exports ? e.exports = s : t10 && t10.amd ? t10(function() { return s; }) : this.xorwow = s; })(a1, typeof Gw == "object" && Gw, typeof define == "function" && define); }); var p1 = Kt((u1, Hw) => { (function(r15, e, t10) { function o(a) { var i = this; i.next = function() { var u = i.x, c = i.i, l, m, d; return l = u[c], l ^= l >>> 7, m = l ^ l << 24, l = u[c + 1 & 7], m ^= l ^ l >>> 10, l = u[c + 3 & 7], m ^= l ^ l >>> 3, l = u[c + 4 & 7], m ^= l ^ l << 7, l = u[c + 7 & 7], l = l ^ l << 13, m ^= l ^ l << 9, u[c] = m, i.i = c + 1 & 7, m; }; function p(u, c) { var l, m, d = []; if (c === (c | 0)) m = d[0] = c; else for (c = "" + c, l = 0; l < c.length; ++l) d[l & 7] = d[l & 7] << 15 ^ c.charCodeAt(l) + d[l + 1 & 7] << 13; for (; d.length < 8; ) d.push(0); for (l = 0; l < 8 && d[l] === 0; ++l) ; for (l == 8 ? m = d[7] = -1 : m = d[l], u.x = d, u.i = 0, l = 256; l > 0; --l) u.next(); } p(i, a); } function n(a, i) { return i.x = a.x.slice(), i.i = a.i, i; } function s(a, i) { a == null && (a = +/* @__PURE__ */ new Date()); var p = new o(a), u = i && i.state, c = function() { return (p.next() >>> 0) / 4294967296; }; return c.double = function() { do var l = p.next() >>> 11, m = (p.next() >>> 0) / 4294967296, d = (l + m) / (1 << 21); while (d === 0); return d; }, c.int32 = p.next, c.quick = c, u && (u.x && n(u, p), c.state = function() { return n(p, {}); }), c; } e && e.exports ? e.exports = s : t10 && t10.amd ? t10(function() { return s; }) : this.xorshift7 = s; })(u1, typeof Hw == "object" && Hw, typeof define == "function" && define); }); var l1 = Kt((c1, Kw) => { (function(r15, e, t10) { function o(a) { var i = this; i.next = function() { var u = i.w, c = i.X, l = i.i, m, d; return i.w = u = u + 1640531527 | 0, d = c[l + 34 & 127], m = c[l = l + 1 & 127], d ^= d << 13, m ^= m << 17, d ^= d >>> 15, m ^= m >>> 12, d = c[l] = d ^ m, i.i = l, d + (u ^ u >>> 16) | 0; }; function p(u, c) { var l, m, d, f, h, g = [], x = 128; for (c === (c | 0) ? (m = c, c = null) : (c = c + "\0", m = 0, x = Math.max(x, c.length)), d = 0, f = -32; f < x; ++f) c && (m ^= c.charCodeAt((f + 32) % c.length)), f === 0 && (h = m), m ^= m << 10, m ^= m >>> 15, m ^= m << 4, m ^= m >>> 13, f >= 0 && (h = h + 1640531527 | 0, l = g[f & 127] ^= m + h, d = l == 0 ? d + 1 : 0); for (d >= 128 && (g[(c && c.length || 0) & 127] = -1), d = 127, f = 4 * 128; f > 0; --f) m = g[d + 34 & 127], l = g[d = d + 1 & 127], m ^= m << 13, l ^= l << 17, m ^= m >>> 15, l ^= l >>> 12, g[d] = m ^ l; u.w = h, u.X = g, u.i = d; } p(i, a); } function n(a, i) { return i.i = a.i, i.w = a.w, i.X = a.X.slice(), i; } function s(a, i) { a == null && (a = +/* @__PURE__ */ new Date()); var p = new o(a), u = i && i.state, c = function() { return (p.next() >>> 0) / 4294967296; }; return c.double = function() { do var l = p.next() >>> 11, m = (p.next() >>> 0) / 4294967296, d = (l + m) / (1 << 21); while (d === 0); return d; }, c.int32 = p.next, c.quick = c, u && (u.X && n(u, p), c.state = function() { return n(p, {}); }), c; } e && e.exports ? e.exports = s : t10 && t10.amd ? t10(function() { return s; }) : this.xor4096 = s; })(c1, typeof Kw == "object" && Kw, typeof define == "function" && define); }); var d1 = Kt((m1, qw) => { (function(r15, e, t10) { function o(a) { var i = this, p = ""; i.next = function() { var c = i.b, l = i.c, m = i.d, d = i.a; return c = c << 25 ^ c >>> 7 ^ l, l = l - m | 0, m = m << 24 ^ m >>> 8 ^ d, d = d - c | 0, i.b = c = c << 20 ^ c >>> 12 ^ l, i.c = l = l - m | 0, i.d = m << 16 ^ l >>> 16 ^ d, i.a = d - c | 0; }, i.a = 0, i.b = 0, i.c = -1640531527, i.d = 1367130551, a === Math.floor(a) ? (i.a = a / 4294967296 | 0, i.b = a | 0) : p += a; for (var u = 0; u < p.length + 20; u++) i.b ^= p.charCodeAt(u) | 0, i.next(); } function n(a, i) { return i.a = a.a, i.b = a.b, i.c = a.c, i.d = a.d, i; } function s(a, i) { var p = new o(a), u = i && i.state, c = function() { return (p.next() >>> 0) / 4294967296; }; return c.double = function() { do var l = p.next() >>> 11, m = (p.next() >>> 0) / 4294967296, d = (l + m) / (1 << 21); while (d === 0); return d; }, c.int32 = p.next, c.quick = c, u && (typeof u == "object" && n(u, p), c.state = function() { return n(p, {}); }), c; } e && e.exports ? e.exports = s : t10 && t10.amd ? t10(function() { return s; }) : this.tychei = s; })(m1, typeof qw == "object" && qw, typeof define == "function" && define); }); var f1 = Kt(() => { }); var g1 = Kt((h1, Md) => { (function(r15, e, t10) { var o = 256, n = 6, s = 52, a = "random", i = t10.pow(o, n), p = t10.pow(2, s), u = p * 2, c = o - 1, l; function m(C, S, k) { var _ = []; S = S == true ? { entropy: true } : S || {}; var $ = g(h(S.entropy ? [C, b(e)] : C == null ? x() : C, 3), _), R = new d(_), D = function() { for (var P = R.g(n), O = i, M = 0; P < p; ) P = (P + M) * o, O *= o, M = R.g(1); for (; P >= u; ) P /= 2, O /= 2, M >>>= 1; return (P + M) / O; }; return D.int32 = function() { return R.g(4) | 0; }, D.quick = function() { return R.g(4) / 4294967296; }, D.double = D, g(b(R.S), e), (S.pass || k || function(P, O, M, L) { return L && (L.S && f(L, R), P.state = function() { return f(R, {}); }), M ? (t10[a] = P, O) : P; })(D, $, "global" in S ? S.global : this == t10, S.state); } function d(C) { var S, k = C.length, _ = this, $ = 0, R = _.i = _.j = 0, D = _.S = []; for (k || (C = [k++]); $ < o; ) D[$] = $++; for ($ = 0; $ < o; $++) D[$] = D[R = c & R + C[$ % k] + (S = D[$])], D[R] = S; (_.g = function(P) { for (var O, M = 0, L = _.i, B = _.j, z = _.S; P--; ) O = z[L = c & L + 1], M = M * o + z[c & (z[L] = z[B = c & B + O]) + (z[B] = O)]; return _.i = L, _.j = B, M; })(o); } function f(C, S) { return S.i = C.i, S.j = C.j, S.S = C.S.slice(), S; } function h(C, S) { var k = [], _ = typeof C, $; if (S && _ == "object") for ($ in C) try { k.push(h(C[$], S - 1)); } catch (R) { } return k.length ? k : _ == "string" ? C : C + "\0"; } function g(C, S) { for (var k = C + "", _, $ = 0; $ < k.length; ) S[c & $] = c & (_ ^= S[c & $] * 19) + k.charCodeAt($++); return b(S); } function x() { try { var C; return l && (C = l.randomBytes) ? C = C(o) : (C = new Uint8Array(o), (r15.crypto || r15.msCrypto).getRandomValues(C)), b(C); } catch (_) { var S = r15.navigator, k = S && S.plugins; return [+/* @__PURE__ */ new Date(), r15, k, r15.screen, b(e)]; } } function b(C) { return String.fromCharCode.apply(0, C); } if (g(t10.random(), e), typeof Md == "object" && Md.exports) { Md.exports = m; try { l = f1(); } catch (C) { } } else typeof define == "function" && define.amd ? define(function() { return m; }) : t10["seed" + a] = m; })(typeof self != "undefined" ? self : h1, [], Math); }); var jw = Kt((s1e, x1) => { var Dq = o1(), Aq = s1(), Fq = i1(), Pq = p1(), Oq = l1(), Mq = d1(), Ku = g1(); Ku.alea = Dq; Ku.xor128 = Aq; Ku.xorwow = Fq; Ku.xorshift7 = Pq; Ku.xor4096 = Oq; Ku.tychei = Mq; x1.exports = Ku; }); var Vv = Kt(() => { }); var Wv = Kt(() => { }); var LB = Kt(() => { }); var BB = Kt(() => { }); var zB = Kt(() => { }); var VB = Kt((Wg, Gv) => { var Uv = (() => { var r15 = typeof document != "undefined" && document.currentScript ? document.currentScript.src : void 0; return typeof __filename != "undefined" && (r15 = r15 || __filename), function(e) { e = e || {}; function t10() { return oe.buffer != He && Tt(oe.buffer), lt; } function o() { return oe.buffer != He && Tt(oe.buffer), it; } function n() { return oe.buffer != He && Tt(oe.buffer), ht; } function s() { return oe.buffer != He && Tt(oe.buffer), Lr; } function a() { return oe.buffer != He && Tt(oe.buffer), Mt; } function i() { return oe.buffer != He && Tt(oe.buffer), to; } function p() { return oe.buffer != He && Tt(oe.buffer), rr; } var u = typeof e != "undefined" ? e : {}, c, l; u.ready = new Promise(function(F, V) { c = F, l = V; }); var m; typeof process != "undefined" && process.listeners && (m = { uncaughtException: process.listeners("uncaughtException"), unhandledRejection: process.listeners("unhandledRejection") }); var d = Object.assign({}, u), f = [], h = "./this.program", g = (F, V) => { throw V; }, x = typeof window == "object", b = typeof importScripts == "function", C = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", S = u.ENVIRONMENT_IS_PTHREAD || false, k = ""; function _(F) { return u.locateFile ? u.locateFile(F, k) : k + F; } var $, R, D, P; function O(F) { if (F instanceof ku) return; j("exiting due to exception: " + F); } if (C) { var M = Vv(), L = Wv(); b ? k = L.dirname(k) + "/" : k = __dirname + "/", $ = (V, ue) => (V = Fp(V) ? new URL(V) : L.normalize(V), M.readFileSync(V, ue ? void 0 : "utf8")), D = (V) => { var ue = $(V, true); return ue.buffer || (ue = new Uint8Array(ue)), ue; }, R = (V, ue, $e) => { V = Fp(V) ? new URL(V) : L.normalize(V), M.readFile(V, function(Be, Le) { Be ? $e(Be) : ue(Le.buffer); }); }, process.argv.length > 1 && (h = process.argv[1].replace(/\\/g, "/")), f = process.argv.slice(2), process.on("uncaughtException", function(V) { if (!(V instanceof ku)) throw V; }), process.on("unhandledRejection", function(V) { throw V; }), g = (V, ue) => { if (Lo()) throw process.exitCode = V, ue; O(ue), process.exit(V); }, u.inspect = function() { return "[Emscripten Module object]"; }; let F; try { F = LB(); } catch (V) { throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'), V; } global.Worker = F.Worker; } else (x || b) && (b ? k = self.location.href : typeof document != "undefined" && document.currentScript && (k = document.currentScript.src), typeof r15 != "undefined" && r15 && (k = r15), k.indexOf("blob:") !== 0 ? k = k.substr(0, k.replace(/[?#].*/, "").lastIndexOf("/") + 1) : k = "", C || ($ = (F) => { var V = new XMLHttpRequest(); return V.open("GET", F, false), V.send(null), V.responseText; }, b && (D = (F) => { var V = new XMLHttpRequest(); return V.open("GET", F, false), V.responseType = "arraybuffer", V.send(null), new Uint8Array(V.response); }), R = (F, V, ue) => { var $e = new XMLHttpRequest(); $e.open("GET", F, true), $e.responseType = "arraybuffer", $e.onload = () => { if ($e.status == 200 || $e.status == 0 && $e.response) { V($e.response); return; } ue(); }, $e.onerror = ue, $e.send(null); }), P = (F) => document.title = F); C && typeof performance == "undefined" && (global.performance = BB().performance); var B = console.log.bind(console), z = console.warn.bind(console); C && (B = (F) => M.writeSync(1, F + ` `), z = (F) => M.writeSync(2, F + ` `)); var U = u.print || B, j = u.printErr || z; Object.assign(u, d), d = null, u.arguments && (f = u.arguments), u.thisProgram && (h = u.thisProgram), u.quit && (g = u.quit); var q = 4, Y = Atomics.load, J = Atomics.store, re = Atomics.compareExchange, ne; u.wasmBinary && (ne = u.wasmBinary); var ee = u.noExitRuntime || true; typeof WebAssembly != "object" && vu("no native wasm support detected"); var oe, ie, le = false, be; function _e(F, V) { F || vu(V); } var ve = typeof TextDecoder != "undefined" ? new TextDecoder("utf8") : void 0; function Fe(F, V, ue) { V >>>= 0; for (var $e = V + ue, Be = V; F[Be] && !(Be >= $e); ) ++Be; if (Be - V > 16 && F.buffer && ve) return ve.decode(F.buffer instanceof SharedArrayBuffer ? F.slice(V, Be) : F.subarray(V, Be)); for (var Le = ""; V < Be; ) { var ge = F[V++]; if (!(ge & 128)) { Le += String.fromCharCode(ge); continue; } var Ne = F[V++] & 63; if ((ge & 224) == 192) { Le += String.fromCharCode((ge & 31) << 6 | Ne); continue; } var Ft = F[V++] & 63; if ((ge & 240) == 224 ? ge = (ge & 15) << 12 | Ne << 6 | Ft : ge = (ge & 7) << 18 | Ne << 12 | Ft << 6 | F[V++] & 63, ge < 65536) Le += String.fromCharCode(ge); else { var so = ge - 65536; Le += String.fromCharCode(55296 | so >> 10, 56320 | so & 1023); } } return Le; } function Pe(F, V) { return F >>>= 0, F ? Fe(o(), F, V) : ""; } function st(F, V, ue, $e) { if (ue >>>= 0, !($e > 0)) return 0; for (var Be = ue, Le = ue + $e - 1, ge = 0; ge < F.length; ++ge) { var Ne = F.charCodeAt(ge); if (Ne >= 55296 && Ne <= 57343) { var Ft = F.charCodeAt(++ge); Ne = 65536 + ((Ne & 1023) << 10) | Ft & 1023; } if (Ne <= 127) { if (ue >= Le) break; V[ue++ >>> 0] = Ne; } else if (Ne <= 2047) { if (ue + 1 >= Le) break; V[ue++ >>> 0] = 192 | Ne >> 6, V[ue++ >>> 0] = 128 | Ne & 63; } else if (Ne <= 65535) { if (ue + 2 >= Le) break; V[ue++ >>> 0] = 224 | Ne >> 12, V[ue++ >>> 0] = 128 | Ne >> 6 & 63, V[ue++ >>> 0] = 128 | Ne & 63; } else { if (ue + 3 >= Le) break; V[ue++ >>> 0] = 240 | Ne >> 18, V[ue++ >>> 0] = 128 | Ne >> 12 & 63, V[ue++ >>> 0] = 128 | Ne >> 6 & 63, V[ue++ >>> 0] = 128 | Ne & 63; } } return V[ue >>> 0] = 0, ue - Be; } function ct(F, V, ue) { return st(F, o(), V, ue); } var He, lt, it, ht, gt, Lr, Mt, to, rr; S && (He = u.buffer); function Tt(F) { He = F, u.HEAP8 = lt = new Int8Array(F), u.HEAP16 = ht = new Int16Array(F), u.HEAP32 = Lr = new Int32Array(F), u.HEAPU8 = it = new Uint8Array(F), u.HEAPU16 = gt = new Uint16Array(F), u.HEAPU32 = Mt = new Uint32Array(F), u.HEAPF32 = to = new Float32Array(F), u.HEAPF64 = rr = new Float64Array(F); } var or = u.INITIAL_MEMORY || 16777216; if (S) oe = u.wasmMemory, He = u.buffer; else if (u.wasmMemory) oe = u.wasmMemory; else if (oe = new WebAssembly.Memory({ initial: or / 65536, maximum: 65536, shared: true }), !(oe.buffer instanceof SharedArrayBuffer)) throw j("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"), C && j("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"), Error("bad memory"); oe && (He = oe.buffer), or = He.byteLength, Tt(He); var nr, ro = [], oo = [], fr = [], Va = false; function Lo() { return ee; } function Ks() { if (u.preRun) for (typeof u.preRun == "function" && (u.preRun = [u.preRun]); u.preRun.length; ) ol(u.preRun.shift()); al(ro); } function Xt() { Va = true, !S && al(oo); } function Wa() { if (!S) { if (u.postRun) for (typeof u.postRun == "function" && (u.postRun = [u.postRun]); u.postRun.length; ) d0(u.postRun.shift()); al(fr); } } function ol(F) { ro.unshift(F); } function nl(F) { oo.unshift(F); } function d0(F) { fr.unshift(F); } var ki = 0, Ap = null, Ua = null; function Cy(F) { ki++, u.monitorRunDependencies && u.monitorRunDependencies(ki); } function wm(F) { if (ki--, u.monitorRunDependencies && u.monitorRunDependencies(ki), ki == 0 && (Ap !== null && (clearInterval(Ap), Ap = null), Ua)) { var V = Ua; Ua = null, V(); } } function vu(F) { u.onAbort && u.onAbort(F), F = "Aborted(" + F + ")", j(F), le = true, be = 1, F += ". Build with -sASSERTIONS for more info."; var V = new WebAssembly.RuntimeError(F); throw l(V), V; } var wy = "data:application/octet-stream;base64,"; function Sm(F) { return F.startsWith(wy); } function Fp(F) { return F.startsWith("file://"); } var hr; hr = "tfjs-backend-wasm-threaded-simd.wasm", Sm(hr) || (hr = _(hr)); function Im(F) { try { if (F == hr && ne) return new Uint8Array(ne); if (D) return D(F); throw "both async and sync fetching of the wasm failed"; } catch (V) { vu(V); } } function Sy() { if (!ne && (x || b)) { if (typeof fetch == "function" && !Fp(hr)) return fetch(hr, { credentials: "same-origin" }).then(function(F) { if (!F.ok) throw "failed to load wasm binary file at '" + hr + "'"; return F.arrayBuffer(); }).catch(function() { return Im(hr); }); if (R) return new Promise(function(F, V) { R(hr, function(ue) { F(new Uint8Array(ue)); }, V); }); } return Promise.resolve().then(function() { return Im(hr); }); } function Iy() { var F = { env: Om, wasi_snapshot_preview1: Om }; function V(ge, Ne) { var Ft = ge.exports; if (u.asm = Ft, Dy(u.asm._emscripten_tls_init), nr = u.asm.__indirect_function_table, nl(u.asm.__wasm_call_ctors), ie = Ne, !S) { var so = Me.unusedWorkers.length; Me.unusedWorkers.forEach(function(Ha) { Me.loadWasmModuleToWorker(Ha, function() { --so || wm("wasm-instantiate"); }); }); } } S || Cy("wasm-instantiate"); function ue(ge) { V(ge.instance, ge.module); } function $e(ge) { return Sy().then(function(Ne) { return WebAssembly.instantiate(Ne, F); }).then(function(Ne) { return Ne; }).then(ge, function(Ne) { j("failed to asynchronously prepare wasm: " + Ne), vu(Ne); }); } function Be() { return !ne && typeof WebAssembly.instantiateStreaming == "function" && !Sm(hr) && !Fp(hr) && !C && typeof fetch == "function" ? fetch(hr, { credentials: "same-origin" }).then(function(ge) { var Ne = WebAssembly.inst