UNPKG

gy-cesium

Version:

gy

686 lines 1.88 MB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb; import { reactive, markRaw, defineComponent, onMounted, onBeforeUnmount, ref, watch, getCurrentInstance, computed } from "vue-demi"; import * as _0x590402 from "cesium"; import { lineString, lineChunk, polygon, centerOfMass, transformScale } from "@turf/turf"; import _0x239c20 from "gsap"; import _0x55e5bd from "@cesium/engine/Source/Scene/ShadowMap.js"; import _0x5ec6f4 from "@cesium/engine/Source/Renderer/Texture.js"; const widgets = ""; function _0x52e9(_0x1d7ab3, _0x23159f) { const _0x2fa424 = _0x2fa4(); return _0x52e9 = function(_0x52e970, _0x1dbbe4) { _0x52e970 = _0x52e970 - 363; let _0x1b2465 = _0x2fa424[_0x52e970]; return _0x1b2465; }, _0x52e9(_0x1d7ab3, _0x23159f); } (function(_0x4687af, _0x3aac87) { const _0x41c399 = _0x52e9, _0x17881d = _0x4687af(); while (!![]) { try { const _0x3b630a = -parseInt(_0x41c399(374)) / 1 * (parseInt(_0x41c399(376)) / 2) + -parseInt(_0x41c399(367)) / 3 * (parseInt(_0x41c399(372)) / 4) + parseInt(_0x41c399(378)) / 5 * (-parseInt(_0x41c399(368)) / 6) + -parseInt(_0x41c399(373)) / 7 + -parseInt(_0x41c399(369)) / 8 * (-parseInt(_0x41c399(375)) / 9) + -parseInt(_0x41c399(364)) / 10 + parseInt(_0x41c399(370)) / 11; if (_0x3b630a === _0x3aac87) break; else _0x17881d["push"](_0x17881d["shift"]()); } catch (_0x12788a) { _0x17881d["push"](_0x17881d["shift"]()); } } })(_0x2fa4, 948078); function _0x2fa4() { const _0x43b10a = ["6614340AsxCFx", "atan2", "sqrt", "2193deLudY", "6071586uKvsOH", "28008LnaiCn", "41617895XuqWDm", "cos", "6576cYvcxX", "8462650WIZGnp", "31dPixrP", "4041euzcHy", "20854MYCdQC", "abs", "5sPOLJS", "sin"]; _0x2fa4 = function() { return _0x43b10a; }; return _0x2fa4(); } const x_PI = 3.141592653589793 * 3e3 / 180, PI = 3.141592653589793, a = 6378245, ee = 0.006693421622965943; function bd09togcj02(_0x1c9697, _0x3d1ffc) { const _0x440d15 = _0x52e9; let _0x43c537 = 3.141592653589793 * 3e3 / 180, _0x34ff20 = _0x1c9697 - 65e-4, _0x4b57c6 = _0x3d1ffc - 6e-3, _0x17bb2c = Math["sqrt"](_0x34ff20 * _0x34ff20 + _0x4b57c6 * _0x4b57c6) - 2e-5 * Math[_0x440d15(363)](_0x4b57c6 * _0x43c537), _0x3759fa = Math[_0x440d15(365)](_0x4b57c6, _0x34ff20) - 3e-6 * Math[_0x440d15(371)](_0x34ff20 * _0x43c537), _0x50df7c = _0x17bb2c * Math[_0x440d15(371)](_0x3759fa), _0x12836a = _0x17bb2c * Math[_0x440d15(363)](_0x3759fa); return [_0x50df7c, _0x12836a]; } function gcj02tobd09(_0x405fb5, _0x5325a5) { const _0x4d1733 = _0x52e9; let _0x1f510e = Math[_0x4d1733(366)](_0x405fb5 * _0x405fb5 + _0x5325a5 * _0x5325a5) + 2e-5 * Math[_0x4d1733(363)](_0x5325a5 * x_PI), _0x31d410 = Math[_0x4d1733(365)](_0x5325a5, _0x405fb5) + 3e-6 * Math[_0x4d1733(371)](_0x405fb5 * x_PI), _0x24e675 = _0x1f510e * Math[_0x4d1733(371)](_0x31d410) + 65e-4, _0x3ba43b = _0x1f510e * Math["sin"](_0x31d410) + 6e-3; return [_0x24e675, _0x3ba43b]; } function wgs84togcj02(_0x19aa8d, _0x38a93b) { const _0x5b353c = _0x52e9; if (outOfChina(_0x19aa8d, _0x38a93b)) return [_0x19aa8d, _0x38a93b]; else { let _0x2343aa = transformlat(_0x19aa8d - 105, _0x38a93b - 35), _0x27891a = transformlng(_0x19aa8d - 105, _0x38a93b - 35), _0xf0d78e = _0x38a93b / 180 * PI, _0xeb8b91 = Math[_0x5b353c(363)](_0xf0d78e); _0xeb8b91 = 1 - ee * _0xeb8b91 * _0xeb8b91; let _0x1d042a = Math[_0x5b353c(366)](_0xeb8b91); _0x2343aa = _0x2343aa * 180 / (a * (1 - ee) / (_0xeb8b91 * _0x1d042a) * PI), _0x27891a = _0x27891a * 180 / (a / _0x1d042a * Math[_0x5b353c(371)](_0xf0d78e) * PI); const _0x2ac0f2 = _0x38a93b + _0x2343aa, _0x772e88 = _0x19aa8d + _0x27891a; return [_0x772e88, _0x2ac0f2]; } } function gcj02towgs84(_0x3eb4b4, _0x8c9fa8) { const _0x45a5a0 = _0x52e9; if (outOfChina(_0x3eb4b4, _0x8c9fa8)) return [_0x3eb4b4, _0x8c9fa8]; else { let _0x285ff8 = transformlat(_0x3eb4b4 - 105, _0x8c9fa8 - 35), _0x535b7e = transformlng(_0x3eb4b4 - 105, _0x8c9fa8 - 35), _0x192f24 = _0x8c9fa8 / 180 * PI, _0x5a39d0 = Math[_0x45a5a0(363)](_0x192f24); _0x5a39d0 = 1 - ee * _0x5a39d0 * _0x5a39d0; let _0x24b77d = Math[_0x45a5a0(366)](_0x5a39d0); _0x285ff8 = _0x285ff8 * 180 / (a * (1 - ee) / (_0x5a39d0 * _0x24b77d) * PI), _0x535b7e = _0x535b7e * 180 / (a / _0x24b77d * Math[_0x45a5a0(371)](_0x192f24) * PI); const _0x284e3e = _0x8c9fa8 + _0x285ff8, _0xeaa270 = _0x3eb4b4 + _0x535b7e; return [_0x3eb4b4 * 2 - _0xeaa270, _0x8c9fa8 * 2 - _0x284e3e]; } } function bd09towgs84(_0x1a2b63, _0x227e77) { const _0x32ef67 = bd09togcj02(_0x1a2b63, _0x227e77), _0xca44e8 = gcj02towgs84(_0x32ef67[0], _0x32ef67[1]); return _0xca44e8; } function wgs84tobd09(_0x446871, _0x1e2e43) { const _0x1160e3 = wgs84togcj02(_0x446871, _0x1e2e43), _0x4c8cc1 = gcj02tobd09(_0x1160e3[0], _0x1160e3[1]); return _0x4c8cc1; } function transformlat(_0x260670, _0x455884) { const _0x100615 = _0x52e9; let _0x312cd6 = -100 + 2 * _0x260670 + 3 * _0x455884 + 0.2 * _0x455884 * _0x455884 + 0.1 * _0x260670 * _0x455884 + 0.2 * Math[_0x100615(366)](Math[_0x100615(377)](_0x260670)); return _0x312cd6 += (20 * Math[_0x100615(363)](6 * _0x260670 * PI) + 20 * Math[_0x100615(363)](2 * _0x260670 * PI)) * 2 / 3, _0x312cd6 += (20 * Math[_0x100615(363)](_0x455884 * PI) + 40 * Math[_0x100615(363)](_0x455884 / 3 * PI)) * 2 / 3, _0x312cd6 += (160 * Math[_0x100615(363)](_0x455884 / 12 * PI) + 320 * Math[_0x100615(363)](_0x455884 * PI / 30)) * 2 / 3, _0x312cd6; } function transformlng(_0x40df6e, _0x3132a6) { const _0x5c51f8 = _0x52e9; let _0x51b860 = 300 + _0x40df6e + 2 * _0x3132a6 + 0.1 * _0x40df6e * _0x40df6e + 0.1 * _0x40df6e * _0x3132a6 + 0.1 * Math[_0x5c51f8(366)](Math[_0x5c51f8(377)](_0x40df6e)); return _0x51b860 += (20 * Math["sin"](6 * _0x40df6e * PI) + 20 * Math[_0x5c51f8(363)](2 * _0x40df6e * PI)) * 2 / 3, _0x51b860 += (20 * Math["sin"](_0x40df6e * PI) + 40 * Math[_0x5c51f8(363)](_0x40df6e / 3 * PI)) * 2 / 3, _0x51b860 += (150 * Math[_0x5c51f8(363)](_0x40df6e / 12 * PI) + 300 * Math["sin"](_0x40df6e / 30 * PI)) * 2 / 3, _0x51b860; } function outOfChina(_0x3485cb, _0x58cf30) { return _0x3485cb < 72.004 || _0x3485cb > 137.8347 || (_0x58cf30 < 0.8293 || _0x58cf30 > 55.8271 || ![]); } function _0x5663() { const _0x3c6deb = ["rotateZ", "includes", "rotateX", "1863430FKjase", "sort", "15956871uBChqx", "headingPitchRollToFixedFrame", "multiply", "Cartesian3", "error", "isArray", "3545164ZDcbED", "west", "\u591A\u8FB9\u5F62\u5750\u6807\u96C6\u5408\u4E0D\u80FD\u5C11\u4E8E3\u4E2A", "replace", "push", "367557IVBdUe", "coordinates", "slice", "scale", "localFrameToFixedFrameGenerator", "9736656bsrCvQ", "toString", "join", "Ellipsoid", "WGS84", "toRadians", "miles", "259389IeGEbd", "toFixed", "random", "length", "2675752MfcGOT", "reverse", "north", "fromCssColorString", "sqrt", "rotateY", "Matrix4", "pow", "Math", "getTime", "split", "forEach", "Transforms"]; _0x5663 = function() { return _0x3c6deb; }; return _0x5663(); } (function(_0x5500f5, _0x3ca272) { const _0x318b54 = _0x2f50, _0x372bbe = _0x5500f5(); while (!![]) { try { const _0x4ff7c6 = -parseInt(_0x318b54(467)) / 1 + -parseInt(_0x318b54(471)) / 2 + -parseInt(_0x318b54(455)) / 3 + -parseInt(_0x318b54(450)) / 4 + -parseInt(_0x318b54(442)) / 5 + parseInt(_0x318b54(460)) / 6 + parseInt(_0x318b54(444)) / 7; if (_0x4ff7c6 === _0x3ca272) break; else _0x372bbe["push"](_0x372bbe["shift"]()); } catch (_0x2fe2ee) { _0x372bbe["push"](_0x372bbe["shift"]()); } } })(_0x5663, 923568); function _0x2f50(_0xb4aa85, _0x2a0fc0) { const _0x56632a = _0x5663(); return _0x2f50 = function(_0x2f5038, _0x371040) { _0x2f5038 = _0x2f5038 - 440; let _0x1a1efd = _0x56632a[_0x2f5038]; return _0x1a1efd; }, _0x2f50(_0xb4aa85, _0x2a0fc0); } let modelIdArr = []; const toRadians = (_0x583bc8) => { const _0x711daa = _0x2f50; return _0x590402[_0x711daa(479)][_0x711daa(465)](_0x583bc8); }; const lonlatToPosition = (_0x9068d0, _0x48abfb, _0x4d6610 = 0) => { const _0x413d48 = _0x2f50; return _0x590402[_0x413d48(447)]["fromDegrees"](_0x9068d0, _0x48abfb, _0x4d6610); }; const getColorByCssColor = (_0x190967) => { const _0x50b89f = _0x2f50; return _0x590402["Color"][_0x50b89f(474)](_0x190967); }; const getModelId = () => { const _0x59b27b = _0x2f50; let _0x529a8c = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], [_0x1875f6, _0x25ca7f] = [Math["floor"](Math["random"]() * (10 - 7 + 1) + 1), Math["floor"](Math[_0x59b27b(469)]() * (17 - 10 + 1) + 17)]; _0x529a8c = _0x529a8c[_0x59b27b(443)](() => 0.4 - Math[_0x59b27b(469)]())["slice"](_0x1875f6, _0x25ca7f)["slice"](0, 8)[_0x59b27b(462)](""); let _0x5c62a1 = new Date()[_0x59b27b(480)]() + _0x529a8c, _0x3affa6 = "modelId" + _0x5c62a1; return modelIdArr[_0x59b27b(440)](_0x3affa6) ? _0x3affa6 = getModelId() : modelIdArr[_0x59b27b(454)](_0x3affa6), _0x3affa6; }; const formatLintPosition = (_0x385223, _0x27e0b5 = 0.01) => { const _0x127370 = _0x2f50; if (_0x27e0b5 === 0) return _0x385223; let _0x94dc55 = lineString(_0x385223), _0x569cbf = lineChunk(_0x94dc55, _0x27e0b5, { "units": _0x127370(466) }), _0x3f8389 = _0x569cbf["features"], _0x19432a = []; return _0x3f8389[_0x127370(482)]((_0x358748) => { const _0x3f88b1 = _0x127370; let _0x3cd7d5 = _0x358748["geometry"], _0x563708 = _0x3cd7d5[_0x3f88b1(456)]; _0x19432a[_0x3f88b1(454)](..._0x563708); }), _0x19432a; }; const flortSub = (_0x15e731, _0x20dede) => { const _0x1fbef6 = _0x2f50; let _0x355d8c, _0x33c175, _0x552ac; try { _0x355d8c = (_0x15e731[_0x1fbef6(461)]()[_0x1fbef6(481)](".")[1] || "")["length"]; } catch (_0x113bd0) { _0x355d8c = 0; } try { _0x33c175 = (_0x20dede[_0x1fbef6(461)]()[_0x1fbef6(481)](".")[1] || "")[_0x1fbef6(470)]; } catch (_0x43d76b) { _0x33c175 = 0; } _0x552ac = Math["pow"](10, Math["max"](_0x355d8c, _0x33c175)); let _0x3e9811 = _0x355d8c >= _0x33c175 ? _0x355d8c : _0x33c175; return Number((Math["round"](_0x15e731 * _0x552ac - _0x20dede * _0x552ac) / _0x552ac)[_0x1fbef6(468)](_0x3e9811)); }; const flortAdd = (_0x236cfb, _0x234915) => { const _0x1a56eb = _0x2f50; var _0x4bfc8d, _0xff95ed, _0x3a4294; try { _0x4bfc8d = (_0x236cfb[_0x1a56eb(461)]()[_0x1a56eb(481)](".")[1] || "")[_0x1a56eb(470)]; } catch (_0x34beb4) { _0x4bfc8d = 0; } try { _0xff95ed = (_0x234915["toString"]()["split"](".")[1] || "")[_0x1a56eb(470)]; } catch (_0x110f5e) { _0xff95ed = 0; } return _0x3a4294 = Math["pow"](10, Math["max"](_0x4bfc8d, _0xff95ed)), Math["round"](_0x236cfb * _0x3a4294 + _0x234915 * _0x3a4294) / _0x3a4294; }; const flortMul = (_0x26a96e, _0xffd7c2) => { const _0x2bdc5e = _0x2f50; var _0x5fc321 = 0, _0x3d72b9 = _0x26a96e[_0x2bdc5e(461)](), _0x54e237 = _0xffd7c2["toString"](); try { _0x5fc321 += (_0x3d72b9[_0x2bdc5e(481)](".")[1] || "")["length"]; } catch (_0x498c9b) { console[_0x2bdc5e(448)](_0x498c9b); } try { _0x5fc321 += (_0x54e237[_0x2bdc5e(481)](".")[1] || "")[_0x2bdc5e(470)]; } catch (_0x15afe9) { console[_0x2bdc5e(448)](_0x15afe9); } return Number(_0x3d72b9[_0x2bdc5e(453)](".", "")) * Number(_0x54e237["replace"](".", "")) / Math[_0x2bdc5e(478)](10, _0x5fc321); }; const flortDiv = (_0x545957, _0x14dc4f) => { const _0x35804 = _0x2f50; if (_0x545957 == 0 || _0x14dc4f == 0) return 0; var _0x1b2c75 = 0, _0x22ddbd = 0, _0x59bdff, _0x1f42b4; try { _0x1b2c75 = (_0x545957[_0x35804(461)]()[_0x35804(481)](".")[1] || "")["length"]; } catch (_0x11d69b) { console[_0x35804(448)](_0x11d69b); } try { _0x22ddbd = (_0x14dc4f[_0x35804(461)]()["split"](".")[1] || "")[_0x35804(470)]; } catch (_0x51f82f) { console[_0x35804(448)](_0x51f82f); } return _0x59bdff = Number(_0x545957[_0x35804(461)]()[_0x35804(453)](".", "")), _0x1f42b4 = Number(_0x14dc4f[_0x35804(461)]()["replace"](".", "")), Number(_0x59bdff / _0x1f42b4 * Math[_0x35804(478)](10, _0x22ddbd - _0x1b2c75)); }; const isClockwise = (_0x44f9e3) => { const _0x5c2e80 = _0x2f50; if (!Array[_0x5c2e80(449)](_0x44f9e3) || _0x44f9e3[_0x5c2e80(470)] < 3) return console[_0x5c2e80(448)](_0x5c2e80(452)), ![]; let _0x27e626 = JSON["parse"](JSON["stringify"](_0x44f9e3)); _0x27e626[0] === _0x27e626[_0x27e626["length"] - 1] && (_0x27e626 = _0x27e626[_0x5c2e80(457)](0, _0x27e626[_0x5c2e80(470)] - 1)); _0x27e626 = _0x27e626[_0x5c2e80(472)](); let _0x4f4f43 = 0, _0x18f7bf = parseFloat(_0x27e626[_0x4f4f43]["x"]), _0x1dee06, _0x43912a, _0x5dfa1a; for (let _0x1aa815 = 0; _0x1aa815 < _0x27e626["length"]; _0x1aa815++) { parseFloat(_0x27e626[_0x1aa815]["x"]) > _0x18f7bf && (_0x18f7bf = parseFloat(_0x27e626[_0x1aa815]["x"]), _0x4f4f43 = _0x1aa815); } if (_0x4f4f43 === 0) _0x1dee06 = _0x27e626[_0x27e626[_0x5c2e80(470)] - 1], _0x43912a = _0x27e626[_0x4f4f43], _0x5dfa1a = _0x27e626[_0x4f4f43 + 1]; else _0x4f4f43 === _0x27e626[_0x5c2e80(470)] - 1 ? (_0x1dee06 = _0x27e626[_0x4f4f43 - 1], _0x43912a = _0x27e626[_0x4f4f43], _0x5dfa1a = _0x27e626[0]) : (_0x1dee06 = _0x27e626[_0x4f4f43 - 1], _0x43912a = _0x27e626[_0x4f4f43], _0x5dfa1a = _0x27e626[_0x4f4f43 + 1]); const _0xe28f44 = parseFloat(_0x1dee06["x"]), _0xc2eb4 = parseFloat(_0x1dee06["y"]), _0xfdfb61 = parseFloat(_0x43912a["x"]), _0x3bd65e = parseFloat(_0x43912a["y"]), _0xc60480 = parseFloat(_0x5dfa1a["x"]), _0x2032f8 = parseFloat(_0x5dfa1a["y"]), _0x5a98d9 = flortSub(flortDiv(flortSub(_0xe28f44, _0xc60480), flortSub(_0x3bd65e, _0x2032f8)), flortDiv(flortSub(_0xfdfb61, _0xc60480), flortSub(_0xc2eb4, _0x2032f8))); return _0x5a98d9 < 0; }; const scalePolygon = (_0x593045, _0x1418db) => { const _0x360b9b = _0x2f50; if (!Array[_0x360b9b(449)](_0x593045) || _0x593045[_0x360b9b(470)] < 3) return console["error"](_0x360b9b(452)), []; let _0x271fb6 = _0x593045; const _0x123e80 = isClockwise(_0x271fb6) ? -_0x1418db : _0x1418db, _0x6e097d = (_0x43866e, _0x399495) => Math[_0x360b9b(475)](flortAdd(flortMul(_0x43866e, _0x43866e), flortMul(_0x399495, _0x399495))), _0x510aa9 = _0x271fb6["length"], _0x10bde2 = []; for (let _0xa1e8c3 = 0; _0xa1e8c3 < _0x510aa9; _0xa1e8c3++) { const _0x564cc6 = _0x271fb6[_0xa1e8c3], _0x361613 = _0x271fb6[_0xa1e8c3 === 0 ? _0x510aa9 - 1 : _0xa1e8c3 - 1], _0x4d250f = _0x271fb6[_0xa1e8c3 === _0x510aa9 - 1 ? 0 : _0xa1e8c3 + 1], _0x2037a3 = flortSub(_0x361613["x"], _0x564cc6["x"]), _0xe23d4e = flortSub(_0x361613["y"], _0x564cc6["y"]), _0x60d6c2 = _0x6e097d(_0x2037a3, _0xe23d4e); let _0x210073 = flortDiv(_0x2037a3, _0x60d6c2), _0x8d4fbe = flortDiv(_0xe23d4e, _0x60d6c2); const _0x5f427a = flortSub(_0x4d250f["x"], _0x564cc6["x"]), _0x2ef6b1 = flortSub(_0x4d250f["y"], _0x564cc6["y"]), _0x1d1d16 = _0x6e097d(_0x5f427a, _0x2ef6b1); let _0x164d5c = flortDiv(_0x5f427a, _0x1d1d16), _0x4b6323 = flortDiv(_0x2ef6b1, _0x1d1d16); const _0x18f84d = flortDiv(-_0x123e80, Math["sqrt"](flortDiv(flortSub(1, flortAdd(flortMul(_0x210073, _0x164d5c), flortMul(_0x8d4fbe, _0x4b6323))), 2))); flortAdd(flortMul(_0x2037a3, _0x2ef6b1), -1 * flortMul(_0xe23d4e, _0x5f427a)) < 0 && (_0x164d5c *= -1, _0x4b6323 *= -1, _0x210073 *= -1, _0x8d4fbe *= -1); const _0x39a289 = flortAdd(_0x210073, _0x164d5c), _0x16aeac = flortAdd(_0x8d4fbe, _0x4b6323), _0xb23484 = flortDiv(_0x18f84d, _0x6e097d(_0x39a289, _0x16aeac)), _0x2cca9e = flortMul(_0x39a289, _0xb23484), _0x2f75bd = flortMul(_0x16aeac, _0xb23484), _0x22b023 = flortAdd(_0x2cca9e, _0x564cc6["x"]), _0x3b8443 = flortAdd(_0x2f75bd, _0x564cc6["y"]); _0x10bde2[_0xa1e8c3] = { "x": _0x22b023, "y": _0x3b8443 }; } return _0x10bde2; }; const getModelMatrixByOptions = (_0x1b6d68, _0x3c05fb) => { const _0x1eadcb = _0x2f50, _0x53bd8b = _0x590402[_0x1eadcb(479)][_0x1eadcb(465)](_0x3c05fb[_0x1eadcb(484)]), _0x5171d9 = _0x590402[_0x1eadcb(479)][_0x1eadcb(465)](_0x3c05fb[_0x1eadcb(441)]), _0x2fc835 = _0x590402["Math"][_0x1eadcb(465)](_0x3c05fb[_0x1eadcb(476)]), _0x1e1c7a = new _0x590402["HeadingPitchRoll"](_0x53bd8b, _0x5171d9, _0x2fc835), _0x24594e = _0x590402[_0x1eadcb(483)][_0x1eadcb(459)](_0x1eadcb(473), _0x1eadcb(451)); let _0x540f9c = _0x590402[_0x1eadcb(483)][_0x1eadcb(445)](_0x1b6d68, _0x1e1c7a, _0x590402[_0x1eadcb(463)][_0x1eadcb(464)], _0x24594e), _0x42c5b9 = _0x590402[_0x1eadcb(477)]["fromUniformScale"](_0x3c05fb[_0x1eadcb(458)]); return _0x540f9c = _0x590402["Matrix4"][_0x1eadcb(446)](_0x540f9c, _0x42c5b9, _0x540f9c), _0x540f9c; }; const CesiumUnit = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, toRadians, lonlatToPosition, getColorByCssColor, getModelId, formatLintPosition, flortSub, flortAdd, flortMul, flortDiv, isClockwise, scalePolygon, getModelMatrixByOptions }, Symbol.toStringTag, { value: "Module" })); const _0x9de259 = _0x12a0; (function(_0x451dfe, _0x29ba0a) { const _0x5141e1 = _0x12a0, _0x1e55e2 = _0x451dfe(); while (!![]) { try { const _0x471b33 = parseInt(_0x5141e1(403)) / 1 * (parseInt(_0x5141e1(298)) / 2) + -parseInt(_0x5141e1(240)) / 3 + parseInt(_0x5141e1(345)) / 4 * (-parseInt(_0x5141e1(443)) / 5) + parseInt(_0x5141e1(196)) / 6 + -parseInt(_0x5141e1(285)) / 7 * (-parseInt(_0x5141e1(392)) / 8) + -parseInt(_0x5141e1(296)) / 9 * (parseInt(_0x5141e1(399)) / 10) + parseInt(_0x5141e1(426)) / 11 * (parseInt(_0x5141e1(438)) / 12); if (_0x471b33 === _0x29ba0a) break; else _0x1e55e2["push"](_0x1e55e2["shift"]()); } catch (_0xa65703) { _0x1e55e2["push"](_0x1e55e2["shift"]()); } } })(_0x59a8, 814290); function _0x12a0(_0x3673ce, _0x58f746) { const _0x59a8d7 = _0x59a8(); return _0x12a0 = function(_0x12a099, _0x222c53) { _0x12a099 = _0x12a099 - 179; let _0x2f2890 = _0x59a8d7[_0x12a099]; return _0x2f2890; }, _0x12a0(_0x3673ce, _0x58f746); } class TilesetLoader { constructor(_0x239b4f, _0x24c564, _0x430bf3) { __publicField(this, _a); __publicField(this, "tileset"); __publicField(this, _b); __publicField(this, _c); __publicField(this, _d); __publicField(this, _e); __publicField(this, _f); __publicField(this, _g); __publicField(this, _h); __publicField(this, "rotateX"); __publicField(this, _i); __publicField(this, _j); __publicField(this, _k); __publicField(this, "resourceOpt"); __publicField(this, "opacity"); __publicField(this, _l); __publicField(this, _m); __publicField(this, _n); __publicField(this, "tilesetModelObj"); __publicField(this, _o); __publicField(this, "id"); __publicField(this, "cesiumObj"); __publicField(this, _p); __publicField(this, _q); __publicField(this, _r); __publicField(this, _s); __publicField(this, "lat"); __publicField(this, "orginMatrixInverse"); __publicField(this, "growthAnimationMap", /* @__PURE__ */ new Map()); __publicField(this, _t, 0); __publicField(this, _u, null); __publicField(this, _v); __publicField(this, _w); __publicField(this, _x); __publicField(this, _y); __publicField(this, "opt"); __publicField(this, "compareResult"); __publicField(this, _z); __publicField(this, _A); __publicField(this, _B); __publicField(this, _C); __publicField(this, _D); __publicField(this, "boundingSphereCenter"); __publicField(this, "tilesetModelMatrix"); __publicField(this, _E, /* @__PURE__ */ new Map()); const _0x52bf17 = _0x9de259; this[_0x52bf17(270)] = _0x52bf17(312), this["opt"] = _0x430bf3, this[_0x52bf17(412)] = null, this["tileset"] = null, this[_0x52bf17(321)] = {}, this[_0x52bf17(268)] = [], this[_0x52bf17(367)] = null, this[_0x52bf17(369)] = ![], this[_0x52bf17(381)] = ![], this[_0x52bf17(349)] = null, this[_0x52bf17(310)] = null, this[_0x52bf17(303)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(303)]) || null, this[_0x52bf17(330)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(330)]) || null, this[_0x52bf17(243)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(243)]) || 0, this[_0x52bf17(276)] = (_0x430bf3 == null ? void 0 : _0x430bf3["offsetX"]) || 0, this[_0x52bf17(353)] = (_0x430bf3 == null ? void 0 : _0x430bf3["offsetY"]) || 0, this[_0x52bf17(184)] = (_0x430bf3 == null ? void 0 : _0x430bf3["rotateX"]) || 0, this[_0x52bf17(442)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(442)]) || 0, this[_0x52bf17(387)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(387)]) || 0, this["opacity"] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(409)]) !== void 0 ? _0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(409)] : 1, this["scale"] = (_0x430bf3 == null ? void 0 : _0x430bf3["scale"]) !== void 0 ? _0x430bf3 == null ? void 0 : _0x430bf3["scale"] : 1, this[_0x52bf17(398)] = (_0x430bf3 == null ? void 0 : _0x430bf3["color"]) || "", this[_0x52bf17(432)] = (_0x430bf3 == null ? void 0 : _0x430bf3["compareColorObj"]) || {}, this[_0x52bf17(262)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(262)]) || "", this["compareType"] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(290)]) || _0x52bf17(203), this["resourceOpt"] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(247)]) || 0, this["maximumCacheOverflowBytes"] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(299)]) || 536870912, this[_0x52bf17(191)] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(191)]) || ![], this["id"] = (_0x430bf3 == null ? void 0 : _0x430bf3["id"]) || "", this["splitDirection"] = (_0x430bf3 == null ? void 0 : _0x430bf3[_0x52bf17(372)]) || _0x52bf17(396), this[_0x52bf17(258)] = {}, this["centerMatrix4"] = null, this[_0x52bf17(225)] = null, this[_0x52bf17(350)] = _0x239b4f, this[_0x52bf17(382)] = null, this["url"] = _0x24c564, this[_0x52bf17(188)] = 0, this["stylesByIdObj"] = [], this["layerList"] = [], this["tilesetModelMatrix"] = null, this[_0x52bf17(449)](), this[_0x52bf17(209)] = {}; } [(_a = _0x9de259(270), _b = _0x9de259(412), _c = _0x9de259(321), _d = _0x9de259(369), _e = _0x9de259(381), _f = _0x9de259(243), _g = _0x9de259(276), _h = _0x9de259(353), _i = _0x9de259(442), _j = _0x9de259(387), _k = _0x9de259(451), _l = _0x9de259(349), _m = _0x9de259(310), _n = _0x9de259(268), _o = _0x9de259(187), _p = _0x9de259(398), _q = _0x9de259(232), _r = _0x9de259(372), _s = _0x9de259(303), _t = _0x9de259(180), _u = _0x9de259(421), _v = _0x9de259(188), _w = _0x9de259(262), _x = _0x9de259(264), _y = _0x9de259(440), _z = _0x9de259(432), _A = _0x9de259(290), _B = _0x9de259(299), _C = _0x9de259(191), _D = _0x9de259(367), _E = _0x9de259(215), _0x9de259(259))]() { const _0x54b3b6 = _0x9de259; return this["id"] || this[_0x54b3b6(232)][_0x54b3b6(335)](this[_0x54b3b6(232)][_0x54b3b6(323)]("/") + 1); } ["getControlValue"]() { const _0xe87413 = _0x9de259; return { "lon": this[_0xe87413(303)], "lat": this["lat"], "offsetX": this[_0xe87413(276)], "offsetY": this[_0xe87413(353)], "height": this[_0xe87413(243)], "rotateX": this[_0xe87413(184)], "rotateY": this[_0xe87413(442)], "rotateZ": this["rotateZ"], "scale": this["scale"], "opacity": this["opacity"] }; } ["getControlOptions"]() { const _0x4fed16 = _0x9de259; let _0x8a750b = []; return this[_0x4fed16(303)] && this["lat"] && (_0x8a750b = [{ "name": "\u7ECF\u5EA6", "value": _0x4fed16(303), "type": _0x4fed16(375), "step": 1e-5 }, { "name": "\u7EAC\u5EA6", "value": _0x4fed16(330), "type": _0x4fed16(375), "step": 1e-5 }]), _0x8a750b[_0x4fed16(397)]([{ "name": _0x4fed16(276), "value": _0x4fed16(276), "type": _0x4fed16(375), "step": 1e-3 }, { "name": _0x4fed16(353), "value": "offsetY", "type": "number", "step": 1e-3 }, { "name": "\u9AD8\u5EA6", "value": _0x4fed16(243), "type": _0x4fed16(375) }, { "name": "\u7F29\u653E", "value": _0x4fed16(451), "type": _0x4fed16(375), "step": 0.01 }, { "name": "\u989C\u8272", "value": _0x4fed16(398), "type": _0x4fed16(398) }, { "name": "rotateX", "value": _0x4fed16(184), "type": _0x4fed16(231), "min": -180, "max": 180 }, { "name": _0x4fed16(442), "value": "rotateY", "type": _0x4fed16(231), "min": -180, "max": 180 }, { "name": _0x4fed16(387), "value": _0x4fed16(387), "type": "slider", "min": -180, "max": 180 }, { "name": _0x4fed16(179), "value": _0x4fed16(409), "type": "slider", "min": 0, "max": 1, "step": 0.01 }]); } ["updateStyle"](_0x443926) { const _0x125564 = _0x9de259; this[_0x125564(276)] = _0x443926[_0x125564(276)], this["offsetY"] = _0x443926[_0x125564(353)], this[_0x125564(243)] = _0x443926[_0x125564(243)], this[_0x125564(409)] = _0x443926[_0x125564(409)], this[_0x125564(451)] = _0x443926[_0x125564(451)], this[_0x125564(184)] = _0x443926[_0x125564(184)], this["rotateY"] = _0x443926[_0x125564(442)], this[_0x125564(387)] = _0x443926[_0x125564(387)], this["color"] = _0x443926["color"] || "", this[_0x125564(305)] = null; if (_0x443926[_0x125564(303)] && _0x443926[_0x125564(330)]) { this["lon"] = _0x443926[_0x125564(303)], this[_0x125564(330)] = _0x443926[_0x125564(330)]; let [_0x24a5a5, _0x3a9dbd] = this[_0x125564(350)][_0x125564(416)](this[_0x125564(303)], this[_0x125564(330)]); this[_0x125564(394)][_0x125564(404)]["center"] = _0x590402["Cartesian3"][_0x125564(378)](_0x24a5a5, _0x3a9dbd, this[_0x125564(243)]), this[_0x125564(187)] = null, this[_0x125564(244)](); } this[_0x125564(377)](this[_0x125564(243)], this["offsetX"], this[_0x125564(353)]), this[_0x125564(199)](), this[_0x125564(244)](); } ["readyFinish"](_0x5bcbee) { const _0x448bfb = _0x9de259; _0x5bcbee && (this[_0x448bfb(369)] ? _0x5bcbee(this[_0x448bfb(394)]) : this[_0x448bfb(349)] = _0x5bcbee); } [_0x9de259(241)](_0x3f0ca6) { const _0x451377 = _0x9de259; _0x3f0ca6 && (this[_0x451377(268)][_0x451377(272)] !== 0 ? _0x3f0ca6(this[_0x451377(268)]) : this["loadedFun"] = _0x3f0ca6); } [_0x9de259(376)]() { return new Promise((_0x41e665) => { const _0x222146 = _0x12a0; if (this[_0x222146(189)][_0x222146(394)]) _0x41e665(this[_0x222146(189)][_0x222146(394)][_0x222146(245)]()); else { let _0x1fd573 = this["url"]; this[_0x222146(247)] && (this[_0x222146(247)][_0x222146(232)] = this[_0x222146(232)], _0x1fd573 = new _0x590402[_0x222146(414)](this["resourceOpt"])); let _0x3aff30 = { "maximumCacheOverflowBytes": this[_0x222146(299)], "cacheBytes": this[_0x222146(299)], "projectTo2D": this[_0x222146(191)] }; _0x590402[_0x222146(408)][_0x222146(328)](_0x1fd573, _0x3aff30)["then"]((_0xe69a55) => { _0x41e665(_0xe69a55); }); } }); } [_0x9de259(449)]() { const _0x24a677 = _0x9de259; this[_0x24a677(376)]()[_0x24a677(293)]((_0x5ba9bf) => { const _0x15643d = _0x24a677; this[_0x15643d(394)] = _0x5ba9bf; let _0x484d3b = _0x590402[_0x15643d(415)]["fromArray"](_0x5ba9bf[_0x15643d(338)][_0x15643d(194)]); this[_0x15643d(382)] = _0x590402[_0x15643d(415)][_0x15643d(340)](_0x484d3b, new _0x590402[_0x15643d(415)]()); if (_0x5ba9bf[_0x15643d(238)][_0x15643d(333)] && _0x5ba9bf[_0x15643d(238)][_0x15643d(333)] instanceof _0x590402[_0x15643d(228)]) { let _0x43b88d = null, _0x1e373b = this[_0x15643d(189)][_0x15643d(319)]; _0x1e373b = _0x1e373b === void 0 ? !![] : _0x1e373b; if (this["cesiumObj"][_0x15643d(192)] && _0x1e373b) _0x43b88d = new _0x590402[_0x15643d(287)](), this[_0x15643d(350)][_0x15643d(448)][_0x15643d(245)](_0x43b88d); else { if (this[_0x15643d(303)] !== null && this[_0x15643d(330)] !== null) { let [_0x4c3775, _0x351edf] = this["cesiumObj"]["lonlatToWGS84"](this[_0x15643d(303)], this[_0x15643d(330)]); _0x43b88d = _0x590402["Cartesian3"][_0x15643d(378)](_0x4c3775, _0x351edf, 0); } else { let _0x40c404 = _0x5ba9bf[_0x15643d(404)]; _0x43b88d = _0x40c404[_0x15643d(283)]; } } if (_0x43b88d) { let _0x322891 = _0x5ba9bf["boundingSphere"]["center"][_0x15643d(245)](); const _0x5e82c4 = _0x590402["Cartographic"][_0x15643d(208)](_0x322891), _0x2eb391 = _0x590402[_0x15643d(267)][_0x15643d(208)](_0x43b88d), _0x157b17 = _0x590402[_0x15643d(287)][_0x15643d(386)](_0x5e82c4[_0x15643d(266)], _0x5e82c4["latitude"], 0); let _0x57c1c8 = this[_0x15643d(276)] / 1e5, _0xf1273f = this[_0x15643d(353)] / 1e5; const _0x35d4b2 = _0x590402[_0x15643d(287)]["fromRadians"](_0x2eb391["longitude"] + _0x57c1c8, _0x2eb391[_0x15643d(280)] + _0xf1273f, this["height"]), _0x10f1a9 = _0x590402[_0x15643d(287)]["subtract"](_0x35d4b2, _0x157b17, new _0x590402[_0x15643d(287)]()); _0x5ba9bf[_0x15643d(183)] = _0x590402[_0x15643d(415)][_0x15643d(341)](_0x10f1a9); } } else { this[_0x15643d(377)](this[_0x15643d(243)], 0, 0); if (this["cesiumObj"][_0x15643d(192)]) { let _0x5ec935 = new _0x590402[_0x15643d(287)](); this["cesiumObj"][_0x15643d(448)]["clone"](_0x5ec935), _0x5ba9bf[_0x15643d(404)][_0x15643d(283)] = _0x5ec935, this[_0x15643d(225)] = _0x5ec935; } else { if (this[_0x15643d(303)] !== null && this[_0x15643d(330)] !== null) { let [_0x358b44, _0x539a31] = this[_0x15643d(350)][_0x15643d(416)](this[_0x15643d(303)], this["lat"]); const _0x663b5 = _0x590402[_0x15643d(287)][_0x15643d(378)](_0x358b44, _0x539a31, this[_0x15643d(243)]); _0x5ba9bf["boundingSphere"][_0x15643d(283)] = _0x663b5, this["boundingSphereCenter"] = _0x663b5; } } this["setTileMatrix4"](), this[_0x15643d(377)](this[_0x15643d(243)], this[_0x15643d(276)], this["offsetY"]); } this[_0x15643d(350)]["view"][_0x15643d(379)][_0x15643d(304)][_0x15643d(417)](_0x5ba9bf), this["cesiumObj"][_0x15643d(419)] && this[_0x15643d(372)] && (_0x5ba9bf[_0x15643d(372)] = _0x590402[_0x15643d(284)][this[_0x15643d(372)]]), !this[_0x15643d(189)][_0x15643d(327)] && this["cesiumObj"][_0x15643d(182)](this), !this["id"] && (this["id"] = getModelId()), this[_0x15643d(350)][_0x15643d(366)][this["id"]] = this, this[_0x15643d(349)] && this[_0x15643d(349)](this[_0x15643d(394)]), this["finish"] = !![], this["tileset"][_0x15643d(348)] = this, this[_0x15643d(394)]["id"] = this["id"], this[_0x15643d(199)](), _0x5ba9bf[_0x15643d(354)][_0x15643d(445)](() => { const _0x3331c7 = _0x15643d; let _0x83948b = this[_0x3331c7(205)](_0x5ba9bf[_0x3331c7(238)]), _0x595688 = {}, _0x21ac9a = /* @__PURE__ */ new Map(); _0x83948b[_0x3331c7(422)]((_0x4d2b4a) => { const _0x3a96f2 = _0x3331c7; console[_0x3a96f2(320)](_0x4d2b4a); let _0x1d3bde = _0x4d2b4a["featuresLength"]; for (let _0x3e5140 = 0; _0x3e5140 < _0x1d3bde; _0x3e5140++) { let _0x227dfd = _0x4d2b4a[_0x3a96f2(326)](_0x3e5140), _0x3780d7 = _0x227dfd[_0x3a96f2(249)]("id"), _0x2ef9e7 = _0x227dfd[_0x3a96f2(223)]; _0x2ef9e7 !== void 0 && _0x3780d7 !== void 0 && _0x21ac9a[_0x3a96f2(230)](_0x2ef9e7, _0x3780d7), _0x595688[_0x3780d7] ? _0x595688[_0x3780d7][_0x3a96f2(233)](_0x227dfd) : _0x595688[_0x3780d7] = [_0x227dfd]; } }), this[_0x3331c7(258)] = _0x595688, this[_0x3331c7(215)] = _0x21ac9a, this[_0x3331c7(268)] = _0x83948b, this["opt"][_0x3331c7(200)] && this[_0x3331c7(189)][_0x3331c7(200)](_0x595688); }), this["loadedFun"] && this[_0x15643d(310)](this["contentList"]), this[_0x15643d(381)] = !![]; }), this[_0x24a677(262)] && this["addComparetileset"](), this["opt"][_0x24a677(282)] && this[_0x24a677(420)](); } ["getSphereBounding"]() { const _0x3afb60 = _0x9de259; let _0x3a914b = [-217774947819868e-8, 438873447251549e-8, 407006229710294e-8, 0.430175895748655], _0x5b4fd6 = new _0x590402["Cartesian3"](_0x3a914b[0], _0x3a914b[1], _0x3a914b[2]); if (this[_0x3afb60(382)] && this[_0x3afb60(394)]["_root"][_0x3afb60(194)]) { const _0x31d149 = _0x590402[_0x3afb60(415)][_0x3afb60(364)](this[_0x3afb60(394)][_0x3afb60(338)][_0x3afb60(194)], this[_0x3afb60(382)], new _0x590402[_0x3afb60(415)]()); _0x5b4fd6 = _0x590402[_0x3afb60(415)][_0x3afb60(260)](_0x31d149, _0x5b4fd6, new _0x590402[_0x3afb60(287)]()); } return new _0x590402["BoundingSphere"](_0x5b4fd6, _0x3a914b[3]); } [_0x9de259(234)]() { const _0x1a55ab = _0x9de259; this[_0x1a55ab(264)] = {}, this[_0x1a55ab(237)](); } [_0x9de259(237)](_0x6f6f2b, _0x2c53ca = "#fff", _0x181c09 = 1) { const _0x18a0d7 = _0x9de259; let _0x400bb6 = []; _0x6f6f2b && (!Array[_0x18a0d7(435)](_0x6f6f2b) && (_0x6f6f2b = [_0x6f6f2b]), _0x6f6f2b[_0x18a0d7(422)]((_0x508eb3) => { const _0x3c9044 = _0x18a0d7; this[_0x3c9044(264)][_0x508eb3] = [_0x2c53ca, _0x181c09]; })); let _0x535759 = Object[_0x18a0d7(204)](this["stylesByIdObj"]); _0x535759[_0x18a0d7(422)]((_0x1fc291) => { const _0x3ee2cc = _0x18a0d7; let _0x1a10ab = this[_0x3ee2cc(264)][_0x1fc291]; new _0x590402["Cesium3DTileStyle"](); let _0x4dd419 = _0x590402[_0x3ee2cc(250)]["fromCssColorString"](_0x1a10ab[0])[_0x3ee2cc(362)](), _0x1490e6 = _0x3ee2cc(316) + _0x4dd419[0] + "," + _0x4dd419[1] + ", " + _0x4dd419[2] + ", " + _0x1a10ab[1] + _0x3ee2cc(355); _0x400bb6["push"]([_0x3ee2cc(371) + _0x1fc291 + "'", _0x1490e6]); }); let _0x15da9c = null; if (this[_0x18a0d7(398)]) { new _0x590402[_0x18a0d7(343)](); let _0x3bb3bd = _0x590402[_0x18a0d7(250)][_0x18a0d7(236)](this[_0x18a0d7(398)])["toBytes"](); _0x15da9c = "color('rgba(" + _0x3bb3bd[0] + "," + _0x3bb3bd[1] + ", " + _0x3bb3bd[2] + ", " + this[_0x18a0d7(409)] + _0x18a0d7(355); } _0x15da9c && _0x400bb6[_0x18a0d7(233)]([_0x18a0d7(402), _0x15da9c]), this[_0x18a0d7(394)][_0x18a0d7(384)] = new _0x590402[_0x18a0d7(343)]({ "color": { "conditions": _0x400bb6 } }); } [_0x9de259(331)](_0x690410) { const _0x3ecced = _0x9de259; this[_0x3ecced(398)] = _0x690410, this[_0x3ecced(199)](); } [_0x9de259(199)](_0x41cbff) { const _0x176f98 = _0x9de259; _0x41cbff === void 0 && (_0x41cbff = this[_0x176f98(409)]); this[_0x176f98(409)] = _0x41cbff; if (this[_0x176f98(398)]) { let _0x4159d9 = new _0x590402[_0x176f98(343)](), _0xba0e77 = _0x590402[_0x176f98(250)][_0x176f98(236)](this["color"])["toBytes"](); _0x4159d9["color"] = "color('rgba(" + _0xba0e77[0] + "," + _0xba0e77[1] + ", " + _0xba0e77[2] + ", " + this[_0x176f98(409)] + _0x176f98(355), this[_0x176f98(394)]["style"] = _0x4159d9; } else this[_0x176f98(394)][_0x176f98(384)] = new _0x590402[_0x176f98(343)]({ "color": { "evaluateColor": () => { const _0x3058d4 = _0x176f98; return new _0x590402["Color"](1, 1, 1, this[_0x3058d4(409)]); } } }); } ["setMemberAnimation"]() { const _0x43bd1a = _0x9de259; if (!this[_0x43bd1a(394)] || this["growthAnimationMap"]["size"] === 0) return; this[_0x43bd1a(394)][_0x43bd1a(430)] && (this["tileset"][_0x43bd1a(430)] = void 0); const _0x3f812a = new _0x590402[_0x43bd1a(391)]({ "uniforms": { "u_time": { "type": _0x590402[_0x43bd1a(195)][_0x43bd1a(251)], "value": this[_0x43bd1a(180)] / 1e3 } }, "lightingModel": _0x590402[_0x43bd1a(219)][_0x43bd1a(222)], "translucencyMode": _0x590402[_0x43bd1a(401)]["TRANSLUCENT"], "fragmentShaderText": "void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {\n // \u83B7\u53D6featureId\n int featureId = int(fsInput.attributes.featureId_0);\n float progress = 0.0;\n float opacity = 0.0; // \u9ED8\u8BA4\u900F\u660E\u5EA6\u4E3A0\n // \u6839\u636E\u4E0D\u540C\u7684\u751F\u957F\u65B9\u5411\u8BA1\u7B97\u88C1\u526A\u5E73\u9762\n float clipValue = 0.0;\n \n // \u6784\u5EFA\u7A7A\u95F4\u4F4D\u7F6E\uFF08\u6A21\u578B\u5750\u6807\uFF09\n vec3 positionMC = fsInput.attributes.positionMC;\n vec2 texCoordId = fsInput.attributes.positionMC.xy;\n \n // \u6839\u636E\u6784\u4EF6ID\u8BA1\u7B97\u52A8\u753B\u53C2\u6570\n" + this[_0x43bd1a(339)]() + _0x43bd1a(307) }); console["log"](_0x3f812a[_0x43bd1a(429)]), this[_0x43bd1a(394)][_0x43bd1a(430)] = _0x3f812a; } [_0x9de259(339)]() { const _0x28cbeb = _0x9de259; let _0x423bca = ""; const _0x148667 = /* @__PURE__ */ new Map(); return this[_0x28cbeb(274)][_0x28cbeb(422)]((_0x2f6c7b, _0x19f701) => { const _0x280e19 = _0x28cbeb; _0x148667[_0x280e19(230)](_0x19f701[_0x280e19(418)](), _0x2f6c7b); }), this[_0x28cbeb(215)][_0x28cbeb(422)]((_0xfb38c9, _0x1134b7) => { const _0x3b6495 = _0x28cbeb; if (_0x148667[_0x3b6495(337)](_0xfb38c9)) { const _0xb05745 = _0x148667[_0x3b6495(275)](_0xfb38c9), _0x2ba077 = _0xb05745[_0x3b6495(332)], _0x139bcd = _0xb05745[_0x3b6495(334)] / 1e3, _0x3e9305 = _0xb05745["duration"] / 1e3; _0x423bca += _0x3b6495(427) + _0x1134b7 + ") {\n", _0x423bca += _0x3b6495(446) + _0x139bcd["toFixed"](3) + ";\n", _0x423bca += _0x3b6495(431) + _0x3e9305[_0x3b6495(261)](3) + ";\n", _0x423bca += " if (u_time < start) {discard;}\n", _0x423bca += _0x3b6495(318), _0x423bca += " progress = " + _0x2ba077["toFixed"](3) + _0x3b6495(395) + _0x3e9305[_0x3b6495(261)](3) + ";\n", _0x423bca += _0x3b6495(227), _0x423bca += " progress = " + _0x2ba077["toFixed"](3) + _0x3b6495(411), _0x423bca += _0x3b6495(324), _0x423bca += _0x3b6495(385), _0x423bca += _0x3b6495(292); if (_0xb05745[_0x3b6495(217)] !== _0x3b6495(271)) { let _0x580e62; switch (_0xb05745[_0x3b6495(217)]) { case _0x3b6495(363): _0x580e62 = _0x3b6495(263); break; case _0x3b6495(295): _0x580e62 = "clipValue = 1.0 - texCoordId.y;"; break; case "left-right": _0x580e62 = _0x3b6495(351); break; case _0x3b6495(273): _0x580e62 = _0x3b6495(246); break; default: _0x580e62 = "clipValue = texCoordId.y;"; } _0x423bca += _0x3b6495(428) + _0x580e62 + _0x3b6495(361); } else _0x423bca += _0x3b6495(425); _0x423bca += " }\n"; } }), _0x423bca; } [_0x9de259(368)](_0x5e688c) { const _0x3e9d17 = _0x9de259; this[_0x3e9d17(344)](), this["growthAnimationMap"][_0x3e9d17(302)](), _0x5e688c["forEach"]((_0x360588) => { const _0x10a61c = _0x3e9d17; this[_0x10a61c(274)]["set"](_0x360588[_0x10a61c(359)], { "startTime": _0x360588[_0x10a61c(198)], "duration": _0x360588["duration"], "animationType": _0x360588[_0x10a61c(217)] || _0x10a61c(363), "finalPercentage": _0x360588[_0x10a61c(332)] !== void 0 ? Math[_0x10a61c(329)](0, Math[_0x10a61c(380)](1, _0x360588[_0x10a61c(332)])) : 1 }); }); let _0x4f7a17 = _0x5e688c[_0x3e9d17(235)]((_0x224700) => _0x224700["delay"]), _0x160519 = _0x4f7a17[_0x3e9d17(272)] === 0 ? 0 : Math[_0x3e9d17(329)](..._0x4f7a17), _0x56fde6 = _0x5e688c[_0x3e9d17(235)]((_0x3698a6) => _0x3698a6["duration"]), _0x5dc4b9 = _0x56fde6[_0x3e9d17(272)] === 0 ? 0 : Math[_0x3e9d17(329)](..._0x56fde6); this[_0x3e9d17(188)] = _0x160519 + _0x5dc4b9; } [_0x9de259(278)]() { const _0x53ed93 = _0x9de259; if (this["growthAnimationMap"][_0x53ed93(437)] === 0) { console[_0x53ed93(390)](_0x53ed93(389)); return; } if (this[_0x53ed93(421)]) return; this[_0x53ed93(373)](), this[_0x53ed93(421)] = setInterval(() => { const _0x2a8305 = _0x53ed93; this[_0x2a8305(180)] += 100; this["tileset"] && this[_0x2a8305(394)]["customShader"] && (console[_0x2a8305(320)](this[_0x2a8305(180)] / 1e3), this[_0x2a8305(394)][_0x2a8305(430)][_0x2a8305(346)](_0x2a8305(322), this[_0x2a8305(180)] / 1e3)); const _0x219916 = Array[_0x2a8305(388)](this[_0x2a8305(274)][_0x2a8305(269)]())[_0x2a8305(190)]((_0x12c332) => this[_0x2a8305(180)] >= _0x12c332[_0x2a8305(334)] + _0x12c332["duration"]); (_0x219916 || this["animationTime"] >= this[_0x2a8305(188)]) && this[_0x2a8305(344)](); }, 100); } [_0x9de259(344)]() { const _0x37ce6a = _0x9de259; this[_0x37ce6a(180)] = 0, this[_0x37ce6a(421)] && (clearInterval(this[_0x37ce6a(421)]), this[_0x37ce6a(421)] = null), this["tileset"] && this[_0x37ce6a(394)]["customShader"] && console[_0x37ce6a(320)](this[_0x37ce6a(394)][_0x37ce6a(430)]); } [_0x9de259(197)]() { const _0x2c39df = _0x9de259; this["animationTimer"] && (clearInterval(this[_0x2c39df(421)]), this[_0x2c39df(421)] = null); } ["restart"]() { const _0x1b4039 = _0x9de259; this[_0x1b4039(344)](), this[_0x1b4039(278)](); } [_0x9de259(265)](_0x1704de) { const _0xe57e17 = _0x9de259; if (this[_0xe57e17(394)]) { let _0x1d3e61 = this["tileset"]["boundingSphere"][_0xe57e17(283)][_0xe57e17(245)](); const _0x287702 = _0x590402["Cartographic"][_0xe57e17(208)](_0x1d3e61), _0xcfe114 = _0x590402[_0xe57e17(287)][_0xe57e17(386)](_0x287702[_0xe57e17(266)], _0x287702[_0xe57e17(280)], 0); let _0x2a5efb = this["offsetX"] / 1e5, _0x2a28ba = this[_0xe57e17(353)] / 1e5; const _0x22d64a = _0x590402[_0xe57e17(287)][_0xe57e17(386)](_0x287702["longitude"] + _0x2a5efb, _0x287702[_0xe57e17(280)] + _0x2a28ba, _0x1704de), _0x588f71 = _0x590402[_0xe57e17(287)]["subtract"](_0x22d64a, _0xcfe114, new _0x590402[_0xe57e17(287)]()); let _0x2f22b9 = _0x590402["Matrix4"][_0xe57e17(341)](_0x588f71); _0x239c20["to"](this["tileset"]["modelMatrix"], 2, { ..._0x2f22b9 }); } } [_0x9de259(377)](_0x51d840, _0x34419e = 0, _0x5562ac = 0) { const _0x24e105 = _0x9de259; if (this[_0x24e105(394)]) { let _0x253a73 = this["tileset"]["boundingSphere"]["center"][_0x24e105(245)](); const _0x19a511 = _0x590402["Cartographic"][_0x24e105(208)](_0x253a73), _0x597ec7 = _0x590402[_0x24e105(287)]["fromRadians"](_0x19a511[_0x24e105(266)], _0x19a511[_0x24e105(280)], 0); _0x34419e = _0x34419e / 1e5, _0x5562ac = _0x5562ac / 1e5; const _0xab1322 = _0x590402["Cartesian3"][_0x24e105(386)](_0x19a511[_0x24e105(266)] + _0x34419e, _0x19a511["latitude"] + _0x5562ac, _0x51d840), _0x4159ec = _0x590402[_0x24e105(287)][_0x24e105(254)](_0xab1322, _0x597ec7, new _0x590402[_0x24e105(287)]()); this["tileset"][_0x24e105(183)] = _0x590402[_0x24e105(415)][_0x24e105(341)](_0x4159ec); } else this[_0x24e105(243)] = _0x51d840, this["offsetX"] = _0x34419e, this["offsetY"] = _0x5562ac; } [_0x9de259(444)](_0x47b726) { const _0xef6a2f = _0x9de259; let _0x27566e = []; if (_0x47b726) { _0x27566e["push"](_0x47b726); let _0x3a81c7 = _0x47b726["innerContents"]; _0x3a81c7 && _0x3a81c7[_0xef6a2f(422)]((_0x13c897) => { const _0x3f92d2 = _0xef6a2f; _0x27566e["push"](...this[_0x3f92d2(444)](_0x13c897)); }); } return _0x27566e; } [_0x9de259(205)](_0x233d03) { const _0x31b203 = _0x9de259; let _0x58cd4b = []; if (_0x233d03[_0x31b203(207)]) { let _0x1af747 = _0x233d03[_0x31b203(207)]; _0x1af747[_0x31b203(422)]((_0x2d37a1) => { const _0x32609b = _0x31b203; _0x58cd4b[_0x32609b(233)](...this[_0x32609b(205)](_0x2d37a1)); }); } return _0x58cd4b[_0x31b203(233)](...this[_0x31b203(444)](_0x233d03["content"])), _0x58cd4b; } [_0x9de259(439)]() { const _0x5bc1b4 = _0x9de259; if (!this["centerMatrix4"]) { let _0x2e3308 = this[_0x5bc1b4(394)]["boundingSphere"], _0x36253e = _0x590402["Cartographic"]["fromCartesian"](_0x2e3308[_0x5bc1b4(283)]), _0xd7e359 = _0x590402[_0x5bc1b4(221)][_0x5bc1b4(229)](_0x36253e["longitude"]), _0x53ca8b = _0x590402[_0x5bc1b4(221)][_0x5bc1b4(229)](_0x36253e["latitude"]), _0x2e8677 = _0x590402["Cartesian3"][_0x5bc1b4(386)](_0x590402["Math"][_0x5bc1b4(306)](_0xd7e359), _0x590402["Math"][_0x5bc1b4(306)](_0x53ca8b), 0), _0x5b8f41 = _0x590402[_0x5bc1b4(242)][_0x5bc1b4(185)](_0x2e8677); this[_0x5bc1b4(187)] = _0x5b8f41[_0x5bc1b4(245)](); } return this["centerMatrix4"]; } ["setTileMatrix4"]() { const _0x365f35 = _0x9de259; if (this[_0x365f35(189)][_0x365f35(311)]) return; let _0x66e591 = this[_0x365f35(439)]()[_0x365f35(245)](), _0x263d7e = _0x590402[_0x365f35(415)]["fromUniformScale"](this[_0x365f35(451)]); _0x590402[_0x365f35(415)][_0x365f35(364)](_0x66e591, _0x263d7e, _0x66e591); let _0x23b244 = _0x590402[_0x365f35(297)][_0x365f35(356)](_0x590402[_0x365f35(221)][_0x365f35(306)](this[_0x365f35(184)])), _0x557b8c = _0x590402["Matrix4"][_0x365f35(201)](_0x23b244); _0x590402[_0x365f35(415)][_0x365f35(364)](_0x66e591, _0x557b8c, _0x66e591); let _0x3d27d1 = _0x590402["Matrix3"]["fromRotationY"](_0x590402[_0x365f35(221)][_0x365f35(306)](this[_0x365f35(442)])), _0x3a1b7d = _0x590402[_0x365f35(415)][_0x365f35(201)](_0x3d27d1); _0x590402["Matrix4"]["multiply"](_0x66e591, _0x3a1b7d, _0x66e591); let _0x28ba1a = _0x590402[_0x365f35(297)]["fromRotationZ"](_0x590402["Math"][_0x365f35(306)](this[_0x365f35(387)])), _0x354f85 = _0x590402[_0x365f35(415)]["fromRotationTranslation"](_0x28ba1a); _0x590402[_0x365f35(415)]["multiply"](_0x66e591, _0x354f85, _0x66e591), this[_0x365f35(394)][_0x365f35(338)]["transform"] = _0x66e591; } [_0x9de259(313)]() { const _0x22e2e7 = _0x9de259; let _0x1ab7a9 = this[_0x22e2e7(394)]["boundingSphere"][_0x22e2e7(245)](); this[_0x22e2e7(350)][_0x22e2e7(317)][_0x22e2e7(433)][_0x22e2e7(253)](_0x1ab7a9); } [_0x9de259(374)](_0x39b4e2, _0x509639, _0xcc739e) { const _0x4e1922 = _0x9de259; var _0xd116c0 = this[_0x4e1922(394)], _0x1b92f7 = void 0, _0x53ffbe = _0xd116c0[_0x4e1922(238)][_0x4e1922(194)]; _0x1b92f7 = _0x53ffbe && _0x53ffbe[_0x4e1922(347)](_0x590402["Matrix4"][_0x4e1922(220)]) || !_0x53ffbe ? _0x590402[_0x4e1922(242)][_0x4e1922(185)](_0xd116c0[_0x4e1922(404)][_0x4e1922(283)]) : _0x590402[_0x4e1922(415)]["fromArray"](_0xd116c0["root"][_0x4e1922(194)]), _0x1b92f7 = _0x590402[_0x4e1922(415)][_0x4e1922(342)](_0x590402["Matrix4"]["fromArray"](_0xd116c0[_0x4e1922(238)]["transform"]), new _0x590402[_0x4e1922(415)]()); let _0x27b747 = _0x590402[_0x4e1922(242)][_0x4e1922(185)](_0xd116c0[_0x4e1922(404)][_0x4e1922(283)])[_0x4e1922(245)](), _0x21f78c = _0x590402[_0x4e1922(415)]["fromUniformScale"](this[_0x4e1922(451)]); _0x590402["Matrix4"][_0x4e1922(364)](_0x27b747, _0x21f78c, _0x27b747); let _0x2adaab = _0x590402[_0x4e1922(297)][_0x4e1922(356)](_0x590402["Math"][_0x4e1922(306)](this[_0x4e1922(184)])), _0x244ebf = _0x590402["Matrix4"][_0x4e1922(201)](_0x2adaab); _0x590402[_0x4e1922(415)][_0x4e1922(364)](_0x27b747, _0x244ebf, _0x27b747); let _0x4dd57c = _0x590402[_0x4e1922(297)][_0x4e1922(288)](_0x590402[_0x4e1922(221)][_0x4e1922(306)](this[_0x4e1922(442)])), _0x2b4b2f = _0x590402["Matrix4"][_0x4e1922(201)](_0x4dd57c); _0x590402[_0x4e1922(415)][_0x4e1922(364)](_0x27b747, _0x2b4b2f, _0x27b747); let _0x5cfe19 = _0x590402[_0x4e1922(297)][_0x4e1922(424)](_0x590402[_0x4e1922(221)][_0x4e1922(306)](this[_0x4e1922(387)])), _0x4c5d1b = _0x590402[_0x4e1922(415)]["fromRotationTranslation"](_0x5cfe19); _0x590402[_0x4e1922(415)][_0x4e1922(364)](_0x27b747, _0x4c5d1b, _0x27b747), _0x27b747 = _0x590402[_0x4e1922(415)][_0x4e1922(342)](_0x27b747, new _0x590402[_0x4e1922(415)]()); let _0x493017 = _0x39b4e2[_0x4e1922(283)], _0x39c2ea = _0x39b4e2[_0x4e1922(410)], _0x39252b = _0x493017["x"], _0x42236c = _0x493017["y"], _0x36b7ec = _0x493017["z"], _0x20ee7a = new _0x590402[_0x4e1922(287)](_0x39252b, _0x42236c - _0x39c2ea, _0x36b7ec), _0x46d2e3 = new _0x590402[_0x4e1922(287)](_0x39252b - _0x39c2ea, _0x42236c, _0x36b7ec), _0x5619a6 = new _0x590402[_0x4e1922(287)](_0x39252b, _0x42236c + _0x39c2ea, _0x36b7ec), _0x47dfef = new _0x590402[_0x4e1922(287)](_0x39252b + _0x39c2ea, _0x42236c, _0x36b7ec), _0x5eae3e = new _0x590402[_0x4e1922(287)](0, 0, 1); new _0x590402[_0x4e1922(287)](0, 0, -1); let _0x53bafb = _0x1b92f7; _0x20ee7a = _0x590402[_0x4e1922(415)]["multiplyByPoint"](_0x53bafb, _0x20ee7a, new _0x590402[_0x4e1922(287)](0, 0, 0)), _0x46d2e3 = _0x590402[_0x4e1922(415)][_0x4e1922(260)](_0x53bafb, _0x46d2e3, new _0x590402[_0x4e1922(287)](0, 0, 0)), _0x5619a6 = _0x590402[_0x4e1922(415)][_0x4e1922(260)](_0x53bafb, _0x5619a6, new _0x590402[_0x4e1922(287)](0, 0, 0)), _0x47dfef = _0x590402["Matrix4"]["multiplyByPoint"](_0x53bafb, _0x47dfef, new _0x590402[_0x4e1922(287)](0, 0, 0)); let _0x16ca20 = _0x590402[_0x4e1922(287)]["subtract"](_0x46d2e3, _0x20ee7a, new _0x590402["Cartesian3"]()), _0x2c098d = _0x590402["Cartesian3"]["cross"](_0x16ca20, _0x5eae3e, new _0x590402[_0x4e1922(287)]()); _0x2c098d = _0x590402[_0x4e1922(287)][_0x4e1922(450)](_0x2c098d, _0x2c098d); let _0xd58646 = _0x590402[_0x4e1922(406)]["fromPointNormal"](_0x493017, _0x2c098d), _0x25f3aa = _0x590402["ClippingPlane"][_0x4e1922(210)](_0xd58646), _0x57c822 = _0x590402[_0x4e1922(287)][_0x4e1922(254)](_0x5619a6, _0x46d2e3, new _0x590402[_0x4e1922(287)]()), _0x4a08e8 = _0x590402["Cartesian3"][_0x4e1922(436)](_0x57c822, _0x5eae3e, new _0x590402[_0x4e1922(287)]()); _0x4a08e8 = _0x590402[_0x4e1922(287)][_0x4e1922(450)](_0x4a08e8, _0x4a08e8); let _0x3d2392 = _0x590402[_0x4e1922(406)]["f