| | |
| | | var $jscomp = $jscomp || {}; $jscomp.scope = {}, $jscomp.ASSUME_ES5 = !1, $jscomp.ASSUME_NO_NATIVE_MAP = !1, $jscomp.ASSUME_NO_NATIVE_SET = !1, $jscomp.defineProperty = $jscomp.ASSUME_ES5 || typeof Object.defineProperties == "function" ? Object.defineProperty : function (u, i, f) { u != Array.prototype && u != Object.prototype && (u[i] = f.value) }, $jscomp.getGlobal = function (u) { return typeof window < "u" && window === u ? u : typeof global < "u" && global != null ? global : u }, $jscomp.global = $jscomp.getGlobal(void 0), $jscomp.polyfill = function (u, i, f, B) { if (i) { for (f = $jscomp.global, u = u.split("."), B = 0; B < u.length - 1; B++) { var d = u[B]; d in f || (f[d] = {}), f = f[d] } u = u[u.length - 1], B = f[u], i = i(B), i != B && i != null && $jscomp.defineProperty(f, u, { configurable: !0, writable: !0, value: i }) } }, $jscomp.polyfill("Math.imul", function (u) { return u || function (i, f) { i = Number(i), f = Number(f); var B = i & 65535, d = f & 65535; return B * d + ((i >>> 16 & 65535) * d + B * (f >>> 16 & 65535) << 16 >>> 0) | 0 } }, "es6", "es3"), $jscomp.polyfill("Math.clz32", function (u) { return u || function (i) { if (i = Number(i) >>> 0, i === 0) return 32; var f = 0; return (i & 4294901760) === 0 && (i <<= 16, f += 16), (i & 4278190080) === 0 && (i <<= 8, f += 8), (i & 4026531840) === 0 && (i <<= 4, f += 4), (i & 3221225472) === 0 && (i <<= 2, f += 2), (i & 2147483648) === 0 && f++, f } }, "es6", "es3"), $jscomp.polyfill("Math.trunc", function (u) { return u || function (i) { if (i = Number(i), isNaN(i) || i === 1 / 0 || i === -1 / 0 || i === 0) return i; var f = Math.floor(Math.abs(i)); return 0 > i ? -f : f } }, "es6", "es3"), $jscomp.SYMBOL_PREFIX = "jscomp_symbol_", $jscomp.initSymbol = function () { $jscomp.initSymbol = function () { }, $jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol) }, $jscomp.symbolCounter_ = 0, $jscomp.Symbol = function (u) { return $jscomp.SYMBOL_PREFIX + (u || "") + $jscomp.symbolCounter_++ }, $jscomp.initSymbolIterator = function () { $jscomp.initSymbol(); var u = $jscomp.global.Symbol.iterator; u || (u = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator")), typeof Array.prototype[u] != "function" && $jscomp.defineProperty(Array.prototype, u, { configurable: !0, writable: !0, value: function () { return $jscomp.arrayIterator(this) } }), $jscomp.initSymbolIterator = function () { } }, $jscomp.arrayIterator = function (u) { var i = 0; return $jscomp.iteratorPrototype(function () { return i < u.length ? { done: !1, value: u[i++] } : { done: !0 } }) }, $jscomp.iteratorPrototype = function (u) { return $jscomp.initSymbolIterator(), u = { next: u }, u[$jscomp.global.Symbol.iterator] = function () { return this }, u }, $jscomp.makeIterator = function (u) { $jscomp.initSymbolIterator(); var i = u[Symbol.iterator]; return i ? i.call(u) : $jscomp.arrayIterator(u) }, $jscomp.FORCE_POLYFILL_PROMISE = !1, $jscomp.polyfill("Promise", function (u) { function i() { this.batch_ = null } function f(_) { return _ instanceof d ? _ : new d(function (p, b) { p(_) }) } if (u && !$jscomp.FORCE_POLYFILL_PROMISE) return u; i.prototype.asyncExecute = function (_) { return this.batch_ == null && (this.batch_ = [], this.asyncExecuteBatch_()), this.batch_.push(_), this }, i.prototype.asyncExecuteBatch_ = function () { var _ = this; this.asyncExecuteFunction(function () { _.executeBatch_() }) }; var B = $jscomp.global.setTimeout; i.prototype.asyncExecuteFunction = function (_) { B(_, 0) }, i.prototype.executeBatch_ = function () { for (; this.batch_ && this.batch_.length;) { var _ = this.batch_; this.batch_ = []; for (var p = 0; p < _.length; ++p) { var b = _[p]; delete _[p]; try { b() } catch (v) { this.asyncThrow_(v) } } } this.batch_ = null }, i.prototype.asyncThrow_ = function (_) { this.asyncExecuteFunction(function () { throw _ }) }; var d = function (_) { this.state_ = 0, this.result_ = void 0, this.onSettledCallbacks_ = []; var p = this.createResolveAndReject_(); try { _(p.resolve, p.reject) } catch (b) { p.reject(b) } }; d.prototype.createResolveAndReject_ = function () { function _(v) { return function (z) { b || (b = !0, v.call(p, z)) } } var p = this, b = !1; return { resolve: _(this.resolveTo_), reject: _(this.reject_) } }, d.prototype.resolveTo_ = function (_) { if (_ === this) this.reject_(new TypeError("A Promise cannot resolve to itself")); else if (_ instanceof d) this.settleSameAsPromise_(_); else { t: switch (typeof _) { case "object": var p = _ != null; break t; case "function": p = !0; break t; default: p = !1 }p ? this.resolveToNonPromiseObj_(_) : this.fulfill_(_) } }, d.prototype.resolveToNonPromiseObj_ = function (_) { var p = void 0; try { p = _.then } catch (b) { this.reject_(b); return } typeof p == "function" ? this.settleSameAsThenable_(p, _) : this.fulfill_(_) }, d.prototype.reject_ = function (_) { this.settle_(2, _) }, d.prototype.fulfill_ = function (_) { this.settle_(1, _) }, d.prototype.settle_ = function (_, p) { if (this.state_ != 0) throw Error("Cannot settle(" + _ + ", " + p | "): Promise already settled in state" + this.state_); this.state_ = _, this.result_ = p, this.executeOnSettledCallbacks_() }, d.prototype.executeOnSettledCallbacks_ = function () { if (this.onSettledCallbacks_ != null) { for (var _ = this.onSettledCallbacks_, p = 0; p < _.length; ++p)_[p].call(), _[p] = null; this.onSettledCallbacks_ = null } }; var gt = new i; return d.prototype.settleSameAsPromise_ = function (_) { var p = this.createResolveAndReject_(); _.callWhenSettled_(p.resolve, p.reject) }, d.prototype.settleSameAsThenable_ = function (_, p) { var b = this.createResolveAndReject_(); try { _.call(p, b.resolve, b.reject) } catch (v) { b.reject(v) } }, d.prototype.then = function (_, p) { function b(N, j) { return typeof N == "function" ? function (ct) { try { v(N(ct)) } catch (lt) { z(lt) } } : j } var v, z, ot = new d(function (N, j) { v = N, z = j }); return this.callWhenSettled_(b(_, v), b(p, z)), ot }, d.prototype.catch = function (_) { return this.then(void 0, _) }, d.prototype.callWhenSettled_ = function (_, p) { function b() { switch (v.state_) { case 1: _(v.result_); break; case 2: p(v.result_); break; default: throw Error("Unexpected state: " + v.state_) } } var v = this; this.onSettledCallbacks_ == null ? gt.asyncExecute(b) : this.onSettledCallbacks_.push(function () { gt.asyncExecute(b) }) }, d.resolve = f, d.reject = function (_) { return new d(function (p, b) { b(_) }) }, d.race = function (_) { return new d(function (p, b) { for (var v = $jscomp.makeIterator(_), z = v.next(); !z.done; z = v.next())f(z.value).callWhenSettled_(p, b) }) }, d.all = function (_) { var p = $jscomp.makeIterator(_), b = p.next(); return b.done ? f([]) : new d(function (v, z) { function ot(ct) { return function (lt) { N[ct] = lt, j--, j == 0 && v(N) } } var N = [], j = 0; do N.push(void 0), j++, f(b.value).callWhenSettled_(ot(N.length - 1), z), b = p.next(); while (!b.done) }) }, d }, "es6", "es3"); var DracoDecoderModule = function (u) { |
| | | function i(e, r) { e || it("Assertion failed: " + r) } function f(e, r) { if (r === 0 || !e) return ""; for (var n = 0, o, c = 0; o = et[e + c >> 0], n |= o, !(o == 0 && !r || (c++, r && c == r));); if (r || (r = c), o = "", 128 > n) { for (; 0 < r;)n = String.fromCharCode.apply(String, et.subarray(e, e + Math.min(r, 1024))), o = o ? o + n : n, e += 1024, r -= 1024; return o } return t.UTF8ToString(e) } function B(e) { return e.replace(/__Z[\w\d_]+/g, function (r) { return r === r ? r : r + " [" + r + "]" }) } function d() { |
| | | t: { var e = Error(); if (!e.stack) { try { throw Error(0) } catch (r) { e = r } if (!e.stack) { e = "(no stack trace available)"; break t } } e = e.stack.toString() } return t.extraStackTrace && (e += ` |
| | | `+ t.extraStackTrace()), B(e) |
| | | } function gt(e, r) { return 0 < e % r && (e += r - e % r), e } function _() { t.HEAP8 = dt = new Int8Array(F), t.HEAP16 = Ct = new Int16Array(F), t.HEAP32 = M = new Int32Array(F), t.HEAPU8 = et = new Uint8Array(F), t.HEAPU16 = Wt = new Uint16Array(F), t.HEAPU32 = qt = new Uint32Array(F), t.HEAPF32 = Yt = new Float32Array(F), t.HEAPF64 = Xt = new Float64Array(F) } function p() { var e = t.usingWasm ? jt : Qt, r = 2147483648 - e; if (M[mt >> 2] > r) return !1; var n = G; for (G = Math.max(G, pe); G < M[mt >> 2];)G = 536870912 >= G ? gt(2 * G, e) : Math.min(gt((3 * G + 2147483648) / 4, e), r); return e = t.reallocBuffer(G), !e || e.byteLength != G ? (G = n, !1) : (t.buffer = F = e, _(), !0) } function b(e) { for (; 0 < e.length;) { var r = e.shift(); if (typeof r == "function") r(); else { var n = r.func; typeof n == "number" ? r.arg === void 0 ? t.dynCall_v(n) : t.dynCall_vi(n, r.arg) : n(r.arg === void 0 ? null : r.arg) } } } function v(e) { ht++, t.monitorRunDependencies && t.monitorRunDependencies(ht) } function z(e) { ht--, t.monitorRunDependencies && t.monitorRunDependencies(ht), ht == 0 && (Lt !== null && (clearInterval(Lt), Lt = null), Dt && (e = Dt, Dt = null, e())) } function ot() { return !!ot.uncaught_exception } function N() { var e = P.last; if (!e) return y.setTempRet0(0), 0 | 0; var r = P.infos[e], n = r.type; if (!n) return y.setTempRet0(0), e | 0; var o = Array.prototype.slice.call(arguments); t.___cxa_is_pointer_type(n), N.buffer || (N.buffer = ne(4)), M[N.buffer >> 2] = e, e = N.buffer; for (var c = 0; c < o.length; c++)if (o[c] && t.___cxa_can_catch(o[c], n, e)) return e = M[e >> 2], r.adjusted = e, y.setTempRet0(o[c]), e | 0; return e = M[e >> 2], y.setTempRet0(n), e | 0 } function j(e, r) { D.varargs = r; try { var n = D.get(), o = D.get(), c = D.get(); for (e = 0, j.buffer || (j.buffers = [null, [], []], j.printChar = function (st, m) { var h = j.buffers[st]; if (i(h), m === 0 || m === 10) { st = st === 1 ? t.print : t.printErr; t: { for (var U = m = 0; h[U];)++U; if (16 < U - m && h.subarray && Ht) m = Ht.decode(h.subarray(m, U)); else for (U = ""; ;) { var A = h[m++]; if (!A) { m = U; break t } if (A & 128) { var tt = h[m++] & 63; if ((A & 224) == 192) U += String.fromCharCode((A & 31) << 6 | tt); else { var At = h[m++] & 63; if ((A & 240) == 224) A = (A & 15) << 12 | tt << 6 | At; else { var O = h[m++] & 63; if ((A & 248) == 240) A = (A & 7) << 18 | tt << 12 | At << 6 | O; else { var X = h[m++] & 63; if ((A & 252) == 248) A = (A & 3) << 24 | tt << 18 | At << 12 | O << 6 | X; else { var Gt = h[m++] & 63; A = (A & 1) << 30 | tt << 24 | At << 18 | O << 12 | X << 6 | Gt } } } 65536 > A ? U += String.fromCharCode(A) : (A -= 65536, U += String.fromCharCode(55296 | A >> 10, 56320 | A & 1023)) } } else U += String.fromCharCode(A) } } st(m), h.length = 0 } else h.push(m) }), r = 0; r < c; r++) { for (var s = M[o + 8 * r >> 2], S = M[o + (8 * r + 4) >> 2], Z = 0; Z < S; Z++)j.printChar(n, et[s + Z]); e += S } return e } catch (st) { return typeof FS < "u" && st instanceof FS.ErrnoError || it(st), -st.errno } } function ct(e, r) { ct.seen || (ct.seen = {}), e in ct.seen || (t.dynCall_v(r), ct.seen[e] = 1) } function lt(e) { this.name = "ExitStatus", this.message = "Program terminated with exit(" + e + ")", this.status = e } function Ot(e) { function r() { if (!t.calledRun && (t.calledRun = !0, !Et)) { if (ee || (ee = !0, b(Zt)), b(Jt), t.onRuntimeInitialized && t.onRuntimeInitialized(), t.postRun) for (typeof t.postRun == "function" && (t.postRun = [t.postRun]); t.postRun.length;)te.unshift(t.postRun.shift()); b(te) } } if (ue === null && (ue = Date.now()), !(0 < ht)) { if (t.preRun) for (typeof t.preRun == "function" && (t.preRun = [t.preRun]); t.preRun.length;)Kt.unshift(t.preRun.shift()); b(Kt), 0 < ht || t.calledRun || (t.setStatus ? (t.setStatus("Running..."), setTimeout(function () { setTimeout(function () { t.setStatus("") }, 1), r() }, 1)) : r()) } } function it(e) { |
| | | t.onAbort && t.onAbort(e), e !== void 0 ? (t.print(e), t.printErr(e), e = JSON.stringify(e)) : e = "", Et = !0; var r = "abort(" + e + ") at " + d() + ` |
| | | If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.`; throw ae && ae.forEach(function (n) { r = n(r, e) }), r |
| | | } function g() { } function E(e) { return (e || g).__cache__ } function _t(e, r) { var n = E(r), o = n[e]; return o || (o = Object.create((r || g).prototype), o.ptr = e, n[e] = o) } function ut(e) { if (typeof e == "string") { for (var r = 0, n = 0; n < e.length; ++n) { var o = e.charCodeAt(n); 55296 <= o && 57343 >= o && (o = 65536 + ((o & 1023) << 10) | e.charCodeAt(++n) & 1023), 127 >= o ? ++r : r = 2047 >= o ? r + 2 : 65535 >= o ? r + 3 : 2097151 >= o ? r + 4 : 67108863 >= o ? r + 5 : r + 6 } if (r = Array(r + 1), n = 0, o = r.length, 0 < o) { o = n + o - 1; for (var c = 0; c < e.length; ++c) { var s = e.charCodeAt(c); if (55296 <= s && 57343 >= s && (s = 65536 + ((s & 1023) << 10) | e.charCodeAt(++c) & 1023), 127 >= s) { if (n >= o) break; r[n++] = s } else { if (2047 >= s) { if (n + 1 >= o) break; r[n++] = 192 | s >> 6 } else { if (65535 >= s) { if (n + 2 >= o) break; r[n++] = 224 | s >> 12 } else { if (2097151 >= s) { if (n + 3 >= o) break; r[n++] = 240 | s >> 18 } else { if (67108863 >= s) { if (n + 4 >= o) break; r[n++] = 248 | s >> 24 } else { if (n + 5 >= o) break; r[n++] = 252 | s >> 30, r[n++] = 128 | s >> 24 & 63 } r[n++] = 128 | s >> 18 & 63 } r[n++] = 128 | s >> 12 & 63 } r[n++] = 128 | s >> 6 & 63 } r[n++] = 128 | s & 63 } } r[n] = 0 } e = l.alloc(r, dt), l.copy(r, dt, e) } return e } function w() { throw "cannot construct a Status, no constructor in IDL" } function L() { this.ptr = yr(), E(L)[this.ptr] = this } function k() { this.ptr = rn(), E(k)[this.ptr] = this } function x() { this.ptr = Tr(), E(x)[this.ptr] = this } function V() { this.ptr = dr(), E(V)[this.ptr] = this } function H() { this.ptr = ce(), E(H)[this.ptr] = this } function T() { this.ptr = Wr(), E(T)[this.ptr] = this } function K() { this.ptr = Te(), E(K)[this.ptr] = this } function R() { this.ptr = fe(), E(R)[this.ptr] = this } function Q() { this.ptr = pr(), E(Q)[this.ptr] = this } function I() { this.ptr = Lr(), E(I)[this.ptr] = this } function W() { this.ptr = er(), E(W)[this.ptr] = this } function q() { this.ptr = Ze(), E(q)[this.ptr] = this } function at() { this.ptr = Dr(), E(at)[this.ptr] = this } function J() { this.ptr = Ee(), E(J)[this.ptr] = this } function a() { this.ptr = Ge(), E(a)[this.ptr] = this } function C() { this.ptr = Rr(), E(C)[this.ptr] = this } function yt() { throw "cannot construct a VoidPtr, no constructor in IDL" } function Y() { this.ptr = ir(), E(Y)[this.ptr] = this } function $() { this.ptr = Vr(), E($)[this.ptr] = this } var t = u = u || {}, xt = !1, Vt = !1; t.onRuntimeInitialized = function () { xt = !0, Vt && typeof t.onModuleLoaded == "function" && t.onModuleLoaded(t) }, t.onModuleParsed = function () { Vt = !0, xt && typeof t.onModuleLoaded == "function" && t.onModuleLoaded(t) }, t.isVersionSupported = function (e) { return typeof e != "string" ? !1 : (e = e.split("."), 2 > e.length || 3 < e.length ? !1 : e[0] == 1 && 0 <= e[1] && 3 >= e[1] ? !0 : !(e[0] != 0 || 10 < e[1])) }, t || (t = (typeof u < "u" ? u : null) || {}); var vt = {}, ft; for (ft in t) t.hasOwnProperty(ft) && (vt[ft] = t[ft]); var Tt = !1, bt = !1, It = !1, St = !1; if (t.ENVIRONMENT) if (t.ENVIRONMENT === "WEB") Tt = !0; else if (t.ENVIRONMENT === "WORKER") bt = !0; else if (t.ENVIRONMENT === "NODE") It = !0; else if (t.ENVIRONMENT === "SHELL") St = !0; else throw Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL."); else Tt = typeof window == "object", bt = typeof importScripts == "function", It = typeof process == "object" && typeof require == "function" && !Tt && !bt, St = !Tt && !It && !bt; if (It) { t.print || (t.print = console.log), t.printErr || (t.printErr = console.warn); var wt, Pt; t.read = function (e, r) { return wt || (wt = require("fs")), Pt || (Pt = require("path")), e = Pt.normalize(e), e = wt.readFileSync(e), r ? e : e.toString() }, t.readBinary = function (e) { return e = t.read(e, !0), e.buffer || (e = new Uint8Array(e)), i(e.buffer), e }, t.thisProgram || (t.thisProgram = 1 < process.argv.length ? process.argv[1].replace(/\\/g, "/") : "unknown-program"), t.arguments = process.argv.slice(2), process.on("uncaughtException", function (e) { if (!(e instanceof lt)) throw e }), t.inspect = function () { return "[Emscripten Module object]" } } else if (St) t.print || (t.print = print), typeof printErr < "u" && (t.printErr = printErr), t.read = typeof read < "u" ? function (e) { return read(e) } : function () { throw "no read() available" }, t.readBinary = function (e) { return typeof readbuffer == "function" ? new Uint8Array(readbuffer(e)) : (e = read(e, "binary"), i(typeof e == "object"), e) }, typeof scriptArgs < "u" ? t.arguments = scriptArgs : typeof arguments < "u" && (t.arguments = arguments), typeof quit == "function" && (t.quit = function (e, r) { quit(e) }); else if (Tt || bt) t.read = function (e) { var r = new XMLHttpRequest; return r.open("GET", e, !1), r.send(null), r.responseText }, bt && (t.readBinary = function (e) { var r = new XMLHttpRequest; return r.open("GET", e, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response) }), t.readAsync = function (e, r, n) { var o = new XMLHttpRequest; o.open("GET", e, !0), o.responseType = "arraybuffer", o.onload = function () { o.status == 200 || o.status == 0 && o.response ? r(o.response) : n() }, o.onerror = n, o.send(null) }, typeof arguments < "u" && (t.arguments = arguments), typeof console < "u" ? (t.print || (t.print = function (e) { console.log(e) }), t.printErr || (t.printErr = function (e) { console.warn(e) })) : t.print || (t.print = function (e) { }), typeof t.setWindowTitle > "u" && (t.setWindowTitle = function (e) { document.title = e }); else throw Error("Unknown runtime environment. Where are we?"); t.print || (t.print = function () { }), t.printErr || (t.printErr = t.print), t.arguments || (t.arguments = []), t.thisProgram || (t.thisProgram = "./this.program"), t.quit || (t.quit = function (e, r) { throw r }), t.print = t.print, t.printErr = t.printErr, t.preRun = [], t.postRun = []; for (ft in vt) vt.hasOwnProperty(ft) && (t[ft] = vt[ft]); vt = void 0; var y = { setTempRet0: function (e) { return tempRet0 = e }, getTempRet0: function () { return tempRet0 }, stackSave: function () { return rt }, stackRestore: function (e) { rt = e }, getNativeTypeSize: function (e) { switch (e) { case "i1": case "i8": return 1; case "i16": return 2; case "i32": return 4; case "i64": return 8; case "float": return 4; case "double": return 8; default: return e[e.length - 1] === "*" ? y.QUANTUM_SIZE : e[0] === "i" ? (e = parseInt(e.substr(1)), i(e % 8 === 0), e / 8) : 0 } }, getNativeFieldSize: function (e) { return Math.max(y.getNativeTypeSize(e), y.QUANTUM_SIZE) }, STACK_ALIGN: 16, prepVararg: function (e, r) { return r === "double" || r === "i64" ? e & 7 && (i((e & 7) === 4), e += 4) : i((e & 3) === 0), e }, getAlignSize: function (e, r, n) { return n || e != "i64" && e != "double" ? e ? Math.min(r || (e ? y.getNativeFieldSize(e) : 0), y.QUANTUM_SIZE) : Math.min(r, 8) : 8 }, dynCall: function (e, r, n) { return n && n.length ? t["dynCall_" + e].apply(null, [r].concat(n)) : t["dynCall_" + e].call(null, r) }, functionPointers: [], addFunction: function (e) { for (var r = 0; r < y.functionPointers.length; r++)if (!y.functionPointers[r]) return y.functionPointers[r] = e, 2 * (1 + r); throw "Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS." }, removeFunction: function (e) { y.functionPointers[(e - 2) / 2] = null }, warnOnce: function (e) { y.warnOnce.shown || (y.warnOnce.shown = {}), y.warnOnce.shown[e] || (y.warnOnce.shown[e] = 1, t.printErr(e)) }, funcWrappers: {}, getFuncWrapper: function (e, r) { if (e) { i(r), y.funcWrappers[r] || (y.funcWrappers[r] = {}); var n = y.funcWrappers[r]; return n[e] || (n[e] = r.length === 1 ? function () { return y.dynCall(r, e) } : r.length === 2 ? function (o) { return y.dynCall(r, e, [o]) } : function () { return y.dynCall(r, e, Array.prototype.slice.call(arguments)) }), n[e] } }, getCompilerSetting: function (e) { throw "You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work" }, stackAlloc: function (e) { var r = rt; return rt = rt + e | 0, rt = rt + 15 & -16, r }, staticAlloc: function (e) { var r = pt; return pt = pt + e | 0, pt = pt + 15 & -16, r }, dynamicAlloc: function (e) { var r = M[mt >> 2]; return e = (r + e + 15 | 0) & -16, M[mt >> 2] = e, e >= G && !p() ? (M[mt >> 2] = r, 0) : r }, alignMemory: function (e, r) { return Math.ceil(e / (r || 16)) * (r || 16) }, makeBigInt: function (e, r, n) { return n ? +(e >>> 0) + 4294967296 * +(r >>> 0) : +(e >>> 0) + 4294967296 * +(r | 0) }, GLOBAL_BASE: 1024, QUANTUM_SIZE: 4, __dummy__: 0 }, Et = 0, Ht = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0; typeof TextDecoder < "u" && new TextDecoder("utf-16le"); var jt = 65536, Qt = 16777216, pe = 16777216, dt, et, Ct, Wt, M, qt, Yt, Xt, pt, Nt, rt, Rt, Ft, mt, Ut = pt = Nt = rt = Rt = Ft = mt = 0; t.reallocBuffer || (t.reallocBuffer = function (e) { try { if (ArrayBuffer.transfer) var r = ArrayBuffer.transfer(F, e); else { var n = dt; r = new ArrayBuffer(e), new Int8Array(r).set(n) } } catch { return !1 } return wn(r) ? r : !1 }); try { var Bt = Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get); Bt(new ArrayBuffer(4)) } catch { Bt = function (r) { return r.byteLength } } var zt = t.TOTAL_STACK || 5242880, G = t.TOTAL_MEMORY || 16777216; if (G < zt && t.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was " + G + "! (TOTAL_STACK=" + zt + ")"), t.buffer) var F = t.buffer; else typeof WebAssembly == "object" && typeof WebAssembly.Memory == "function" ? (t.wasmMemory = new WebAssembly.Memory({ initial: G / jt }), F = t.wasmMemory.buffer) : F = new ArrayBuffer(G); if (_(), M[0] = 1668509029, Ct[1] = 25459, et[2] !== 115 || et[3] !== 99) throw "Runtime error: expected the system to be little-endian!"; t.HEAP = void 0, t.buffer = F, t.HEAP8 = dt, t.HEAP16 = Ct, t.HEAP32 = M, t.HEAPU8 = et, t.HEAPU16 = Wt, t.HEAPU32 = qt, t.HEAPF32 = Yt, t.HEAPF64 = Xt; var Kt = [], Zt = [], Jt = [], $t = [], te = [], ee = !1; i(Math.imul && Math.fround && Math.clz32 && Math.trunc, "this is a legacy browser, build with LEGACY_VM_SUPPORT"); var ht = 0, Lt = null, Dt = null; t.preloadedImages = {}, t.preloadedAudios = {}; var nt = null; (function () { function e() { try { if (t.wasmBinary) return new Uint8Array(t.wasmBinary); if (t.readBinary) return t.readBinary(o); throw "on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)" } catch (m) { it(m) } } function r() { return t.wasmBinary || !Tt && !bt || typeof fetch != "function" ? new Promise(function (m, h) { m(e()) }) : fetch(o, { credentials: "same-origin" }).then(function (m) { if (!m.ok) throw "failed to load wasm binary file at '" + o + "'"; return m.arrayBuffer() }).catch(function () { return e() }) } function n(m, h, U) { function A(O, X) { if (S = O.exports, S.memory) { O = S.memory, X = t.buffer, O.byteLength < X.byteLength && t.printErr("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here"), X = new Int8Array(X); var Gt = new Int8Array(O); nt || X.set(Gt.subarray(t.STATIC_BASE, t.STATIC_BASE + t.STATIC_BUMP), t.STATIC_BASE), Gt.set(X), t.buffer = F = O, _() } t.asm = S, t.usingWasm = !0, z("wasm-instantiate") } function tt(O) { A(O.instance, O.module) } function At(O) { r().then(function (X) { return WebAssembly.instantiate(X, s) }).then(O).catch(function (X) { t.printErr("failed to asynchronously prepare wasm: " + X), it(X) }) } if (typeof WebAssembly != "object") return t.printErr("no native wasm support detected"), !1; if (!(t.wasmMemory instanceof WebAssembly.Memory)) return t.printErr("no native wasm Memory in use"), !1; if (h.memory = t.wasmMemory, s.global = { NaN: NaN, Infinity: 1 / 0 }, s["global.Math"] = m.Math, s.env = h, v("wasm-instantiate"), t.instantiateWasm) try { return t.instantiateWasm(s, A) } catch (O) { return t.printErr("Module.instantiateWasm callback failed with error: " + O), !1 } return t.wasmBinary || typeof WebAssembly.instantiateStreaming != "function" || o.indexOf("data:") === 0 || typeof fetch != "function" ? At(tt) : WebAssembly.instantiateStreaming(fetch(o, { credentials: "same-origin" }), s).then(tt).catch(function (O) { t.printErr("wasm streaming compile failed: " + O), t.printErr("falling back to ArrayBuffer instantiation"), At(tt) }), {} } var o = "draco_decoder.wasm", c = "draco_decoder.temp.asm.js"; typeof t.locateFile == "function" && (t.locateFile("draco_decoder.wast"), o = t.locateFile(o), c = t.locateFile(c)); var s = { global: null, env: null, asm2wasm: { "f64-rem": function (m, h) { return m % h },: function() { } }, parent: t }, S = null; t.asmPreload = t.asm; var Z = t.reallocBuffer; t.reallocBuffer = function (m) { if (st === "asmjs") var h = Z(m); else t: { m = gt(m, t.usingWasm ? jt : Qt); var U = t.buffer.byteLength; if (t.usingWasm) try { h = t.wasmMemory.grow((m - U) / 65536) !== -1 ? t.buffer = t.wasmMemory.buffer : null; break t } catch { h = null; break t } h = void 0 } return h }; var st = ""; t.asm = function (m, h, U) { if (!h.table) { var A = t.wasmTableSize; A === void 0 && (A = 1024); var tt = t.wasmMaxTableSize; h.table = typeof WebAssembly == "object" && typeof WebAssembly.Table == "function" ? tt !== void 0 ? new WebAssembly.Table({ initial: A, maximum: tt, element: "anyfunc" }) : new WebAssembly.Table({ initial: A, element: "anyfunc" }) : Array(A), t.wasmTable = h.table } return h.memoryBase || (h.memoryBase = t.STATIC_BASE), h.tableBase || (h.tableBase = 0), (m = n(m, h, U)) || it("no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods"), m } })(), Ut = y.GLOBAL_BASE, pt = Ut + 19104, Zt.push(), nt = null, t.STATIC_BASE = Ut, t.STATIC_BUMP = 19104; var se = pt; pt += 16; var P = { last: 0, caught: [], infos: {}, deAdjust: function (e) { if (!e || P.infos[e]) return e; for (var r in P.infos) if (P.infos[r].adjusted === e) return r; return e }, addRef: function (e) { e && P.infos[e].refcount++ }, decRef: function (e) { if (e) { var r = P.infos[e]; i(0 < r.refcount), r.refcount--, r.refcount !== 0 || r.rethrown || (r.destructor && t.dynCall_vi(r.destructor, e), delete P.infos[e], ___cxa_free_exception(e)) } }, clearRef: function (e) { e && (P.infos[e].refcount = 0) } }, D = { varargs: 0, get: function (e) { return D.varargs += 4, M[D.varargs - 4 >> 2] }, getStr: function () { return f(D.get()) }, get64: function () { var e = D.get(), r = D.get(); return 0 <= e ? i(r === 0) : i(r === -1), e }, getZero: function () { i(D.get() === 0) } }, Mt = {}, kt = 1; $t.push(function () { var e = t._fflush; if (e && e(0), e = j.printChar) { var r = j.buffers; r[1].length && e(1, 10), r[2].length && e(2, 10) } }), mt = y.staticAlloc(4), Nt = rt = y.alignMemory(pt), Rt = Nt + zt, Ft = y.alignMemory(Rt), M[mt >> 2] = Ft, t.wasmTableSize = 492, t.wasmMaxTableSize = 492, t.asmGlobalArg = { Math, Int8Array, Int16Array, Int32Array, Uint8Array, Uint16Array, Uint32Array, Float32Array, Float64Array, NaN: NaN, Infinity: 1 / 0, byteLength: Bt }, t.asmLibraryArg = { abort: it, assert: i, enlargeMemory: p, getTotalMemory: function () { return G }, abortOnCannotGrowMemory: function () { it("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value " + G + ", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") }, invoke_ii: function (e, r) { try { return t.dynCall_ii(e, r) } catch (n) { if (typeof n != "number" && n !== "longjmp") throw n; t.setThrew(1, 0) } }, invoke_iii: function (e, r, n) { try { return t.dynCall_iii(e, r, n) } catch (o) { if (typeof o != "number" && o !== "longjmp") throw o; t.setThrew(1, 0) } }, invoke_iiii: function (e, r, n, o) { try { return t.dynCall_iiii(e, r, n, o) } catch (c) { if (typeof c != "number" && c !== "longjmp") throw c; t.setThrew(1, 0) } }, invoke_iiiiiii: function (e, r, n, o, c, s, S) { try { return t.dynCall_iiiiiii(e, r, n, o, c, s, S) } catch (Z) { if (typeof Z != "number" && Z !== "longjmp") throw Z; t.setThrew(1, 0) } }, invoke_v: function (e) { try { t.dynCall_v(e) } catch (r) { if (typeof r != "number" && r !== "longjmp") throw r; t.setThrew(1, 0) } }, invoke_vi: function (e, r) { try { t.dynCall_vi(e, r) } catch (n) { if (typeof n != "number" && n !== "longjmp") throw n; t.setThrew(1, 0) } }, invoke_vii: function (e, r, n) { try { t.dynCall_vii(e, r, n) } catch (o) { if (typeof o != "number" && o !== "longjmp") throw o; t.setThrew(1, 0) } }, invoke_viii: function (e, r, n, o) { try { t.dynCall_viii(e, r, n, o) } catch (c) { if (typeof c != "number" && c !== "longjmp") throw c; t.setThrew(1, 0) } }, invoke_viiii: function (e, r, n, o, c) { try { t.dynCall_viiii(e, r, n, o, c) } catch (s) { if (typeof s != "number" && s !== "longjmp") throw s; t.setThrew(1, 0) } }, invoke_viiiii: function (e, r, n, o, c, s) { try { t.dynCall_viiiii(e, r, n, o, c, s) } catch (S) { if (typeof S != "number" && S !== "longjmp") throw S; t.setThrew(1, 0) } }, invoke_viiiiii: function (e, r, n, o, c, s, S) { try { t.dynCall_viiiiii(e, r, n, o, c, s, S) } catch (Z) { if (typeof Z != "number" && Z !== "longjmp") throw Z; t.setThrew(1, 0) } }, __ZSt18uncaught_exceptionv: ot, ___cxa_allocate_exception: function (e) { return ne(e) }, ___cxa_begin_catch: function (e) { var r = P.infos[e]; return r && !r.caught && (r.caught = !0, ot.uncaught_exception--), r && (r.rethrown = !1), P.caught.push(e), P.addRef(P.deAdjust(e)), e }, ___cxa_find_matching_catch: N, ___cxa_pure_virtual: function () { throw Et = !0, "Pure virtual function called!" }, ___cxa_throw: function (e, r, n) { throw P.infos[e] = { ptr: e, adjusted: e, type: r, destructor: n, refcount: 0, caught: !1, rethrown: !1 }, P.last = e, "uncaught_exception" in ot ? ot.uncaught_exception++ : ot.uncaught_exception = 1, e + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch." }, ___gxx_personality_v0: function () { }, ___resumeException: function (e) { throw P.last || (P.last = e), e + " - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch." }, ___setErrNo: function (e) { return t.___errno_location && (M[t.___errno_location() >> 2] = e), e }, ___syscall140: function (e, r) { D.varargs = r; try { var n = D.getStreamFromFD(); D.get(); var o = D.get(), c = D.get(), s = D.get(); return FS.llseek(n, o, s), M[c >> 2] = n.position, n.getdents && o === 0 && s === 0 && (n.getdents = null), 0 } catch (S) { return typeof FS < "u" && S instanceof FS.ErrnoError || it(S), -S.errno } }, ___syscall146: j, ___syscall54: function (e, r) { return D.varargs = r, 0 }, ___syscall6: function (e, r) { D.varargs = r; try { var n = D.getStreamFromFD(); return FS.close(n), 0 } catch (o) { return typeof FS < "u" && o instanceof FS.ErrnoError || it(o), -o.errno } }, _abort: function () { t.abort() }, _emscripten_memcpy_big: function (e, r, n) { return et.set(et.subarray(r, r + n), e), e }, _pthread_getspecific: function (e) { return Mt[e] || 0 }, _pthread_key_create: function (e, r) { return e == 0 ? 22 : (M[e >> 2] = kt, Mt[kt] = 0, kt++, 0) }, _pthread_once: ct, _pthread_setspecific: function (e, r) { return e in Mt ? (Mt[e] = r, 0) : 22 }, DYNAMICTOP_PTR: mt, tempDoublePtr: se, ABORT: Et, STACKTOP: rt, STACK_MAX: Rt }; var re = t.asm(t.asmGlobalArg, t.asmLibraryArg, F); t.asm = re, t.___cxa_can_catch = function () { return t.asm.___cxa_can_catch.apply(null, arguments) }, t.___cxa_is_pointer_type = function () { return t.asm.___cxa_is_pointer_type.apply(null, arguments) }; var ce = t._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = function () { return t.asm._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0.apply(null, arguments) }, le = t._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = function () { return t.asm._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1.apply(null, arguments) }, ye = t._emscripten_bind_AttributeOctahedronTransform___destroy___0 = function () { return t.asm._emscripten_bind_AttributeOctahedronTransform___destroy___0.apply(null, arguments) }, me = t._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = function () { return t.asm._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0.apply(null, arguments) }, fe = t._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = function () { return t.asm._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0.apply(null, arguments) }, be = t._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = function () { return t.asm._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1.apply(null, arguments) }, de = t._emscripten_bind_AttributeQuantizationTransform___destroy___0 = function () { return t.asm._emscripten_bind_AttributeQuantizationTransform___destroy___0.apply(null, arguments) }, he = t._emscripten_bind_AttributeQuantizationTransform_min_value_1 = function () { return t.asm._emscripten_bind_AttributeQuantizationTransform_min_value_1.apply(null, arguments) }, Ae = t._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = function () { return t.asm._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0.apply(null, arguments) }, ge = t._emscripten_bind_AttributeQuantizationTransform_range_0 = function () { return t.asm._emscripten_bind_AttributeQuantizationTransform_range_0.apply(null, arguments) }, Te = t._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = function () { return t.asm._emscripten_bind_AttributeTransformData_AttributeTransformData_0.apply(null, arguments) }, Ie = t._emscripten_bind_AttributeTransformData___destroy___0 = function () { return t.asm._emscripten_bind_AttributeTransformData___destroy___0.apply(null, arguments) }, ve = t._emscripten_bind_AttributeTransformData_transform_type_0 = function () { return t.asm._emscripten_bind_AttributeTransformData_transform_type_0.apply(null, arguments) }, Ee = t._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = function () { return t.asm._emscripten_bind_DecoderBuffer_DecoderBuffer_0.apply(null, arguments) }, De = t._emscripten_bind_DecoderBuffer_Init_2 = function () { return t.asm._emscripten_bind_DecoderBuffer_Init_2.apply(null, arguments) }, Se = t._emscripten_bind_DecoderBuffer___destroy___0 = function () { return t.asm._emscripten_bind_DecoderBuffer___destroy___0.apply(null, arguments) }, Re = t._emscripten_bind_Decoder_DecodeBufferToMesh_2 = function () { return t.asm._emscripten_bind_Decoder_DecodeBufferToMesh_2.apply(null, arguments) }, Me = t._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = function () { return t.asm._emscripten_bind_Decoder_DecodeBufferToPointCloud_2.apply(null, arguments) }, Ge = t._emscripten_bind_Decoder_Decoder_0 = function () { return t.asm._emscripten_bind_Decoder_Decoder_0.apply(null, arguments) }, Oe = t._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeByUniqueId_2.apply(null, arguments) }, we = t._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3.apply(null, arguments) }, Pe = t._emscripten_bind_Decoder_GetAttributeFloat_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeFloat_3.apply(null, arguments) }, je = t._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3.apply(null, arguments) }, Ce = t._emscripten_bind_Decoder_GetAttributeIdByName_2 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeIdByName_2.apply(null, arguments) }, Ne = t._emscripten_bind_Decoder_GetAttributeId_2 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeId_2.apply(null, arguments) }, Fe = t._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3.apply(null, arguments) }, Ue = t._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3.apply(null, arguments) }, Be = t._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3.apply(null, arguments) }, ze = t._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3.apply(null, arguments) }, Le = t._emscripten_bind_Decoder_GetAttributeMetadata_2 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeMetadata_2.apply(null, arguments) }, ke = t._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3.apply(null, arguments) }, xe = t._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3.apply(null, arguments) }, Ve = t._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = function () { return t.asm._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3.apply(null, arguments) }, He = t._emscripten_bind_Decoder_GetAttribute_2 = function () { return t.asm._emscripten_bind_Decoder_GetAttribute_2.apply(null, arguments) }, Qe = t._emscripten_bind_Decoder_GetEncodedGeometryType_1 = function () { return t.asm._emscripten_bind_Decoder_GetEncodedGeometryType_1.apply(null, arguments) }, We = t._emscripten_bind_Decoder_GetFaceFromMesh_3 = function () { return t.asm._emscripten_bind_Decoder_GetFaceFromMesh_3.apply(null, arguments) }, qe = t._emscripten_bind_Decoder_GetMetadata_1 = function () { return t.asm._emscripten_bind_Decoder_GetMetadata_1.apply(null, arguments) }, Ye = t._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = function () { return t.asm._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2.apply(null, arguments) }, Xe = t._emscripten_bind_Decoder_SkipAttributeTransform_1 = function () { return t.asm._emscripten_bind_Decoder_SkipAttributeTransform_1.apply(null, arguments) }, Ke = t._emscripten_bind_Decoder___destroy___0 = function () { return t.asm._emscripten_bind_Decoder___destroy___0.apply(null, arguments) }, Ze = t._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = function () { return t.asm._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0.apply(null, arguments) }, Je = t._emscripten_bind_DracoFloat32Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoFloat32Array_GetValue_1.apply(null, arguments) }, $e = t._emscripten_bind_DracoFloat32Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoFloat32Array___destroy___0.apply(null, arguments) }, tr = t._emscripten_bind_DracoFloat32Array_size_0 = function () { return t.asm._emscripten_bind_DracoFloat32Array_size_0.apply(null, arguments) }, er = t._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = function () { return t.asm._emscripten_bind_DracoInt16Array_DracoInt16Array_0.apply(null, arguments) }, rr = t._emscripten_bind_DracoInt16Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoInt16Array_GetValue_1.apply(null, arguments) }, nr = t._emscripten_bind_DracoInt16Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoInt16Array___destroy___0.apply(null, arguments) }, or = t._emscripten_bind_DracoInt16Array_size_0 = function () { return t.asm._emscripten_bind_DracoInt16Array_size_0.apply(null, arguments) }, ir = t._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = function () { return t.asm._emscripten_bind_DracoInt32Array_DracoInt32Array_0.apply(null, arguments) }, _r = t._emscripten_bind_DracoInt32Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoInt32Array_GetValue_1.apply(null, arguments) }, ur = t._emscripten_bind_DracoInt32Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoInt32Array___destroy___0.apply(null, arguments) }, ar = t._emscripten_bind_DracoInt32Array_size_0 = function () { return t.asm._emscripten_bind_DracoInt32Array_size_0.apply(null, arguments) }, pr = t._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = function () { return t.asm._emscripten_bind_DracoInt8Array_DracoInt8Array_0.apply(null, arguments) }, sr = t._emscripten_bind_DracoInt8Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoInt8Array_GetValue_1.apply(null, arguments) }, cr = t._emscripten_bind_DracoInt8Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoInt8Array___destroy___0.apply(null, arguments) }, lr = t._emscripten_bind_DracoInt8Array_size_0 = function () { return t.asm._emscripten_bind_DracoInt8Array_size_0.apply(null, arguments) }, yr = t._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = function () { return t.asm._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0.apply(null, arguments) }, mr = t._emscripten_bind_DracoUInt16Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoUInt16Array_GetValue_1.apply(null, arguments) }, fr = t._emscripten_bind_DracoUInt16Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoUInt16Array___destroy___0.apply(null, arguments) }, br = t._emscripten_bind_DracoUInt16Array_size_0 = function () { return t.asm._emscripten_bind_DracoUInt16Array_size_0.apply(null, arguments) }, dr = t._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = function () { return t.asm._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0.apply(null, arguments) }, hr = t._emscripten_bind_DracoUInt32Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoUInt32Array_GetValue_1.apply(null, arguments) }, Ar = t._emscripten_bind_DracoUInt32Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoUInt32Array___destroy___0.apply(null, arguments) }, gr = t._emscripten_bind_DracoUInt32Array_size_0 = function () { return t.asm._emscripten_bind_DracoUInt32Array_size_0.apply(null, arguments) }, Tr = t._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = function () { return t.asm._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0.apply(null, arguments) }, Ir = t._emscripten_bind_DracoUInt8Array_GetValue_1 = function () { return t.asm._emscripten_bind_DracoUInt8Array_GetValue_1.apply(null, arguments) }, vr = t._emscripten_bind_DracoUInt8Array___destroy___0 = function () { return t.asm._emscripten_bind_DracoUInt8Array___destroy___0.apply(null, arguments) }, Er = t._emscripten_bind_DracoUInt8Array_size_0 = function () { return t.asm._emscripten_bind_DracoUInt8Array_size_0.apply(null, arguments) }, Dr = t._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = function () { return t.asm._emscripten_bind_GeometryAttribute_GeometryAttribute_0.apply(null, arguments) }, Sr = t._emscripten_bind_GeometryAttribute___destroy___0 = function () { return t.asm._emscripten_bind_GeometryAttribute___destroy___0.apply(null, arguments) }, Rr = t._emscripten_bind_Mesh_Mesh_0 = function () { return t.asm._emscripten_bind_Mesh_Mesh_0.apply(null, arguments) }, Mr = t._emscripten_bind_Mesh___destroy___0 = function () { return t.asm._emscripten_bind_Mesh___destroy___0.apply(null, arguments) }, Gr = t._emscripten_bind_Mesh_num_attributes_0 = function () { return t.asm._emscripten_bind_Mesh_num_attributes_0.apply(null, arguments) }, Or = t._emscripten_bind_Mesh_num_faces_0 = function () { return t.asm._emscripten_bind_Mesh_num_faces_0.apply(null, arguments) }, wr = t._emscripten_bind_Mesh_num_points_0 = function () { return t.asm._emscripten_bind_Mesh_num_points_0.apply(null, arguments) }, Pr = t._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_GetDoubleEntry_2.apply(null, arguments) }, jr = t._emscripten_bind_MetadataQuerier_GetEntryName_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_GetEntryName_2.apply(null, arguments) }, Cr = t._emscripten_bind_MetadataQuerier_GetIntEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_GetIntEntry_2.apply(null, arguments) }, Nr = t._emscripten_bind_MetadataQuerier_GetStringEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_GetStringEntry_2.apply(null, arguments) }, Fr = t._emscripten_bind_MetadataQuerier_HasDoubleEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_HasDoubleEntry_2.apply(null, arguments) }, Ur = t._emscripten_bind_MetadataQuerier_HasEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_HasEntry_2.apply(null, arguments) }, Br = t._emscripten_bind_MetadataQuerier_HasIntEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_HasIntEntry_2.apply(null, arguments) }, zr = t._emscripten_bind_MetadataQuerier_HasStringEntry_2 = function () { return t.asm._emscripten_bind_MetadataQuerier_HasStringEntry_2.apply(null, arguments) }, Lr = t._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = function () { return t.asm._emscripten_bind_MetadataQuerier_MetadataQuerier_0.apply(null, arguments) }, kr = t._emscripten_bind_MetadataQuerier_NumEntries_1 = function () { return t.asm._emscripten_bind_MetadataQuerier_NumEntries_1.apply(null, arguments) }, xr = t._emscripten_bind_MetadataQuerier___destroy___0 = function () { return t.asm._emscripten_bind_MetadataQuerier___destroy___0.apply(null, arguments) }, Vr = t._emscripten_bind_Metadata_Metadata_0 = function () { return t.asm._emscripten_bind_Metadata_Metadata_0.apply(null, arguments) }, Hr = t._emscripten_bind_Metadata___destroy___0 = function () { return t.asm._emscripten_bind_Metadata___destroy___0.apply(null, arguments) }, Qr = t._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = function () { return t.asm._emscripten_bind_PointAttribute_GetAttributeTransformData_0.apply(null, arguments) }, Wr = t._emscripten_bind_PointAttribute_PointAttribute_0 = function () { return t.asm._emscripten_bind_PointAttribute_PointAttribute_0.apply(null, arguments) }, qr = t._emscripten_bind_PointAttribute___destroy___0 = function () { return t.asm._emscripten_bind_PointAttribute___destroy___0.apply(null, arguments) }, Yr = t._emscripten_bind_PointAttribute_attribute_type_0 = function () { return t.asm._emscripten_bind_PointAttribute_attribute_type_0.apply(null, arguments) }, Xr = t._emscripten_bind_PointAttribute_byte_offset_0 = function () { return t.asm._emscripten_bind_PointAttribute_byte_offset_0.apply(null, arguments) }, Kr = t._emscripten_bind_PointAttribute_byte_stride_0 = function () { return t.asm._emscripten_bind_PointAttribute_byte_stride_0.apply(null, arguments) }, Zr = t._emscripten_bind_PointAttribute_data_type_0 = function () { return t.asm._emscripten_bind_PointAttribute_data_type_0.apply(null, arguments) }, Jr = t._emscripten_bind_PointAttribute_normalized_0 = function () { return t.asm._emscripten_bind_PointAttribute_normalized_0.apply(null, arguments) }, $r = t._emscripten_bind_PointAttribute_num_components_0 = function () { return t.asm._emscripten_bind_PointAttribute_num_components_0.apply(null, arguments) }, tn = t._emscripten_bind_PointAttribute_size_0 = function () { return t.asm._emscripten_bind_PointAttribute_size_0.apply(null, arguments) }, en = t._emscripten_bind_PointAttribute_unique_id_0 = function () { return t.asm._emscripten_bind_PointAttribute_unique_id_0.apply(null, arguments) }, rn = t._emscripten_bind_PointCloud_PointCloud_0 = function () { return t.asm._emscripten_bind_PointCloud_PointCloud_0.apply(null, arguments) }, nn = t._emscripten_bind_PointCloud___destroy___0 = function () { return t.asm._emscripten_bind_PointCloud___destroy___0.apply(null, arguments) }, on = t._emscripten_bind_PointCloud_num_attributes_0 = function () { return t.asm._emscripten_bind_PointCloud_num_attributes_0.apply(null, arguments) }, _n = t._emscripten_bind_PointCloud_num_points_0 = function () { return t.asm._emscripten_bind_PointCloud_num_points_0.apply(null, arguments) }, un = t._emscripten_bind_Status___destroy___0 = function () { return t.asm._emscripten_bind_Status___destroy___0.apply(null, arguments) }, an = t._emscripten_bind_Status_code_0 = function () { return t.asm._emscripten_bind_Status_code_0.apply(null, arguments) }, pn = t._emscripten_bind_Status_error_msg_0 = function () { return t.asm._emscripten_bind_Status_error_msg_0.apply(null, arguments) }, sn = t._emscripten_bind_Status_ok_0 = function () { return t.asm._emscripten_bind_Status_ok_0.apply(null, arguments) }, cn = t._emscripten_bind_VoidPtr___destroy___0 = function () { return t.asm._emscripten_bind_VoidPtr___destroy___0.apply(null, arguments) }, ln = t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = function () { return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM.apply(null, arguments) }, yn = t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = function () { return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM.apply(null, arguments) }, mn = t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = function () { return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM.apply(null, arguments) }, fn = t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = function () { return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM.apply(null, arguments) }, bn = t._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = function () { return t.asm._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE.apply(null, arguments) }, dn = t._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = function () { return t.asm._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD.apply(null, arguments) }, hn = t._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = function () { return t.asm._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH.apply(null, arguments) }, An = t._emscripten_enum_draco_GeometryAttribute_Type_COLOR = function () { return t.asm._emscripten_enum_draco_GeometryAttribute_Type_COLOR.apply(null, arguments) }, gn = t._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = function () { return t.asm._emscripten_enum_draco_GeometryAttribute_Type_GENERIC.apply(null, arguments) }, Tn = t._emscripten_enum_draco_GeometryAttribute_Type_INVALID = function () { return t.asm._emscripten_enum_draco_GeometryAttribute_Type_INVALID.apply(null, arguments) }, In = t._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = function () { return t.asm._emscripten_enum_draco_GeometryAttribute_Type_NORMAL.apply(null, arguments) }, vn = t._emscripten_enum_draco_GeometryAttribute_Type_POSITION = function () { return t.asm._emscripten_enum_draco_GeometryAttribute_Type_POSITION.apply(null, arguments) }, En = t._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = function () { return t.asm._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD.apply(null, arguments) }, Dn = t._emscripten_enum_draco_StatusCode_ERROR = function () { return t.asm._emscripten_enum_draco_StatusCode_ERROR.apply(null, arguments) }, Sn = t._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = function () { return t.asm._emscripten_enum_draco_StatusCode_INVALID_PARAMETER.apply(null, arguments) }, Rn = t._emscripten_enum_draco_StatusCode_IO_ERROR = function () { return t.asm._emscripten_enum_draco_StatusCode_IO_ERROR.apply(null, arguments) }, Mn = t._emscripten_enum_draco_StatusCode_OK = function () { return t.asm._emscripten_enum_draco_StatusCode_OK.apply(null, arguments) }, Gn = t._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = function () { return t.asm._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION.apply(null, arguments) }, On = t._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = function () { return t.asm._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION.apply(null, arguments) }; t._emscripten_get_global_libc = function () { return t.asm._emscripten_get_global_libc.apply(null, arguments) }; var wn = t._emscripten_replace_memory = function () { return t.asm._emscripten_replace_memory.apply(null, arguments) }; t._free = function () { return t.asm._free.apply(null, arguments) }, t._llvm_bswap_i32 = function () { return t.asm._llvm_bswap_i32.apply(null, arguments) }; var ne = t._malloc = function () { return t.asm._malloc.apply(null, arguments) }; if (t._memcpy = function () { return t.asm._memcpy.apply(null, arguments) }, t._memmove = function () { return t.asm._memmove.apply(null, arguments) }, t._memset = function () { return t.asm._memset.apply(null, arguments) }, t._sbrk = function () { return t.asm._sbrk.apply(null, arguments) }, t.establishStackSpace = function () { return t.asm.establishStackSpace.apply(null, arguments) }, t.getTempRet0 = function () { return t.asm.getTempRet0.apply(null, arguments) }, t.runPostSets = function () { return t.asm.runPostSets.apply(null, arguments) }, t.setTempRet0 = function () { return t.asm.setTempRet0.apply(null, arguments) }, t.setThrew = function () { return t.asm.setThrew.apply(null, arguments) }, t.stackAlloc = function () { return t.asm.stackAlloc.apply(null, arguments) }, t.stackRestore = function () { return t.asm.stackRestore.apply(null, arguments) }, t.stackSave = function () { return t.asm.stackSave.apply(null, arguments) }, t.dynCall_ii = function () { return t.asm.dynCall_ii.apply(null, arguments) }, t.dynCall_iii = function () { return t.asm.dynCall_iii.apply(null, arguments) }, t.dynCall_iiii = function () { return t.asm.dynCall_iiii.apply(null, arguments) }, t.dynCall_iiiiiii = function () { return t.asm.dynCall_iiiiiii.apply(null, arguments) }, t.dynCall_v = function () { return t.asm.dynCall_v.apply(null, arguments) }, t.dynCall_vi = function () { return t.asm.dynCall_vi.apply(null, arguments) }, t.dynCall_vii = function () { return t.asm.dynCall_vii.apply(null, arguments) }, t.dynCall_viii = function () { return t.asm.dynCall_viii.apply(null, arguments) }, t.dynCall_viiii = function () { return t.asm.dynCall_viiii.apply(null, arguments) }, t.dynCall_viiiii = function () { return t.asm.dynCall_viiiii.apply(null, arguments) }, t.dynCall_viiiiii = function () { return t.asm.dynCall_viiiiii.apply(null, arguments) }, y.stackAlloc = t.stackAlloc, y.stackSave = t.stackSave, y.stackRestore = t.stackRestore, y.establishStackSpace = t.establishStackSpace, y.setTempRet0 = t.setTempRet0, y.getTempRet0 = t.getTempRet0, t.asm = re, nt) if (typeof t.locateFile == "function" ? nt = t.locateFile(nt) : t.memoryInitializerPrefixURL && (nt = t.memoryInitializerPrefixURL + nt), It || St) { var Pn = t.readBinary(nt); et.set(Pn, y.GLOBAL_BASE) } else { var oe = function () { t.readAsync(nt, ie, function () { throw "could not load memory initializer " + nt }) }; v("memory initializer"); var ie = function (e) { e.byteLength && (e = new Uint8Array(e)), et.set(e, y.GLOBAL_BASE), t.memoryInitializerRequest && delete t.memoryInitializerRequest.response, z("memory initializer") }; if (t.memoryInitializerRequest) { var _e = function () { var e = t.memoryInitializerRequest, r = e.response; e.status !== 200 && e.status !== 0 ? (console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: " + e.status + ", retrying " + nt), oe()) : ie(r) }; t.memoryInitializerRequest.response ? setTimeout(_e, 0) : t.memoryInitializerRequest.addEventListener("load", _e) } else oe() } t.then = function (e) { if (t.calledRun) e(t); else { var r = t.onRuntimeInitialized; t.onRuntimeInitialized = function () { r && r(), e(t) } } return t }, lt.prototype = Error(), lt.prototype.constructor = lt; var ue = null; Dt = function e() { t.calledRun || Ot(), t.calledRun || (Dt = e) }, t.run = Ot, t.exit = function (e, r) { (!r || !t.noExitRuntime) && (!t.noExitRuntime && (Et = !0, rt = void 0, b($t), t.onExit) && t.onExit(e), It && process.exit(e), t.quit(e, new lt(e))) }; var ae = []; if (t.abort = it, t.preInit) for (typeof t.preInit == "function" && (t.preInit = [t.preInit]); 0 < t.preInit.length;)t.preInit.pop()(); Ot(), g.prototype = Object.create(g.prototype), g.prototype.constructor = g, g.prototype.__class__ = g, g.__cache__ = {}, t.WrapperObject = g, t.getCache = E, t.wrapPointer = _t, t.castObject = function (e, r) { return _t(e.ptr, r) }, t.NULL = _t(0), t.destroy = function (e) { if (!e.__destroy__) throw "Error: Cannot destroy object. (Did you create it yourself?)"; e.__destroy__(), delete E(e.__class__)[e.ptr] }, t.compare = function (e, r) { return e.ptr === r.ptr }, t.getPointer = function (e) { return e.ptr }, t.getClass = function (e) { return e.__class__ }; var l = { buffer: 0, size: 0, pos: 0, temps: [], needed: 0, prepare: function () { if (l.needed) { for (var e = 0; e < l.temps.length; e++)t._free(l.temps[e]); l.temps.length = 0, t._free(l.buffer), l.buffer = 0, l.size += l.needed, l.needed = 0 } l.buffer || (l.size += 128, l.buffer = t._malloc(l.size), i(l.buffer)), l.pos = 0 }, alloc: function (e, r) { return i(l.buffer), e = e.length * r.BYTES_PER_ELEMENT, e = e + 7 & -8, l.pos + e >= l.size ? (i(0 < e), l.needed += e, r = t._malloc(e), l.temps.push(r)) : (r = l.buffer + l.pos, l.pos += e), r }, copy: function (e, r, n) { switch (r.BYTES_PER_ELEMENT) { case 2: n >>= 1; break; case 4: n >>= 2; break; case 8: n >>= 3 }for (var o = 0; o < e.length; o++)r[n + o] = e[o] } }; return w.prototype = Object.create(g.prototype), w.prototype.constructor = w, w.prototype.__class__ = w, w.__cache__ = {}, t.Status = w, w.prototype.code = w.prototype.code = function () { return an(this.ptr) }, w.prototype.ok = w.prototype.ok = function () { return !!sn(this.ptr) }, w.prototype.error_msg = w.prototype.error_msg = function () { return f(pn(this.ptr)) }, w.prototype.__destroy__ = w.prototype.__destroy__ = function () { un(this.ptr) }, L.prototype = Object.create(g.prototype), L.prototype.constructor = L, L.prototype.__class__ = L, L.__cache__ = {}, t.DracoUInt16Array = L, L.prototype.GetValue = L.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), mr(r, e) }, L.prototype.size = L.prototype.size = function () { return br(this.ptr) }, L.prototype.__destroy__ = L.prototype.__destroy__ = function () { fr(this.ptr) }, k.prototype = Object.create(g.prototype), k.prototype.constructor = k, k.prototype.__class__ = k, k.__cache__ = {}, t.PointCloud = k, k.prototype.num_attributes = k.prototype.num_attributes = function () { return on(this.ptr) }, k.prototype.num_points = k.prototype.num_points = function () { return _n(this.ptr) }, k.prototype.__destroy__ = k.prototype.__destroy__ = function () { nn(this.ptr) }, x.prototype = Object.create(g.prototype), x.prototype.constructor = x, x.prototype.__class__ = x, x.__cache__ = {}, t.DracoUInt8Array = x, x.prototype.GetValue = x.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), Ir(r, e) }, x.prototype.size = x.prototype.size = function () { return Er(this.ptr) }, x.prototype.__destroy__ = x.prototype.__destroy__ = function () { vr(this.ptr) }, V.prototype = Object.create(g.prototype), V.prototype.constructor = V, V.prototype.__class__ = V, V.__cache__ = {}, t.DracoUInt32Array = V, V.prototype.GetValue = V.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), hr(r, e) }, V.prototype.size = V.prototype.size = function () { return gr(this.ptr) }, V.prototype.__destroy__ = V.prototype.__destroy__ = function () { Ar(this.ptr) }, H.prototype = Object.create(g.prototype), H.prototype.constructor = H, H.prototype.__class__ = H, H.__cache__ = {}, t.AttributeOctahedronTransform = H, H.prototype.InitFromAttribute = H.prototype.InitFromAttribute = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), !!le(r, e) }, H.prototype.quantization_bits = H.prototype.quantization_bits = function () { return me(this.ptr) }, H.prototype.__destroy__ = H.prototype.__destroy__ = function () { ye(this.ptr) }, T.prototype = Object.create(g.prototype), T.prototype.constructor = T, T.prototype.__class__ = T, T.__cache__ = {}, t.PointAttribute = T, T.prototype.size = T.prototype.size = function () { return tn(this.ptr) }, T.prototype.GetAttributeTransformData = T.prototype.GetAttributeTransformData = function () { return _t(Qr(this.ptr), K) }, T.prototype.attribute_type = T.prototype.attribute_type = function () { return Yr(this.ptr) }, T.prototype.data_type = T.prototype.data_type = function () { return Zr(this.ptr) }, T.prototype.num_components = T.prototype.num_components = function () { return $r(this.ptr) }, T.prototype.normalized = T.prototype.normalized = function () { return !!Jr(this.ptr) }, T.prototype.byte_stride = T.prototype.byte_stride = function () { return Kr(this.ptr) }, T.prototype.byte_offset = T.prototype.byte_offset = function () { return Xr(this.ptr) }, T.prototype.unique_id = T.prototype.unique_id = function () { return en(this.ptr) }, T.prototype.__destroy__ = T.prototype.__destroy__ = function () { qr(this.ptr) }, K.prototype = Object.create(g.prototype), K.prototype.constructor = K, K.prototype.__class__ = K, K.__cache__ = {}, t.AttributeTransformData = K, K.prototype.transform_type = K.prototype.transform_type = function () { return ve(this.ptr) }, K.prototype.__destroy__ = K.prototype.__destroy__ = function () { Ie(this.ptr) }, R.prototype = Object.create(g.prototype), R.prototype.constructor = R, R.prototype.__class__ = R, R.__cache__ = {}, t.AttributeQuantizationTransform = R, R.prototype.InitFromAttribute = R.prototype.InitFromAttribute = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), !!be(r, e) }, R.prototype.quantization_bits = R.prototype.quantization_bits = function () { return Ae(this.ptr) }, R.prototype.min_value = R.prototype.min_value = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), he(r, e) }, R.prototype.range = R.prototype.range = function () { return ge(this.ptr) }, R.prototype.__destroy__ = R.prototype.__destroy__ = function () { de(this.ptr) }, Q.prototype = Object.create(g.prototype), Q.prototype.constructor = Q, Q.prototype.__class__ = Q, Q.__cache__ = {}, t.DracoInt8Array = Q, Q.prototype.GetValue = Q.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), sr(r, e) }, Q.prototype.size = Q.prototype.size = function () { return lr(this.ptr) }, Q.prototype.__destroy__ = Q.prototype.__destroy__ = function () { cr(this.ptr) }, I.prototype = Object.create(g.prototype), I.prototype.constructor = I, I.prototype.__class__ = I, I.__cache__ = {}, t.MetadataQuerier = I, I.prototype.HasEntry = I.prototype.HasEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), !!Ur(n, e, r) }, I.prototype.HasIntEntry = I.prototype.HasIntEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), !!Br(n, e, r) }, I.prototype.GetIntEntry = I.prototype.GetIntEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), Cr(n, e, r) }, I.prototype.HasDoubleEntry = I.prototype.HasDoubleEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), !!Fr(n, e, r) }, I.prototype.GetDoubleEntry = I.prototype.GetDoubleEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), Pr(n, e, r) }, I.prototype.HasStringEntry = I.prototype.HasStringEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), !!zr(n, e, r) }, I.prototype.GetStringEntry = I.prototype.GetStringEntry = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), f(Nr(n, e, r)) }, I.prototype.NumEntries = I.prototype.NumEntries = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), kr(r, e) }, I.prototype.GetEntryName = I.prototype.GetEntryName = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), f(jr(n, e, r)) }, I.prototype.__destroy__ = I.prototype.__destroy__ = function () { xr(this.ptr) }, W.prototype = Object.create(g.prototype), W.prototype.constructor = W, W.prototype.__class__ = W, W.__cache__ = {}, t.DracoInt16Array = W, W.prototype.GetValue = W.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), rr(r, e) }, W.prototype.size = W.prototype.size = function () { return or(this.ptr) }, W.prototype.__destroy__ = W.prototype.__destroy__ = function () { nr(this.ptr) }, q.prototype = Object.create(g.prototype), q.prototype.constructor = q, q.prototype.__class__ = q, q.__cache__ = {}, t.DracoFloat32Array = q, q.prototype.GetValue = q.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), Je(r, e) }, q.prototype.size = q.prototype.size = function () { return tr(this.ptr) }, q.prototype.__destroy__ = q.prototype.__destroy__ = function () { $e(this.ptr) }, at.prototype = Object.create(g.prototype), at.prototype.constructor = at, at.prototype.__class__ = at, at.__cache__ = {}, t.GeometryAttribute = at, at.prototype.__destroy__ = at.prototype.__destroy__ = function () { Sr(this.ptr) }, J.prototype = Object.create(g.prototype), J.prototype.constructor = J, J.prototype.__class__ = J, J.__cache__ = {}, t.DecoderBuffer = J, J.prototype.Init = J.prototype.Init = function (e, r) { var n = this.ptr; if (l.prepare(), typeof e == "object" && typeof e == "object") { var o = l.alloc(e, dt); l.copy(e, dt, o), e = o } r && typeof r == "object" && (r = r.ptr), De(n, e, r) }, J.prototype.__destroy__ = J.prototype.__destroy__ = function () { Se(this.ptr) }, a.prototype = Object.create(g.prototype), a.prototype.constructor = a, a.prototype.__class__ = a, a.__cache__ = {}, t.Decoder = a, a.prototype.GetEncodedGeometryType = a.prototype.GetEncodedGeometryType = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), Qe(r, e) }, a.prototype.DecodeBufferToPointCloud = a.prototype.DecodeBufferToPointCloud = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), _t(Me(n, e, r), w) }, a.prototype.DecodeBufferToMesh = a.prototype.DecodeBufferToMesh = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), _t(Re(n, e, r), w) }, a.prototype.GetAttributeId = a.prototype.GetAttributeId = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), Ne(n, e, r) }, a.prototype.GetAttributeIdByName = a.prototype.GetAttributeIdByName = function (e, r) { var n = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), Ce(n, e, r) }, a.prototype.GetAttributeIdByMetadataEntry = a.prototype.GetAttributeIdByMetadataEntry = function (e, r, n) { var o = this.ptr; return l.prepare(), e && typeof e == "object" && (e = e.ptr), r = r && typeof r == "object" ? r.ptr : ut(r), n = n && typeof n == "object" ? n.ptr : ut(n), je(o, e, r, n) }, a.prototype.GetAttribute = a.prototype.GetAttribute = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), _t(He(n, e, r), T) }, a.prototype.GetAttributeByUniqueId = a.prototype.GetAttributeByUniqueId = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), _t(Oe(n, e, r), T) }, a.prototype.GetMetadata = a.prototype.GetMetadata = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), _t(qe(r, e), $) }, a.prototype.GetAttributeMetadata = a.prototype.GetAttributeMetadata = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), _t(Le(n, e, r), $) }, a.prototype.GetFaceFromMesh = a.prototype.GetFaceFromMesh = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!We(o, e, r, n) }, a.prototype.GetTriangleStripsFromMesh = a.prototype.GetTriangleStripsFromMesh = function (e, r) { var n = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), Ye(n, e, r) }, a.prototype.GetAttributeFloat = a.prototype.GetAttributeFloat = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!Pe(o, e, r, n) }, a.prototype.GetAttributeFloatForAllPoints = a.prototype.GetAttributeFloatForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!we(o, e, r, n) }, a.prototype.GetAttributeIntForAllPoints = a.prototype.GetAttributeIntForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!ze(o, e, r, n) }, a.prototype.GetAttributeInt8ForAllPoints = a.prototype.GetAttributeInt8ForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!Be(o, e, r, n) }, a.prototype.GetAttributeUInt8ForAllPoints = a.prototype.GetAttributeUInt8ForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!Ve(o, e, r, n) }, a.prototype.GetAttributeInt16ForAllPoints = a.prototype.GetAttributeInt16ForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!Fe(o, e, r, n) }, a.prototype.GetAttributeUInt16ForAllPoints = a.prototype.GetAttributeUInt16ForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!ke(o, e, r, n) }, a.prototype.GetAttributeInt32ForAllPoints = a.prototype.GetAttributeInt32ForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!Ue(o, e, r, n) }, a.prototype.GetAttributeUInt32ForAllPoints = a.prototype.GetAttributeUInt32ForAllPoints = function (e, r, n) { var o = this.ptr; return e && typeof e == "object" && (e = e.ptr), r && typeof r == "object" && (r = r.ptr), n && typeof n == "object" && (n = n.ptr), !!xe(o, e, r, n) }, a.prototype.SkipAttributeTransform = a.prototype.SkipAttributeTransform = function (e) { var r = this.ptr; e && typeof e == "object" && (e = e.ptr), Xe(r, e) }, a.prototype.__destroy__ = a.prototype.__destroy__ = function () { Ke(this.ptr) }, C.prototype = Object.create(g.prototype), C.prototype.constructor = C, C.prototype.__class__ = C, C.__cache__ = {}, t.Mesh = C, C.prototype.num_faces = C.prototype.num_faces = function () { return Or(this.ptr) }, C.prototype.num_attributes = C.prototype.num_attributes = function () { return Gr(this.ptr) }, C.prototype.num_points = C.prototype.num_points = function () { return wr(this.ptr) }, C.prototype.__destroy__ = C.prototype.__destroy__ = function () { Mr(this.ptr) }, yt.prototype = Object.create(g.prototype), yt.prototype.constructor = yt, yt.prototype.__class__ = yt, yt.__cache__ = {}, t.VoidPtr = yt, yt.prototype.__destroy__ = yt.prototype.__destroy__ = function () { cn(this.ptr) }, Y.prototype = Object.create(g.prototype), Y.prototype.constructor = Y, Y.prototype.__class__ = Y, Y.__cache__ = {}, t.DracoInt32Array = Y, Y.prototype.GetValue = Y.prototype.GetValue = function (e) { var r = this.ptr; return e && typeof e == "object" && (e = e.ptr), _r(r, e) }, Y.prototype.size = Y.prototype.size = function () { return ar(this.ptr) }, Y.prototype.__destroy__ = Y.prototype.__destroy__ = function () { ur(this.ptr) }, $.prototype = Object.create(g.prototype), $.prototype.constructor = $, $.prototype.__class__ = $, $.__cache__ = {}, t.Metadata = $, $.prototype.__destroy__ = $.prototype.__destroy__ = function () { Hr(this.ptr) }, function () { function e() { t.OK = Mn(), t.ERROR = Dn(), t.IO_ERROR = Rn(), t.INVALID_PARAMETER = Sn(), t.UNSUPPORTED_VERSION = On(), t.UNKNOWN_VERSION = Gn(), t.INVALID_GEOMETRY_TYPE = bn(), t.POINT_CLOUD = dn(), t.TRIANGULAR_MESH = hn(), t.ATTRIBUTE_INVALID_TRANSFORM = ln(), t.ATTRIBUTE_NO_TRANSFORM = yn(), t.ATTRIBUTE_QUANTIZATION_TRANSFORM = fn(), t.ATTRIBUTE_OCTAHEDRON_TRANSFORM = mn(), t.INVALID = Tn(), t.POSITION = vn(), t.NORMAL = In(), t.COLOR = An(), t.TEX_COORD = En(), t.GENERIC = gn() } t.calledRun ? e() : Jt.unshift(e) }(), typeof t.onModuleParsed == "function" && t.onModuleParsed(), u |
| | | }; typeof module == "object" && module.exports && (module.exports = DracoDecoderModule); |
| | | var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(u,i,f){u!=Array.prototype&&u!=Object.prototype&&(u[i]=f.value)},$jscomp.getGlobal=function(u){return typeof window<"u"&&window===u?u:typeof global<"u"&&global!=null?global:u},$jscomp.global=$jscomp.getGlobal(void 0),$jscomp.polyfill=function(u,i,f,B){if(i){for(f=$jscomp.global,u=u.split("."),B=0;B<u.length-1;B++){var d=u[B];d in f||(f[d]={}),f=f[d]}u=u[u.length-1],B=f[u],i=i(B),i!=B&&i!=null&&$jscomp.defineProperty(f,u,{configurable:!0,writable:!0,value:i})}},$jscomp.polyfill("Math.imul",function(u){return u||function(i,f){i=Number(i),f=Number(f);var B=i&65535,d=f&65535;return B*d+((i>>>16&65535)*d+B*(f>>>16&65535)<<16>>>0)|0}},"es6","es3"),$jscomp.polyfill("Math.clz32",function(u){return u||function(i){if(i=Number(i)>>>0,i===0)return 32;var f=0;return(i&4294901760)===0&&(i<<=16,f+=16),(i&4278190080)===0&&(i<<=8,f+=8),(i&4026531840)===0&&(i<<=4,f+=4),(i&3221225472)===0&&(i<<=2,f+=2),(i&2147483648)===0&&f++,f}},"es6","es3"),$jscomp.polyfill("Math.trunc",function(u){return u||function(i){if(i=Number(i),isNaN(i)||i===1/0||i===-1/0||i===0)return i;var f=Math.floor(Math.abs(i));return 0>i?-f:f}},"es6","es3"),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(u){return $jscomp.SYMBOL_PREFIX+(u||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var u=$jscomp.global.Symbol.iterator;u||(u=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),typeof Array.prototype[u]!="function"&&$jscomp.defineProperty(Array.prototype,u,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(u){var i=0;return $jscomp.iteratorPrototype(function(){return i<u.length?{done:!1,value:u[i++]}:{done:!0}})},$jscomp.iteratorPrototype=function(u){return $jscomp.initSymbolIterator(),u={next:u},u[$jscomp.global.Symbol.iterator]=function(){return this},u},$jscomp.makeIterator=function(u){$jscomp.initSymbolIterator();var i=u[Symbol.iterator];return i?i.call(u):$jscomp.arrayIterator(u)},$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.polyfill("Promise",function(u){function i(){this.batch_=null}function f(_){return _ instanceof d?_:new d(function(p,b){p(_)})}if(u&&!$jscomp.FORCE_POLYFILL_PROMISE)return u;i.prototype.asyncExecute=function(_){return this.batch_==null&&(this.batch_=[],this.asyncExecuteBatch_()),this.batch_.push(_),this},i.prototype.asyncExecuteBatch_=function(){var _=this;this.asyncExecuteFunction(function(){_.executeBatch_()})};var B=$jscomp.global.setTimeout;i.prototype.asyncExecuteFunction=function(_){B(_,0)},i.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var _=this.batch_;this.batch_=[];for(var p=0;p<_.length;++p){var b=_[p];delete _[p];try{b()}catch(v){this.asyncThrow_(v)}}}this.batch_=null},i.prototype.asyncThrow_=function(_){this.asyncExecuteFunction(function(){throw _})};var d=function(_){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[];var p=this.createResolveAndReject_();try{_(p.resolve,p.reject)}catch(b){p.reject(b)}};d.prototype.createResolveAndReject_=function(){function _(v){return function(z){b||(b=!0,v.call(p,z))}}var p=this,b=!1;return{resolve:_(this.resolveTo_),reject:_(this.reject_)}},d.prototype.resolveTo_=function(_){if(_===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(_ instanceof d)this.settleSameAsPromise_(_);else{t:switch(typeof _){case"object":var p=_!=null;break t;case"function":p=!0;break t;default:p=!1}p?this.resolveToNonPromiseObj_(_):this.fulfill_(_)}},d.prototype.resolveToNonPromiseObj_=function(_){var p=void 0;try{p=_.then}catch(b){this.reject_(b);return}typeof p=="function"?this.settleSameAsThenable_(p,_):this.fulfill_(_)},d.prototype.reject_=function(_){this.settle_(2,_)},d.prototype.fulfill_=function(_){this.settle_(1,_)},d.prototype.settle_=function(_,p){if(this.state_!=0)throw Error("Cannot settle("+_+", "+p|"): Promise already settled in state"+this.state_);this.state_=_,this.result_=p,this.executeOnSettledCallbacks_()},d.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var _=this.onSettledCallbacks_,p=0;p<_.length;++p)_[p].call(),_[p]=null;this.onSettledCallbacks_=null}};var gt=new i;return d.prototype.settleSameAsPromise_=function(_){var p=this.createResolveAndReject_();_.callWhenSettled_(p.resolve,p.reject)},d.prototype.settleSameAsThenable_=function(_,p){var b=this.createResolveAndReject_();try{_.call(p,b.resolve,b.reject)}catch(v){b.reject(v)}},d.prototype.then=function(_,p){function b(N,j){return typeof N=="function"?function(ct){try{v(N(ct))}catch(lt){z(lt)}}:j}var v,z,ot=new d(function(N,j){v=N,z=j});return this.callWhenSettled_(b(_,v),b(p,z)),ot},d.prototype.catch=function(_){return this.then(void 0,_)},d.prototype.callWhenSettled_=function(_,p){function b(){switch(v.state_){case 1:_(v.result_);break;case 2:p(v.result_);break;default:throw Error("Unexpected state: "+v.state_)}}var v=this;this.onSettledCallbacks_==null?gt.asyncExecute(b):this.onSettledCallbacks_.push(function(){gt.asyncExecute(b)})},d.resolve=f,d.reject=function(_){return new d(function(p,b){b(_)})},d.race=function(_){return new d(function(p,b){for(var v=$jscomp.makeIterator(_),z=v.next();!z.done;z=v.next())f(z.value).callWhenSettled_(p,b)})},d.all=function(_){var p=$jscomp.makeIterator(_),b=p.next();return b.done?f([]):new d(function(v,z){function ot(ct){return function(lt){N[ct]=lt,j--,j==0&&v(N)}}var N=[],j=0;do N.push(void 0),j++,f(b.value).callWhenSettled_(ot(N.length-1),z),b=p.next();while(!b.done)})},d},"es6","es3");var DracoDecoderModule=function(u){function i(e,r){e||it("Assertion failed: "+r)}function f(e,r){if(r===0||!e)return"";for(var n=0,o,c=0;o=et[e+c>>0],n|=o,!(o==0&&!r||(c++,r&&c==r)););if(r||(r=c),o="",128>n){for(;0<r;)n=String.fromCharCode.apply(String,et.subarray(e,e+Math.min(r,1024))),o=o?o+n:n,e+=1024,r-=1024;return o}return t.UTF8ToString(e)}function B(e){return e.replace(/__Z[\w\d_]+/g,function(r){return r===r?r:r+" ["+r+"]"})}function d(){t:{var e=Error();if(!e.stack){try{throw Error(0)}catch(r){e=r}if(!e.stack){e="(no stack trace available)";break t}}e=e.stack.toString()}return t.extraStackTrace&&(e+=` |
| | | `+t.extraStackTrace()),B(e)}function gt(e,r){return 0<e%r&&(e+=r-e%r),e}function _(){t.HEAP8=dt=new Int8Array(F),t.HEAP16=Ct=new Int16Array(F),t.HEAP32=M=new Int32Array(F),t.HEAPU8=et=new Uint8Array(F),t.HEAPU16=Wt=new Uint16Array(F),t.HEAPU32=qt=new Uint32Array(F),t.HEAPF32=Yt=new Float32Array(F),t.HEAPF64=Xt=new Float64Array(F)}function p(){var e=t.usingWasm?jt:Qt,r=2147483648-e;if(M[mt>>2]>r)return!1;var n=G;for(G=Math.max(G,pe);G<M[mt>>2];)G=536870912>=G?gt(2*G,e):Math.min(gt((3*G+2147483648)/4,e),r);return e=t.reallocBuffer(G),!e||e.byteLength!=G?(G=n,!1):(t.buffer=F=e,_(),!0)}function b(e){for(;0<e.length;){var r=e.shift();if(typeof r=="function")r();else{var n=r.func;typeof n=="number"?r.arg===void 0?t.dynCall_v(n):t.dynCall_vi(n,r.arg):n(r.arg===void 0?null:r.arg)}}}function v(e){ht++,t.monitorRunDependencies&&t.monitorRunDependencies(ht)}function z(e){ht--,t.monitorRunDependencies&&t.monitorRunDependencies(ht),ht==0&&(Lt!==null&&(clearInterval(Lt),Lt=null),Dt&&(e=Dt,Dt=null,e()))}function ot(){return!!ot.uncaught_exception}function N(){var e=P.last;if(!e)return y.setTempRet0(0),0|0;var r=P.infos[e],n=r.type;if(!n)return y.setTempRet0(0),e|0;var o=Array.prototype.slice.call(arguments);t.___cxa_is_pointer_type(n),N.buffer||(N.buffer=ne(4)),M[N.buffer>>2]=e,e=N.buffer;for(var c=0;c<o.length;c++)if(o[c]&&t.___cxa_can_catch(o[c],n,e))return e=M[e>>2],r.adjusted=e,y.setTempRet0(o[c]),e|0;return e=M[e>>2],y.setTempRet0(n),e|0}function j(e,r){D.varargs=r;try{var n=D.get(),o=D.get(),c=D.get();for(e=0,j.buffer||(j.buffers=[null,[],[]],j.printChar=function(st,m){var h=j.buffers[st];if(i(h),m===0||m===10){st=st===1?t.print:t.printErr;t:{for(var U=m=0;h[U];)++U;if(16<U-m&&h.subarray&&Ht)m=Ht.decode(h.subarray(m,U));else for(U="";;){var A=h[m++];if(!A){m=U;break t}if(A&128){var tt=h[m++]&63;if((A&224)==192)U+=String.fromCharCode((A&31)<<6|tt);else{var At=h[m++]&63;if((A&240)==224)A=(A&15)<<12|tt<<6|At;else{var O=h[m++]&63;if((A&248)==240)A=(A&7)<<18|tt<<12|At<<6|O;else{var X=h[m++]&63;if((A&252)==248)A=(A&3)<<24|tt<<18|At<<12|O<<6|X;else{var Gt=h[m++]&63;A=(A&1)<<30|tt<<24|At<<18|O<<12|X<<6|Gt}}}65536>A?U+=String.fromCharCode(A):(A-=65536,U+=String.fromCharCode(55296|A>>10,56320|A&1023))}}else U+=String.fromCharCode(A)}}st(m),h.length=0}else h.push(m)}),r=0;r<c;r++){for(var s=M[o+8*r>>2],S=M[o+(8*r+4)>>2],Z=0;Z<S;Z++)j.printChar(n,et[s+Z]);e+=S}return e}catch(st){return typeof FS<"u"&&st instanceof FS.ErrnoError||it(st),-st.errno}}function ct(e,r){ct.seen||(ct.seen={}),e in ct.seen||(t.dynCall_v(r),ct.seen[e]=1)}function lt(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Ot(e){function r(){if(!t.calledRun&&(t.calledRun=!0,!Et)){if(ee||(ee=!0,b(Zt)),b(Jt),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)te.unshift(t.postRun.shift());b(te)}}if(ue===null&&(ue=Date.now()),!(0<ht)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Kt.unshift(t.preRun.shift());b(Kt),0<ht||t.calledRun||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),r()},1)):r())}}function it(e){t.onAbort&&t.onAbort(e),e!==void 0?(t.print(e),t.printErr(e),e=JSON.stringify(e)):e="",Et=!0;var r="abort("+e+") at "+d()+` |
| | | If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.`;throw ae&&ae.forEach(function(n){r=n(r,e)}),r}function g(){}function E(e){return(e||g).__cache__}function _t(e,r){var n=E(r),o=n[e];return o||(o=Object.create((r||g).prototype),o.ptr=e,n[e]=o)}function ut(e){if(typeof e=="string"){for(var r=0,n=0;n<e.length;++n){var o=e.charCodeAt(n);55296<=o&&57343>=o&&(o=65536+((o&1023)<<10)|e.charCodeAt(++n)&1023),127>=o?++r:r=2047>=o?r+2:65535>=o?r+3:2097151>=o?r+4:67108863>=o?r+5:r+6}if(r=Array(r+1),n=0,o=r.length,0<o){o=n+o-1;for(var c=0;c<e.length;++c){var s=e.charCodeAt(c);if(55296<=s&&57343>=s&&(s=65536+((s&1023)<<10)|e.charCodeAt(++c)&1023),127>=s){if(n>=o)break;r[n++]=s}else{if(2047>=s){if(n+1>=o)break;r[n++]=192|s>>6}else{if(65535>=s){if(n+2>=o)break;r[n++]=224|s>>12}else{if(2097151>=s){if(n+3>=o)break;r[n++]=240|s>>18}else{if(67108863>=s){if(n+4>=o)break;r[n++]=248|s>>24}else{if(n+5>=o)break;r[n++]=252|s>>30,r[n++]=128|s>>24&63}r[n++]=128|s>>18&63}r[n++]=128|s>>12&63}r[n++]=128|s>>6&63}r[n++]=128|s&63}}r[n]=0}e=l.alloc(r,dt),l.copy(r,dt,e)}return e}function w(){throw"cannot construct a Status, no constructor in IDL"}function L(){this.ptr=yr(),E(L)[this.ptr]=this}function k(){this.ptr=rn(),E(k)[this.ptr]=this}function x(){this.ptr=Tr(),E(x)[this.ptr]=this}function V(){this.ptr=dr(),E(V)[this.ptr]=this}function H(){this.ptr=ce(),E(H)[this.ptr]=this}function T(){this.ptr=Wr(),E(T)[this.ptr]=this}function K(){this.ptr=Te(),E(K)[this.ptr]=this}function R(){this.ptr=fe(),E(R)[this.ptr]=this}function Q(){this.ptr=pr(),E(Q)[this.ptr]=this}function I(){this.ptr=Lr(),E(I)[this.ptr]=this}function W(){this.ptr=er(),E(W)[this.ptr]=this}function q(){this.ptr=Ze(),E(q)[this.ptr]=this}function at(){this.ptr=Dr(),E(at)[this.ptr]=this}function J(){this.ptr=Ee(),E(J)[this.ptr]=this}function a(){this.ptr=Ge(),E(a)[this.ptr]=this}function C(){this.ptr=Rr(),E(C)[this.ptr]=this}function yt(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Y(){this.ptr=ir(),E(Y)[this.ptr]=this}function $(){this.ptr=Vr(),E($)[this.ptr]=this}var t=u=u||{},xt=!1,Vt=!1;t.onRuntimeInitialized=function(){xt=!0,Vt&&typeof t.onModuleLoaded=="function"&&t.onModuleLoaded(t)},t.onModuleParsed=function(){Vt=!0,xt&&typeof t.onModuleLoaded=="function"&&t.onModuleLoaded(t)},t.isVersionSupported=function(e){return typeof e!="string"?!1:(e=e.split("."),2>e.length||3<e.length?!1:e[0]==1&&0<=e[1]&&3>=e[1]?!0:!(e[0]!=0||10<e[1]))},t||(t=(typeof u<"u"?u:null)||{});var vt={},ft;for(ft in t)t.hasOwnProperty(ft)&&(vt[ft]=t[ft]);var Tt=!1,bt=!1,It=!1,St=!1;if(t.ENVIRONMENT)if(t.ENVIRONMENT==="WEB")Tt=!0;else if(t.ENVIRONMENT==="WORKER")bt=!0;else if(t.ENVIRONMENT==="NODE")It=!0;else if(t.ENVIRONMENT==="SHELL")St=!0;else throw Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.");else Tt=typeof window=="object",bt=typeof importScripts=="function",It=typeof process=="object"&&typeof require=="function"&&!Tt&&!bt,St=!Tt&&!It&&!bt;if(It){t.print||(t.print=console.log),t.printErr||(t.printErr=console.warn);var wt,Pt;t.read=function(e,r){return wt||(wt=require("fs")),Pt||(Pt=require("path")),e=Pt.normalize(e),e=wt.readFileSync(e),r?e:e.toString()},t.readBinary=function(e){return e=t.read(e,!0),e.buffer||(e=new Uint8Array(e)),i(e.buffer),e},t.thisProgram||(t.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program"),t.arguments=process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof lt))throw e}),t.inspect=function(){return"[Emscripten Module object]"}}else if(St)t.print||(t.print=print),typeof printErr<"u"&&(t.printErr=printErr),t.read=typeof read<"u"?function(e){return read(e)}:function(){throw"no read() available"},t.readBinary=function(e){return typeof readbuffer=="function"?new Uint8Array(readbuffer(e)):(e=read(e,"binary"),i(typeof e=="object"),e)},typeof scriptArgs<"u"?t.arguments=scriptArgs:typeof arguments<"u"&&(t.arguments=arguments),typeof quit=="function"&&(t.quit=function(e,r){quit(e)});else if(Tt||bt)t.read=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},bt&&(t.readBinary=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),t.readAsync=function(e,r,n){var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="arraybuffer",o.onload=function(){o.status==200||o.status==0&&o.response?r(o.response):n()},o.onerror=n,o.send(null)},typeof arguments<"u"&&(t.arguments=arguments),typeof console<"u"?(t.print||(t.print=function(e){console.log(e)}),t.printErr||(t.printErr=function(e){console.warn(e)})):t.print||(t.print=function(e){}),typeof t.setWindowTitle>"u"&&(t.setWindowTitle=function(e){document.title=e});else throw Error("Unknown runtime environment. Where are we?");t.print||(t.print=function(){}),t.printErr||(t.printErr=t.print),t.arguments||(t.arguments=[]),t.thisProgram||(t.thisProgram="./this.program"),t.quit||(t.quit=function(e,r){throw r}),t.print=t.print,t.printErr=t.printErr,t.preRun=[],t.postRun=[];for(ft in vt)vt.hasOwnProperty(ft)&&(t[ft]=vt[ft]);vt=void 0;var y={setTempRet0:function(e){return tempRet0=e},getTempRet0:function(){return tempRet0},stackSave:function(){return rt},stackRestore:function(e){rt=e},getNativeTypeSize:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return e[e.length-1]==="*"?y.QUANTUM_SIZE:e[0]==="i"?(e=parseInt(e.substr(1)),i(e%8===0),e/8):0}},getNativeFieldSize:function(e){return Math.max(y.getNativeTypeSize(e),y.QUANTUM_SIZE)},STACK_ALIGN:16,prepVararg:function(e,r){return r==="double"||r==="i64"?e&7&&(i((e&7)===4),e+=4):i((e&3)===0),e},getAlignSize:function(e,r,n){return n||e!="i64"&&e!="double"?e?Math.min(r||(e?y.getNativeFieldSize(e):0),y.QUANTUM_SIZE):Math.min(r,8):8},dynCall:function(e,r,n){return n&&n.length?t["dynCall_"+e].apply(null,[r].concat(n)):t["dynCall_"+e].call(null,r)},functionPointers:[],addFunction:function(e){for(var r=0;r<y.functionPointers.length;r++)if(!y.functionPointers[r])return y.functionPointers[r]=e,2*(1+r);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},removeFunction:function(e){y.functionPointers[(e-2)/2]=null},warnOnce:function(e){y.warnOnce.shown||(y.warnOnce.shown={}),y.warnOnce.shown[e]||(y.warnOnce.shown[e]=1,t.printErr(e))},funcWrappers:{},getFuncWrapper:function(e,r){if(e){i(r),y.funcWrappers[r]||(y.funcWrappers[r]={});var n=y.funcWrappers[r];return n[e]||(n[e]=r.length===1?function(){return y.dynCall(r,e)}:r.length===2?function(o){return y.dynCall(r,e,[o])}:function(){return y.dynCall(r,e,Array.prototype.slice.call(arguments))}),n[e]}},getCompilerSetting:function(e){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},stackAlloc:function(e){var r=rt;return rt=rt+e|0,rt=rt+15&-16,r},staticAlloc:function(e){var r=pt;return pt=pt+e|0,pt=pt+15&-16,r},dynamicAlloc:function(e){var r=M[mt>>2];return e=(r+e+15|0)&-16,M[mt>>2]=e,e>=G&&!p()?(M[mt>>2]=r,0):r},alignMemory:function(e,r){return Math.ceil(e/(r||16))*(r||16)},makeBigInt:function(e,r,n){return n?+(e>>>0)+4294967296*+(r>>>0):+(e>>>0)+4294967296*+(r|0)},GLOBAL_BASE:1024,QUANTUM_SIZE:4,__dummy__:0},Et=0,Ht=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;typeof TextDecoder<"u"&&new TextDecoder("utf-16le");var jt=65536,Qt=16777216,pe=16777216,dt,et,Ct,Wt,M,qt,Yt,Xt,pt,Nt,rt,Rt,Ft,mt,Ut=pt=Nt=rt=Rt=Ft=mt=0;t.reallocBuffer||(t.reallocBuffer=function(e){try{if(ArrayBuffer.transfer)var r=ArrayBuffer.transfer(F,e);else{var n=dt;r=new ArrayBuffer(e),new Int8Array(r).set(n)}}catch{return!1}return wn(r)?r:!1});try{var Bt=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get);Bt(new ArrayBuffer(4))}catch{Bt=function(r){return r.byteLength}}var zt=t.TOTAL_STACK||5242880,G=t.TOTAL_MEMORY||16777216;if(G<zt&&t.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+G+"! (TOTAL_STACK="+zt+")"),t.buffer)var F=t.buffer;else typeof WebAssembly=="object"&&typeof WebAssembly.Memory=="function"?(t.wasmMemory=new WebAssembly.Memory({initial:G/jt}),F=t.wasmMemory.buffer):F=new ArrayBuffer(G);if(_(),M[0]=1668509029,Ct[1]=25459,et[2]!==115||et[3]!==99)throw"Runtime error: expected the system to be little-endian!";t.HEAP=void 0,t.buffer=F,t.HEAP8=dt,t.HEAP16=Ct,t.HEAP32=M,t.HEAPU8=et,t.HEAPU16=Wt,t.HEAPU32=qt,t.HEAPF32=Yt,t.HEAPF64=Xt;var Kt=[],Zt=[],Jt=[],$t=[],te=[],ee=!1;i(Math.imul&&Math.fround&&Math.clz32&&Math.trunc,"this is a legacy browser, build with LEGACY_VM_SUPPORT");var ht=0,Lt=null,Dt=null;t.preloadedImages={},t.preloadedAudios={};var nt=null;(function(){function e(){try{if(t.wasmBinary)return new Uint8Array(t.wasmBinary);if(t.readBinary)return t.readBinary(o);throw"on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)"}catch(m){it(m)}}function r(){return t.wasmBinary||!Tt&&!bt||typeof fetch!="function"?new Promise(function(m,h){m(e())}):fetch(o,{credentials:"same-origin"}).then(function(m){if(!m.ok)throw"failed to load wasm binary file at '"+o+"'";return m.arrayBuffer()}).catch(function(){return e()})}function n(m,h,U){function A(O,X){if(S=O.exports,S.memory){O=S.memory,X=t.buffer,O.byteLength<X.byteLength&&t.printErr("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here"),X=new Int8Array(X);var Gt=new Int8Array(O);nt||X.set(Gt.subarray(t.STATIC_BASE,t.STATIC_BASE+t.STATIC_BUMP),t.STATIC_BASE),Gt.set(X),t.buffer=F=O,_()}t.asm=S,t.usingWasm=!0,z("wasm-instantiate")}function tt(O){A(O.instance,O.module)}function At(O){r().then(function(X){return WebAssembly.instantiate(X,s)}).then(O).catch(function(X){t.printErr("failed to asynchronously prepare wasm: "+X),it(X)})}if(typeof WebAssembly!="object")return t.printErr("no native wasm support detected"),!1;if(!(t.wasmMemory instanceof WebAssembly.Memory))return t.printErr("no native wasm Memory in use"),!1;if(h.memory=t.wasmMemory,s.global={NaN:NaN,Infinity:1/0},s["global.Math"]=m.Math,s.env=h,v("wasm-instantiate"),t.instantiateWasm)try{return t.instantiateWasm(s,A)}catch(O){return t.printErr("Module.instantiateWasm callback failed with error: "+O),!1}return t.wasmBinary||typeof WebAssembly.instantiateStreaming!="function"||o.indexOf("data:")===0||typeof fetch!="function"?At(tt):WebAssembly.instantiateStreaming(fetch(o,{credentials:"same-origin"}),s).then(tt).catch(function(O){t.printErr("wasm streaming compile failed: "+O),t.printErr("falling back to ArrayBuffer instantiation"),At(tt)}),{}}var o="draco_decoder.wasm",c="draco_decoder.temp.asm.js";typeof t.locateFile=="function"&&(t.locateFile("draco_decoder.wast"),o=t.locateFile(o),c=t.locateFile(c));var s={global:null,env:null,asm2wasm:{"f64-rem":function(m,h){return m%h},debugger:function(){debugger}},parent:t},S=null;t.asmPreload=t.asm;var Z=t.reallocBuffer;t.reallocBuffer=function(m){if(st==="asmjs")var h=Z(m);else t:{m=gt(m,t.usingWasm?jt:Qt);var U=t.buffer.byteLength;if(t.usingWasm)try{h=t.wasmMemory.grow((m-U)/65536)!==-1?t.buffer=t.wasmMemory.buffer:null;break t}catch{h=null;break t}h=void 0}return h};var st="";t.asm=function(m,h,U){if(!h.table){var A=t.wasmTableSize;A===void 0&&(A=1024);var tt=t.wasmMaxTableSize;h.table=typeof WebAssembly=="object"&&typeof WebAssembly.Table=="function"?tt!==void 0?new WebAssembly.Table({initial:A,maximum:tt,element:"anyfunc"}):new WebAssembly.Table({initial:A,element:"anyfunc"}):Array(A),t.wasmTable=h.table}return h.memoryBase||(h.memoryBase=t.STATIC_BASE),h.tableBase||(h.tableBase=0),(m=n(m,h,U))||it("no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods"),m}})(),Ut=y.GLOBAL_BASE,pt=Ut+19104,Zt.push(),nt=null,t.STATIC_BASE=Ut,t.STATIC_BUMP=19104;var se=pt;pt+=16;var P={last:0,caught:[],infos:{},deAdjust:function(e){if(!e||P.infos[e])return e;for(var r in P.infos)if(P.infos[r].adjusted===e)return r;return e},addRef:function(e){e&&P.infos[e].refcount++},decRef:function(e){if(e){var r=P.infos[e];i(0<r.refcount),r.refcount--,r.refcount!==0||r.rethrown||(r.destructor&&t.dynCall_vi(r.destructor,e),delete P.infos[e],___cxa_free_exception(e))}},clearRef:function(e){e&&(P.infos[e].refcount=0)}},D={varargs:0,get:function(e){return D.varargs+=4,M[D.varargs-4>>2]},getStr:function(){return f(D.get())},get64:function(){var e=D.get(),r=D.get();return 0<=e?i(r===0):i(r===-1),e},getZero:function(){i(D.get()===0)}},Mt={},kt=1;$t.push(function(){var e=t._fflush;if(e&&e(0),e=j.printChar){var r=j.buffers;r[1].length&&e(1,10),r[2].length&&e(2,10)}}),mt=y.staticAlloc(4),Nt=rt=y.alignMemory(pt),Rt=Nt+zt,Ft=y.alignMemory(Rt),M[mt>>2]=Ft,t.wasmTableSize=492,t.wasmMaxTableSize=492,t.asmGlobalArg={Math,Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Float32Array,Float64Array,NaN:NaN,Infinity:1/0,byteLength:Bt},t.asmLibraryArg={abort:it,assert:i,enlargeMemory:p,getTotalMemory:function(){return G},abortOnCannotGrowMemory:function(){it("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+G+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")},invoke_ii:function(e,r){try{return t.dynCall_ii(e,r)}catch(n){if(typeof n!="number"&&n!=="longjmp")throw n;t.setThrew(1,0)}},invoke_iii:function(e,r,n){try{return t.dynCall_iii(e,r,n)}catch(o){if(typeof o!="number"&&o!=="longjmp")throw o;t.setThrew(1,0)}},invoke_iiii:function(e,r,n,o){try{return t.dynCall_iiii(e,r,n,o)}catch(c){if(typeof c!="number"&&c!=="longjmp")throw c;t.setThrew(1,0)}},invoke_iiiiiii:function(e,r,n,o,c,s,S){try{return t.dynCall_iiiiiii(e,r,n,o,c,s,S)}catch(Z){if(typeof Z!="number"&&Z!=="longjmp")throw Z;t.setThrew(1,0)}},invoke_v:function(e){try{t.dynCall_v(e)}catch(r){if(typeof r!="number"&&r!=="longjmp")throw r;t.setThrew(1,0)}},invoke_vi:function(e,r){try{t.dynCall_vi(e,r)}catch(n){if(typeof n!="number"&&n!=="longjmp")throw n;t.setThrew(1,0)}},invoke_vii:function(e,r,n){try{t.dynCall_vii(e,r,n)}catch(o){if(typeof o!="number"&&o!=="longjmp")throw o;t.setThrew(1,0)}},invoke_viii:function(e,r,n,o){try{t.dynCall_viii(e,r,n,o)}catch(c){if(typeof c!="number"&&c!=="longjmp")throw c;t.setThrew(1,0)}},invoke_viiii:function(e,r,n,o,c){try{t.dynCall_viiii(e,r,n,o,c)}catch(s){if(typeof s!="number"&&s!=="longjmp")throw s;t.setThrew(1,0)}},invoke_viiiii:function(e,r,n,o,c,s){try{t.dynCall_viiiii(e,r,n,o,c,s)}catch(S){if(typeof S!="number"&&S!=="longjmp")throw S;t.setThrew(1,0)}},invoke_viiiiii:function(e,r,n,o,c,s,S){try{t.dynCall_viiiiii(e,r,n,o,c,s,S)}catch(Z){if(typeof Z!="number"&&Z!=="longjmp")throw Z;t.setThrew(1,0)}},__ZSt18uncaught_exceptionv:ot,___cxa_allocate_exception:function(e){return ne(e)},___cxa_begin_catch:function(e){var r=P.infos[e];return r&&!r.caught&&(r.caught=!0,ot.uncaught_exception--),r&&(r.rethrown=!1),P.caught.push(e),P.addRef(P.deAdjust(e)),e},___cxa_find_matching_catch:N,___cxa_pure_virtual:function(){throw Et=!0,"Pure virtual function called!"},___cxa_throw:function(e,r,n){throw P.infos[e]={ptr:e,adjusted:e,type:r,destructor:n,refcount:0,caught:!1,rethrown:!1},P.last=e,"uncaught_exception"in ot?ot.uncaught_exception++:ot.uncaught_exception=1,e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."},___gxx_personality_v0:function(){},___resumeException:function(e){throw P.last||(P.last=e),e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."},___setErrNo:function(e){return t.___errno_location&&(M[t.___errno_location()>>2]=e),e},___syscall140:function(e,r){D.varargs=r;try{var n=D.getStreamFromFD();D.get();var o=D.get(),c=D.get(),s=D.get();return FS.llseek(n,o,s),M[c>>2]=n.position,n.getdents&&o===0&&s===0&&(n.getdents=null),0}catch(S){return typeof FS<"u"&&S instanceof FS.ErrnoError||it(S),-S.errno}},___syscall146:j,___syscall54:function(e,r){return D.varargs=r,0},___syscall6:function(e,r){D.varargs=r;try{var n=D.getStreamFromFD();return FS.close(n),0}catch(o){return typeof FS<"u"&&o instanceof FS.ErrnoError||it(o),-o.errno}},_abort:function(){t.abort()},_emscripten_memcpy_big:function(e,r,n){return et.set(et.subarray(r,r+n),e),e},_pthread_getspecific:function(e){return Mt[e]||0},_pthread_key_create:function(e,r){return e==0?22:(M[e>>2]=kt,Mt[kt]=0,kt++,0)},_pthread_once:ct,_pthread_setspecific:function(e,r){return e in Mt?(Mt[e]=r,0):22},DYNAMICTOP_PTR:mt,tempDoublePtr:se,ABORT:Et,STACKTOP:rt,STACK_MAX:Rt};var re=t.asm(t.asmGlobalArg,t.asmLibraryArg,F);t.asm=re,t.___cxa_can_catch=function(){return t.asm.___cxa_can_catch.apply(null,arguments)},t.___cxa_is_pointer_type=function(){return t.asm.___cxa_is_pointer_type.apply(null,arguments)};var ce=t._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return t.asm._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0.apply(null,arguments)},le=t._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return t.asm._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1.apply(null,arguments)},ye=t._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return t.asm._emscripten_bind_AttributeOctahedronTransform___destroy___0.apply(null,arguments)},me=t._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return t.asm._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0.apply(null,arguments)},fe=t._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return t.asm._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0.apply(null,arguments)},be=t._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return t.asm._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1.apply(null,arguments)},de=t._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return t.asm._emscripten_bind_AttributeQuantizationTransform___destroy___0.apply(null,arguments)},he=t._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return t.asm._emscripten_bind_AttributeQuantizationTransform_min_value_1.apply(null,arguments)},Ae=t._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return t.asm._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0.apply(null,arguments)},ge=t._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return t.asm._emscripten_bind_AttributeQuantizationTransform_range_0.apply(null,arguments)},Te=t._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return t.asm._emscripten_bind_AttributeTransformData_AttributeTransformData_0.apply(null,arguments)},Ie=t._emscripten_bind_AttributeTransformData___destroy___0=function(){return t.asm._emscripten_bind_AttributeTransformData___destroy___0.apply(null,arguments)},ve=t._emscripten_bind_AttributeTransformData_transform_type_0=function(){return t.asm._emscripten_bind_AttributeTransformData_transform_type_0.apply(null,arguments)},Ee=t._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return t.asm._emscripten_bind_DecoderBuffer_DecoderBuffer_0.apply(null,arguments)},De=t._emscripten_bind_DecoderBuffer_Init_2=function(){return t.asm._emscripten_bind_DecoderBuffer_Init_2.apply(null,arguments)},Se=t._emscripten_bind_DecoderBuffer___destroy___0=function(){return t.asm._emscripten_bind_DecoderBuffer___destroy___0.apply(null,arguments)},Re=t._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return t.asm._emscripten_bind_Decoder_DecodeBufferToMesh_2.apply(null,arguments)},Me=t._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return t.asm._emscripten_bind_Decoder_DecodeBufferToPointCloud_2.apply(null,arguments)},Ge=t._emscripten_bind_Decoder_Decoder_0=function(){return t.asm._emscripten_bind_Decoder_Decoder_0.apply(null,arguments)},Oe=t._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return t.asm._emscripten_bind_Decoder_GetAttributeByUniqueId_2.apply(null,arguments)},we=t._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3.apply(null,arguments)},Pe=t._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeFloat_3.apply(null,arguments)},je=t._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3.apply(null,arguments)},Ce=t._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return t.asm._emscripten_bind_Decoder_GetAttributeIdByName_2.apply(null,arguments)},Ne=t._emscripten_bind_Decoder_GetAttributeId_2=function(){return t.asm._emscripten_bind_Decoder_GetAttributeId_2.apply(null,arguments)},Fe=t._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3.apply(null,arguments)},Ue=t._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3.apply(null,arguments)},Be=t._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3.apply(null,arguments)},ze=t._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3.apply(null,arguments)},Le=t._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return t.asm._emscripten_bind_Decoder_GetAttributeMetadata_2.apply(null,arguments)},ke=t._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3.apply(null,arguments)},xe=t._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3.apply(null,arguments)},Ve=t._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return t.asm._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3.apply(null,arguments)},He=t._emscripten_bind_Decoder_GetAttribute_2=function(){return t.asm._emscripten_bind_Decoder_GetAttribute_2.apply(null,arguments)},Qe=t._emscripten_bind_Decoder_GetEncodedGeometryType_1=function(){return t.asm._emscripten_bind_Decoder_GetEncodedGeometryType_1.apply(null,arguments)},We=t._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return t.asm._emscripten_bind_Decoder_GetFaceFromMesh_3.apply(null,arguments)},qe=t._emscripten_bind_Decoder_GetMetadata_1=function(){return t.asm._emscripten_bind_Decoder_GetMetadata_1.apply(null,arguments)},Ye=t._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return t.asm._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2.apply(null,arguments)},Xe=t._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return t.asm._emscripten_bind_Decoder_SkipAttributeTransform_1.apply(null,arguments)},Ke=t._emscripten_bind_Decoder___destroy___0=function(){return t.asm._emscripten_bind_Decoder___destroy___0.apply(null,arguments)},Ze=t._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return t.asm._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0.apply(null,arguments)},Je=t._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoFloat32Array_GetValue_1.apply(null,arguments)},$e=t._emscripten_bind_DracoFloat32Array___destroy___0=function(){return t.asm._emscripten_bind_DracoFloat32Array___destroy___0.apply(null,arguments)},tr=t._emscripten_bind_DracoFloat32Array_size_0=function(){return t.asm._emscripten_bind_DracoFloat32Array_size_0.apply(null,arguments)},er=t._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return t.asm._emscripten_bind_DracoInt16Array_DracoInt16Array_0.apply(null,arguments)},rr=t._emscripten_bind_DracoInt16Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoInt16Array_GetValue_1.apply(null,arguments)},nr=t._emscripten_bind_DracoInt16Array___destroy___0=function(){return t.asm._emscripten_bind_DracoInt16Array___destroy___0.apply(null,arguments)},or=t._emscripten_bind_DracoInt16Array_size_0=function(){return t.asm._emscripten_bind_DracoInt16Array_size_0.apply(null,arguments)},ir=t._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return t.asm._emscripten_bind_DracoInt32Array_DracoInt32Array_0.apply(null,arguments)},_r=t._emscripten_bind_DracoInt32Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoInt32Array_GetValue_1.apply(null,arguments)},ur=t._emscripten_bind_DracoInt32Array___destroy___0=function(){return t.asm._emscripten_bind_DracoInt32Array___destroy___0.apply(null,arguments)},ar=t._emscripten_bind_DracoInt32Array_size_0=function(){return t.asm._emscripten_bind_DracoInt32Array_size_0.apply(null,arguments)},pr=t._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return t.asm._emscripten_bind_DracoInt8Array_DracoInt8Array_0.apply(null,arguments)},sr=t._emscripten_bind_DracoInt8Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoInt8Array_GetValue_1.apply(null,arguments)},cr=t._emscripten_bind_DracoInt8Array___destroy___0=function(){return t.asm._emscripten_bind_DracoInt8Array___destroy___0.apply(null,arguments)},lr=t._emscripten_bind_DracoInt8Array_size_0=function(){return t.asm._emscripten_bind_DracoInt8Array_size_0.apply(null,arguments)},yr=t._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return t.asm._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0.apply(null,arguments)},mr=t._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoUInt16Array_GetValue_1.apply(null,arguments)},fr=t._emscripten_bind_DracoUInt16Array___destroy___0=function(){return t.asm._emscripten_bind_DracoUInt16Array___destroy___0.apply(null,arguments)},br=t._emscripten_bind_DracoUInt16Array_size_0=function(){return t.asm._emscripten_bind_DracoUInt16Array_size_0.apply(null,arguments)},dr=t._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return t.asm._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0.apply(null,arguments)},hr=t._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoUInt32Array_GetValue_1.apply(null,arguments)},Ar=t._emscripten_bind_DracoUInt32Array___destroy___0=function(){return t.asm._emscripten_bind_DracoUInt32Array___destroy___0.apply(null,arguments)},gr=t._emscripten_bind_DracoUInt32Array_size_0=function(){return t.asm._emscripten_bind_DracoUInt32Array_size_0.apply(null,arguments)},Tr=t._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return t.asm._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0.apply(null,arguments)},Ir=t._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return t.asm._emscripten_bind_DracoUInt8Array_GetValue_1.apply(null,arguments)},vr=t._emscripten_bind_DracoUInt8Array___destroy___0=function(){return t.asm._emscripten_bind_DracoUInt8Array___destroy___0.apply(null,arguments)},Er=t._emscripten_bind_DracoUInt8Array_size_0=function(){return t.asm._emscripten_bind_DracoUInt8Array_size_0.apply(null,arguments)},Dr=t._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return t.asm._emscripten_bind_GeometryAttribute_GeometryAttribute_0.apply(null,arguments)},Sr=t._emscripten_bind_GeometryAttribute___destroy___0=function(){return t.asm._emscripten_bind_GeometryAttribute___destroy___0.apply(null,arguments)},Rr=t._emscripten_bind_Mesh_Mesh_0=function(){return t.asm._emscripten_bind_Mesh_Mesh_0.apply(null,arguments)},Mr=t._emscripten_bind_Mesh___destroy___0=function(){return t.asm._emscripten_bind_Mesh___destroy___0.apply(null,arguments)},Gr=t._emscripten_bind_Mesh_num_attributes_0=function(){return t.asm._emscripten_bind_Mesh_num_attributes_0.apply(null,arguments)},Or=t._emscripten_bind_Mesh_num_faces_0=function(){return t.asm._emscripten_bind_Mesh_num_faces_0.apply(null,arguments)},wr=t._emscripten_bind_Mesh_num_points_0=function(){return t.asm._emscripten_bind_Mesh_num_points_0.apply(null,arguments)},Pr=t._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_GetDoubleEntry_2.apply(null,arguments)},jr=t._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return t.asm._emscripten_bind_MetadataQuerier_GetEntryName_2.apply(null,arguments)},Cr=t._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_GetIntEntry_2.apply(null,arguments)},Nr=t._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_GetStringEntry_2.apply(null,arguments)},Fr=t._emscripten_bind_MetadataQuerier_HasDoubleEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_HasDoubleEntry_2.apply(null,arguments)},Ur=t._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_HasEntry_2.apply(null,arguments)},Br=t._emscripten_bind_MetadataQuerier_HasIntEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_HasIntEntry_2.apply(null,arguments)},zr=t._emscripten_bind_MetadataQuerier_HasStringEntry_2=function(){return t.asm._emscripten_bind_MetadataQuerier_HasStringEntry_2.apply(null,arguments)},Lr=t._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return t.asm._emscripten_bind_MetadataQuerier_MetadataQuerier_0.apply(null,arguments)},kr=t._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return t.asm._emscripten_bind_MetadataQuerier_NumEntries_1.apply(null,arguments)},xr=t._emscripten_bind_MetadataQuerier___destroy___0=function(){return t.asm._emscripten_bind_MetadataQuerier___destroy___0.apply(null,arguments)},Vr=t._emscripten_bind_Metadata_Metadata_0=function(){return t.asm._emscripten_bind_Metadata_Metadata_0.apply(null,arguments)},Hr=t._emscripten_bind_Metadata___destroy___0=function(){return t.asm._emscripten_bind_Metadata___destroy___0.apply(null,arguments)},Qr=t._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return t.asm._emscripten_bind_PointAttribute_GetAttributeTransformData_0.apply(null,arguments)},Wr=t._emscripten_bind_PointAttribute_PointAttribute_0=function(){return t.asm._emscripten_bind_PointAttribute_PointAttribute_0.apply(null,arguments)},qr=t._emscripten_bind_PointAttribute___destroy___0=function(){return t.asm._emscripten_bind_PointAttribute___destroy___0.apply(null,arguments)},Yr=t._emscripten_bind_PointAttribute_attribute_type_0=function(){return t.asm._emscripten_bind_PointAttribute_attribute_type_0.apply(null,arguments)},Xr=t._emscripten_bind_PointAttribute_byte_offset_0=function(){return t.asm._emscripten_bind_PointAttribute_byte_offset_0.apply(null,arguments)},Kr=t._emscripten_bind_PointAttribute_byte_stride_0=function(){return t.asm._emscripten_bind_PointAttribute_byte_stride_0.apply(null,arguments)},Zr=t._emscripten_bind_PointAttribute_data_type_0=function(){return t.asm._emscripten_bind_PointAttribute_data_type_0.apply(null,arguments)},Jr=t._emscripten_bind_PointAttribute_normalized_0=function(){return t.asm._emscripten_bind_PointAttribute_normalized_0.apply(null,arguments)},$r=t._emscripten_bind_PointAttribute_num_components_0=function(){return t.asm._emscripten_bind_PointAttribute_num_components_0.apply(null,arguments)},tn=t._emscripten_bind_PointAttribute_size_0=function(){return t.asm._emscripten_bind_PointAttribute_size_0.apply(null,arguments)},en=t._emscripten_bind_PointAttribute_unique_id_0=function(){return t.asm._emscripten_bind_PointAttribute_unique_id_0.apply(null,arguments)},rn=t._emscripten_bind_PointCloud_PointCloud_0=function(){return t.asm._emscripten_bind_PointCloud_PointCloud_0.apply(null,arguments)},nn=t._emscripten_bind_PointCloud___destroy___0=function(){return t.asm._emscripten_bind_PointCloud___destroy___0.apply(null,arguments)},on=t._emscripten_bind_PointCloud_num_attributes_0=function(){return t.asm._emscripten_bind_PointCloud_num_attributes_0.apply(null,arguments)},_n=t._emscripten_bind_PointCloud_num_points_0=function(){return t.asm._emscripten_bind_PointCloud_num_points_0.apply(null,arguments)},un=t._emscripten_bind_Status___destroy___0=function(){return t.asm._emscripten_bind_Status___destroy___0.apply(null,arguments)},an=t._emscripten_bind_Status_code_0=function(){return t.asm._emscripten_bind_Status_code_0.apply(null,arguments)},pn=t._emscripten_bind_Status_error_msg_0=function(){return t.asm._emscripten_bind_Status_error_msg_0.apply(null,arguments)},sn=t._emscripten_bind_Status_ok_0=function(){return t.asm._emscripten_bind_Status_ok_0.apply(null,arguments)},cn=t._emscripten_bind_VoidPtr___destroy___0=function(){return t.asm._emscripten_bind_VoidPtr___destroy___0.apply(null,arguments)},ln=t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM.apply(null,arguments)},yn=t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM.apply(null,arguments)},mn=t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM.apply(null,arguments)},fn=t._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return t.asm._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM.apply(null,arguments)},bn=t._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return t.asm._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE.apply(null,arguments)},dn=t._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return t.asm._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD.apply(null,arguments)},hn=t._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return t.asm._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH.apply(null,arguments)},An=t._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return t.asm._emscripten_enum_draco_GeometryAttribute_Type_COLOR.apply(null,arguments)},gn=t._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return t.asm._emscripten_enum_draco_GeometryAttribute_Type_GENERIC.apply(null,arguments)},Tn=t._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return t.asm._emscripten_enum_draco_GeometryAttribute_Type_INVALID.apply(null,arguments)},In=t._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return t.asm._emscripten_enum_draco_GeometryAttribute_Type_NORMAL.apply(null,arguments)},vn=t._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return t.asm._emscripten_enum_draco_GeometryAttribute_Type_POSITION.apply(null,arguments)},En=t._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return t.asm._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD.apply(null,arguments)},Dn=t._emscripten_enum_draco_StatusCode_ERROR=function(){return t.asm._emscripten_enum_draco_StatusCode_ERROR.apply(null,arguments)},Sn=t._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return t.asm._emscripten_enum_draco_StatusCode_INVALID_PARAMETER.apply(null,arguments)},Rn=t._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return t.asm._emscripten_enum_draco_StatusCode_IO_ERROR.apply(null,arguments)},Mn=t._emscripten_enum_draco_StatusCode_OK=function(){return t.asm._emscripten_enum_draco_StatusCode_OK.apply(null,arguments)},Gn=t._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return t.asm._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION.apply(null,arguments)},On=t._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return t.asm._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION.apply(null,arguments)};t._emscripten_get_global_libc=function(){return t.asm._emscripten_get_global_libc.apply(null,arguments)};var wn=t._emscripten_replace_memory=function(){return t.asm._emscripten_replace_memory.apply(null,arguments)};t._free=function(){return t.asm._free.apply(null,arguments)},t._llvm_bswap_i32=function(){return t.asm._llvm_bswap_i32.apply(null,arguments)};var ne=t._malloc=function(){return t.asm._malloc.apply(null,arguments)};if(t._memcpy=function(){return t.asm._memcpy.apply(null,arguments)},t._memmove=function(){return t.asm._memmove.apply(null,arguments)},t._memset=function(){return t.asm._memset.apply(null,arguments)},t._sbrk=function(){return t.asm._sbrk.apply(null,arguments)},t.establishStackSpace=function(){return t.asm.establishStackSpace.apply(null,arguments)},t.getTempRet0=function(){return t.asm.getTempRet0.apply(null,arguments)},t.runPostSets=function(){return t.asm.runPostSets.apply(null,arguments)},t.setTempRet0=function(){return t.asm.setTempRet0.apply(null,arguments)},t.setThrew=function(){return t.asm.setThrew.apply(null,arguments)},t.stackAlloc=function(){return t.asm.stackAlloc.apply(null,arguments)},t.stackRestore=function(){return t.asm.stackRestore.apply(null,arguments)},t.stackSave=function(){return t.asm.stackSave.apply(null,arguments)},t.dynCall_ii=function(){return t.asm.dynCall_ii.apply(null,arguments)},t.dynCall_iii=function(){return t.asm.dynCall_iii.apply(null,arguments)},t.dynCall_iiii=function(){return t.asm.dynCall_iiii.apply(null,arguments)},t.dynCall_iiiiiii=function(){return t.asm.dynCall_iiiiiii.apply(null,arguments)},t.dynCall_v=function(){return t.asm.dynCall_v.apply(null,arguments)},t.dynCall_vi=function(){return t.asm.dynCall_vi.apply(null,arguments)},t.dynCall_vii=function(){return t.asm.dynCall_vii.apply(null,arguments)},t.dynCall_viii=function(){return t.asm.dynCall_viii.apply(null,arguments)},t.dynCall_viiii=function(){return t.asm.dynCall_viiii.apply(null,arguments)},t.dynCall_viiiii=function(){return t.asm.dynCall_viiiii.apply(null,arguments)},t.dynCall_viiiiii=function(){return t.asm.dynCall_viiiiii.apply(null,arguments)},y.stackAlloc=t.stackAlloc,y.stackSave=t.stackSave,y.stackRestore=t.stackRestore,y.establishStackSpace=t.establishStackSpace,y.setTempRet0=t.setTempRet0,y.getTempRet0=t.getTempRet0,t.asm=re,nt)if(typeof t.locateFile=="function"?nt=t.locateFile(nt):t.memoryInitializerPrefixURL&&(nt=t.memoryInitializerPrefixURL+nt),It||St){var Pn=t.readBinary(nt);et.set(Pn,y.GLOBAL_BASE)}else{var oe=function(){t.readAsync(nt,ie,function(){throw"could not load memory initializer "+nt})};v("memory initializer");var ie=function(e){e.byteLength&&(e=new Uint8Array(e)),et.set(e,y.GLOBAL_BASE),t.memoryInitializerRequest&&delete t.memoryInitializerRequest.response,z("memory initializer")};if(t.memoryInitializerRequest){var _e=function(){var e=t.memoryInitializerRequest,r=e.response;e.status!==200&&e.status!==0?(console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+e.status+", retrying "+nt),oe()):ie(r)};t.memoryInitializerRequest.response?setTimeout(_e,0):t.memoryInitializerRequest.addEventListener("load",_e)}else oe()}t.then=function(e){if(t.calledRun)e(t);else{var r=t.onRuntimeInitialized;t.onRuntimeInitialized=function(){r&&r(),e(t)}}return t},lt.prototype=Error(),lt.prototype.constructor=lt;var ue=null;Dt=function e(){t.calledRun||Ot(),t.calledRun||(Dt=e)},t.run=Ot,t.exit=function(e,r){(!r||!t.noExitRuntime)&&(!t.noExitRuntime&&(Et=!0,rt=void 0,b($t),t.onExit)&&t.onExit(e),It&&process.exit(e),t.quit(e,new lt(e)))};var ae=[];if(t.abort=it,t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();Ot(),g.prototype=Object.create(g.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},t.WrapperObject=g,t.getCache=E,t.wrapPointer=_t,t.castObject=function(e,r){return _t(e.ptr,r)},t.NULL=_t(0),t.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete E(e.__class__)[e.ptr]},t.compare=function(e,r){return e.ptr===r.ptr},t.getPointer=function(e){return e.ptr},t.getClass=function(e){return e.__class__};var l={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(l.needed){for(var e=0;e<l.temps.length;e++)t._free(l.temps[e]);l.temps.length=0,t._free(l.buffer),l.buffer=0,l.size+=l.needed,l.needed=0}l.buffer||(l.size+=128,l.buffer=t._malloc(l.size),i(l.buffer)),l.pos=0},alloc:function(e,r){return i(l.buffer),e=e.length*r.BYTES_PER_ELEMENT,e=e+7&-8,l.pos+e>=l.size?(i(0<e),l.needed+=e,r=t._malloc(e),l.temps.push(r)):(r=l.buffer+l.pos,l.pos+=e),r},copy:function(e,r,n){switch(r.BYTES_PER_ELEMENT){case 2:n>>=1;break;case 4:n>>=2;break;case 8:n>>=3}for(var o=0;o<e.length;o++)r[n+o]=e[o]}};return w.prototype=Object.create(g.prototype),w.prototype.constructor=w,w.prototype.__class__=w,w.__cache__={},t.Status=w,w.prototype.code=w.prototype.code=function(){return an(this.ptr)},w.prototype.ok=w.prototype.ok=function(){return!!sn(this.ptr)},w.prototype.error_msg=w.prototype.error_msg=function(){return f(pn(this.ptr))},w.prototype.__destroy__=w.prototype.__destroy__=function(){un(this.ptr)},L.prototype=Object.create(g.prototype),L.prototype.constructor=L,L.prototype.__class__=L,L.__cache__={},t.DracoUInt16Array=L,L.prototype.GetValue=L.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),mr(r,e)},L.prototype.size=L.prototype.size=function(){return br(this.ptr)},L.prototype.__destroy__=L.prototype.__destroy__=function(){fr(this.ptr)},k.prototype=Object.create(g.prototype),k.prototype.constructor=k,k.prototype.__class__=k,k.__cache__={},t.PointCloud=k,k.prototype.num_attributes=k.prototype.num_attributes=function(){return on(this.ptr)},k.prototype.num_points=k.prototype.num_points=function(){return _n(this.ptr)},k.prototype.__destroy__=k.prototype.__destroy__=function(){nn(this.ptr)},x.prototype=Object.create(g.prototype),x.prototype.constructor=x,x.prototype.__class__=x,x.__cache__={},t.DracoUInt8Array=x,x.prototype.GetValue=x.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),Ir(r,e)},x.prototype.size=x.prototype.size=function(){return Er(this.ptr)},x.prototype.__destroy__=x.prototype.__destroy__=function(){vr(this.ptr)},V.prototype=Object.create(g.prototype),V.prototype.constructor=V,V.prototype.__class__=V,V.__cache__={},t.DracoUInt32Array=V,V.prototype.GetValue=V.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),hr(r,e)},V.prototype.size=V.prototype.size=function(){return gr(this.ptr)},V.prototype.__destroy__=V.prototype.__destroy__=function(){Ar(this.ptr)},H.prototype=Object.create(g.prototype),H.prototype.constructor=H,H.prototype.__class__=H,H.__cache__={},t.AttributeOctahedronTransform=H,H.prototype.InitFromAttribute=H.prototype.InitFromAttribute=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),!!le(r,e)},H.prototype.quantization_bits=H.prototype.quantization_bits=function(){return me(this.ptr)},H.prototype.__destroy__=H.prototype.__destroy__=function(){ye(this.ptr)},T.prototype=Object.create(g.prototype),T.prototype.constructor=T,T.prototype.__class__=T,T.__cache__={},t.PointAttribute=T,T.prototype.size=T.prototype.size=function(){return tn(this.ptr)},T.prototype.GetAttributeTransformData=T.prototype.GetAttributeTransformData=function(){return _t(Qr(this.ptr),K)},T.prototype.attribute_type=T.prototype.attribute_type=function(){return Yr(this.ptr)},T.prototype.data_type=T.prototype.data_type=function(){return Zr(this.ptr)},T.prototype.num_components=T.prototype.num_components=function(){return $r(this.ptr)},T.prototype.normalized=T.prototype.normalized=function(){return!!Jr(this.ptr)},T.prototype.byte_stride=T.prototype.byte_stride=function(){return Kr(this.ptr)},T.prototype.byte_offset=T.prototype.byte_offset=function(){return Xr(this.ptr)},T.prototype.unique_id=T.prototype.unique_id=function(){return en(this.ptr)},T.prototype.__destroy__=T.prototype.__destroy__=function(){qr(this.ptr)},K.prototype=Object.create(g.prototype),K.prototype.constructor=K,K.prototype.__class__=K,K.__cache__={},t.AttributeTransformData=K,K.prototype.transform_type=K.prototype.transform_type=function(){return ve(this.ptr)},K.prototype.__destroy__=K.prototype.__destroy__=function(){Ie(this.ptr)},R.prototype=Object.create(g.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},t.AttributeQuantizationTransform=R,R.prototype.InitFromAttribute=R.prototype.InitFromAttribute=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),!!be(r,e)},R.prototype.quantization_bits=R.prototype.quantization_bits=function(){return Ae(this.ptr)},R.prototype.min_value=R.prototype.min_value=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),he(r,e)},R.prototype.range=R.prototype.range=function(){return ge(this.ptr)},R.prototype.__destroy__=R.prototype.__destroy__=function(){de(this.ptr)},Q.prototype=Object.create(g.prototype),Q.prototype.constructor=Q,Q.prototype.__class__=Q,Q.__cache__={},t.DracoInt8Array=Q,Q.prototype.GetValue=Q.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),sr(r,e)},Q.prototype.size=Q.prototype.size=function(){return lr(this.ptr)},Q.prototype.__destroy__=Q.prototype.__destroy__=function(){cr(this.ptr)},I.prototype=Object.create(g.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},t.MetadataQuerier=I,I.prototype.HasEntry=I.prototype.HasEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),!!Ur(n,e,r)},I.prototype.HasIntEntry=I.prototype.HasIntEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),!!Br(n,e,r)},I.prototype.GetIntEntry=I.prototype.GetIntEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),Cr(n,e,r)},I.prototype.HasDoubleEntry=I.prototype.HasDoubleEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),!!Fr(n,e,r)},I.prototype.GetDoubleEntry=I.prototype.GetDoubleEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),Pr(n,e,r)},I.prototype.HasStringEntry=I.prototype.HasStringEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),!!zr(n,e,r)},I.prototype.GetStringEntry=I.prototype.GetStringEntry=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),f(Nr(n,e,r))},I.prototype.NumEntries=I.prototype.NumEntries=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),kr(r,e)},I.prototype.GetEntryName=I.prototype.GetEntryName=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),f(jr(n,e,r))},I.prototype.__destroy__=I.prototype.__destroy__=function(){xr(this.ptr)},W.prototype=Object.create(g.prototype),W.prototype.constructor=W,W.prototype.__class__=W,W.__cache__={},t.DracoInt16Array=W,W.prototype.GetValue=W.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),rr(r,e)},W.prototype.size=W.prototype.size=function(){return or(this.ptr)},W.prototype.__destroy__=W.prototype.__destroy__=function(){nr(this.ptr)},q.prototype=Object.create(g.prototype),q.prototype.constructor=q,q.prototype.__class__=q,q.__cache__={},t.DracoFloat32Array=q,q.prototype.GetValue=q.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),Je(r,e)},q.prototype.size=q.prototype.size=function(){return tr(this.ptr)},q.prototype.__destroy__=q.prototype.__destroy__=function(){$e(this.ptr)},at.prototype=Object.create(g.prototype),at.prototype.constructor=at,at.prototype.__class__=at,at.__cache__={},t.GeometryAttribute=at,at.prototype.__destroy__=at.prototype.__destroy__=function(){Sr(this.ptr)},J.prototype=Object.create(g.prototype),J.prototype.constructor=J,J.prototype.__class__=J,J.__cache__={},t.DecoderBuffer=J,J.prototype.Init=J.prototype.Init=function(e,r){var n=this.ptr;if(l.prepare(),typeof e=="object"&&typeof e=="object"){var o=l.alloc(e,dt);l.copy(e,dt,o),e=o}r&&typeof r=="object"&&(r=r.ptr),De(n,e,r)},J.prototype.__destroy__=J.prototype.__destroy__=function(){Se(this.ptr)},a.prototype=Object.create(g.prototype),a.prototype.constructor=a,a.prototype.__class__=a,a.__cache__={},t.Decoder=a,a.prototype.GetEncodedGeometryType=a.prototype.GetEncodedGeometryType=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),Qe(r,e)},a.prototype.DecodeBufferToPointCloud=a.prototype.DecodeBufferToPointCloud=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),_t(Me(n,e,r),w)},a.prototype.DecodeBufferToMesh=a.prototype.DecodeBufferToMesh=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),_t(Re(n,e,r),w)},a.prototype.GetAttributeId=a.prototype.GetAttributeId=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),Ne(n,e,r)},a.prototype.GetAttributeIdByName=a.prototype.GetAttributeIdByName=function(e,r){var n=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),Ce(n,e,r)},a.prototype.GetAttributeIdByMetadataEntry=a.prototype.GetAttributeIdByMetadataEntry=function(e,r,n){var o=this.ptr;return l.prepare(),e&&typeof e=="object"&&(e=e.ptr),r=r&&typeof r=="object"?r.ptr:ut(r),n=n&&typeof n=="object"?n.ptr:ut(n),je(o,e,r,n)},a.prototype.GetAttribute=a.prototype.GetAttribute=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),_t(He(n,e,r),T)},a.prototype.GetAttributeByUniqueId=a.prototype.GetAttributeByUniqueId=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),_t(Oe(n,e,r),T)},a.prototype.GetMetadata=a.prototype.GetMetadata=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),_t(qe(r,e),$)},a.prototype.GetAttributeMetadata=a.prototype.GetAttributeMetadata=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),_t(Le(n,e,r),$)},a.prototype.GetFaceFromMesh=a.prototype.GetFaceFromMesh=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!We(o,e,r,n)},a.prototype.GetTriangleStripsFromMesh=a.prototype.GetTriangleStripsFromMesh=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),Ye(n,e,r)},a.prototype.GetAttributeFloat=a.prototype.GetAttributeFloat=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!Pe(o,e,r,n)},a.prototype.GetAttributeFloatForAllPoints=a.prototype.GetAttributeFloatForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!we(o,e,r,n)},a.prototype.GetAttributeIntForAllPoints=a.prototype.GetAttributeIntForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!ze(o,e,r,n)},a.prototype.GetAttributeInt8ForAllPoints=a.prototype.GetAttributeInt8ForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!Be(o,e,r,n)},a.prototype.GetAttributeUInt8ForAllPoints=a.prototype.GetAttributeUInt8ForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!Ve(o,e,r,n)},a.prototype.GetAttributeInt16ForAllPoints=a.prototype.GetAttributeInt16ForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!Fe(o,e,r,n)},a.prototype.GetAttributeUInt16ForAllPoints=a.prototype.GetAttributeUInt16ForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!ke(o,e,r,n)},a.prototype.GetAttributeInt32ForAllPoints=a.prototype.GetAttributeInt32ForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!Ue(o,e,r,n)},a.prototype.GetAttributeUInt32ForAllPoints=a.prototype.GetAttributeUInt32ForAllPoints=function(e,r,n){var o=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),!!xe(o,e,r,n)},a.prototype.SkipAttributeTransform=a.prototype.SkipAttributeTransform=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Xe(r,e)},a.prototype.__destroy__=a.prototype.__destroy__=function(){Ke(this.ptr)},C.prototype=Object.create(g.prototype),C.prototype.constructor=C,C.prototype.__class__=C,C.__cache__={},t.Mesh=C,C.prototype.num_faces=C.prototype.num_faces=function(){return Or(this.ptr)},C.prototype.num_attributes=C.prototype.num_attributes=function(){return Gr(this.ptr)},C.prototype.num_points=C.prototype.num_points=function(){return wr(this.ptr)},C.prototype.__destroy__=C.prototype.__destroy__=function(){Mr(this.ptr)},yt.prototype=Object.create(g.prototype),yt.prototype.constructor=yt,yt.prototype.__class__=yt,yt.__cache__={},t.VoidPtr=yt,yt.prototype.__destroy__=yt.prototype.__destroy__=function(){cn(this.ptr)},Y.prototype=Object.create(g.prototype),Y.prototype.constructor=Y,Y.prototype.__class__=Y,Y.__cache__={},t.DracoInt32Array=Y,Y.prototype.GetValue=Y.prototype.GetValue=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),_r(r,e)},Y.prototype.size=Y.prototype.size=function(){return ar(this.ptr)},Y.prototype.__destroy__=Y.prototype.__destroy__=function(){ur(this.ptr)},$.prototype=Object.create(g.prototype),$.prototype.constructor=$,$.prototype.__class__=$,$.__cache__={},t.Metadata=$,$.prototype.__destroy__=$.prototype.__destroy__=function(){Hr(this.ptr)},function(){function e(){t.OK=Mn(),t.ERROR=Dn(),t.IO_ERROR=Rn(),t.INVALID_PARAMETER=Sn(),t.UNSUPPORTED_VERSION=On(),t.UNKNOWN_VERSION=Gn(),t.INVALID_GEOMETRY_TYPE=bn(),t.POINT_CLOUD=dn(),t.TRIANGULAR_MESH=hn(),t.ATTRIBUTE_INVALID_TRANSFORM=ln(),t.ATTRIBUTE_NO_TRANSFORM=yn(),t.ATTRIBUTE_QUANTIZATION_TRANSFORM=fn(),t.ATTRIBUTE_OCTAHEDRON_TRANSFORM=mn(),t.INVALID=Tn(),t.POSITION=vn(),t.NORMAL=In(),t.COLOR=An(),t.TEX_COORD=En(),t.GENERIC=gn()}t.calledRun?e():Jt.unshift(e)}(),typeof t.onModuleParsed=="function"&&t.onModuleParsed(),u};typeof module=="object"&&module.exports&&(module.exports=DracoDecoderModule); |
| | |
| | | .cesium-viewer-cesiumInspectorContainer, |
| | | .cesium-viewer-animationContainer, |
| | | .cesium-viewer-timelineContainer { |
| | | display: none |
| | | display: block !important; |
| | | bottom: 1px; |
| | | } |
| | | |
| | | .distance-legend { |
| | |
| | | ), 500) |
| | | } |
| | | ; |
| | | var n = "var PI = Math.PI;\nvar TWO_PI = PI * 2.0;\n" + P("0xb8c") + P("0xb8d") + " var params = e.data;\n" + P("0xb8e") + P("0xb8f") + " postMessage({error:true});\n return;\n" + P("0x614") + P("0xb90") + P("0xb91") + P("0xb92") + P("0x8cd") + P("0x614") + P("0xb93") + P("0xb94") + P("0xb92") + P("0x8cd") + P("0x614") + P("0xb95") + P("0xb96") + P("0xb97") + P("0xb98") + P("0xb99") + P("0xb9a") + " var vFovRad = PI;\n" + P("0xb9b") + P("0xb9c") + " var stepHRad = hFovRad / xCount;\n" + P("0xb9d") + P("0xb9e") + " pointsArray[ptIndex ++] = 0.0;\n" + P("0xb9f") + P("0xba0") + P("0xba1") + P("0xba2") + P("0x614") + P("0xba3") + P("0xba4") + " var tt = 0.0;\n" + P("0xba5") + P("0xba6") + " for (var F = 0; F < xCount + 1; F++) {\n" + P("0xba7") + P("0xba8") + P("0xba9") + P("0xbaa") + P("0xbab") + P("0xbac") + P("0xbad") + P("0x71d") + " }\n" + P("0xb9e") + P("0xb9f") + P("0xb9f") + P("0xbae") + P("0xba1") + P("0xbaf") + P("0x614") + P("0xbb0") + " var faceIndexArray = new Uint16Array(faceIndexCount);\n" + P("0xbb1") + P("0xbb2") + " faceIndexArray[faceIndex ++] = F;\n" + P("0xbb3") + P("0xbb4") + P("0x614") + P("0xbb5") + " for (var F = 0; F < xCount; F ++){\n" + P("0xbb6") + P("0xbb7") + P("0xbb8") + P("0xbb6") + P("0xbb8") + P("0xbb9") + P("0x71d") + P("0x614") + P("0xbb2") + P("0xbba") + " faceIndexArray[faceIndex ++] = F + xCount + 1 + (yCount - 2) * (xCount + 1);\n faceIndexArray[faceIndex ++] = pointsCount - (xCount - F);\n" + P("0x614") + P("0xbbb") + " pointsArray: pointsArray,\n texcoordArray: texcoordArray,\n" + P("0xbbc") + " }, [pointsArray.buffer, texcoordArray.buffer, faceIndexArray.buffer]);\n" + P("0xbbd") + P("0xbbe") + " ;\n}"; |
| | | var n = "var PI = Math.PI;\nvar TWO_PI = PI * 2.0;\n" + P("0xb8c") + P("0xb8d") + " var params = e.data;\n" + P("0xb8e") + P("0xb8f") + " postMessage({error:true});\n return;\n" + P("0x614") + P("0xb90") + P("0xb91") + P("0xb92") + P("0x8cd") + P("0x614") + P("0xb93") + P("0xb94") + P("0xb92") + P("0x8cd") + P("0x614") + P("0xb95") + P("0xb96") + P("0xb97") + P("0xb98") + P("0xb99") + P("0xb9a") + " var vFovRad = PI;\n" + P("0xb9b") + P("0xb9c") + " var stepHRad = hFovRad / xCount;\n" + P("0xb9d") + P("0xb9e") + " pointsArray[ptIndex ++] = 0.0;\n" + P("0xb9f") + P("0xba0") + P("0xba1") + P("0xba2") + P("0x614") + P("0xba3") + P("0xba4") + " var tt = 0.0;\n" + P("0xba5") + P("0xba6") + " for (var F = 0; F < xCount + 1; F++) {\n" + P("0xba7") + P("0xba8") + P("0xba9") + P("0xbaa") + P("0xbab") + P("0xbac") + P("0xbad") + P("0x71d") + " }\n" + P("0xb9e") + P("0xb9f") + P("0xb9f") + P("0xbae") + P("0xba1") + P("0xbaf") + P("0x614") + P("0xbb0") + " var faceIndexArray = new Uint16Array(faceIndexCount);\n" + P("0xbb1") + P("0xbb2") + " faceIndexArray[faceIndex ++] = F;\n" + P("0xbb3") + P("0xbb4") + P("0x614") + P("0xbb5") + " for (var F = 0; F < xCount; F ++){\n" + P("0xbb6") + P("0xbb7") + P("0xbb8") + P("0xbb6") + P("0xbb8") + P("0xbb9") + P("0x71d") + P("0x614") + P("0xbb2") + P("0xbba") + " faceIndexArray[faceIndex ++] = F + xCount + 1 + (yCount - 2) * (xCount + 1);\n faceIndexArray[faceIndex ++] = pointsCount - (xCount - F);\n" + P("0x614") + P("0xbbb") + " pointsArray: pointsArray,\n texcoordArray: texcoordArray,\n" + P("0xbbc") + " }, [pointsArray.buffer, texcoordArray.buffer, faceIndexArray.buffer]);\n" + P("0xbbd") + P("0xbbe") + " debugger;\n}"; |
| | | t.prototype[P("0xb8b")] = function (t) { |
| | | var i = this; |
| | | if (!i[P("0xb80")]) { |
| | |
| | | //页é¢åå§å |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | | StaticFileBaseUrl: config.StaticFileBaseUrl, |
| | | ellipsoidCoordinates: "MOON2000", |
| | | ellipsoidCoordinates: 'MOON2000', |
| | | timeline: true, |
| | | }); |
| | | |
| | | this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true; |
| | | |
| | | this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true |
| | | this.earthCtrl.coreMap.scene.screenSpaceCameraController.enableCollisionDetection = true; |
| | | this.earthCtrl.Viewer.scene.globe.terrainExaggeration = 1.00001 |
| | | |
| | | |
| | | window.earthCtrl = this.earthCtrl; |
| | | |
| | |
| | | |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: false }); |
| | | //======================= |
| | | // window.Viewer.imageryLayers.removeAll(); |
| | | //设置çä½é¢è² |
| | | window.Viewer.scene.globe.baseColor = new Cesium.Color.fromCssColorString('#A9A9A9'); |
| | | //æ¸
餿æé»è®¤å¾å± |
| | | window.Viewer.imageryLayers.removeAll(); |
| | | window.setLayer(); |
| | | |
| | | Viewer.scene.globe.depthTestAgainstTerrain = false; // å¼å¯æ·±åº¦æµè¯ |
| | |
| | | if (Cesium.defined(cartesian)) { |
| | | |
| | | if (cartesian.id.shpType && cartesian.id.shpType == 'temporaryLayer') { |
| | | |
| | | that.setEditTemporaryLayer() |
| | | } |
| | | |
| | |
| | | setEditTemporaryLayer(res) { |
| | | // store.state.editTemporaryId = res; |
| | | // console.log(store.state.editTemporaryId) |
| | | |
| | | if (store.state.editTemporaryId) { |
| | | |
| | | store.state.setEditTemporaryShow = true; |
| | | } |
| | | }, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | getEntityAttribute(type, res) { |
| | | var obj = {} |
| | | store.state.temporaryLayer = null; |
| | | if (type == 'point') { |
| | | var mataColor = res.point.color._value; |
| | | var outlineColor = res.point.outlineColor._value; |
| | | |
| | | obj = { |
| | | id: (new Date()).getTime(), |
| | | cnName: res.name, |
| | | metaAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | metaColor: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | pixelSize: res.point.pixelSize._value, |
| | | outlineWidth: res.point.outlineWidth._value, |
| | | near: res.point._distanceDisplayCondition._value.near, |
| | | far: res.point._distanceDisplayCondition._value.far, |
| | | geometry: this.setCartesianToEightFour(res.position.getValue()), |
| | | type: 'point', |
| | | shpType: 'temporaryLayer', |
| | | layerType: 'åºæ¬ç¹', |
| | | |
| | | } |
| | | |
| | | } else if (type == 'label') { |
| | | var mataColor = res.label.fillColor._value; |
| | | var outlineColor = res.label.outlineColor._value; |
| | | var backColor = res.label.backgroundColor._value; |
| | | obj = { |
| | | id: (new Date()).getTime(), |
| | | cnName: res.name, |
| | | text: res.label.text._value, |
| | | font: res.label.font._value, |
| | | metaAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | backAlpha: backColor.alpha, |
| | | backColor: this.colorRgbToHex('rgb(' + (backColor.red * 255) + ',' + (backColor.green * 255) + ',' + (backColor.blue * 255) + ')'), |
| | | metaColor: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | scale: res.label.scale._value, |
| | | verticalOrigin: Cesium.VerticalOrigin.CENTER,//åç´ä½ç½® |
| | | horizontalOrigin: Cesium.HorizontalOrigin.CENTER,//æ°´å¹³ä½ç½® |
| | | outlineWidth: res.label.outlineWidth._value, |
| | | showBackground: false, |
| | | outline: true, |
| | | near: res.label._distanceDisplayCondition._value.near, |
| | | far: res.label._distanceDisplayCondition._value.far, |
| | | geometry: this.setCartesianToEightFour(res.position.getValue()), |
| | | type: 'label', |
| | | shpType: 'temporaryLayer', |
| | | layerType: 'ææ¬ç¹', |
| | | heightReference: true, |
| | | checked: true |
| | | } |
| | | |
| | | } else if (type == 'polygon') { |
| | | var mataColor = res.polygon.material.color._value; |
| | | var outlineColor = res.polygon.outlineColor._value; |
| | | var val = res.polygon.hierarchy.getValue().positions; |
| | | var geom = []; |
| | | for (var i in val) { |
| | | var coord = this.setCartesianToEightFour(val[i]) |
| | | geom.push(coord.lng, coord.lat) |
| | | } |
| | | obj = { |
| | | id: (new Date()).getTime(), |
| | | cnName: res.name, |
| | | metaAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | metaColor: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | near: res.polygon._distanceDisplayCondition._value.near, |
| | | far: res.polygon._distanceDisplayCondition._value.far, |
| | | geometry: geom, |
| | | type: 'polygon', |
| | | shpType: 'temporaryLayer', |
| | | layerType: 'å¤è¾¹å½¢', |
| | | heightReference: true, |
| | | checked: true |
| | | } |
| | | } else if (type == 'polyline') { |
| | | |
| | | var mataColor = res.polyline.material.color._value; |
| | | var outlineColor = res.polyline.material.outlineColor._value; |
| | | var val = res.polyline.positions.getValue(); |
| | | var geom = []; |
| | | for (var i in val) { |
| | | var coord = this.setCartesianToEightFour(val[i]) |
| | | geom.push([coord.lng, coord.lat]) |
| | | } |
| | | obj = { |
| | | id: (new Date()).getTime(), |
| | | cnName: res.name, |
| | | metaColor: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | near: res.polyline._distanceDisplayCondition._value.near, |
| | | far: res.polyline._distanceDisplayCondition._value.far, |
| | | metaAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | outlineWidth: res.polyline.material.outlineWidth._value, |
| | | width: res.polyline.width, |
| | | geometry: geom, |
| | | type: 'polyline', |
| | | shpType: 'temporaryLayer', |
| | | layerType: '线', |
| | | heightReference: true, |
| | | checked: true |
| | | } |
| | | } else if (type === 'rectangle') { |
| | | |
| | | var mataColor = res.rectangle.material.color._value; |
| | | var outlineColor = res.rectangle.outlineColor._value; |
| | | var west = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().west |
| | | ); // æ ¹æ®å¼§åº¦è·åå°ç»åº¦ |
| | | var east = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().east |
| | | ); // æ ¹æ®å¼§åº¦è·åå°çº¬åº¦ |
| | | var north = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().north |
| | | ); // æ ¹æ®å¼§åº¦è·åå°ç»åº¦ |
| | | var south = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().south |
| | | ); // æ ¹æ®å¼§åº¦è·åå°çº¬åº¦ |
| | | var geom = [west, south, east, north] |
| | | obj = { |
| | | id: (new Date()).getTime(), |
| | | cnName: res.name, |
| | | metaColor: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | near: res.rectangle._distanceDisplayCondition._value.near, |
| | | far: res.rectangle._distanceDisplayCondition._value.far, |
| | | metaAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | outlineWidth: res.rectangle.outlineWidth._value, |
| | | rotation: 0, |
| | | geometry: geom, |
| | | type: 'rectangle', |
| | | shpType: 'temporaryLayer', |
| | | layerType: 'ç©å½¢', |
| | | heightReference: true, |
| | | } |
| | | } |
| | | |
| | | store.state.temporaryLayer = obj; |
| | | |
| | | }, |
| | | |
| | | colorRgbToHex(str) { |
| | | |
| | |
| | | return url; |
| | | }, |
| | | deleteLayer() { |
| | | if (this.Layer) { |
| | | if (this.map && this.Layer) { |
| | | |
| | | this.map.removeLayer(this.Layer); |
| | | this.Layer = null; |
| | | } |
| | |
| | | const server = { |
| | | layerList: [], |
| | | graticules: null, |
| | | alpha: null,//éæåº¦ |
| | | |
| | | addTreeData(treeNode) { |
| | | if (!treeNode.checked) { |
| | | this.delLayer(treeNode.id); |
| | | return; |
| | | } |
| | | |
| | | this.alpha = this.getResLayersAlpha(treeNode); |
| | | //夿æ¯å¦ä¸ºä»£ç |
| | | if (treeNode.proxy) { |
| | | this.addProxyAddress(treeNode); //æä»£ç |
| | |
| | | }, |
| | | //å è½½WMTSæå¡ |
| | | setAddWmtsLayer(res) { |
| | | this.delLayer(res.id); |
| | | var url = this.getLayrUrl(res); |
| | | var urlTemplateImageryProvider = earthCtrl.factory.createImageryLayer({ |
| | | let urlTemplateImageryProvider = new Cesium.WebMapTileServiceImageryProvider({ |
| | | sourceType: "wmts", |
| | | url: url, |
| | | layer: "", |
| | | id: res.id, |
| | | format: "image/png", |
| | | tileMatrixSetID: "GoogleCRS84Quad01", |
| | | tileMatrixLabels: [ |
| | |
| | | tilingScheme: new Cesium.GeographicTilingScheme({ |
| | | ellipsoid: Cesium.Ellipsoid.MOON, |
| | | }), |
| | | }); |
| | | }) |
| | | var imageLayer = window.Viewer.imageryLayers.addImageryProvider(urlTemplateImageryProvider); |
| | | imageLayer.id = res.id |
| | | |
| | | imageLayer.alpha = this.alpha; |
| | | // urlTemplateImageryProvider.id = res.id |
| | | this.layerList.push({ |
| | | id: res.id, |
| | | layerData: urlTemplateImageryProvider._primitive, |
| | | layerData: imageLayer, |
| | | type: "wmts", |
| | | alpha: imageLayer, |
| | | }); |
| | | }, |
| | | //è·åå¾å±ä¹åçéæåº¦ |
| | | getResLayersAlpha(result) { |
| | | var std = this.layerList.filter(res => { |
| | | if (res.id == result.id) { |
| | | return res; |
| | | } |
| | | }); |
| | | |
| | | if (std.length <= 0) { |
| | | return 1; |
| | | } else { |
| | | var id = std[0].id; |
| | | var val= null; |
| | | var layers = window.Viewer.imageryLayers._layers; |
| | | for (var i in layers) { |
| | | if (layers[i].id == id) { |
| | | val = id; |
| | | return layers[i].alpha; |
| | | } |
| | | } |
| | | if(!null){ |
| | | return 1 |
| | | } |
| | | } |
| | | }, |
| | | //å è½½å°å½¢æå¡ |
| | | setAddTearrinLayer(res) { |
| | |
| | | }, |
| | | //å è½½WMSæå¡ |
| | | setAddWmsLayer(res) { |
| | | |
| | | var url = this.getLayrUrl(res); |
| | | var img_layer = sgworld.Creator.createImageryProvider( |
| | | "giserver", |
| | |
| | | |
| | | //æ¸
é¤å¾å± |
| | | delLayer(code) { |
| | | |
| | | this.layerList.forEach((e, i) => { |
| | | if (e.id === code) { |
| | | switch (e.type) { |
| | | case "wmts": |
| | | window.Viewer.imageryLayers.remove(e.layerData); |
| | | break; |
| | | case "wms": |
| | | window.Viewer.imageryLayers.remove(e.layerData); |
| | | break; |
| | | case "tms": |
| | |
| | | |
| | | delLayerAll() { |
| | | this.layerList.forEach((e, i) => { |
| | | this.setRemoveLayer(e); |
| | | this.layerList.splice(i, 1); |
| | | }); |
| | | }, |
| | | setRemoveLayer(e) { |
| | | switch (e.type) { |
| | | case "wmts": |
| | | window.Viewer.imageryLayers.remove(e.layerData); |
| | |
| | | case "tileset": |
| | | window.Viewer.scene.primitives.remove(e.layerData); |
| | | break; |
| | | |
| | | } |
| | | this.layerList.splice(i, 1); |
| | | }); |
| | | }, |
| | | //å è½½GeoServer-WMSæå¡ |
| | | setAddGeoWmsLayer(res) { |
| | | var url = this.getLayrUrl(res); |
| | | this.delLayer(res.id) |
| | | var url = res.url; |
| | | var that = this; |
| | | var getFeatureInfoFormat = new SmartEarth.Cesium.GetFeatureInfoFormat( |
| | | "html", |
| | |
| | | that.getFeatureInfo(html); |
| | | } |
| | | ); |
| | | if (url.indexOf('{token}') > -1) { |
| | | const token = getToken(); |
| | | url = config.proxy + url.replaceAll("{token}", token); |
| | | } else { |
| | | url = url; |
| | | } |
| | | |
| | | let layer = new SmartEarth.Cesium.WebMapServiceImageryProvider({ |
| | | url: url, |
| | | layers: res.tab, |
| | | id:res.id, |
| | | getFeatureInfoParameters: { info_format: "text/html" }, |
| | | enablePickFeatures: true, |
| | | getFeatureInfoFormats: [getFeatureInfoFormat], |
| | |
| | | }); |
| | | layer.name = `Wms_Layer${res.id}`; |
| | | let img_layer = window.Viewer.imageryLayers.addImageryProvider(layer); |
| | | |
| | | img_layer.id = res.id |
| | | img_layer.alpha = this.alpha; |
| | | this.layerList.push({ id: res.id, layerData: img_layer, type: "wmts" }); |
| | | }, |
| | | addGeoServerMmsLayers(layer, url) { |
| | |
| | | }); |
| | | wmslayer.name = `Wms_Layer_geo`; |
| | | let img_layer = window.Viewer.imageryLayers.addImageryProvider(wmslayer); |
| | | this.layerList.push({ id: 1001011, layerData: img_layer, type: "wmts" }); |
| | | this.layerList.push({ id: res.id, layerData: img_layer, type: "wmts" }); |
| | | }, |
| | | |
| | | getFeatureInfo(html) { |
| | |
| | | import store from "@/store"; |
| | | import { none } from "ol/centerconstraint"; |
| | | var temporaryTool = { |
| | | isedit: false, |
| | | removeTemporaryLayer(res) { |
| | |
| | | hierarchy: { |
| | | positions: Cesium.Cartesian3.fromDegreesArray(res.geometry), |
| | | }, |
| | | material: Cesium.Color.fromCssColorString(res.metaColor).withAlpha( |
| | | res.metaAlpha |
| | | material: Cesium.Color.fromCssColorString(res.material).withAlpha( |
| | | res.materialAlpha |
| | | ), |
| | | distanceDisplayCondition: new Cesium.DistanceDisplayCondition( |
| | | res.near, |
| | | res.far |
| | | ), |
| | | outline: true, |
| | | outlineWidth:res.width, |
| | | outlineColor: Cesium.Color.fromCssColorString( |
| | | res.outlineColor |
| | | ).withAlpha(res.outlineAlpha), |
| | |
| | | var outlinewidth = 0 |
| | | if (res.outline) { |
| | | outlinewidth = res.outlineWidth |
| | | |
| | | } |
| | | |
| | | window.Viewer.entities.add({ |
| | | name: res.cnName, |
| | | id: res.id, |
| | |
| | | polyline: { |
| | | positions: Cesium.Cartesian3.fromDegreesArray(res.geometry), |
| | | width: res.width, |
| | | |
| | | distanceDisplayCondition: new Cesium.DistanceDisplayCondition( |
| | | res.near, |
| | | res.far |
| | | ), |
| | | material: new Cesium.PolylineOutlineMaterialProperty({ |
| | | color: Cesium.Color.fromCssColorString(res.material).withAlpha( |
| | | res.materialAlpha |
| | | |
| | | ), |
| | | // 设置ä¸é´é´éçé¢è² |
| | | outlineWidth: outlinewidth, |
| | | outlineColor: Cesium.Color.fromCssColorString(res.outlineColor).withAlpha( |
| | | res.outlineAlpha |
| | |
| | | }); |
| | | }, |
| | | addTemporaryRectangleLayer(res) { |
| | | |
| | | const rectangle = new Cesium.Entity({ |
| | | window.Viewer.entities.add({ |
| | | name: res.cnName, |
| | | id: res.id, |
| | | shpType: res.shpType, |
| | |
| | | res.geometry[1], |
| | | res.geometry[2], |
| | | res.geometry[3]), |
| | | material: Cesium.Color.fromCssColorString(res.metaColor).withAlpha( |
| | | res.metaAlpha |
| | | material: Cesium.Color.fromCssColorString(res.material).withAlpha( |
| | | res.materialAlpha |
| | | ), |
| | | distanceDisplayCondition: new Cesium.DistanceDisplayCondition( |
| | | res.near, |
| | | res.far |
| | | ), |
| | | outlineColor: Cesium.Color.fromCssColorString( |
| | | res.outlineColor |
| | | ).withAlpha(res.outlineAlpha), |
| | | |
| | | outlineWidth: res.width, |
| | | outline: res.outline |
| | | } |
| | | }); |
| | | window.Viewer.entities.add(rectangle) |
| | | }) |
| | | }, |
| | | |
| | | getEntityObj(res) { |
| | |
| | | case 'polyline': |
| | | obj = this.getPolylineEntityObj(entity); |
| | | break; |
| | | case 'rectangle': |
| | | obj = this.getRectangleEntityObj(entity); |
| | | break; |
| | | case 'polygon': |
| | | obj = this.getPolygonEntityObj(entity); |
| | | break; |
| | | } |
| | | } |
| | | return obj; |
| | |
| | | case 'polyline': |
| | | obj = this.getPolylineEntityObj(res); |
| | | break; |
| | | case 'rectangle': |
| | | obj = this.getRectangleEntityObj(res); |
| | | break; |
| | | case 'polygon': |
| | | obj = this.getPolygonEntityObj(res); |
| | | break; |
| | | } |
| | | |
| | | store.state.temporaryLayer = obj; |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | }, |
| | | getPolygonEntityObj(res) { |
| | | var mataColor = res.polygon.material.color._value; |
| | | var outlineColor = res.polygon.outlineColor._value; |
| | | var val = res.polygon.hierarchy.getValue().positions; |
| | | var geom = []; |
| | | for (var i in val) { |
| | | var coord = this.setCartesianToEightFour(val[i]) |
| | | geom.push(coord.lng, coord.lat) |
| | | } |
| | | debugger |
| | | return { |
| | | id: this.isedit ? res.id : (new Date()).getTime(), |
| | | cnName: res.name, |
| | | materialAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | material: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | near: res.polygon._distanceDisplayCondition._value.near, |
| | | far: res.polygon._distanceDisplayCondition._value.far, |
| | | geometry: geom, |
| | | type: 'polygon', |
| | | shpType: 'temporaryLayer', |
| | | layerType: 'å¤è¾¹å½¢', |
| | | outline: res.outline != null ? res.outline : false, |
| | | width: res.polygon.outlineWidth ? res.polygon.outlineWidth._value : 1, |
| | | } |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | getRectangleEntityObj(res) { |
| | | var mataColor = res.rectangle.material.color._value; |
| | | var outlineColor = res.rectangle.outlineColor._value; |
| | | var west = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().west |
| | | ); // æ ¹æ®å¼§åº¦è·åå°ç»åº¦ |
| | | var east = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().east |
| | | ); // æ ¹æ®å¼§åº¦è·åå°çº¬åº¦ |
| | | var north = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().north |
| | | ); // æ ¹æ®å¼§åº¦è·åå°ç»åº¦ |
| | | var south = Cesium.Math.toDegrees( |
| | | res.rectangle._coordinates.getValue().south |
| | | ); // æ ¹æ®å¼§åº¦è·åå°çº¬åº¦ |
| | | var geom = [west, south, east, north]; |
| | | return { |
| | | id: this.isedit ? res.id : (new Date()).getTime(), |
| | | cnName: res.name, |
| | | material: this.colorRgbToHex('rgb(' + (mataColor.red * 255) + ',' + (mataColor.green * 255) + ',' + (mataColor.blue * 255) + ')'), |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | near: res.rectangle._distanceDisplayCondition._value.near, |
| | | far: res.rectangle._distanceDisplayCondition._value.far, |
| | | materialAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | outline: res.outline != null ? res.outline : false, |
| | | width: res.rectangle.outlineWidth._value, |
| | | geometry: geom, |
| | | rotation: res.rectangle.rotation ? res.rectangle.rotation : 0, |
| | | type: 'rectangle', |
| | | shpType: 'temporaryLayer', |
| | | layerType: 'ç©å½¢', |
| | | |
| | | } |
| | | |
| | | }, |
| | | |
| | | |
| | | getPolylineEntityObj(res) { |
| | | var mataColor = res.polyline.material.color._value; |
| | | var outlineColor = res.polyline.material.outlineColor._value; |
| | |
| | | var coord = this.setCartesianToEightFour(val[i]) |
| | | geom.push(coord.lng, coord.lat) |
| | | } |
| | | |
| | | return { |
| | | id: this.isedit ? res.id : (new Date()).getTime(), |
| | | cnName: res.name, |
| | |
| | | outlineColor: this.colorRgbToHex('rgb(' + (outlineColor.red * 255) + ',' + (outlineColor.green * 255) + ',' + (outlineColor.blue * 255) + ')'), |
| | | materialAlpha: mataColor.alpha, |
| | | outlineAlpha: outlineColor.alpha, |
| | | near: res.polyline._distanceDisplayCondition._value.near, |
| | | far: res.polyline._distanceDisplayCondition._value.far, |
| | | } |
| | | }, |
| | | getLabelEntityObj(res) { |
| | |
| | | var geodesic = new SmartEarth.Cesium.EllipsoidGeodesic(); |
| | | |
| | | geodesic.setEndPoints(leftCartographic, rightCartographic, ellipsoid); |
| | | rate.value = geodesic.surfaceDistance.toFixed(2); //å辨ç |
| | | // rate.value = geodesic.surfaceDistance.toFixed(2); //å辨ç |
| | | }); |
| | | |
| | | |
| | | Viewer.scene.postRender.addEventListener(() => { |
| | | // // è·åç»å¸çå¤§å° |
| | | let scene = earthCtrl.Viewer.scene; |
| | | var width = scene.canvas.clientWidth; |
| | | var height = scene.canvas.clientHeight; |
| | | //è·åç»å¸ä¸å¿ä¸¤ä¸ªåç´ çåæ ï¼é»è®¤å°å¾æ¸²æå¨ç»å¸ä¸å¿ä½ç½®ï¼ |
| | | var left = scene.camera.getPickRay(new SmartEarth.Cesium.Cartesian2((width / 2) | 0, (height - 1) / 2)); |
| | | var right = scene.camera.getPickRay(new SmartEarth.Cesium.Cartesian2(1 + (width / 2) | 0, (height - 1) / 2)); |
| | | |
| | | var leftPosition = scene.globe.pick(left, scene); |
| | | var rightPosition = scene.globe.pick(right, scene); |
| | | if (!SmartEarth.Cesium.defined(leftPosition) || !SmartEarth.Cesium.defined(rightPosition)) { |
| | | return; |
| | | } |
| | | const ellipsoid = SmartEarth.Cesium.Ellipsoid.MOON2000 |
| | | var leftCartographic = ellipsoid.cartesianToCartographic(leftPosition); |
| | | var rightCartographic = ellipsoid.cartesianToCartographic(rightPosition); |
| | | var geodesic = new SmartEarth.Cesium.EllipsoidGeodesic(leftCartographic, rightCartographic, ellipsoid); |
| | | var distance = geodesic.surfaceDistance;// å辨ç |
| | | rate.value =distance.toFixed(2); //å辨ç |
| | | }) |
| | | }; |
| | | const gridSwitch = () => { |
| | | server.showlonlatLine(); |
| | |
| | | return levelArray.length - 1; |
| | | }; |
| | | const createPrimitives = (degree) => { |
| | | // let ps = []; |
| | | // for (let longitude = -180; longitude <= 180; longitude += 10) { |
| | | // ps.push( |
| | | // Cesium.Cartesian3.fromDegreesArray([ |
| | | // longitude, |
| | | // -90, |
| | | // longitude, |
| | | // 0, |
| | | // longitude, |
| | | // 90, |
| | | // ]) |
| | | // ); |
| | | // } |
| | | |
| | | // let polylineGeometry = new Cesium.PolylineGeometry({ |
| | | // positions: ps, |
| | | // width: 5, |
| | | // id: "polylineGeometry", |
| | | // }); |
| | | // Viewer.scene.primitives.add( |
| | | // new Cesium.Primitive({ |
| | | // geometryInstances: new Cesium.GeometryInstance({ |
| | | // geometry: polylineGeometry, |
| | | // }), |
| | | // // vertexFormat: Cesium.PolylineColorAppearance.VERTEX_FORMAT, |
| | | // appearance: new Cesium.EllipsoidSurfaceAppearance({ |
| | | // material: Cesium.Material.fromType("Stripe"), |
| | | // }), |
| | | // }) |
| | | // ); |
| | | var GridImagery = new Cesium.GridImageryProvider(); |
| | | var imageryLayers = Viewer.imageryLayers; |
| | | var GridImageryLayer = imageryLayers.addImageryProvider(GridImagery); // æ·»å ç½æ ¼å¾å± |
| | |
| | | // create an axios instance |
| | | const service = axios.create({ |
| | | baseURL: config.BASE_URL, // apiçbase_url |
| | | timeout: 35000, // 请æ±è¶
æ¶æ¶é´ |
| | | timeout: -1, // 请æ±è¶
æ¶æ¶é´ |
| | | // headers: { |
| | | // "content-type": "application/json;charset=UTF-8", |
| | | // }, |
| | |
| | | }; |
| | | //æ»ååå¨ |
| | | const sliderChange = (val) => { |
| | | |
| | | server.layerList[layerLength.value].layerData.alpha = val / 100; |
| | | }; |
| | | const contrastChange = (val) => { |
| | |
| | | <template> |
| | | <div |
| | | v-drag |
| | | class="layerBox" |
| | | > |
| | | <div v-drag class="layerBox"> |
| | | <div class="layerTitle"> |
| | | <div class="tileLeft"> |
| | | <div |
| | | @click="setCloseLayer" |
| | | class="titleImg" |
| | | > |
| | | <div @click="setCloseLayer" class="titleImg"> |
| | | <ArrowLeft /> |
| | | </div> |
| | | <div class="titleLable">å¾å±ç®¡ç</div> |
| | | </div> |
| | | <div |
| | | class="titleImg set" |
| | | @click="layerSetBox" |
| | | > |
| | | <div class="titleImg set" @click="layerSetBox"> |
| | | <Setting /> |
| | | </div> |
| | | </div> |
| | | <div class="layerContent"> |
| | | <el-tree |
| | | node-key="id" |
| | | :props="props" |
| | | :highlight-current="false" |
| | | :current-node-key="selectedNodeId" |
| | | :data="treeData" |
| | | :default-expanded-keys="defaultExpanded" |
| | | :expand-on-click-node="false" |
| | | show-checkbox |
| | | @check="handleCheckChange" |
| | | ref="estreeRef" |
| | | v-if="treeData.length" |
| | | :default-checked-keys="DefaultId" |
| | | > |
| | | <el-tree node-key="id" :props="props" :highlight-current="false" :current-node-key="selectedNodeId" :data="treeData" |
| | | :default-expanded-keys="defaultExpanded" :expand-on-click-node="false" show-checkbox @check="handleCheckChange" |
| | | ref="estreeRef" v-if="treeData.length" :default-checked-keys="DefaultId"> |
| | | <template #default="{ node, data }"> |
| | | <span class="custom-tree-node"> |
| | | <span class="label">{{ node.label }}</span> |
| | |
| | | Delete |
| | | </a> |
| | | </span> --> |
| | | <span |
| | | class="button" |
| | | v-if="!data.isTemporaryLayer" |
| | | > |
| | | <span class="button" v-if="!data.isTemporaryLayer"> |
| | | <el-dropdown trigger="click"> |
| | | <span class="el-dropdown-link"> |
| | | <el-icon class="el-icon--right"> |
| | |
| | | </span> |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item |
| | | v-if="data.type != 6 && data.isLayer ==1" |
| | | @click.native="clickdropdown(1, data)" |
| | | >详ç»</el-dropdown-item> |
| | | <el-dropdown-item v-if="data.type != 6 && data.isLayer == 1" |
| | | @click.native="clickdropdown(1, data)">详ç»</el-dropdown-item> |
| | | <el-dropdown-item v-if="data.type == 6 && data.isLayer ==1">å é¤</el-dropdown-item> |
| | | <el-dropdown-item |
| | | v-if="data.type == 3 && data.isLayer ==1" |
| | | @click.native="clickdropdown(2, data)" |
| | | >屿§</el-dropdown-item> |
| | | <el-dropdown-item |
| | | v-if="data.isLayer ==0" |
| | | @click.native="clickdropdown(3, data)" |
| | | >éæåº¦</el-dropdown-item> |
| | | <el-dropdown-item |
| | | v-if="data.shpType =='temporaryLayer'" |
| | | @click.native="clickdTemporary(1, data)" |
| | | >ç¼è¾</el-dropdown-item> |
| | | <el-dropdown-item |
| | | v-if="data.shpType =='temporaryLayer'" |
| | | @click.native="clickdTemporary(2, data)" |
| | | >å é¤</el-dropdown-item> |
| | | <el-dropdown-item v-if="data.type == 3 && data.isLayer == 1" |
| | | @click.native="clickdropdown(2, data)">屿§</el-dropdown-item> |
| | | <el-dropdown-item v-if="data.isLayer == 0" |
| | | @click.native="clickdropdown(3, data)">éæåº¦</el-dropdown-item> |
| | | <el-dropdown-item v-if="data.shpType == 'temporaryLayer'" |
| | | @click.native="clickdTemporary(1, data)">ç¼è¾</el-dropdown-item> |
| | | <el-dropdown-item v-if="data.shpType == 'temporaryLayer'" |
| | | @click.native="clickdTemporary(2, data)">å é¤</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </template> |
| | | </el-dropdown> |
| | |
| | | </el-tree> |
| | | </div> |
| | | </div> |
| | | <layer-set |
| | | v-if="layerSetIsshow" |
| | | @SETstate="SETstate" |
| | | :layerTree="treeData" |
| | | @addlayer="addlayer" |
| | | @delLayer="delLayer" |
| | | ></layer-set> |
| | | <attribute-list |
| | | v-if="layerAttributeIsshow" |
| | | :layerData="layerObjData" |
| | | @spatialClose="setSpatialClose" |
| | | ></attribute-list> |
| | | <layer-detail |
| | | :layerData="layerObjData" |
| | | v-if="layerDetailIsshow" |
| | | @detailClose="detailClose" |
| | | ></layer-detail> |
| | | <layer-set v-if="layerSetIsshow" @SETstate="SETstate" :layerTree="treeData" @addlayer="addlayer" |
| | | @delLayer="delLayer"></layer-set> |
| | | <attribute-list v-if="layerAttributeIsshow" :layerData="layerObjData" @spatialClose="setSpatialClose"></attribute-list> |
| | | <layer-detail :layerData="layerObjData" v-if="layerDetailIsshow" @detailClose="detailClose"></layer-detail> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | |
| | | store.state.setLayerManager = false; |
| | | emits("setCloseLayer", false); |
| | | }; |
| | | const temporary = ref(new Date().getTime()); |
| | | const clickdTemporary = (res, data) => { |
| | | if (res == 1) { |
| | | if (store.state.editTemporaryId) { |
| | |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: false }); |
| | | } else if (res == 2) { |
| | | temporaryTool.removeTemporaryLayer(data); |
| | | |
| | | var checkedKeys = estreeRef.value.getCheckedKeys(); |
| | | if (checkedKeys.indexOf(data.id) > -1) { |
| | | var index_id = checkedKeys.indexOf(data.id); |
| | | var std = checkedKeys.slice(index_id, 1); |
| | | |
| | | estreeRef.value.setCheckedKeys(std, true); |
| | | var keys = estreeRef.value.getCheckedKeys(); |
| | | const checkedKeys = []; |
| | | for (var i in keys) { |
| | | checkedKeys.push(keys[i]) |
| | | } |
| | | var val = treeData.value[0].children; |
| | | |
| | | for (var i = 0; i < val.length; i++) { |
| | | if (val[i].id == data.id) { |
| | | val.splice(i, 1); |
| | | treeData.value = [...treeData.value]; |
| | | } |
| | | } |
| | | if (checkedKeys.indexOf(data.id) > -1) { |
| | | checkedKeys.splice(checkedKeys.indexOf(data.id), 1) |
| | | } |
| | | if (checkedKeys.indexOf(temporary.value) > -1) { |
| | | checkedKeys.splice(checkedKeys.indexOf(temporary.value), 1) |
| | | } |
| | | estreeRef.value.setCheckedKeys(checkedKeys, true); |
| | | } |
| | | }; |
| | | //éæ©å¾å± |
| | |
| | | layerDetailIsshow.value = false; |
| | | |
| | | let isCheck = checked.checkedKeys.indexOf(data.id) > -1; |
| | | |
| | | if (isCheck) { |
| | | let son = estreeRef.value.getCheckedNodes().reverse(); |
| | | server.delLayerAll(); |
| | | |
| | | var setGeoWms = []; |
| | | var url = null; |
| | | for (var i in son) { |
| | | var layerArr = son[i]; |
| | | layerArr.checked = true; |
| | | if (layerArr.category == 2 && layerArr.type == 3) { |
| | | if (layerArr.tab != "moon:geo_mappable_unit") { |
| | | setGeoWms.push(layerArr.tab); |
| | | |
| | | url = layerArr.url; |
| | | if (layerArr.tab != "moon:geo_mappable_unit") { |
| | | |
| | | server.addTreeData(layerArr) |
| | | } |
| | | } else { |
| | | server.addTreeData(layerArr); |
| | | } |
| | | } |
| | | if (setGeoWms.length > 0) { |
| | | server.addGeoServerMmsLayers(setGeoWms.reverse(), url); |
| | | } |
| | | store.commit("SET_CHECKLAYER", son); |
| | | // setVisiable(data, isCheck); |
| | | |
| | | // |
| | | store.commit("SET_CHECKLAYER", son); |
| | | } else { |
| | | |
| | | server.delLayer(data.id) |
| | | } |
| | | |
| | | }; |
| | | const setVisiable = (treeNode, checked) => { |
| | | if (checked !== undefined) { |
| | |
| | | const clickdropdown = (res, e) => { |
| | | layerAttributeIsshow.value = false; |
| | | layerDetailIsshow.value = false; |
| | | nextTick(() => { |
| | | layerObjData.value = e; |
| | | |
| | | store.state.spatialTitle = e.cnName; |
| | | if (res == 2) { |
| | | layerAttributeIsshow.value = true; |
| | | store.state.tab = e; |
| | | } else if (res == 3) { |
| | | let son = estreeRef.value.getCheckedNodes() |
| | | var layerId = getCheckedLayerID(e, son); |
| | | if (layerId.length <= 0) { |
| | | return ElMessage.error("请å
å¾éå¾å±"); |
| | | } |
| | | |
| | | // layerDetailIsshow.value = true; |
| | | // store.state.tab = e; |
| | | |
| | | } else { |
| | | var val = estreeRef.value!.getCheckedKeys(false); |
| | | if (val.indexOf(e.id) > -1) { |
| | |
| | | return ElMessage.error("请å
å¾éå¾å±"); |
| | | } |
| | | } |
| | | }) |
| | | |
| | | }; |
| | | const getCheckedLayerID = (res, result) => { |
| | | var temp = []; |
| | | let forFn = (data) => { |
| | | data.children.forEach(item => { |
| | | if (item.children) { |
| | | forFn(item) |
| | | } else { |
| | | if (result.indexOf(item.id) > -1) { |
| | | temp.push(item.id) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | forFn(res); |
| | | return temp; |
| | | }; |
| | | const setSpatialClose = (res) => { |
| | | layerAttributeIsshow.value = res; |
| | |
| | | }; |
| | | const setRestLayerData = () => { |
| | | let son = estreeRef.value.getCheckedNodes().reverse(); |
| | | server.delLayerAll(); |
| | | // server.delLayerAll(); |
| | | |
| | | var setGeoWms = []; |
| | | var url = null; |
| | |
| | | layerArr.checked = true; |
| | | if (layerArr.category == 2 && layerArr.type == 3) { |
| | | if (layerArr.tab != "moon:geo_mappable_unit") { |
| | | setGeoWms.push(layerArr.tab); |
| | | url = layerArr.url; |
| | | // setGeoWms.push(layerArr.tab); |
| | | // url = layerArr.url; |
| | | server.addTreeData(layerArr); |
| | | } |
| | | } else { |
| | | server.addTreeData(layerArr); |
| | | } |
| | | } |
| | | if (setGeoWms.length > 0) { |
| | | server.addGeoServerMmsLayers(setGeoWms, url); |
| | | } |
| | | // if (setGeoWms.length > 0) { |
| | | // server.addGeoServerMmsLayers(setGeoWms, url); |
| | | // } |
| | | store.commit("SET_CHECKLAYER", son); |
| | | }; |
| | | const getLayer = async () => { |
| | | store.state.restLayer = false; |
| | | server.delLayerAll(); |
| | | // server.delLayerAll(); |
| | | const dt = await perms_selectLayers(); |
| | | if (dt.code == 200) { |
| | | treeData.value = setTreeData(dt.result).sort(function (a, b) { |
| | |
| | | pid: 0, |
| | | isLayer: 0, |
| | | type: 6, |
| | | id: new Date().getTime(), |
| | | id: temporary.value, |
| | | isTemporaryLayer: true, |
| | | children: [], |
| | | }); |
| | |
| | | //æ·»å é»è®¤éä¸å¾å± |
| | | layerListData.value = dt.result; |
| | | defaultLayer(dt.result); |
| | | var setGeoWms = []; |
| | | var url = null; |
| | | // var setGeoWms = []; |
| | | // var url = null; |
| | | |
| | | for (var i in adLayer) { |
| | | var layer = adLayer[i]; |
| | | if (layer.category == 2 && layer.type == 3) { |
| | | if (layer.tab != "moon:geo_mappable_unit") { |
| | | setGeoWms.push(layer.tab); |
| | | url = layer.url; |
| | | } |
| | | } else { |
| | | server.addTreeData(layer); |
| | | } |
| | | } |
| | | if (setGeoWms.length > 0) { |
| | | server.addGeoServerMmsLayers(setGeoWms, url); |
| | | } |
| | | // for (var i in adLayer) { |
| | | // var layer = adLayer[i]; |
| | | // if (layer.category == 2 && layer.type == 3) { |
| | | // if (layer.tab != "moon:geo_mappable_unit") { |
| | | // // setGeoWms.push(layer.tab); |
| | | // // url = layer.url; |
| | | // server.addTreeData(layer); |
| | | // } |
| | | // } else { |
| | | // server.addTreeData(layer); |
| | | // } |
| | | // } |
| | | // if (setGeoWms.length > 0) { |
| | | // server.addGeoServerMmsLayers(setGeoWms, url); |
| | | // } |
| | | //; |
| | | nextTick(() => { |
| | | let son = estreeRef.value.getCheckedNodes(); |
| | | |
| | | setRestLayerData() |
| | | store.commit("SET_CHECKLAYER", son); |
| | | }); |
| | | } |
| | |
| | | store.state.temporaryLayer = null; |
| | | treeData.value[0].children.push(res); |
| | | var id = res.id; |
| | | |
| | | nextTick(() => { |
| | | var checkedKeys = estreeRef.value.getCheckedKeys(); |
| | | if (checkedKeys.indexOf(temporary.value) > -1) { |
| | | checkedKeys.splice(checkedKeys.indexOf(temporary.value), 1) |
| | | } |
| | | checkedKeys.push(id); |
| | | estreeRef.value.setCheckedKeys(checkedKeys, true); |
| | | temporaryTool.addTemporaryTool(res); |
| | |
| | | background: rgba(7, 8, 14, 0.8); |
| | | box-shadow: inset 0px 10px 40px 10px rgba(38, 47, 71, 1); |
| | | z-index: 40; |
| | | |
| | | .layerTitle { |
| | | width: calc(100% - 27px); |
| | | height: 42px; |
| | |
| | | padding-left: 7px; |
| | | padding-right: 20px; |
| | | color: white; |
| | | |
| | | .tileLeft { |
| | | height: 100%; |
| | | display: flex; |
| | |
| | | color: #ffffff; |
| | | } |
| | | } |
| | | |
| | | .titleImg { |
| | | width: 20px; |
| | | height: 100%; |
| | |
| | | align-items: center; |
| | | color: rgba(104, 156, 255, 1); |
| | | } |
| | | |
| | | .set { |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | .layerContent { |
| | | height: 625px; |
| | | padding: 0 8px; |
| | | overflow: auto; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .layerContent::-webkit-scrollbar { |
| | | width: 8px; |
| | | } |
| | | |
| | | .layerContent::-webkit-scrollbar-thumb { |
| | | border-radius: 10px; |
| | | background: rgba(0, 0, 0, 0.2); |
| | | } |
| | | |
| | | .layerContent::-webkit-scrollbar-track { |
| | | border-radius: 0; |
| | | background: rgba(0, 0, 0, 0); |
| | | } |
| | | |
| | | .el-tree { |
| | | width: 100%; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .layerContent .el-tree-node__content { |
| | | overflow: hidden; |
| | | } |
| | |
| | | flex-shrink: 0; |
| | | } |
| | | } |
| | | |
| | | .dropdown_box { |
| | | position: relative; |
| | | } |
| | |
| | | /deep/.el-select-dropdown__item { |
| | | font-size: 12px !important; |
| | | } |
| | | |
| | | .el-tree { |
| | | background: transparent; |
| | | } |
| | | |
| | | /deep/ .el-tree-node { |
| | | background: #0d131d; |
| | | color: #ffffff; |
| | |
| | | margin-top: 3px; |
| | | padding: 8px; |
| | | } |
| | | |
| | | /deep/ .el-tree-node:focus > .el-tree-node__content { |
| | | background: transparent; |
| | | } |
| | | |
| | | /deep/ .el-tree-node__content:hover { |
| | | background: #0d131d; |
| | | } |
| | | |
| | | /deep/ .el-tree-node__children { |
| | | background: #1e2a3d; |
| | | |
| | | .el-tree-node { |
| | | background: #1e2a3d; |
| | | margin-top: 0; |
| | | padding: 4px; |
| | | } |
| | | } |
| | | /deep/ |
| | | .el-tree--highlight-current |
| | | .el-tree-node.is-current |
| | | > .el-tree-node__content { |
| | | |
| | | /deep/ .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { |
| | | background: rgba(104, 156, 255, 0.5) !important; |
| | | } |
| | | |
| | | .highlight { |
| | | background: rgba(104, 156, 255, 0.5) !important; |
| | | } |
| | | |
| | | // .custom-tree-node { |
| | | // flex: 1; |
| | | // display: flex; |
| | |
| | | box-shadow: inset 0px 10px 40px 10px rgba(38, 47, 71, 1); |
| | | color: #fff; |
| | | border: 0; |
| | | |
| | | /deep/ .el-dropdown-menu__item { |
| | | color: #fff; |
| | | } |
| | | } |
| | | |
| | | /deep/ .el-dropdown-menu__item:not(.is-disabled):focus { |
| | | background-color: rgba(104, 156, 255, 0.5); |
| | | |
| | |
| | | .el-popper.is-light { |
| | | border: 1px solid rgba(7, 8, 14, 0.8) !important; |
| | | } |
| | | |
| | | .el-scrollbar { |
| | | border: 0 !important; |
| | | } |
| | |
| | | v-for="(item, i) in menuOptions" |
| | | :key="i" |
| | | @click="setMenuClick(item)" |
| | | :title="item.name" |
| | | > |
| | | <img |
| | | v-if="checkMenuFlag != item.id" |
| | |
| | | <template> |
| | | <div class="attributeInfo"> |
| | | <!-- æ é¢ --> |
| | | <div |
| | | class="attributeTitle" |
| | | @mousemove="setMouseMove(1)" |
| | | @mouseout="setMouseMove(2)" |
| | | > |
| | | <div class="attributeTitle" @mousemove="setMouseMove(1)" @mouseout="setMouseMove(2)"> |
| | | <div class="attributeLabel">屿§ä¿¡æ¯</div> |
| | | <div |
| | | class="attributeClose" |
| | | @click="setAttributeInfoClose" |
| | | > |
| | | <el-icon |
| | | :size="20" |
| | | style="color:#d6e4ff" |
| | | > |
| | | <div class="attributeClose" @click="setAttributeInfoClose"> |
| | | <el-icon :size="20" style="color:#d6e4ff"> |
| | | <Close /> |
| | | </el-icon> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="contentBox"> |
| | | <div class="contentLabel"> <label>åç§°</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | @change="setEntityNameChange" |
| | | v-model="fromLine.cnName" |
| | | ></el-input> |
| | | <div class="contentmenu"><el-input size="mini" @change="setEntityNameChange" v-model="fromLine.cnName"></el-input> |
| | | </div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="showEntity.label" |
| | | > |
| | | <div class="contentBox" v-show="showEntity.label"> |
| | | <div class="contentLabel"> <label>å
容</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | v-model="fromLine.text" |
| | | ></el-input></div> |
| | | <div class="contentmenu"><el-input size="mini" v-model="fromLine.text"></el-input></div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="showEntity.label" |
| | | > |
| | | <div class="contentBox" v-show="showEntity.label"> |
| | | <div class="contentLabel"> <label>åä½</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | v-model="fromLine.font" |
| | | ></el-input></div> |
| | | <div class="contentmenu"><el-input size="mini" v-model="fromLine.font"></el-input></div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="showEntity.label" |
| | | > |
| | | <div class="contentBox" v-show="showEntity.label"> |
| | | <div class="contentLabel"> <label>æ¯ä¾å¤§å°</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | v-model="fromLine.scale" |
| | | ></el-input></div> |
| | | <div class="contentmenu"><el-input size="mini" v-model="fromLine.scale"></el-input></div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="showEntity.point" |
| | | > |
| | | <div class="contentBox" v-show="showEntity.point"> |
| | | <div class="contentLabel"> <label>大å°</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | @change="setEntitySizeChange" |
| | | v-model="fromLine.size" |
| | | ></el-input> |
| | | <div class="contentmenu"><el-input size="mini" @change="setEntitySizeChange" v-model="fromLine.size"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <div class="contentBox" v-show="showEntity.setclampToGround"> |
| | | <div class="contentLabel"> |
| | | <label v-show="!showEntity.clampToGround">æ¯å¦è¢«é®æ¡</label> |
| | | <label v-show="showEntity.clampToGround">æ¯å¦è´´å°</label> |
| | | </div> |
| | | <div class="contentmenu"> <el-switch |
| | | v-model="fromLine.heightReference" |
| | | @change="setEntityHeightReferenceChange" |
| | | /></div> |
| | | <div class="contentmenu"> <el-switch v-model="fromLine.heightReference" |
| | | @change="setEntityHeightReferenceChange" /></div> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <div class="contentLabel"> <label>å¡«å
è²</label></div> |
| | | <div class="contentmenu"> <el-color-picker |
| | | size="small" |
| | | v-model="fromLine.material" |
| | | @change="setEntityMaterColorChange" |
| | | /></div> |
| | | <div class="contentmenu"> <el-color-picker size="small" v-model="fromLine.material" |
| | | @change="setEntityMaterColorChange" /></div> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <div class="contentLabel"> <label>å¡«å
éæåº¦</label></div> |
| | | <div class="contentmenu"> <el-slider |
| | | size="small" |
| | | v-model="fromLine.materialAlpha" |
| | | @change="setEntityMaterColorChange" |
| | | :step="0.1" |
| | | :max="1" |
| | | :min="0" |
| | | /></div> |
| | | <div class="contentmenu"> <el-slider size="small" v-model="fromLine.materialAlpha" |
| | | @change="setEntityMaterColorChange" :step="0.1" :max="1" :min="0" /></div> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <div class="contentLabel"> <label>æ¯å¦æ¾ç¤ºè¾¹æ¡</label></div> |
| | | <div class="contentmenu"> <el-switch |
| | | @change="setEntityOutLineShowReferenceChange" |
| | | v-model="fromLine.outline" |
| | | /> |
| | | <div class="contentmenu"> <el-switch @change="setEntityOutLineShowReferenceChange" v-model="fromLine.outline" /> |
| | | </div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="fromLine.outline" |
| | | > |
| | | <div class="contentBox" v-show="fromLine.outline"> |
| | | <div class="contentLabel"> <label>è¾¹æ¡å¤§å°</label></div> |
| | | <div class="contentmenu"> |
| | | <el-input-number |
| | | v-model="fromLine.width" |
| | | :min="0" |
| | | size="small" |
| | | @change="setEntityOutLineWidthReferenceChange" |
| | | controls-position="right" |
| | | /> |
| | | <el-input-number v-model="fromLine.width" :min="0" size="small" @change="setEntityOutLineWidthReferenceChange" |
| | | controls-position="right" /> |
| | | |
| | | </div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="fromLine.outline" |
| | | > |
| | | <div class="contentBox" v-show="fromLine.outline"> |
| | | <div class="contentLabel"> <label>è¾¹æ¡è²</label></div> |
| | | <div class="contentmenu"> <el-color-picker |
| | | size="small" |
| | | v-model="fromLine.outlineColor" |
| | | @change="setEntityOutLineColorChange" |
| | | /></div> |
| | | <div class="contentmenu"> <el-color-picker size="small" v-model="fromLine.outlineColor" |
| | | @change="setEntityOutLineColorChange" /></div> |
| | | </div> |
| | | <div |
| | | class="contentBox" |
| | | v-show="fromLine.outline" |
| | | > |
| | | <div class="contentBox" v-show="fromLine.outline"> |
| | | <div class="contentLabel"> <label>è¾¹æ¡éæåº¦</label></div> |
| | | <div class="contentmenu"> <el-slider |
| | | size="small" |
| | | v-model="fromLine.outlineAlpha" |
| | | :step="0.1" |
| | | :max="1" |
| | | :min="0" |
| | | @change="setEntityOutLineColorChange" |
| | | /></div> |
| | | <div class="contentmenu"> <el-slider size="small" v-model="fromLine.outlineAlpha" :step="0.1" :max="1" :min="0" |
| | | @change="setEntityOutLineColorChange" /></div> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <div class="contentLabel"> <label>æå°å¯è§è·ç¦»</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | v-model="fromLine.near" |
| | | @change="setEntityNearChange" |
| | | ></el-input> |
| | | <div class="contentmenu"><el-input size="mini" v-model="fromLine.near" @change="setEntityNearChange"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="contentBox contentBottom "> |
| | | <div class="contentLabel"> <label>æå¤§å¯è§è·ç¦»</label></div> |
| | | <div class="contentmenu"><el-input |
| | | size="mini" |
| | | v-model="fromLine.far" |
| | | @change="setEntityFarChange" |
| | | ></el-input> |
| | | <div class="contentmenu"><el-input size="mini" v-model="fromLine.far" @change="setEntityFarChange"></el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | label: false, |
| | | point: false, |
| | | clampToGround: false, |
| | | setclampToGround: true, |
| | | }); |
| | | const entity = ref(null); |
| | | const entityType = ref(null); |
| | |
| | | switch (entityType.value) { |
| | | case "point": |
| | | entity.value.point.disableDepthTestDistance = |
| | | fromLine.value.heightReference == true ? null : false; |
| | | fromLine.value.heightReference == true ? null : Number.POSITIVE_INFINITY; |
| | | break; |
| | | case "label": |
| | | entity.value.label.disableDepthTestDistance = |
| | |
| | | break; |
| | | case "polyline": |
| | | entity.value.polyline.clampToGround = fromLine.value.heightReference; |
| | | |
| | | break; |
| | | |
| | | } |
| | | }; |
| | | const setEntityOutLineWidthReferenceChange = () => { |
| | |
| | | entity.value.label.outlineWidth = fromLine.value.width; |
| | | break; |
| | | case "polyline": |
| | | setPolylineEntityColor(); |
| | | entity.value.polyline.material.outlineWidth._value = fromLine.value.width; |
| | | break; |
| | | case "rectangle": |
| | | entity.value.rectangle.outlineWidth._value = fromLine.value.width; |
| | | break; |
| | | case "polygon": |
| | | entity.value.polygon.outlineWidth._value = fromLine.value.width; |
| | | break; |
| | | } |
| | | }; |
| | | |
| | | const setPolylineEntityColor = () => { |
| | | const outlineWidth = 0; |
| | | if (fromLine.value.outline) { |
| | | outlineWidth = fromLine.value.width; |
| | | } |
| | | }; |
| | | |
| | | const setEntityOutLineShowReferenceChange = () => { |
| | | var type = entity.value.GeoType; |
| | | if (type == "point") { |
| | |
| | | } else { |
| | | entity.value.label.style = Cesium.LabelStyle.FILL; |
| | | } |
| | | } else if (type == 'polyline') { |
| | | if (fromLine.value.outline) { |
| | | entity.value.polyline.material.outlineWidth._value = fromLine.value.width; |
| | | } else { |
| | | entity.value.polyline.material.outlineWidth._value = null; |
| | | } |
| | | } else if (type == 'rectangle') { |
| | | |
| | | entity.value.rectangle.outline._value = fromLine.value.outline; |
| | | } else if (type == 'polygon') { |
| | | |
| | | entity.value.polygon.outline._value = fromLine.value.outline; |
| | | } |
| | | }; |
| | | const setAttributeInfoClose = () => { |
| | | store.state.editTemporaryback = entity._value.id; |
| | | store.state.setEditTemporaryShow = false; |
| | | store.state.editTemporaryId = null; |
| | | sgworld.Creator.SimpleGraphic.SimpleGraphicObj=[]; |
| | | |
| | | }; |
| | | const setEntityMaterColorChange = () => { |
| | | const material = "rgb(255,255,255)"; |
| | |
| | | material = hexToRgb(fromLine.value.material); |
| | | } |
| | | var type = entity.value.GeoType; |
| | | |
| | | if (type == "point") { |
| | | entity.value.point.color = Cesium.Color.fromCssColorString( |
| | | material |
| | | ).withAlpha(fromLine.value.materialAlpha); |
| | | } else if (type == "label") { |
| | | entity.value.label.fillColor = Cesium.Color.fromCssColorString( |
| | | material |
| | | ).withAlpha(fromLine.value.materialAlpha); |
| | | } else if (type == 'polyline') { |
| | | |
| | | entity.value.polyline.material.color = Cesium.Color.fromCssColorString( |
| | | material |
| | | ).withAlpha(fromLine.value.materialAlpha); |
| | | } else if (type == 'rectangle') { |
| | | |
| | | entity.value.rectangle.material.color = Cesium.Color.fromCssColorString( |
| | | material |
| | | ).withAlpha(fromLine.value.materialAlpha); |
| | | } else if (type == 'polygon') { |
| | | |
| | | entity.value.polygon.material.color = Cesium.Color.fromCssColorString( |
| | | material |
| | | ).withAlpha(fromLine.value.materialAlpha); |
| | | } |
| | |
| | | material = hexToRgb(fromLine.value.outlineColor); |
| | | } |
| | | var type = entity.value.GeoType; |
| | | |
| | | if (type == "point") { |
| | | entity.value.point.outlineColor = Cesium.Color.fromCssColorString(material).withAlpha( |
| | | fromLine.value.outlineAlpha |
| | | ); |
| | | } else if (type == "label") { |
| | | |
| | | entity.value.label.outlineColor = Cesium.Color.fromCssColorString(material).withAlpha( |
| | | fromLine.value.outlineAlpha |
| | | ); |
| | | } else if (type == 'polyline') { |
| | | |
| | | entity.value.polyline.material.outlineColor = Cesium.Color.fromCssColorString(material).withAlpha( |
| | | fromLine.value.outlineAlpha |
| | | ); |
| | | } else if (type == 'rectangle') { |
| | | |
| | | entity.value.rectangle.outlineColor._value = Cesium.Color.fromCssColorString(material).withAlpha( |
| | | fromLine.value.outlineAlpha |
| | | ); |
| | | } else if (type == 'polygon') { |
| | | |
| | | entity.value.polygon.outlineColor._value = Cesium.Color.fromCssColorString(material).withAlpha( |
| | | fromLine.value.outlineAlpha |
| | | ); |
| | | } |
| | | |
| | | |
| | | }; |
| | | const setEntityNearChange = () => { |
| | | var type = entity.value.GeoType; |
| | | var res; |
| | | if (type == "point") { |
| | | res = entity.value.point; |
| | | } else if (type == "label") { |
| | | res = entity.value.label; |
| | | } else if (type == 'polyline') { |
| | | res = entity.value.polyline; |
| | | } else if (type == 'rectangle') { |
| | | res = entity.value.rectangle; |
| | | } else if (type == 'polygon') { |
| | | res = entity.value.polygon; |
| | | } |
| | | res.outlineColor = Cesium.Color.fromCssColorString(material).withAlpha( |
| | | fromLine.value.outlineAlpha |
| | | ); |
| | | }; |
| | | const setEntityNearChange = () => { |
| | | entity.value.point._distanceDisplayCondition._value.near = |
| | | fromLine.value.near; |
| | | res._distanceDisplayCondition._value.near = fromLine.value.near; |
| | | }; |
| | | const setEntityFarChange = () => { |
| | | entity.value.point._distanceDisplayCondition._value.far = fromLine.value.far; |
| | | // entity.value.point._distanceDisplayCondition._value.far = fromLine.value.far; |
| | | var type = entity.value.GeoType; |
| | | var res; |
| | | if (type == "point") { |
| | | res = entity.value.point; |
| | | } else if (type == "label") { |
| | | res = entity.value.label; |
| | | } else if (type == 'polyline') { |
| | | res = entity.value.polyline; |
| | | } else if (type == 'rectangle') { |
| | | res = entity.value.rectangle; |
| | | } else if (type == 'polygon') { |
| | | res = entity.value.polygon; |
| | | } |
| | | res._distanceDisplayCondition._value.near = fromLine.value.far; |
| | | }; |
| | | const hexToRgb = (hex) => { |
| | | return ( |
| | |
| | | var res = entity.value; |
| | | var type = res.GeoType; |
| | | entityType.value = type; |
| | | |
| | | debugger |
| | | switch (type) { |
| | | case "label": |
| | | showEntity.value.label = true; |
| | |
| | | case "point": |
| | | showEntity.value.point = true; |
| | | break; |
| | | case "polygon": |
| | | break; |
| | | case "polyline": |
| | | showEntity.value.clampToGround = true; |
| | | break; |
| | | case "rectangle": |
| | | showEntity.value.setclampToGround = false; |
| | | break; |
| | | case "polygon": |
| | | showEntity.value.setclampToGround = false; |
| | | break; |
| | | } |
| | | |
| | |
| | | fromLine.value = obj; |
| | | }; |
| | | const getTemporaryAttribute = () => { |
| | | |
| | | if (store.state.editTemporaryId) { |
| | | var entities = window.Viewer.entities._entities._array; |
| | | for (var i in entities) { |