From 16ee38fac50cc8c93b9db42e68ab4fbfa8756b4a Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Tue, 9 Sep 2025 18:16:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 137 - yanzhu-bigscreen/public/BIMGISEngine_edit.js | 58639 ++++++++++++++++ yanzhu-bigscreen/public/index.html | 4 +- yanzhu-bigscreen/src/views/bim/bimTools.js | 703 +- .../src/views/bim/briefingTools.js | 101 +- yanzhu-bigscreen/src/views/bimBriefing.vue | 317 +- yanzhu-bigscreen/src/views/bimManage.vue | 481 +- .../components/processControlBar.vue | 4 +- .../src/views/machmater/machineManage.vue | 4 +- .../ProProjectInfoSubdeptsUsersMapper.xml | 1 + yanzhu-ui-vue3/index.html | 6 +- .../src/views/bim/bimSetting/index.vue | 16 +- .../src/views/bim/sandTableSetting/index.vue | 4 +- 13 files changed, 59685 insertions(+), 732 deletions(-) delete mode 100644 README.md create mode 100644 yanzhu-bigscreen/public/BIMGISEngine_edit.js diff --git a/README.md b/README.md deleted file mode 100644 index 77bf884c..00000000 --- a/README.md +++ /dev/null @@ -1,137 +0,0 @@ -

- logo -

-

RuoYi-Cloud-RocketMQ v3.6.3

-

基于 Vue3/Element Plus/Vite 和 Spring Boot/Spring Cloud & Alibaba /RocketMQ前后端分离的分布式微服务架构

-

- - - -

- -## 平台简介 - -* 采用前后端分离的模式,微服务版本前端(基于优秀架构 [RuoYi-Cloud ](https://gitee.com/y_project/RuoYi-Cloud))。 -* 后端采用Spring Boot、Spring Cloud & Alibaba。 -* 注册中心、配置中心选型Nacos,权限认证使用Redis。 -* 流量控制框架选型Sentinel,分布式事务选型Seata。 -* 消息队列选型RocketMQ,多种消息发送模式。 -* 前端使用Vue3、Element Plus、Vite。 -* 提供示例模型 助力快速结合业务完成分库分表+读写分离以及分布式事务回滚 -* 一键打包Docker镜像到服务器,配置多数据源启动打包设置 -* elasticsearch搜索引擎正在集成中完成率90%,各种搜索方式助力企业快速使用 -* 0依赖可根据需求加入或剔除不使用的服务模块 -* 后续会加入更多中间件... -#### 友情链接 [若依/RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) Ant Design版本。 - -

更多扩展开发中

- -## 系统模块 - -~~~ -com.yanzhu -├── yanzhu-api // 接口模块 -│ └── yanzhu-api-system // 系统接口 -├── yanzhu-auth // 认证中心 [9200] -├── yanzhu-common // 通用模块 -│ └── yanzhu-common-core // 核心模块 -│ └── yanzhu-common-datascope // 权限范围 -│ └── yanzhu-common-datasource // 多数据源 -│ └── yanzhu-common-log // 日志记录 -│ └── yanzhu-common-mapper // 数据映射 -│ └── yanzhu-common-redis // 缓存服务 -│ └── yanzhu-common-seata // 分布式事务 -│ └── yanzhu-common-security // 安全模块 -│ └── yanzhu-common-swagger // 系统接口 -├── yanzhu-gateway // 网关模块 [8080] -├── yanzhu-modules // 业务模块 -│ └── yanzhu-system // 系统模块 [9201] -│ └── yanzhu-manage // 业务模块 [9208] -│ └── yanzhu-wechat // 微信模块 [9206] -│ └── yanzhu-gen // 代码生成 [9202] -│ └── yanzhu-job // 定时任务 [9203] -│ └── yanzhu-file // 文件服务 [9300] -│ └── yanzhu-flowable // 工作流服务 [9205] -├── yanzhu-monitor // 监控中心 [9100] -├── yanzhu-rocketMQ // 消息队列 [9207] -├── yanzhu-ui-vue3 // 前端框架 [80] -├── yanzhu-ui-app // 移动端 -├──pom.xml // 公共依赖 -~~~ - -由个人原因没有时间写文档 有不明白的地方朋友请加好友 - - - -目前2023.11.14更新rocketMq发送消息类型: - -1.同步发送:通过调用 send() 方法发送消息,阻塞等待服务器响应。 - -2.异步发送:通过调用 send() 方法,并传入一个 SendCallback 对象,在发送消息的同时可以继续处理其他逻辑,消息发送结果通过回调函数通知。 - -3.单向发送:通过调用 sendOneway() 方法发送消息,不关心发送结果,适用于对可靠性要求不高的场景。 - -4.顺序发送:通过设置 List数据和定义 messageQueueNumber消息队列数量来保证消息按顺序发送。 - -5.延迟发送:通过设置延迟级别来实现延迟发送消息。 - -6.批量发送:通过调用 send() 方法并传入多条消息,实现批量发送消息。 - -7.事务消息发送:通过使用事务监听器实现本地事务执行和消息发送的一致性。 - -## 架构图 - - - -## 内置功能 - -1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 -2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 -3. 岗位管理:配置系统用户所属担任职务。 -4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 -5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。 -6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 -7. 参数管理:对系统动态配置常用参数。 -8. 通知公告:系统通知公告信息发布维护。 -9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 -10. 登录日志:系统登录日志记录查询包含登录异常。 -11. 在线用户:当前系统中活跃用户状态监控。 -12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。 -13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。 -14. 系统接口:根据业务代码自动生成相关的api接口文档。 -15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 -16. 在线构建器:拖动表单元素生成相应的HTML代码。 -17. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 - -## 演示图 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/yanzhu-bigscreen/public/BIMGISEngine_edit.js b/yanzhu-bigscreen/public/BIMGISEngine_edit.js new file mode 100644 index 00000000..dcbd03fa --- /dev/null +++ b/yanzhu-bigscreen/public/BIMGISEngine_edit.js @@ -0,0 +1,58639 @@ +var TransformControls = null; +var BaseControls = null; +var GLESkyBox = null; +var KEY_META = null; +var KEY_QUOTE = null; +var KEY_CLOSE_BRACKET = null; +var KEY_BACK_SLASH = null; +var KEY_OPEN_BRACKET = null; +var KEY_BACK_QUOTE = null; +var KEY_SLASH = null; +var KEY_PERIOD = null; +var KEY_COMMA = null; +var KEY_SCROLL_LOCK = null; +var KEY_NUM_LOCK = null; +var KEY_F24 = null; +var KEY_F23 = null; +var KEY_F22 = null; +var KEY_F21 = null; +var KEY_F20 = null; +var KEY_F19 = null; +var KEY_F18 = null; +var KEY_F17 = null; +var KEY_F16 = null; +var KEY_F15 = null; +var KEY_F14 = null; +var KEY_F13 = null; +var KEY_F12 = null; +var KEY_F11 = null; +var KEY_F10 = null; +var KEY_F9 = null; +var KEY_F8 = null; +var KEY_F7 = null; +var KEY_F6 = null; +var KEY_F5 = null; +var KEY_F4 = null; +var KEY_F3 = null; +var KEY_F2 = null; +var KEY_F1 = null; +var KEY_DIVIDE = null; +var KEY_DECIMAL = null; +var KEY_SUBTRACT = null; +var KEY_SEPARATOR = null; +var KEY_ADD = null; +var KEY_MULTIPLY = null; +var KEY_NUMPAD9 = null; +var KEY_NUMPAD8 = null; +var KEY_NUMPAD7 = null; +var KEY_NUMPAD6 = null; +var KEY_NUMPAD5 = null; +var KEY_NUMPAD4 = null; +var KEY_NUMPAD3 = null; +var KEY_NUMPAD2 = null; +var KEY_NUMPAD1 = null; +var KEY_NUMPAD0 = null; +var KEY_CONTEXT_MENU = null; +var KEY_RIGHT_CMD = null; +var KEY_LEFT_CMD = null; +var KEY_Z = null; +var KEY_Y = null; +var KEY_X = null; +var KEY_W = null; +var KEY_V = null; +var KEY_U = null; +var KEY_T = null; +var KEY_S = null; +var KEY_R = null; +var KEY_Q = null; +var KEY_P = null; +var KEY_O = null; +var KEY_N = null; +var KEY_M = null; +var KEY_L = null; +var KEY_K = null; +var KEY_J = null; +var KEY_I = null; +var KEY_H = null; +var KEY_G = null; +var KEY_F = null; +var KEY_E = null; +var KEY_D = null; +var KEY_C = null; +var KEY_B = null; +var KEY_A = null; +var KEY_EQUALS = null; +var KEY_SEMICOLON = null; +var KEY_9 = null; +var KEY_8 = null; +var KEY_7 = null; +var KEY_6 = null; +var KEY_5 = null; +var KEY_4 = null; +var KEY_3 = null; +var KEY_2 = null; +var KEY_1 = null; +var KEY_0 = null; +var KEY_DELETE = null; +var KEY_INSERT = null; +var KEY_PRINTSCREEN = null; +var KEY_DOWN = null; +var KEY_RIGHT = null; +var KEY_UP = null; +var KEY_LEFT = null; +var KEY_HOME = null; +var KEY_END = null; +var KEY_PAGE_DOWN = null; +var KEY_PAGE_UP = null; +var KEY_SPACE = null; +var KEY_ESCAPE = null; +var KEY_CAPS_LOCK = null; +var KEY_PAUSE = null; +var KEY_ALT = null; +var KEY_CONTROL = null; +var KEY_SHIFT = null; +var KEY_ENTER = null; +var KEY_RETURN = null; +var KEY_CLEAR = null; +var KEY_TAB = null; +var KEY_BACK_SPACE = null; +var KEY_HELP = null; +var KEY_CANCEL = null; +var GLEWaterRipple = null; +var GLECesiumVideo = null; +var GLEVehicleBorneRadar = null; +var GLEOnsiteInspection = null; +var GLEInundationAnalysis = null; +var GLEInspectionTrack = null; +var GLECircleScan = null; +var Calculation = null; +var getTemperatureGradientColors = null; +var CHInstance = null; +var GLECad = null; +var EditControls = null; +var getPointFootToLine = null; +var getPointFootToPlane = null; +var GetDistanceBetweenFaces = null; +var equation_plane = null; +var GetFootOfPerpendicular = null; +var _applyRotateAroundAxis = null; +var GetMaxMinPoint = null; +var toNonExponential = null; +var extendDeep = null; +var extend = null; +var isEmpty = null; +var saveFile = null; +var metersToLatitude = null; +var metersToLongitude = null; +var defaultValue = null; +var Matrix3 = null; +var Matrix4 = null; +var Cartesian3 = null; +var ENGINEVERSION = null; ++function(e, f, g, h, j, k) { + -function(q) { + var u = function() { + return 0x7 >> 0x1; + }() - function() { + return 0x1 << 0x1; + }(); + Calculation = function(A, B, C) { + var D = C - B; + var E = (A - B) / D; + return E; + } + ; + getTemperatureGradientColors = function() { + return { + 1: new Cesium['Color'](0x1,0x0,0x0)[dol(0x0)](), + 0.75: new Cesium['Color'](0x1,0x1,0x0)['toCssHexString'](), + 0.5: new Cesium[(dol(0x1))](0x0,0x1,0x0)['toCssHexString'](), + 0.25: new Cesium['Color'](0x0,0x1,0x1)['toCssHexString'](), + 0: new Cesium['Color'](0x0,0x0,0x1)['toCssHexString']() + }; + } + ; + CHInstance = function(F, G, H) { + if (!G) { + return null; + } + if (!H) { + H = {}; + } + this['_cesium'] = F; + this['_options'] = H; + this['_id'] = this['_options']['id'] ? this['_options']['id'] : CesiumHeatmap['_getID'](); + this['_options'][dol(0x2)] = this['_options']['gradient'] ? this['_options']['gradient'] : CesiumHeatmap['defaults']['gradient']; + this['_options']['maxOpacity'] = this['_options']['maxOpacity'] ? this['_options']['maxOpacity'] : CesiumHeatmap['defaults']['maxOpacity']; + this['_options']['minOpacity'] = this['_options']['minOpacity'] ? this['_options'][dol(0x3)] : CesiumHeatmap['defaults']['minOpacity']; + this['_options']['blur'] = this['_options']['blur'] ? this['_options']['blur'] : CesiumHeatmap['defaults']['blur']; + this['_mbounds'] = CesiumHeatmap['wgs84ToMercatorBB'](G); + this['_setWidthAndHeight'](this['_mbounds']); + this['_options']['radius'] = Math['round'](this['_options'][dol(0x4)] ? this['_options']['radius'] : this['width'] > this['height'] ? this['width'] / CesiumHeatmap['defaults']['radiusFactor'] : this['height'] / CesiumHeatmap['defaults']['radiusFactor']); + this['_spacing'] = this['_options']['radius'] * CesiumHeatmap[dol(0x5)]['spacingFactor']; + this['_xoffset'] = this['_mbounds']['west']; + this['_yoffset'] = this['_mbounds'][dol(0x6)]; + this['width'] = Math['round'](this['width'] + this['_spacing'] * 0x2); + this['height'] = Math['round'](this['height'] + this['_spacing'] * 0x2); + this['_mbounds']['west'] -= this['_spacing'] * this['_factor']; + this['_mbounds']['east'] += this['_spacing'] * this['_factor']; + this['_mbounds'][dol(0x7)] -= this['_spacing'] * this['_factor']; + this['_mbounds']['north'] += this['_spacing'] * this['_factor']; + this['bounds'] = CesiumHeatmap['mercatorToWgs84BB'](this['_mbounds']); + this['_rectangle'] = Cesium['Rectangle']['fromDegrees'](this['bounds']['west'], this['bounds']['south'], this['bounds']['east'], this['bounds']['north']); + this['_container'] = CesiumHeatmap['_getContainer'](this['width'], this['height'], this['_id']); + this['_options']['container'] = this['_container']; + this['polygonbounds'] = this['_options']['polygonbounds']; + this['_heatmap'] = h337[dol(0x8)](this['_options']); + this['_container'][dol(0x9)][0x0]['setAttribute'](doh(0x0), this['_id'] + doh(0x1)); + this['polygonheight'] = this['_options']['polygonheight']; + this['classificationType'] = this['_options']['classificationType']; + } + ; + getPointFootToLine = function(I, J, K) { + var L = I['x']; + var N = I['y']; + var O = J['x']; + var P = J['y']; + var Q = K['x']; + var R = K['y']; + if (O == Q && P == R) + return; + var S = -((O - L) * (Q - O) + (P - N) * (R - P)) / ((O - Q) * (O - Q) + (P - R) * (P - R)); + var T = S * (Q - O) + O; + var U = S * (R - P) + P; + return new Cesium['Cartesian2'](T,U); + } + ; + getPointFootToPlane = function(V, W) { + var a0 = new Cesium['Cartesian3'](); + var a1 = W[0x0] + , a2 = W[0x1] + , a3 = W[0x2]; + var a4 = equation_plane(a1, a2, a3); + var q = a4[0x0]; + var a6 = a4[0x1]; + var a7 = a4[0x2]; + var a8 = a4[0x3]; + var a9 = q * q + a6 * a6 + a7 * a7; + var aa = q * V['x'] + a6 * V['y'] + a7 * V['z'] + a8; + a0['x'] = V['x'] - aa * q / a9; + a0['y'] = V['y'] - aa * a6 / a9; + a0['z'] = V['z'] - aa * a7 / a9; + return a0; + } + ; + GetDistanceBetweenFaces = function(ab, ac, ad) { + var ae = ![]; + var af = ac[0x0] + , ag = ac[0x1] + , ah = ac[0x2]; + var ai = ad[0x0] + , aj = ad[0x1] + , ak = ad[0x2]; + var al = new Cesium['Cartesian3'](); + var am = new Cesium['Cartesian3'](); + var an = new Cesium['Cartesian3'](); + var ao = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](af, ag, al); + Cesium['Cartesian3'][dol(0xa)](ag, ah, am); + Cesium['Cartesian3']['subtract'](ai, aj, an); + Cesium['Cartesian3']['subtract'](aj, ak, ao); + var ap = new Cesium['Cartesian3'](); + var aq = new Cesium['Cartesian3'](); + Cesium[dol(0xb)]['cross'](al, am, ap); + Cesium['Cartesian3']['cross'](an, ao, aq); + Cesium['Cartesian3']['normalize'](ap, ap); + Cesium['Cartesian3']['normalize'](aq, aq); + ae = Math['abs'](0x1 - Math['abs'](Cesium['Cartesian3']['dot'](ap, aq))) < 0.000001; + if (ae) { + var ar = new Cesium['Cartesian3'](); + var as = equation_plane(ai, aj, ak); + var q = as[0x0]; + var au = as[0x1]; + var av = as[0x2]; + var aw = as[0x3]; + var ax = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](ab, ax); + var ay = q * q + au * au + av * av; + var az = q * ax['x'] + au * ax['y'] + av * ax['z'] + aw; + ar['x'] = ax['x'] - az * q / ay; + ar['y'] = ax['y'] - az * au / ay; + ar['z'] = ax['z'] - az * av / ay; + as = equation_plane(af, ag, ah); + q = as[0x0]; + au = as[0x1]; + av = as[0x2]; + aw = as[0x3]; + ay = q * q + au * au + av * av; + az = q * ar['x'] + au * ar['y'] + av * ar['z'] + aw; + ax['x'] = ar['x'] - az * q / ay; + ax['y'] = ar['y'] - az * au / ay; + ax['z'] = ar['z'] - az * av / ay; + var aA = Cesium['Cartesian3']['distance'](ax, ar); + return { + 'isParallel': ae, + 'distance': aA, + 'footPoint': ar, + 'f1p1': ax + }; + } + return { + 'isParallel': ae + }; + } + ; + equation_plane = function(aB, aC, aD) { + var aE = aC['x'] - aB['x']; + var aF = aC['y'] - aB['y']; + var aG = aC['z'] - aB['z']; + var aH = aD['x'] - aB['x']; + var aI = aD['y'] - aB['y']; + var aJ = aD['z'] - aB['z']; + var q = aF * aJ - aI * aG; + var aL = aH * aG - aE * aJ; + var aM = aE * aI - aF * aH; + var aN = -q * aB['x'] - aL * aB['y'] - aM * aB['z']; + return [q, aL, aM, aN]; + } + ; + GetFootOfPerpendicular = function(aO, aP, aQ) { + var aR = new Cesium['Cartesian3'](); + var aS = aO['x'] - aP['x']; + var aT = aO['y'] - aP['y']; + var aU = aO['z'] - aP['z']; + if (Math['abs'](aS) < 1e-8 && Math['abs'](aT) < 1e-8 && Math[dol(0xc)](aU) < 1e-8) { + return aR = aO; + } + var aV = (aQ['x'] - aO['x']) * (aO['x'] - aP['x']) + (aQ['y'] - aO['y']) * (aO['y'] - aP['y']) + (aQ['z'] - aO['z']) * (aO['z'] - aP['z']); + aV = aV / (aS * aS + aT * aT + aU * aU); + aR['x'] = aO['x'] + aV * aS; + aR['y'] = aO['y'] + aV * aT; + aR['z'] = aO['z'] + aV * aU; + return aR; + } + ; + _applyRotateAroundAxis = function(aW, aX, aY) { + aY[0x0] = aW['x'] * aW['x'] * (0x1 - Math[dol(0xd)](aX)) + Math['cos'](aX); + aY[0x1] = aW['x'] * aW['y'] * (0x1 - Math['cos'](aX)) + aW['z'] * Math['sin'](aX); + aY[0x2] = aW['x'] * aW['z'] * (0x1 - Math['cos'](aX)) - aW['y'] * Math['sin'](aX); + aY[0x3] = aW['x'] * aW['y'] * (0x1 - Math['cos'](aX)) - aW['z'] * Math['sin'](aX); + aY[0x4] = aW['y'] * aW['y'] * (0x1 - Math['cos'](aX)) + Math['cos'](aX); + aY[0x5] = aW['y'] * aW['z'] * (0x1 - Math[dol(0xe)](aX)) + aW['x'] * Math['sin'](aX); + aY[0x6] = aW['x'] * aW['z'] * (0x1 - Math['cos'](aX)) + aW['y'] * Math[dol(0xf)](aX); + aY[0x7] = aW['y'] * aW['z'] * (0x1 - Math['cos'](aX)) - aW['x'] * Math['sin'](aX); + aY[0x8] = aW['z'] * aW['z'] * (0x1 - Math['cos'](aX)) + Math['cos'](aX); + } + ; + GetMaxMinPoint = function(aZ) { + var b0 = new Cesium['Cartesian3'](-Infinity,-Infinity,-Infinity); + var b1 = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + for (var b2 = 0x0; b2 < aZ['length'] / 0x3; b2++) { + var b3 = new Cesium['Cartesian3'](aZ[b2 * 0x3],aZ[b2 * 0x3 + 0x1],aZ[b2 * 0x3 + 0x2]); + b0['x'] = Math['max'](b0['x'], b3['x']); + b0['y'] = Math['max'](b0['y'], b3['y']); + b0['z'] = Math['max'](b0['z'], b3['z']); + b1['x'] = Math['min'](b1['x'], b3['x']); + b1['y'] = Math[dol(0x10)](b1['y'], b3['y']); + b1['z'] = Math['min'](b1['z'], b3['z']); + } + return [b0, b1]; + } + ; + toNonExponential = function(b4) { + var b5 = b4['toExponential']()['match'](/\d(?:\.(\d*))?e([+-]\d+)/); + return parseFloat(b4['toFixed'](0x6)); + } + ; + isEmpty = function(b6) { + if (typeof b6 == 'u' + doo(0x0) + 'd' || b6 == null || b6 === '') { + return !![]; + } else { + return ![]; + } + } + ; + metersToLatitude = function(b7) { + return b7 * 1.57891e-7; + } + ; + metersToLongitude = function(b8, b9) { + return b8 * 1.56785e-7 / Math['cos'](b9); + } + ; + ENGINEVERSION = 'v' + doo(0x1) + '0'; + Cartesian3 = Cesium['Cartesian3']; + Matrix4 = Cesium['Matrix4']; + Matrix3 = Cesium['Matrix3']; + defaultValue = Cesium['defaultValue']; + (function() { + var ba = { + 'container': 'c' + doo(0x2) + 'r', + 'showfps': !![], + 'openterrain': ![], + 'imageryprovider': 't' + doo(0x3) + 'e', + 'mapworldkey': doj(0x0), + 'openearth': !![], + 'maxspaceerror': 0x32, + 'loading': !![], + 'bgcolor': Cesium['Color']['fromBytes'](0x31, 0xc4, 0xe8, 0x1), + 'outlinecolor': Cesium['Color']['BLACK'], + 'outlineScaleVal': 1.001, + 'selectedcolor': Cesium['Color']['YELLOW'], + 'sceneMode': Cesium['SceneMode']['SCENE3D'], + 'TwoMapNavigationEnable': ![], + 'throughwall': !![], + 'searchbox': !![], + 'mapbox': !![], + 'sitepath': '', + 'secretkey': '', + 'editmode': ![], + 'cadmode': ![], + 'terrainProvider': doj(0x1), + 'outLineImageryProvider': doj(0x2), + 'isRequestWebgl2': !![], + 'requestRenderMode': !![], + 'colorBlendMode': 0x2, + 'loadAnimation': ![], + 'isStrictClip': !![], + 'isMsaaSamples': !![], + 'isOpenVR': ![], + 'language': 'z' + doo(0x4) + 'N', + 'targetFrameRate': 0x14, + 'measurementUnit': 0x1 + }; + API = function(bb) { + bb.secretkey='cbe8c300dfb0280d71bf6546087c6d2fa49260085f53fca8e5bdce7cde850980fff838cd3f0ab103821570a70eeb2d62cb8c266b112a57d8d8da62ca3ac8e018258c47f45b34485a2edb350010e2f42cd5b388af45c6b0708aa9a449dea5d6a8eebee1232a7120227b4127e5513d88b3d661493f1b789b32ea64646bddfaf1384d1bcb337f645d50a4291d18c78eeb9f6e27f4ac450f800c0fc9e6dc054faf338a94867b381ae88ecd6668e8ca6b6d286dce7e5d799b0a1791905fc1eba1be4b81098fb2e3bc4f301e417c90d7b6985c699fe3aacffdcf1df1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa1648114bf42e57a167f6571a4f422a627b1b73db6c19a148ad18fb8598216e137795cc77fcba7ce8189fbc2323a77c4ab96b3f6df951b65b84a4f5883fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e619067664b55a717fcac45c40899773fe365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a433223736451b4041d00a31016d6fef742b33365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a433226e335b08e38a95661abc2a890b5ef51af1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3acd58b622ddadf7664d808f4ee7ad789583fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e6bd91d3f18925c1d6c9815fa2dfb3855883fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e63307b7205dcacd2da518ac46a1a077e6f60f321c90b006aa83fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e6985da6ad2112b72f65ebf219d40b080b83fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e6dab694ca6962abb3064e18721aa19ae028980977b83e4679f1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3a559f4520489a9257a95f30fefadd3819f1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3a44d8581cd2e7540828e541d03b8d9ac0800cffb21e098f38108f9ea1d0d89af094f7d3f2ac664dd3460fef959dfcd2167fcba7ce8189fbc218c166d737d0d15cabcbb9911ff6d63af1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3a318158c241f1da3b83fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e6bd91d3f18925c1d69f55d522b2ba024aaebde3a2d4c41835f11fba3fb08c9785108f9ea1d0d89af094f7d3f2ac664dd3460fef959dfcd2167fcba7ce8189fbc222f86033767466ed67ad1c5ce75f637b83fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e6bd91d3f18925c1d69dbe93d7543e8d9483fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2f79eb391b46cc93e6bd91d3f18925c1d60f4c9ca171238e6c28980977b83e4679f1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ebe9779ea7d827983bd91d3f18925c1d67a2c7ee1a5afbb22d0d1c6edfa45e3f2108f9ea1d0d89af094f7d3f2ac664dd3460fef959dfcd2167fcba7ce8189fbc26b4de4a71f4dbb068682a4341257586316f1d2f98738d50928980977b83e4679f1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3a4e87ed4b7e9de8bcb5e712ddb99deb0b365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a433224e274a7ab9628560d1319479e948aa101344d3c271e9b36c38a314eb6b667e5e108f9ea1d0d89af094f7d3f2ac664dd3460fef959dfcd2167fcba7ce8189fbc26b4de4a71f4dbb06bb01ce3b0df9a917caf4abda1a0b7908365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a433229f0b6460fa0d0db1753ded7da722a53cc9cab57b3e876cdbf1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3a4e87ed4b7e9de8bcdd8c94819a869cca365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a433224e274a7ab962856051c6783ca3f97e42cd8d11479822aecd365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a433224e274a7ab962856051c6783ca3f97e422b66f0b41912746cf1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3aca75494018d412d7170389f14b006c70f129f9f57662654e7e75fbc35c60003d9745ec80a8be06d10d6983f12e3ade2f79eb391b46cc93e658f9cd9d7577422eeaf37542b364ac072a1f999e31989e96365f93c5836b37a604108eff3d871de8eea32d8396159aa975981cbe307ebf615d5afe5554a4332253f0c4f5c9bdb3460b24efac7833fbd879ac113cff3fb0541d41090f91afb63a0d6983f12e3ade2ff9fa1da1bf35e0c305a0c57a0350ca273d4cd81d27671003699fe3aacffdcf1df1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ebe9779ea7d827983bf891686546d739a202180fdefef178a15ef424527c72868108f9ea1d0d89af094f7d3f2ac664dd3460fef959dfcd2167fcba7ce8189fbc2b25cca61dcde1db302df8fd6ac12f263108f9ea1d0d89af094f7d3f2ac664dd3460fef959dfcd2167fcba7ce8189fbc2b25cca61dcde1db34e87ed4b7e9de8bcfd07dab5d76cd2b883fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2ff9fa1da1bf35e0c34e274a7ab962856051c6783ca3f97e42722b4375b1aced6ff1e1e0c28dba710ce8e2a70b3e58286ff9fa6b9aa16481143ae24d1650ef196ed32b1cdbecb9bf3a243c8e153ba2edb93513fb8f275d9ee990bd70f3d7cd0854742bbd632af8d5b16ae2a8b1863301437fcba7ce8189fbc2d0c629f88d9f278bf12fce62f0a0353e4e1666022cbf6058e1e1fd554a4b166a62ff3a0aafc9569d5d5afe5554a4332225bf7bc20e3b6708342ec08d00f5d8dad5e20556a4e395e19d63dac2d06e44c1bb309cd408d3a9d0e08a6b7bbf8f79e55d5afe5554a43322ae16688bbb8ce011d067de671c1583e8f2d447cdc7658e356520f0413a00358c4acf855531f8e9d93414b1b35cea44ac7fcba7ce8189fbc2d0c629f88d9f278b1dab1d3bfc8a1ac149d7c0310155d490d5e20556a4e395e1414ba80e646467107c0e96d2e2f8c80c7fcba7ce8189fbc2d0c629f88d9f278b9f7189b6679a6b403cc9af099bcccfad75489ff0ee4334f359d0110bf095df370d6983f12e3ade2f79eb391b46cc93e663b2e74d4f9eec0e55d0bc7945628527af3655451465553f176d3dce086c991683fcb0fad9ec544c1982d67587e60a45617e90534c9a872b0d6983f12e3ade2ff9fa1da1bf35e0c34e274a7ab962856051c6783ca3f97e42365f93c5836b37a604108eff3d871de8eea32d8396159aa9f4229f2a89bd29193ba54bde663d2bd2c8b7e35f0ac85db7bb07e062ea14afc00885993dd55149dcaac1afd722095fc1a1b19b38a3a9ba2d61e8c6cd60b5d796daa7e3bbe696144a372bf2bf4698f5fb24d736db704d8954950390941b9aaa80089e41bf1a87879de6cd674b6676107f3d4256820c37cd19030c6924517e4349f71e19f74e660313cf3630a2823a9a2d4ce0dce6f81f87eea1ccfaae84e9dbea030c6924517e4349b5024217bdf743a670fd5d571139e4f0e6cd674b6676107fc8b14b44ceeed441af4b194f05a956195b0d603c259172b75b1923cb186fe0ce5be04514c976edd0c12cc462769b2e685be04514c976edd04ca2ef020dc56bee8321afe91a1dcbb1afafd0506174e8680f18f43fcd13957e37bdb1221aa64295f230f78b7aa0c960753151533a2770446a6cb07b672285d204ba1ecd4a967f5dcb6b0c9432a8108f7d1f9f3c7343796941187054ec673ebdbd57ea3b34f9c6cc37bdb1221aa6429512b695fc8f5b4b6fc12cc462769b2e685be04514c976edd038d27dbe2e47e96b753151533a277044d80e0285b44b743f64d53d967da98ab0555e1e6d7d3c0468c8e6f7bb1e69ec27703c52805d982a9a7b7134e53eaa4f83b046182095e9d992f79b33aea9c3effb017d98bd95ced22c1d7f698eff81232620bc772fa7ae29a7d414a6ec983c937ed81e303cd60ec5e31c5c60194b7c51c25c322c7bf03d5c6a2c014184423e21699fd6d34f2a62e59aa4596f82cf86665b367e01045009c18a50fbde6b13f859564b7c9002a5b14cebb57369802f23c1aa6b290529357b344b00fbef83165949e1e33221218141c970db0a455d0d9dd0d35b312e064c38449b834ae02c6940d69512b8eb2e9a791ac0484a36aaed546c2fce7c0e4ae25b46391d87564eef0079a42370cdf7d47b23d92e9fde5f0e7f5669508068b4ae554551950390941b9aaa80b7a14bc8fab29bf7c50b8060c5eea5d5e8e734ad48ffdf70893b32686c36efdbc9d881e72281aeec83fca8801bbe8ccd89685c84eea422d54648dd5603b43c0c3b980e26800612b775b556a4cd263f0227f2e608e99d0421308b91da403a8f5bf69087bf57c16c40ebc424f09f933d0eb1a881ed05ca8d5c665e8d49164a81ede6cd674b6676107f753151533a277044b644d89a77efad286dee59796b124081510f8a6ea5c1dff9cb0f31d9a93422d1de95a0001376b8d685af667dd7ebaf4bdfc4840ac1126277417910a2ed0df6e3ca2026459a491059fef60f7421599dd6f96b87b99f2b3a0e241e69a6993bcca387380d5ea2d8e077dc85e91453d3d205'; + Cesium[dol(0x11)]['defaultAccessToken'] = doj(0x3); + this['viewer'] = undefined; + this['isMobile'] = function() { + var bc = /(HarmonyOS|phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|MiuiBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i; + var bd = new RegExp(bc); + return bd['test'](navigator['userAgent']); + } + ; + this['tileset'] = undefined; + this['m_model'] = new Map(); + this['m_modelList'] = new Map(); + this['modelStyleMap'] = new Map(); + this['topRenderMap'] = new Map(); + this['modelShowMap'] = new Map(); + this['modelFlatten'] = new Map(); + this['earthFlatten'] = new Map(); + this['earthClipping'] = new Map(); + this['FeatureEditMap'] = new Map(); + this['modelCutPart'] = new Map(); + this['modelCutCircle'] = new Map(); + this['pinBuilder'] = new Cesium['PinBuilder'](); + this['billboards'] = undefined; + this['labels'] = undefined; + this['nameOverlay'] = undefined; + this['roaming'] = []; + this['clippingPlanes'] = undefined; + this['clippingRange'] = undefined; + this['clippingRangeMaxMin'] = []; + this['planeEntities'] = []; + this['routeDataSource'] = new Map(); + this['timeListener'] = undefined; + this['clippingPlaneMapArray'] = {}; + this['clippingPlaneEntitiesMap'] = {}; + this['clippingPlanesMap'] = {}; + this['GLE_ClipPlansBoxSizeMap'] = {}; + this['GLE_ClipPlansBoxCenterMap'] = {}; + this['clippingPlaneMap_mulActorIds'] = {}; + this['useDepthPicking'] = !![]; + this['Camera_ImmersionRoaming'] = undefined; + this['Effect_ParticleSystem'] = undefined; + this['AxisHelper'] = undefined; + this['CustomLabel'] = undefined; + this['GLEWindTrack'] = undefined; + this['GLEWindProfile'] = undefined; + this['GLEWindSlicing'] = undefined; + this['GLEHeatMap'] = undefined; + this['GLEModelSegmentation'] = undefined; + this['GLEPaintingRoad'] = undefined; + this['InspectionTrack'] = undefined; + this['Cad'] = undefined; + this['IsMoving'] = ![]; + this['tagName'] = undefined; + this['POSMAP'] = new Map(); + this['underground'] = undefined; + this['cancelEntityArr'] = []; + this['WaterMark'] = []; + this['buildingHighlightArr'] = new Map(); + this['addImageryProviderArr'] = new Map(); + this['maximumRotateRatePc'] = 1.77; + this['minimumRotateRatePc'] = 0x1; + this['zoomFactorPc'] = 0x2; + this['maximumRotateRateMobile'] = 1.77; + this['minimumRotateRateMobile'] = 0x1; + this['zoomFactorMobile'] = 0x2; + this['pinchMoveing'] = ![]; + this['pinchMoveingTime'] = 0x5dc; + this['ModelMoveState'] = new Map(); + this['FeatureMoveState'] = new Map(); + this['AutoRotateList'] = []; + this['CustomViewPoints'] = []; + this['CustomRoamSpeed'] = 0x0; + this['CustomRoamRun'] = !![]; + this['CustomRoamIndex'] = 0x0; + this['PickedStatus'] = ![]; + this['RenderMode'] = 0x0; + this['materialColor'] = new Map(); + this['materialColor']['set'](); + this['IsOptimizeRendering'] = ![]; + this['IsOpenSkyBox'] = ![]; + this['IsMaterialsUpdate'] = ![]; + this['OutLineIsShow'] = !![]; + this['IsOpenHDR'] = !![]; + this['windTrackPrimitives'] = []; + this['minimumNdotL'] = 0.6; + this['RefreshRendering'] = !![]; + this['StopAutoRotate'] = ![]; + this['vertexAdsorption'] = ![]; + this['vertexAdsorptionDis'] = 0.05; + this['HistoricalHierarchicalValue'] = new Map(); + this['modelRulerMap'] = new Map(); + this['modelRulerLableMap'] = new Map(); + this['modelCurrentAnimation'] = new Map(); + this['LableMoveState'] = new Map(); + this['LableTrackArr'] = new Map(); + this['FlowingTo3DTile'] = new Map(); + this['EngineErrorMessage'] = ''; + this['IsRoateByScreenCenter'] = ![]; + this['showDebuggerCenter'] = ![]; + this['isDisableMouse'] = ![]; + this['isflipUnderground'] = !![]; + this['minPlaneHeight'] = 0x0; + this['isOpenTopRender'] = ![]; + this['isOpenPipelineFlow'] = ![]; + this['isTexturePipelineFlow'] = ![]; + this['enableCheck2DFrustumRange'] = !![]; + this['parallelLightLuminance'] = 0x1; + this['MyIndexDB'] = undefined; + this['outlinefeatures'] = undefined; + this['getTopRenderState'] = function() { + return this['isOpenTopRender']; + } + ; + this['getPipelineFlowState'] = function() { + return this['isOpenPipelineFlow']; + } + ; + this['getPipelineFlowISTexture'] = function() { + return this['isTexturePipelineFlow']; + } + ; + this['tempEntities'] = []; + this['tempPrimitives'] = []; + this['edgePrimitives'] = []; + this['instancesOriginalMats'] = new Map(); + this['PositionType'] = { + 'NONE': 0x0, + 'ON_MODEL': 0x1, + 'ON_TERRAIN': 0x2, + 'ON_ELLIPSOID': 0x3 + }; + this['previousPickedEntity'] = { + 'feature': undefined, + 'originalColor': undefined + }; + this['defaults'] = {}; + this['defaults']['container'] = !Cesium['defined'](bb['container']) ? ba['container'] : bb['container']; + this['defaults']['showfps'] = !Cesium['defined'](bb[dol(0x12)]) ? ba['showfps'] : bb['showfps']; + this['defaults']['openterrain'] = !Cesium['defined'](bb['openterrain']) ? ba['openterrain'] : bb['openterrain']; + this['defaults']['imageryprovider'] = !Cesium['defined'](bb['imageryprovider']) ? ba['imageryprovider'] : bb['imageryprovider']; + this['defaults']['terrainProvider'] = !Cesium['defined'](bb['terrainProvider']) ? ba['terrainProvider'] : bb[dol(0x13)]; + this['defaults']['outLineImageryProvider'] = !Cesium['defined'](bb['outLineImageryProvider']) ? ba['outLineImageryProvider'] : bb['outLineImageryProvider']; + this['defaults'][dol(0x14)] = !Cesium['defined'](bb['mapworldkey']) ? ba[dol(0x15)] : bb['mapworldkey']; + this['defaults']['openearth'] = !Cesium[dol(0x16)](bb['openearth']) ? ba['openearth'] : bb['openearth']; + this['defaults']['maxspaceerror'] = !Cesium['defined'](bb['maxspaceerror']) ? ba['maxspaceerror'] : bb['maxspaceerror']; + this['defaults'][dol(0x17)] = !Cesium['defined'](bb['loading']) ? ba['loading'] : bb['loading']; + this['defaults']['bgcolor'] = !Cesium['defined'](bb['bgcolor']) ? ba['bgcolor'] : bb['bgcolor']; + this['defaults']['outlinecolor'] = !Cesium['defined'](bb['outlinecolor']) ? ba['outlinecolor'] : bb['outlinecolor']; + this['defaults'][dol(0x18)] = !Cesium[dol(0x19)](bb['outlineScaleVal']) ? ba['outlineScaleVal'] : bb['outlineScaleVal']; + this['defaults']['selectedcolor'] = !Cesium['defined'](bb['selectedcolor']) ? ba['selectedcolor'] : bb['selectedcolor']; + this['defaults']['sceneMode'] = !Cesium['defined'](bb['sceneMode']) ? ba['sceneMode'] : bb['sceneMode']; + this['defaults']['TwoMapNavigationEnable'] = !Cesium['defined'](bb['TwoMapNavigationEnable']) ? ba[dol(0x1a)] : bb['TwoMapNavigationEnable']; + this['defaults']['throughwall'] = !Cesium['defined'](bb['throughwall']) ? ba[dol(0x1b)] : bb['throughwall']; + this['defaults']['searchbox'] = !Cesium['defined'](bb['searchbox']) ? ba['searchbox'] : bb['searchbox']; + this['defaults']['mapbox'] = !Cesium['defined'](bb['mapbox']) ? ba[dol(0x1c)] : bb['mapbox']; + this['defaults']['sitepath'] = !Cesium['defined'](bb['sitepath']) ? ba['sitepath'] : bb['sitepath']; + this['defaults']['secretkey'] = !Cesium[dol(0x1d)](bb['secretkey']) ? ba['secretkey'] : bb['secretkey']; + this['getStationHost'] = function(be) { + var bf = aCo(be, 'e' + doo(0x5) + 'g')['replace'](/(^[\s\n\t]+|[\s\n\t]+$)/g, ''); + var bg = bf['lastIndexOf']('}'); + var bh = bf['substring'](bf, bg + 0x1); + var bi = JSON['parse'](bh); + if (bi['xhrurl'] !== undefined) { + return bi['xhrurl']['substring'](0x0, bi['xhrurl']['indexOf']('/' + doo(0x6) + 'i')); + } else { + if (bi['apiUrl']['lastIndexOf']('/') === bi['apiUrl']['length'] - 0x1) { + return bi['apiUrl']['substring'](0x0, bi[dol(0x1e)]['length'] - 0x1); + } + return bi['apiUrl']; + } + } + ; + this['defaults']['stationHost'] = this['getStationHost'](this['defaults'][dol(0x1f)]); + this['defaults']['editmode'] = !Cesium[dol(0x20)](bb['editmode']) ? ba['editmode'] : bb['editmode']; + this['defaults']['cadmode'] = !Cesium['defined'](bb['cadmode']) ? ba['cadmode'] : bb['cadmode']; + this['defaults']['isRequestWebgl2'] = !Cesium['defined'](bb['isRequestWebgl2']) ? ba['isRequestWebgl2'] : bb['isRequestWebgl2']; + this['defaults']['requestRenderMode'] = !Cesium['defined'](bb['requestRenderMode']) ? ba['requestRenderMode'] : bb['requestRenderMode']; + this['defaults']['colorBlendMode'] = !Cesium['defined'](bb['colorBlendMode']) ? ba['colorBlendMode'] : bb['colorBlendMode']; + this['defaults']['loadAnimation'] = !Cesium['defined'](bb['loadAnimation']) ? ba['loadAnimation'] : bb['loadAnimation']; + this['defaults']['isStrictClip'] = !Cesium[dol(0x21)](bb['isStrictClip']) ? ba['isStrictClip'] : bb['isStrictClip']; + this['defaults']['isMsaaSamples'] = !Cesium['defined'](bb['isMsaaSamples']) ? ba['isMsaaSamples'] : bb['isMsaaSamples']; + this['defaults']['isOpenVR'] = !Cesium['defined'](bb['isOpenVR']) ? ba['isOpenVR'] : bb[dol(0x22)]; + this['defaults']['language'] = !Cesium['defined'](bb[dol(0x23)]) ? ba['language'] : bb['language']; + this['defaults'][dol(0x24)] = !Cesium[dol(0x25)](bb['targetFrameRate']) ? ba['targetFrameRate'] : bb['targetFrameRate']; + this['defaults']['measurementUnit'] = 0x1; + if (this['defaults']['cadmode']) { + this['defaults']['bgcolor'] = !Cesium['defined'](bb['bgcolor']) ? Cesium['Color']['fromCssColorString']('#' + doo(0x7) + '0') : bb['bgcolor']; + } + var bj = this; + if (Cesium && Cesium['defined'](Cesium['glendaleApi'])) { + if (Cesium[dol(0x26)](Cesium[dol(0x27)]['viewer']['_container']) && Cesium['glendaleApi']['viewer']['_container'][dol(0x28)] == this['defaults']['container']) { + if (Cesium['isBim'] && Cesium['defined'](Cesium['glendaleApi'][dol(0x29)]['_container'])) + Cesium['glendaleApi']['viewer']['_container']['innerHTML'] = ''; + delete Cesium['glendaleApi']; + delete Cesium['isRequestWebgl2']; + Object['defineProperties'](Cesium, { + 'glendaleApi': { + 'configurable': !![], + 'writable': !![] + }, + 'isRequestWebgl2': { + 'configurable': !![], + 'writable': !![] + }, + 'isBim': { + 'configurable': !![], + 'writable': !![] + } + }); + } + } + Cesium['glendaleApi'] = bj; + Cesium['isRequestWebgl2'] = bj['defaults']['isRequestWebgl2']; + Cesium['isBim'] = !![]; + this['updateConfig'] = function(bb) { + + this['defaults']['showfps'] = !Cesium['defined'](bb['showfps']) ? this['defaults']['showfps'] : bb['showfps']; + this['defaults']['openterrain'] = !Cesium['defined'](bb['openterrain']) ? this['defaults']['openterrain'] : bb[dol(0x2a)]; + this['defaults']['imageryprovider'] = !Cesium['defined'](bb['imageryprovider']) ? this['defaults']['imageryprovider'] : bb['imageryprovider']; + this['defaults']['mapworldkey'] = !Cesium[dol(0x2b)](bb[dol(0x2c)]) ? this['defaults'][dol(0x2d)] : bb[dol(0x2e)]; + this['defaults']['openearth'] = !Cesium['defined'](bb['openearth']) ? this['defaults']['openearth'] : bb['openearth']; + this['defaults']['maxspaceerror'] = !Cesium['defined'](bb['maxspaceerror']) ? this['defaults']['maxspaceerror'] : bb['maxspaceerror']; + this['defaults']['loading'] = !Cesium['defined'](bb['loading']) ? this['defaults']['loading'] : bb['loading']; + this['defaults']['bgcolor'] = !Cesium['defined'](bb['bgcolor']) ? this['defaults']['bgcolor'] : bb['bgcolor']; + this['defaults']['outlinecolor'] = !Cesium['defined'](bb['outlinecolor']) ? this['defaults']['outlinecolor'] : bb['outlinecolor']; + this['defaults']['outlineScaleVal'] = !Cesium['defined'](bb['outlineScaleVal']) ? this['defaults']['outlineScaleVal'] : bb['outlineScaleVal']; + this['defaults']['selectedcolor'] = !Cesium['defined'](bb['selectedcolor']) ? this['defaults'][dol(0x2f)] : bb['selectedcolor']; + this['defaults']['sceneMode'] = !Cesium['defined'](bb['sceneMode']) ? this['defaults']['sceneMode'] : bb['sceneMode']; + this['defaults']['TwoMapNavigationEnable'] = !Cesium[dol(0x30)](bb[dol(0x31)]) ? this['defaults']['TwoMapNavigationEnable'] : bb[dol(0x32)]; + this['defaults']['throughwall'] = !Cesium['defined'](bb['throughwall']) ? this['defaults']['throughwall'] : bb['throughwall']; + this['defaults']['searchbox'] = !Cesium['defined'](bb['searchbox']) ? this['defaults'][dol(0x33)] : bb['searchbox']; + this['defaults']['mapbox'] = !Cesium['defined'](bb['mapbox']) ? this['defaults']['mapbox'] : bb['mapbox']; + this['defaults'][dol(0x34)] = !Cesium[dol(0x35)](bb['editmode']) ? this['defaults']['editmode'] : bb[dol(0x36)]; + this['defaults']['cadmode'] = !Cesium['defined'](bb['cadmode']) ? this['defaults']['cadmode'] : bb['cadmode']; + this['defaults']['loadAnimation'] = !Cesium['defined'](bb['loadAnimation']) ? this['defaults']['loadAnimation'] : bb[dol(0x37)]; + this['defaults']['isStrictClip'] = !Cesium['defined'](bb['isStrictClip']) ? this['defaults'][dol(0x38)] : bb['isStrictClip']; + if (!this['defaults']['openearth']) { + this['viewer']['scene']['backgroundColor'] = this['defaults']['bgcolor']instanceof Cesium['Color'] ? this['defaults']['bgcolor'] : Cesium['Color'][dol(0x39)](this['defaults']['bgcolor']); + } else { + if (!this['defaults']['mapbox']) { + this['viewer'][dol(0x3a)][dol(0x3b)](); + } + if (!this['defaults']['searchbox']) { + this['viewer']['geocoder'][dol(0x3c)](); + } + if (!isEmpty(this['defaults']['imageryprovider'])) { + if (!isEmpty(this['ImageryProvider'])) { + var bl = this['ImageryProvider']['getImagerys'](); + if (bl['has'](this['defaults']['imageryprovider'])) { + this['viewer']['baseLayerPicker'][dol(0x3d)]['selectedImagery'] = bl['get'](this['defaults']['imageryprovider']); + } + } + } else { + this['viewer']['imageryLayers'][dol(0x3e)](); + } + } + this['viewer']['scene']['debugShowFramesPerSecond'] = this['defaults']['showfps']; + if (this['defaults']['openearth'] && this['defaults']['openterrain']) { + this['viewer']['scene']['terrainProvider'] = new Cesium['CesiumTerrainProvider']({ + 'url': this['defaults']['terrainProvider'], + 'requestWaterMask': !![], + 'requestVertexNormals': !![] + }); + } else { + this['viewer']['terrainProvider'] = new Cesium[(dol(0x3f))]({}); + } + let bm = setTimeout( () => { + if (document['getElementsByClassName'](doj(0x4))[0x0]) { + document['getElementsByClassName'](doj(0x5))[0x0][dol(0x40)]['display'] = 'n' + doo(0x8) + 'e'; + } + if (document[dol(0x41)](doj(0x6))[0x0]) { + document[dol(0x42)](doj(0x7))[0x0][dol(0x43)]['display'] = 'n' + doo(0x9) + 'e'; + } + clearTimeout(bm); + } + , 0xc8); + this['viewer']['scene']['requestRender'](); + } + ; + this['enableDoubleSided'] = ![]; + this['viewer'] = new Cesium[(dol(0x44))](this['defaults'][dol(0x45)],{ + 'imageryProvider': ![], + 'contextOptions': { + 'webgl': { + 'alpha': Cesium['defined'](bb['webglAlpha']) ? bb['webglAlpha'] : ![], + 'preserveDrawingBuffer': !![], + 'antialias': !![], + 'premultipliedAlpha': !![] + } + }, + 'baseLayerPicker': this['defaults']['openearth'], + 'animation': ![], + 'timeline': ![], + 'shouldAnimate': !![], + 'navigationHelpButton': ![], + 'sceneModePicker': ![], + 'homeButton': ![], + 'geocoder': !![], + 'fullscreenButton': ![], + 'selectionIndicator': ![], + 'infoBox': ![], + 'sceneMode': this['defaults']['sceneMode'], + 'scene3DOnly': this['defaults']['sceneMode'] == Cesium['SceneMode']['SCENE3D'] ? !![] : ![], + 'requestRenderMode': this['defaults']['requestRenderMode'], + 'maximumRenderTimeChange': Infinity, + 'isRequestWebgl2': this['defaults']['isRequestWebgl2'], + 'orderIndependentTranslucency': !![], + 'api': this, + 'msaaSamples': this['defaults']['isMsaaSamples'] ? 0x4 : 0x1, + 'vrButton': this['defaults']['isOpenVR'] + }); + this['viewer']['scene']['globe']['show'] = this['defaults']['openearth']; + this['viewer']['scene'][dol(0x46)]['style']['userSelect'] = 'n' + doo(0xa) + 'e'; + this['viewer']['scene']['canvas'][dol(0x47)]['webkitUserSelect'] = 'n' + doo(0xb) + 'e'; + this['viewer']['scene']['skyBox']['show'] = ![]; + if (this['defaults']['openearth'] && this['defaults']['openterrain']) { + this['viewer']['scene']['terrainProvider'] = new Cesium['CesiumTerrainProvider']({ + 'url': this['defaults']['terrainProvider'], + 'requestWaterMask': !![], + 'requestVertexNormals': !![] + }); + this['viewer']['scene']['terrainProvider']['terrainFlatten'] = { + 'isFlatten': ![], + 'flattenX': [], + 'flattenY': [], + 'flattenHeight': 0x0, + 'isFill': !![] + }; + } + if (this['IsOptimizeRendering'] && this['RenderMode'] == 0x1) { + var bn = this['viewer']['scene']['postProcessStages']; + this['viewer']['scene']['brightness'] = this['viewer']['scene']['brightness'] || bn['add'](Cesium['PostProcessStageLibrary']['createBrightnessStage']()); + this['viewer']['scene']['brightness']['enabled'] = !![]; + this['viewer']['scene']['brightness']['uniforms'][dol(0x48)] = 1.1; + } + this['viewer']['cesiumWidget']['screenSpaceEventHandler']['removeInputAction'](Cesium['ScreenSpaceEventType']['LEFT_DOUBLE_CLICK']); + this['viewer']['_cesiumWidget']['_creditContainer']['style']['display'] = 'n' + doo(0xc) + 'e'; + this['viewer']['scene']['debugShowFramesPerSecond'] = this['defaults']['showfps']; + let bo = setTimeout( () => { + if (document['getElementsByClassName'](doj(0x8))[0x0]) { + document['getElementsByClassName'](doj(0x9))[0x0]['style']['display'] = 'n' + doo(0xd) + 'e'; + } + if (document['getElementsByClassName'](doj(0xa))[0x0]) { + document['getElementsByClassName'](doj(0xb))[0x0]['style']['display'] = 'n' + doo(0xe) + 'e'; + } + clearTimeout(bo); + } + , 0xc8); + this['viewer']['scene']['skyBox']['show'] = ![]; + this['viewer']['scene']['skyAtmosphere']['show'] = ![]; + this['viewer'][dol(0x49)]['globe']['enableLighting'] = ![]; + if (this['viewer']['scene']['globe']) { + this['viewer']['scene']['globe']['depthTestAgainstTerrain'] = !![]; + } + if (this['viewer']['scene'][dol(0x4a)]) { + this['viewer']['scene']['moon']['show'] = ![]; + } + if (Cesium['FeatureDetection']['supportsImageRenderingPixelated']()) { + this['viewer'][dol(0x4b)] = window['devicePixelRatio'] * 0x1; + } + this['viewer']['_cesiumWidget']['_showRenderLoopErrors'] = ![]; + this['viewer']['scene']['fog']['enabled'] = this['defaults']['openearth']; + this['viewer']['scene']['backgroundColor'] = this['defaults']['bgcolor']instanceof Cesium['Color'] ? this['defaults']['bgcolor'] : Cesium['Color'][dol(0x4c)](this['defaults']['bgcolor']); + this['viewer']['scene']['useDepthPicking'] = !![]; + this['viewer'][dol(0x4d)]['pickTranslucentDepth'] = !![]; + this['viewer']['scene']['fxaa'] = !![]; + this['viewer'][dol(0x4e)]['postProcessStages']['_fxaa']['enabled'] = !![]; + this['viewer']['scene']['screenSpaceCameraController']['enableCollisionDetection'] = !this['defaults']['throughwall']; + this['viewer']['targetFrameRate'] = this['defaults']['targetFrameRate']; + Cesium['Camera'][dol(0x4f)] = Cesium['Rectangle']['fromDegrees'](0x49, 0x3, 0x87, 0x35); + this['viewer']['camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromDegrees'](110.2, 34.55, 0x1036640) + }); + this['viewer'][dol(0x50)]['logarithmicDepthBuffer'] = !![]; + this['TransformContorl'] = undefined; + if (bb['backgroundImageUrl']) { + this['viewer']['scene']['backgroundImageUrl'] = bb['backgroundImageUrl']; + } + if (this['isMobile']() || this['defaults']['cadmode']) { + this['viewer']['camera']['frustum']['near'] = 0.0001; + } + var bp = this['viewer']['scene']['screenSpaceCameraController']; + bp['zoomEventTypes'] = [Cesium['CameraEventType']['WHEEL'], Cesium['CameraEventType']['PINCH']]; + bp['rotateEventTypes'] = this['isMobile']() ? Cesium[dol(0x51)]['PINCH'] : Cesium['CameraEventType']['RIGHT_DRAG']; + bp['tiltEventTypes'] = [Cesium[dol(0x52)]['MIDDLE_DRAG'], Cesium['CameraEventType']['LEFT_DRAG'], { + 'eventType': Cesium['CameraEventType']['LEFT_DRAG'], + 'modifier': Cesium['KeyboardEventModifier']['CTRL'] + }, { + 'eventType': Cesium['CameraEventType']['RIGHT_DRAG'], + 'modifier': Cesium[dol(0x53)]['CTRL'] + }]; + this['nameOverlay'] = document['createElement'](doh(0x2)); + this['viewer']['container'][dol(0x54)](this['nameOverlay']); + this['nameOverlay']['className'] = 'b' + doo(0xf) + 'p'; + this['nameOverlay']['style']['display'] = 'n' + doo(0x10) + 'e'; + this['nameOverlay'][dol(0x55)]['position'] = 'a' + doo(0x11) + 'e'; + this['nameOverlay']['style']['bottom'] = '0'; + this['nameOverlay']['style']['left'] = '0'; + this['nameOverlay']['style']['p' + doo(0x12) + 's'] = 'n' + doo(0x13) + 'e'; + this['nameOverlay']['style']['padding'] = doh(0x3); + this['nameOverlay']['style']['color'] = 'w' + doo(0x14) + 'e'; + this['boxRegionElement'] = document['createElement'](doh(0x4)); + this['viewer']['container']['appendChild'](this['boxRegionElement']); + this['boxRegionElement']['style']['display'] = 'n' + doo(0x15) + 'e'; + this['boxRegionElement'][dol(0x56)]['position'] = 'a' + doo(0x16) + 'e'; + this['boxRegionElement']['style']['p' + doo(0x17) + 's'] = 'n' + doo(0x18) + 'e'; + this['boxRegionElement']['style']['backgroundColor'] = 'r' + doo(0x19) + ')'; + var bq = new Cesium['Cartesian3'](); + var br; + var bs = new Cesium['Cartesian3'](); + var bt = function(bu) { + if (!bu['extensionsUsed'] || !bu['extensionsUsed'] || !bu['extensionsRequired']) { + return; + } + var bv = bu['extensionsUsed']['indexOf']('K' + doo(0x1a) + 'l'); + var bw = bu['extensionsRequired'] == undefined ? null : bu['extensionsRequired']['indexOf']('K' + doo(0x1b) + 'l'); + if (bv !== -0x1) { + bu['extensionsRequired']['splice'](bw, 0x1, 'K' + doo(0x1c) + 'l'); + bu['extensionsUsed']['splice'](bv, 0x1, 'K' + doo(0x1d) + 'l'); + bu['extensions'] = bu[dol(0x57)] || {}; + bu['extensions']['K' + doo(0x1e) + 'l'] = {}; + bu['extensions']['K' + doo(0x1f) + 'l']['programs'] = bu['programs']; + bu['extensions']['K' + doo(0x20) + 'l']['shaders'] = bu['shaders']; + bu['extensions']['K' + doo(0x21) + 'l']['techniques'] = bu['techniques']; + var bx = bu['extensions']['K' + doo(0x22) + 'l']['techniques']; + bu['materials']['forEach'](function(by, bz) { + bu['materials'][bz]['extensions']['K' + doo(0x23) + 'l']['values'] = bu['materials'][bz]['values']; + bu['materials'][bz]['extensions']['K' + doo(0x24) + 'l'] = bu['materials'][bz]['extensions']['K' + doo(0x25) + 'l']; + var bA = bu['materials'][bz]['extensions']['K' + doo(0x26) + 'l']; + for (var bB in bA['values']) { + var bC = bx[bA['technique']][dol(0x58)]; + for (var bD in bC) { + if (bC[bD] === bB) { + bA['values'][bD] = bA['values'][bB]; + delete bA['values'][bB]; + break; + } + } + } + ; + }); + bx[dol(0x59)](function(bw) { + for (var bF in bw[dol(0x5a)]) { + var bG = bw['attributes'][bF]; + bw['attributes'][bF] = bw['parameters'][bG]; + } + ;for (var bH in bw['uniforms']) { + var bG = bw['uniforms'][bH]; + bw[dol(0x5b)][bH] = bw['parameters'][bG]; + } + ; + }); + } + }; + Object['defineProperties'](Cesium['Model']['prototype'], { + '_cachedGltf': { + 'configurable': !![], + 'set': function(bJ) { + this['_vtxf_cachedGltf'] = bJ; + if (this['_vtxf_cachedGltf'] && this['_vtxf_cachedGltf'][dol(0x5c)]) { + bt(this['_vtxf_cachedGltf']['_gltf']); + } + }, + 'get': function() { + return this['_vtxf_cachedGltf']; + } + } + }); + var bK = null; + var bL = null; + var bM = null; + var bN = null; + var bO = null; + var bP = null; + var bQ = null; + var bR = null; + var bS = null; + var bT = null; + var bU = null; + var bV = null; + var bW = null; + var bX = null; + var bY = null; + var bZ = null; + var c0 = null; + var c1 = null; + var c2 = 0x57; + var c3 = 0x53; + var c4 = 0x51; + var c5 = 0x45; + var c6 = 0x44; + var c7 = 0x41; + var c8 = 0x58; + var c9 = 0x5a; + var ca = 0x26; + var cb = 0x28; + var cc = []; + var cd; + var ce = []; + var cf = []; + var cg = []; + var ch = 0x0; + var ci = ![]; + var cj = ''; + var ck = []; + var cl = []; + var cm = []; + var cn = doj(0xc) + ('v' + doo(0x27) + ')') + '{' + doj(0xd) + doj(0xe) + doj(0xf) + doj(0x10) + doj(0x11) + doj(0x12) + doj(0x13) + doj(0x14) + doj(0x15) + doj(0x16) + doj(0x17) + doj(0x18) + doj(0x19) + '}'; + var co = new Map(); + var cp; + var cq; + var cr = 0x32; + if (this['defaults']['openearth']) { + if (!this['defaults']['mapbox']) { + this['viewer'][dol(0x5d)][dol(0x5e)]['style']['display'] = 'n' + doo(0x28) + 'e'; + } + if (!this['defaults']['searchbox']) { + this['viewer']['geocoder']['_container']['style']['display'] = 'n' + doo(0x29) + 'e'; + } + } else { + this['viewer']['geocoder']['_container']['style']['display'] = 'n' + doo(0x2a) + 'e'; + } + var cs = this; + if (this['defaults']['openearth'] && this['defaults']['sceneMode'] == Cesium[dol(0x5f)]['SCENE3D']) { + this['ImageryProvider'] = new ImageryProvider(this); + if (!isEmpty(this['defaults']['imageryprovider'])) { + if (!isEmpty(this['ImageryProvider'])) { + var ct = this['ImageryProvider']['getImagerys'](); + if (ct['has'](this['defaults']['imageryprovider'])) { + this['viewer']['baseLayerPicker']['viewModel']['selectedImagery'] = ct['get'](this['defaults']['imageryprovider']); + } + } + } else { + this['viewer']['imageryLayers']['removeAll'](); + } + cs['viewer']['scene']['globe']['tileCacheSize'] = 0x3e8; + cs['viewer']['scene']['globe']['maximumScreenSpaceError'] = 0x4 / 0x3; + cs['viewer']['scene']['requestRender'](); + } + var cu = function() { + if (parametricObj['_initialTilesLoaded']) { + TimerParametric['stop'](tag); + if (!isEmpty(initLoadedFunc)) { + initLoadedFunc({ + 'loaded': !![], + 'locate': ![], + 'obj': model, + 'time': TimerParametric['getTime'](tag) + }); + parametricObj['loadingEvent']['removeEventListener'](cu); + } + } + }; + let cv = 0x1; + let cw = 0x2; + let cx = 0x4; + let cy = 0x8; + let cz = 0x10; + let cA = 0x20; + let cB = 0x40; + let cC = 0x200; + let cD = 0x80; + let cE = 0x100; + let cF = 0x400; + let cG = 0x800; + let cH = 0x1000; + var cI = aB7(); + var cJ = cI[0x0]; + var cK = cI[0x1]; + var cL = ''; + var cM = { + 'add': 0x1, + 'end': 0x0 + }; + this['Model'] = { + 'add': function(cN, cO, cP, cQ, bb) { + if (cs['m_model'][dol(0x60)](cO['toString']()) === undefined) { + if (cs['defaults']['loadAnimation']) { + if (!isEmpty(cL)) { + cM['add']++; + } else { + var cS = doj(0x1a) + cs['defaults']['sitepath'] + doj(0x1b) + doh(0x5); + this['nameOverlay'] = document['createElement'](doh(0x6)); + cs['viewer']['container']['appendChild'](this['nameOverlay']); + cL = Math[dol(0x61)]()['toString']()['slice'](0x2); + this['nameOverlay']['id'] = cL; + this['nameOverlay']['style']['display'] = 'f' + doo(0x2b) + 'x'; + this['nameOverlay'][dol(0x62)]['alignItems'] = 'c' + doo(0x2c) + 'r'; + this['nameOverlay']['style']['position'] = 'a' + doo(0x2d) + 'e'; + this['nameOverlay']['style']['bottom'] = '1' + doo(0x2e) + 'x'; + this['nameOverlay']['style'][dol(0x63)] = '1' + doo(0x2f) + 'x'; + this['nameOverlay']['style']['p' + doo(0x30) + 's'] = 'n' + doo(0x31) + 'e'; + this['nameOverlay']['style']['padding'] = doh(0x7); + this['nameOverlay']['style'][dol(0x64)] = '#' + doo(0x32) + 'F'; + this['nameOverlay']['innerHTML'] = cS; + } + } + cO = cO['toString'](); + cs['tagName'] = cO; + bb = extend({ + 'flyto': !![], + 'matrix': undefined, + 'isoutline': ![], + 'modelName': '', + 'maxspaceerror': cs['defaults']['maxspaceerror'], + 'offsetPos': bb == undefined ? null : bb['offsetPos'], + 'RotateAxis': bb == undefined ? null : bb['RotateAxis'], + 'viewDirection': undefined, + 'viewEye': undefined, + 'viewOffsetEye': undefined, + 'maximumMemory': 0x1000, + 'osgbEdit': ![], + 'initView': [0x0, -0x1e, 0x1], + 'isStrictClip': !![] + }, bb); + var cT = new Cesium['Cesium3DTileset']({ + 'url': cN, + 'maximumScreenSpaceError': 0x10, + 'maximumNumberOfLoadedTiles': 0x3e8, + 'skipLevelOfDetail': !![], + 'baseScreenSpaceError': 0x400, + 'skipScreenSpaceErrorFactor': 0x10, + 'skipLevels': 0x1, + 'immediatelyLoadDesiredLevelOfDetail': !![], + 'loadSiblings': !![], + 'cullWithChildrenBounds': ![], + 'dynamicScreenSpaceError': ![], + 'dynamicScreenSpaceErrorDensity': 0.00278, + 'dynamicScreenSpaceErrorFactor': 0x4, + 'dynamicScreenSpaceErrorHeightFalloff': 0.25, + 'debugShowStatistics': ![], + 'debugShowUrl': ![], + 'debugShowGeometricError': ![], + 'debugShowMemoryUsage': ![], + 'debugWireframe': bb['isoutline'], + 'debugShowBoundingVolume': ![], + 'debugShowContentBoundingVolume': ![], + 'debugColorizeTiles': ![], + 'viewer': cs['viewer'], + 'tagName': cO, + 'newLonLat': Cesium['defined'](bb['pos']) ? [bb['pos']] : undefined, + 'parametricFun': cu, + 'minimumNdotL': cs['minimumNdotL'], + 'osgbEdit': Cesium['defined'](bb['osgbEdit']) ? bb[dol(0x65)] : ![], + 'restoreMCS': Cesium['defined'](bb['restoreMCS']) ? bb['restoreMCS'] : undefined, + 'modelOffset': Cesium['defined'](bb['modelOffset']) ? bb['modelOffset'] : [0x0, 0x0, 0x0], + 'brightnessEnhancement': Cesium['defined'](bb['brightnessEnhancement']) ? bb['brightnessEnhancement'] : undefined, + 'minio': bb['minio'], + 'requestHeaders': bb['requestHeaders'] + }); + cs['viewer']['scene'][dol(0x66)]['add'](cT); + cT['readyPromise'][dol(0x67)](function(cU) { + cU['tileLoad']['addEventListener'](function(cV) { + if (bb['OntileLoaded']) + bb['OntileLoaded'](cO, cV); + }); + dN['start'](cO); + cU['id'] = cO; + cU['modelname'] = bb['modelName']; + cU['maxspaceerror'] = bb['maxspaceerror']; + cU[dol(0x68)] = bb['flyto']; + cU['stylecolor'] = 'r' + doo(0x33) + ')'; + cU['rotate'] = [0x0, 0x0, 0x0]; + cU[dol(0x69)] = bb['viewDirection']; + cU['viewEye'] = bb['viewEye']; + cU['viewOffsetEye'] = bb['viewOffsetEye']; + cU['pointCloudShading']['attenuation'] = !![]; + cU[dol(0x6a)]['eyeDomeLighting'] = !![]; + cU[dol(0x6b)]['maximumAttenuation'] = 0x2; + cU['pointCloudShading']['baseResolution'] = 0.05; + cU['pointCloudShading']['geometricErrorScale'] = 0.5; + var cW = navigator['userAgent']; + if (cW['indexOf']('A' + doo(0x34) + 'd') > -0x1 || cW[dol(0x6c)]('i' + doo(0x35) + 'e') > -0x1 || cW['indexOf']('i' + doo(0x36) + 'd') > -0x1 || cW['indexOf']('i' + doo(0x37) + 'd') > -0x1) { + cU['maximumMemoryUsage'] = 0x200; + } else { + cU['maximumMemoryUsage'] = bb['maximumMemory']; + } + cs['m_model']['set'](cO, cU); + cs['Model']['setMaxSpaceError'](bb['maxspaceerror'], cO); + if (!cs['modelStyleMap']['has'](cO)) { + cs['modelStyleMap']['set'](cO, new Map()); + } + if (!cs['modelShowMap']['has'](cO)) { + cs['modelShowMap'][dol(0x6d)](cO, new Map()); + } + if (!cs['modelFlatten']['has'](cO)) { + cs['modelFlatten']['set'](cO, new Map()); + } + if (!cs['modelCutPart']['has'](cO)) { + cs['modelCutPart']['set'](cO, new Map()); + } + if (!cs['modelCutCircle']['has'](cO)) { + cs['modelCutCircle'][dol(0x6e)](cO, new Map()); + } + if (!cs['topRenderMap']['has'](cO)) { + cs['topRenderMap']['set'](cO, new Map()); + } + cU['colorBlendMode'] = cU[dol(0x6f)] === 0x1 ? 0x1 : cs['defaults']['colorBlendMode']; + cU['tilesetoutline'] = {}; + if (cU['root']['boundingVolume'] != undefined && cU['root']['boundingVolume']['rectangle'] != undefined) { + var cX = new Cesium['RectangleGeometry']({ + 'rectangle': cU['root']['boundingVolume']['rectangle'], + 'height': cU['root']['boundingVolume']['minimumHeight'], + 'extrudedHeight': cU['root']['boundingVolume']['maximumHeight'] + }); + var cY = Cesium[dol(0x70)]['createGeometry'](cX); + cU['tilesetoutline']['rectangle'] = cU['root']['boundingVolume']['rectangle']; + cU['tilesetoutline']['positions'] = cY['attributes'][dol(0x71)]['values']; + cU['tilesetoutline']['boundingsphere'] = cY['boundingSphere']; + cU['tilesetoutline']['boundingVolume'] = cU['root']['boundingVolume']; + cU['tilesetoutline']['minimumHeight'] = cU['root'][dol(0x72)]['minimumHeight']; + cU['tilesetoutline']['maximumHeight'] = cU[dol(0x73)]['boundingVolume']['maximumHeight']; + } + var cZ = !Cesium['defined'](bb['clipBox']) ? cU[dol(0x74)]['_header']['clipBox'] : bb['clipBox']; + var d0 = !Cesium['defined'](bb['isStrictClip']) ? cs['defaults']['isStrictClip'] : bb['isStrictClip']; + if (d0 && cZ != undefined && cZ['length'] == 0x2) { + var d1 = cs[dol(0x75)]['initClippingSystem'](); + var d2 = 'c' + doo(0x38) + '_' + cO; + d1['add']({ + 'id': d2, + 'tags': cO, + 'initClipBox': cZ, + 'isInitModelClipBox': !![], + 'isStrict': d0 + }); + d1['setVisible'](d2, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + } + if (isEmpty(cU['style'])) + cU['style'] = new Cesium['Cesium3DTileStyle'](); + if (!isEmpty(bb['transform']) && bb['transform']['length'] == 0x10) { + var d3 = Cesium['Matrix4'][dol(0x76)](bb['transform']); + cU['root']['transform'] = d3; + } + if (!isEmpty(bb['matrix']) && bb['matrix']['length'] == 0x10) { + var d3 = Cesium['Matrix4']['fromArray'](bb['matrix']); + cU['modelMatrix'] = d3; + } + if (!isEmpty(bb['rotate'])) { + cU['rotate'] = bb['rotate']; + } + if (!isEmpty(bb['offsetPos'])) { + var d5 = Cesium[dol(0x77)]['fromCartesian'](cU['boundingSphere']['center']); + var d6 = Cesium['Cartesian3']['fromRadians'](d5['longitude'], d5[dol(0x78)], d5['height']); + var d7 = cs['funcPublic']['inputRadianToCartesian3'](bb['offsetPos'], cs['viewer']); + var d8 = Cesium[dol(0x79)][dol(0x7a)](d7, d6, new Cesium['Cartesian3']()); + var d3 = Cesium['Matrix4']['fromTranslation'](d8); + var da = Cesium['Matrix4']['multiplyTransformation'](d3, cU['modelMatrix'], new Cesium['Matrix4']()); + cU['modelMatrix'] = da; + } + if (!isEmpty(bb['RotateAxis'])) { + var d3 = Cesium['Matrix4'][dol(0x7b)]; + var dc = cU['boundingSphere']['center']; + var dd = Cesium['Quaternion']['fromAxisAngle'](dc, Cesium['Math']['toRadians'](bb['RotateAxis'])); + var de = Cesium['Matrix3']['fromQuaternion'](dd); + var df = Cesium['Matrix4'][dol(0x7c)](de); + Cesium['Matrix4']['multiplyTransformation'](d3, df, df); + var da = Cesium[dol(0x7d)]['multiplyTransformation'](df, cU['modelMatrix'], new Cesium['Matrix4']()); + cU['modelMatrix'] = da; + } + cU['_modelOriginalMatrix'] = cU['modelMatrix']['clone'](); + cU['_uniforms'] = {}; + cU[dol(0x7e)]['flattenCount'] = new Cesium['Cartesian3'](); + cU['_uniforms']['alphaCount'] = new Cesium[(dol(0x7f))](); + cU['_uniforms']['circleCount'] = new Cesium['Cartesian3'](); + cU['_uniforms']['flattenData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + cU['_uniforms']['alphaData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + cU['_uniforms']['circleData'] = new Cesium['Texture']({ + 'context': cs[dol(0x80)]['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + if (cs['getPipelineFlowState']()) { + cU['_uniforms']['flowTextureParams'] = new Cesium['Texture']({ + 'context': cs[dol(0x81)][dol(0x82)]['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + cU['_uniforms']['flowTextureParamsStep'] = new Cesium['Cartesian3'](0x0,0x0,0x0); + cU['_uniforms']['flowTextures'] = [new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + })]; + var dh = !Cesium['defined'](bb['flowTextureNum']) ? !Cesium['defined'](cs['defaults']['flowTextureNum']) ? 0x5 : cs['defaults']['flowTextureNum'] : bb['flowTextureNum']; + for (var di = 0x1; di < dh; di++) { + cU['_uniforms']['flowTextures']['push'](new Cesium['Texture']({ + 'context': cs[dol(0x83)]['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium[dol(0x84)]['UNSIGNED_BYTE'] : Cesium['PixelDatatype'][dol(0x85)], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + })); + } + } + var dj = Number(bb['initView'][0x0]); + var dk = Number(bb[dol(0x86)][0x1]); + var dl = Number(bb[dol(0x87)][0x2]); + function dm() { + if (!bb[dol(0x88)]) { + dj = 0x0; + dk = -0x5a; + var dn = cs[dol(0x89)]['scene']['camera']; + if (!dn['frustum3D']) + dn['frustum3D'] = dn['frustum']['clone'](); + if (!dn['frustum2D']) { + var dp = new Cesium['OrthographicFrustum'](); + dp[dol(0x8a)] = 0x1dcd6500; + dp['near'] = 0x1 / 0x1dcd6500; + dp['_offCenterFrustum']['left'] = 0x0; + dp['_offCenterFrustum']['right'] = 0x0; + dp[dol(0x8b)]['top'] = 0x0; + dp['_offCenterFrustum']['bottom'] = 0x0; + dp['_offCenterFrustum']['near'] = 0x1 / 0x1dcd6500; + dp['_offCenterFrustum']['far'] = 0x1dcd6500; + dp['width'] = 0x32; + dp['aspectRatio'] = dn['frustum']['aspectRatio']; + dn['frustum'] = dp; + dn['frustum2D'] = dn['frustum']['clone'](); + } else { + dn['frustum'] = dn['frustum2D']['clone'](); + } + cs['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + cs['Public']['changeEventType']({ + 'zoomEventTypes': [Cesium['CameraEventType']['WHEEL'], Cesium['CameraEventType']['PINCH']], + 'rotateEventTypes': [Cesium['CameraEventType']['LEFT_DRAG'], Cesium['CameraEventType']['RIGHT_DRAG']] + }); + var dq = cs['Model']['getModelsCenter'](); + var dr = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](dq['center'], dr); + var ds = new Cesium[(dol(0x8c))](); + Cesium['Matrix4']['inverse'](cs['tileset'][dol(0x8d)]['transform'], ds); + Cesium[dol(0x8e)]['multiplyByPoint'](ds, dr, dr); + Cesium[dol(0x8f)]['multiplyByPoint'](cs['tileset']['root']['transform'], dr, dr); + if (cs['viewer'][dol(0x90)]['getById']('C' + doo(0x39) + 'G')) { + cs['viewer']['entities'][dol(0x91)]('C' + doo(0x3a) + 'G'); + } + cs['Public']['drawPlane'](dr, 'C' + doo(0x3b) + 'G', dq['radius'] * cr, dq['radius'] * cr); + cp = undefined; + cq = undefined; + var dt = cs['Model']['getCenter'](); + var du = [dt['position'][0x0], dt['position'][0x1], dq['radius'] * 0x2]; + cs['viewer']['camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromRadians'](du[0x0], du[0x1], du[0x2]), + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math']['toRadians'](-0x5a), + 'roll': 0x0 + } + }); + cs[dol(0x92)] = doh(0x8); + cs['viewer']['scene'][dol(0x93)](); + } + var dv = function() { + if (bb['flyto']) { + if (bb['cadBoundingBox']) { + var dw = cs['Public']['convertModelToWorld'](bb['cadBoundingBox']['min'][0x0], bb['cadBoundingBox']['min'][0x1], bb['cadBoundingBox']['min'][0x2], cO); + var dx = cs['Public']['convertModelToWorld'](bb[dol(0x94)]['max'][0x0], bb['cadBoundingBox']['max'][0x1], bb['cadBoundingBox']['max'][0x2], cO); + cs['Camera']['lookAt']({ + 'type': 0x0, + 'min': dw, + 'max': dx, + 'tag': bj['tag'], + 'heading': 0x0, + 'pitch': -0x5a + }); + if (Cesium['defined'](dL)) + cU['allTilesLoaded']['addEventListener'](dL); + } else { + cs['funcPublic']['zoom'](cU, cs['viewer'], dj, dk, dl, dL); + } + } else { + cU['allTilesLoaded']['addEventListener'](dL); + } + }; + if (!bb[dol(0x95)]) { + let dy = cU['_basePath']['split']('?')[0x0] + ('c' + doo(0x3c) + 'n'); + fetch(dy)['then'](function(dz) { + return dz['json'](); + })['then'](function(dA) { + cU['cadInfo'] = dA; + if (bb['onCadInfoLoaded']) { + bb['onCadInfoLoaded'](cO, cU, dA); + } + var dB = dA['ViewPort']['BoundingBox']; + var dC = [dB['Min']['X'], dB['Min']['Y'], dB['Min']['Z']]; + var dD = [dB['Max']['X'], dB['Max']['Y'], dB[dol(0x96)]['Z']]; + var dE = { + 'min': dC, + 'max': dD + }; + if (dA[dol(0x97)]) { + bb[dol(0x98)] = dE; + } + dv(); + })['catch'](function(dF) { + dv(); + }); + } else { + dv(); + } + } + cs['tileset'] = cU; + if (cU['isBimModel'] === 0x1) + dm(); + else { + if (cs['defaults']['openearth']) { + if (cs[dol(0x99)]['loading'] && bb['flyto']) { + var dG = cs['viewer']['flyTo'](cU, { + 'duration': 5.5, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](0x0),Cesium[dol(0x9a)][dol(0x9b)](-0x1e),0x0) + }); + dG['then'](function(dG) { + if (dG) { + cs['funcPublic']['zoom'](cU, cs['viewer'], dj, dk, dl, dL); + } + })['catch'](function(dI) { + aCe(dI); + }); + } else { + if (bb['flyto']) { + cs['funcPublic']['zoom'](cU, cs['viewer'], dj, dk, dl, dL); + } else { + cU['allTilesLoaded']['addEventListener'](dL); + } + } + } else if (cs['defaults']['editmode'] && cs[dol(0x9c)] != '' && isEmpty(bb['matrix']) && isEmpty(bb['offsetPos']) && cU['id'] != 'a' + doo(0x3d) + 'r') { + cU['unfixed'] = !![]; + if (cs['BaseContorl'] != undefined) { + cs['BaseContorl']['tileset'] = cU; + } else { + var dJ = '编' + doo(0x3e) + '!'; + if (cs['defaults']['language']['toLowerCase']() == doh(0x9)) + dJ = doj(0x1c); + if (cs['defaults']['language']['toLowerCase']() == 'z' + doo(0x3f) + 'w') + dJ = '編' + doo(0x40) + '!'; + aCe(dJ); + } + cs['BaseContorl']['callback'] = cQ; + cU['allTilesLoaded']['addEventListener'](dL); + } else { + if (bb['flyto']) { + cs['funcPublic']['zoom'](cU, cs['viewer'], dj, dk, dl, dL); + } else { + cU['allTilesLoaded']['addEventListener'](dL); + } + } + } + if (!isEmpty(cP)) { + cP({ + 'obj': cU + }); + } + cU['outlineOn'] = !![]; + if (cU[dol(0x9d)]) + aBc(); + })['catch'](function(dK) { + if (!isEmpty(cQ)) { + cQ({ + 'loaded': ![] + }); + } + aCe(dK); + }); + var dL = function() { + if (cT['_initialTilesLoaded']) { + dN['stop'](cO); + var dM = document['getElementById'](cL); + if (!isEmpty(dM)) { + if (cM['add'] == 0x1) { + cs['viewer']['container']['removeChild'](dM); + cM = { + 'add': 0x1, + 'end': 0x0 + }; + cL = ''; + } else { + cM['end']++; + if (cM['end'] == cM['add']) { + cs['viewer']['container']['removeChild'](dM); + cM = { + 'add': 0x1, + 'end': 0x0 + }; + cL = ''; + } + } + } + if (!isEmpty(cQ)) { + cQ({ + 'loaded': !![], + 'locate': ![], + 'obj': cT, + 'time': dN['getTime'](cO) + }); + cT['allTilesLoaded']['removeEventListener'](dL); + } + } + }; + var dN = { + 'data': {}, + 'start': function(dO) { + dN['data'][dO] = new Date(); + }, + 'stop': function(dP) { + var dQ = dN['data'][dP]; + if (dQ) + dN['data'][dP] = new Date() - dQ; + }, + 'getTime': function(dR) { + return dN[dol(0x9e)][dR]; + } + }; + const dS = cs['viewer']['scene']['context']['_gl']['getExtension']('W' + doo(0x41) + 't'); + if (dS) + dS[dol(0x9f)](); + } + }, + 'adjust': function(dT, dU, dV) { + var dW = cs['m_model']['get'](dU); + var dX = Cesium['Matrix4']['inverse'](dW[dol(0xa0)]['transform'], new Cesium['Matrix4']()); + var dY = Cesium['Matrix4']['multiplyByPoint'](dX, dT, new Cesium['Cartesian3']()); + var dZ = Cesium['Matrix4'][dol(0xa1)](new Cesium[(dol(0xa2))](-dY['x'],-dY['y'],-dY['z'])); + var e0 = dW['root']['transform']; + if (Cesium['defined'](dV)) { + var e1 = Cesium['Cartographic']['fromCartesian'](dV); + e0 = Cesium['Transforms']['headingPitchRollToFixedFrame'](Cesium['Cartesian3']['fromRadians'](e1['longitude'], e1['latitude'], e1['height']), new Cesium['HeadingPitchRoll']()); + } + var e2 = Cesium['Matrix4']['inverse'](dW['root']['transform'], new Cesium['Matrix4']()); + var e3 = Cesium['Matrix4']['multiply'](e0, dZ, new Cesium['Matrix4']()); + var e4 = Cesium['Matrix4']['multiply'](e3, e2, new Cesium['Matrix4']()); + dW[dol(0xa3)] = e4; + if (cs['EditViewMode'] == doh(0xa)) { + cs['funcPublic']['updateCadBg'](); + } + }, + 'autoAdjust': function(e5, e6) { + var e7 = cs['m_model']['get'](e5); + var e8 = Cesium['Matrix4']['multiplyByPoint'](e7['root']['transform'], new Cesium['Cartesian3'](0x0,0x0,0x0), new Cesium['Cartesian3']()); + this['adjust'](e8, e5, e6); + }, + 'adjustPickup': function(e9) { + let ea = undefined; + cs['Public']['event']('M' + doo(0x42) + 'E', function(eb) { + var ec = cs['funcPublic']['pickPosition'](eb[dol(0xa4)], cs['viewer']); + if (ec['position']) { + ea = cs['funcPublic']['calculateVertex'](eb['endPosition'], ec['position'], cs); + } + if (Cesium[dol(0xa5)](ea)) { + cs['viewer'][dol(0xa6)]['style']['cursor'] = B7; + } else { + cs['viewer']['container'][dol(0xa7)]['cursor'] = 'd' + doo(0x43) + 't'; + } + }); + cs['Public']['event']('L' + doo(0x44) + 'K', function(ed) { + var ee = cs['funcPublic']['pickPosition'](ed['position'], cs['viewer']); + if (ee[dol(0xa8)]) { + if (Cesium['defined'](ea)) { + Cesium['Cartesian3']['clone'](ea, ee['position']); + } else { + ea = cs['funcPublic']['calculateVertex'](ed['position'], ee['position'], cs); + if (Cesium['defined'](ea)) + Cesium['Cartesian3']['clone'](ea, ee['position']); + } + if (!isEmpty(e9)) { + e9(ee['position']); + } + } + }); + }, + 'addMinio': function(ef, eg, eh, bb) { + var ej = new XMLHttpRequest(); + ej['open']('P' + doo(0x45) + 'T', cs['defaults']['stationHost'] + doj(0x1d), !![]); + ej['setRequestHeader']('C' + doo(0x46) + 'e', 'a' + doo(0x47) + ';'); + ej['onreadystatechange'] = function() { + if (ej['readyState'] === 0x4) { + if (ej['status'] === 0xc8 || ej['status'] === 0x0) { + cs['Model']['add'](ej['responseText'], ef, eg, eh, bb); + } + } + } + ; + ej['timeout'] = 0x4e20; + ej['ontimeout'] = function(ek) { + aCe('r' + doo(0x48) + '!'); + } + ; + ej['send'](JSON['stringify'](bb['minio'])); + }, + 'addByInstance': function(el, em, en, eo, bb) { + if (cs['m_model']['get'](em['toString']()) === undefined) { + em = em['toString'](); + cs['tagName'] = em; + bb = extend({ + 'flyto': !![], + 'matrix': undefined, + 'isoutline': ![], + 'modelName': '', + 'maxspaceerror': cs['defaults']['maxspaceerror'], + 'offsetPos': bb == undefined ? null : bb['offsetPos'], + 'RotateAxis': bb == undefined ? null : bb['RotateAxis'], + 'viewDirection': undefined, + 'viewEye': undefined, + 'viewOffsetEye': undefined, + 'maximumMemory': 0x1000, + 'initView': [0x0, -0x1e, 0x1] + }, bb); + var eq = new Cesium[(dol(0xa9))]({ + 'url': el, + 'maximumScreenSpaceError': 0x10, + 'maximumNumberOfLoadedTiles': 0x3e8, + 'skipLevelOfDetail': !![], + 'baseScreenSpaceError': 0x400, + 'skipScreenSpaceErrorFactor': 0x10, + 'skipLevels': 0x1, + 'immediatelyLoadDesiredLevelOfDetail': !![], + 'loadSiblings': !![], + 'cullWithChildrenBounds': ![], + 'dynamicScreenSpaceError': ![], + 'dynamicScreenSpaceErrorDensity': 0.00278, + 'dynamicScreenSpaceErrorFactor': 0x4, + 'dynamicScreenSpaceErrorHeightFalloff': 0.25, + 'debugShowStatistics': ![], + 'debugShowUrl': ![], + 'debugShowGeometricError': ![], + 'debugShowMemoryUsage': ![], + 'debugWireframe': bb['isoutline'], + 'debugShowBoundingVolume': ![], + 'debugShowContentBoundingVolume': ![], + 'debugColorizeTiles': ![], + 'viewer': cs['viewer'], + 'tagName': em, + 'newLonLat': bb['Pos'], + 'minimumNdotL': cs['minimumNdotL'], + 'modelRotateMatrixInstance': bb['rotateMatrix'] + }); + cs['viewer']['scene']['primitives']['add'](eq); + eq['readyPromise']['then'](function(er) { + eT['start'](em); + er['id'] = em; + er['modelname'] = bb['modelName']; + er['maxspaceerror'] = bb[dol(0xaa)]; + er['flyto'] = bb['flyto']; + er['stylecolor'] = 'r' + doo(0x49) + ')'; + er['rotate'] = [0x0, 0x0, 0x0]; + er['viewDirection'] = bb['viewDirection']; + er[dol(0xab)] = bb['viewEye']; + er['viewOffsetEye'] = bb['viewOffsetEye']; + var es = navigator['userAgent']; + if (es['indexOf']('A' + doo(0x4a) + 'd') > -0x1 || es['indexOf']('i' + doo(0x4b) + 'e') > -0x1 || es['indexOf']('i' + doo(0x4c) + 'd') > -0x1 || es['indexOf']('i' + doo(0x4d) + 'd') > -0x1) { + er['maximumMemoryUsage'] = 0x200; + } else { + er['maximumMemoryUsage'] = bb['maximumMemory']; + } + cs['m_model'][dol(0xac)](em, er); + cs['Model']['setMaxSpaceError'](bb['maxspaceerror'], em); + if (!cs['modelStyleMap']['has'](em)) { + cs['modelStyleMap']['set'](em, new Map()); + } + if (!cs['modelShowMap']['has'](em)) { + cs[dol(0xad)]['set'](em, new Map()); + } + if (!cs['modelFlatten']['has'](em)) { + cs['modelFlatten']['set'](em, new Map()); + } + if (!cs['modelCutPart']['has'](em)) { + cs['modelCutPart']['set'](em, new Map()); + } + er['colorBlendMode'] = 0x1; + er['tilesetoutline'] = {}; + if (er['root'][dol(0xae)] != undefined && er['root']['boundingVolume']['rectangle'] != undefined) { + var et = new Cesium['RectangleGeometry']({ + 'rectangle': er['root'][dol(0xaf)]['rectangle'], + 'height': er['root']['boundingVolume']['minimumHeight'], + 'extrudedHeight': er[dol(0xb0)]['boundingVolume']['maximumHeight'] + }); + var eu = Cesium['RectangleGeometry'][dol(0xb1)](et); + er[dol(0xb2)]['rectangle'] = er['root']['boundingVolume']['rectangle']; + er['tilesetoutline']['positions'] = eu['attributes']['position']['values']; + er['tilesetoutline']['boundingsphere'] = eu['boundingSphere']; + er['tilesetoutline']['boundingVolume'] = er['root']['boundingVolume']; + er['tilesetoutline']['minimumHeight'] = er['root']['boundingVolume']['minimumHeight']; + er['tilesetoutline']['maximumHeight'] = er['root']['boundingVolume']['maximumHeight']; + } + if (isEmpty(er['style'])) + er['style'] = new Cesium['Cesium3DTileStyle'](); + if (!isEmpty(bb['transform']) && bb['transform']['length'] == 0x10) { + var ev = Cesium['Matrix4']['fromArray'](bb['transform']); + er['root'][dol(0xb3)] = ev; + } + if (!isEmpty(bb['matrix']) && bb['matrix']['length'] == 0x10) { + var ev = Cesium['Matrix4']['fromArray'](bb['matrix']); + er['modelMatrix'] = ev; + } + if (!isEmpty(bb[dol(0xb4)])) { + er['rotate'] = bb[dol(0xb5)]; + } + if (!isEmpty(bb['offsetPos'])) { + var ex = Cesium['Cartographic']['fromCartesian'](er['boundingSphere']['center']); + var ey = Cesium[dol(0xb6)]['fromRadians'](ex['longitude'], ex['latitude'], ex['height']); + var ez = cs['funcPublic']['inputRadianToCartesian3'](bb['offsetPos'], cs[dol(0xb7)]); + var eA = Cesium['Cartesian3']['subtract'](ez, ey, new Cesium['Cartesian3']()); + var ev = Cesium['Matrix4']['fromTranslation'](eA); + var eC = Cesium['Matrix4']['multiplyTransformation'](ev, er['modelMatrix'], new Cesium['Matrix4']()); + er['modelMatrix'] = eC; + } + if (!isEmpty(bb['RotateAxis'])) { + var ev = Cesium['Matrix4']['IDENTITY']; + var eE = er['boundingSphere']['center']; + var eF = Cesium['Quaternion']['fromAxisAngle'](eE, Cesium['Math'][dol(0xb8)](bb['RotateAxis'])); + var eG = Cesium['Matrix3']['fromQuaternion'](eF); + var eH = Cesium['Matrix4']['fromRotationTranslation'](eG); + Cesium['Matrix4']['multiplyTransformation'](ev, eH, eH); + var eC = Cesium['Matrix4']['multiplyTransformation'](eH, er['modelMatrix'], new Cesium['Matrix4']()); + er['modelMatrix'] = eC; + } + er[dol(0xb9)] = {}; + er['_uniforms']['flattenCount'] = new Cesium[(dol(0xba))](); + er['_uniforms']['alphaCount'] = new Cesium['Cartesian3'](); + er[dol(0xbb)]['circleCount'] = new Cesium['Cartesian3'](); + er['_uniforms']['flattenData'] = new Cesium[(dol(0xbc))]({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium[dol(0xbd)]['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + er['_uniforms']['alphaData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + er['_uniforms']['circleData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium[dol(0xbe)]['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + er['_uniforms'][dol(0xbf)] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs[dol(0xc0)]() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + er['_uniforms']['flowTextureParamsStep'] = new Cesium['Cartesian3'](0x0,0x0,0x0); + er['_uniforms']['flowTextures'] = [new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium['PixelDatatype']['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + })]; + var eJ = !Cesium['defined'](bb['flowTextureNum']) ? !Cesium['defined'](cs['defaults']['flowTextureNum']) ? 0x5 : cs['defaults']['flowTextureNum'] : bb['flowTextureNum']; + for (var eK = 0x1; eK < eJ; eK++) { + er['_uniforms']['flowTextures']['push'](new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': cs['isMobile']() ? Cesium[dol(0xc1)]['UNSIGNED_BYTE'] : Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + })); + } + var eL = Number(bb['initView'][0x0]); + var eM = Number(bb['initView'][0x1]); + var eN = Number(bb['initView'][0x2]); + if (cs['defaults']['openearth']) { + if (cs['defaults']['loading'] && bb['flyto']) { + var eO = cs['viewer']['flyTo'](er, { + 'duration': 0x8, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](0x0),Cesium['Math']['toRadians'](-0x5a),0x3e8) + }); + eO['then'](function(eO) { + if (eO) { + cs['funcPublic']['zoom'](er, cs['viewer'], eL, eM, eN, eS); + } + })['catch'](function(eQ) { + aCe(eQ); + }); + } else { + if (bb['flyto']) { + cs['funcPublic']['zoom'](er, cs[dol(0xc2)], eL, eM, eN, eS); + } else { + er['allTilesLoaded']['addEventListener'](eS); + } + } + } else if (cs['defaults']['editmode'] && cs['EditMode'] != '' && isEmpty(bb[dol(0xc3)]) && isEmpty(bb['offsetPos']) && er['id'] != 'a' + doo(0x4e) + 'r') { + er['unfixed'] = !![]; + cs['BaseContorl']['tileset'] = er; + cs['BaseContorl']['callback'] = eo; + er['allTilesLoaded']['addEventListener'](eS); + } else { + if (bb['flyto']) { + cs['funcPublic'][dol(0xc4)](er, cs['viewer'], eL, eM, eN, eS); + } else { + er['allTilesLoaded']['addEventListener'](eS); + } + } + if (!isEmpty(en)) { + en({ + 'loaded': !![], + 'locate': ![], + 'obj': er + }); + } + cs['tileset'] = er; + aBc(); + })['catch'](function(eR) { + if (!isEmpty(eo)) { + eo({ + 'loaded': ![] + }); + } + aCe(eR); + }); + var eS = function() { + if (eq['_initialTilesLoaded']) { + eT['stop'](em); + if (!isEmpty(eo)) { + eo({ + 'loaded': !![], + 'locate': ![], + 'obj': eq, + 'time': eT['getTime'](em) + }); + eq['allTilesLoaded']['removeEventListener'](eS); + } + } + }; + var eT = { + 'data': {}, + 'start': function(eU) { + eT['data'][eU] = new Date(); + }, + 'stop': function(eV) { + var eW = eT['data'][eV]; + if (eW) + eT['data'][eV] = new Date() - eW; + }, + 'getTime': function(eX) { + return eT['data'][eX]; + } + }; + } + }, + 'mergeModel': function(eY, eZ, f0, f1, bb) { + if (bb == undefined) { + bb = { + 'restoreMCS': !![] + }; + } else { + if (bb['restoreMCS'] == undefined) { + bb['restoreMCS'] = !![]; + } + } + cs['Model']['add'](eY, eZ, f0, f1, bb); + }, + 'addPart': function(f3, f4, f5, f6, bb) { + try { + if (cs['m_model']['get'](f4['toString']()) === undefined) { + if (isEmpty(f5)) + return; + cs['Model']['add'](f3, f4, function() { + cs[dol(0xc5)]['showFeatures'](f5, f4); + }, function() { + if (!isEmpty(f6)) { + f6(); + } + }, bb); + } else { + if (isEmpty(f5)) { + cs['Model']['setVisible'](f4, ![]); + } else { + cs['Feature']['showFeatures'](f5, f4); + if (!isEmpty(f6)) { + f6(); + } + } + } + } catch (f8) { + aCe('错' + doo(0x4f) + ':' + f8); + } + }, + 'addByGltf': function(bb) { + try { + + var fa = Cesium['Transforms']['eastNorthUpToFixedFrame'](Cesium['Cartesian3']['fromDegrees'](bb[dol(0xc6)][0x0], bb['position'][0x1], bb['position'][0x2])); + var fb = !isEmpty(bb['scale']) ? Number(bb['scale']) : 0x1; + var fc = cs[dol(0xc7)]['scene']['primitives']['add'](Cesium['Model']['fromGltf']({ + 'id': !isEmpty(bb['tag']) ? bb['tag'] : Cesium['createGuid'](), + 'url': bb['url'], + 'modelMatrix': fa, + 'scale': fb + })); + fc[dol(0xc8)] = new Cesium['Cartesian3'](0x3,0x3,0x3); + var fd = new Cesium['BoundingSphere'](Cesium['Cartesian3']['fromDegrees'](bb['position'][0x0], bb['position'][0x1], bb['position'][0x2]),0x1); + cs['viewer']['camera']['flyToBoundingSphere'](fd, { + 'duration': 0.5, + 'offset': new Cesium['HeadingPitchRange'](!isEmpty(bb['heading']) ? Cesium['Math']['toRadians'](bb['heading']) : 0x0,!isEmpty(bb[dol(0xc9)]) ? Cesium['Math']['toRadians'](bb[dol(0xca)]) : Cesium['Math']['toRadians'](-0x23),!isEmpty(bb['range']) ? bb['range'] : 0x64) + }); + aBc(); + cs['viewer']['scene']['requestRender'](); + } catch (fe) { + aCe('错' + doo(0x50) + ':' + fe); + } + }, + 'addByGLB': function(bb) { + try { + + if (bb['tag'] == undefined || bb['tag'] == '') { + return; + } + if (bb['flyto'] == undefined) { + bb['flyto'] = !![]; + } + cs['viewer']['scene']['logarithmicDepthBuffer'] = ![]; + var fg = !isEmpty(bb['scale']) ? Number(bb['scale']) : 0x1; + var fh = Cesium['Transforms']['eastNorthUpToFixedFrame'](Cesium['Cartesian3']['fromDegrees'](bb['position'][0x0], bb['position'][0x1], bb['position'][0x2])); + var fi = cs['viewer']['scene']['primitives']['add'](Cesium['Model']['fromGltf']({ + 'id': !isEmpty(bb['tag']) ? bb['tag'] : Cesium['createGuid'](), + 'url': bb['url'], + 'modelMatrix': fh, + 'debugShowBoundingVolume': ![], + 'scale': fg + })); + if (bb['flyto']) { + var fj = new Cesium['BoundingSphere'](Cesium['Cartesian3']['fromDegrees'](bb['position'][0x0], bb['position'][0x1], bb['position'][0x2]),0x1); + cs['viewer']['camera']['flyToBoundingSphere'](fj, { + 'duration': 0.5, + 'offset': new Cesium['HeadingPitchRange'](!isEmpty(bb['heading']) ? Cesium['Math']['toRadians'](bb['heading']) : 0x0,!isEmpty(bb['pitch']) ? Cesium['Math']['toRadians'](bb[dol(0xcb)]) : Cesium['Math']['toRadians'](-0x23),!isEmpty(bb['range']) ? bb['range'] : 0x1e) + }); + } + fi['readyPromise']['then'](function(fi) { + if (!isEmpty(bb[dol(0xcc)])) { + bb['readyPromiseFunc']({ + 'loaded': !![], + 'animations': fi['_runtime']['animations'] + }); + } + }); + cs['m_model']['set'](bb[dol(0xcd)], fi); + aBc(); + cs['viewer']['scene']['requestRender'](); + } catch (fl) { + aCe('错' + doo(0x51) + ':' + fl); + } + }, + 'animationStart': function(bb) { + try { + + if (!isEmpty(bb['tag'])) { + if (cs['m_model']['get'](bb['tag']['toString']()) === undefined) { + throw doj(0x1e); + } else { + var fn = cs['m_model']['get'](bb['tag'][dol(0xce)]()); + var fo = cs['modelCurrentAnimation']['get'](bb['tag'][dol(0xcf)]()); + if (fo != undefined) { + fn[dol(0xd0)]['remove'](fo); + } + if (!isEmpty(bb['index'])) { + fo = fn['activeAnimations']['add']({ + 'index': bb['index'], + 'loop': bb['loop'] == undefined ? Cesium['ModelAnimationLoop']['REPEAT'] : bb['loop'] + }); + } + if (!isEmpty(bb['name'])) { + fo = fn['activeAnimations'][dol(0xd1)]({ + 'name': bb['name'], + 'loop': bb[dol(0xd2)] == undefined ? Cesium['ModelAnimationLoop']['REPEAT'] : bb['loop'] + }); + } + cs['modelCurrentAnimation']['set'](bb['tag']['toString'](), fo); + } + } else { + aCe('错' + doo(0x52) + '!'); + } + } catch (fp) { + aCe('错' + doo(0x53) + ':' + fp); + } + }, + 'animationStop': function(bb) { + try { + + if (!isEmpty(bb['tag'])) { + if (cs['m_model']['get'](bb['tag']['toString']()) === undefined) { + throw doj(0x1f); + } else { + var fr = cs['modelCurrentAnimation']['get'](bb['tag']['toString']()); + bj[dol(0xd3)]['get'](bb['tag']['toString']())['activeAnimations']['remove'](fr); + } + } else { + aCe('错' + doo(0x54) + '!'); + } + } catch (fs) { + aCe('错' + doo(0x55) + ':' + fs); + } + }, + 'addByKml': function(ft, fu) { + try { + + var bb = { + 'camera': cs['viewer']['scene']['camera'], + 'canvas': cs['viewer'][dol(0xd4)]['canvas'], + 'clampToGround': !![] + }; + var fw = cs['viewer']['dataSources']['add'](Cesium['KmlDataSource']['load'](ft, bb)); + fw['then'](function(fx) { + cs['viewer']['flyTo'](fw)['then'](function() { + if (!isEmpty(fu)) { + fu(); + } + cs['viewer']['scene']['requestRender'](); + }); + }); + aBc(); + } catch (fy) { + aCe('错' + doo(0x56) + ':' + fy); + } + }, + 'addByGeoJson': function(fz, fA) { + try { + + var fB = new Cesium['Cartesian3']['fromDegrees'](108.88,34.2,0x17a); + var fC = fz; + var fD = document['getElementById'](cs['defaults']['container']); + var fE = fD['offsetWidth'] / 0x2; + var fF = fD[dol(0xd5)] / 0x2; + for (var fG = 0x0; fG < fC['length']; fG++) { + var fH = []; + var fI = new Cesium['Cartesian3'](); + for (var fJ = 0x0; fJ < fC[fG]['length']; fJ++) { + var fK = fC[fG][fJ][0x0] / 0x3e8 + fE; + var fL = Math['abs'](fC[fG][fJ][0x1] / 0x3e8 + fF); + var fM = new Cesium['Cartesian2'](fK,fL); + var fN = cs['funcPublic'][dol(0xd6)](fM, cs['viewer']); + fH['push'](fN[dol(0xd7)]); + } + fI = fA[fG]; + cs['viewer']['entities']['add']({ + 'name': 'T' + doo(0x57) + 'l', + 'polygon': { + 'hierarchy': { + 'positions': fH + }, + 'material': fI, + 'extrudedHeight': 2.9, + 'outline': !![] + } + }); + } + aBc(); + cs['viewer']['scene']['requestRender'](); + } catch (fO) { + aCe('错' + doo(0x58) + ':' + fO); + } + }, + 'getLoadedData': function(fP) { + try { + + if (cs['m_model']['get'](fP['toString']()) === undefined) { + throw doj(0x20); + } else { + var fQ = cs['m_model']['get'](fP['toString']()); + return { + 'total': fQ[dol(0xd8)]['numberOfTilesTotal'], + 'pending': fQ[dol(0xd9)]['numberOfPendingRequests'] + }; + } + } catch (fR) { + aCe('错' + doo(0x59) + ':' + fR); + } + }, + 'addBySolidWorksTagging': function(fS) { + var fT = fS['AllDimension']; + var fU = []; + var fV = []; + var fW = 0x3e8; + for (var fX = 0x0; fX < fT['length']; fX++) { + var fY = fT[fX]; + var fZ = fY['ArrowHeads']; + for (var g0 = 0x0; g0 < fZ['length']; g0++) { + var g1 = fZ[g0]; + var g2 = new Cesium['Cartesian3'](g1['arrowHeadPt_X'] * fW,g1['arrowHeadPt_Y'] * fW,g1[dol(0xda)] * fW); + var g3 = new Cesium['Cartesian3'](g1['arrowHeadDir_X'],g1['arrowHeadDir_Y'],g1['arrowHeadDir_Z']); + var g4 = g1[dol(0xdb)] * fW; + var g5 = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](g2, g5); + Cesium['Cartesian3']['normalize'](g3, g3); + g5['x'] += g3['x'] * g4; + g5['y'] += g3['y'] * g4; + g5['z'] += g3['z'] * g4; + var g6 = new Cesium['Cartesian3'](); + var g7 = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0xdc)], g2, g6); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], g5, g7); + fU['push']({ + 'startPos': g5, + 'endPos': g2, + 'width': g1['arrowHeadHeight'] * fW + }); + } + var g8 = fY['DimensionLines']; + for (var g9 = 0x0; g9 < g8['length']; g9++) { + var ga = g8[g9]; + var gb = new Cesium['Cartesian3'](ga['startPt_X'] * fW,ga[dol(0xdd)] * fW,ga['startPt_Z'] * fW); + var gc = new Cesium['Cartesian3'](ga['endPt_X'] * fW,ga['endPt_Y'] * fW,ga['endPt_Z'] * fW); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], gb, gb); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], gc, gc); + var gd = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [gb, gc], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + fV['push'](gd); + } + var ge = new Cesium['Cartesian3'](fY['TextLocation']['X'] * fW,fY['TextLocation']['Y'] * fW,fY['TextLocation']['Z'] * fW); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0xde)], ge, ge); + cs[dol(0xdf)]['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'l' + doo(0x5a) + 'e', + 'position': ge, + 'label': { + 'text': fY['Value']['toFixed'](0x2) + '', + 'font': fY['Font'], + 'fillColor': Cesium['Color']['BLACK'], + 'showBackground': ![] + } + }); + } + if (fU['length'] > 0x0) { + cs['Other']['addTriangleFace'](fU); + } + if (fV['length'] > 0x0) { + cs['viewer']['scene']['primitives']['add'](new Cesium['Primitive']({ + 'geometryInstances': fV, + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0x5b) + 'r', + 'uniforms': { + 'color': Cesium['Color']['BLACK'] + } + } + }) + }) + })); + cs[dol(0xe0)]['scene']['requestRender'](); + } + }, + 'addByTagging': function(gf) { + var gg = gf[0x0]['content']; + var gh = []; + var gi = []; + var gj = []; + var gk = 0.001; + var gl = new Cesium['Cartesian3'](24705.0002 * 0.001,-28457.5007 * 0.001,-6499.9999 * 0.001); + var gm = ![]; + for (var gn = 0x0; gn < gg[dol(0xe1)]; gn++) { + var go = gg[gn]; + var gp = go['type']; + if (gp == doh(0xb)) { + var gq = go['position']; + var gr = go['textOri']['split']('\x20'); + var gs = new Cesium['HeadingPitchRoll'](Cesium['Math']['toRadians'](gr[0x2]),Cesium[dol(0xe2)]['toRadians'](gr[0x1]),Cesium[dol(0xe3)]['toRadians'](gr[0x0])); + var gt = new Cesium['Quaternion'](); + Cesium['Quaternion'][dol(0xe4)](gs, gt); + var gu = new Cesium['Cartesian3'](); + Cesium['Quaternion']['computeAxis'](gt, gu); + var gv = new Cesium['Cartesian3'](go['dimpos'][0x0] * gk - gl['x'],go['dimpos'][0x1] * gk - gl['y'],go['dimpos'][0x2] * gk - gl['z']); + var gw = new Cesium[(dol(0xe5))](go['dimpos'][0x0] * gk - gl['x'],go['dimpos'][0x1] * gk - gl['y'],go['dimpos'][0x2] * gk - gl['z']); + var gx = new Cesium['Cartesian3'](); + var gy = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](gv, gx); + Cesium['Cartesian3']['clone'](gv, gy); + gx['x'] += gu['x'] * 0xa; + gx['y'] += gu['y'] * 0xa; + gx['z'] += gu['z'] * 0xa; + gy['x'] += gu['x'] * -0xa; + gy['y'] += gu['y'] * -0xa; + gy['z'] += gu['z'] * -0xa; + var gz = []; + if (gq['length'] > 0x0) { + var gA = new Cesium['Cartesian3'](); + var gB = new Cesium['Cartesian3'](); + if (gq['length'] >= 0x6) { + var gC = new Cesium['Cartesian3'](); + gC['x'] = gq[0x3] - gq[0x0]; + gC['y'] = gq[0x4] - gq[0x1]; + gC['z'] = gq[0x5] - gq[0x2]; + Cesium['Cartesian3']['normalize'](gC, gC); + Cesium['Cartesian3']['clone'](gw, gA); + Cesium['Cartesian3']['clone'](gw, gB); + gA['x'] += gC['x'] * 0x1; + gA['y'] += gC['y'] * 0x1; + gA['z'] += gC['z'] * 0x1; + gB['x'] += gC['x'] * -0x1; + gB['y'] += gC['y'] * -0x1; + gB['z'] += gC['z'] * -0x1; + } + for (var gD = 0x0; gD < gq['length'] / 0x3; gD++) { + var gE = new Cesium['Cartesian3'](gq[gD * 0x3] * gk - gl['x'],gq[gD * 0x3 + 0x1] * gk - gl['y'],gq[gD * 0x3 + 0x2] * gk - gl['z']); + var gF = Cesium['Cartesian3']['subtract'](gB, gE, new Cesium['Cartesian3']()); + var gG = new Cesium['Cartesian3'](); + if (Math['abs'](gF['x']) < Math['abs'](gF['y']) && Math['abs'](gF['x']) < Math['abs'](gF['z'])) { + var gH = new Cesium['Cartesian2'](gE['y'],gE['z']); + var gI = new Cesium['Cartesian2'](gA['y'],gA['z']); + var gJ = new Cesium['Cartesian2'](gB['y'],gB['z']); + var gK = getPointFootToLine(gH, gI, gJ); + gG['x'] = gA['x']; + gG['y'] = gK['x']; + gG['z'] = gK['y']; + } else if (Math['abs'](gF['y']) < Math['abs'](gF['x']) && Math['abs'](gF['y']) < Math['abs'](gF['z'])) { + var gH = new Cesium['Cartesian2'](gE['x'],gE['z']); + var gI = new Cesium['Cartesian2'](gA['x'],gA['z']); + var gJ = new Cesium['Cartesian2'](gB['x'],gB['z']); + var gK = getPointFootToLine(gH, gI, gJ); + gG['x'] = gK['x']; + gG['y'] = gA['y']; + gG['z'] = gK['y']; + } else if (Math['abs'](gF['z']) < Math['abs'](gF['x']) && Math['abs'](gF['z']) < Math['abs'](gF['y'])) { + var gH = new Cesium['Cartesian2'](gE['x'],gE['y']); + var gI = new Cesium['Cartesian2'](gA['x'],gA['y']); + var gJ = new Cesium['Cartesian2'](gB['x'],gB['y']); + var gK = getPointFootToLine(gH, gI, gJ); + gG['x'] = gK['x']; + gG['y'] = gK['y']; + gG['z'] = gA['z']; + } + gz['push'](gG); + if (gG['x'] == 0x0 && gG['y'] == 0x0 && gG['z'] == 0x0) { + continue; + } + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], gE, gE); + var gT = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], gG, gT); + var gU = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [gE, gT], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium[dol(0xe6)]() + }); + gi['push'](gU); + } + if (gz['length'] > 0x0) { + for (var gD = 0x0; gD < gz[dol(0xe7)] - 0x1; gD++) { + var gW = Cesium[dol(0xe8)]['subtract'](gz[gD + 0x1], gz[gD], new Cesium['Cartesian3']()); + var gX = Math[dol(0xe9)](Math['abs'](gW['x'] * 0x3e8)); + var gY = Math['round'](Math['abs'](gW['y'] * 0x3e8)); + var gZ = Math['round'](Math['abs'](gW['z'] * 0x3e8)); + var h0 = 0x0; + if (gX >= gY && gX >= gZ) { + h0 = gX; + } else if (gY >= gX && gY >= gZ) { + h0 = gY; + } else if (gZ >= gY && gZ >= gX) { + h0 = gZ; + } + var h1 = Cesium['Cartesian3']['midpoint'](gz[gD + 0x1], gz[gD], new Cesium['Cartesian3']()); + var h2 = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset'][dol(0xea)]['transform'], h1, h2); + var h3 = new Cesium['Cartesian3'](); + var h4 = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0xeb)], gz[gD + 0x1], h3); + Cesium['Matrix4'][dol(0xec)](cs['tileset'][dol(0xed)]['transform'], gz[gD], h4); + cs['viewer']['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'a' + doo(0x5c) + 'e', + 'polyline': { + 'positions': [h2, h3], + 'width': 0x5, + 'arcType': Cesium['ArcType']['NONE'], + 'material': new Cesium['PolylineArrowMaterialProperty'](Cesium['Color']['BLACK']) + } + }); + cs['viewer']['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'a' + doo(0x5d) + 'e', + 'polyline': { + 'positions': [h2, h4], + 'width': 0x5, + 'arcType': Cesium['ArcType']['NONE'], + 'material': new Cesium['PolylineArrowMaterialProperty'](Cesium['Color']['BLACK']) + } + }); + cs['viewer']['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'l' + doo(0x5e) + 'e', + 'position': h2, + 'label': { + 'text': h0 + doh(0xc), + 'fillColor': Cesium['Color']['BLACK'], + 'font': doj(0x21), + 'showBackground': ![] + } + }); + } + } + } + } + if (gp == 'l' + doo(0x5f) + 'e' || gp == 't' + doo(0x60) + 't') { + var gr = go['textOri'][dol(0xee)]('\x20'); + var gs = new Cesium['HeadingPitchRoll'](Cesium['Math']['toRadians'](gr[0x2]),Cesium[dol(0xef)]['toRadians'](gr[0x1]),Cesium['Math'][dol(0xf0)](gr[0x0])); + var h7 = new Cesium['Cartesian3'](go['textPosition'][0x0],go['textPosition'][0x1],go['textPosition'][0x2]); + var h8 = new Cesium['Cartesian3'](h7['x'] * gk - gl['x'],h7['y'] * gk - gl['y'],h7['z'] * gk - gl['z']); + Cesium['Matrix4'][dol(0xf1)](cs['tileset']['root'][dol(0xf2)], h8, h8); + cs['viewer']['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'l' + doo(0x61) + 'e', + 'position': h8, + 'orientation': gs, + 'label': { + 'text': go['text'] + '', + 'fillColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x62) + 'f', + 'showBackground': ![] + } + }); + } + if (gp == 'l' + doo(0x63) + 'e') { + var gq = go['position']; + var ha = new Cesium['Cartesian3'](gq[0x0] * gk - gl['x'],gq[0x1] * gk - gl['y'],gq[0x2] * gk - gl['z']); + var hb = new Cesium['Cartesian3'](gq[0x3] * gk - gl['x'],gq[0x4] * gk - gl['y'],gq[0x5] * gk - gl['z']); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], ha, ha); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], hb, hb); + var gU = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [ha, hb], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium[dol(0xf3)]() + }); + gi['push'](gU); + } + } + if (gh['length'] > 0x0) { + cs['Other']['addTriangleFace'](gh); + } + if (gi['length'] > 0x0) { + cs['viewer']['scene']['primitives']['add'](new Cesium[(dol(0xf4))]({ + 'geometryInstances': gi, + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0x64) + 'r', + 'uniforms': { + 'color': Cesium['Color']['BLACK'] + } + } + }) + }) + })); + cs['viewer']['scene']['requestRender'](); + } + }, + 'setVisible': function(hd, he) { + try { + + if (cs['m_model']['get'](hd['toString']()) === undefined) { + throw doj(0x22); + } else { + var hf = cs['m_model'][dol(0xf5)](hd['toString']()); + hf['show'] = he; + var hg = hf[dol(0xf6)](); + if (Cesium['defined'](hg)) { + hg['show'] = he; + } + cs['viewer']['scene']['requestRender'](); + return 0x0; + } + } catch (hh) { + aCe('错' + doo(0x65) + ':' + hh); + } + }, + 'setCustomEffects': function(hi) { + try { + + if (cs[dol(0xf7)]['get'](hi['toString']()) === undefined) { + throw doj(0x23); + } else { + var hj = cs['m_model']['get'](hi['toString']()); + hj['customfragmentShader'] = cn; + cs['viewer']['scene'][dol(0xf8)](); + return 0x0; + } + } catch (hk) { + aCe('错' + doo(0x66) + ':' + hk); + } + }, + 'setVisibleByInstanceId': function(hl, hm, hn) { + try { + + if (cs['m_model']['get'](hl['toString']()) === undefined) { + throw doj(0x24); + } else { + cs[dol(0xf9)] = cs['m_model']['get'](hl['toString']()); + for (var ho = 0x0; ho < cs['tileset']['_selectedTiles']['length']; ho++) { + var hp = cs['tileset']['_selectedTiles'][ho]; + var hq = hp['instances']; + for (var hr = 0x0; hr < hq['length']; hr++) { + for (var hs = 0x0; hs < hm['length']; hs++) { + cs['Feature']['setVisible'](hq[hr]['o'] + '_' + hm[hs], hn, hl); + } + } + } + cs['viewer']['scene']['requestRender'](); + return 0x0; + } + } catch (ht) { + aCe('错' + doo(0x67) + ':' + ht); + } + }, + 'location': function(hu) { + try { + + if (!isEmpty(hu)) { + if (cs['m_model']['get'](hu['toString']()) === undefined) { + throw doj(0x25); + } else { + cs['tileset'] = cs['m_model']['get'](hu[dol(0xfa)]()); + if (cs['Camera']['isImmersiveRoaming']()) + cs['Camera']['resetImmersiveRoamViewPort'](); + else + cs['funcPublic']['zoom'](cs['tileset'], cs['viewer']); + } + } else { + if (cs['Camera']['isImmersiveRoaming']()) + cs['Camera']['resetImmersiveRoamViewPort'](); + else + cs[dol(0xfb)]['zoom'](cs[dol(0xfc)], cs[dol(0xfd)]); + } + } catch (hv) { + aCe('错' + doo(0x68) + ':' + hv); + } + }, + 'addBoundingVolume': function(hw, hx) { + try { + + if (cs['m_model']['get'](hw['toString']()) === undefined) { + throw doj(0x26); + } else { + if (isEmpty(hx)) + hx = Cesium['Color']['RED']; + if (!isEmpty(hw)) { + if (cs['m_model']['get'](hw['toString']()) === undefined) { + throw doj(0x27); + } else { + cs['tileset'] = cs[dol(0xfe)]['get'](hw['toString']()); + } + } + var hy = cs['funcPublic']['createModelVolume'](cs['tileset'], hx instanceof Cesium['Color'] ? hx : Cesium['Color'][dol(0xff)](hx)); + cs['viewer']['scene'][dol(0x100)][dol(0x101)](hy); + ck['push'](hy); + cs['viewer']['scene']['requestRender'](); + } + } catch (hz) { + aCe('错' + doo(0x69) + ':' + hz); + } + }, + 'clearBoundingVolume': function() { + try { + + for (var hA = 0x0; hA < ck['length']; hA++) { + cs['viewer']['scene']['primitives']['remove'](ck[hA]); + } + ck = []; + cs['viewer']['scene']['requestRender'](); + } catch (hB) { + aCe('错' + doo(0x6a) + ':' + hB); + } + }, + 'getCenter': function(hC) { + try { + if (isEmpty(hC) && ci && cj) { + if (cs['m_model']['get'](cj['toString']()) === undefined) { + throw doj(0x28); + } + if (!isEmpty(cj)) { + var hD = cs['m_model']['get'](cj['toString']()); + var hE = cs['funcPublic']['outCartesian3ToRadian'](hD['boundingSphere']['center'], cs['viewer']); + return { + 'center': hD['boundingSphere']['center'], + 'radius': hD['boundingSphere']['radius'], + 'position': hE + }; + } + } + var hF = []; + if (!isEmpty(hC)) { + if (cs['m_model']['get'](hC['toString']()) === undefined) { + throw doj(0x29); + } + var hD = cs['m_model']['get'](hC['toString']()); + return { + 'position': cs['funcPublic']['outCartesian3ToRadian'](hD['boundingSphere']['center'], cs['viewer']) + }; + } else { + cs['m_model']['forEach'](function(hH, hI) { + hF['push'](hH['boundingSphere']); + }); + } + var hJ; + if (hF['length'] > 0x0) { + hJ = Cesium['BoundingSphere']['fromBoundingSpheres'](hF, new Cesium['BoundingSphere']()); + } else { + hJ = new Cesium['BoundingSphere'](cs['viewer']['camera']['position'],0x0); + } + if (Cesium['defined'](hJ)) { + var hE = cs['funcPublic']['outCartesian3ToRadian'](hJ['center'], cs['viewer']); + return { + 'center': hJ['center'], + 'radius': hJ['radius'], + 'position': hE + }; + } + } catch (hL) { + aCe('错' + doo(0x6b) + ':' + hL); + } + }, + 'getHandleState': function() { + try { + return cs['IsMoving']; + } catch (hM) { + aCe('错' + doo(0x6c) + ':' + hM); + } + }, + 'setHandleState': function(hN) { + try { + cs['IsMoving'] = hN; + return cs[dol(0x102)]; + } catch (hO) { + aCe('错' + doo(0x6d) + ':' + hO); + } + }, + 'setAlpha': function(hP, hQ) { + try { + + if (!isEmpty(hP)) { + if (cs['m_model']['get'](hP['toString']()) === undefined) { + throw doj(0x2a); + } + cs['tileset'] = cs['m_model']['get'](hP['toString']()); + } + if (isEmpty(hQ)) + hQ = 0.1; + var hR = Cesium['Color']['fromCssColorString'](cs['tileset']['stylecolor']); + cs['tileset']['stylecolor'] = hR['withAlpha'](hQ)['toCssColorString'](); + var hS = cs[dol(0x103)]['get'](hP['toString']()); + if (hS['size'] > 0x0) { + hS['forEach'](function(hT, hU) { + if (hT['isParam']) { + hT['color']['alpha'] = hQ; + } else { + var hV = typeof hT['color'] == 's' + doo(0x6e) + 'g' ? Cesium['Color']['fromCssColorString'](hT['color']) : hT['color']; + hT['color'] = hV['withAlpha'](hQ)['toCssColorString'](); + } + }); + } + cs['funcPublic']['updateModelStyle'](cs['tileset'], hS); + var hW = cs[dol(0x104)]['getParamObject']() == undefined ? [] : [cs[dol(0x105)]['getParamObject']()]; + var hX = ![]; + var hS = cs['modelStyleMap']['get'](hP['toString']()); + if (hS['size'] > 0x0) { + hS['forEach'](function(hZ, i0) { + if (hZ['isParam']) { + hX = !![]; + } + }); + } + if (hX) { + cs[dol(0x106)]['updateEntityAlpha'](hW, hQ, ''); + } else { + if (hW[dol(0x107)] > 0x0 && hW[0x0]['_primitives']['_primitives']['length'] > 0x0) { + for (let i1 = 0x0; i1 < hW[0x0][dol(0x108)]['_primitives']['length']; i1++) { + if (hW[0x0]['_primitives']['_primitives'][i1]instanceof Cesium['Primitive']) { + var i2 = hW[0x0]['_primitives']['_primitives'][i1]; + i2['appearance'][dol(0x109)] = new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0x6f) + 'r', + 'uniforms': { + 'color': new Cesium['Color'](0x1,0x1,0x1,hQ) + } + } + }); + i2['appearance']['translucent'] = !![]; + } + } + } + } + return 0x0; + } catch (i3) { + aCe('错' + doo(0x70) + ':' + i3); + } + return -0x1; + }, + 'setColor': function(i4, i5, i6, i7, i8, i9) { + try { + + if (!isEmpty(i4)) { + if (cs['m_model']['get'](i4['toString']()) === undefined) { + throw doj(0x2b); + } + cs[dol(0x10a)] = cs['m_model']['get'](i4['toString']()); + } + if (isEmpty(i8)) + i8 = 0x1; + var ia = 'r' + doo(0x71) + '(' + i5 + ',' + i6 + ',' + i7 + ',' + i8 + ')'; + cs[dol(0x10b)][dol(0x10c)] = ia; + var ib = cs['modelStyleMap']['get'](i4[dol(0x10d)]()); + if (i9 == undefined) { + i9 = !![]; + } + if (ib['size'] > 0x0 && i9) { + ib['forEach'](function(ic, ie) { + ic['color'] = ia; + }); + } + cs[dol(0x10e)]['updateModelStyle'](cs[dol(0x10f)], ib); + return 0x0; + } catch (ig) { + aCe('错' + doo(0x72) + ':' + ig); + } + }, + 'original': function(ih) { + try { + + if (!isEmpty(ih)) { + if (cs['m_model']['get'](ih['toString']()) === undefined) { + throw doj(0x2c); + } else { + cs['tileset'] = cs['m_model']['get'](ih['toString']()); + cs['tileset']['stylecolor'] = 'r' + doo(0x73) + ')'; + cs['modelStyleMap'][dol(0x110)](ih[dol(0x111)]())['clear'](); + cs[dol(0x112)]['get'](ih['toString']())['clear'](); + cs['funcPublic']['updateModelStyle'](cs['tileset'], new Map()); + cs['funcPublic']['updateModelShowStyle'](cs['tileset'], new Map(), !![]); + cs['Feature']['clearSelectColor'](); + var ii = cs['tileset'][dol(0x113)]() == undefined ? [] : [cs['tileset']['getParamObject']()]; + cs['funcPublic'][dol(0x114)](ii); + if (ii[dol(0x115)] > 0x0 && ii[0x0]['_primitives']['_primitives']['length'] > 0x0) { + for (let ij = 0x0; ij < ii[0x0]['_primitives']['_primitives']['length']; ij++) { + if (ii[0x0]['_primitives'][dol(0x116)][ij]instanceof Cesium['Primitive']) { + var ik = ii[0x0]['_primitives']['_primitives'][ij]; + ik['appearance']['material'] = undefined; + ik[dol(0x117)]['translucent'] = ![]; + } + } + } + cs['funcPublic']['updateEntityShow'](cs['viewer'], '', ![], 0x1); + cs['c_flickerFeatures'] = {}; + } + } else { + cs['tileset']['stylecolor'] = 'r' + doo(0x74) + ')'; + cs[dol(0x118)]['get'](cs['tagName']['toString']())['clear'](); + cs['modelShowMap']['get'](cs['tagName']['toString']())['clear'](); + cs['funcPublic']['updateModelStyle'](cs['tileset'], new Map()); + cs[dol(0x119)]['updateModelShowStyle'](cs['tileset'], new Map(), !![]); + } + cs['viewer']['scene']['requestRender'](); + return 0x0; + } catch (il) { + aCe('错' + doo(0x75) + ':' + il); + } + }, + 'remove': function(im) { + try { + + var io = cs['m_model']['get'](im['toString']()); + if (io === undefined) { + throw doj(0x2d); + } else { + cs['viewer']['scene']['requestRender'](); + var ip = cs['tileset']['getParamObject'](); + if (ip != undefined) { + cs['viewer']['dataSources']['remove'](ip, !![]); + } + cs['viewer']['scene']['primitives']['remove'](io); + cs['c_flickerFeatures'] = {}; + cs[dol(0x11a)]['delete'](im['toString']()); + cs['viewer']['scene']['requestRender'](); + return 0x0; + } + } catch (iq) { + return -0x1; + aCe('错' + doo(0x76) + ':' + iq); + } + }, + 'scale': function(ir, is) { + try { + var it = cs['m_model']['get'](ir['toString']()); + if (it === undefined) { + throw doj(0x2e); + } + is = Number(is); + if (isNaN(is)) { + throw '参' + doo(0x77) + '字'; + } + cs['tileset'] = cs['m_model']['get'](ir['toString']()); + var iu = iC(cs['tileset'], is, 0x0); + var iv = Cesium[dol(0x11b)][dol(0x11c)](iu, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = iv; + cs[dol(0x11d)]['scene']['requestRender'](); + return Cesium['Matrix4']['toArray'](iv); + function iw(ix, iy) { + var iz = ix[dol(0x11e)]['center']; + var iA = Cesium['Cartographic'][dol(0x11f)](iz); + iA['height'] = iy; + iz = Cesium['Cartographic'][dol(0x120)](iA); + var iB = Cesium['Transforms']['eastNorthUpToFixedFrame'](iz); + return iB; + } + function iC(iD, is, iF) { + var iG = iw(iD, iF); + var iH = Cesium[dol(0x121)]['inverse'](iG, new Cesium['Matrix4']()); + var iI = new Cesium['Cartesian3'](is,is,is); + var iJ = Cesium['Matrix4']['fromScale'](iI); + var iK = Cesium['Matrix4']['multiply'](iG, Cesium['Matrix4']['multiply'](iJ, iH, new Cesium['Matrix4']()), new Cesium['Matrix4']()); + return iK; + } + } catch (iL) { + aCe('错' + doo(0x78) + ':' + iL); + } + }, + 'moveByPosition': function(iM, iN, iO, iP, iQ) { + if (!isEmpty(iM)) { + if (cs['m_model']['get'](iM['toString']()) === undefined) { + throw doj(0x2f); + } + cs['tileset'] = cs['m_model']['get'](iM['toString']()); + } + function iR(iS, iT) { + var iU = new Matrix3(Math['cos'](iS) + iT['x'] * iT['x'] * (0x1 - Math['cos'](iS)),iT['x'] * iT['y'] * (0x1 - Math['cos'](iS)) - iT['z'] * Math['sin'](iS),iT['y'] * Math['sin'](iS) + iT['x'] * iT['z'] * (0x1 - Math['cos'](iS)),iT['z'] * Math[dol(0x122)](iS) + iT['x'] * iT['y'] * (0x1 - Math['cos'](iS)),Math['cos'](iS) + iT['y'] * iT['y'] * (0x1 - Math['cos'](iS)),-iT['x'] * Math['sin'](iS) + iT['y'] * iT['z'] * (0x1 - Math['cos'](iS)),-iT['y'] * Math['sin'](iS) + iT['x'] * iT['z'] * (0x1 - Math['cos'](iS)),iT['x'] * Math['sin'](iS) + iT['y'] * iT['z'] * (0x1 - Math['cos'](iS)),Math['cos'](iS) + iT['z'] * iT['z'] * (0x1 - Math['cos'](iS))); + return iU; + } + var iV = Cartesian3['divideByScalar'](Cartesian3['unpack'](defaultValue(cs['tileset']['offset'], [0x0, 0x0, 0x0])), 0x3e8, new Cartesian3()); + var iW = Cartesian3['unpack'](iN); + var iX = Cartesian3['add'](Cartesian3['unpack'](iO[0x0]), iW, new Cartesian3()); + var iY = Cartesian3['add'](Cartesian3[dol(0x123)](iO[0x1]), iW, new Cartesian3()); + var iZ = Cartesian3['add'](Cartesian3['unpack'](iO[0x2]), iW, new Cartesian3()); + var j0 = Cartesian3['add'](Cartesian3['unpack'](iP[0x0]), iW, new Cartesian3()); + var j1 = Cartesian3['add'](Cartesian3['unpack'](iP[0x1]), iW, new Cartesian3()); + var j2 = Cartesian3['add'](Cartesian3['unpack'](iP[0x2]), iW, new Cartesian3()); + var j3 = Cartesian3['subtract'](j0, iX, new Cartesian3()); + var j4 = Matrix4['fromTranslation'](j3); + j1 = Cartesian3['subtract'](j1, j3, new Cartesian3()); + j2 = Cartesian3[dol(0x124)](j2, j3, new Cartesian3()); + var j5 = Cartesian3['subtract'](iX, iV, new Cartesian3()); + var j6 = Matrix4['fromTranslation'](j5); + var j7 = Matrix4[dol(0x125)](j6, new Matrix4()); + var j8 = Cartesian3[dol(0x126)](j1, iY, new Cartesian3()); + var j9 = Cartesian3['subtract'](j2, iZ, new Cartesian3()); + var ja; + var jb; + if (Cartesian3['magnitude'](j8) < 0.00001 && Cartesian3['magnitude'](j9) < 0.00001) { + jb = Matrix4['fromTranslation'](j3); + } else if (Cartesian3['magnitude'](j8) < 0.00001) { + ja = Cartesian3['subtract'](iX, iY, new Cartesian3()); + ja = Cartesian3['normalize'](ja, new Cartesian3()); + var jc = Cartesian3['subtract'](iX, iZ, new Cartesian3()); + var jd = Cartesian3['dot'](jc, ja); + var je = Cartesian3['subtract'](iX, Cartesian3['multiplyByScalar'](ja, -jd, new Cartesian3()), new Cartesian3()); + var jf = Cartesian3['subtract'](iZ, je, new Cartesian3()); + var jg = Cartesian3['subtract'](j2, je, new Cartesian3()); + var jh = Cartesian3['angleBetween'](jf, jg); + var ji = Matrix4[dol(0x127)](iR(jh, ja)); + jb = Matrix4['multiply'](ji, j6, new Matrix4()); + jb = Matrix4['multiply'](j7, jb, new Matrix4()); + jb = Matrix4['multiply'](j4, jb, new Matrix4()); + } else if (Cartesian3['magnitude'](j9) < 0.00001) { + ja = Cartesian3['subtract'](iX, iZ, new Cartesian3()); + ja = Cartesian3['normalize'](ja, new Cartesian3()); + var jc = Cartesian3['subtract'](iX, iY, new Cartesian3()); + var jd = Cartesian3['dot'](jc, ja); + var je = Cartesian3['subtract'](iX, Cartesian3[dol(0x128)](ja, -jd, new Cartesian3()), new Cartesian3()); + var jf = Cartesian3['subtract'](iY, je, new Cartesian3()); + var jg = Cartesian3['subtract'](j1, je, new Cartesian3()); + var jh = Cartesian3['angleBetween'](jf, jg); + var ji = Matrix4['fromRotationTranslation'](iR(jh, ja)); + jb = Matrix4['multiply'](ji, j6, new Matrix4()); + jb = Matrix4[dol(0x129)](j7, jb, new Matrix4()); + jb = Matrix4[dol(0x12a)](j4, jb, new Matrix4()); + } else { + ja = Cartesian3['cross'](j8, j9, new Cartesian3()); + ja = Cartesian3['normalize'](ja, new Cartesian3()); + var jc = Cartesian3['subtract'](iX, iY, new Cartesian3()); + var jd = Cartesian3['dot'](jc, ja); + var je = Cartesian3['subtract'](iX, Cartesian3[dol(0x12b)](ja, -jd, new Cartesian3()), new Cartesian3()); + var jf = Cartesian3['subtract'](iY, je, new Cartesian3()); + var jg = Cartesian3['subtract'](j1, je, new Cartesian3()); + var jh = Cartesian3['angleBetween'](jf, jg); + var ji = Matrix4['fromRotationTranslation'](iR(jh, ja)); + jb = Matrix4['multiply'](ji, j6, new Matrix4()); + jb = Matrix4['multiply'](j7, jb, new Matrix4()); + jb = Matrix4['multiply'](j4, jb, new Matrix4()); + } + var jx = Matrix4['inverse'](cs[dol(0x12c)]['root']['transform'], new Matrix4()); + jb = Matrix4['multiply'](jb, jx, new Matrix4()); + jb = Matrix4['multiply'](cs['tileset']['root']['transform'], jb, new Matrix4()); + jb = Matrix4['multiply'](iQ, jb, new Matrix4()); + cs['tileset']['modelMatrix'] = jb; + cs[dol(0x12d)]['scene']['requestRender'](); + }, + 'rotate': function(jy, jz) { + try { + + if (!isEmpty(jz)) { + if (cs['m_model']['get'](jz[dol(0x12e)]()) === undefined) { + throw doj(0x30); + } + cs['tileset'] = cs['m_model']['get'](jz['toString']()); + } + jy = Number(jy); + if (isNaN(jy)) { + throw '参' + doo(0x79) + '字'; + } + var jA = cs['tileset']['boundingSphere']['center']; + var jB = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset'][dol(0x12f)], jB); + Cesium['Matrix4']['multiplyByPoint'](jB, jA, jA); + var jC = Cesium['Quaternion']['fromAxisAngle'](jA, Cesium[dol(0x130)][dol(0x131)](jy)); + var jD = Cesium['Matrix3']['fromQuaternion'](jC); + var jE = Cesium['Matrix4'][dol(0x132)](jD); + var jF = new Cesium['Matrix4'](); + Cesium['Matrix4']['multiply'](cs['tileset']['modelMatrix'], jE, jF); + cs['tileset']['modelMatrix'] = jF; + cs['viewer']['scene']['requestRender'](); + return Cesium['Matrix4']['toArray'](jF); + } catch (jG) { + aCe('错' + doo(0x7a) + ':' + jG); + } + }, + 'rotateByQuaternion': function(bb) { + try { + if (!isEmpty(bb[dol(0x133)])) { + if (cs[dol(0x134)][dol(0x135)](bb['modelId']['toString']()) === undefined) { + throw doj(0x31); + } + cs['tileset'] = cs['m_model']['get'](bb['modelId']['toString']()); + } + var jI = Cesium['Matrix4']['IDENTITY']; + var jJ = new Cesium['Quaternion'](bb['quaternion'][0x0],bb['quaternion'][0x1],bb[dol(0x136)][0x2],bb['quaternion'][0x3]); + var jK = Cesium['Matrix3']['fromQuaternion'](jJ); + var jL = Cesium['Matrix4']['fromRotationTranslation'](jK); + Cesium['Matrix4'][dol(0x137)](jI, jL, jL); + var jM = Cesium['Matrix4']['multiplyTransformation'](jL, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = jM; + cs[dol(0x138)]['scene']['requestRender'](); + return Cesium['Matrix4']['toArray'](jM); + } catch (jN) { + console['log']('错' + doo(0x7b) + ':' + jN); + } + }, + 'rotateTemp': function(jO, jP) { + try { + if (!isEmpty(jP)) { + if (cs[dol(0x139)]['get'](jP['toString']()) === undefined) { + throw doj(0x32); + } + cs[dol(0x13a)] = cs['m_model']['get'](jP['toString']()); + } + jO = Number(jO); + if (isNaN(jO)) { + throw '参' + doo(0x7c) + '字'; + } + var jQ = Cesium['Matrix4']['IDENTITY']; + var jR = cs['tileset']['boundingSphere']['center']; + var jS = Cesium[dol(0x13b)]['fromAxisAngle'](jR, Cesium[dol(0x13c)]['toRadians'](jO)); + var jT = Cesium['Matrix3']['fromQuaternion'](jS); + var jU = Cesium['Matrix4']['fromRotationTranslation'](jT); + Cesium['Matrix4']['multiplyTransformation'](jQ, jU, jU); + var jV = Cesium['Matrix4']['multiplyTransformation'](jU, cs[dol(0x13d)]['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = jV; + cs['viewer'][dol(0x13e)]['requestRender'](); + return Cesium['Matrix4']['toArray'](jV); + } catch (jW) { + console['log']('错' + doo(0x7d) + ':' + jW); + } + }, + 'rotateByAnyAxis': function(bb) { + try { + + if (!Cesium['defined'](bb)) + throw '缺' + doo(0x7e) + 's'; + var jY = []; + var jZ; + if (!isEmpty(bb['tags']) && bb[dol(0x13f)]['length'] > 0x0) { + if (Array['isArray'](bb['tags'])) { + for (var k0 = 0x0; k0 < bb['tags']['length']; k0++) { + var k1 = bb['tags'][k0]; + if (cs['m_model']['get'](k1['toString']()) === undefined) { + throw doj(0x33); + } + jY['push'](cs['m_model']['get'](k1['toString']())); + } + jZ = cs['Model']['getModelsCenter'](bb['tags']); + } else { + if (cs['m_model'][dol(0x140)](bb['tags'][dol(0x141)]()) === undefined) { + throw doj(0x34); + } + jY['push'](cs['m_model']['get'](bb['tags']['toString']())); + jZ = cs['Model']['getModelsCenter']([bb['tags']['toString']()]); + } + } + if (jY['length'] == 0x0) { + throw doj(0x35); + } + var k2 = Number(bb['rotate']); + if (isNaN(k2)) { + throw doj(0x36); + } + var k3, k4; + var k5 = new Cesium['Matrix3'](); + switch (bb['type']) { + case 0x0: + if (Array['isArray'](bb['point1']) && bb['point1']['length'] == 0x3 && Array['isArray'](bb[dol(0x142)]) && bb['point2']['length'] == 0x3) { + k3 = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['point1'])[0x0]; + k4 = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['point2'])[0x0]; + } else + throw Error(doj(0x37)); + break; + case 0x1: + if (Cesium['defined'](bb[dol(0x143)]) && bb['point1']instanceof Cesium['Cartesian3'] && Cesium['defined'](bb['point2']) && bb[dol(0x144)]instanceof Cesium['Cartesian3']) { + k3 = bb['point1']; + k4 = bb['point2']; + } else + throw Error(doj(0x38)); + break; + case 0x2: + k3 = bb['point1']['clone'](); + var k6 = Cesium['Transforms']['eastNorthUpToFixedFrame'](bb['point1']); + k4 = Cesium['Matrix4']['multiplyByPoint'](k6, bb[dol(0x145)], new Cesium['Cartesian3']()); + break; + default: + throw Error('t' + doo(0x7f) + '效'); + } + var k7 = new Cesium['Cartesian3'](); + Cesium[dol(0x146)]['subtract'](k4, k3, k7); + Cesium['Cartesian3'][dol(0x147)](k7, k7); + var k8 = GetFootOfPerpendicular(k3, k4, jZ['center']); + var k9 = new Cesium['Matrix3'](); + _applyRotateAroundAxis(k7, Cesium[dol(0x148)]['toRadians'](k2), k9); + var ka = Cesium['Matrix4']['fromRotationTranslation'](k9); + Cesium['Matrix3']['clone'](k9, k5); + var kb = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['negate'](k8, kb); + var kc = Cesium['Matrix4']['IDENTITY']['clone'](); + var kd = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4']['fromTranslation'](kb, kc); + Cesium['Matrix4']['fromTranslation'](k8, kd); + if (jY['length'] > 0x0) { + for (var ke = 0x0; ke < jY['length']; ke++) { + var kf = jY[ke]; + Cesium['Matrix4']['multiply'](kc, kf['modelMatrix'], kf['modelMatrix']); + Cesium['Matrix4'][dol(0x149)](ka, kf['modelMatrix'], kf['modelMatrix']); + Cesium['Matrix4']['multiply'](kd, kf[dol(0x14a)], kf['modelMatrix']); + } + } + if (bb['callback'] != undefined) { + bb['callback'](k5); + } + cs['viewer']['scene']['requestRender'](); + } catch (kg) { + aCe(kg); + } + }, + 'rotateByAnyAxisReturnQuaternion': function(bb) { + try { + + if (!Cesium[dol(0x14b)](bb)) + throw '缺' + doo(0x80) + 's'; + var ki = []; + var kj; + if (!isEmpty(bb[dol(0x14c)]) && bb['tags']['length'] > 0x0) { + if (Array['isArray'](bb['tags'])) { + for (var kk = 0x0; kk < bb['tags']['length']; kk++) { + var kl = bb['tags'][kk]; + if (cs['m_model']['get'](kl['toString']()) === undefined) { + throw doj(0x39); + } + ki['push'](cs['m_model']['get'](kl['toString']())); + } + kj = cs['Model']['getModelsCenter'](bb['tags']); + } else { + if (cs['m_model']['get'](bb['tags']['toString']()) === undefined) { + throw doj(0x3a); + } + ki['push'](cs['m_model']['get'](bb['tags']['toString']())); + kj = cs['Model']['getModelsCenter']([bb['tags']['toString']()]); + } + } + if (ki['length'] == 0x0) { + throw doj(0x3b); + } + var km = Number(bb['rotate']); + if (isNaN(km)) { + throw doj(0x3c); + } + var kn, ko; + var kp = new Cesium['Matrix3'](); + switch (bb['type']) { + case 0x0: + if (Array['isArray'](bb['point1']) && bb['point1']['length'] == 0x3 && Array['isArray'](bb['point2']) && bb['point2']['length'] == 0x3) { + kn = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['point1'])[0x0]; + ko = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['point2'])[0x0]; + } else + throw Error(doj(0x3d)); + break; + case 0x1: + if (Cesium['defined'](bb['point1']) && bb['point1']instanceof Cesium['Cartesian3'] && Cesium[dol(0x14d)](bb['point2']) && bb['point2']instanceof Cesium['Cartesian3']) { + kn = bb['point1']; + ko = bb['point2']; + } else + throw Error(doj(0x3e)); + break; + case 0x2: + kn = bb['point1']['clone'](); + var kq = Cesium['Transforms']['eastNorthUpToFixedFrame'](bb[dol(0x14e)]); + ko = Cesium['Matrix4']['multiplyByPoint'](kq, bb['point2'], new Cesium['Cartesian3']()); + break; + default: + throw Error('t' + doo(0x81) + '效'); + } + var kr = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](ko, kn, kr); + Cesium['Cartesian3']['normalize'](kr, kr); + var ks = GetFootOfPerpendicular(kn, ko, kj['center']); + var kt = new Cesium['Matrix3'](); + _applyRotateAroundAxis(kr, Cesium['Math']['toRadians'](km), kt); + var ku = Cesium['Matrix4']['fromRotationTranslation'](kt); + Cesium['Matrix3']['clone'](kt, kp); + var kv = new Cesium['Cartesian3'](); + Cesium['Cartesian3'][dol(0x14f)](ks, kv); + var kw = Cesium['Matrix4']['IDENTITY']['clone'](); + var kx = Cesium['Matrix4'][dol(0x150)]['clone'](); + Cesium['Matrix4']['fromTranslation'](kv, kw); + Cesium['Matrix4'][dol(0x151)](ks, kx); + if (ki['length'] > 0x0) { + for (var ky = 0x0; ky < ki['length']; ky++) { + var kz = ki[ky]; + Cesium['Matrix4']['multiply'](kw, kz['modelMatrix'], kz['modelMatrix']); + Cesium['Matrix4']['multiply'](ku, kz[dol(0x152)], kz['modelMatrix']); + Cesium['Matrix4']['multiply'](kx, kz['modelMatrix'], kz['modelMatrix']); + } + } + if (bb['callback'] != undefined) { + bb['callback'](new Cesium['Quaternion']['fromRotationMatrix'](kp)); + } + cs['viewer']['scene']['requestRender'](); + } catch (kA) { + aCe(kA); + } + }, + 'get': function(kB) { + try { + + if (cs['m_model']['get'](kB['toString']()) == undefined) { + return undefined; + } else { + return cs['m_model'][dol(0x153)](kB['toString']()); + } + } catch (kC) { + aCe('错' + doo(0x82) + ':' + kC); + } + }, + 'setCurrent': function(kD) { + try { + + if (cs['m_model']['get'](kD['toString']()) == undefined) { + return null; + } else { + cs['tileset'] = cs['m_model']['get'](kD['toString']()); + return cs['tileset']; + } + } catch (kE) { + aCe('错' + doo(0x83) + ':' + kE); + } + }, + 'getByScreenCoord': function(kF, kG, kH, kI, kJ, kK) { + try { + + if (isEmpty(kH)) + kH = 0xff; + if (isEmpty(kI)) + kI = 0xff; + if (isEmpty(kJ)) + kJ = 0xff; + if (isEmpty(kK)) + kK = 0x1; + var kL = cs['viewer']['scene']['pick'](kF); + if (kL && Cesium['defined'](kL) && kL instanceof Cesium['Cesium3DTileFeature']) { + var kM = kL['getProperty']('n' + doo(0x84) + 'e'); + if (!Cesium['defined'](kM)) { + kM = kL['getProperty'](doh(0xd)); + } + cs['m_model']['forEach'](function(kN, kO) { + if (kN['id'] === kL['tileset']['id']) { + cs['tileset'] = kN; + cs['Model'][dol(0x154)](kO, kH, kI, kJ, kK); + if (!isEmpty(kG)) { + if (cs['defaults']['editmode']) { + var kP = cs['MergeList']['find'](function(kQ) { + return kQ['modelList']['indexOf'](kO) > -0x1; + }); + if (kP != undefined) { + kG(kP); + } else { + var kR = cs['funcPublic']['getPointByDistance'](cs['tileset']['boundingSphere']['center'], 0x0, 0x0, -(cs['tileset']['tilesetoutline']['maximumHeight'] - cs['tileset']['tilesetoutline']['minimumHeight']) / 0x2); + kG({ + 'offset': { + 'x': cs['funcPublic']['GetDistance'](kR, cs['BaseContorl']['gridStartX'], 0x1) - cs[dol(0x155)]['GetDistance'](cs['BaseContorl']['gridCenter'], cs['BaseContorl']['gridStartX'], 0x1), + 'y': cs['funcPublic']['GetDistance'](kR, cs['BaseContorl']['gridStartY'], 0x0, 0x1) - cs['funcPublic']['GetDistance'](cs['BaseContorl']['gridCenter'], cs['BaseContorl'][dol(0x156)], 0x0, 0x1), + 'z': cs['funcPublic']['GetDistance'](kR, cs['BaseContorl']['gridCenter'], 0x0, 0x0, 0x1) + }, + 'rotate': { + 'x': cs['tileset']['rotate'][0x0], + 'y': cs['tileset']['rotate'][0x1], + 'z': cs['tileset']['rotate'][0x2] + }, + 'obj': cs['tileset'], + 'id': kO + }); + } + } else { + kG({ + 'obj': cs['tileset'], + 'id': kO + }); + } + } + throw new Error('e' + doo(0x85) + 'g'); + } + }); + } else { + cs['Model']['setColor'](cs['tileset']['id'], 0xff, 0xff, 0xff, 0x1); + } + if (!isEmpty(kG)) { + kG(undefined); + } + } catch (kS) { + if (kS['message'] == 'e' + doo(0x86) + 'g') {} else { + aCe('错' + doo(0x87) + ':' + kS); + } + } + }, + 'MoveModel': function(kT, kU, kV) { + try { + + if (!isEmpty(kU)) { + if (cs['m_model']['get'](kU['toString']()) === undefined) { + throw doj(0x3f); + } + cs['tileset'] = cs['m_model']['get'](kU['toString']()); + } + var kW = cs['funcPublic']['pickPosition'](kT, cs['viewer'])['position']; + if (kW) { + var kX = Cesium['Cartographic']['fromCartesian'](cs[dol(0x157)]['boundingSphere']['center']); + var kY = Cesium['Cartographic']['fromCartesian'](kW); + var kZ = Cesium['Cartesian3']['fromRadians'](kX['longitude'], kX['latitude'], 0x0); + var l0 = Cesium['Cartesian3']['fromRadians'](kY['longitude'], kY['latitude'], 0x0); + var l1 = Cesium['Cartesian3']['subtract'](l0, kZ, new Cesium[(dol(0x158))]()); + var l2 = Cesium[dol(0x159)]['fromTranslation'](l1); + var l3 = Cesium[dol(0x15a)]['multiplyTransformation'](l2, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs[dol(0x15b)]['modelMatrix'] = l3; + if (!isEmpty(kV)) { + kV(Cesium['Matrix4']['toArray'](l3)); + } else { + return Cesium['Matrix4']['toArray'](l3); + } + cs['viewer']['scene']['requestRender'](); + } + } catch (l4) { + aCe('错' + doo(0x88) + ':' + l4); + } + }, + 'moveToPosition': function(l5, l6, l7) { + try { + + if (!isEmpty(l7)) { + if (cs['m_model']['get'](l7['toString']()) === undefined) { + throw doj(0x40); + } + cs['tileset'] = cs['m_model']['get'](l7['toString']()); + } + var l8, l9; + var la; + if (l5['length'] > 0x0) { + l8 = l5[0x0]; + l9 = l5[0x1]; + if (l5['length'] == 0x3) + height = l5[0x2]; + if (l6 == 0x0) { + la = Cesium['Cartographic']['fromDegrees'](l8, l9, height); + } else { + la = new Cesium['Cartographic'](l8,l9,height); + } + var lb = cs['funcPublic']['cartographicToCartesian3'](la, cs['viewer']); + if (lb) { + var lc = Cesium['Cartographic']['fromCartesian'](cs['tileset']['boundingSphere'][dol(0x15c)]); + var ld = Cesium[dol(0x15d)]['fromCartesian'](lb); + var le = Cesium[dol(0x15e)]['fromRadians'](lc['longitude'], lc['latitude'], lc['height']); + var lf = Cesium['Cartesian3']['fromRadians'](ld['longitude'], ld['latitude'], l5['length'] == 0x3 ? ld['height'] : lc[dol(0x15f)]); + var lg = Cesium['Cartesian3']['subtract'](lf, le, new Cesium['Cartesian3']()); + var lh = Cesium[dol(0x160)]['fromTranslation'](lg); + var li = Cesium[dol(0x161)]['multiplyTransformation'](lh, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset'][dol(0x162)] = li; + cs[dol(0x163)]['scene']['requestRender'](); + return Cesium['Matrix4']['toArray'](li); + } + } + } catch (lj) { + aCe('错' + doo(0x89) + ':' + lj); + } + }, + 'moveByDirectionLine': function(bb) { + const ll = bb['tag']; + if (ll == undefined) { + aCe('模' + doo(0x8a) + '!'); + return; + } + cs['tileset'] = cs['m_model'][dol(0x164)](ll['toString']()); + if (!cs['defaults']['editmode']) { + aCe('请' + doo(0x8b) + '!'); + return; + } + cs['Entity']['drawLine']({ + 'ID': 'm' + doo(0x8c) + '_' + ll, + 'Color': 'r' + doo(0x8d) + ')', + 'Width': bb['lineWidth'] == undefined ? 0x5 : bb['lineWidth'], + 'Arrow': ![] + }, function(lm) { + if (lm['length'] >= 0x2) { + var ln = Cesium['Cartesian3']['subtract'](lm[0x1], lm[0x0], new Cesium['Cartesian3']()); + var lo = Cesium['Matrix4']['fromTranslation'](ln); + var lp = Cesium['Matrix4']['multiplyTransformation'](lo, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = lp; + cs['viewer']['scene']['requestRender'](); + cs['Entity']['remove']('m' + doo(0x8e) + '_' + ll); + cs['Model'][dol(0x165)](bb); + } + }); + }, + 'exitMoveByDirectionLine'() { + cs['Entity']['exitDraw'](); + }, + 'moveByTrack': function(bb, lr, ls) { + try { + + bb['speed'] = Number(bb['speed']) || 0x3; + var lt = function(lu) { + if (lu['rotate_init']) { + lu['rotate'] = lu['rotate_init']['concat']([]); + delete lu['rotate_init']; + } + if (lu['_modelMatrix_init']) { + lu['modelMatrix'] = lu['_modelMatrix_init']['clone'](); + delete lu['_modelMatrix_init']; + } + }; + var lv; + if (!isEmpty(bb['modelId'])) { + if (cs['m_model']['get'](bb['modelId']['toString']()) === undefined) { + throw doj(0x41); + } + lv = cs['m_model']['get'](bb['modelId']['toString']()); + lt(lv); + if (!lv['rotate_init']) + lv[dol(0x166)] = lv['rotate']['concat']([]); + if (!lv['_modelMatrix_init']) + lv['_modelMatrix_init'] = lv[dol(0x167)]['clone'](); + } + var lw = cs['ModelMoveState']['get'](bb['modelId']); + if (lw == undefined) { + cs['ModelMoveState']['set'](bb['modelId'], { + 'options': bb, + 'callback': lr, + 'onMoving': ls, + 'state': !![], + 'index': 0x0, + 'angle': 0x0 + }); + } + var lx = []; + var ly = [0x0]; + var lz = [0x0]; + var lA = 0x0; + bb['positions'][dol(0x168)]( (lB, lC) => { + if (bb['axisType'] == 0x1) { + lx['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3']['fromRadians'](lB[0x0], lB[0x1], lB[0x2]), 0x0, 0x0, (lv['tilesetoutline']['maximumHeight'] - lv[dol(0x169)]['minimumHeight']) / 0x2)); + } else if (bb['axisType'] == 0x2) { + lx['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3']['fromDegrees'](lB[0x0], lB[0x1], lB[0x2]), 0x0, 0x0, (lv['tilesetoutline']['maximumHeight'] - lv[dol(0x16a)][dol(0x16b)]) / 0x2)); + } else if (bb['axisType'] == 0x3) {} + if (lC > 0x0) { + lA += Cesium['Cartesian3']['distance'](lx[lC], lx[lC - 0x1]); + ly['push'](lA); + } + } + ); + bb['positions']['forEach']( (lD, lE) => { + if (lE > 0x0) + lz['push'](ly[lE] / lA); + } + ); + var lF = new Cesium['LinearSpline']({ + 'times': lz, + 'points': lx + }); + var lG = function() { + requestAnimationFrame(function() { + var lw = cs['ModelMoveState']['get'](lv[dol(0x16c)]); + if (lw == undefined) { + if (!isEmpty(lr)) { + lr(); + } + return; + } + var lI = lw != undefined ? lw['index'] : 0x0; + var lJ = lw != undefined ? lw['angle'] : 0x0; + if (!lw['state']) { + lw['index'] = --lI; + cs['ModelMoveState']['set'](bb['modelId'], lw); + return; + } + var lK = lF['evaluate'](lI / (0x7d0 / bb['speed'])); + if (lI + 0x1 >= 0x7d0 / bb['speed']) { + if (!isEmpty(lr)) { + lr(); + } + return; + } + var lL = lF[dol(0x16d)]((lI + 0x1) / (0x7d0 / bb['speed'])); + var lM = Cesium['Cartographic'][dol(0x16e)](lv['boundingSphere']['center']); + var lN = Cesium[dol(0x16f)]['fromCartesian'](lK); + var lO = Cesium['Cartographic']['fromCartesian'](lL); + var lP = Cesium[dol(0x170)]['fromRadians'](lM['longitude'], lM['latitude'], lM['height']); + var lQ = Cesium['Cartesian3']['fromRadians'](lN['longitude'], lN['latitude'], lN['height']); + var lR = Cesium['Cartesian3']['subtract'](lQ, lP, new Cesium[(dol(0x171))]()); + var lS = Cesium['Matrix4']['fromTranslation'](lR); + var lT = cs['funcPublic'][dol(0x172)](lN['longitude'], lN['latitude'], lO['longitude'], lO['latitude']); + lT -= bb['angleX']; + if (Math['round'](lJ) != Math[dol(0x173)](lT)) { + lJ = lT; + var lU = Cesium['Quaternion']['fromAxisAngle'](lv['boundingSphere'][dol(0x174)], Cesium['Math']['toRadians'](lT - lv['rotate'][0x2])); + var lV = Cesium['Matrix3']['fromQuaternion'](lU); + var lW = Cesium['Matrix4']['fromRotationTranslation'](lV); + Cesium['Matrix4']['multiply'](lS, lW, lS); + lv['rotate'][0x2] = lT; + } + var lX = Cesium['Matrix4']['multiplyTransformation'](lS, lv['modelMatrix'], new Cesium['Matrix4']()); + lv['modelMatrix'] = lX; + if (!isEmpty(ls)) + ls(lT, lv['boundingSphere']['center'], lK, lL); + cs['viewer']['scene']['requestRender'](); + lI++; + lw['index'] = lI; + cs['ModelMoveState']['set'](bb['modelId'], lw); + if (lI < 0x7d0 / bb['speed']) { + lG(); + } else { + if (!isEmpty(lr)) { + lr(); + } + } + }); + }; + lG(); + } catch (lY) { + aCe('错' + doo(0x8f) + ':' + lY); + } + }, + 'pauseMoveByTrack': function(lZ) { + + var m0 = cs['ModelMoveState']['get'](lZ); + if (m0 == undefined) { + throw 'I' + doo(0x90) + 'l'; + } + m0['state'] = !m0['state']; + cs['ModelMoveState'][dol(0x175)](m0[dol(0x176)]['modelId'], m0); + if (m0['state']) { + cs['Model']['moveByTrack'](m0['options'], m0['callback'], m0['onMoving']); + } + }, + 'MoveByTrackFastForward': function(m1, m2) { + + var m3 = cs['ModelMoveState']['get'](m1); + if (m3 == undefined) { + throw 'I' + doo(0x91) + 'l'; + } + var bb = m3['options']; + var m5 = cs[dol(0x177)]['get'](m3['options']['modelId']['toString']()); + var m6 = []; + var m7 = [0x0]; + var m8 = [0x0]; + var m9 = 0x0; + bb['positions']['forEach']( (ma, mb) => { + if (bb[dol(0x178)] == 0x1) { + m6['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3'][dol(0x179)](ma[0x0], ma[0x1], ma[0x2]), 0x0, 0x0, (m5['tilesetoutline']['maximumHeight'] - m5[dol(0x17a)][dol(0x17b)]) / 0x2)); + } else if (bb['axisType'] == 0x2) { + m6['push'](cs['funcPublic']['getPointByDistance'](Cesium[dol(0x17c)]['fromDegrees'](ma[0x0], ma[0x1], ma[0x2]), 0x0, 0x0, (m5['tilesetoutline']['maximumHeight'] - m5['tilesetoutline']['minimumHeight']) / 0x2)); + } else if (bb['axisType'] == 0x3) {} + if (mb > 0x0) { + m9 += Cesium['Cartesian3']['distance'](m6[mb], m6[mb - 0x1]); + m7['push'](m9); + } + } + ); + bb['positions']['forEach']( (mc, md) => { + if (md > 0x0) + m8[dol(0x17d)](m7[md] / m9); + } + ); + var me = 0x0; + var mf = Number['MAX_VALUE']; + for (let mg = 0x0; mg < m6['length']; mg++) { + var mh = Cesium['Cartesian3']['distance'](m2, m6[mg]); + if (mh < mf) { + me = mg; + mf = mh; + } + } + m3['index'] = Math['floor'](m8[me] * 0x7d0); + cs['ModelMoveState'][dol(0x17e)](bb['modelId'], m3); + if (m3['state']) { + cs['Model']['moveByTrack'](m3['options'], m3['callback'], m3['onMoving']); + } + }, + 'stopMoveByTrack': function(mi) { + + cs['ModelMoveState']['delete'](mi); + }, + 'clearOffset': function(mj) { + try { + + if (!isEmpty(mj)) { + if (cs['m_model']['get'](mj['toString']()) === undefined) { + throw doj(0x42); + } + cs[dol(0x17f)] = cs['m_model']['get'](mj['toString']()); + } + var mk = new Cesium['Matrix3'](); + Cesium['Matrix4']['getMatrix3'](cs['tileset']['modelMatrix'], mk); + var ml = new Cesium['Matrix4'](); + Cesium[dol(0x180)][dol(0x181)](mk, new Cesium['Cartesian3'](), ml); + cs['tileset']['modelMatrix'] = ml; + cs['viewer'][dol(0x182)]['camera']['lookAtTransform'](Cesium['Matrix4']['IDENTITY']); + cs['viewer']['scene']['requestRender'](); + return 0x0; + } catch (mm) { + aCe('错' + doo(0x92) + ':' + mm); + } + }, + 'clearRotation': function(mn) { + try { + + if (!isEmpty(mn)) { + if (cs['m_model']['get'](mn[dol(0x183)]()) === undefined) { + throw doj(0x43); + } + cs['tileset'] = cs['m_model']['get'](mn[dol(0x184)]()); + } + var mo = new Cesium['Cartesian3'](); + Cesium['Matrix4']['getTranslation'](cs['tileset']['modelMatrix'], mo); + var mp = new Cesium['Matrix4'](); + Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['IDENTITY'], mo, mp); + cs['tileset']['modelMatrix'] = mp; + cs['viewer']['scene']['camera']['lookAtTransform'](Cesium['Matrix4']['IDENTITY']); + cs['viewer']['scene']['requestRender'](); + return 0x0; + } catch (mq) { + aCe('错' + doo(0x93) + ':' + mq); + } + }, + 'offsetEx': function(mr, ms, mt, mu) { + try { + + if (!isEmpty(mu)) { + if (cs['m_model'][dol(0x185)](mu['toString']()) === undefined) { + throw doj(0x44); + } + cs['tileset'] = cs['m_model'][dol(0x186)](mu['toString']()); + } + mr = Number(mr); + if (isNaN(mr)) { + throw '参' + doo(0x94) + '字'; + } + ms = Number(ms); + if (isNaN(ms)) { + throw '参' + doo(0x95) + '字'; + } + mt = Number(mt); + if (isNaN(mt)) { + throw '参' + doo(0x96) + '字'; + } + var mv = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x187)], Cesium['Cartesian3'][dol(0x188)](mr, ms, mt), new Cesium['Cartesian3']()); + var mw = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], Cesium[dol(0x189)][dol(0x18a)](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var mx = Cesium['Cartesian3']['subtract'](mv, mw, new Cesium['Cartesian3']()); + var my = Cesium['Matrix4']['fromTranslation'](mx); + var mz = Cesium['Matrix4']['multiplyTransformation'](my, cs[dol(0x18b)]['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = mz; + cs['viewer']['scene']['requestRender'](); + var mA = Cesium['Cartographic']['fromCartesian'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], mw, new Cesium['Cartesian3']())); + return { + 'llh': [mA['longitude'], mA['latitude'], mA['height']], + 'matrix': Cesium['Matrix4']['toArray'](mz) + }; + } catch (mB) { + aCe('错' + doo(0x97) + ':' + mB); + } + }, + 'offset': function(mC, mD, mE, mF) { + try { + + if (!isEmpty(mF)) { + if (cs['m_model']['get'](mF['toString']()) === undefined) { + throw doj(0x45); + } + cs['tileset'] = cs['m_model']['get'](mF['toString']()); + } + mC = Number(mC); + if (isNaN(mC)) { + throw '参' + doo(0x98) + '字'; + } + mD = Number(mD); + if (isNaN(mD)) { + throw '参' + doo(0x99) + '字'; + } + mE = Number(mE); + if (isNaN(mE)) { + throw '参' + doo(0x9a) + '字'; + } + var mG = Cesium[dol(0x18c)]['multiplyByPoint'](cs['tileset']['root']['transform'], Cesium['Cartesian3']['fromElements'](mC, mD, mE), new Cesium['Cartesian3']()); + var mH = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], Cesium[dol(0x18d)]['fromElements'](0x0, 0x0, 0x0), new Cesium[(dol(0x18e))]()); + var mI = Cesium['Cartesian3']['subtract'](mG, mH, new Cesium[(dol(0x18f))]()); + var mJ = Cesium['Matrix4']['fromTranslation'](mI); + var mK = Cesium['Matrix4']['multiplyTransformation'](mJ, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = mK; + cs['viewer']['scene']['requestRender'](); + return Cesium['Matrix4']['toArray'](mK); + } catch (mL) { + aCe('错' + doo(0x9b) + ':' + mL); + } + }, + 'offsetTemp': function(mM, mN, mO, mP) { + try { + if (!isEmpty(mP)) { + if (cs['m_model']['get'](mP['toString']()) === undefined) { + throw doj(0x46); + } + cs['tileset'] = cs['m_model']['get'](mP['toString']()); + } + mM = Number(mM); + if (isNaN(mM)) { + throw '参' + doo(0x9c) + '字'; + } + mN = Number(mN); + if (isNaN(mN)) { + throw '参' + doo(0x9d) + '字'; + } + mO = Number(mO); + if (isNaN(mO)) { + throw '参' + doo(0x9e) + '字'; + } + var mQ = metersToLatitude(mN); + var mR = metersToLongitude(mM, mQ); + var mS = Cesium['Cartographic']['fromCartesian'](cs['tileset']['boundingSphere']['center']); + var mT = Cesium['Cartesian3']['fromRadians'](mS['longitude'], mS['latitude'], mS['height']); + var mU = Cesium['Cartesian3']['fromRadians'](mS['longitude'] + mR, mS['latitude'] + mQ, mS[dol(0x190)] + mO); + var mV = Cesium['Cartesian3']['subtract'](mU, mT, new Cesium['Cartesian3']()); + var mW = Cesium['Matrix4']['fromTranslation'](mV); + var mX = Cesium['Matrix4']['multiplyTransformation'](mW, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = mX; + cs[dol(0x191)]['scene']['requestRender'](); + return Cesium['Matrix4']['toArray'](mX); + } catch (mY) { + aCe('错' + doo(0x9f) + ':' + mY); + } + }, + 'offsetWY': function(mZ, n0, n1, n2) { + if (!isEmpty(n2)) { + if (cs['m_model']['get'](n2['toString']()) === undefined) { + throw doj(0x47); + } + cs['tileset'] = cs['m_model']['get'](n2['toString']()); + } + mZ = Number(mZ); + if (isNaN(mZ)) { + throw '参' + doo(0xa0) + '字'; + } + n0 = Number(n0); + if (isNaN(n0)) { + throw '参' + doo(0xa1) + '字'; + } + n1 = Number(n1); + if (isNaN(n1)) { + throw '参' + doo(0xa2) + '字'; + } + var n3 = new Cesium[(dol(0x192))](); + Cesium['Cartesian3']['clone'](cs['tileset']['boundingSphere']['center'], n3); + var n4 = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], n4); + Cesium['Matrix4']['multiplyByPoint'](n4, n3, n3); + var n5 = new Cesium['Cartesian3'](); + Cesium['Cartesian3'][dol(0x193)](n3, new Cesium[(dol(0x194))](mZ,n0,n1), n5); + Cesium[dol(0x195)]['multiplyByPoint'](cs['tileset']['root']['transform'], n5, n5); + var n6 = Cesium['Cartesian3']['subtract'](n5, cs['tileset']['boundingSphere']['center'], new Cesium['Cartesian3']()); + var n7 = Cesium['Matrix4']['fromTranslation'](n6); + var n8 = Cesium[dol(0x196)]['multiplyTransformation'](n7, cs['tileset']['modelMatrix'], new Cesium['Matrix4']()); + cs['tileset']['modelMatrix'] = n8; + cs['viewer']['scene']['requestRender'](); + }, + 'getModelMatrix': function(n9) { + try { + if (!isEmpty(n9)) { + if (cs['m_model'][dol(0x197)](n9['toString']()) === undefined) { + throw doj(0x48); + } + cs['tileset'] = cs['m_model']['get'](n9['toString']()); + } + return Cesium['Matrix4']['toArray'](cs['tileset']['modelMatrix']); + } catch (na) { + aCe('错' + doo(0xa3) + ':' + na); + } + }, + 'setModelMatrix': function(nb, nd) { + try { + if (!isEmpty(nb)) { + if (cs['m_model'][dol(0x198)](nb[dol(0x199)]()) === undefined) { + throw doj(0x49); + } + cs['tileset'] = cs['m_model']['get'](nb['toString']()); + } + var ne = Cesium['Matrix4']['unpack'](nd); + Cesium['Matrix4']['clone'](ne, cs['tileset']['modelMatrix']); + if (cs['EditViewMode'] == doh(0xe)) { + cs['funcPublic']['updateCadBg'](); + } + } catch (nf) { + aCe('错' + doo(0xa4) + ':' + nf); + } + }, + 'resetModelMatrix': function(ng) { + try { + if (!isEmpty(ng)) { + if (cs['m_model']['get'](ng['toString']()) === undefined) { + throw doj(0x4a); + } + cs['tileset'] = cs['m_model']['get'](ng['toString']()); + } + var nh = Cesium['defaultValue'](cs['tileset']['_modelOriginalMatrix'], Cesium['Matrix4']['IDENTITY']); + Cesium['Matrix4']['clone'](nh, cs['tileset'][dol(0x19a)]); + if (cs['EditViewMode'] == doh(0xf)) { + cs['funcPublic']['updateCadBg'](); + } + } catch (ni) { + aCe('错' + doo(0xa5) + ':' + ni); + } + }, + 'getInstanceMatrix': function(nj, nk) { + if (!isEmpty(nj)) { + if (cs['m_model']['get'](nj['toString']()) === undefined) { + throw doj(0x4b); + } + cs['tileset'] = cs['m_model'][dol(0x19b)](nj['toString']()); + } + var nl = new Cesium['Matrix4'](); + for (var nm = 0x0; nm < cs['tileset']['_selectedTiles']['length']; ++nm) { + var nn = cs['tileset']['_selectedTiles'][nm]['_content']; + var no = nn['_model']; + var np = cs['tileset']['modelInstances']['length'] + 0x1; + if (no['instancesMats'][0x0]['length'] == np * 0x10) { + Cesium['Matrix4']['unpack'](no['instancesMats'][0x0], nk * 0x10, nl); + break; + } + } + return nl; + }, + 'getLoadedList': function() { + try { + + return cs['m_model']; + } catch (nq) { + aCe('错' + doo(0xa6) + ':' + nq); + } + }, + 'clipFill': function(nr, ns, nt, nu) { + try { + + if (!cs['enableDoubleSided']) { + console['log'](doj(0x4c)); + return; + } + if (!Cesium['defined'](ns)) { + ns = Cesium['Color']['RED']; + } + cs['Model']['closeClipFill'](nr); + cs['viewer']['scene']['msaaSamples'] = 0x1; + var nv = cs['viewer']['scene']['_postRender']['addEventListener'](function() { + function nw() { + try { + cs['m_model']['forEach'](function(nx, ny) { + if (Array['isArray'](nr) && nr['indexOf'](ny) < 0x0) { + throw new Error('b' + doo(0xa7) + 'k'); + } else { + if (nx['isBimModel'] && Cesium[dol(0x19c)](nx['_clippingPlanes'])) { + cs['funcPublic']['clipFillByStencil'](cs, nx['id'], ns, nt, nu); + cs['viewer']['scene']['requestRender'](); + } + } + }); + } catch (nz) { + nv(); + if (nz['message'] != 'b' + doo(0xa8) + 'k') + throw nz; + } + ; + } + setTimeout(nw, 0x64); + nv(); + }, null); + cs['viewer']['scene']['requestRender'](); + } catch (nA) { + aCe('错' + doo(0xa9) + ':' + nA); + } + }, + 'closeClipFill': function(nB) { + try { + + try { + cs[dol(0x19d)]['scene']['msaaSamples'] = 0x4; + cs['m_model']['forEach'](function(nC, nD) { + if (Array['isArray'](nB) && nB['indexOf'](nD) < 0x0) { + throw new Error('b' + doo(0xaa) + 'k'); + } else { + if (nC['isBimModel']) { + var nE = cs['viewer']['scene']['primitives']['_primitives']; + for (var nF = 0x0; nF < nE['length']; nF++) { + if (nE[nF]instanceof aFy || nE[nF]instanceof aFB) { + if (nE[nF]['drawCommand']['id'] == nD) { + cs['viewer']['scene']['primitives']['remove'](nE[nF]); + nF--; + } + } + } + for (var nF = 0x0; nF < nE['length']; nF++) { + if (Cesium['defined'](nE[nF]['clipFillTag']) && nE[nF]['clipFillTag'] == nD) { + cs['viewer']['scene'][dol(0x19e)]['remove'](nE[nF]); + nF--; + } + } + } + } + }); + } catch (nH) { + if (nH['message'] != 'b' + doo(0xab) + 'k') + throw nH; + } + ;cs['viewer']['scene']['requestRender'](); + } catch (nI) { + aCe('错' + doo(0xac) + ':' + nI); + } + }, + 'clip': function(nJ, nK, nL, nM, nN) { + try { + + nK = Number(nK); + if (isNaN(nK)) { + throw '参' + doo(0xad) + '字'; + } + if (!nL) { + nL = []; + var nO = cs['Model']['getLoadedList'](); + if (nO && nO['size'] > 0x0) + for (var [nP,nQ] of nO) { + nL['push'](nP); + } + } + if (nL) + for (var nR = 0x0; nR < nL['length']; nR++) { + var nS = nL[nR]; + var nT = cs['Model']['get'](nS); + if (!nT['isBimModel']) { + console['log'](doj(0x4d)); + return; + } + } + cs['Model']['closeClipFill'](nL); + var nU = cs['Model']['getModelsCenter'](nL); + var nV = cs['funcPublic']['cartesian3ToCartographic'](nU['maxpos'], cs[dol(0x19f)]); + var nW = cs['funcPublic'][dol(0x1a0)](nU['minpos'], cs['viewer']); + var nX = new Cesium['Cartographic'](nV['longitude'],nW['latitude'],nV[dol(0x1a1)]); + var nY = new Cesium['Cartographic'](nX['longitude'],nX['latitude'],nW[dol(0x1a2)]); + var nZ = ![]; + var o0 = new Cesium['Cartesian3'](Math['ceil'](Cesium['Cartesian3'][dol(0x1a3)](cs['funcPublic']['cartographicToCartesian3'](nY, cs['viewer']), nU['minpos'])),Math['ceil'](Cesium['Cartesian3']['distance'](cs['funcPublic']['cartographicToCartesian3'](nX, cs['viewer']), nU['maxpos'])),Cesium['Cartesian3']['distance'](cs['funcPublic']['cartographicToCartesian3'](nY, cs['viewer']), cs['funcPublic']['cartographicToCartesian3'](nX, cs['viewer']))); + if (cs['clippingRange'] != undefined) { + o0 = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](cs[dol(0x1a4)][0x1], cs['clippingRangeMaxMin'][0x0], o0); + nZ = !![]; + } + Cesium['Cartesian3']['add'](o0, new Cesium['Cartesian3'](0x1,0x1,0x1), o0); + cs['m_model']['forEach'](function(o1, nP) { + if (nL['indexOf'](o1['id']) > -0x1) { + if (isEmpty(o1[dol(0x1a5)])) { + o1['_clippingPlanes'] = new Cesium['ClippingPlaneCollection']({ + 'planes': [], + 'edgeColor': nM == undefined ? Cesium['Color'][dol(0x1a6)] : Cesium['Color']['fromCssColorString'](nM), + 'edgeWidth': nN ? 0x2 : 0x0, + 'unionClippingRegions': !![] + }); + } + var o3 = function() { + var o4 = ![]; + switch (nJ['toUpperCase']()) { + case 'X' + doo(0xae) + 'N': + case 'Y' + doo(0xaf) + 'N': + case 'Z' + doo(0xb0) + 'N': + o4 = nK > -0x1; + break; + case 'X' + doo(0xb1) + 'X': + case 'Y' + doo(0xb2) + 'X': + case 'Z' + doo(0xb3) + 'X': + o4 = nK < 0x1; + break; + default: + break; + } + if (!o4) { + cs['funcPublic']['getAllTiles'](o1, function(o5) { + o5[dol(0x1a7)](function(o6, o7) { + if (o6 && o6[dol(0x1a8)] && o6['content']['_model']) + o6['content']['_model']['_shouldRegenerateShaders'] = !![]; + }); + }); + } + }; + if (nJ['toUpperCase']() == 'X' + doo(0xb4) + 'N') { + var o8 = o0['x'] * -nK / 0x2; + if (nZ) { + o8 = cs['clippingRange']['xmin'] - o0['x'] / 0x2 * (nK + 0x1); + } + for (var o9 = 0x0; o9 < o1['_clippingPlanes']['length']; ++o9) { + var oa = o1['_clippingPlanes'][dol(0x1a9)](o9); + if (oa['types'] == 'X' + doo(0xb5) + 'N') { + if (nK != -0x1) { + oa['distance'] = o8; + } else { + oa['distance'] = nZ ? cs['clippingRange']['xmin'] : o0['x']; + } + o3(); + cs['viewer']['scene']['requestRender'](); + return; + } + } + var oa = new Cesium[(dol(0x1aa))](new Cesium['Cartesian3'](0x1,0x0,0x0),o8); + oa[dol(0x1ab)] = 'X' + doo(0xb6) + 'N'; + o1['_clippingPlanes'][dol(0x1ac)](oa); + } else if (nJ['toUpperCase']() == 'Y' + doo(0xb7) + 'N') { + var o8 = o0['y'] * -nK / 0x2; + if (nZ) { + o8 = cs['clippingRange']['ymin'] - o0['y'] / 0x2 * (nK + 0x1); + } + for (var o9 = 0x0; o9 < o1['_clippingPlanes']['length']; ++o9) { + var oa = o1['_clippingPlanes']['get'](o9); + if (oa['types'] == 'Y' + doo(0xb8) + 'N') { + if (nK != -0x1) { + oa['distance'] = o8; + } else { + oa['distance'] = nZ ? cs['clippingRange']['ymin'] : o0['y']; + } + o3(); + cs['viewer']['scene']['requestRender'](); + return; + } + } + var oa = new Cesium['ClippingPlane'](new Cesium['Cartesian3'](0x0,0x1,0x0),o8); + oa['types'] = 'Y' + doo(0xb9) + 'N'; + o1['_clippingPlanes']['add'](oa); + } else if (nJ['toUpperCase']() == 'Z' + doo(0xba) + 'N') { + var o8 = o0['z'] * -nK; + if (nZ) { + o8 = cs[dol(0x1ad)]['zmin'] + -o0['z'] * nK; + } + for (var o9 = 0x0; o9 < o1['_clippingPlanes']['length']; ++o9) { + var oa = o1['_clippingPlanes']['get'](o9); + if (oa['types'] == 'Z' + doo(0xbb) + 'N') { + if (nK != -0x1) { + oa['distance'] = o8 / 0x2; + } else { + oa['distance'] = nZ ? cs['clippingRange']['zmin'] : o0['z']; + } + o3(); + cs['viewer']['scene']['requestRender'](); + return; + } + } + var oa = new Cesium['ClippingPlane'](new Cesium['Cartesian3'](0x0,0x0,0x1),o8 / 0x2); + oa['types'] = 'Z' + doo(0xbc) + 'N'; + o1['_clippingPlanes']['add'](oa); + } else if (nJ['toUpperCase']() == 'X' + doo(0xbd) + 'X') { + var o8 = o0['x'] * nK / 0x2; + if (nZ) { + o8 = o0['x'] / 0x2 * (nK + 0x1) + (cs['clippingRange']['xmax'] + -o0['x']); + } + for (var o9 = 0x0; o9 < o1['_clippingPlanes']['length']; ++o9) { + var oa = o1['_clippingPlanes']['get'](o9); + if (oa['types'] == 'X' + doo(0xbe) + 'X') { + if (nK != 0x1) { + oa['distance'] = o8; + } else { + oa['distance'] = nZ ? cs['clippingRange']['xmax'] : o0['x']; + } + o3(); + cs['viewer']['scene']['requestRender'](); + return; + } + } + var oa = new Cesium['ClippingPlane'](new Cesium['Cartesian3'](-0x1,0x0,0x0),o8); + oa['types'] = 'X' + doo(0xbf) + 'X'; + o1['_clippingPlanes']['add'](oa); + } else if (nJ['toUpperCase']() == 'Y' + doo(0xc0) + 'X') { + var o8 = o0['y'] * nK / 0x2; + if (nZ) { + o8 = o0['y'] / 0x2 * (nK + 0x1) + (cs['clippingRange']['ymax'] + -o0['y']); + } + for (var o9 = 0x0; o9 < o1['_clippingPlanes']['length']; ++o9) { + var oa = o1['_clippingPlanes'][dol(0x1ae)](o9); + if (oa['types'] == 'Y' + doo(0xc1) + 'X') { + if (nK != 0x1) { + oa['distance'] = o8; + } else { + oa['distance'] = nZ ? cs['clippingRange']['ymax'] : o0['y']; + } + o3(); + cs['viewer']['scene']['requestRender'](); + return; + } + } + var oa = new Cesium['ClippingPlane'](new Cesium['Cartesian3'](0x0,-0x1,0x0),o8); + oa['types'] = 'Y' + doo(0xc2) + 'X'; + o1['_clippingPlanes']['add'](oa); + } else if (nJ['toUpperCase']() == 'Z' + doo(0xc3) + 'X') { + var o8 = o0['z'] * nK; + if (nZ) { + o8 = o0['z'] * nK + (cs[dol(0x1af)][dol(0x1b0)] + -o0['z']); + } + for (var o9 = 0x0; o9 < o1['_clippingPlanes']['length']; ++o9) { + var oa = o1['_clippingPlanes'][dol(0x1b1)](o9); + if (oa['types'] == 'Z' + doo(0xc4) + 'X') { + if (nK != 0x1) { + oa['distance'] = o8 / 0x2; + } else { + oa['distance'] = nZ ? cs['clippingRange']['zmax'] : o0['z']; + } + o3(); + cs['viewer']['scene']['requestRender'](); + return; + } + } + var oa = new Cesium['ClippingPlane'](new Cesium['Cartesian3'](0x0,0x0,-0x1),o8 / 0x2); + oa['types'] = 'Z' + doo(0xc5) + 'X'; + o1['_clippingPlanes']['add'](oa); + } + var ox = Cesium['Matrix4']['inverse'](o1['clippingPlanesOriginMatrix'], new Cesium['Matrix4']()); + o1['_clippingPlanes']['modelMatrix'] = Cesium['Transforms']['eastNorthUpToFixedFrame'](nU['center']); + o1['_clippingPlanes']['modelMatrix'] = Cesium['Matrix4']['multiply'](ox, o1['_clippingPlanes']['modelMatrix'], new Cesium[(dol(0x1b2))]()); + } + }); + cs['viewer']['scene'][dol(0x1b3)](); + } catch (oy) { + aCe('错' + doo(0xc6) + ':' + oy); + } + }, + 'closeClip': function(oz) { + try { + + if (cs['clippingRange'] == undefined) { + if (Cesium[dol(0x1b4)](oz)) { + var oA = cs['m_model']['get'](oz['toString']()); + if (!isEmpty(oA['_clippingPlanes'])) { + oA['_clippingPlanes']['removeAll'](); + oA['_clippingPlanes'] = undefined; + } + } else { + cs['m_model']['forEach'](function(oA, oC) { + if (!isEmpty(oA['_clippingPlanes'])) { + oA['_clippingPlanes']['removeAll'](); + oA['_clippingPlanes'] = undefined; + } + }); + } + } + var oD = cs['Plugin']['initClippingSystem'](cs); + if (Cesium['defined'](cs['ClipingPlaneBySpaceMap']) && Cesium['defined'](oz) && cs['ClipingPlaneBySpaceMap']['has'](oz['toString']())) { + var oE = cs[dol(0x1b5)]['get'](oz[dol(0x1b6)]()); + oD['remove'](oE); + cs['ClipingPlaneBySpaceMap']['delete'](oz['toString']()); + } + cs['viewer']['scene']['requestRender'](); + } catch (oF) { + aCe('错' + doo(0xc7) + ':' + oF); + } + }, + 'clipBySpace': function(oG, oH, oI, oJ) { + + if (!isEmpty(oG)) { + if (cs['m_model']['get'](oG['toString']()) === undefined) { + throw doj(0x4e); + } + cs['tileset'] = cs['m_model']['get'](oG['toString']()); + } + var oK = cs['Plugin']['initClippingSystem'](cs); + var oL = Math['random']()['toString']()[dol(0x1b7)](0x2); + if (!Cesium['defined'](cs['ClipingPlaneBySpaceMap'])) { + cs['ClipingPlaneBySpaceMap'] = new Map(); + } + if (cs['ClipingPlaneBySpaceMap'][dol(0x1b8)](oG['toString']())) { + oL = cs['ClipingPlaneBySpaceMap']['get'](oG['toString']()); + } else { + cs[dol(0x1b9)]['set'](oG, oL); + oK['add']({ + 'id': oL, + 'tags': oG + }); + oK['setVisible'](oL, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + } + var oM = Cesium['Cartesian3']['fromArray'](oH) + , oN = Cesium['Cartesian3']['fromArray'](oI); + var oO = cs[dol(0x1ba)]['convertModelToWorld'](oM['x'], oM['y'], oM['z'], oG); + var oP = cs[dol(0x1bb)][dol(0x1bc)](oN['x'], oN['y'], oN['z'], oG); + oK['setClipByMinimaxPoints'](oL, oO, oP, oJ); + return oL; + }, + 'clipByPath': function(oQ, oR, oS, oT) { + try { + var oU = function(oR) { + var oW = []; + if (Array['isArray'](oR) && oR['length'] % 0x3 == 0x0) { + oW = Cesium['Cartesian3']['fromRadiansArrayHeights'](oR); + } else { + throw doj(0x4f); + } + return oW; + }; + var oX = function(oY, oZ, p0) { + var p1 = Math[dol(0x1bd)](oY, oZ); + var p2 = Math['max'](oY, oZ); + return Math['min'](Math['max'](p0, p1), p2); + }; + let p3 = function(p4, p5) { + var p6 = new Cesium['Cartesian3'](); + var p7 = p4['evaluate'](p5); + for (let p8 = 0x0; p8 < p4['_times']['length']; p8++) { + if (p4['_times'][p8] > p5) { + let p9 = p4['evaluate'](p4['_times'][p8]); + Cesium[dol(0x1be)]['subtract'](p9, p7, p6); + break; + } + } + if (Cesium['Cartesian3']['equals'](p6, Cesium['Cartesian3']['ZERO'])) { + let pa = p4['evaluate'](p4['_times'][p4['_times']['length'] - 0x2]); + Cesium['Cartesian3']['subtract'](p7, pa, p6); + } + Cesium['Cartesian3']['normalize'](p6, p6); + return p6; + }; + var pb = oU(oR); + if (pb['length'] < 0x2) { + return; + } + var pc = 0x0; + var pd = [0x0]; + for (var pe = 0x0; pe < pb['length'] - 0x1; pe++) { + var pf = pb[pe]; + var pg = pb[pe + 0x1]; + var ph = Cesium['Cartesian3']['distance'](pf, pg); + pc += ph; + pd['push'](pc); + } + oS = oX(0x0, 0x64, oS); + var pi = new Cesium['LinearSpline']({ + 'times': pd, + 'points': pb + }); + var pj = oS / 0x64 * pc; + var pk = pi['evaluate'](pj); + var pl = p3(pi, pj); + var pm = new Cesium['Cartesian3'](pk['x'],pk['y'],pk['z']); + var pn = '#' + doo(0xc8) + '0'; + var po = ![]; + var pp = Cesium['Matrix4']['fromTranslation'](pm); + cs[dol(0x1bf)]['forEach'](function(pq, pr) { + if (oQ['indexOf'](pq['id']) > -0x1) { + if (isEmpty(pq[dol(0x1c0)])) { + pq['_clippingPlanes'] = new Cesium[(dol(0x1c1))]({ + 'planes': [new Cesium[(dol(0x1c2))](pl,0x0)], + 'edgeColor': pn == undefined ? Cesium['Color']['RED'] : Cesium[dol(0x1c3)]['fromCssColorString'](pn), + 'edgeWidth': po ? 0x2 : 0x0, + 'unionClippingRegions': oT + }); + } else { + var ps = pq[dol(0x1c4)]['get'](0x0); + if (!ps) { + ps = new Cesium['ClippingPlane'](pl,0x0); + pq['_clippingPlanes']['add'](ps); + } else { + ps['normal'] = pl; + } + pq['_clippingPlanes']['edgeColor'] = pn == undefined ? Cesium['Color'][dol(0x1c5)] : Cesium['Color']['fromCssColorString'](pn); + pq['_clippingPlanes']['edgeWidth'] = po ? 0x2 : 0x0; + pq['_clippingPlanes']['unionClippingRegions'] = oT; + } + pq['_clippingPlanes']['modelMatrix'] = pp; + var pt = Cesium['Matrix4']['inverse'](pq['clippingPlanesOriginMatrix'], new Cesium['Matrix4']()); + pq['_clippingPlanes']['modelMatrix'] = Cesium['Matrix4']['multiply'](pt, pq['_clippingPlanes']['modelMatrix'], new Cesium['Matrix4']()); + } + }); + cs['viewer']['scene']['requestRender'](); + } catch (pu) { + aCe('错' + doo(0xc9) + ':' + pu); + } + }, + 'modelsBlow': function(pv, pw) { + if (cs['isMobile']()) { + aCe('手' + doo(0xca) + '!'); + return; + } + + var px = []; + var py = []; + var pz = new Cesium['Cartesian3'](); + var pA = new Cesium['Cartesian3'](-Infinity,-Infinity,-Infinity); + var pB = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + if (!Cesium[dol(0x1c6)](cs['modelsBlowStepMap'])) + cs['modelsBlowStepMap'] = new Map(); + if (!isEmpty(pw) && pw['length'] > 0x0) { + if (!Array[dol(0x1c7)](pw)) + pw = [pw]; + px = pw; + for (var pC = 0x0; pC < pw['length']; pC++) { + var pD = pw[pC]; + if (cs['m_model']['get'](pD['toString']()) === undefined) { + throw doj(0x50); + } + var pE = cs['m_model']['get'](pD['toString']()); + py['push'](pE); + if (cs['modelsBlowStepMap']['has'](pD['toString']())) { + var pF = cs[dol(0x1c8)][dol(0x1c9)](pD['toString']()); + cs['modelsBlowStepMap'][dol(0x1ca)](pD['toString'](), pF + Number(pv)); + } else { + cs['modelsBlowStepMap']['set'](pD['toString'](), Number(pv)); + } + } + } else { + var pG = cs['Model']['getLoadedList'](); + if (pG && pG[dol(0x1cb)] > 0x0) { + pG['forEach']( (pH, pI) => { + var pE = pH; + py['push'](pE); + var pK = new Cesium['Cartesian3'](); + pE['tilesetoutline']['boundingsphere']['center']['clone'](pK); + var pL = new Cesium['Matrix4'](); + var pM = new Cesium['Matrix4'](); + pE['root'][dol(0x1cc)]['clone'](pM); + Cesium['Matrix4']['inverse'](pM, pL); + Cesium['Matrix4']['multiplyByPoint'](pL, pK, pK); + Cesium['Cartesian3']['maximumByComponent'](pK, pA, pA); + Cesium['Cartesian3']['minimumByComponent'](pK, pB, pB); + var pD = pE['id']; + px[dol(0x1cd)](pD); + if (cs['modelsBlowStepMap']['has'](pD['toString']())) { + var pF = cs['modelsBlowStepMap']['get'](pD['toString']()); + cs['modelsBlowStepMap']['set'](pD['toString'](), pF + Number(pv)); + } else { + cs['modelsBlowStepMap'][dol(0x1ce)](pD['toString'](), Number(pv)); + } + } + ); + } else { + throw doj(0x51); + } + } + var pP = cs['Plugin']['initClippingSystem'](); + for (var pD of cs['modelsBlowStepMap']['keys']()) { + var pR = 'c' + doo(0xcb) + '_' + pD; + if (cs['modelsBlowStepMap']['get'](pD) !== 0x0) { + pP['remove'](pR, !![]); + } else { + var pS = cs[dol(0x1cf)]['get'](pD['toString']()); + var pT = Cesium['defined'](pS['root']) && Cesium[dol(0x1d0)](pS['root']['_header']) && Cesium['defined'](pS[dol(0x1d1)]['_header']['clipBox']) ? pS['root']['_header'][dol(0x1d2)] : undefined; + var pU = Cesium['defined'](pS['root']) && Cesium['defined'](pS['root']['_header']) && Cesium[dol(0x1d3)](pS['root']['_header']['initClipBox']) ? pS['root']['_header']['initClipBox'] : pT; + var pV = !!pS['root']['_header'] && !!pS['root'][dol(0x1d4)]['initStrictClip']; + var pW = !Cesium['defined'](pV) ? cs['defaults'][dol(0x1d5)] : pV; + if (pU != undefined) { + pP['add']({ + 'id': pR, + 'tags': pD, + 'initClipBox': pU, + 'isInitModelClipBox': !![], + 'isStrict': pW + }); + pP['setVisible'](pR, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + } + } + } + var pz = cs['Model']['getModelsCenter'](pw)['center']; + var pY = Cesium['Transforms']['eastNorthUpToFixedFrame'](pz); + var pZ = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](pY, pZ); + Cesium['Matrix4']['multiplyByPoint'](pZ, pz, pz); + cs['funcPublic']['drawPointByCartesian3'](pz, cs['viewer'], Cesium[dol(0x1d6)]['RED'], 0x14); + if (py['length'] > 0x0) { + for (var q0 = 0x0; q0 < py['length']; ++q0) { + var pE = py[q0]; + cs['funcPublic']['getAllTiles'](pE, function(q2) { + for (var q3 = 0x0; q3 < q2['length']; ++q3) { + var q4 = q2[q3]; + var q5 = q4['_content']; + if (!Cesium['defined'](q5) || !Cesium['defined'](q5['_batchTable'])) { + continue; + } + var q6 = q5['featuresLength']; + var pS = q5['_model']; + q5['_batchTable']['_properties']['newMaxPoint'] = cs['funcPublic']['copyArr'](q5['_batchTable']['_properties']['maxPoint']); + q5['_batchTable']['_properties']['newMinPoint'] = cs['funcPublic']['copyArr'](q5['_batchTable']['_properties']['minPoint']); + var q8 = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number[dol(0x1d7)],-Number['MAX_VALUE']) + , q9 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + for (var qa = 0x0; qa < q6; qa++) { + var qb = cs['funcPublic']['GetFeatureMaxMinPoint'](q5, qa, cs, !![]); + var qc = qb[0x0]; + var qd = qb[0x1]; + midpos = Cesium['Cartesian3']['midpoint'](qc, qd, new Cesium['Cartesian3']()); + Cesium['Matrix4'][dol(0x1d8)](pE['root']['transform'], midpos, midpos); + Cesium['Matrix4']['multiplyByPoint'](pZ, midpos, midpos); + var qe = Cesium['Cartesian3']['subtract'](midpos, pz, new Cesium['Cartesian3']()); + var qf = Cesium['Matrix4']['IDENTITY']['clone'](); + var qg = new Cesium['Cartesian3'](qe['x'] * (pv * 0x1),qe['y'] * (pv * 0x1),qe['z'] * (pv * 0x1)); + Cesium['Matrix4']['fromTranslation'](qg, qf); + var qh = Cesium['Cartesian3']['fromArray'](q5['_batchTable']['_properties']['maxPoint'][qa]); + var qi = Cesium['Cartesian3']['fromArray'](q5['_batchTable']['_properties']['minPoint'][qa]); + var qj = q5['_batchTable']['getBatchIdMatrix'](qa); + qf = Cesium['Matrix4']['multiplyTransformation'](qf, qj, new Cesium['Matrix4']()); + q5['_batchTable']['setBatchIdMatrix'](qa, qf); + var qk = Cesium['Matrix4']['multiplyByPoint'](qf, qh, new Cesium['Cartesian3']()); + var ql = Cesium['Matrix4']['multiplyByPoint'](qf, qi, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['pack'](qk, q5['_batchTable']['_properties']['newMaxPoint'][qa]); + Cesium[dol(0x1d9)]['pack'](ql, q5['_batchTable']['_properties']['newMinPoint'][qa]); + q8 = Cesium['Cartesian3']['maximumByComponent'](q8, qk, new Cesium['Cartesian3']()); + q8 = Cesium['Cartesian3']['maximumByComponent'](q8, ql, new Cesium['Cartesian3']()); + q9 = Cesium['Cartesian3']['minimumByComponent'](q9, qk, new Cesium['Cartesian3']()); + q9 = Cesium['Cartesian3']['minimumByComponent'](q9, ql, new Cesium['Cartesian3']()); + } + var qm = new Cesium['BoundingSphere'](); + var qn = new Cesium['Cartesian3'](); + var qo = new Cesium['Cartesian3'](); + var qp = new Cesium['Cartesian3'](); + var qq = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], q8, qn); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], q9, qo); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], qn, qp); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], qo, qq); + var qr = [qp, qq]; + Cesium['BoundingSphere']['fromPoints'](qr, qm); + var qs = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](pS['_nodeCommands'][0x0]['command']['_boundingVolume'], qs); + Cesium['BoundingSphere']['union'](qm, qs, pS['_nodeCommands'][0x0][dol(0x1da)]['_boundingVolume']); + pS['_nodeCommands'][0x0]['dirty'] = !![]; + q4['updateBoundingVolume'](qo, qn); + pS['_nodeCommands'][0x0]['command']['debugShowBoundingVolume'] = ![]; + pS['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + }); + } + } + cs['viewer']['scene']['requestRender'](); + }, + 'drawGrid': function(qt, qu, qv, qw) { + try { + + if (!isEmpty(qt)) { + if (cs['m_model']['get'](qt['toString']()) === undefined) { + throw doj(0x52); + } + cs['tileset'] = cs['m_model']['get'](qt['toString']()); + } + for (var qx = 0x0; qx < cf['length']; qx++) { + cs['viewer']['entities']['remove'](cf[qx]); + } + for (var qx = 0x0; qx < cg['length']; qx++) { + cs['viewer']['scene']['primitives']['remove'](cg[qx]); + } + cf = []; + cg = []; + if (isEmpty(qw)) + qw = ![]; + var qz = cs['tileset'][dol(0x1db)]['transform']; + var qA = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + for (var qx = 0x0, qC = qu['length']; qx < qC; qx++) { + var qD = qu[qx]['MultiGridOutput']; + var qE = qu[qx]['LevelName']; + var qF = qu[qx][dol(0x1dc)]; + if (qv == qE) { + aCe(qE); + for (var q = 0x0, qH = qD['MultiGridS']['length']; q < qH; q++) { + var qI = qD['MultiGridS'][q]; + var qJ = qD['MultiGridS'][q]['LabelName']; + var qK = qI['GridOutput']['Line']; + if (qK['length'] > 0x0) { + for (var qL = 0x0; qL < qK[dol(0x1dd)]; qL++) { + var qM = qK[qL]; + var qN = new Cesium['Cartesian3'](qM['StartPoint']['X'],qM['StartPoint']['Y'],0x0); + if (qN) { + Cesium['Matrix4']['multiplyByPoint'](qz, qN, qN); + Cesium['Matrix4']['multiplyByPoint'](qA, qN, qN); + } + var qO = new Cesium['Cartesian3'](qM['EndPoint']['X'],qM['EndPoint']['Y'],0x0); + if (qO) { + Cesium['Matrix4']['multiplyByPoint'](qz, qO, qO); + Cesium['Matrix4']['multiplyByPoint'](qA, qO, qO); + } + r9(qN, qO, qF, cs['viewer']); + if (qw) { + rg(qM['LabelName'], qN, qF); + } + } + } + var qP = qI[dol(0x1de)]['Arc']; + if (qP['length'] > 0x0) { + for (var qL = 0x1; qL < qP['length']; qL++) { + var qR = qP[qL]; + var qS = new Cesium['Cartesian3'](qR['CenterPoint']['X'],qR['CenterPoint']['Y'],0x0); + if (qS) { + Cesium['Matrix4']['multiplyByPoint'](qz, qS, qS); + Cesium['Matrix4']['multiplyByPoint'](qA, qS, qS); + } + var qN = new Cesium['Cartesian3'](qR['StartPoint']['X'],qR['StartPoint']['Y'],0x0); + if (qN) { + Cesium['Matrix4']['multiplyByPoint'](qz, qN, qN); + Cesium['Matrix4']['multiplyByPoint'](qA, qN, qN); + } + var qO = new Cesium['Cartesian3'](qR['EndPoint']['X'],qR['EndPoint']['Y'],0x0); + if (qO) { + Cesium['Matrix4']['multiplyByPoint'](qz, qO, qO); + Cesium['Matrix4']['multiplyByPoint'](qA, qO, qO); + } + rm(qS, qR['Radius'], qR['StartAngle'], qR['EndAngle'], qN, qO, qF); + if (qw) { + rg(qR['LabelName'], qN, qF); + } + } + } + var qV = qI['GridOutput']['Ellipse']; + if (qV['length'] > 0x0) { + aCe(qV['length']); + } + } + var qW = qu[qx]['GridOutput']; + var qK = qW['Line']; + if (qK['length'] > 0x0) { + for (var qL = 0x0; qL < qK[dol(0x1df)]; qL++) { + var qM = qK[qL]; + var qN = new Cesium['Cartesian3'](qM['StartPoint']['X'],qM['StartPoint']['Y'],0x0); + if (qN) { + Cesium['Matrix4'][dol(0x1e0)](qz, qN, qN); + Cesium['Matrix4']['multiplyByPoint'](qA, qN, qN); + } + var qO = new Cesium['Cartesian3'](qM['EndPoint']['X'],qM['EndPoint']['Y'],0x0); + if (qO) { + Cesium['Matrix4']['multiplyByPoint'](qz, qO, qO); + Cesium['Matrix4']['multiplyByPoint'](qA, qO, qO); + } + r9(qN, qO, qF); + if (qw) { + rg(qM['LabelName'], qN, qF); + } + } + } + var qP = qW['Arc']; + if (qP['length'] > 0x0) { + for (var qL = 0x0; qL < qP['length']; qL++) { + var qR = qP[qL]; + var qS = new Cesium['Cartesian3'](qR['CenterPoint']['X'],qR['CenterPoint']['Y'],0x0); + if (qS) { + Cesium['Matrix4']['multiplyByPoint'](qz, qS, qS); + Cesium['Matrix4']['multiplyByPoint'](qA, qS, qS); + } + var qN = new Cesium['Cartesian3'](qR['StartPoint']['X'],qR['StartPoint']['Y'],0x0); + if (qN) { + Cesium['Matrix4'][dol(0x1e1)](qz, qN, qN); + Cesium['Matrix4']['multiplyByPoint'](qA, qN, qN); + } + var qO = new Cesium['Cartesian3'](qR['EndPoint']['X'],qR['EndPoint']['Y'],0x0); + if (qO) { + Cesium['Matrix4']['multiplyByPoint'](qz, qO, qO); + Cesium['Matrix4']['multiplyByPoint'](qA, qO, qO); + } + rm(qS, qR['Radius'], qR['StartAngle'], qR['EndAngle'], qN, qO, qF); + if (qw) { + rg(qR['LabelName'], qN, qF); + } + } + } + var qV = qW['Ellipse']; + if (qV['length'] > 0x0) { + aCe(qV['length']); + } + } + } + cs[dol(0x1e2)]['scene']['requestRender'](); + function r9(qN, qO, qF) { + var rd = cs['funcPublic']['cartesian3ToCartographic'](qN, cs['viewer']); + rd['height'] = Number(qF); + qN = cs['funcPublic']['cartographicToCartesian3'](rd, cs['viewer']); + var rd = cs['funcPublic']['cartesian3ToCartographic'](qO, cs['viewer']); + rd['height'] = Number(qF); + qO = cs['funcPublic'][dol(0x1e3)](rd, cs['viewer']); + var rf = cs['viewer']['entities']['add']({ + 'polyline': { + 'show': !![], + 'positions': [qN, qO], + 'material': new Cesium[(dol(0x1e4))]({ + 'color': Cesium['Color']['YELLOW'] + }), + 'width': 0x3 + } + }); + cf['push'](rf); + } + function rg(rh, ri, qF) { + var rk = cs['funcPublic']['cartesian3ToCartographic'](ri, cs['viewer']); + rk['height'] = Number(qF); + ri = cs['funcPublic']['cartographicToCartesian3'](rk, cs[dol(0x1e5)]); + var rl = cs['viewer']['entities']['add']({ + 'position': ri, + 'label': { + 'text': rh, + 'fillColor': Cesium['Color']['WHITE'], + 'outlineColor': Cesium['Color']['BLACK'], + 'showBackground': ![], + 'style': Cesium['LabelStyle']['FILL'], + 'outlineWidth': 0x3, + 'scaleByDistance': !![], + 'font': '1' + doo(0xcc) + 'f', + 'scaleByDistance': new Cesium['NearFarScalar'](0x3e8,0x1,0xc3500,0.5), + 'pixelOffset': new Cesium['Cartesian2'](0x0,-0xf), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'], + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'] + } + }); + cf['push'](rl); + } + function rm(rn, ro, rp, rq, qN, qO, qF) { + var ru = rw(rn, ro, Cesium['Math']['toDegrees'](rp), Cesium['Math']['toDegrees'](rq), qF); + var rv = cs['viewer']['scene']['primitives']['add'](rQ(ru)); + cg['push'](rv); + } + function rw(rx, ry, rz, rA, rB) { + var rC = []; + var rD = cs['funcPublic']['cartesian3ToCartographic'](rx, cs['viewer']); + var rE = rH(rD); + if (rz > rA) + rA = 0x168 + rA; + for (var qx = rz; qx < rA; qx++) { + var rG = new Cesium['Cartographic'](); + rG['longitude'] = ry * Math['cos'](qx * Math['PI'] / 0xb4) * rE[0x0] + rD['longitude']; + rG['latitude'] = ry * Math['sin'](qx * Math['PI'] / 0xb4) * rE[0x1] + rD['latitude']; + rG['height'] = rB; + rC['push'](Cesium['Cartographic']['toCartesian'](rG)); + } + return rC; + } + function rH(rI) { + var rJ = Cesium['clone'](rI, !![]); + rJ['latitude'] += 1e-7; + var rK = new Cesium['EllipsoidGeodesic'](); + var qx = Cesium['clone'](rJ, !![]); + qx['longitude'] += 0.001; + rK['setEndPoints'](rJ, qx); + var rM = 0.001 / rK['surfaceDistance']; + var q = new Cesium['EllipsoidGeodesic'](); + var rO = Cesium['clone'](rJ, !![]); + rO['latitude'] += 0.001; + q[dol(0x1e6)](rJ, rO); + var rP = 0.001 / q[dol(0x1e7)]; + return [rM, rP]; + } + function rQ(rR) { + var rS = new Cesium['Primitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': rR, + 'width': 0x2, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }), + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0xcd) + 'r', + 'uniforms': { + 'color': Cesium['Color']['YELLOW'] + } + } + }) + }) + }); + return rS; + } + ; + } catch (rT) { + aCe('错' + doo(0xce) + ':' + rT); + } + }, + 'clearGrid': function() { + try { + + for (var rU = 0x0; rU < cf['length']; rU++) { + cs['viewer']['entities']['remove'](cf[rU]); + } + for (var rU = 0x0; rU < cg['length']; rU++) { + cs['viewer']['scene']['primitives']['remove'](cg[rU]); + } + cf = []; + cg = []; + cs['viewer']['scene']['requestRender'](); + } catch (rW) { + aCe('错' + doo(0xcf) + ':' + rW); + } + }, + 'setMaxSpaceError': function(rX, rY) { + if (!isEmpty(rY)) { + if (cs['m_model']['get'](rY['toString']()) === undefined) { + throw doj(0x53); + } + cs['tileset'] = cs['m_model'][dol(0x1e8)](rY['toString']()); + var rZ = 0x2 * Math[dol(0x1e9)](0.5 * Math['PI'] / 0x3); + var s0 = 0x3a9; + var s1 = 0x10 * rZ / s0; + cs['tileset']['maximumScreenSpaceError'] = s1 * cs['viewer']['canvas'][dol(0x1ea)] / (Number(rX) * rZ); + } else { + cs[dol(0x1eb)]['forEach'](function(s2, s3) { + var rZ = 0x2 * Math['tan'](0.5 * Math['PI'] / 0x3); + var s0 = 0x3a9; + var s1 = 0x10 * rZ / s0; + s2['maximumScreenSpaceError'] = s1 * cs['viewer']['canvas']['height'] / (Number(rX) * rZ); + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'setVisualRange': function(s7, s8) { + if (!isEmpty(s8)) { + if (cs[dol(0x1ec)]['get'](s8['toString']()) === undefined) { + throw doj(0x54); + } + cs['tileset'] = cs['m_model']['get'](s8['toString']()); + var s9 = 0x2 * Math[dol(0x1ed)](0.5 * Math['PI'] / 0x3); + var sa = 0x3a9; + var sb = 0x10 * s9 / sa; + cs['tileset']['maximumScreenSpaceError'] = sb * cs['viewer']['canvas']['height'] / (Number(s7) * s9); + } else { + cs['m_model']['forEach'](function(sc, sd) { + var s9 = 0x2 * Math['tan'](0.5 * Math['PI'] / 0x3); + var sa = 0x3a9; + var sb = 0x10 * s9 / sa; + sc['maximumScreenSpaceError'] = sb * cs['viewer']['canvas']['height'] / (Number(s7) * s9); + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'getModelsCenter': function(sh) { + try { + if (Cesium['defined'](sh) && !Array[dol(0x1ee)](sh)) { + sh = [sh]; + } + var si = []; + cs['m_model']['forEach'](function(sj, sk) { + if (!Cesium['defined'](sh) || sh['indexOf'](sj['id']) > -0x1) { + if (sj['tilesetoutline']['boundingsphere'] != undefined) { + si['push'](sj); + } + } + }); + var sl = []; + var sm = new Cesium[(dol(0x1ef))](); + for (var sn = 0x0; sn < si['length']; sn++) { + var so = !isEmpty(si[sn]['modelMatrix']) ? new Cesium[(dol(0x1f0))]['clone'](si[sn]['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var sp = si[sn][dol(0x1f1)]['positions']; + for (var q = 0x0; q < sp['length'] / 0x3; q++) { + var sr = new Cesium['Cartesian3'](sp[q * 0x3],sp[q * 0x3 + 0x1],sp[q * 0x3 + 0x2]); + Cesium['Matrix4']['multiplyByPoint'](so, sr, sr); + sl['push'](cs['funcPublic'][dol(0x1f2)](sr, cs['viewer'])); + } + } + if (sl['length'] > 0x0) { + var ss = new Cesium['Cartographic'](-Infinity,-Infinity,-Infinity) + , su = new Cesium[(dol(0x1f3))](Infinity,Infinity,Infinity); + sl['forEach'](function(sv) { + ss['longitude'] = Math['max'](ss['longitude'], sv['longitude']); + ss['latitude'] = Math['max'](ss[dol(0x1f4)], sv['latitude']); + ss['height'] = Math['max'](ss['height'], sv['height']); + su['longitude'] = Math['min'](su[dol(0x1f5)], sv['longitude']); + su['latitude'] = Math['min'](su['latitude'], sv['latitude']); + su[dol(0x1f6)] = Math['min'](su['height'], sv['height']); + }); + var sw = cs['funcPublic'][dol(0x1f7)](ss, cs['viewer']); + var sz = cs['funcPublic'][dol(0x1f8)](su, cs[dol(0x1f9)]); + var sA = Cesium['Cartesian3']['subtract'](sw, sz, new Cesium['Cartesian3']()); + var sB = Cesium['Cartesian3']['midpoint'](sw, sz, new Cesium['Cartesian3']()); + var sC = Cesium['Cartesian3']['magnitude'](sA); + var sD = new Cesium['BoundingSphere'](sB,sC); + sD['maxpos'] = sw; + sD['minpos'] = sz; + sD[dol(0x1fa)] = si[0x0]['tilesetoutline']; + sD['PCenter'] = sm; + sD['obb'] = si[0x0]['root']['boundingVolume']['_orientedBoundingBox']; + return sD; + } + return undefined; + } catch (sE) { + aCe('错' + doo(0xd0) + ':' + sE); + } + }, + 'mapNavigator2D': function(sF, sG) { + try { + + if (!isEmpty(sF['modelId'])) { + if (cs['m_model']['get'](sF['modelId']['toString']()) === undefined) { + throw doj(0x55); + } + cs['tileset'] = cs[dol(0x1fb)][dol(0x1fc)](sF['modelId']['toString']()); + } + if (isEmpty(sF['div_3d'])) { + sF['div_3d'] = cs['defaults']['container']; + } + var sH; + if (!sF['cadEngineType'] || sF['cadEngineType'] == 0x0) { + sH = new PlanDrawing(sF,cs); + } else { + if (!cs['mGLE23D']) { + sH = new GLE23D(cs,sF); + cs['mGLE23D'] = sH; + } else { + sH = cs[dol(0x1fd)]; + } + } + if (!isEmpty(sG)) { + sG(sH); + } + } catch (sI) { + aCe('错' + doo(0xd1) + ':' + sI); + } + }, + 'initMapNavigator2D': function(sJ, sK) { + + var sL = sJ['tagName']; + var sM = sK['tagName']; + var sN = sJ['Model']['getModelsCenter'](); + var sO = sN[dol(0x1fe)]; + var sP = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], sP); + Cesium['Matrix4'][dol(0x1ff)](sP, sN['center'], sO); + var sQ = sN[dol(0x200)]['maximumHeight'] - sN['oldsphere']['minimumHeight'] * 0x1; + sO['z'] = sO['z'] - sQ / 0x2; + Cesium['Matrix4']['multiplyByPoint'](cs['tileset'][dol(0x201)][dol(0x202)], sO, sO); + sJ['Public']['drawPlane'](sO, 'g' + doo(0xd2) + '_' + sL, 0x1f4, 0x1f4); + var sR = sK['Model']['getModelsCenter']()['center']; + var sS = new Cesium[(dol(0x203))](); + Cesium['Matrix4']['multiplyByPoint'](sP, sR, sS); + sS['z'] = sS['z'] - sQ / 0x2; + Cesium[dol(0x204)]['multiplyByPoint'](cs['tileset']['root']['transform'], sS, sS); + sK['Public']['drawPlane'](sS, 'g' + doo(0xd3) + '_' + sM, 0x1f4, 0x1f4); + sJ['Public']['event']('W' + doo(0xd4) + 'L', function(sT) { + var sU = new Cesium['Cartesian3'](); + sJ['viewer']['camera']['rightWC'][dol(0x205)](sU); + sK['Label']['addImage'](sJ['viewer']['camera']['position'], sU, 'P' + doo(0xd5) + '_' + sM); + }); + sJ['Public']['event']('L' + doo(0xd6) + 'K', function(sV) { + sJ['Public']['pickupCoordinate'](sV['position'], function(sW) { + var sX = new Cesium['Cartesian3'](); + sJ['viewer']['camera']['rightWC']['clone'](sX); + sK['Label'][dol(0x206)](sW, sX, 'P' + doo(0xd7) + '_' + sM); + sK['Camera'][dol(0x207)](sW); + sJ['Camera'][dol(0x208)](sW); + }, 0x1); + }); + sJ[dol(0x209)]['event']('R' + doo(0xd8) + 'P', function(sY) { + var sZ = new Cesium['Cartesian3'](); + sJ['viewer']['camera']['rightWC']['clone'](sZ); + sK['Label'][dol(0x20a)](sJ['viewer']['camera']['position'], sZ, 'P' + doo(0xd9) + '_' + sM); + }); + sJ['viewer']['scene']['requestRender'](); + sK['viewer'][dol(0x20b)]['requestRender'](); + }, + 'closeMapNavigator2D': function(t0, t1) { + + var t2 = t0['tagName']; + var t3 = t1['tagName']; + t0[dol(0x20c)]['removePlane']('g' + doo(0xda) + '_' + t2); + t1[dol(0x20d)]['removePlane']('g' + doo(0xdb) + '_' + t3); + }, + 'buildingFlattenShader': function(t4) { + + if (cs['m_model']['get'](t4['toString']()) === undefined) { + throw doj(0x56); + } + var t5 = cs['m_model']['get'](t4['toString']()); + var t6 = cs['modelFlatten']['get'](t4['toString']()); + if (t6['size'] > 0x0) { + var t7 = Cesium['ContextLimits'][dol(0x20e)]; + var t8 = new Cesium[(dol(0x20f))](); + var t9 = 0x0; + t6['forEach'](function(ta, tb) { + t9 += 0x1; + t9 += ta['positions'][dol(0x210)]; + }); + t8['x'] = Math['min'](t9, t7); + t8['y'] = Math['ceil'](t9 / t8['x']); + t5['_uniforms']['flattenCount']['x'] = t8['x']; + t5['_uniforms']['flattenCount']['y'] = t8['y']; + t5['_uniforms']['flattenCount']['z'] = t6['size']; + var tc = new Float32Array(0x4 * t8['x'] * t8['y']); + let td = 0x0; + t6['forEach'](function(te, tf) { + tc[td + 0x0] = te['positions']['length']; + tc[td + 0x1] = te['height']; + tc[td + 0x2] = te['autoFlatten'] ? 0x1 : 0x0; + tc[td + 0x3] = 0x0; + for (let tg = 0x0; tg < te['positions']['length']; tg++) { + tc[td + tg * 0x4 + 0x4] = te['positions'][tg]['x']; + tc[td + tg * 0x4 + 0x5] = te['positions'][tg]['y']; + tc[td + tg * 0x4 + 0x6] = te['positions'][tg]['z']; + tc[td + tg * 0x4 + 0x7] = 0x0; + } + td += (te['positions'][dol(0x211)] + 0x1) * 0x4; + }); + t5['_uniforms']['flattenData'] = new Cesium['Texture']({ + 'context': cs['viewer'][dol(0x212)]['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': t8['x'], + 'height': t8['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': tc + } + }); + } else { + t5['_uniforms'][dol(0x213)] = new Cesium[(dol(0x214))]({ + 'context': cs[dol(0x215)]['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium[dol(0x216)]['NEAREST'], + 'flipY': ![] + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'removeFlatten': function(th, ti) { + + if (!isEmpty(th)) { + if (cs['m_model']['get'](th['toString']()) === undefined) { + throw doj(0x57); + } + var tj = cs['modelFlatten'][dol(0x217)](th['toString']()); + if (Cesium['defined'](ti)) { + tj['delete'](ti); + } else { + if (tj['size'] > 0x0) { + tj['clear'](); + } + } + cs['Model']['buildingFlattenShader'](th); + } else { + cs['m_model'][dol(0x218)](function(tk, tl) { + if (!tk['isBimModel']) { + var tj = cs['modelFlatten']['get'](tl[dol(0x219)]()); + if (Cesium[dol(0x21a)](ti)) { + tj['delete'](ti); + } else { + if (tj['size'] > 0x0) { + tj['clear'](); + } + } + cs['Model']['buildingFlattenShader'](tl['toString']()); + } + }); + } + }, + 'addFlatten': function(bb, tp) { + try { + + if (Cesium['defined'](bb[dol(0x21b)]) && bb['positions']['length'] > 0x2) { + var tq = []; + if (!isEmpty(tp)) { + if (cs['m_model']['get'](tp['toString']()) === undefined) { + throw doj(0x58); + } + cs['tileset'] = cs['m_model'][dol(0x21c)](tp['toString']()); + for (var tr = 0x0; tr < bb['positions'][dol(0x21d)]; tr++) { + var ts = new Cesium['Cartesian3'](0x0,0x0,0x0); + var tt = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset'][dol(0x21e)]['transform'], tt); + var tu = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][tr], cs[dol(0x21f)]); + Cesium['Matrix4'][dol(0x220)](Cesium['Matrix4']['inverse'](cs['tileset']['modelMatrix'], new Cesium['Matrix4']()), tu, ts); + Cesium['Matrix4'][dol(0x221)](tt, ts, ts); + tq['push'](ts); + } + var tv = cs['viewer']['scene']['globe']['ellipsoid']['cartesianToCartographic'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']())); + var tw = cs['modelFlatten']['get'](tp[dol(0x222)]()); + var tx = { + 'positions': tq, + 'autoFlatten': Cesium['defined'](bb['autoFlatten']) ? bb['autoFlatten'] : ![], + 'height': Cesium['defined'](bb['height']) ? bb['height'] - tv[dol(0x223)] : tq[0x0]['z'] + }; + tw['set'](Cesium['defined'](bb['id']) ? bb[dol(0x224)] : Cesium['createGuid'](), tx); + cs['Model']['buildingFlattenShader'](tp); + } else { + cs[dol(0x225)]['forEach'](function(ty, tz) { + tq = []; + for (var tr = 0x0; tr < bb['positions']['length']; tr++) { + var ts = new Cesium['Cartesian3'](0x0,0x0,0x0); + var tt = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](ty['root']['transform'], tt); + var tu = cs['funcPublic']['inputRadianToCartesian3'](bb[dol(0x226)][tr], cs['viewer']); + Cesium['Matrix4']['multiplyByPoint'](Cesium['Matrix4']['inverse'](ty['modelMatrix'], new Cesium['Matrix4']()), tu, ts); + Cesium[dol(0x227)]['multiplyByPoint'](tt, ts, ts); + tq['push'](ts); + } + var tv = cs['viewer']['scene']['globe']['ellipsoid']['cartesianToCartographic'](Cesium['Matrix4']['multiplyByPoint'](ty['root']['transform'], Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']())); + var tw = cs['modelFlatten']['get'](tz['toString']()); + var tx = { + 'positions': tq, + 'autoFlatten': Cesium['defined'](bb['autoFlatten']) ? bb['autoFlatten'] : ![], + 'height': Cesium['defined'](bb['height']) ? bb['height'] - tv['height'] : bb['positions'][0x0][0x2] + }; + tw['set'](Cesium['defined'](bb['id']) ? bb['id'] : Cesium['createGuid'](), tx); + cs['Model'][dol(0x228)](tz['toString']()); + }); + } + } + } catch (tH) { + throw tH; + } + }, + 'asyncAddFlatten': function(tI, tJ, tK) { + try { + if (!isEmpty(tJ)) { + if (cs['m_model']['get'](tJ['toString']()) === undefined) { + throw doj(0x59); + } + cs['tileset'] = cs['m_model']['get'](tJ['toString']()); + if (tI[dol(0x229)] > 0x0) { + cs['tileset']['asyncFlattenData'] = []; + cs['tileset']['asyncFlattenHeight'] = []; + for (var tL = 0x0; tL < tI['length']; tL++) { + var bb = tI[tL]; + var tN = !isEmpty(bb['sequence']) ? bb[dol(0x22a)] : tK; + if (Cesium['defined'](bb['positions']) && bb['positions']['length'] > 0x2) { + var tO = []; + for (var tP = 0x0; tP < bb['positions']['length']; tP++) { + var tQ = new Cesium['Cartesian3'](0x0,0x0,0x0); + var tR = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], tR); + var tS = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][tP], cs['viewer']); + if (tN) { + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], tS, tQ); + Cesium['Matrix4']['multiplyByPoint'](Cesium['Matrix4']['inverse'](cs['tileset']['modelMatrix'], new Cesium[(dol(0x22b))]()), tQ, tQ); + } else { + Cesium['Matrix4']['multiplyByPoint'](Cesium['Matrix4']['inverse'](cs['tileset']['modelMatrix'], new Cesium['Matrix4']()), tS, tQ); + } + Cesium['Matrix4']['multiplyByPoint'](tR, tQ, tQ); + tO['push'](tQ); + } + cs['tileset']['asyncFlattenData']['push'](tO); + cs['tileset']['asyncFlattenHeight']['push'](Cesium['defined'](bb['height']) ? Number(bb['height']) : Number(bb['positions'][0x0][0x2])); + } + } + } + } + } catch (tT) { + throw tT; + } + }, + 'buildingCutPartShader': function(tU) { + + if (cs[dol(0x22c)]['get'](tU['toString']()) === undefined) { + throw doj(0x5a); + } + var tV = cs['m_model']['get'](tU['toString']()); + var tW = cs['modelCutPart']['get'](tU['toString']()); + if (tW['size'] > 0x0) { + var tX = Cesium[dol(0x22d)]['maximumTextureSize']; + var tY = new Cesium['Cartesian2'](); + var tZ = 0x0; + tW['forEach'](function(u0, u1) { + tZ += 0x1; + tZ += u0['positions']['length']; + }); + tY['x'] = Math[dol(0x22e)](tZ, tX); + tY['y'] = Math['ceil'](tZ / tY['x']); + tV['_uniforms']['alphaCount']['x'] = tY['x']; + tV['_uniforms']['alphaCount']['y'] = tY['y']; + tV['_uniforms']['alphaCount']['z'] = tW['size']; + var u2 = new Float32Array(0x4 * tY['x'] * tY['y']); + let u3 = 0x0; + tW['forEach'](function(u4, u5) { + u2[u3 + 0x0] = u4['positions']['length']; + u2[u3 + 0x1] = u4['inverse'] ? 0x1 : 0x0; + u2[u3 + 0x2] = 0x0; + u2[u3 + 0x3] = 0x0; + for (let u6 = 0x0; u6 < u4['positions']['length']; u6++) { + u2[u3 + u6 * 0x4 + 0x4] = u4['positions'][u6]['x']; + u2[u3 + u6 * 0x4 + 0x5] = u4['positions'][u6]['y']; + u2[u3 + u6 * 0x4 + 0x6] = u4['positions'][u6]['z']; + u2[u3 + u6 * 0x4 + 0x7] = 0x0; + } + u3 += (u4['positions'][dol(0x22f)] + 0x1) * 0x4; + }); + tV['_uniforms']['alphaData'] = new Cesium['Texture']({ + 'context': cs[dol(0x230)]['scene']['context'], + 'pixelFormat': Cesium[dol(0x231)]['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': tY['x'], + 'height': tY['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': u2 + } + }); + } else { + tV['_uniforms']['alphaData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'removeCutPart': function(u7, u8) { + + if (!isEmpty(u7)) { + if (cs['m_model']['get'](u7['toString']()) === undefined) { + throw doj(0x5b); + } + var u9 = cs['modelCutPart']['get'](u7['toString']()); + if (Cesium[dol(0x232)](u8)) { + u9['delete'](u8); + } else { + if (u9['size'] > 0x0) { + u9['clear'](); + } + } + cs['Model']['buildingCutPartShader'](u7); + } else { + cs['m_model']['forEach'](function(ua, ub) { + var u9 = cs['modelCutPart']['get'](ub['toString']()); + if (Cesium['defined'](u8)) { + u9['delete'](u8); + } else { + if (u9['size'] > 0x0) { + u9['clear'](); + } + } + cs['Model']['buildingCutPartShader'](ub[dol(0x233)]()); + }); + } + }, + 'addCutPart': function(bb, ue) { + try { + + if (Cesium['defined'](bb['positions']) && bb['positions']['length'] > 0x2) { + var uf = []; + if (!isEmpty(ue)) { + if (cs['m_model']['get'](ue['toString']()) === undefined) { + throw doj(0x5c); + } + cs['tileset'] = cs['m_model']['get'](ue[dol(0x234)]()); + for (var ug = 0x0; ug < bb['positions']['length']; ug++) { + var uh = new Cesium['Cartesian3'](0x0,0x0,0x0); + var ui = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], ui); + var uj = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][ug], cs['viewer']); + Cesium['Matrix4']['multiplyByPoint'](Cesium['Matrix4']['inverse'](cs['tileset']['modelMatrix'], new Cesium[(dol(0x235))]()), uj, uh); + Cesium['Matrix4']['multiplyByPoint'](ui, uh, uh); + uf['push'](uh); + } + var uk = cs['modelCutPart']['get'](ue['toString']()); + var ul = { + 'positions': uf, + 'inverse': Cesium[dol(0x236)](bb['inverse']) ? bb['inverse'] : ![] + }; + uk['set'](Cesium['defined'](bb['id']) ? bb['id'] : Cesium['createGuid'](), ul); + cs['Model']['buildingCutPartShader'](ue); + } else { + cs['m_model']['forEach'](function(um, un) { + uf = []; + for (var ug = 0x0; ug < bb['positions']['length']; ug++) { + var uh = new Cesium['Cartesian3'](0x0,0x0,0x0); + var ui = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](um['root'][dol(0x237)], ui); + var uj = cs['funcPublic'][dol(0x238)](bb['positions'][ug], cs['viewer']); + Cesium['Matrix4'][dol(0x239)](Cesium['Matrix4']['inverse'](um['modelMatrix'], new Cesium['Matrix4']()), uj, uh); + Cesium['Matrix4']['multiplyByPoint'](ui, uh, uh); + uf['push'](uh); + } + var uk = cs[dol(0x23a)]['get'](un['toString']()); + var ul = { + 'positions': uf, + 'inverse': Cesium['defined'](bb['inverse']) ? bb['inverse'] : ![] + }; + uk['set'](Cesium['defined'](bb['id']) ? bb['id'] : Cesium['createGuid'](), ul); + cs['Model']['buildingCutPartShader'](un['toString']()); + }); + } + } + } catch (uv) { + throw uv; + } + }, + 'buildingCutCircleShader': function(uw) { + + if (cs[dol(0x23b)]['get'](uw['toString']()) === undefined) { + throw doj(0x5d); + } + var ux = cs['m_model']['get'](uw[dol(0x23c)]()); + var uy = cs['modelCutCircle']['get'](uw[dol(0x23d)]()); + if (uy['size'] > 0x0) { + var uz = Cesium['ContextLimits']['maximumTextureSize']; + var uA = 0x2; + var uB = new Cesium['Cartesian2'](); + uB['x'] = Math[dol(0x23e)](uy[dol(0x23f)] * uA, uz); + uB['y'] = Math[dol(0x240)](uy['size'] * uA / uB['x']); + ux['_uniforms']['circleCount']['x'] = uB['x']; + ux[dol(0x241)]['circleCount']['y'] = uB['y']; + ux['_uniforms']['circleCount']['z'] = uy['size']; + var uC = new Float32Array(0x4 * uB['x'] * uB['y']); + let uD = 0x0; + uy['forEach'](function(uE, uF) { + uC[uD * 0x4 * uA + 0x0] = uE['positions'][0x0]['x']; + uC[uD * 0x4 * uA + 0x1] = uE['positions'][0x0]['y']; + uC[uD * 0x4 * uA + 0x2] = uE['positions'][0x0]['z']; + uC[uD * 0x4 * uA + 0x3] = 0x0; + uC[uD * 0x4 * uA + 0x4] = uE['positions'][0x1]['x']; + uC[uD * 0x4 * uA + 0x5] = uE['positions'][0x1]['y']; + uC[uD * 0x4 * uA + 0x6] = uE['positions'][0x1]['z']; + uC[uD * 0x4 * uA + 0x7] = 0x0; + uD++; + }); + ux[dol(0x242)]['circleData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': uB['x'], + 'height': uB['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': uC + } + }); + } else { + ux['_uniforms']['circleData'] = new Cesium['Texture']({ + 'context': cs[dol(0x243)]['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': 0x1, + 'height': 0x1, + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![] + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'removeCutCircle': function(uG, uH) { + + if (!isEmpty(uG)) { + if (cs['m_model']['get'](uG['toString']()) === undefined) { + throw doj(0x5e); + } + var uI = cs['modelCutCircle']['get'](uG['toString']()); + if (Cesium[dol(0x244)](uH)) { + uI['delete'](uH); + } else { + if (uI[dol(0x245)] > 0x0) { + uI['clear'](); + } + } + cs['Model']['buildingCutCircleShader'](uG); + } else { + cs['m_model']['forEach'](function(uJ, uK) { + var uI = cs['modelCutCircle']['get'](uK['toString']()); + if (Cesium['defined'](uH)) { + uI['delete'](uH); + } else { + if (uI['size'] > 0x0) { + uI['clear'](); + } + } + cs['Model']['buildingCutCircleShader'](uK['toString']()); + }); + } + }, + 'addCutCircle': function(bb, uN) { + try { + + if (Cesium['defined'](bb['positions']) && bb['positions']['length'] == 0x2) { + var uO = []; + if (!isEmpty(uN)) { + if (cs[dol(0x246)]['get'](uN['toString']()) === undefined) { + throw doj(0x5f); + } + cs['tileset'] = cs['m_model']['get'](uN['toString']()); + for (var uP = 0x0; uP < bb['positions']['length']; uP++) { + var uQ = new Cesium['Cartesian3'](0x0,0x0,0x0); + var uR = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], uR); + var uS = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][uP], cs['viewer']); + Cesium['Matrix4'][dol(0x247)](Cesium['Matrix4']['inverse'](cs[dol(0x248)]['modelMatrix'], new Cesium['Matrix4']()), uS, uQ); + Cesium[dol(0x249)]['multiplyByPoint'](uR, uQ, uQ); + uO['push'](uQ); + } + var uT = cs['modelCutCircle']['get'](uN['toString']()); + var uU = { + 'positions': uO + }; + uT['set'](Cesium['defined'](bb['id']) ? bb['id'] : Cesium['createGuid'](), uU); + cs['Model']['buildingCutCircleShader'](uN); + } else { + cs['m_model']['forEach'](function(uV, uW) { + uO = []; + for (var uP = 0x0; uP < bb['positions']['length']; uP++) { + var uQ = new Cesium['Cartesian3'](0x0,0x0,0x0); + var uR = new Cesium[(dol(0x24a))](); + Cesium['Matrix4']['inverse'](uV['root']['transform'], uR); + var uS = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][uP], cs['viewer']); + Cesium['Matrix4']['multiplyByPoint'](Cesium['Matrix4']['inverse'](uV['modelMatrix'], new Cesium['Matrix4']()), uS, uQ); + Cesium['Matrix4']['multiplyByPoint'](uR, uQ, uQ); + uO['push'](uQ); + } + var uT = cs['modelCutCircle']['get'](uW['toString']()); + var uU = { + 'positions': uO + }; + uT['set'](Cesium['defined'](bb['id']) ? bb['id'] : Cesium['createGuid'](), uU); + cs['Model']['buildingCutCircleShader'](uW['toString']()); + }); + } + } + } catch (v3) { + throw v3; + } + }, + 'floorLayering': function(v4, v5, v6, v7) { + if (cs[dol(0x24b)]()) { + aCe('手' + doo(0xdc) + '!'); + return; + } + + if (Number(v6) === 0x0) { + if (!isEmpty(v7)) { + v7({ + 'isComplete': !![] + }); + } + return; + } + var v8 = cs['viewer'][dol(0x24c)]['_clock']['tick'](); + cs['viewer']['scene']['render'](v8); + if (!isEmpty(v4)) { + if (cs['m_model']['get'](v4['toString']()) === undefined) { + throw doj(0x60); + } + cs['tileset'] = cs['m_model']['get'](v4['toString']()); + } + var v9 = cs['HistoricalHierarchicalValue']['get'](v4['toString']()); + var va = cs['tileset']; + var vb = Cesium['defined'](va['root']) && Cesium['defined'](va['root']['_header']) && Cesium['defined'](va['root']['_header']['clipBox']) ? va['root']['_header']['clipBox'] : undefined; + var vc = Cesium[dol(0x24d)](va['root']) && Cesium['defined'](va['root']['_header']) && Cesium['defined'](va['root']['_header']['initClipBox']) ? va['root']['_header']['initClipBox'] : vb; + var vd = !!va['root']['_header'] && !!va['root']['_header']['initStrictClip']; + var ve = !Cesium['defined'](vd) ? cs['defaults']['isStrictClip'] : vd; + if (vc != undefined) { + var vf = cs['Plugin']['initClippingSystem'](); + var vg = 'c' + doo(0xdd) + '_' + v4; + if (!v9 && Number(v6) === 0x0 || v9 && v9['num'] + Number(v6) === 0x0) { + vf['add']({ + 'id': vg, + 'tags': v4, + 'initClipBox': vc, + 'isInitModelClipBox': !![], + 'isStrict': ve + }); + vf['setVisible'](vg, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + } else { + vf['remove'](vg, !![]); + } + } + var vh = []; + var vi = new Cesium[(dol(0x24e))](); + cs['tileset']['tilesetoutline']['boundingsphere']['center']['clone'](vi); + var vj = new Cesium['Matrix4'](); + var vk = new Cesium['Matrix4'](); + cs['tileset']['root'][dol(0x24f)]['clone'](vk); + Cesium['Matrix4']['inverse'](vk, vj); + Cesium['Matrix4'][dol(0x250)](vj, vi, vi); + vi['z'] = 0x0; + let vl = 0x0; + for (let vm = 0x0; vm < v5['length']; vm++) { + if (v5[vm]['floor'] != 'U' + doo(0xde) + 'd') { + var vn = cs['funcPublic']['splitFeatureId'](v5[vm]['glids']); + var vo = Cesium['Cartesian3']['midpoint'](new Cesium['Cartesian3'](v5[vm]['box'][0x3],v5[vm]['box'][0x4],v5[vm]['box'][0x5]), new Cesium['Cartesian3'](v5[vm]['box'][0x0],v5[vm]['box'][0x1],v5[vm]['box'][0x2]), new Cesium['Cartesian3']()); + var vp = 0x0; + for (var vq = 0x0; vq < vh[dol(0x251)]; vq++) { + vp = vp + vh[vq]['bigCenterPt']['z']; + } + var vr = v5[vm]['box'][0x2]; + var vs = 0x0; + if (vh['length'] == 0x0) { + vs = 0x0; + } else if (vr < vh[0x0]['box'][0x2]) { + vs = 0x0; + } else if (vr > vh[vh['length'] - 0x1]['box'][0x2]) { + vs = vh['length']; + } else { + for (var vt = 0x0; vt < vh['length']; vt++) { + if (vr == vh[vt]['box'][0x2]) { + vs = vt; + } + if (vr > vh[vt]['box'][0x2] && vr < vh[vt + 0x1]['box'][0x2]) { + vs = vt + 0x1; + } + } + } + vh['splice'](vs, 0x0, { + 'glids': vn, + 'id': v5[vm]['floor'], + 'bigCenterPt': vo, + 'CumulativeHeight': Math['ceil'](vp), + 'box': v5[vm]['box'] + }); + } else { + vl = vm; + } + } + if (vl) { + vh['push']({ + 'glids': [], + 'id': v5[vl]['floor'], + 'bigCenterPt': [], + 'CumulativeHeight': '', + 'box': v5[vl]['box'] + }); + } + var vu = 0x0; + var vv = 0x0; + cs['funcPublic']['getAllTiles'](cs['tileset'], vw => { + for (var vx = 0x0; vx < vw['length']; ++vx) { + var vy = vw[vx]; + if (vy['resetRegionArr']) + vy[dol(0x252)](); + var vz = vw[vx]['_content']; + if (!Cesium['defined'](vz) || !Cesium[dol(0x253)](vz['_batchTable'])) + continue; + var vA = vz['featuresLength']; + var va = vz['_model']; + var vC; + if (vz['_modelInstanceCollection'] != undefined) { + vC = !![]; + } else { + vC = va['isInstanced']; + } + ++vv; + var vD = []; + var vE = function(vF) { + vF = vF || 0x20; + var vG = doj(0x61); + var vH = vG['length']; + var vI = ''; + for (var vt = 0x0; vt < vF; vt++) { + vI += vG['charAt'](Math['floor'](Math['random']() * vH)); + } + return vI; + }; + var vK = vE(0x20); + if (!cs['BlowModels']) { + cs['BlowModels'] = {}; + } + cs['BlowModels'][vK] = { + 'model': va, + 'selfTile': vy, + 'content': vz + }; + Cesium['Cartesian3']['pack'](vi, vD); + var vL = { + 'content': vz['_batchTable']['_properties'], + 'isInstanced': vC, + 'featuresLength': vA, + 'stepval': v6, + 'modelCenterPOS': vD, + 'featureMap': vh, + 'modelKey': vK, + 'HistoricalHierarchicalValue': v9 ? v9['num'] : 0x0 + }; + Cesium['Model']['hierarchicalDataCalculation'](vL)['then'](function(vM) { + var vK = vM['modelKey']; + var vz = cs['BlowModels'][vK]['content']; + var vP = cs['BlowModels'][vK][dol(0x254)]; + vz['_batchTable']['setBatchIdsMatrix'](vM['batchsMap']); + vM[dol(0x255)]['forEach'](function(vQ, vK) { + var vS = cs['funcPublic']['GetFeatureMaxMinPoint'](vz, vK, cs, !![]); + var vT = vS[0x0]; + var vU = vS[0x1]; + var vV = Cesium['Matrix4']['multiplyByPoint'](vQ, vT, new Cesium['Cartesian3']()); + var vW = Cesium['Matrix4']['multiplyByPoint'](vQ, vU, new Cesium['Cartesian3']()); + var vX = [vV, vW]; + var vY = Cesium['Cartesian3']['midpoint'](vX[0x0], vX[0x1], new Cesium['Cartesian3']()); + if (vz['_modelInstanceCollection'] != undefined) { + vM = Cesium['Matrix4']['multiplyByPoint'](vz['_modelInstanceCollection']['modelMatrix'], vY, new Cesium['Cartesian3']()); + } else { + vM = Cesium['Matrix4']['multiplyByPoint'](vz['_contentModelMatrix'], vY, new Cesium['Cartesian3']()); + } + var vZ = Cesium['Cartesian3']['subtract'](vX[0x0], vX[0x1], new Cesium['Cartesian3']()); + var w0 = new Cesium['BoundingSphere'](vM,Cesium['Cartesian3']['maximumComponent'](vZ)); + var w1 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](va['_nodeCommands'][0x0][dol(0x256)]['_boundingVolume'], w1); + Cesium['BoundingSphere']['union'](w0, w1, va['_nodeCommands'][0x0]['command']['_boundingVolume']); + va['_nodeCommands'][0x0]['command']['dirty'] = !![]; + if (vz['_modelInstanceCollection'] != undefined) { + var w2 = Cesium['Matrix4']['multiplyByPoint'](vz['_modelInstanceCollection']['modelMatrix'], vX[0x0], new Cesium['Cartesian3']()); + var w3 = Cesium['Matrix4']['multiplyByPoint'](vz['_modelInstanceCollection']['modelMatrix'], vX[0x1], new Cesium['Cartesian3']()); + vP['updateBoundingVolume'](w3, w2); + } else { + var w2 = Cesium['Matrix4']['multiplyByPoint'](vz['_contentModelMatrix'], vX[0x0], new Cesium['Cartesian3']()); + var w3 = Cesium['Matrix4']['multiplyByPoint'](vz[dol(0x257)], vX[0x1], new Cesium['Cartesian3']()); + vP['updateBoundingVolume'](w3, w2); + } + }); + cs['viewer']['scene']['requestRender'](); + ++vu; + if (vu == vv) { + if (!isEmpty(v7)) { + v7({ + 'isComplete': !![] + }); + } + } + }); + } + cs['HistoricalHierarchicalValue']['set'](v4[dol(0x258)](), { + 'num': v9 ? v9['num'] + v6 : v6 + }); + } + ); + cs['viewer']['scene']['requestRender'](); + }, + 'restoreFloorLayering': function(w6) { + + if (!isEmpty(w6)) { + if (cs['m_model']['get'](w6['toString']()) === undefined) { + throw doj(0x62); + } + cs['tileset'] = cs['m_model']['get'](w6['toString']()); + } + var w7 = cs['tileset']; + var w8 = Cesium['defined'](w7['root']) && Cesium['defined'](w7[dol(0x259)]['_header']) && Cesium['defined'](w7['root']['_header']['clipBox']) ? w7['root']['_header']['clipBox'] : undefined; + var w9 = Cesium['defined'](w7['root']) && Cesium['defined'](w7[dol(0x25a)]['_header']) && Cesium['defined'](w7['root']['_header'][dol(0x25b)]) ? w7['root']['_header']['initClipBox'] : w8; + var wa = !!w7['root']['_header'] && !!w7['root']['_header']['initStrictClip']; + var wb = !Cesium['defined'](wa) ? cs['defaults']['isStrictClip'] : wa; + if (w9 != undefined) { + var wc = cs['Plugin']['initClippingSystem'](); + var wd = 'c' + doo(0xdf) + '_' + w6; + wc['add']({ + 'id': wd, + 'tags': w6, + 'initClipBox': w9, + 'isInitModelClipBox': !![], + 'isStrict': wb + }); + wc['setVisible'](wd, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + } + cs['funcPublic']['getAllTiles'](cs['tileset'], we => { + for (var wf = 0x0; wf < we[dol(0x25c)]; ++wf) { + var wg = we[wf]; + if (wg['resetRegionArr']) + wg['resetRegionArr'](); + var wh = we[wf]['_content']; + if (!Cesium['defined'](wh) || !Cesium[dol(0x25d)](wh[dol(0x25e)])) + continue; + var wi = wh[dol(0x25f)]; + var wj = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']) + , wk = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + for (var wl = 0x0; wl < wi; wl++) { + var wm = wh['_batchTable']['_properties']['batchId'][wl]; + wh['_batchTable']['setBatchIdMatrix'](wm, Cesium['Matrix4']['IDENTITY']); + var wn = cs['funcPublic']['GetFeatureMaxMinPoint'](wh, wl, cs, !![]); + var wo = new Cesium['Cartesian3'](-Infinity,-Infinity,-Infinity) + , wp = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + wo = Cesium['Cartesian3'][dol(0x260)](wo, wn[0x0], new Cesium['Cartesian3']()); + wp = Cesium[dol(0x261)]['minimumByComponent'](wp, wn[0x1], new Cesium['Cartesian3']()); + var wq = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([wo, wp], wq); + Cesium['BoundingSphere']['transform'](wq, wh[dol(0x262)], wq); + var wr = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](wh['_model']['_nodeCommands'][0x0]['command']['_boundingVolume'], wr); + Cesium['BoundingSphere']['union'](wq, wr, wh['_model']['_nodeCommands'][0x0]['command']['_boundingVolume']); + wh['_model']['_nodeCommands'][0x0]['dirty'] = !![]; + var ws = [wo, wp]; + var wt = Cesium['Matrix4']['multiplyByPoint'](wh['_contentModelMatrix'], ws[0x0], new Cesium['Cartesian3']()); + var wu = Cesium[dol(0x263)]['multiplyByPoint'](wh['_contentModelMatrix'], ws[0x1], new Cesium['Cartesian3']()); + wj = Cesium['Cartesian3']['maximumByComponent'](wj, wt, new Cesium['Cartesian3']()); + wk = Cesium['Cartesian3'][dol(0x264)](wk, wu, new Cesium['Cartesian3']()); + } + wg['updateBoundingVolume'](wk, wj); + wh['_model']['_nodeCommands'][0x0][dol(0x265)]['_debugShowBoundingVolume'] = ![]; + wh['_model']['_nodeCommands'][0x0][dol(0x266)][dol(0x267)] = !![]; + } + } + ); + cs[dol(0x268)]['delete'](w6['toString']()); + cs['viewer']['scene']['requestRender'](); + }, + 'setOutlineOn': function(wv) { + try { + + if (!isEmpty(wv) && cs['tileset']) { + cs['tileset']['outlineOn'] = wv; + cs['viewer']['scene']['requestRender'](); + } + } catch (ww) { + throw ww; + } + }, + 'setOutlineWidth': function(wx) { + try { + + if (!isEmpty(wx) && cs[dol(0x269)]) { + cs['tileset']['outlineWidth'] = wx; + cs['viewer']['scene']['requestRender'](); + } + } catch (wy) { + throw wy; + } + }, + 'setOutlineColor': function(wz) { + try { + + if (!isEmpty(wz) && cs['tileset']) { + cs['tileset']['outlineColor'] = Cesium['Color']['fromCssColorString'](wz); + cs['viewer']['scene'][dol(0x26a)](); + } + } catch (wA) { + throw wA; + } + }, + 'setContrast': function(wB, wC) { + try { + if (!isEmpty(wB)) { + if (cs['m_model']['get'](wB['toString']()) === undefined) { + throw doj(0x63); + } + cs['tileset'] = cs['m_model']['get'](wB[dol(0x26b)]()); + } + if (wC < -0x1) { + wC = -0x1; + } + if (wC > 0x1) { + wC = 0x1; + } + cs['tileset']['contrast'] = wC; + } catch (wD) { + aCe(wD); + } + }, + 'setSaturation': function(wE, wF) { + try { + if (!isEmpty(wE)) { + if (cs['m_model']['get'](wE['toString']()) === undefined) { + throw doj(0x64); + } + cs['tileset'] = cs['m_model']['get'](wE['toString']()); + } + if (wF < -0x1) { + wF = -0x1; + } + if (wF > 0x1) { + wF = 0x1; + } + cs[dol(0x26c)]['saturation'] = wF; + } catch (wG) { + aCe(wG); + } + }, + 'setLuminance': function(wH, wI) { + try { + if (!isEmpty(wH)) { + if (cs['m_model']['get'](wH['toString']()) === undefined) { + throw doj(0x65); + } + cs['tileset'] = cs['m_model']['get'](wH['toString']()); + } + if (wI < -0x1) { + wI = -0x1; + } + if (wI > 0x1) { + wI = 0x1; + } + cs['tileset']['luminance'] = wI; + } catch (wJ) { + aCe(wJ); + } + }, + 'setAverageBrightness': function(wK, wL) { + try { + if (!isEmpty(wK)) { + if (cs['m_model']['get'](wK['toString']()) === undefined) { + throw doj(0x66); + } + cs['tileset'] = cs['m_model']['get'](wK['toString']()); + } + if (wL < 0x0) { + wL = -0x1; + } + if (wL > 0x1) { + wL = 0x1; + } + cs['tileset']['averageBrightness'] = wL; + } catch (wM) { + aCe(wM); + } + }, + 'addModelEdge': function() { + var wN = Cesium['PostProcessStageLibrary'][dol(0x26d)](); + cs['viewer']['scene']['postProcessStages']['add'](wN); + cs['viewer']['scene']['requestRender'](); + }, + 'DrawRuler': function(bb) { + try { + var wP = bb['tag']; + if (!isEmpty(wP)) { + if (cs['m_model']['get'](wP['toString']()) === undefined) { + throw doj(0x67); + } + cs['tileset'] = cs['m_model']['get'](wP['toString']()); + } + var wQ = bb['startPos'] == undefined ? new Cesium['Cartesian3'](0x0,0x0,0x0) : bb[dol(0x26e)]; + var wR = bb['forwardLength'] == undefined ? 0x0 : bb[dol(0x26f)]; + var wS = bb[dol(0x270)] == undefined ? Y : bb['forwardAxis']; + var wT = bb['step'] == undefined ? 0x5 : bb['step']; + var wU = []; + var wV = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], wV); + var wW = new Cesium['Cartesian3'](); + var wX = cs['Model']['getModelsCenter']([wP]); + if (wX != undefined) { + var wY = wX['maxpos']; + var wZ = wX['minpos']; + Cesium['Matrix4']['multiplyByPoint'](wV, wY, wY); + Cesium['Matrix4']['multiplyByPoint'](wV, wZ, wZ); + if (!wQ['equals'](new Cesium['Cartesian3'](0x0,0x0,0x0))) { + Cesium['Matrix4']['multiplyByPoint'](wV, wQ, wW); + if (wS == 'X') { + wZ['x'] = wW['x']; + wY['x'] += wR; + } else if (wS == 'Y') { + wZ['y'] = wW['y']; + wZ['y'] += wR; + } + } + var x0 = Cesium['Cartesian3']['midpoint'](wY, wZ, new Cesium['Cartesian3']()); + var x1 = Cesium['Cartesian3']['subtract'](wY, wZ, new Cesium['Cartesian3']()); + var x2 = []; + var x3 = Cesium['Cartesian3']['clone'](wZ, new Cesium['Cartesian3']()); + var x4 = Cesium['Cartesian3']['clone'](wZ, new Cesium['Cartesian3']()); + x4['x'] = wY['x'] + 0xa; + var x5 = x4['x'] - x3['x']; + var x6 = wT; + for (let x7 = 0x0; x7 < Math['ceil'](x5 / x6); x7++) { + if (x7 == 0x0) { + var x8 = new Cesium['Cartesian3'](); + var x9 = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], x3, x8); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], x4, x9); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [x8, x9], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + var xb = new Cesium['Cartesian3'](); + var xc = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](x3, xb); + Cesium['Cartesian3']['clone'](x4, xc); + xb['z'] += x1['z']; + xc['z'] += x1['z']; + xc['x'] = wY['x']; + if (wS == 'Y') { + xb['y'] = wY['y']; + xc['y'] = wY['y']; + } + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xb, xb); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xc, xc); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xb, xc], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + var xe = new Cesium['Cartesian3'](); + var xf = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](x3, xe); + Cesium['Cartesian3']['clone'](x4, xf); + xe['z'] += x1['z'] / 0x2; + xf['z'] += x1['z'] / 0x2; + xf['x'] = wY['x']; + if (wS == 'Y') { + xe['y'] = wY['y']; + xf['y'] = wY['y']; + } + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x271)], xe, xe); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x272)], xf, xf); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xe, xf], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + } + var xh = new Cesium['Cartesian3'](); + var xi = new Cesium['Cartesian3'](); + var xj = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](x3, xh); + xh['x'] += x7 * x6; + Cesium['Cartesian3']['clone'](xh, xi); + xi['z'] += 0x2; + Cesium['Cartesian3'][dol(0x273)](xi, xj); + xj['z'] += 0.5; + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xh, xh); + Cesium[dol(0x274)]['multiplyByPoint'](cs['tileset']['root']['transform'], xi, xi); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xh, xi], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xj, xj); + var xl = cs['viewer']['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'l' + doo(0xe0) + 'e', + 'position': xj, + 'label': { + 'text': (x7 * x6)['toFixed'](0x1) + '', + 'fillColor': Cesium['Color']['BLACK'], + 'showBackground': ![] + } + }); + wU[dol(0x275)](xl); + } + var xm = Cesium['Cartesian3']['clone'](wZ, new Cesium['Cartesian3']()); + var xn = Cesium[dol(0x276)]['clone'](wZ, new Cesium['Cartesian3']()); + xn['y'] = wY['y'] + 0xa; + var xo = xn['y'] - xm['y']; + var xp = wT; + for (let xq = 0x0; xq < Math['ceil'](xo / xp); xq++) { + if (xq == 0x0) { + var x8 = new Cesium['Cartesian3'](); + var x9 = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xm, x8); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xn, x9); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [x8, x9], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2[dol(0x277)](xa); + var xu = new Cesium['Cartesian3'](); + var xv = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](xm, xu); + Cesium['Cartesian3']['clone'](xn, xv); + xu['z'] += x1['z']; + xv['z'] += x1['z']; + xv['y'] = wY['y']; + if (wS == 'X') { + xu['x'] = wY['x']; + xv['x'] = wY['x']; + } + Cesium['Matrix4']['multiplyByPoint'](cs[dol(0x278)]['root']['transform'], xu, xu); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xv, xv); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xu, xv], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + var xx = new Cesium['Cartesian3'](); + var xy = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](xm, xx); + Cesium['Cartesian3']['clone'](xn, xy); + xx['z'] += x1['z'] / 0x2; + xy['z'] += x1['z'] / 0x2; + xy['y'] = wY['y']; + if (wS == 'X') { + xx['x'] = wY['x']; + xy['x'] = wY['x']; + } + Cesium[dol(0x279)]['multiplyByPoint'](cs['tileset']['root']['transform'], xx, xx); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xy, xy); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xx, xy], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + } + var xh = new Cesium[(dol(0x27a))](); + var xi = new Cesium['Cartesian3'](); + var xj = new Cesium['Cartesian3'](); + Cesium[dol(0x27b)]['clone'](xm, xh); + xh['y'] += xq * xp; + Cesium['Cartesian3']['clone'](xh, xi); + xi['z'] += 0x2; + Cesium['Cartesian3']['clone'](xi, xj); + xj['z'] += 0.5; + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xh, xh); + Cesium['Matrix4']['multiplyByPoint'](cs[dol(0x27c)]['root']['transform'], xi, xi); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xh, xi], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset'][dol(0x27d)]['transform'], xj, xj); + var xE = cs['viewer']['entities'][dol(0x27e)]({ + 'id': Cesium['createGuid'](), + 'name': 'l' + doo(0xe1) + 'e', + 'position': xj, + 'label': { + 'text': (xq * xp)['toFixed'](0x1) + '', + 'fillColor': Cesium['Color']['BLACK'], + 'showBackground': ![] + } + }); + wU['push'](xE); + } + var xF = Cesium['Cartesian3']['clone'](wZ, new Cesium['Cartesian3']()); + var xG = Cesium['Cartesian3']['clone'](wZ, new Cesium['Cartesian3']()); + xG['z'] = wY['z'] + 0xa; + if (wS == 'Y') { + xF['y'] = wY['y']; + xG['y'] = wY['y']; + } else if (wS == 'X') { + xF['x'] = wY['x']; + xG['x'] = wY['x']; + } + var xH = xG['z'] - xF['z']; + var xI = wT; + for (let xJ = 0x0; xJ < Math['ceil'](xH / xI); xJ++) { + if (xJ == 0x0) { + var x8 = new Cesium['Cartesian3'](); + var x9 = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs[dol(0x27f)]['root']['transform'], xF, x8); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xG, x9); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [x8, x9], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + } + var xh = new Cesium['Cartesian3'](); + var xi = new Cesium['Cartesian3'](); + var xj = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](xF, xh); + xh['z'] += xJ * xI; + Cesium['Cartesian3'][dol(0x280)](xh, xi); + xi['x'] += 0x2; + Cesium['Cartesian3']['clone'](xi, xj); + xj['x'] += 0.5; + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xh, xh); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xi, xi); + var xa = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [xh, xi], + 'width': 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': Cesium['createGuid']() + }); + x2['push'](xa); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], xj, xj); + var xR = cs['viewer']['entities']['add']({ + 'id': Cesium['createGuid'](), + 'name': 'l' + doo(0xe2) + 'e', + 'position': xj, + 'label': { + 'text': (xJ * xI)['toFixed'](0x1) + '', + 'fillColor': Cesium['Color']['BLACK'], + 'showBackground': ![] + } + }); + wU['push'](xR); + } + if (x2['length'] > 0x0) { + var xS = new Cesium['Primitive']({ + 'geometryInstances': x2, + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium[(dol(0x281))]({ + 'fabric': { + 'type': 'C' + doo(0xe3) + 'r', + 'uniforms': { + 'color': Cesium['Color']['RED'] + } + } + }) + }) + }); + cs['viewer']['scene']['primitives']['add'](xS); + cs['modelRulerMap'][dol(0x282)](wP, xS); + cs['modelRulerLableMap']['set'](wP, wU); + cs['viewer']['scene']['requestRender'](); + } + } + } catch (xT) { + aCe('错' + doo(0xe4) + ':' + xT); + } + }, + 'cleanRuler': function(xU) { + if (xU == undefined) { + aCe('模' + doo(0xe5) + '!'); + } + var xV = cs['modelRulerMap']['get'](xU); + if (xV != undefined) { + cs['viewer']['scene']['primitives']['remove'](xV); + } + var xW = cs['modelRulerLableMap'][dol(0x283)](xU); + if (xW != undefined && xW['length'] > 0x0) { + for (let xX = 0x0; xX < xW['length']; xX++) { + cs['viewer']['entities']['remove'](xW[xX]); + } + } + cs['viewer']['scene']['requestRender'](); + }, + 'getModelBoxPositionInfo': function(xY) { + try { + + if (cs['m_model']['get'](xY['toString']()) === undefined) { + throw doj(0x68); + } else { + if (!isEmpty(xY)) { + if (cs['m_model']['get'](xY['toString']()) === undefined) { + throw doj(0x69); + } else { + cs['tileset'] = cs['m_model'][dol(0x284)](xY['toString']()); + } + } + var xZ = 'r' + doo(0xe6) + ')'; + var y0 = cs['tileset']['root'][dol(0x285)]; + var y1 = cs['funcPublic']['outCartesian3ToRadian'](y0['_boundingSphere']['center'], cs['viewer']); + var y2 = new Cesium['Cartesian3'](); + Cesium['Matrix3']['getScale'](y0['_orientedBoundingBox']['halfAxes'], y2); + Cesium['Cartesian3']['multiplyByScalar'](y2, 0x2, y2); + var y3 = []; + var y4 = cs['funcPublic']['outCartesian3ToRadian'](y0['northeastCornerCartesian'], cs['viewer']); + var y5 = cs['funcPublic']['outCartesian3ToRadian'](y0['southwestCornerCartesian'], cs['viewer']); + var y6 = y0['maximumHeight'] - y0['minimumHeight']; + y3['push']([bj['Public']['radiansToDegrees'](y4[0x0]), bj['Public']['radiansToDegrees'](y4[0x1]), y4[0x2]]); + y3['push']([bj['Public']['radiansToDegrees'](y4[0x0]), bj['Public']['radiansToDegrees'](y5[0x1]), y4[0x2]]); + y3['push']([bj['Public']['radiansToDegrees'](y5[0x0]), bj[dol(0x286)]['radiansToDegrees'](y5[0x1]), y5[0x2]]); + y3['push']([bj['Public']['radiansToDegrees'](y5[0x0]), bj['Public']['radiansToDegrees'](y4[0x1]), y5[0x2]]); + y3['push']([bj['Public']['radiansToDegrees'](y4[0x0]), bj['Public']['radiansToDegrees'](y4[0x1]), y4[0x2] + y6]); + y3['push']([bj['Public']['radiansToDegrees'](y4[0x0]), bj['Public']['radiansToDegrees'](y5[0x1]), y4[0x2] + y6]); + y3['push']([bj['Public']['radiansToDegrees'](y5[0x0]), bj[dol(0x287)][dol(0x288)](y5[0x1]), y5[0x2] + y6]); + y3['push']([bj['Public']['radiansToDegrees'](y5[0x0]), bj['Public']['radiansToDegrees'](y4[0x1]), y5[0x2] + y6]); + var y7 = Cesium['Matrix4']['multiplyByPoint'](cs[dol(0x289)]['root']['transform'], Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var y8 = Cesium['Cartographic']['fromCartesian'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], y7, new Cesium['Cartesian3']())); + return { + 'center': [bj['Public']['radiansToDegrees'](y1[0x0]), bj['Public']['radiansToDegrees'](y1[0x1]), y1[0x2]], + 'modelBoxSize': [y2['x'], y2['y'], y2['z']], + 'vertexCoordinates': y3, + 'height': y6, + 'quaternion': new Cesium['Quaternion']['fromRotationMatrix'](cs['tileset']['modelMatrix']), + 'groundingPoint': [bj['Public']['radiansToDegrees'](y8['longitude']), bj['Public']['radiansToDegrees'](y8['latitude']), y8[dol(0x28a)]] + }; + } + } catch (y9) { + aCe('错' + doo(0xe7) + ':' + y9); + } + }, + 'getModelMaterial': function(ya) { + if (!isEmpty(ya)) { + if (cs[dol(0x28b)]['get'](ya['toString']()) === undefined) { + throw doj(0x6a); + } + cs['tileset'] = cs['m_model'][dol(0x28c)](ya['toString']()); + } + for (var yb = 0x0; yb < cs['tileset']['_selectedTiles']['length']; ++yb) { + var yc = cs['tileset']['_selectedTiles'][yb]['_content']; + var yd = yc['_model']; + var ye = 0x1; + if (yd['isPbrMaterials']) { + ye = 0x0; + } + return ye; + } + } + }; + this['Camera'] = { + 'setCameraOptions': function(bb) { + try { + + if (bb) + for (var yg in bb) { + if (bb['hasOwnProperty'](yg) && cs['viewer']['scene']['screenSpaceCameraController'][dol(0x28d)](yg)) { + cs['viewer'][dol(0x28e)]['screenSpaceCameraController'][yg] = bb[yg]; + } + } + } catch (yh) { + aCe('错' + doo(0xe8) + ':' + yh); + } + }, + 'setPerspectiveViewPort': function(yi) { + try { + + if (isEmpty(yi)) + yi = doh(0x10); + var yj = 0x0; + var yk = -0x5a; + yi = yi['toUpperCase'](); + switch (yi) { + case 'B' + doo(0xe9) + 'M': + yj = 0x0; + yk = 0x5a; + break; + case 'F' + doo(0xea) + 'T': + yj = yk = 0x0; + break; + case 'B' + doo(0xeb) + 'K': + yj = 0xb4; + yk = 0x0; + break; + case 'L' + doo(0xec) + 'T': + yj = 0x5a; + yk = 0x0; + break; + case 'R' + doo(0xed) + 'T': + yj = 0x10e; + yk = 0x0; + break; + default: + yj = 0x0; + yk = -0x5a; + break; + } + if (yi === 'B' + doo(0xee) + 'M') { + if (cs['defaults']['openearth']) + return -0x1; + } + var yl = cs['Model']['getModelsCenter'](); + var ym = Cesium['Cartesian3']['subtract'](yl['maxpos'], yl['minpos'], new Cesium['Cartesian3']()); + var yn = Cesium['Cartesian3']['midpoint'](yl['maxpos'], yl['minpos'], new Cesium['Cartesian3']()); + var yo = Cesium[dol(0x28f)]['magnitude'](ym); + var yp = new Cesium['BoundingSphere'](yn,yo); + cs['viewer']['camera']['flyToBoundingSphere'](yp, { + 'duration': 0x0, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](yj),Cesium['Math']['toRadians'](yk),yo) + }); + cs['viewer']['scene']['requestRender'](); + return 0x0; + } catch (yq) { + aCe('错' + doo(0xef) + ':' + yq); + } + }, + 'setThroughWallState': function(yr) { + try { + + if (!isEmpty(yr)) { + cs['defaults'][dol(0x290)] = Boolean(yr); + cs['viewer']['scene']['screenSpaceCameraController']['enableCollisionDetection'] = !Boolean(yr); + cs['viewer']['scene'][dol(0x291)](); + } + } catch (ys) { + aCe('错' + doo(0xf0) + ':' + ys); + } + }, + 'getThroughWallState': function() { + + return cs['defaults'][dol(0x292)]; + }, + 'getViewPort': function() { + try { + + return { + 'heading': cs['viewer'][dol(0x293)]['heading'], + 'pitch': cs['viewer']['camera']['pitch'], + 'roll': cs['viewer']['camera']['roll'], + 'position': cs['funcPublic'][dol(0x294)](cs['viewer'][dol(0x295)]['position'], cs['viewer']), + 'headingDegrees': Cesium['Math'][dol(0x296)](cs['viewer']['camera']['heading']), + 'pitchDegrees': Cesium['Math']['toDegrees'](cs['viewer']['camera']['pitch']), + 'rollDegrees': Cesium[dol(0x297)]['toDegrees'](cs['viewer']['camera']['roll']), + 'positionWC': cs['viewer']['camera']['positionWC'] + }; + } catch (yt) { + aCe('错' + doo(0xf1) + ':' + yt); + } + }, + 'getViewPortToRVT': function(yu, yv) { + try { + + if (cs['m_model']['get'](yu['toString']()) === undefined) { + throw doj(0x6b); + } else { + if (yv == undefined) { + yv = ![]; + } + var yw = cs['m_model']['get'](yu['toString']()); + var yx = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](yw['root']['transform'], yx); + var yy = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](yx, cs['viewer']['camera']['position'], yy); + var yz = cs['viewer']['camera']['position']['clone'](); + var yA = cs['viewer']['camera']['position'][dol(0x298)](); + var yB = cs['viewer']['camera']['position']['clone'](); + var yC = cs[dol(0x299)]['camera']['direction']; + var yD = cs['viewer']['camera']['up']; + yA['x'] += yC['x'] * 0xa; + yA['y'] += yC['y'] * 0xa; + yA['z'] += yC['z'] * 0xa; + yB['x'] += yD['x'] * 0xa; + yB['y'] += yD['y'] * 0xa; + yB['z'] += yD['z'] * 0xa; + var yE = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](yx, yA, yE); + var yF = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](yx, yB, yF); + var yG = Cesium['Cartesian3']['subtract'](yE, yy, new Cesium['Cartesian3']()); + var yH = Cesium['Cartesian3']['subtract'](yF, yy, new Cesium['Cartesian3']()); + Cesium[dol(0x29a)]['normalize'](yG, yG); + Cesium['Cartesian3']['normalize'](yH, yH); + if (yv) { + cs['funcPublic']['drawPointByCartesian3'](cs['viewer']['camera']['position'], cs[dol(0x29b)], Cesium['Color']['RED'], 0x14); + cs['Public'][dol(0x29c)]('d' + doo(0xf2) + 'r', cs['viewer']['camera']['position'], yG, 0xa, Cesium['Color']['RED'], 0xa); + cs['Public']['drawLineByDirectionXYZ']('d' + doo(0xf3) + 'P', cs['viewer']['camera']['position'], yH, 0xa, Cesium['Color']['BLUE'], 0xa); + } + return { + 'heading': cs['viewer']['camera']['heading'], + 'pitch': cs['viewer']['camera']['pitch'], + 'position': yy, + 'headingDegrees': Cesium['Math']['toDegrees'](cs[dol(0x29d)]['camera']['heading']), + 'pitchDegrees': Cesium[dol(0x29e)]['toDegrees'](cs['viewer']['camera']['pitch']), + 'up': yH, + 'direction': yG + }; + } + } catch (yI) { + aCe('错' + doo(0xf4) + ':' + yI); + } + }, + 'setViewPort': function(yJ, yK, yL, yM) { + try { + + yK = Number(yK); + yL = Number(yL); + cs[dol(0x29f)]['camera']['setView']({ + 'destination': cs['funcPublic']['inputRadianToCartesian3'](yJ, cs['viewer']), + 'orientation': { + 'heading': yK, + 'pitch': yL, + 'roll': yM == undefined ? 0x0 : Number(yM) + } + }); + cs['viewer']['scene']['requestRender'](); + return 0x0; + } catch (yN) { + aCe('错' + doo(0xf5) + ':' + yN); + } + }, + 'flyToViewPort': function(yO, yP, yQ, yR) { + try { + + yP = Number(yP); + yQ = Number(yQ); + cs['viewer']['camera']['flyTo']({ + 'destination': cs['funcPublic']['inputRadianToCartesian3'](yO, cs['viewer']), + 'orientation': { + 'heading': yP, + 'pitch': yQ, + 'roll': 0x0 + }, + 'duration': yR == undefined ? 0x1 : yR + }); + cs['viewer']['scene'][dol(0x2a0)](); + return 0x0; + } catch (yS) { + aCe('错' + doo(0xf6) + ':' + yS); + } + }, + 'lookAt': function(bb) { + try { + var yU = new Cesium['Cartesian3']() + , yV = 0xa; + switch (bb['type']) { + case 0x0: + if (Array[dol(0x2a1)](bb['min']) && bb['min']['length'] == 0x3 && Array['isArray'](bb['max']) && bb['max'][dol(0x2a2)] == 0x3) { + var yW = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['min'])[0x0]; + var yX = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['max'])[0x0]; + Cesium['Cartesian3']['midpoint'](yW, yX, yU); + yV = Cesium[dol(0x2a3)]['distance'](yW, yX); + } else + throw Error('m' + doo(0xf7) + '误'); + break; + case 0x1: + if (Array['isArray'](bb['min']) && bb['min']['length'] == 0x3 && Array['isArray'](bb['max']) && bb['min'][dol(0x2a4)] == 0x3) { + var yY = Cesium['Cartesian3']['fromArray'](bb['min']) + , yZ = Cesium['Cartesian3']['fromArray'](bb['max']); + var z0 = cs['Public']['convertModelToWorld'](yY['x'], yY['y'], yY['z'], bb['tag']); + var z1 = cs['Public']['convertModelToWorld'](yZ['x'], yZ['y'], yZ['z'], bb['tag']); + var yW = cs['Public']['radiansToCartesian3'](z0[0x1], z0[0x0], z0[0x2]); + var yX = cs['Public']['radiansToCartesian3'](z1[0x1], z1[0x0], z1[0x2]); + Cesium['Cartesian3']['midpoint'](yW, yX, yU); + yV = Cesium['Cartesian3']['distance'](yW, yX); + } else + throw Error('m' + doo(0xf8) + '误'); + break; + case 0x2: + if (Cesium[dol(0x2a5)](bb['min']) && bb['min']instanceof Cesium['Cartesian3'] && Cesium['defined'](bb[dol(0x2a6)]) && bb['max']instanceof Cesium['Cartesian3']) { + Cesium['Cartesian3'][dol(0x2a7)](bb['min'], bb['max'], yU); + yV = Cesium['Cartesian3']['distance'](bb[dol(0x2a8)], bb[dol(0x2a9)]); + } else + throw Error('m' + doo(0xf9) + '误'); + break; + default: + throw Error('t' + doo(0xfa) + '效'); + } + var z4 = bb['heading'] || 0x0; + var z5 = bb['pitch'] || 0x0; + var z6 = Cesium['Math']['toRadians'](z4); + var z7 = Cesium['Math']['toRadians'](z5); + cs['viewer']['camera']['lookAt'](yU, new Cesium['HeadingPitchRange'](z6,z7,yV)); + cs[dol(0x2aa)]['camera']['lookAtTransform'](Cesium['Matrix4']['IDENTITY']); + } catch (z8) { + aCe(z8); + } + }, + 'getExtent': function() { + try { + + var z9 = cs['viewer']['camera']['computeViewRectangle'](); + var za = []; + za['push'](Cesium['Rectangle']['northeast'](z9, new Cesium['Cartographic']())); + za['push'](Cesium[dol(0x2ab)]['northwest'](z9, new Cesium['Cartographic']())); + za['push'](Cesium['Rectangle']['southwest'](z9, new Cesium['Cartographic']())); + za['push'](Cesium['Rectangle']['southeast'](z9, new Cesium[(dol(0x2ac))]())); + return za; + } catch (zb) { + aCe('错' + doo(0xfb) + ':' + zb); + } + }, + 'addListener': function(zc) { + try { + + cs['viewer']['camera'][dol(0x2ad)]['addEventListener'](function(zd) { + if (!isEmpty(zc)) { + zc({ + 'heading': cs['viewer']['camera']['heading'], + 'pitch': cs['viewer']['camera']['pitch'], + 'position': cs['funcPublic']['outCartesian3ToRadian'](cs['viewer']['camera']['position'], cs['viewer']) + }); + } + }); + } catch (ze) { + aCe('错' + doo(0xfc) + ':' + ze); + } + }, + 'autoRotate': function(zf, zg) { + try { + + if (cs['cameraRotate'] != undefined) { + cs['viewer']['clock']['onTick']['removeEventListener'](cs['cameraRotate']); + } + var zh = new Cesium['Cartesian3'](); + if (isEmpty(zf)) { + zh = Cesium['Cartesian3']['fromDegrees'](cs['defaultPosition']['longitude'], cs['defaultPosition']['latitude'], cs['defaultPosition'][dol(0x2ae)]); + } else + zh = cs['funcPublic']['inputRadianToCartesian3'](zf, cs['viewer']); + if (isEmpty(zg)) { + zg = 0xbb8; + } + var zi = Date['now'](); + cs[dol(0x2af)] = function() { + var zj = Date['now'](); + var zk = (zj - zi) / 0x3e8; + zi = zj; + cs['viewer']['scene']['camera']['rotate'](zh, -(zg / 0x2710) * zk); + } + ; + cs['viewer']['clock']['onTick']['addEventListener'](cs['cameraRotate']); + } catch (zl) { + aCe('错' + doo(0xfd) + ':' + zl); + } + }, + 'stopAutoRotate': function() { + + if (!isEmpty(cs[dol(0x2b0)])) + cs['viewer']['clock']['onTick']['removeEventListener'](cs['cameraRotate']); + }, + 'zoomToPosition': function(zm, zn, zo, zp) { + try { + + if (isEmpty(zn)) { + zn = cs['viewer']['camera']['heading']; + } else { + zn = Cesium[dol(0x2b1)]['toRadians'](zn); + } + if (isEmpty(zo)) { + zo = cs['viewer']['camera'][dol(0x2b2)]; + } else { + zo = Cesium['Math']['toRadians'](zo); + } + if (isEmpty(zp)) { + zp = 0x1; + } + var zq = cs['viewer']['camera']['position']; + if (Array['isArray'](zm)) { + zq = cs['funcPublic']['inputRadianToCartesian3'](zm, cs['viewer']); + } else if (zm instanceof Cesium['Cartesian3']) { + zq = zm; + } + var zr = new Cesium['BoundingSphere'](zq,zp); + cs['viewer']['camera']['flyToBoundingSphere'](zr, { + 'duration': 0.5, + 'offset': new Cesium[(dol(0x2b3))](zn,zo,zp) + }); + return 0x0; + } catch (zs) { + aCe('错' + doo(0xfe) + ':' + zs); + } + }, + 'flyToPosition': function(zt, zu, zv, zw, zx) { + try { + + if (isEmpty(zu)) { + zu = cs['viewer'][dol(0x2b4)]['heading']; + } + if (isEmpty(zv)) { + zv = cs[dol(0x2b5)]['camera'][dol(0x2b6)]; + } + if (isEmpty(zw)) { + zw = 0x64; + } + if (isEmpty(zx)) { + zx = 0x5; + } + var zy = cs[dol(0x2b7)]['camera']['position']; + if (Array['isArray'](zt)) { + zy = cs['funcPublic']['inputRadianToCartesian3'](zt, cs['viewer']); + } else if (zt instanceof Cesium[dol(0x2b8)]) { + zy = zt; + } + var zz = new Cesium[(dol(0x2b9))](zy,0x1); + cs[dol(0x2ba)]['camera']['flyToBoundingSphere'](zz, { + 'duration': zx, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](zu),Cesium['Math']['toRadians'](zv),zw) + }); + return 0x0; + } catch (zA) { + aCe('错' + doo(0xff) + ':' + zA); + } + }, + 'viewpointRestorationFromNavis': function(bb) { + if (bb['viewPos'] == undefined || bb['viewQuaternion'] == undefined) { + return; + } + var zC = bb['viewPos']; + var zD = bb['viewQuaternion']; + var zE = cs['tileset']['offset']; + var zF = new Cesium['Cartesian3'](zE[0x0] / 0x3e8,zE[0x1] / 0x3e8,zE[0x2] / 0x3e8); + zC['x'] = zC['x'] * 0.3048; + zC['y'] = zC['y'] * 0.3048; + zC['z'] = zC['z'] * 0.3048; + var zG = Cesium['Cartesian3']['subtract'](zC, zF, new Cesium['Cartesian3']()); + var zH = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], zG, new Cesium['Cartesian3']()); + var zI = new Cesium['HeadingPitchRoll'](); + Cesium['HeadingPitchRoll']['fromQuaternion'](zD, zI); + bj['viewer']['camera'][dol(0x2bb)]({ + 'destination': zH, + 'orientation': { + 'heading': zI['heading'], + 'pitch': zI['roll'] - Math['PI'] / 0x2, + 'roll': 0x0 + } + }); + }, + 'autoRoamTrackByCzml': function(zJ) { + + GLERoaming['RouteTrack'](cs, zJ); + }, + 'stopRoamTrackByCzml': function(zK) { + + GLERoaming['RouteTrack'](cs, zK); + }, + 'autoRoamByTrace': function(zL, zM, zN, zO, zP) { + + GLERoaming['AutoRoaming'](cs, zL, zM, zN, zO, zP); + }, + 'pauseAutoRoamByTrace': function(zQ) { + + GLERoaming['PauseOrContinueRoaming'](cs, zQ); + }, + 'stopRoamByTrace': function() { + + GLERoaming['EndRoaming'](cs); + }, + 'saveScreenShot': function(zR) { + try { + + if (cs['Public'][dol(0x2bc)]() === 0x0) { + if (!cs['viewer']['baseLayerPicker']['viewModel']['dropDownVisible']) { + var zS = document['getElementsByClassName'](doj(0x6c)); + if (!isEmpty(zS) && zS['length'] > 0x0) { + zS[0x0]['style']['display'] = 'n' + doo(0x100) + 'e'; + } + } + } + var zT = document['querySelector']('#' + cs[dol(0x2bd)]['container'] + doj(0x6d)); + var zU = document[dol(0x2be)]('#' + cs['defaults']['container']); + var zV = zT['getContext']('w' + doo(0x101) + '2'); + var {clientWidth, clientHeight} = zU; + var zW = 0x0; + var zX = window['devicePixelRatio'] || window['webkitDevicePixelRatio'] || window['mozDevicePixelRatio'] || 0x1; + zT['width'] = (clientWidth + 0x2 * zW) * zX; + zT['height'] = (clientHeight + 0x2 * zW) * zX; + zT['style'][dol(0x2bf)] = clientWidth + 0x2 * zW + doh(0x11); + zT['style']['height'] = clientHeight + 0x2 * zW + doh(0x12); + cs['viewer']['scene']['requestRender'](); + Cesium['defined'](cs['PluginNavigationCube']) && cs['PluginNavigationCube']['initScreenshot'](!![]); + html2canvas(document[dol(0x2c0)](cs['defaults']['container']), { + 'backgroundColor': 't' + doo(0x102) + 't', + 'allowTaint': !![], + 'y': zU['offsetTop'] / 0x2, + 'x': zU['offsetLeft'] / 0x2, + 'scrollY': 0x0, + 'scrollX': 0x0, + 'scale': zX, + 'width': zU['offsetWidth'], + 'height': zU['offsetHeight'], + 'windowWidth': zU['scrollWidth'], + 'windowHeight': zU['scrollHeight'], + 'imageTimeout': 0x0, + 'useCORS': !![], + 'foreignObjectRendering': !![], + 'logging': ![] + })['then'](function(zY) { + if (cs['Public']['getSceneStatus']() === 0x0) { + var zS = document['getElementsByClassName'](doj(0x6e)); + if (!isEmpty(zS) && zS['length'] > 0x0) { + zS[0x0]['style']['display'] = 'b' + doo(0x103) + 'k'; + } + } + if (!isEmpty(zR)) { + zR(zY[dol(0x2c1)]()); + } + }); + } catch (A0) { + aCe('错' + doo(0x104) + ':' + A0); + } + }, + 'roamByKeyboard': function(A1, A2, A3, A4, A5, A6, A7, A8, A9, Aa) { + + if (!isEmpty(A1)) { + if (!isNaN(A1)) + c2 = parseInt(A1); + else + c2 = A1['toUpperCase']()[dol(0x2c2)]()['charCodeAt'](0x0); + } + if (!isEmpty(A2)) { + if (!isNaN(A2)) + c3 = parseInt(A2); + else + c3 = A2['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A3)) { + if (!isNaN(A3)) + c4 = parseInt(A3); + else + c4 = A3['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A4)) { + if (!isNaN(A4)) + c5 = parseInt(A4); + else + c5 = A4['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A5)) { + if (!isNaN(A5)) + c6 = parseInt(A5); + else + c6 = A5['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A6)) { + if (!isNaN(A6)) + c7 = parseInt(A6); + else + c7 = A6['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A7)) { + if (!isNaN(A7)) + c8 = parseInt(A7); + else + c8 = A7['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A8)) { + if (!isNaN(A8)) + c9 = parseInt(A8); + else + c9 = A8['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(A9)) { + if (!isNaN(A9)) + ca = parseInt(A9); + else + ca = A9['toUpperCase']()['toString']()['charCodeAt'](0x0); + } + if (!isEmpty(Aa)) { + if (!isNaN(Aa)) + cb = parseInt(Aa); + else + cb = Aa[dol(0x2c3)]()['toString']()['charCodeAt'](0x0); + } + var Ab = cs['viewer']['canvas']; + Ab['setAttribute']('t' + doo(0x105) + 'x', '0'); + Ab['onclick'] = function() { + Ab['focus'](); + } + ; + var Ac = cs['viewer']['scene']['globe']['ellipsoid']; + var Ad; + var Ae; + var Af = { + 'looking': ![], + 'moveForward': ![], + 'moveBackward': ![], + 'moveUp': ![], + 'moveDown': ![], + 'moveLeft': ![], + 'moveRight': ![], + 'turnLeft': ![], + 'turnRight': ![], + 'spinUp': ![], + 'spinDown': ![] + }; + function Ag(Ah) { + switch (Ah) { + case c2: + return 'm' + doo(0x106) + 'p'; + case c3: + return 'm' + doo(0x107) + 'n'; + case c4: + return 'm' + doo(0x108) + 'd'; + case c5: + return 'm' + doo(0x109) + 'd'; + case c6: + return 'm' + doo(0x10a) + 't'; + case c7: + return 'm' + doo(0x10b) + 't'; + case c8: + return 't' + doo(0x10c) + 't'; + case c9: + return 't' + doo(0x10d) + 't'; + case ca: + return 's' + doo(0x10e) + 'p'; + case cb: + return 's' + doo(0x10f) + 'n'; + default: + return undefined; + } + } + document['addEventListener']('k' + doo(0x110) + 'n', function(Ai) { + var Aj = Ag(Ai['keyCode']); + if (typeof Aj !== 'u' + doo(0x111) + 'd') { + Af[Aj] = !![]; + } + }, ![]); + document['addEventListener']('k' + doo(0x112) + 'p', function(Ak) { + var Al = Ag(Ak['keyCode']); + if (typeof Al !== 'u' + doo(0x113) + 'd') { + Af[Al] = ![]; + } + }, ![]); + cs['viewer']['clock']['onTick']['addEventListener'](function() { + var Am = cs['viewer']['camera']; + var An = Ac['cartesianToCartographic'](Am[dol(0x2c4)])['height']; + var Ao = An / 0x64; + Ao = Math['abs'](Ao) * -0x1; + var Ap = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['normalize'](Am['position'], Ap); + var Aq = Math['PI'] * 0.5 / 0xb4; + if (Af['moveForward']) { + Am['moveForward'](Ao * -0x1); + } + if (Af['moveBackward']) { + Am['moveBackward'](Ao * -0x1); + } + if (Af['moveUp']) { + Am['moveUp'](Ao); + } + if (Af['moveDown']) { + Am['moveDown'](Ao); + } + if (Af['moveLeft']) { + Am['moveLeft'](Ao); + } + if (Af['moveRight']) { + Am['moveRight'](Ao); + } + if (Af[dol(0x2c5)]) { + Am['look'](Ap, Aq); + } + if (Af['turnRight']) { + Am[dol(0x2c6)](Ap, -Aq); + } + if (Af[dol(0x2c7)]) { + Am['lookUp'](Aq); + } + if (Af['spinDown']) { + Am['lookDown'](Aq); + } + }); + }, + 'setImmersiveRoamConfig': function(bb) { + + cs['Plugin'][dol(0x2c8)](); + cs['Camera_ImmersionRoaming']['setConfig'](bb); + cs['viewer']['scene'][dol(0x2c9)](); + }, + 'pickImmersiveRoamBirthplace': function(As) { + + cs['Plugin']['initRoamingSystem'](); + cs[dol(0x2ca)]['pickIrBirthplace'](As); + cs['viewer']['scene']['requestRender'](); + }, + 'setImmersiveRoamBirthplace': function(At, Au) { + + cs['Plugin']['initRoamingSystem'](); + cs['Camera_ImmersionRoaming']['setIrBirthplace'](At, Au); + cs['viewer']['scene']['requestRender'](); + }, + 'startImmersiveRoam': function() { + + cs['Plugin']['initRoamingSystem'](); + cs[dol(0x2cb)]['start'](); + cs[dol(0x2cc)]['scene']['requestRender'](); + }, + 'setImmersiveRoamState': function(Av) { + + cs['Plugin']['initRoamingSystem'](); + cs['Camera_ImmersionRoaming']['suspend'](Av); + cs['viewer']['scene']['requestRender'](); + }, + 'stopImmersiveRoam': function() { + + cs['Plugin'][dol(0x2cd)](); + cs['Camera_ImmersionRoaming']['stop'](); + cs['viewer'][dol(0x2ce)]['removeById'](doj(0x6f)); + cs['viewer']['scene']['requestRender'](); + }, + 'resetImmersiveRoamViewPort': function() { + + cs['Plugin']['initRoamingSystem'](); + cs['Camera_ImmersionRoaming']['resetCamera'](); + cs[dol(0x2cf)]['scene']['requestRender'](); + }, + 'isImmersiveRoaming': function() { + + cs['Plugin']['initRoamingSystem'](); + return cs[dol(0x2d0)]['isIRing'](); + }, + 'playImmersiveRoam': function(bb) { + + cs['Plugin']['initRoamingSystem'](); + cs['Camera_ImmersionRoaming']['play'](bb); + }, + 'pauseImmersiveRoam': function() { + + cs['Plugin']['initRoamingSystem'](); + cs['Camera_ImmersionRoaming']['pause'](); + }, + 'continueImmersiveRoam': function() { + + cs[dol(0x2d1)]['initRoamingSystem'](); + cs['Camera_ImmersionRoaming']['continue'](); + }, + 'playNextImmersiveRoam': function(Ax) { + + if (Cesium['defined'](cs['Camera_ImmersionRoaming'])) { + cs['Camera_ImmersionRoaming']['doPlay'](Ax); + } + }, + 'immersiveRoamInsertKeyFrame': function(Ay) { + + if (Cesium['defined'](cs['Camera_ImmersionRoaming'])) { + cs['Camera_ImmersionRoaming']['insertKeyFrame'](Ay); + } + }, + 'immersiveRoamDeleteKeyFrame': function(Az) { + + if (Cesium['defined'](cs['Camera_ImmersionRoaming'])) { + cs['Camera_ImmersionRoaming']['deleteKeyFrame'](Az); + } + }, + 'cancelPlayImmersiveRoam': function() { + + if (Cesium['defined'](cs['Camera_ImmersionRoaming'])) { + cs['Camera_ImmersionRoaming']['playCancle'](); + } + }, + 'keyDownImmersiveRoam': function(AA) { + + if (Cesium['defined'](cs['Camera_ImmersionRoaming'])) { + cs['Camera_ImmersionRoaming']['iRKeyDown'](AA); + } + }, + 'keyUpImmersiveRoam': function(AB) { + + if (Cesium['defined'](cs['Camera_ImmersionRoaming'])) { + cs['Camera_ImmersionRoaming']['iRKeyUp'](AB); + } + }, + 'set3rdRoamConfig': function(bb) { + + cs['Plugin']['init3rdRoaming'](bb); + cs['viewer']['scene']['requestRender'](); + }, + 'pick3rdRoamBirthplace': function(AD) { + + cs['Plugin']['init3rdRoaming'](); + cs['Camera_3rdRoaming'][dol(0x2d2)](AD); + cs['viewer']['scene']['requestRender'](); + }, + 'set3rdRoamBirthplace': function(AE, AF) { + + cs['Plugin']['init3rdRoaming'](); + cs['Camera_3rdRoaming']['start'](AF, AE); + cs['viewer']['scene']['requestRender'](); + }, + 'stop3rdRoam': function() { + + cs['Plugin']['init3rdRoaming'](); + cs[dol(0x2d3)]['exit'](); + cs['viewer'][dol(0x2d4)]['requestRender'](); + }, + 'setPosition2D': function(AG, AH, AI) { + + var AJ = AI['tagName']; + var AK = new Cesium['Cartesian3'](); + AH['viewer']['camera']['rightWC']['clone'](AK); + AG['clone'](bs); + AI['Label']['addImage'](AG, AK, 'P' + doo(0x114) + '_' + AJ); + AI[dol(0x2d5)]['changePointSize'](); + AH['viewer']['scene']['requestRender'](); + AI['viewer'][dol(0x2d6)]['requestRender'](); + }, + 'startViewPortRoam': function(AL, AM, AN, AO) { + + GLERoaming['StartCustomRoam'](cs, AL, AM, AN, AO); + }, + 'pauseViewPortRoam': function(AP) { + + GLERoaming[dol(0x2d7)](cs, AP); + }, + 'stopViewPortRoam': function() { + + GLERoaming['StopCustomRoam'](cs); + }, + 'changeCamera': function() { + if (cs['viewer']['camera']['frustum']['_offCenterFrustum']['_perspectiveMatrix'] == undefined) { + var AQ = new Cesium['PerspectiveFrustum'](); + AQ['fov'] = Cesium['Math'][dol(0x2d8)]; + AQ['near'] = 0.01; + AQ['far'] = 0x2540be400; + AQ['aspectRatio'] = cs['viewer']['camera']['frustum']['aspectRatio']; + cs['viewer']['camera']['frustum'] = AQ; + } else { + var AQ = new Cesium['OrthographicFrustum'](); + AQ['_offCenterFrustum']['left'] = 0x0; + AQ['_offCenterFrustum']['right'] = 0x0; + AQ['_offCenterFrustum']['top'] = 0x0; + AQ['_offCenterFrustum']['bottom'] = 0x0; + AQ['_offCenterFrustum']['near'] = 1e-7; + AQ['_offCenterFrustum']['far'] = 0xf4240; + AQ[dol(0x2d9)] = 0x32; + AQ['aspectRatio'] = cs['viewer']['camera']['frustum']['aspectRatio']; + cs['viewer']['camera']['frustum'] = AQ; + } + }, + 'videoRecording': function(AS, AT) { + if (isEmpty(AS)) { + AS = 'r' + doo(0x115) + 's'; + } + cs['Camera']['playImmersiveRoam']({ + 'complete': function() { + console['log']('I' + doo(0x116) + '.'); + AY['stop'](); + AY['onstop'] = () => { + const AU = new Blob(AX,{ + 'type': 'v' + doo(0x117) + '4' + }); + let AV = window['URL']['createObjectURL'](AU); + B2(AV); + if (!isEmpty(AT)) { + AT({ + 'status': 'R' + doo(0x118) + 'd' + }); + } + } + ; + }, + 'cancel': function() { + console['log']('I' + doo(0x119) + '.'); + }, + 'keyFrameFun': function(AW) { + console['log']('I' + doo(0x11a) + ':' + AW); + }, + 'isStepPlay': ![], + 'isLoopPlay': ![], + 'duration': 0x1 + }); + const AX = new Set(); + let AY; + function AZ() { + const B0 = api['viewer']['canvas']['captureStream'](0x14); + AY = new MediaRecorder(B0,{ + 'videoBitsPerSecond': 0x81b320 + }); + AY['ondataavailable'] = B1 => { + AX['add'](B1['data']); + } + ; + AY['start'](); + } + AZ(); + if (!isEmpty(AT)) { + AT({ + 'status': 'R' + doo(0x11b) + 't' + }); + } + function B2(B3) { + var q = document['createElement']('a'); + q['href'] = B3; + q['download'] = AS + ('.' + doo(0x11c) + '4'); + q['style']['display'] = 'n' + doo(0x11d) + 'e'; + document[dol(0x2da)][dol(0x2db)](q); + q['click'](); + } + } + }; + var B5 = doj(0x70); + var B6 = doj(0x71); + var B7 = doj(0x72); + this['Measurement'] = { + 'setMeasurementUnit': function(B8) { + switch (B8) { + case 'm': + cs['defaults']['measurementUnit'] = 0x1; + break; + case doh(0x13): + cs[dol(0x2dc)]['measurementUnit'] = 0x64; + break; + case doh(0x14): + cs['defaults']['measurementUnit'] = 0.001; + break; + case doh(0x15): + cs['defaults']['measurementUnit'] = 0xa; + break; + case doh(0x16): + cs['defaults'][dol(0x2dd)] = 0x3e8; + break; + default: + throw Error('t' + doo(0x11e) + '效'); + } + }, + 'getMeasurementUnit': function() { + var B9 = ''; + switch (cs[dol(0x2de)]['measurementUnit']) { + case 0x1: + B9 = 'm'; + break; + case 0x64: + B9 = doh(0x17); + break; + case 0.001: + B9 = doh(0x18); + break; + case 0xa: + B9 = doh(0x19); + break; + case 0x3e8: + B9 = doh(0x1a); + break; + default: + throw Error('t' + doo(0x11f) + '效'); + } + return B9; + }, + 'showMeasurementText': function(Ba) { + return cs['defaults']['measurementUnit'] * Ba + '\x20' + cs['Measurement']['getMeasurementUnit'](); + }, + 'drawDistanceResult': function(Bb, Bc) { + try { + + cs['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + var Bd = []; + if (!isEmpty(Bb) && Bb['length'] == 0x2) { + Bd = cs['funcPublic']['inputRadianArrToCartesian3Arr'](Bb, cs['viewer']); + } else { + throw '参' + doo(0x120) + '误'; + } + var Be = cs['funcPublic']['getDistance'](Bd)['toFixed'](0x2); + if (Be < 0.01) { + throw '坐' + doo(0x121) + '合'; + } + if (!Cesium['defined'](Bc)) + Bc = !![]; + if (Bc) { + var Bf = cs['viewer']['entities']['add']({ + 'position': Bd[0x0], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Bf); + var Bf = cs[dol(0x2df)]['entities']['add']({ + 'position': Bd[0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Bf); + } + var Bh = Cesium['Cartographic']['fromCartesian'](Bd[0x0]); + var Bi = Cesium['Cartographic']['fromCartesian'](Bd[0x1]); + var Bj, Bk, Bl, Bm; + if (Bh['height'] > Bi['height']) { + Bk = Bd[0x1]; + Bj = Bd[0x0]; + Bl = Bh['height'] - Bi['height']; + } else { + Bk = Bd[0x0]; + Bj = Bd[0x1]; + Bl = Bi['height'] - Bh['height']; + } + var Bn = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['normalize'](Bj, Bn); + Cesium[dol(0x2e0)][dol(0x2e1)](Bn, Bl, Bn); + var Bo = new Cesium['Cartesian3'](); + Cesium['Cartesian3'][dol(0x2e2)](Bj, Bn, Bo); + Bm = Cesium['Cartesian3']['distance'](Bo, Bk); + if (Bc) { + var Bp = cs['viewer']['scene'][dol(0x2e3)]['add'](cs['funcPublic']['drawLine']([Bk, Bj], cs['viewer'])); + cs[dol(0x2e4)]['push'](Bp); + var Bq = cs['viewer']['scene'][dol(0x2e5)]['add'](cs['funcPublic']['drawLine']([Bj, Bo], cs['viewer'])); + cs['tempPrimitives']['push'](Bq); + var Br = cs[dol(0x2e6)]['scene']['primitives']['add'](cs['funcPublic']['drawLine']([Bk, Bo], cs['viewer'])); + cs['tempPrimitives'][dol(0x2e7)](Br); + } + var Bs = cs['funcPublic']['getCenter'](Bj, Bk); + if (Bc) { + var Bt = cs['viewer']['entities']['add']({ + 'position': Bs, + 'label': { + 'style': Cesium[dol(0x2e8)]['FILL_AND_OUTLINE'], + 'text': cs['Measurement']['showMeasurementText'](Be), + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x122) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs[dol(0x2e9)]['push'](Bt); + } + var Bu = Bl['toFixed'](0x2); + if (Bu > 0.1) { + var Bv = doh(0x1b) + cs['Measurement']['showMeasurementText'](Bu); + if (cs['defaults']['language']['toLowerCase']() == doh(0x1c)) + Bv = 'V' + doo(0x123) + ':' + cs['Measurement'][dol(0x2ea)](Bu); + if (cs['defaults']['language']['toLowerCase']() == 'z' + doo(0x124) + 'w') + Bv = doh(0x1d) + cs['Measurement']['showMeasurementText'](Bu); + if (Bc) { + var Bt = cs['viewer']['entities']['add']({ + 'position': cs['funcPublic']['getCenter'](Bo, Bj), + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': Bv, + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x125) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium[(dol(0x2eb))](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Bt); + } + } + var Bx = Bm['toFixed'](0x2); + if (Bu > 0.1) { + var Bv = doh(0x1e) + cs['Measurement']['showMeasurementText'](Bx); + if (cs['defaults']['language']['toLowerCase']() == doh(0x1f)) + Bv = 'H' + doo(0x126) + ':' + cs['Measurement']['showMeasurementText'](Bx); + if (cs['defaults']['language']['toLowerCase']() == 'z' + doo(0x127) + 'w') + Bv = doh(0x20) + cs['Measurement']['showMeasurementText'](Bx); + if (Bc) { + var Bt = cs['viewer']['entities']['add']({ + 'position': cs['funcPublic']['getCenter'](Bo, Bk), + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': Bv, + 'show': !![], + 'fillColor': Cesium[dol(0x2ec)]['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x128) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Bt); + } + } + Bd = []; + cs['viewer']['scene']['requestRender'](); + return { + 'distance': cs['defaults']['measurementUnit'] * Be, + 'vDistance': cs['defaults']['measurementUnit'] * Bu, + 'hDistance': cs['defaults'][dol(0x2ed)] * Bx + }; + } catch (BA) { + aCe('错' + doo(0x129) + ':' + BA); + } + }, + 'drawAreaResult': function(BB, BC) { + try { + + cs['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + var BD = []; + if (!isEmpty(BB) && BB['length'] > 0x2) { + BB['push'](BB[0x0]); + BD = cs['funcPublic']['inputRadianArrToCartesian3Arr'](BB, cs['viewer']); + } else { + throw '参' + doo(0x12a) + '误'; + } + if (!Cesium['defined'](BC)) + BC = !![]; + if (BC) { + var BE = cs['viewer']['entities']['add']({ + 'polyline': { + 'show': !![], + 'positions': BD, + 'material': new Cesium['PolylineOutlineMaterialProperty']({ + 'color': Cesium['Color']['YELLOW'] + }), + 'width': 0x3 + } + }); + cs['tempEntities']['push'](BE); + } + var BF = ''; + var BG = cs['funcPublic']['calcArea3D'](BD); + if (BG < 0x0) + BG *= -0x1; + var BH = BG = cs['funcPublic']['round'](BG, 0x2); + if (BG > 0xf4240) { + BG = cs['funcPublic']['round'](BG / 0xf4240, 0x2); + BF = BG + doh(0x21); + } else { + BF = BG + doh(0x22); + } + var BI; + var BJ = cs['funcPublic']['getCartesian3ListCenter'](BD); + var BK = cs['viewer']['scene']['globe']['ellipsoid']['cartesianToCartographic'](BJ); + BI = Cesium['Cartesian3']['fromDegrees'](Cesium['Math']['toDegrees'](BK['longitude']), Cesium['Math']['toDegrees'](BK['latitude']), BK['height']); + if (BC) { + var BL = cs['viewer'][dol(0x2ee)]['add']({ + 'position': BI, + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': BF, + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x12b) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](BL); + } + cs['viewer']['scene']['requestRender'](); + return { + 'area': BH + }; + } catch (BM) { + aCe('错' + doo(0x12c) + ':' + BM); + } + }, + 'distance': function(BN, BO, BP, BQ, BR) { + try { + + if (!cs['viewer']['scene']['_context']['_webgl2']) { + BP = ![]; + BR = ![]; + } + cs['viewer']['container']['style'][dol(0x2ef)] = B6; + var BS = undefined; + if (BR) { + BS = cs['MeasuringAuxiliaryComponents']; + if (!cs[dol(0x2f0)]) { + BS = new MeasuringAuxiliaryComponents({ + 'image': B5 + },cs); + } + } + var BT = undefined; + if (BP) { + var BU = !![]; + cs['Public']['event']('R' + doo(0x12d) + 'N', function() { + BU = ![]; + }); + cs['Public']['event']('R' + doo(0x12e) + 'P', function() { + BU = !![]; + }); + cs['Public']['event']('L' + doo(0x12f) + 'N', function() { + BU = ![]; + }); + cs[dol(0x2f1)]['event']('L' + doo(0x130) + 'P', function() { + BU = !![]; + }); + cs['Public']['event']('M' + doo(0x131) + 'E', function(BV) { + if (BU) { + BT = undefined; + var BW = cs['funcPublic']['pickPosition'](BV['endPosition'], cs['viewer']); + if (Cesium['defined'](BW[dol(0x2f2)]) && BW['type'] == 0x1) { + BT = cs[dol(0x2f3)]['calculateVertex'](BV['endPosition'], BW['position'], cs); + if (Cesium['defined'](BT)) { + if (BS) + BS['updateData']({ + 'cartesian': BT, + 'isPlane': ![], + 'isVertex': !![] + }); + cs['viewer']['container']['style']['cursor'] = B7; + } else { + if (BS) + cs['Feature']['getFaceAndNormal'](BV['endPosition'], function(BX) { + if (BX) { + BS['updateData']({ + 'cartesian': BW['position'], + 'planeNormal': BX['FaceNormal'], + 'isPlane': !![], + 'isVertex': ![] + }); + } + }); + cs['viewer']['container']['style'][dol(0x2f4)] = B6; + } + } else { + if (BS) + BS['updateData']({ + 'cartesian': BW['position'], + 'isPlane': ![], + 'isVertex': ![] + }); + cs['viewer']['container']['style']['cursor'] = B6; + } + } + }); + } + var BY = []; + var BZ = undefined; + var C0; + cs['Public'][dol(0x2f5)]('L' + doo(0x132) + 'K', function(C1) { + cs['nameOverlay'][dol(0x2f6)]['display'] = 'n' + doo(0x133) + 'e'; + var C2 = cs['funcPublic']['pickPosition'](C1['position'], cs['viewer']); + if (Cesium['defined'](C2['type']) && C2['type'] == 0x1) { + BZ = 'O' + doo(0x134) + 'l'; + if (!BP) { + if (Cesium['defined'](BT)) + Cesium['Cartesian3']['clone'](BT, C2['position']); + } else { + var C3 = cs['funcPublic']['calculateVertex'](C1['position'], C2['position'], cs); + if (Cesium['defined'](C3)) + Cesium['Cartesian3']['clone'](C3, C2['position']); + } + } else { + BZ = 'O' + doo(0x135) + 'h'; + if (!cs['defaults']['openearth']) { + return; + } + } + if (C2['type'] !== cs['PositionType']['NONE']) { + BY['push'](C2['position']['clone']()); + } + if (BY['length'] == 0x2) { + var C4 = cs['funcPublic']['getDistance'](BY)['toFixed'](0x2); + if (C4 < 0.001) { + BY['pop'](); + return; + } + C0 = cs['viewer']['entities'][dol(0x2f7)]({ + 'position': BY[0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](C0); + var C5 = Cesium['Cartographic']['fromCartesian'](BY[0x0]); + var C6 = Cesium['Cartographic']['fromCartesian'](BY[0x1]); + var C7, C8, C9, Ca; + if (C5['height'] > C6['height']) { + C8 = BY[0x1]; + C7 = BY[0x0]; + C9 = C5['height'] - C6['height']; + Ca = C6['latitude']; + } else { + C8 = BY[0x0]; + C7 = BY[0x1]; + C9 = C6['height'] - C5['height']; + Ca = C5['latitude']; + } + var Cb = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['normalize'](C7, Cb); + Cesium['Cartesian3']['multiplyByScalar'](Cb, C9, Cb); + var Cc = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](C7, Cb, Cc); + var Cd = cs['funcPublic']['getDistance']([C7, Cc])['toFixed'](0x2); + var Ce = cs['viewer']['scene']['primitives']['add'](cs['funcPublic']['drawLine']([C7, Cc], cs['viewer'], Cesium['Color']['BLUE'])); + cs[dol(0x2f8)]['push'](Ce); + var Cf = Cesium['Cartographic']['fromCartesian'](Cc); + var Cg = cs['funcPublic'][dol(0x2f9)](new Cesium['Cartographic'](Cf['longitude'],Ca,Cf['height']), cs['viewer']); + var Ch = cs['funcPublic']['getDistance']([Cg, Cc])['toFixed'](0x2); + var Ce = cs['viewer']['scene']['primitives']['add'](cs['funcPublic']['drawLine']([Cc, Cg], cs['viewer'], Cesium['Color']['GREEN'])); + cs['tempPrimitives']['push'](Ce); + var Cj = cs['funcPublic']['getDistance']([Cg, C8])['toFixed'](0x2); + var Ce = cs['viewer']['scene']['primitives']['add'](cs['funcPublic']['drawLine']([Cg, C8], cs['viewer'], new Cesium['Color'](0x1,0.3,0.3,0x1))); + cs['tempPrimitives']['push'](Ce); + if (BQ) { + function Cl(bb) { + var Cn = bb['viewer']; + var Co = bb['text']; + var Cp = bb['position']; + var Cq = bb['color']; + var Cr = bb['img']; + var Cs = bb['imgSubRegion']; + var Ct = bb['imgPixelOffset']; + var Cu = bb['textPixelOffset']; + return Cn['entities'][dol(0x2fa)]({ + 'position': Cp, + 'billboard': { + 'show': !![], + 'image': Cr, + 'imageSubRegion': Cs, + 'color': Cesium['Color']['WHITE'], + 'pixelOffset': Ct, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + }, + 'label': { + 'show': !![], + 'text': Co, + 'showBackground': !![], + 'fillColor': Cq, + 'backgroundColor': Cesium['Color']['WHITE'], + 'font': '1' + doo(0x136) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['LEFT'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': Cu, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + } + var Cv = cs['funcPublic']['getCenter'](C7, Cc); + var Cw = cs['funcPublic']['getDistance']([C7, Cc])['toFixed'](0x2); + var Cx = Cl({ + 'viewer': cs['viewer'], + 'text': cs['Measurement']['showMeasurementText'](Cw), + 'position': Cv, + 'color': Cesium[dol(0x2fb)]['BLUE'], + 'img': B5, + 'imgSubRegion': new Cesium['BoundingRectangle'](0x32,0x68,0x10,0x14), + 'imgPixelOffset': new Cesium['Cartesian2'](0x2,0x0), + 'textPixelOffset': new Cesium['Cartesian2'](0xa,0xa) + }); + cs[dol(0x2fc)]['push'](Cx); + var Cy = cs['funcPublic']['getCenter'](Cg, Cc); + var Cz = cs['funcPublic']['getDistance']([Cg, Cc])['toFixed'](0x2); + var CA = Cl({ + 'viewer': cs['viewer'], + 'text': cs['Measurement']['showMeasurementText'](Cz), + 'position': Cy, + 'color': Cesium['Color']['GREEN'], + 'img': B5, + 'imgSubRegion': new Cesium['BoundingRectangle'](0x1a,0x68,0x10,0x14), + 'imgPixelOffset': new Cesium['Cartesian2'](0x2,0x0), + 'textPixelOffset': new Cesium['Cartesian2'](0xa,0xa) + }); + cs['tempEntities']['push'](CA); + var CB = cs['funcPublic']['getCenter'](Cg, C8); + var CC = cs['funcPublic']['getDistance']([Cg, C8])['toFixed'](0x2); + var CD = Cl({ + 'viewer': cs['viewer'], + 'text': cs['Measurement']['showMeasurementText'](CC), + 'position': CB, + 'color': Cesium['Color']['RED'], + 'img': B5, + 'imgSubRegion': new Cesium['BoundingRectangle'](0x2,0x68,0x10,0x14), + 'imgPixelOffset': new Cesium['Cartesian2'](0x2,0x0), + 'textPixelOffset': new Cesium[(dol(0x2fd))](0xa,0xa) + }); + cs['tempEntities']['push'](CD); + } + var Ce = cs['viewer'][dol(0x2fe)][dol(0x2ff)]['add'](cs['funcPublic'][dol(0x300)](BY, cs['viewer'], Cesium['Color']['ORANGE'])); + cs['tempPrimitives']['push'](Ce); + if (BO) { + var CF = cs['funcPublic']['getCenter'](C7, C8); + var CG = cs['viewer']['entities'][dol(0x301)]({ + 'position': CF, + 'label': { + 'text': cs['Measurement']['showMeasurementText'](C4), + 'show': !![], + 'showBackground': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'backgroundColor': Cesium['Color']['ORANGE'], + 'outlineColor': Cesium[dol(0x302)]['BLACK'], + 'outlineWidth': 0x2, + 'font': '1' + doo(0x137) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](CG); + } + if (!isEmpty(BN)) { + BN({ + 'points': cs[dol(0x303)]['outCartesian3ToRadianArr'](BY, cs['viewer']), + 'dis': cs[dol(0x304)]['measurementUnit'] * C4, + 'X': cs['defaults']['measurementUnit'] * Cj, + 'Y': cs['defaults']['measurementUnit'] * Ch, + 'Z': cs[dol(0x305)]['measurementUnit'] * Cd + }); + } + BY = []; + } else { + C0 = cs['viewer']['entities']['add']({ + 'position': BY[BY['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](C0); + } + cs['viewer']['scene']['requestRender'](); + }); + cs['Public'][dol(0x306)]('R' + doo(0x138) + 'K', function(CH) { + cs['viewer']['container']['style']['cursor'] = 'd' + doo(0x139) + 't'; + cs['MeasuringAuxiliaryComponents'][dol(0x307)](); + cs['MeasuringAuxiliaryComponents'] = undefined; + cs['Public']['clearHandler'](); + }); + } catch (CI) { + aCe('错' + doo(0x13a) + ':' + CI); + } + }, + 'distanceBetweenPlanes': function(CJ, CK, CL, CM) { + try { + + if (!cs['viewer']['scene']['_context']['_webgl2']) { + aCe('w' + doo(0x13b) + '!'); + return; + } + CK = Cesium[dol(0x308)](CK, !![]); + cs['viewer']['container']['style']['cursor'] = B6; + var CN = undefined; + if (CM) { + CN = cs['MeasuringAuxiliaryComponents']; + if (!cs['MeasuringAuxiliaryComponents']) { + CN = new MeasuringAuxiliaryComponents({ + 'image': B5 + },cs); + } + } + var CO = undefined; + var CP = []; + var CQ = undefined; + var CR; + var CS = !![]; + cs['Public']['event']('R' + doo(0x13c) + 'N', function() { + CS = ![]; + }); + cs['Public']['event']('R' + doo(0x13d) + 'P', function() { + CS = !![]; + }); + cs['Public']['event']('L' + doo(0x13e) + 'N', function() { + CS = ![]; + }); + cs['Public']['event']('L' + doo(0x13f) + 'P', function() { + CS = !![]; + }); + cs['Public']['event']('M' + doo(0x140) + 'E', function(CT) { + if (CS) { + CO = undefined; + var CU = cs['funcPublic']['pickPosition'](CT[dol(0x309)], cs['viewer']); + if (Cesium['defined'](CU['type']) && CU[dol(0x30a)] == 0x1) { + CO = cs['funcPublic'][dol(0x30b)](CT['endPosition'], CU['position'], cs); + if (Cesium['defined'](CO)) { + if (CN) + CN['updateData']({ + 'cartesian': CO, + 'isPlane': ![], + 'isVertex': !![] + }); + cs['viewer']['container']['style']['cursor'] = B7; + } else { + if (CN) + cs['Feature']['getFaceAndNormal'](CT['endPosition'], function(CV) { + if (CV) { + CN['updateData']({ + 'cartesian': CU['position'], + 'planeNormal': CV['FaceNormal'], + 'isPlane': !![], + 'isVertex': ![] + }); + } + }); + cs['viewer'][dol(0x30c)]['style']['cursor'] = B6; + } + } else { + if (CN) + CN[dol(0x30d)]({ + 'cartesian': CU['position'], + 'isPlane': ![], + 'isVertex': ![] + }); + cs['viewer']['container'][dol(0x30e)]['cursor'] = B6; + } + } + }); + cs['Public']['event']('L' + doo(0x141) + 'K', function(CW) { + cs['nameOverlay']['style']['display'] = 'n' + doo(0x142) + 'e'; + var CX = undefined; + var CY = cs['funcPublic']['pickPosition'](CW[dol(0x30f)], cs['viewer']); + if (Cesium['defined'](CY['type']) && CY['type'] == 0x1) { + CQ = 'O' + doo(0x143) + 'l'; + if (!CL) { + if (Cesium['defined'](CO)) + Cesium['Cartesian3']['clone'](CO, CY['position']); + } else { + var CZ = cs[dol(0x310)]['calculateVertex'](CW['position'], CY['position'], cs); + if (Cesium['defined'](CZ)) + Cesium['Cartesian3'][dol(0x311)](CZ, CY['position']); + } + cs['Feature']['getFaceAndNormal'](CW['position'], function(D0) { + CX = D0; + }); + } else { + CQ = 'O' + doo(0x144) + 'h'; + if (!cs['defaults']['openearth']) { + return; + } + } + if (!CX) { + return; + } + if (CY['type'] !== cs['PositionType']['NONE']) { + var D1 = cs['funcPublic']['disposeFeatureId'](CX['id']); + var D2 = D1[0x0]['toString'](); + var D3 = []; + Cesium['Cartesian3']['pack'](CY['position'], D3); + var D4 = cs['Public'][dol(0x312)](D3); + var D5 = cs[dol(0x313)]['radiansToModelCartesian3'](D4[0x1], D4[0x0], D4[0x2], D2); + CP['push']({ + 'position': CY['position']['clone'](), + 'normal': CX['FaceNormal'][dol(0x314)](), + 'facePOSArr': CX['FacePOSArr'], + 'featureId': CX['id'], + 'positionModel': D5, + 'tag': D2 + }); + } + if (CP['length'] > 0x0) { + var D6 = CP[CP['length'] - 0x1]; + var D7 = new Cesium['Cartesian2'](0.1,0.1); + var D8 = Cesium['Cartesian3'][dol(0x315)](cs['viewer']['camera']['position'], D6['position']) / 0x14; + Cesium['Cartesian2']['multiplyByScalar'](Cesium['Cartesian3']['ONE']['clone'](), D8, D7); + var D9 = cs['viewer']['entities']['add']({ + 'position': new Cesium['CallbackProperty']( () => D6['position'],![]), + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + }, + 'plane': { + 'show': new Cesium['CallbackProperty'](function() { + return !![]; + } + ,![]), + 'dimensions': new Cesium['CallbackProperty'](function() { + return D7; + } + ,![]), + 'material': Cesium['Color']['GREEN']['withAlpha'](0.5), + 'outline': !![], + 'outlineWidth': 0xa, + 'outlineColor': Cesium['Color']['BLACK']['withAlpha'](0.7), + 'plane': new Cesium['CallbackProperty'](function() { + return new Cesium['Plane'](D6['normal'],-0.02); + } + ,![]), + 'fill': !![], + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + }, + 'label': { + 'show': CK, + 'text': 'P' + (CP[dol(0x316)] == 0x1 ? 0x0 : 0x1), + 'fillColor': Cesium['Color']['WHITE'], + 'font': '1' + doo(0x145) + '体', + 'outlineColor': Cesium['Color']['BLACK'], + 'outlineWidth': 0x2, + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'horizontalOrigin': Cesium['HorizontalOrigin']['LEFT'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium[(dol(0x317))](0xa,0xa), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + D6['entity'] = D9; + cs['tempEntities']['push'](D9); + } + if (CP['length'] == 0x2) { + var Da = GetDistanceBetweenFaces(CP[0x0]['positionModel'], CP[0x0]['facePOSArr'], CP[0x1]['facePOSArr']); + console['log'](CP[0x0]['positionModel'], Da['f1p1'], Da[dol(0x318)]); + if (!Da || !Da['isParallel']) { + console[dol(0x319)]('选' + doo(0x146) + '行'); + CP[0x1]['entity']['plane'][dol(0x31a)] = Cesium['Color'][dol(0x31b)]['withAlpha'](0.5); + if (!isEmpty(CJ)) { + CJ({ + 'dis': -0x1 + }); + } + CP = []; + cs['viewer']['scene'][dol(0x31c)](); + return; + } + var D8 = Number(Da['distance']['toFixed'](0x2)); + var Dc = Da['footPoint']; + var Dd = !isEmpty(cs[dol(0x31d)]['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium[dol(0x31e)]['IDENTITY']); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x31f)], Dc, CY); + Cesium['Matrix4']['multiplyByPoint'](Dd, CY, CY); + var D9 = cs['viewer']['entities']['add']({ + 'position': new Cesium['CallbackProperty']( () => CY,![]), + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](D9); + var Df = cs['viewer']['scene']['primitives']['add'](cs['funcPublic']['drawLine']([CP[0x0]['position'], CY], cs['viewer'], Cesium['Color']['GREEN'])); + cs['tempPrimitives'][dol(0x320)](Df); + var Dg = cs['viewer']['scene'][dol(0x321)]['add'](cs['funcPublic']['drawLine']([CP[0x1]['position'], CY], cs['viewer'], Cesium['Color']['YELLOW'], !![])); + cs['tempPrimitives'][dol(0x322)](Dg); + if (CK) { + var Dh = cs['funcPublic']['getCenter'](CP[0x0]['position'], CY); + var Di = cs['viewer']['entities']['add']({ + 'position': Dh, + 'label': { + 'text': cs['Measurement']['showMeasurementText'](D8), + 'show': !![], + 'showBackground': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'backgroundColor': Cesium['Color']['GREEN'], + 'outlineColor': Cesium['Color']['BLACK'], + 'outlineWidth': 0x2, + 'font': '1' + doo(0x147) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Di); + } + if (!isEmpty(CJ)) { + CJ({ + 'dis': cs['defaults']['measurementUnit'] * D8 + }); + } + CP = []; + } + cs['viewer']['scene']['requestRender'](); + }); + cs['Public']['event']('R' + doo(0x148) + 'K', function(Dj) { + cs['viewer']['container'][dol(0x323)]['cursor'] = 'd' + doo(0x149) + 't'; + cs['MeasuringAuxiliaryComponents']['clear'](); + cs['MeasuringAuxiliaryComponents'] = undefined; + cs['Public']['clearHandler'](); + }); + } catch (Dk) { + aCe('错' + doo(0x14a) + ':' + Dk); + } + }, + 'pointToFace': function(Dl, Dm, Dn, Do) { + try { + + if (!cs['viewer'][dol(0x324)]['_context'][dol(0x325)]) { + Dn = ![]; + Do = ![]; + } + cs['viewer']['container'][dol(0x326)][dol(0x327)] = B6; + var Dp = !![]; + var Dq = undefined; + if (Do) { + Dq = cs['MeasuringAuxiliaryComponents']; + if (!cs['MeasuringAuxiliaryComponents']) { + Dq = new MeasuringAuxiliaryComponents({ + 'image': B5 + },cs); + } + } + cs['line_dynamicPosition'] = []; + cs['isDrawDynamicLine'] = ![]; + var Dr = { + 'id': 'l' + doo(0x14b) + 'c', + 'polyline': { + 'positions': [], + 'material': Cesium['Color']['YELLOW'], + 'width': 0x1, + 'show': !![] + } + }; + var Ds = function() { + return cs['line_dynamicPosition']; + }; + Dr['polyline']['positions'] = new Cesium['CallbackProperty'](Ds,![]); + cs['viewer']['entities'][dol(0x328)](Dr); + var Dt = undefined; + var Du = !![]; + cs['Public']['event']('R' + doo(0x14c) + 'N', function() { + Du = ![]; + }); + cs['Public']['event']('R' + doo(0x14d) + 'P', function() { + Du = !![]; + }); + cs[dol(0x329)]['event']('L' + doo(0x14e) + 'N', function() { + Du = ![]; + }); + cs['Public']['event']('L' + doo(0x14f) + 'P', function() { + Du = !![]; + }); + cs['Public']['event']('M' + doo(0x150) + 'E', function(Dv) { + if (Du) { + Dt = undefined; + var Dw = cs['funcPublic']['pickPosition'](Dv['endPosition'], cs[dol(0x32a)]); + if (Cesium['defined'](Dw['type']) && Dw[dol(0x32b)] == 0x1) { + Dt = cs['funcPublic']['calculateVertex'](Dv['endPosition'], Dw['position'], cs); + if (Cesium['defined'](Dt)) { + if (Dq) + Dq['updateData']({ + 'cartesian': Dt, + 'isPlane': ![], + 'isVertex': !![] + }); + cs['viewer']['container']['style']['cursor'] = B7; + } else { + if (Dq) + cs['Feature']['getFaceAndNormal'](Dv['endPosition'], function(Dx) { + if (Dx) { + Dq['updateData']({ + 'cartesian': Dw['position'], + 'planeNormal': Dx['FaceNormal'], + 'isPlane': !![], + 'isVertex': ![] + }); + } + }); + cs['viewer']['container']['style']['cursor'] = B6; + } + } else { + if (Dq) + Dq['updateData']({ + 'cartesian': Dw['position'], + 'isPlane': ![], + 'isVertex': ![] + }); + cs['viewer'][dol(0x32c)]['style']['cursor'] = B6; + } + if (Dw != undefined && cs['isDrawDynamicLine']) { + cs[dol(0x32d)]['pop'](); + cs['line_dynamicPosition']['push'](Dw['position']); + } + } + }); + var Dy = []; + var Dz = undefined; + var DA; + cs['Public']['event']('L' + doo(0x151) + 'K', function(DB) { + cs['nameOverlay']['style']['display'] = 'n' + doo(0x152) + 'e'; + var DC = cs['funcPublic']['pickPosition'](DB[dol(0x32e)], cs[dol(0x32f)]); + if (cs['line_dynamicPosition']['length'] == 0x2) { + cs['viewer']['entities']['remove'](Dr); + cs['line_dynamicPosition'] = []; + cs['isDrawDynamicLine'] = ![]; + } else { + if (cs['line_dynamicPosition']['length'] < 0x2) { + if (cs['line_dynamicPosition']['length'] == 0x0) { + cs['line_dynamicPosition']['push'](DC['position']['clone']()); + } + cs['line_dynamicPosition']['push'](DC['position']); + cs['isDrawDynamicLine'] = !![]; + if (!cs['viewer']['entities']['getById']('l' + doo(0x153) + 'c')) { + cs['viewer']['entities']['add'](Dr); + } + } + } + if (Cesium['defined'](DC['type']) && DC[dol(0x330)] == 0x1) { + Dz = 'O' + doo(0x154) + 'l'; + if (!Dn) { + if (Cesium['defined'](Dt)) + Cesium['Cartesian3'][dol(0x331)](Dt, DC['position']); + } else { + var DD = cs['funcPublic']['calculateVertex'](DB['position'], DC['position'], cs); + if (Cesium['defined'](DD)) + Cesium['Cartesian3']['clone'](DD, DC['position']); + } + } else { + Dz = 'O' + doo(0x155) + 'h'; + if (!cs['defaults']['openearth']) { + return; + } + } + if (DC['type'] !== cs['PositionType']['NONE']) { + Dy[dol(0x332)](DC['position'][dol(0x333)]()); + } + if (Dy[dol(0x334)] == 0x2) { + var DE = cs['funcPublic']['getDistance'](Dy)['toFixed'](0x2); + if (DE < 0.001) { + Dy['pop'](); + return; + } + DA = cs['viewer']['entities']['add']({ + 'position': Dy[0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](DA); + var DF = Cesium['Cartographic']['fromCartesian'](Dy[0x0]); + var DG = Cesium['Cartographic']['fromCartesian'](Dy[0x1]); + var DH, DI, DJ, DK; + if (DF['height'] > DG[dol(0x335)]) { + DI = Dy[0x1]; + DH = Dy[0x0]; + DJ = DF['height'] - DG['height']; + DK = DG['latitude']; + } else { + DI = Dy[0x0]; + DH = Dy[0x1]; + DJ = DG['height'] - DF['height']; + DK = DF['latitude']; + } + var DL = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['normalize'](DH, DL); + Cesium['Cartesian3']['multiplyByScalar'](DL, DJ, DL); + var DM = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](DH, DL, DM); + var DN = cs['funcPublic'][dol(0x336)]([DH, DM])['toFixed'](0x2); + var DO = cs['viewer']['scene']['primitives']['add'](cs['funcPublic']['drawLine']([DH, DM], cs['viewer'], Cesium['Color']['BLUE'])); + cs[dol(0x337)]['push'](DO); + if (Dp) { + function DP(bb) { + var DR = bb['viewer']; + var DS = bb[dol(0x338)]; + var DT = bb[dol(0x339)]; + var DU = bb['color']; + var DV = bb['img']; + var DW = bb['imgSubRegion']; + var DX = bb['imgPixelOffset']; + var DY = bb['textPixelOffset']; + return DR['entities']['add']({ + 'position': DT, + 'billboard': { + 'show': !![], + 'image': DV, + 'imageSubRegion': DW, + 'color': Cesium['Color']['WHITE'], + 'pixelOffset': DX, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + }, + 'label': { + 'show': !![], + 'text': DS, + 'showBackground': !![], + 'fillColor': DU, + 'backgroundColor': Cesium['Color']['WHITE'], + 'font': '1' + doo(0x156) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['LEFT'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': DY, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + } + var DZ = cs['funcPublic']['getCenter'](DH, DM); + var E0 = cs['funcPublic']['getDistance']([DH, DM])['toFixed'](0x2); + var E1 = DP({ + 'viewer': cs['viewer'], + 'text': cs['Measurement']['showMeasurementText'](E0), + 'position': DZ, + 'color': Cesium['Color']['BLUE'], + 'img': B5, + 'imgSubRegion': new Cesium['BoundingRectangle'](0x32,0x68,0x10,0x14), + 'imgPixelOffset': new Cesium['Cartesian2'](0x2,0x0), + 'textPixelOffset': new Cesium['Cartesian2'](0xa,0xa) + }); + cs['tempEntities']['push'](E1); + } + if (Dm) { + var E2 = cs['funcPublic']['getCenter'](DH, DI); + var E3 = cs['viewer'][dol(0x33a)]['add']({ + 'position': E2, + 'label': { + 'text': cs['Measurement']['showMeasurementText'](DE), + 'show': !![], + 'showBackground': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'backgroundColor': Cesium['Color']['ORANGE'], + 'outlineColor': Cesium['Color']['BLACK'], + 'outlineWidth': 0x2, + 'font': '1' + doo(0x157) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](E3); + } + if (!isEmpty(Dl)) { + Dl({ + 'points': cs['funcPublic']['outCartesian3ToRadianArr'](Dy, cs['viewer']), + 'dis': cs['defaults']['measurementUnit'] * DE, + 'Z': cs['defaults']['measurementUnit'] * DN + }); + } + Dy = []; + } else { + DA = cs['viewer']['entities']['add']({ + 'position': Dy[Dy['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](DA); + } + cs['viewer']['scene']['requestRender'](); + }); + cs['Public']['event']('R' + doo(0x158) + 'K', function(E4) { + cs['viewer']['container']['style']['cursor'] = 'd' + doo(0x159) + 't'; + cs['MeasuringAuxiliaryComponents']['clear'](); + cs['MeasuringAuxiliaryComponents'] = undefined; + cs['Public']['clearHandler'](); + }); + } catch (E5) { + aCe('错' + doo(0x15a) + ':' + E5); + } + }, + 'angle': function(E6, E7, E8, E9) { + try { + + if (!cs['viewer']['scene']['_context']['_webgl2']) { + E8 = ![]; + E9 = ![]; + } + cs['viewer']['container']['style']['cursor'] = B6; + var Ea = undefined; + if (E9) { + Ea = cs['MeasuringAuxiliaryComponents']; + if (!cs['MeasuringAuxiliaryComponents']) { + Ea = new MeasuringAuxiliaryComponents({ + 'image': B5 + },cs); + } + } + var Eb = undefined; + if (E8) { + var Ec = !![]; + cs['Public']['event']('R' + doo(0x15b) + 'N', function() { + Ec = ![]; + }); + cs['Public']['event']('R' + doo(0x15c) + 'P', function() { + Ec = !![]; + }); + cs['Public']['event']('L' + doo(0x15d) + 'N', function() { + Ec = ![]; + }); + cs['Public']['event']('L' + doo(0x15e) + 'P', function() { + Ec = !![]; + }); + cs['Public']['event']('M' + doo(0x15f) + 'E', function(Ed) { + if (Ec) { + var Ee = cs['funcPublic'][dol(0x33b)](Ed['endPosition'], cs['viewer']); + if (Cesium['defined'](Ee[dol(0x33c)]) && Ee['type'] == 0x1) { + Eb = cs['funcPublic']['calculateVertex'](Ed['endPosition'], Ee['position'], cs); + if (Cesium[dol(0x33d)](Eb)) { + if (Ea) + Ea['updateData']({ + 'cartesian': Eb, + 'isPlane': ![], + 'isVertex': !![] + }); + cs['viewer'][dol(0x33e)]['style']['cursor'] = B7; + } else { + if (Ea) + cs['Feature'][dol(0x33f)](Ed['endPosition'], function(Ef) { + if (Ef) { + Ea['updateData']({ + 'cartesian': Ee['position'], + 'planeNormal': Ef['FaceNormal'], + 'isPlane': !![], + 'isVertex': ![] + }); + } + }); + cs['viewer'][dol(0x340)]['style']['cursor'] = B6; + } + } else { + if (Ea) + Ea['updateData']({ + 'isPlane': ![], + 'isVertex': ![] + }); + cs['viewer']['container']['style']['cursor'] = B6; + } + } + }); + } + var Eg = []; + var Eh = 0x0; + var Ei = null; + var Ej = undefined; + cs['Public'][dol(0x341)]('L' + doo(0x160) + 'K', function(Ek) { + cs['nameOverlay']['style']['display'] = 'n' + doo(0x161) + 'e'; + var El = cs['funcPublic']['pickPosition'](Ek['position'], cs['viewer']); + if (Cesium['defined'](El['type']) && El['type'] == 0x1) { + Ej = 'O' + doo(0x162) + 'l'; + if (!E8) { + if (Cesium['defined'](Eb)) + Cesium['Cartesian3'][dol(0x342)](Eb, El['position']); + } else { + var Em = cs[dol(0x343)]['calculateVertex'](Ek['position'], El['position'], cs); + if (Cesium['defined'](Em)) + Cesium['Cartesian3'][dol(0x344)](Em, El['position']); + } + } else { + Ej = 'O' + doo(0x163) + 'h'; + if (!cs['defaults']['openearth']) { + return; + } + } + if (El['type'] !== cs['PositionType']['NONE']) { + Eg['push'](El['position']['clone']()); + } + if (Eg['length'] == 0x3) { + var El = Cesium['Cartesian3']['subtract'](Eg[0x0], Eg[0x1], new Cesium['Cartesian3']()); + var Eo = Cesium['Cartesian3']['subtract'](Eg[0x2], Eg[0x1], new Cesium['Cartesian3']()); + var Ep = Cesium['Cartesian3']['angleBetween'](El, Eo); + Eh = EA(Cesium[dol(0x345)]['toDegrees'](Ep), 0x2); + var Eq = cs['viewer']['entities'][dol(0x346)]({ + 'position': Eg[Eg['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs[dol(0x347)]['push'](Eq); + var Er = cs[dol(0x348)]['scene']['primitives']['add'](cs['funcPublic']['drawLine'](Eg, cs['viewer'])); + cs['tempPrimitives']['push'](Er); + if (E7) { + var Es; + var Et = cs[dol(0x349)]['getCartesian3ListCenter'](Eg); + var El = cs[dol(0x34a)]['scene']['globe'][dol(0x34b)]['cartesianToCartographic'](Et); + if (cs['viewer']['scene']['globe'] && Ej != 'O' + doo(0x164) + 'l') { + Es = Cesium['Cartesian3']['fromDegrees'](Cesium['Math']['toDegrees'](El['longitude']), Cesium['Math']['toDegrees'](El['latitude']), El['height'] + 0.1); + } else { + Es = Cesium['Cartesian3']['fromDegrees'](Cesium['Math']['toDegrees'](El['longitude']), Cesium['Math']['toDegrees'](El['latitude']), El[dol(0x34c)]); + } + var Ev = cs['viewer']['entities']['add']({ + 'position': Es, + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': Eh + '°', + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x165) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Ev); + } + var Ew = EG(Eg); + var Er = cs['viewer']['scene']['primitives']['add'](cs['funcPublic']['drawLine'](Ew, cs['viewer'])); + cs['tempPrimitives'][dol(0x34d)](Er); + if (!isEmpty(E6)) { + E6({ + 'points': cs['funcPublic']['outCartesian3ToRadianArr'](Eg, cs['viewer']), + 'angle': Eh + }); + } + Eg = []; + } else { + var Eq = cs['viewer']['entities']['add']({ + 'position': Eg[Eg[dol(0x34e)] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Eq); + } + cs['viewer']['scene']['requestRender'](); + }); + cs['Public']['event']('R' + doo(0x166) + 'K', function(Ez) { + cs['viewer']['container']['style'][dol(0x34f)] = 'd' + doo(0x167) + 't'; + cs['MeasuringAuxiliaryComponents']['clear'](); + cs['MeasuringAuxiliaryComponents'] = undefined; + cs['Public'][dol(0x350)](); + }); + function EA(EB, EC) { + if (EB >= 0x0) { + var ED = parseInt(EB * Math['pow'](0xa, EC) + 0.5) / Math['pow'](0xa, EC); + return ED; + } else { + var EE = -EB; + var ED = parseInt(EE * Math['pow'](0xa, EC) + 0.5) / Math[dol(0x351)](0xa, EC); + return -ED; + } + } + function EG(Eg) { + var EI = Eg[0x0]; + var EJ = Cesium['clone'](Eg[0x1], !![]); + var EK = Eg[0x2]; + EI = Cesium['Cartesian3'][dol(0x352)](EI, EJ, new Cesium['Cartesian3']()); + EK = Cesium['Cartesian3']['subtract'](EK, EJ, new Cesium['Cartesian3']()); + EJ['x'] = 0x0; + EJ['y'] = 0x0; + EJ['z'] = 0x0; + var EL = Cesium['Cartesian3']['distance'](EJ, EI); + var EM = Cesium['Cartesian3']['distance'](EJ, EK); + var EN = []; + if (EL < EM) { + EN = EQ(EI, EJ, EK); + } else { + EN = EQ(EK, EJ, EI); + } + var EO = []; + for (var EP = 0x0; EP < EN['length']; EP++) { + EO['push'](Cesium['Cartesian3']['add'](EN[EP], Eg[0x1], new Cesium[(dol(0x353))]())); + } + return EO; + } + function EQ(ER, ES, ET) { + var EU = Cesium['Cartesian3']['subtract'](ER, ES, new Cesium['Cartesian3']()); + var EV = Cesium['Cartesian3']['subtract'](ET, ES, new Cesium['Cartesian3']()); + var EW = Cesium[dol(0x354)]['lerp'](ES, ER, 0.5, new Cesium['Cartesian3']()); + var EX = Cesium['Cartesian3']['cross'](EU, EV, new Cesium['Cartesian3']()); + var EY = []; + var Eh = Cesium['Cartesian3']['angleBetween'](EU, EV); + for (var F0 = 0x0; F0 < Eh; F0 = F0 + 0.01) { + var F1 = Cesium['Matrix4']['fromTranslationQuaternionRotationScale'](new Cesium['Cartesian3'](), Cesium['Quaternion']['fromAxisAngle'](EX, F0), new Cesium['Cartesian3'](0x1,0x1,0x1)); + var F2 = Cesium['Matrix4']['multiplyByPointAsVector'](F1, EW, new Cesium['Cartesian3']()); + EY['push'](F2); + } + return EY; + } + } catch (F3) { + aCe('错' + doo(0x168) + ':' + F3); + } + }, + 'area': function(F4, F5, F6, F7) { + try { + + if (!cs['viewer']['scene']['_context']['_webgl2']) { + F7 = ![]; + F6 = ![]; + } + cs['viewer']['container']['style']['cursor'] = B6; + var F8 = undefined; + if (F7) { + F8 = cs['MeasuringAuxiliaryComponents']; + if (!cs['MeasuringAuxiliaryComponents']) { + F8 = new MeasuringAuxiliaryComponents({ + 'image': B5 + },cs); + } + } + var F9 = undefined; + var Fa = undefined; + var Fb = ![]; + var Fc = []; + var Fd = undefined; + var Fe = '右' + doo(0x169) + '量'; + if (cs['defaults']['language']['toLowerCase']() == doh(0x23)) + Fe = doj(0x73); + if (cs['defaults'][dol(0x355)]['toLowerCase']() == 'z' + doo(0x16a) + 'w') + Fe = '右' + doo(0x16b) + '測'; + if (cs['isMobile']()) { + Fe = '长' + doo(0x16c) + '量'; + if (cs['defaults']['language'][dol(0x356)]() == doh(0x24)) + Fe = 'L' + doo(0x16d) + 'h'; + if (cs['defaults']['language'][dol(0x357)]() == 'z' + doo(0x16e) + 'w') + Fe = '長' + doo(0x16f) + '測'; + } + if (F6) { + var Ff = !![]; + cs['Public']['event']('R' + doo(0x170) + 'N', function() { + Ff = ![]; + }); + cs[dol(0x358)]['event']('R' + doo(0x171) + 'P', function() { + Ff = !![]; + }); + cs['Public']['event']('L' + doo(0x172) + 'N', function() { + Ff = ![]; + }); + cs[dol(0x359)]['event']('L' + doo(0x173) + 'P', function() { + Ff = !![]; + }); + cs['Public']['event']('M' + doo(0x174) + 'E', function(Fg) { + if (Ff) { + var Fh = cs['funcPublic']['pickPosition'](Fg['endPosition'], cs['viewer']); + if (Cesium['defined'](Fh['type']) && Fh[dol(0x35a)] == 0x1) { + Fd = cs['funcPublic']['calculateVertex'](Fg['endPosition'], Fh['position'], cs); + if (Cesium['defined'](Fd)) { + if (F8) + F8['updateData']({ + 'cartesian': Fd, + 'isPlane': ![], + 'isVertex': !![] + }); + cs[dol(0x35b)]['container']['style']['cursor'] = B7; + } else { + if (F8) + cs['Feature']['getFaceAndNormal'](Fg['endPosition'], function(Fi) { + if (Fi) { + F8['updateData']({ + 'cartesian': Fh['position'], + 'planeNormal': Fi['FaceNormal'], + 'isPlane': !![], + 'isVertex': ![] + }); + } + }); + cs['viewer']['container']['style']['cursor'] = B6; + } + } else { + if (F8) + F8['updateData']({ + 'isPlane': ![], + 'isVertex': ![] + }); + cs['viewer']['container']['style']['cursor'] = B6; + } + } + cs[dol(0x35c)]['style']['display'] = 'b' + doo(0x175) + 'k'; + cs['nameOverlay']['style']['bottom'] = cs['viewer']['canvas']['clientHeight'] - Fg['endPosition']['y'] + doh(0x25); + cs['nameOverlay']['style']['left'] = Fg['endPosition']['x'] + doh(0x26); + if (Fc['length'] > 0x2) { + cs['nameOverlay']['textContent'] = Fe; + } + }); + } else { + cs['Public']['event']('M' + doo(0x176) + 'E', function(Fj) { + cs['nameOverlay']['style'][dol(0x35d)] = 'b' + doo(0x177) + 'k'; + cs['nameOverlay']['style']['bottom'] = cs['viewer']['canvas']['clientHeight'] - Fj['endPosition']['y'] + doh(0x27); + cs['nameOverlay']['style']['left'] = Fj['endPosition']['x'] + doh(0x28); + if (Fc['length'] > 0x2) { + cs['nameOverlay']['textContent'] = Fe; + } + }); + } + var Fk = 0x0; + var Fl = null; + var Fm; + cs['Public']['event']('L' + doo(0x178) + 'K', function(Fn) { + cs['nameOverlay']['style']['display'] = 'n' + doo(0x179) + 'e'; + var Fo = cs['funcPublic']['pickPosition'](Fn['position'], cs['viewer']); + if (Cesium['defined'](Fo['type']) && Fo[dol(0x35e)] == 0x1) { + F9 = 'O' + doo(0x17a) + 'l'; + if (!F6) { + if (Cesium['defined'](Fd)) + Cesium['Cartesian3']['clone'](Fd, Fo['position']); + } else { + var Fp = cs['viewer']['scene']['pick'](Fn['position']); + var Fq; + if (Fp && Cesium['defined'](Fp) && Fp instanceof Cesium['Cesium3DTileFeature']) { + Fq = Fp['getProperty']('n' + doo(0x17b) + 'e'); + if (!Cesium['defined'](Fq)) { + Fq = Fp['getProperty'](doh(0x29)); + } + cs['m_model']['forEach'](function(Fr, Fs) { + if (Fr['id'] === Fp['tileset']['id']) { + cs['tileset'] = Fr; + Fq = Fs + '^' + Fq; + } + }); + var Ft = 0.02; + var Fu = cs['Feature']['getVertex'](Fq); + if (Fu['length'] > 0x0) { + var Fv = []; + var Fw = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var Fx = cs['tileset']['root'][dol(0x35f)]; + for (var q = 0x0; q < Fu['length'] / 0x3; q++) { + var Fz = new Cesium['Cartesian3'](Fu[q * 0x3],Fu[q * 0x3 + 0x1],Fu[q * 0x3 + 0x2]); + if (Fz) { + Cesium['Matrix4'][dol(0x360)](Fx, Fz, Fz); + Cesium['Matrix4']['multiplyByPoint'](Fw, Fz, Fz); + } + var FA = Cesium['Cartesian3']['subtract'](Fo['position'], Fz, new Cesium['Cartesian3']()); + if (Math['abs'](FA['x']) < Ft && Math['abs'](FA['y']) < Ft && Math['abs'](FA['z']) < Ft) { + Fv['push'](Fz); + } + } + var FB = undefined; + for (var q = 0x0; q < Fv[dol(0x361)]; q++) { + var FD = Cesium[dol(0x362)]['distance'](Fo['position'], Fv[q]); + if (FD < Ft) { + Ft = FD; + FB = Fv[q]; + } + } + if (Cesium[dol(0x363)](FB)) + Cesium[dol(0x364)]['clone'](FB, Fo[dol(0x365)]); + } + } + } + } else { + F9 = 'O' + doo(0x17c) + 'h'; + if (!cs['defaults']['openearth']) { + return; + } + } + if (!Fb) { + Fb = !![]; + Fa = F9; + } + if (Fa === F9) { + if (Fo['type'] !== cs['PositionType']['NONE']) { + Fc['push'](Fo['position']['clone']()); + } + var Fm = cs['viewer']['entities']['add']({ + 'position': Fc[Fc['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Fm); + } + cs['viewer']['scene']['requestRender'](); + }); + cs['Public']['event']('R' + doo(0x17d) + 'K', function(FF) { + FJ(); + }); + cs['Public']['event']('P' + doo(0x17e) + 'T', function(FG) { + FJ(); + }); + cs['Public']['event']('P' + doo(0x17f) + 'E', function(FH) { + FJ(); + }); + cs['Public']['event']('P' + doo(0x180) + 'D', function(FI) { + FJ(); + }); + function FJ() { + if (Fc['length'] > 0x2) { + if (cs['viewer']['scene']['globe']) { + if (Fa == 'O' + doo(0x181) + 'h' || Fa == '' || Fa == undefined) { + var FK = cs['viewer']['entities']['add']({ + 'polygon': { + 'hierarchy': new Cesium['PolygonHierarchy'](Fc), + 'material': Cesium['Color']['ORANGE']['withAlpha'](0.5), + 'outline': !![], + 'outlineColor': Cesium['Color']['BLACK'], + 'classificationType': 0x0 + } + }); + cs['tempEntities']['push'](FK); + } else { + Fc['push'](Fc[0x0]); + var FL = cs['viewer']['scene']['primitives']['add'](cs[dol(0x366)][dol(0x367)](Fc, cs['viewer'])); + cs['tempPrimitives']['push'](FL); + } + } else { + Fc[dol(0x368)](Fc[0x0]); + var FM = cs['viewer']['entities']['add']({ + 'polyline': { + 'show': !![], + 'positions': Fc, + 'material': new Cesium['PolylineOutlineMaterialProperty']({ + 'color': Cesium['Color']['YELLOW'] + }), + 'width': 0x3 + } + }); + cs['tempEntities']['push'](FM); + } + var Fm = cs['viewer']['entities']['add']({ + 'position': Fc[Fc['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Fm); + var FO = ''; + var Fk = cs['funcPublic']['calcArea3D'](Fc); + if (Fk < 0x0) + Fk *= -0x1; + Fk = cs['funcPublic']['round'](Fk, 0x2); + FO = Fk + doh(0x2a); + if (F5) { + var FQ; + var FR = cs['funcPublic']['getCartesian3ListCenter'](Fc); + var FS = cs[dol(0x369)]['scene']['globe']['ellipsoid']['cartesianToCartographic'](FR); + if (cs['viewer']['scene']['globe'] && F9 != 'O' + doo(0x182) + 'l') { + FQ = Cesium['Cartesian3']['fromDegrees'](Cesium['Math']['toDegrees'](FS['longitude']), Cesium['Math']['toDegrees'](FS['latitude']), FS['height'] + 0.1); + } else { + FQ = Cesium['Cartesian3']['fromDegrees'](Cesium['Math']['toDegrees'](FS['longitude']), Cesium['Math']['toDegrees'](FS['latitude']), FS['height']); + } + var FT = cs['viewer']['entities']['add']({ + 'position': FQ, + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': FO, + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x183) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium[(dol(0x36a))](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](FT); + } + if (!isEmpty(F4)) { + F4({ + 'points': cs['funcPublic']['outCartesian3ToRadianArr'](Fc, cs['viewer']), + 'area': Fk + }); + } + Fc = []; + cs['nameOverlay']['textContent'] = ''; + cs['nameOverlay']['style']['display'] = 'n' + doo(0x184) + 'e'; + Fb = ![]; + Fa = undefined; + cs['viewer']['scene']['requestRender'](); + } + } + } catch (FU) { + aCe('错' + doo(0x185) + ':' + FU); + } + }, + 'featureArea': function(FV, FW) { + try { + + if (!cs['viewer']['scene']['_context']['_webgl2']) { + aCe('w' + doo(0x186) + '!'); + return; + } + var FX = cs['funcPublic']['disposeFeatureId'](FV); + var FY = FX[0x0]['toString'](); + if (cs['m_model'][dol(0x36b)](FY) === undefined) { + throw doj(0x74); + } + cs['tileset'] = cs['m_model']['get'](FY); + var FZ = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4'][dol(0x36c)]); + var G0 = cs['tileset']['root']['transform']; + var G1 = cs['Feature'][dol(0x36d)](FV); + var G2 = []; + for (var q = 0x0; q < G1['length']; q = q + 0x3) { + var G4 = new Cesium['Cartesian3'](G1[q],G1[q + 0x1],G1[q + 0x2]); + if (G4) { + Cesium['Matrix4']['multiplyByPoint'](G0, G4, G4); + Cesium['Matrix4']['multiplyByPoint'](FZ, G4, G4); + } + G2['push'](G4); + } + var G5 = 0x0; + var G6 = Math['floor'](G2['length'] / 0x3); + for (var q = 0x0; q < G6; q++) { + var G8 = G9(G2[q * 0x3 + 0x2], G2[q * 0x3 + 0x1], G2[q * 0x3]); + G5 += G8; + } + if (!isEmpty(FW)) { + FW(G5['toFixed'](0x3)); + } + cs['viewer']['scene']['requestRender'](); + function G9(Ga, Gb, Gc) { + var q = Gh(Ga, Gb); + var Ge = Gh(Ga, Gc); + var Gf = Gh(Gb, Gc); + var Gg = (q + Ge + Gf) / 0x2; + return Math['sqrt'](Gg * (Gg - q) * (Gg - Ge) * (Gg - Gf)); + } + function Gh(Gi, Gj) { + return Cesium['Cartesian3']['distance'](Gi, Gj); + } + } catch (Gk) { + aCe('错' + doo(0x187) + ':' + Gk); + } + }, + 'featureVolume': function(Gl, Gm) { + try { + + if (!cs['viewer']['scene']['_context']['_webgl2']) { + aCe('w' + doo(0x188) + '!'); + return; + } + var Gn = cs['funcPublic']['disposeFeatureId'](Gl); + var Go = Gn[0x0]['toString'](); + if (cs['m_model']['get'](Go) === undefined) { + throw doj(0x75); + } + cs['tileset'] = cs['m_model'][dol(0x36e)](Go); + var Gp = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var Gq = cs['tileset'][dol(0x36f)]['transform']; + var Gr = cs['Feature']['getVertex'](Gl); + var Gs = []; + for (var q = 0x0; q < Gr['length'] / 0x3; q++) { + var Gu = new Cesium['Cartesian3'](Gr[q * 0x3],Gr[q * 0x3 + 0x1],Gr[q * 0x3 + 0x2]); + Gs['push'](Gu); + } + var Gv = 0x0; + for (var q = 0x0; q < Gs['length'] / 0x3; q++) { + var Gx = Gy(Gs[q * 0x3], Gs[q * 0x3 + 0x1], Gs[q * 0x3 + 0x2]); + Gv += Gx; + } + if (!isEmpty(Gm)) { + Gm(Math['abs'](Gv['toFixed'](0x3))); + } + cs['viewer']['scene']['requestRender'](); + function Gy(Gz, GA, GB) { + var GC = Gz['x'] + , GD = GA['x'] + , GE = GB['x']; + var GF = Gz['y'] + , GG = GA['y'] + , GH = GB['y']; + var GI = Gz['z'] + , GJ = GA['z'] + , GK = GB['z']; + return (-GE * GG * GI + GD * GH * GI + GE * GF * GJ - GC * GH * GJ - GD * GF * GK + GC * GG * GK) / 0x6; + } + } catch (GL) { + aCe('错' + doo(0x189) + ':' + GL); + } + }, + 'radius': function(GM) { + try { + + cs['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + var GN = []; + var GO = []; + var GP = 0x0; + bK = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bK['setInputAction'](function(GQ) { + var GR; + var GS = cs['viewer'][dol(0x370)]['camera']['getPickRay'](GQ['position']); + if (GS) + GR = cs['viewer']['scene']['globe']['pick'](GS, cs['viewer']['scene']); + if (GR) { + var GT = Cesium['Cartographic']['fromCartesian'](GR); + var GU = Cesium['Math']['toDegrees'](GT['longitude']); + var GV = Cesium['Math']['toDegrees'](GT['latitude']); + var GW = cs['viewer']['scene']['globe']['getHeight'](GT); + var GX = Cesium['Cartesian3']['fromDegrees'](GU, GV, GW); + GO['push'](GX); + GN['push']({ + 'lon': GU, + 'lat': GV + }); + var GY = GN['length']; + if (GY == 0x1) { + var GZ = cs['viewer']['entities'][dol(0x371)]({ + 'position': GO[0x0], + 'point': { + 'show': !![], + 'color': Cesium['Color']['SKYBLUE'], + 'pixelSize': 0x3, + 'outlineColor': Cesium['Color']['YELLOW'], + 'outlineWidth': 0x1 + } + }); + cs['tempEntities']['push'](GZ); + } else if (GY == 0x2) { + var GZ = cs['viewer']['entities']['add']({ + 'position': GO[0x1], + 'point': { + 'show': !![], + 'color': Cesium[dol(0x372)]['SKYBLUE'], + 'pixelSize': 0x3, + 'outlineColor': Cesium['Color']['YELLOW'], + 'outlineWidth': 0x1 + } + }); + cs['tempEntities']['push'](GZ); + var H1 = cs['viewer']['entities']['add']({ + 'polyline': { + 'show': !![], + 'positions': GO, + 'material': new Cesium[(dol(0x373))]({ + 'color': Cesium['Color']['YELLOW'] + }), + 'width': 0x2 + } + }); + cs['tempEntities']['push'](H1); + var H2 = Cesium['Cartesian3']['distance'](GO[0x0], GO[0x1]); + var H3 = cs['viewer']['entities']['add']({ + 'position': GX, + 'ellipse': { + 'show': !![], + 'semiMinorAxis': H2, + 'semiMajorAxis': H2, + 'height': 0x1, + 'material': Cesium['Color']['fromRandom']({ + 'alpha': 0.8 + }), + 'heightReference': Cesium['HeightReference']['CLAMP_TO_GROUND'] + } + }); + cs['tempEntities']['push'](H3); + GP = Math['abs'](Math['PI'] * H2 * H2)['toFixed'](0x2); + setTimeout(function() { + var H3 = cs['viewer']['entities']['add']({ + 'name': doh(0x2b), + 'position': GX, + 'label': { + 'text': 'A' + doo(0x18a) + '\x20' + GP + doh(0x2c), + 'font': '1' + doo(0x18b) + 'e', + 'color': Cesium['Color']['RED'], + 'backgroundColor': Cesium['Color']['CORAL'], + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'outlineWidth': 0x2, + 'heightReference': Cesium['HeightReference']['NONE'], + 'verticalOrigin': Cesium['VerticalOrigin']['Bottom'], + 'pixelOffset': new Cesium['Cartesian2'](0x19,-0x19) + } + }); + cs['tempEntities']['push'](H3); + }, 0x1f4); + if (!isEmpty(GM)) { + GM({ + 'start': cs['funcPublic']['outCartesian3ToRadian'](GO[0x0], cs['viewer']), + 'last': cs['funcPublic']['outCartesian3ToRadian'](GO[0x1], cs['viewer']), + 'area': GP + }); + } + GN = []; + GO = []; + } + } + cs[dol(0x374)][dol(0x375)]['requestRender'](); + }, Cesium[dol(0x376)]['LEFT_CLICK']); + } catch (H5) { + aCe('错' + doo(0x18c) + ':' + H5); + } + }, + 'altitude': function(H6, H7) { + try { + + var H8 = undefined; + var H9 = undefined; + var Ha = 0x0; + var Hb = null; + var Hc; + cs['Public']['event']('L' + doo(0x18d) + 'K', function(Hd) { + var H8 = cs['funcPublic']['pickPosition'](Hd['position'], cs['viewer']); + if (H8['type'] !== cs[dol(0x377)]['NONE']) { + Hc = cs['viewer']['entities'][dol(0x378)]({ + 'position': H8['position'], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities'][dol(0x379)](Hc); + var Hf = cs['funcPublic']['outCartesian3ToRadian'](H8[dol(0x37a)], cs['viewer']); + if (H7) { + var Hg = Hf[0x2][dol(0x37b)](0x2) + 'm'; + var Hh = cs['viewer']['entities']['add']({ + 'position': H8['position'], + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': Hg, + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x18e) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](Hh); + } + if (!isEmpty(H6)) { + H6({ + 'position': Hf, + 'height': Hf[0x2]['toFixed'](0x2) + }); + } + cs['viewer']['scene']['requestRender'](); + } + }); + cs['Public']['event']('R' + doo(0x18f) + 'K', function(Hi) { + cs['Public']['clearHandler'](); + }); + } catch (Hj) { + aCe('错' + doo(0x190) + ':' + Hj); + } + }, + 'clearAllTrace': function() { + try { + + for (var Hk = 0x0; Hk < cs['tempEntities']['length']; Hk++) { + cs['viewer']['entities']['remove'](cs[dol(0x37c)][Hk]); + } + for (var Hk = 0x0; Hk < cs['tempPrimitives']['length']; Hk++) { + cs['viewer']['scene']['primitives']['remove'](cs['tempPrimitives'][Hk]); + } + cl['forEach']( (Hm, Hn) => { + cs['viewer']['scene']['primitives']['remove'](Hm); + if (Cesium['defined'](Hm)) + cl['splice'](Hn, 0x1); + } + ); + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x191) + 's', cs['viewer']); + cs[dol(0x37d)]['entities']['removeById']('o' + doo(0x192) + 's'); + cs['Feature']['clearSelectColor'](); + cs['tempEntities'] = []; + cs['tempPrimitives'] = []; + cs['funcPublic']['clearBOX23line'](cs['viewer']); + cs[dol(0x37e)]['scene']['CAD_measure_lines'] && cs[dol(0x37f)]['scene'][dol(0x380)]['remove'](cs['viewer'][dol(0x381)]['CAD_measure_lines']); + cs['viewer']['scene'][dol(0x382)] = undefined; + cs['viewer']['scene']['requestRender'](); + } catch (Ho) { + aCe('错' + doo(0x193) + ':' + Ho); + } + }, + 'exit': function() { + try { + + cs['Public']['clearHandler'](); + if (Cesium['defined'](cs['MeasuringAuxiliaryComponents'])) { + cs['MeasuringAuxiliaryComponents']['clear'](); + cs['MeasuringAuxiliaryComponents'] = undefined; + } + cs[dol(0x383)]['container']['style']['cursor'] = ''; + } catch (Hp) { + aCe('错' + doo(0x194) + ':' + Hp); + } + }, + 'submergeFill': function(Hq, Hr, Hs) { + try { + + if (!Cesium['defined'](Hs)) + Hs = 0x1; + Hq = Number(Hq); + if (Hq > 0x0) { + Hy(); + } else { + var Ht = []; + cs['Public']['event']('L' + doo(0x195) + 'K', function(Hu) { + var Hv = cs['funcPublic']['pickPosition'](Hu['position'], cs['viewer']); + if (Hv['type'] !== cs['PositionType']['NONE']) { + Ht['push'](Hv['position']); + var Hw = cs['viewer']['entities']['add']({ + 'position': Hv['position'], + 'point': { + 'show': !![], + 'color': Cesium['Color']['SKYBLUE'], + 'pixelSize': 0x3, + 'outlineColor': Cesium['Color']['YELLOW'], + 'outlineWidth': 0x1 + } + }); + cs['tempEntities']['push'](Hw); + } + if (Hv['type'] === 0x1 && Hs === 0x1) + Hs = 0x5; + cs['viewer']['scene']['requestRender'](); + }); + cs['Public']['event']('R' + doo(0x196) + 'K', function(Hx) { + cs['Public']['clearHandler'](); + Hy(Ht); + Ht = []; + cs['viewer']['scene']['requestRender'](); + }); + } + function Hy(Hz) { + if (Hq > 0x0) { + this['jzmHeight'] = Hq, + this['entityPQM'] && this['entityWell'] && HQ(); + return ![]; + } + this['positions'] = Hz; + var HA = new CutFillAnalysis(cs['viewer'],Hz,Hq,Hs * 0x64); + var HB = HA['VolumeAnalysis'](); + this['squareResult'] = HB; + this['maxHeight'] = HB['maxHeight'], + this['minHeight'] = HB['minHeight'], + this['jzmHeight'] = HB['height']; + HH(); + var HC = this; + this['entityPQM'] = cs[dol(0x384)]['entities'][dol(0x385)]({ + 'polygon': { + 'hierarchy': new Cesium[(dol(0x386))](Hz), + 'height': new Cesium['CallbackProperty'](function(Hz, HB) { + return HC['jzmHeight']; + } + ,![]), + 'material': new Cesium['Color']['fromCssColorString']('#' + doo(0x197) + '0')['withAlpha'](0.5), + 'outline': !![], + 'outlineColor': new Cesium['Color']['fromCssColorString']('#' + doo(0x198) + 'a')[dol(0x387)](0.4), + 'outlineWidth': 0x1 + }, + 'show': !![] + }), + cs['tempEntities']['push'](this['entityPQM']); + this['entityWell'] = cs['viewer']['entities']['add']({ + 'polygon': { + 'hierarchy': new Cesium[(dol(0x388))](Hz), + 'extrudedHeight': HC['maxHeight'], + 'closeTop': ![], + 'height': HC['minHeight'], + 'closeBottom': ![], + 'material': new Cesium['Color']['fromCssColorString']('#' + doo(0x199) + '2')['withAlpha'](0.2), + 'outline': !![], + 'outlineColor': new Cesium['Color']['fromCssColorString']('#' + doo(0x19a) + 'a')['withAlpha'](0.4), + 'outlineWidth': 0x1 + } + }), + cs['tempEntities']['push'](this['entityWell']); + this['entitieLbl'] && cs['viewer']['entities']['remove'](this['entitieLbl']); + var HF = ''; + this['squareResult']['fillVolume'] > 0x0 && (HF += '填' + doo(0x19b) + ':' + HO(this['squareResult']['fillVolume']) + ('立' + doo(0x19c) + '\x0a')), + this['squareResult']['cutVolume'] > 0x0 && (HF += '挖' + doo(0x19d) + ':' + HO(this['squareResult'][dol(0x389)]) + doh(0x2d)); + var HG = { + 'text': HF, + 'fillColor': Cesium['Color']['YELLOW'], + 'outlineColor': Cesium['Color']['BLACK'], + 'backgroundColor': Cesium['Color']['BLACK']['withAlpha'](0.5), + 'showBackground': !![], + 'style': Cesium['LabelStyle']['FILL'], + 'outlineWidth': 0x3, + 'scaleByDistance': !![], + 'font': '1' + doo(0x19e) + 'f', + 'scaleByDistance': new Cesium['NearFarScalar'](0x3e8,0x1,0xc3500,0.5), + 'pixelOffset': new Cesium['Cartesian2'](0x0,-0x41), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'], + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'] + }; + this['result'] = { + 'height': this['squareResult']['height'], + 'minHeight': this['squareResult']['minHeight'], + 'maxHeight': this['squareResult']['maxHeight'], + 'allArea': this['squareResult']['allArea'], + 'cutArea': this['squareResult']['cutArea'], + 'cutVolume': this['squareResult']['cutVolume'], + 'fillArea': this['squareResult']['fillArea'], + 'fillVolume': this['squareResult']['fillVolume'] + }; + this['entitieLbl'] = cs['viewer']['entities']['add']({ + 'position': this['squareResult']['tdposs'][this['squareResult']['tdposs']['length'] - 0x1], + 'label': HG + }), + Hr && Hr(this['result']); + cs['tempEntities']['push'](this['entitieLbl']); + function HH() { + for (var HI = [], Hz = 0x0, HK = this['squareResult']['tdHeights']['length']; Hz < HK; Hz++) { + var HL = this['squareResult']['tdHeights'][Hz] + , HC = doh(0x2e) + HL[dol(0x38a)](0x1) + '米'; + var HG = { + 'text': HC, + 'fillColor': Cesium['Color']['WHITE'], + 'outlineColor': Cesium['Color']['BLACK'], + 'showBackground': ![], + 'style': Cesium['LabelStyle']['FILL'], + 'outlineWidth': 0x3, + 'scaleByDistance': !![], + 'font': '1' + doo(0x19f) + 'f', + 'scaleByDistance': new Cesium['NearFarScalar'](0x3e8,0x1,0xc3500,0.5), + 'pixelOffset': new Cesium['Cartesian2'](0x0,-0xf), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'], + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'] + }; + u = cs['viewer']['entities']['add']({ + 'position': this['squareResult']['tdposs'][Hz], + 'label': HG + }); + cs[dol(0x38b)]['push'](u); + } + } + function HO(Hz) { + return Hz > 0x2710 ? (Hz / 0x2710)['toFixed'](0x2) + '万' : Hz['toFixed'](0x2); + } + function HQ() { + var HA = new CutFillAnalysis(cs['viewer'],this['positions'],this['jzmHeight'],Hs * 0x64); + var HB = HA['VolumeAnalysis'](); + this['squareResult'] = HB; + if (this['squareResult']) { + this['entitieLbl'] && cs['viewer']['entities']['remove'](this['entitieLbl']); + var HF = ''; + this['squareResult']['fillVolume'] > 0x0 && (HF += '填' + doo(0x1a0) + ':' + HO(this['squareResult']['fillVolume']) + ('立' + doo(0x1a1) + '\x0a')), + this['squareResult']['cutVolume'] > 0x0 && (HF += '挖' + doo(0x1a2) + ':' + HO(this['squareResult']['cutVolume']) + doh(0x2f)); + var HG = { + 'text': HF, + 'fillColor': Cesium['Color']['YELLOW'], + 'outlineColor': Cesium['Color']['BLACK'], + 'backgroundColor': Cesium['Color']['BLACK']['withAlpha'](0.5), + 'showBackground': !![], + 'style': Cesium['LabelStyle']['FILL'], + 'outlineWidth': 0x3, + 'scaleByDistance': !![], + 'font': '1' + doo(0x1a3) + 'f', + 'scaleByDistance': new Cesium['NearFarScalar'](0x3e8,0x1,0xc3500,0.5), + 'pixelOffset': new Cesium[(dol(0x38c))](0x0,-0x41), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'], + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'] + }; + this['result'] = { + 'height': this['squareResult']['height'], + 'minHeight': this['squareResult']['minHeight'], + 'maxHeight': this['squareResult']['maxHeight'], + 'allArea': this['squareResult']['allArea'], + 'cutArea': this['squareResult']['cutArea'], + 'cutVolume': this['squareResult']['cutVolume'], + 'fillArea': this['squareResult']['fillArea'], + 'fillVolume': this['squareResult']['fillVolume'] + }; + this['entitieLbl'] = cs['viewer']['entities'][dol(0x38d)]({ + 'position': this['squareResult']['tdposs'][this['squareResult']['tdposs'][dol(0x38e)] - 0x1], + 'label': HG + }), + Hr && Hr(this['result']); + cs['tempEntities']['push'](this['entitieLbl']); + } + } + } + } catch (HV) { + aCe('错' + doo(0x1a4) + ':' + HV); + } + } + }; + this['Label'] = { + 'addTextByScreenCoordinates': function(HW, HX, HY, HZ, I0, I1, I2, I3) { + try { + + if (!isEmpty(HX)) { + if (!isEmpty(HW)) { + var I4; + var I5 = cs['funcPublic'][dol(0x38f)](HW, cs['viewer']); + if (Cesium['defined'](I5['type']) && I5['type'] == 0x1) {} else { + if (!cs['defaults']['openearth']) { + return; + } + } + if (I5['type'] !== cs['PositionType']['NONE']) { + I4 = I5['position']; + } + if (!Cesium['defined'](cs['labels'])) { + cs['labels'] = cs['viewer']['scene']['primitives']['add'](new Cesium['LabelCollection']()); + } + cs['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + var I6 = !![]; + if (Cesium['defined'](I4)) { + if (isEmpty(HY)) { + HY = Cesium['Color']['WHITE']; + } + if (isEmpty(HZ)) { + HZ = Cesium['Color']['fromCssColorString']('#' + doo(0x1a5) + 'F'); + I6 = ![]; + } + if (isEmpty(I0)) { + I0 = doh(0x30); + } + if (isEmpty(I1)) { + I1 = cs['funcPublic']['genID'](0x6); + } + if (isEmpty(I3)) { + I3 = 0x3e8; + } + cs['labels']['add']({ + 'position': I4, + 'id': I1, + 'text': HX, + 'fillColor': HY, + 'outlineColor': Cesium['Color']['BLACK'], + 'backgroundColor': HZ, + 'showBackground': I6, + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'outlineWidth': 0x1, + 'font': I0 + ('p' + doo(0x1a6) + 'f'), + 'horizontalOrigin': Cesium['HorizontalOrigin']['LEFT'], + 'verticalOrigin': Cesium['VerticalOrigin']['CENTER'], + 'pixelOffset': new Cesium['Cartesian2'](0x0,-0x14), + 'distanceDisplayCondition': new Cesium['DistanceDisplayCondition'](0x0,I3), + 'disableDepthTestDistance': I3 + }); + cs['viewer']['scene']['requestRender'](); + if (!isEmpty(I2)) { + I2(cs['funcPublic']['outCartesian3ToRadian'](I4, cs['viewer'])); + } + } + } + } + } catch (I7) { + aCe('错' + doo(0x1a7) + ':' + I7); + } + }, + 'addText': function(I8, I9, Ia, Ib, Ic, Ie, If) { + try { + + cs['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + if (!Cesium['defined'](cs['labels'])) { + cs['labels'] = cs['viewer']['scene']['primitives']['add'](new Cesium['LabelCollection']()); + } + var Ig = cs['funcPublic']['inputRadianToCartesian3'](I8, cs['viewer']); + var Ih = !![]; + if (Cesium['defined'](Ig)) { + if (isEmpty(Ia)) { + Ia = Cesium[dol(0x390)]['WHITE']; + } + if (isEmpty(Ib)) { + Ib = Cesium['Color']['fromCssColorString']('#' + doo(0x1a8) + 'F'); + Ih = ![]; + } + if (isEmpty(Ic)) { + Ic = doh(0x31); + } + if (isEmpty(Ie)) { + Ie = cs['funcPublic']['genID'](0x6); + } + if (isEmpty(If)) { + If = 0x3e8; + } + cs[dol(0x391)]['add']({ + 'position': Ig, + 'id': Ie, + 'text': I9, + 'fillColor': Ia, + 'outlineColor': Cesium['Color']['BLACK'], + 'backgroundColor': Ib, + 'showBackground': Ih, + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'outlineWidth': 0x1, + 'font': Ic + ('p' + doo(0x1a9) + 'f'), + 'horizontalOrigin': Cesium['HorizontalOrigin']['LEFT'], + 'verticalOrigin': Cesium['VerticalOrigin']['CENTER'], + 'pixelOffset': new Cesium['Cartesian2'](0x0,-0x14), + 'distanceDisplayCondition': new Cesium[(dol(0x392))](0x0,If), + 'disableDepthTestDistance': If + }); + cs['viewer']['scene']['requestRender'](); + } + } catch (Ii) { + aCe('错' + doo(0x1aa) + ':' + Ii); + } + }, + 'addIconByScreenCoordinates': function(Ij, Ik, Il, Im, In, Io, Ip) { + try { + + cs['viewer']['scene'][dol(0x393)]['depthTestAgainstTerrain'] = ![]; + if (!isEmpty(Ij)) { + if (!Cesium[dol(0x394)](cs[dol(0x395)])) { + cs['billboards'] = cs['viewer']['scene']['primitives']['add'](new Cesium['BillboardCollection']()); + } + if (isEmpty(Io)) { + Io = 0x1; + } + if (isEmpty(Ip)) { + Ip = 0x3e8; + } + var Iq; + var Ir = cs['funcPublic']['pickPosition'](Ij, cs['viewer']); + if (Cesium['defined'](Ir['type']) && Ir['type'] == 0x1) {} else { + if (!cs['defaults']['openearth']) { + return; + } + } + if (isEmpty(Im)) { + Im = cs['funcPublic']['genID'](0x6); + } + if (Ir['type'] !== cs['PositionType'][dol(0x396)] && !isEmpty(Ir['position'])) { + Iq = Ir[dol(0x397)]; + cs['billboards']['add']({ + 'position': Iq, + 'id': Im, + 'image': Ik == '' ? cs['pinBuilder']['fromColor'](Il, 0x30)['toDataURL']() : cs['pinBuilder']['fromText'](Ik, Il, 0x40)[dol(0x398)](), + 'disableDepthTestDistance': Ip, + 'distanceDisplayCondition': new Cesium['DistanceDisplayCondition'](0x0,Ip), + 'scale': Io + }); + if (!isEmpty(In)) { + In(cs[dol(0x399)]['outCartesian3ToRadian'](Iq, cs['viewer'])); + } + } + cs['viewer']['scene']['requestRender'](); + } + } catch (Is) { + aCe('错' + doo(0x1ab) + ':' + Is); + } + }, + 'addIcon': function(It, Iu, Iv, Iw, Ix, Iy) { + try { + + cs['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + var Iz = cs['funcPublic']['inputRadianToCartesian3'](It, cs['viewer']); + if (!Cesium['defined'](cs['billboards'])) { + cs['billboards'] = cs['viewer']['scene']['primitives']['add'](new Cesium['BillboardCollection']()); + } + if (isEmpty(Iw)) { + Iw = cs['funcPublic'][dol(0x39a)](0x6); + } + if (isEmpty(Ix)) { + Ix = 0x1; + } + if (isEmpty(Iy)) { + Iy = 0x3e8; + } + cs['billboards']['add']({ + 'position': Iz, + 'id': Iw, + 'image': Iu == '' ? cs['pinBuilder']['fromColor'](Iv, 0x30)['toDataURL']() : cs['pinBuilder']['fromText'](Iu, Iv, 0x40)['toDataURL'](), + 'disableDepthTestDistance': Iy, + 'distanceDisplayCondition': new Cesium['DistanceDisplayCondition'](0x0,Iy), + 'scale': Ix + }); + cs['viewer']['scene']['requestRender'](); + } catch (IA) { + aCe('错' + doo(0x1ac) + ':' + IA); + } + }, + 'getLableByEvent': function(IB, IC) { + try { + + var IE = cs['viewer']['camera'][dol(0x39b)](IB, cs['viewer']['scene']['globe']['ellipsoid']); + if (IE) { + var IF = cs['viewer']['scene']['pick'](IB); + var IB = cs['viewer']['camera']['pickEllipsoid'](IB); + if (Cesium[dol(0x39c)](IF)) { + if (!isEmpty(cs['labels'])) { + var IH = cs['labels']['length']; + for (var II = 0x0; II < IH; ++II) { + var IJ = cs['labels']['get'](II); + if (IJ['id'] == IF['id']) { + break; + } + } + } + if (!isEmpty(cs['billboards'])) { + var IK = cs['billboards']['length']; + for (var II = 0x0; II < IK; ++II) { + var IJ = cs[dol(0x39d)][dol(0x39e)](II); + if (IJ['id'] == IF['id']) { + break; + } + } + } + } + } + IC(IF); + } catch (IN) { + aCe('错' + doo(0x1ad) + ':' + IN); + } + }, + 'addImage': function(IO, IP, IQ) { + + var IR = doj(0x76); + IO['clone'](bs); + try { + var IS = cs['viewer']['entities']['getById'](IQ); + if (IS != null) { + IS['orientation'] = IP; + } else { + br = cs['viewer']['camera']['frustum']['left']; + cs['viewer'][dol(0x39f)]['add']({ + 'id': IQ, + 'name': IQ, + 'position': new Cesium['CallbackProperty'](function() { + return bs; + } + ,![]), + 'orientation': IP, + 'plane': { + 'plane': new Cesium['Plane'](Cesium[dol(0x3a0)]['UNIT_Z'],0x0), + 'dimensions': new Cesium['Cartesian2'](3.5,2.9), + 'material': new Cesium['ImageMaterialProperty']({ + 'image': IR, + 'transparent': !![] + }) + } + }); + } + cs['viewer']['scene']['requestRender'](); + } catch (IT) { + aCe('错' + doo(0x1ae) + ':' + IT); + } + }, + 'setIconSize2D': function(IU, IV) { + + var IW = IU['tagName']; + var IX = IV['tagName']; + var IY = IV['viewer']['camera']['frustum']['left']; + IV['Label']['changePointSize'](IY, 'P' + doo(0x1af) + '_' + IX); + IV['viewer']['scene']['requestRender'](); + }, + 'changePointSize': function(IZ, J0) { + + var J1 = cs['viewer']['entities']['getById'](J0); + if (J1 != null) { + var J2 = IZ * 3.5 / br; + var J3 = IZ * 2.9 / br; + J1['plane']['dimensions'] = new Cesium['Cartesian2'](J2,J3); + } + cs['viewer']['scene']['requestRender'](); + }, + 'addBalloon': function(bb, J5) { + try { + + var J6 = !![]; + for (var J7 = 0x0; J7 < ce['length']; J7++) { + var J8 = ce[J7]; + if (!isEmpty(J8)) { + if (bb['id'] == J8['_id']) { + J8['show'](); + J6 = ![]; + break; + } + } + } + if (J6) { + var J8 = new PostilLable(bb,cs); + if (!isEmpty(J8['_canvas'])) { + ce['push'](J8); + if (!isEmpty(J5)) { + J5(cs['funcPublic'][dol(0x3a1)](J8['returnVal'](), cs['viewer'])); + } + } + } + cs[dol(0x3a2)][dol(0x3a3)]['requestRender'](); + } catch (Ja) { + aCe('错' + doo(0x1b0) + ':' + Ja); + } + }, + 'getBalloonById': function(Jb) { + try { + + for (var Jc = 0x0; Jc < ce['length']; Jc++) { + var Jd = ce[Jc]; + if (!isEmpty(Jd)) { + if (Jd['_data']['id'] == Jb) { + return Jd['_data']; + } + } + } + return undefined; + } catch (Je) { + aCe('错' + doo(0x1b1) + ':' + Je); + } + }, + 'setBalloonVisible': function(Jf, Jg) { + try { + + for (var Jh = 0x0; Jh < ce['length']; Jh++) { + var Ji = ce[Jh]; + if (!isEmpty(Ji)) { + if (Ji['_data']['id'] == Jf) { + if (Jg) { + if (!Ji['_data']['open']) + Ji['_data']['open'] = !![]; + Ji['show'](); + } else { + if (Ji['_data']['open']) + Ji['_data']['open'] = ![]; + Ji['hide'](); + } + break; + } + } + } + cs['viewer']['scene']['requestRender'](); + return 0x0; + } catch (Jj) { + aCe('错' + doo(0x1b2) + ':' + Jj); + } + }, + 'removeBalloon': function(Jk) { + try { + + var Jl = 0x1; + if (Jk == 0x0) { + for (var Jm = 0x0; Jm < ce[dol(0x3a4)]; Jm++) { + var Jn = ce[Jm]; + Jn['clear'](); + } + ce = []; + Jl = 0x0; + } else { + for (var Jm = 0x0; Jm < ce[dol(0x3a5)]; Jm++) { + var Jn = ce[Jm]; + if (!isEmpty(Jn)) { + if (Jn['_data']['id'] == Jk) { + Jn['clear'](); + ce['splice'](Jm, 0x1); + Jm--; + Jl = 0x0; + break; + } + } + } + } + cs['viewer']['scene']['requestRender'](); + return Jl; + } catch (Jq) { + aCe('错' + doo(0x1b3) + ':' + Jq); + } + }, + 'getBalloonByEvent': function(Jr) { + try { + + for (var Js = 0x0; Js < ce['length']; Js++) { + var Jt = ce[Js]; + if (!isEmpty(Jt)) { + if (isEmpty(Jt['bindEvent'])) { + Jt['_canvas']['addEventListener']('c' + doo(0x1b4) + 'k', Jt['clickEvent']['bind'](Jt, Jr)); + Jt['bindEvent'] = 0x1; + } + } + } + } catch (Ju) { + aCe('错' + doo(0x1b5) + ':' + Ju); + } + }, + 'getTextById': function(Jv) { + try { + + if (Jv != 0x0) { + if (!isEmpty(cs['labels'])) { + var Jw = cs['labels']['length']; + for (var Jx = 0x0; Jx < Jw; ++Jx) { + var Jy = cs[dol(0x3a6)]['get'](Jx); + if (Jy['id'] == Jv) { + return Jy; + } + } + return undefined; + } + } else { + return cs['labels']; + } + } catch (Jz) { + aCe('错' + doo(0x1b6) + ':' + Jz); + } + }, + 'getIconById': function(JA) { + try { + + if (JA != 0x0) { + if (!isEmpty(cs['billboards'])) { + var JB = cs['billboards']['length']; + for (var JC = 0x0; JC < JB; ++JC) { + var JD = cs['billboards']['get'](JC); + if (JD['id'] == JA) { + return JD; + } + } + return undefined; + } + } else { + return cs['billboards']; + } + } catch (JE) { + aCe('错' + doo(0x1b7) + ':' + JE); + } + }, + 'remove': function(JF) { + try { + + if (!isEmpty(cs['labels'])) { + if (JF == 0x0) { + cs['labels'][dol(0x3a7)](); + } else { + var JG = cs['labels']['length']; + for (var JH = 0x0; JH < JG; ++JH) { + var JI = cs['labels']['get'](JH); + if (JI['id'] == JF) { + JI['show'] = ![]; + cs['labels']['remove'](JI); + break; + } + } + } + } + if (!isEmpty(cs['billboards'])) { + if (JF == 0x0) { + cs['billboards']['removeAll'](); + } else { + var JJ = cs['billboards']['length']; + for (var JH = 0x0; JH < JJ; ++JH) { + var JI = cs['billboards']['get'](JH); + if (JI['id'] == JF) { + JI['show'] = ![]; + cs[dol(0x3a8)]['remove'](JI); + break; + } + } + } + } + cs[dol(0x3a9)]['scene']['requestRender'](); + } catch (JM) { + aCe('错' + doo(0x1b8) + ':' + JM); + } + }, + 'addCustomHtml': function(bb) { + + if (!Cesium['defined'](cs['CustomLabel'])) { + cs[dol(0x3aa)] = new GLECustomLabel(cs['viewer'],cs); + } + cs[dol(0x3ab)]['addLable'](bb); + cs['viewer'][dol(0x3ac)]['requestRender'](); + }, + 'updateCustomHtml': function(bb) { + + if (!Cesium['defined'](cs['CustomLabel'])) { + cs[dol(0x3ad)] = new GLECustomLabel(cs[dol(0x3ae)],cs); + } + cs['CustomLabel']['updateLable'](bb); + cs['viewer']['scene'][dol(0x3af)](); + }, + 'moveByTrackPoint': function(bb, JQ, JR) { + try { + bb['speed'] = Number(bb['speed']) || 0x3; + var JS = cs['LableMoveState']['get'](bb['trackId']); + var JT; + JS = { + 'options': bb, + 'callback': JQ, + 'onMoving': JR, + 'state': !![], + 'index': 0x0, + 'pos': bb['positions'][0x0] + }; + var JU = new Cesium['Cartographic'](bb[dol(0x3b0)][0x0][0x0],bb['positions'][0x0][0x1],bb['positions'][0x0][0x2]); + JT = JU; + cs['LableMoveState']['set'](bb['trackId'], JS); + var JV = []; + var JW = [0x0]; + var JX = [0x0]; + var JY = []; + var JZ = 0x0; + bb[dol(0x3b1)]['forEach']( (K0, K1) => { + bb['positions'][K1] = Cesium['Cartesian3']['fromRadians'](K0[0x0], K0[0x1], K0[0x2]); + } + ); + bb['positions'][dol(0x3b2)]( (K2, K3) => { + JV['push'](K2); + if (K3 > 0x0) { + JZ += Cesium['Cartesian3']['distance'](JV[K3], JV[K3 - 0x1]); + JW[dol(0x3b3)](JZ); + } + } + ); + bb[dol(0x3b4)]['forEach']( (K4, K5) => { + if (K5 > 0x0) + JX['push'](JW[K5] / JZ); + } + ); + var K6 = new Cesium[(dol(0x3b5))]({ + 'times': JX, + 'points': JV + }); + cs['LableTrackArr']['set'](bb['trackId'], [K6]); + var K7 = function() { + requestAnimationFrame(function() { + var JS = cs['LableMoveState'][dol(0x3b6)](bb['trackId']); + var K9 = cs['LableTrackArr']['get'](bb['trackId']); + if (JS == undefined) { + if (!isEmpty(JQ)) { + JQ(bb); + } + return; + } + if (!JS['state']) { + JS[dol(0x3b7)] = --JS['index']; + return; + } + var Ka = K6['evaluate'](JS['index'] / (0x7d0 / bb['speed'])); + if (JS['index'] + 0x1 >= 0x7d0 / bb['speed']) { + K9['splice'](0x0, 0x1); + cs['LableTrackArr']['set'](bb['trackId'], K9); + if (K9['length'] > 0x0) { + K6 = K9[0x0]; + JS['index'] = 0x0; + cs['LableMoveState']['set'](bb[dol(0x3b8)], JS); + K7(); + } else { + JS['state'] = ![]; + cs['LableMoveState']['set'](bb['trackId'], JS); + if (!isEmpty(JQ)) { + JQ(bb); + } + return; + } + } + var Kb = cs['CustomLabel']['_lables']['get'](bb['trackId']); + Kb['positionWC'] = Ka; + cs['CustomLabel']['_lables']['set'](bb[dol(0x3b9)], Kb); + cs['viewer']['scene']['requestRender'](); + JS['index']++; + if (JS['index'] < 0x7d0 / bb['speed']) { + cs['LableMoveState']['set'](bb['trackId'], JS); + K7(); + } else { + K9['splice'](0x0, 0x1); + cs['LableTrackArr']['set'](bb['trackId'], K9); + if (K9['length'] > 0x0) { + K6 = K9[0x0]; + JS['index'] = 0x0; + cs[dol(0x3ba)]['set'](bb['trackId'], JS); + K7(); + } else { + JS['state'] = ![]; + cs[dol(0x3bb)]['set'](bb['trackId'], JS); + if (!isEmpty(JQ)) { + JQ(bb); + } + return; + } + } + }); + }; + K7(); + } catch (Kc) { + aCe('错' + doo(0x1b9) + ':' + Kc); + } + }, + 'updateTrackPoint': function(Kd, Ke, Kf) { + var Kg = cs['LableTrackArr']['get'](Kd); + if (Kg == null) { + aCe('未' + doo(0x1ba) + '!'); + } + var Kh = cs['LableMoveState']['get'](Kd); + var bb = Kh['options']; + bb['positions'] = Ke; + Kf ? bb[dol(0x3bc)] = Kf : null; + if (Kh['state']) { + var Kj = []; + var Kk = [0x0]; + var Kl = [0x0]; + var Km = []; + var Kn = 0x0; + bb[dol(0x3bd)]['forEach']( (Ko, Kp) => { + bb['positions'][Kp] = Cesium['Cartesian3'][dol(0x3be)](Ko[0x0], Ko[0x1], Ko[0x2]); + } + ); + bb['positions']['forEach']( (Kq, Kr) => { + Kj['push'](Kq); + if (Kr > 0x0) { + Kn += Cesium['Cartesian3']['distance'](Kj[Kr], Kj[Kr - 0x1]); + Kk['push'](Kn); + } + } + ); + bb['positions']['forEach']( (Ks, Kt) => { + if (Kt > 0x0) + Kl['push'](Kk[Kt] / Kn); + } + ); + var Ku = new Cesium['LinearSpline']({ + 'times': Kl, + 'points': Kj + }); + Kg['push'](Ku); + cs['LableTrackArr']['set'](Kd, Kg); + } else { + cs['Label']['moveByTrackPoint'](bb, Kh['callback']); + } + }, + 'addCustomHtmlByTheme': function(bb) { + + if (!Cesium['defined'](cs['CustomLabel'])) { + cs[dol(0x3bf)] = new GLECustomLabel(cs['viewer'],cs); + } + cs['CustomLabel']['addLableByTheme'](bb); + cs['viewer']['scene']['requestRender'](); + }, + 'updateCustomHtmlByTheme': function(bb) { + + if (!Cesium[dol(0x3c0)](cs['CustomLabel'])) { + cs['CustomLabel'] = new GLECustomLabel(cs['viewer'],cs); + } + cs['CustomLabel']['updateLableByTheme'](bb); + cs['viewer']['scene']['requestRender'](); + }, + 'removeCustomHtml': function(Kx) { + + if (!Cesium['defined'](cs['CustomLabel'])) { + cs['CustomLabel'] = new GLECustomLabel(cs['viewer'],cs); + } + cs['CustomLabel']['deleteLable'](Kx); + cs['viewer']['scene']['requestRender'](); + }, + 'removeAllCustomHtml': function() { + + if (!Cesium['defined'](cs[dol(0x3c1)])) { + cs['CustomLabel'] = new GLECustomLabel(cs['viewer'],cs); + } + cs['CustomLabel']['deleteAll'](); + cs['viewer']['scene']['requestRender'](); + }, + 'setCustomHtmlVisible': function(Ky, Kz) { + + if (!Cesium['defined'](cs[dol(0x3c2)])) { + cs['CustomLabel'] = new GLECustomLabel(cs['viewer'],cs); + } + cs['CustomLabel']['setVisible'](Ky, Kz); + cs['viewer']['scene']['requestRender'](); + }, + 'getCustomHtml': function(KA) { + + if (!Cesium['defined'](cs['CustomLabel'])) { + cs['CustomLabel'] = new GLECustomLabel(cs['viewer'],cs); + } + return cs['CustomLabel']['getLabelById'](KA); + }, + 'addGroundTexture': function(KB, KC, KD, KE, KF, KG) { + + var KH = KE[0x0] / 0x2; + var KI = KE[0x1] / 0x2; + var KJ = cs['Public']['degreesToCartesian3'](KD[0x0], KD[0x1], KD[0x2]); + var KK = [cs['funcPublic']['getPointByDistance'](KJ, -KH, KI, 0x0), cs['funcPublic']['getPointByDistance'](KJ, KH, KI, 0x0), cs['funcPublic']['getPointByDistance'](KJ, KH, -KI, 0x0), cs['funcPublic']['getPointByDistance'](KJ, -KH, -KI, 0x0)]; + var KL = cs['viewer']['entities'][dol(0x3c3)]({ + 'name': 's' + doo(0x1bb) + 'p', + 'id': KB, + 'polygon': { + 'hierarchy': { + 'positions': KK + }, + 'show': !![], + 'material': KC, + 'classificationType': Cesium[dol(0x3c4)]['TERRAIN'], + 'stRotation': Cesium['Math']['toRadians'](KF) + }, + 'distanceDisplay': KG, + 'positionWC': Cesium[dol(0x3c5)]['fromRadiansArrayHeights']([cs['Public']['degreesToRadians'](KD[0x1]), cs['Public']['degreesToRadians'](KD[0x0]), KD[0x2]])[0x0], + 'isVisible': !![] + }); + co['set'](KB, KL); + cs['viewer']['scene']['preRender']['addEventListener'](function() { + if (Cesium['defined'](co) && co instanceof Map && co['size'] > 0x0) { + co['forEach'](function(KM) { + var KN = KM['isVisible']; + if (KM['distanceDisplay']['length'] == 0x2) { + if (KM[dol(0x3c6)][0x0] <= (KM['isVisible'] && Cesium['Cartesian3']['distance'](KM['positionWC'], cs['viewer'][dol(0x3c7)]['positionWC'])) && (KM['isVisible'] && Cesium['Cartesian3'][dol(0x3c8)](KM['positionWC'], cs['viewer']['camera']['positionWC'])) <= KM['distanceDisplay'][0x1]) { + KN = !![]; + } else { + KN = ![]; + } + } + var KO = cs['viewer']['entities']['getById'](KM['id']); + if (Cesium['defined'](KO)) { + KO['show'] = KN; + } + }); + } + }); + }, + 'removeGroundTexture': function(KP) { + + if (Cesium['defined'](KP)) { + cs['viewer']['entities']['removeById'](KP); + } else { + for (var KQ = 0x0; KQ < cs['viewer'][dol(0x3c9)]['values']['length']; KQ++) { + if (cs['viewer'][dol(0x3ca)]['values'][KQ]['_name'] == 's' + doo(0x1bc) + 'p') { + cs['viewer']['entities']['remove'](cs['viewer']['entities']['values'][KQ]); + KQ--; + } + } + } + }, + 'addTexture': function(KR, KS, KT, KU, KV, KW) { + + var KX = new Cesium['Cartesian3'](0x0,-0x1,0x0); + switch (KV) { + case 'f' + doo(0x1bd) + 't': + KX = new Cesium['Cartesian3'](0x0,-0x1,0x0); + break; + case 'b' + doo(0x1be) + 'k': + KX = new Cesium['Cartesian3'](0x0,0x1,0x0); + break; + case 'l' + doo(0x1bf) + 't': + KX = new Cesium['Cartesian3'](-0x1,0x0,0x0); + break; + case 'r' + doo(0x1c0) + 't': + KX = new Cesium['Cartesian3'](0x1,0x0,0x0); + break; + case doh(0x32): + KX = new Cesium['Cartesian3'](0x0,0x0,0x1); + break; + case 'b' + doo(0x1c1) + 'm': + KX = new Cesium[(dol(0x3cb))](0x0,0x0,-0x1); + break; + } + if (KW == undefined) { + var KY = cs['funcPublic']['drawText'](KU); + cs['viewer']['entities'][dol(0x3cc)]({ + 'id': 'f' + doo(0x1c2) + '_' + KR, + 'position': Cesium['Cartesian3']['fromRadians'](KS[0x0], KS[0x1], KS[0x2]), + 'plane': { + 'plane': new Cesium['Plane'](KX,0x0), + 'dimensions': new Cesium['Cartesian2'](KT['x'],KT['y']), + 'material': new Cesium['ImageMaterialProperty']({ + 'image': KY, + 'transparent': !![] + }) + } + }); + } else { + cs['viewer']['entities']['add']({ + 'id': 'f' + doo(0x1c3) + '_' + KR, + 'position': Cesium['Cartesian3']['fromRadians'](KS[0x0], KS[0x1], KS[0x2] + KT['y'] / 0x2), + 'plane': { + 'plane': new Cesium['Plane'](KX,0x0), + 'dimensions': new Cesium['Cartesian2'](KT['x'],KT['y']), + 'material': new Cesium[(dol(0x3cd))]({ + 'image': KW, + 'transparent': !![] + }) + } + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'removeTexture': function(KZ) { + try { + + var L0 = cs[dol(0x3ce)]['entities']['getById']('f' + doo(0x1c4) + '_' + KZ); + if (L0 != undefined) { + cs['viewer']['entities']['remove'](L0); + } + cs['viewer']['scene']['requestRender'](); + } catch (L1) { + aCe('错' + doo(0x1c5) + ':' + L1); + } + }, + 'setTextureVisible': function(L2, L3) { + try { + + var L4 = cs['viewer']['entities']['getById']('f' + doo(0x1c6) + '_' + L2); + if (Cesium['defined'](L4)) { + L4['show'] = L3; + } + cs['viewer']['scene']['requestRender'](); + } catch (L5) { + aCe('错' + doo(0x1c7) + ':' + L5); + } + } + }; + this['Feature'] = { + 'getById': function(L6, L7) { + try { + + if (!isEmpty(L7)) { + if (cs['m_model']['get'](L7['toString']()) === undefined) { + throw doj(0x77); + } + cs['tileset'] = cs['m_model']['get'](L7['toString']()); + } + var L8 = cs['funcPublic']['disposeFeatureId'](L6); + if (L8[dol(0x3cf)] > 0x1) + L6 = L8[0x1]; + else + L6 = L8[0x0]; + var L9 = []; + for (var La = 0x0; La < cs['tileset']['_selectedTiles']['length']; ++La) { + var Lb = cs['tileset']['_selectedTiles'][La]['_content']; + var Lc = cs['funcPublic'][dol(0x3d0)](Lb, L6); + if (Lc == -0x1) { + continue; + } + var Ld = Lb['getFeature'](Lc); + L9['push'](Ld); + } + return L9; + } catch (Le) { + aCe('错' + doo(0x1c8) + ':' + Le); + } + }, + 'cancelBoxSelect': function() { + + cs['Public'][dol(0x3d1)](); + cs['boxRegionElement']['style']['display'] = 'n' + doo(0x1c9) + 'e'; + if (cs['isMobile']()) { + cs['Camera']['setCameraOptions']({ + 'enableLook': !![], + 'enableRotate': !![], + 'enableTranslate': !![], + 'enableZoom': !![], + 'enableTilt': !![] + }); + } + cs['viewer']['scene']['requestRender'](); + }, + 'boxSelect': function(Lf, Lg, Lh, Li) { + try { + + var Lj = {}; + var Lk = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var Ll = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number[dol(0x3d2)]); + if (cs['m_model']['size'] == 0x0) + return; + if (cs['isMobile']()) { + cs['Camera']['setCameraOptions']({ + 'enableLook': ![], + 'enableRotate': ![], + 'enableTranslate': ![], + 'enableZoom': ![], + 'enableTilt': ![] + }); + } + if (isEmpty(Li)) + Li = 0x0; + if (!isEmpty(Lg) && !isEmpty(Lh)) { + cs['m_model']['forEach'](function(Lm, Ln) { + if (Lm['show']) + Lj[Ln] = new Set(); + }); + LS(Lg, Lh); + if (!isEmpty(Lf)) { + var Lo = []; + cs['m_model']['forEach'](function(Lp, Lq) { + if (Lp['show']) { + if (Lj[Lq]['size'] > 0x0) { + Lo['push'](Array['from'](Lj[Lq])); + } + } + }); + Lj = {}; + Lf(Lo); + cs['viewer']['scene']['requestRender'](); + } + } else { + var Lr; + var Ls; + function Lt(Lu) { + if (Cesium['defined'](Lr)) { + cs[dol(0x3d3)]['forEach'](function(Lv, Lw) { + if (Lv['show']) + Lj[Lw] = new Set(); + }); + Ls = Cesium['Cartesian2']['clone'](Lu['position'], new Cesium['Cartesian2']()); + LS(Lr, Ls); + Lr = undefined; + Ls = undefined; + cs['boxRegionElement']['style']['display'] = 'n' + doo(0x1ca) + 'e'; + cs['boxRegionElement']['style']['width'] = '0' + doo(0x1cb) + 'x'; + cs['boxRegionElement'][dol(0x3d4)]['height'] = '0' + doo(0x1cc) + 'x'; + if (!isEmpty(Lf)) { + var Lo = []; + cs['m_model']['forEach'](function(Ly, Lz) { + if (Ly['show']) { + var LA = Array['from'](Lj[Lz]); + var LB = cs['modelShowMap']['get'](Lz['toString']()); + LB[dol(0x3d5)](function(LC, LD) { + if (LA['indexOf'](LD) != -0x1 && !LC[dol(0x3d6)]) { + LA['delete'](LD); + } + }); + if (Lj[Lz][dol(0x3d7)] > 0x0) { + Lo['push'](LA); + } + } + }); + Lj = {}; + if (Lo['length'] > 0x0) { + Lo[dol(0x3d8)] = Lk; + Lo['minPoint'] = Ll; + var LE = Cesium['Cartesian3']['midpoint'](Ll, Lk, new Cesium['Cartesian3']()); + Lo['centerPoint'] = LE; + } + Lf(Lo); + cs['viewer']['scene'][dol(0x3d9)](); + } + } + } + if (cs['isMobile']()) { + cs['Public']['event']('L' + doo(0x1cd) + 'N', function(LF) { + if (!Cesium['defined'](Lr)) { + Lr = Cesium['Cartesian2']['clone'](LF['position'], new Cesium['Cartesian2']()); + } + }); + cs['Public']['event']('L' + doo(0x1ce) + 'P', function(LG) { + Lt(LG); + }); + } else { + cs['Public']['event']('L' + doo(0x1cf) + 'K', function(LH) { + if (!Cesium['defined'](Lr)) { + Lr = Cesium[dol(0x3da)]['clone'](LH['position'], new Cesium['Cartesian2']()); + return; + } + Lt(LH); + }); + } + cs['Public']['event']('M' + doo(0x1d0) + 'E', function(LI) { + if (Cesium['defined'](Lr)) { + var Ls = LI['endPosition']; + var LK = LL(Lr, Ls); + cs['boxRegionElement']['style']['display'] = 'b' + doo(0x1d1) + 'k'; + cs['boxRegionElement']['style']['left'] = LK['x'] + doh(0x33); + cs['boxRegionElement']['style']['top'] = LK['y'] + doh(0x34); + cs['boxRegionElement']['style']['width'] = LK['width'] + doh(0x35); + cs['boxRegionElement']['style']['height'] = LK[dol(0x3db)] + doh(0x36); + cs['viewer']['scene']['requestRender'](); + } + }); + } + function LL(Lr, Ls) { + var LO = window['devicePixelRatio'] || 0x1; + var LP = new Cesium['BoundingRectangle'](Math['min'](Lr['x'], Ls['x']) * LO,Math['min'](Lr['y'], Ls['y']) * LO,Math['abs'](Lr['x'] - Ls['x']) * LO,Math['abs'](Lr['y'] - Ls['y']) * LO); + LP['width'] = Math['max'](LP[dol(0x3dc)], 0x1); + LP[dol(0x3dd)] = Math['max'](LP['height'], 0x1); + return LP; + } + function LQ(LR) { + return new Cesium['Cartesian2'](LR['x'] + LR['width'] / 0x2,LR['y'] + LR['height'] / 0x2); + } + function LS(Lr, Ls) { + Lk = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + Ll = new Cesium['Cartesian3'](Number[dol(0x3de)],Number['MAX_VALUE'],Number['MAX_VALUE']); + Lr = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](cs['viewer']['scene'], Lr, Lr); + Ls = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](cs['viewer']['scene'], Ls, Ls); + var LV = LL(Lr, Ls); + var LW = LQ(LV); + var LX = N8(LW, LV['width'], LV['height']); + cs['m_model'][dol(0x3df)](function(LY, LZ) { + if (LY['show']) { + var M0 = new Cesium['Cartesian3'](-Number[dol(0x3e0)],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var M1 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var M2 = []; + var M3 = !![]; + if (Cesium['defined'](LY['otherFeatureVisible'])) { + M3 = LY['otherFeatureVisible']; + } + MW(LY['_root'], LX, M2); + if (M2['length'] > 0x0) { + for (var M4 = 0x0; M4 < M2[dol(0x3e1)]; ++M4) { + M5(M2[M4], LX, Lj[LZ], LV, M3, M0, M1); + } + } + Cesium[dol(0x3e2)]['multiplyByPoint'](LY[dol(0x3e3)]['transform'], M0, M0); + Cesium['Matrix4']['multiplyByPoint'](LY['modelMatrix'], M0, M0); + Cesium[dol(0x3e4)][dol(0x3e5)](LY['root'][dol(0x3e6)], M1, M1); + Cesium['Matrix4']['multiplyByPoint'](LY['modelMatrix'], M1, M1); + Lk['x'] = Math['max'](Lk['x'], M0['x']); + Lk['y'] = Math['max'](Lk['y'], M0['y']); + Lk['z'] = Math['max'](Lk['z'], M0['z']); + Ll['x'] = Math['min'](Ll['x'], M1['x']); + Ll['y'] = Math['min'](Ll['y'], M1['y']); + Ll['z'] = Math['min'](Ll['z'], M1['z']); + } + }); + } + function M5(M6, M7, M8, M9, Ma, Lk, Ll) { + var Md = !isEmpty(M6['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](M6['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var Me = M6[dol(0x3e7)]; + var Mf = Me[dol(0x3e8)]; + for (var Mg = 0x0; Mg < Mf; ++Mg) { + if (Cesium['defined'](Me[Mg]['_content']) && Cesium['defined'](Me[Mg]['_content']['_batchTable'])) { + var Mh = Me[Mg]['_content']['_batchTable'][dol(0x3e9)]; + var Mi = Me[Mg]['_content']['featuresLength']; + for (var Mj = 0x0; Mj < Mi; Mj++) { + var Mk = Me[Mg]['_content']['_batchTable']['_properties'][dol(0x3ea)][Mj]; + if (!M8['has'](M6['tileset']['id'] + '^' + Mk)) { + var Ml = new Cesium['Cartesian3'](Mh['maxPoint'][Mj][0x0],Mh['maxPoint'][Mj][0x1],Mh['maxPoint'][Mj][0x2]); + var Mm = new Cesium['Cartesian3'](Mh['minPoint'][Mj][0x0],Mh['minPoint'][Mj][0x1],Mh[dol(0x3eb)][Mj][0x2]); + var Mn = cs[dol(0x3ec)]['GetFeatureFromContent'](Me[Mg]['_content'], Mk); + var Mo = Me[Mg]['_content']['_batchTable']['getBatchIdMatrix'](Mn); + Cesium['Matrix4']['multiplyByPoint'](Mo, Ml, Ml); + Cesium['Matrix4']['multiplyByPoint'](Mo, Mm, Mm); + var Mp = [new Cesium['Cartesian3'](Mm['x'],Mm['y'],Mm['z']), new Cesium['Cartesian3'](Mm['x'],Mm['y'],Ml['z']), new Cesium['Cartesian3'](Mm['x'],Ml['y'],Mm['z']), new Cesium['Cartesian3'](Mm['x'],Ml['y'],Ml['z']), new Cesium['Cartesian3'](Ml['x'],Mm['y'],Mm['z']), new Cesium['Cartesian3'](Ml['x'],Mm['y'],Ml['z']), new Cesium[(dol(0x3ed))](Ml['x'],Ml['y'],Mm['z']), new Cesium['Cartesian3'](Ml['x'],Ml['y'],Ml['z'])]; + for (const Mq of Mp) { + Cesium['Matrix4']['multiplyByPoint'](M6['tileset']['root'][dol(0x3ee)], Mq, Mq); + Cesium['Matrix4']['multiplyByPoint'](Md, Mq, Mq); + } + if (Li == 0x0) { + if (NN(cs['viewer']['scene'], Mp, M9)) { + Mr(M6, Mk, Ml, Mm, Lk, Ll, Ma, M8); + } + } else { + if (NB(cs['viewer']['scene'], Mp, M9)) { + Mr(M6, Mk, Ml, Mm, Lk, Ll, Ma, M8); + } + } + } + } + } else { + M5(Me[Mg], M7, M8, M9, Ma, Lk, Ll); + } + } + } + function Mr(Ms, Mt, Mu, Mv, Lk, Ll, My, Mz) { + var MA = Ms['tileset'][dol(0x3ef)] + '^' + Mt; + var MB = cs['modelShowMap']['get'](Ms['tileset'][dol(0x3f0)]['toString']()); + if (MB['size'] > 0x0) { + if (MB[dol(0x3f1)](Mt)) { + var MC = MB['get'](Mt); + if (MC['show']) { + Mz['add'](MA); + Lk['x'] = Math['max'](Lk['x'], Mu['x']); + Lk['y'] = Math[dol(0x3f2)](Lk['y'], Mu['y']); + Lk['z'] = Math['max'](Lk['z'], Mu['z']); + Ll['x'] = Math['min'](Ll['x'], Mv['x']); + Ll['y'] = Math[dol(0x3f3)](Ll['y'], Mv['y']); + Ll['z'] = Math['min'](Ll['z'], Mv['z']); + } + } else { + if (My) { + Mz['add'](MA); + Lk['x'] = Math['max'](Lk['x'], Mu['x']); + Lk['y'] = Math['max'](Lk['y'], Mu['y']); + Lk['z'] = Math['max'](Lk['z'], Mu['z']); + Ll['x'] = Math['min'](Ll['x'], Mv['x']); + Ll['y'] = Math[dol(0x3f4)](Ll['y'], Mv['y']); + Ll['z'] = Math['min'](Ll['z'], Mv['z']); + } + } + } else { + Mz['add'](MA); + Lk['x'] = Math[dol(0x3f5)](Lk['x'], Mu['x']); + Lk['y'] = Math['max'](Lk['y'], Mu['y']); + Lk['z'] = Math['max'](Lk['z'], Mu['z']); + Ll['x'] = Math['min'](Ll['x'], Mv['x']); + Ll['y'] = Math['min'](Ll['y'], Mv['y']); + Ll['z'] = Math['min'](Ll['z'], Mv['z']); + } + } + function MD(ME, MF) { + return ME['x'] >= MF['x'] && ME['x'] <= MF['x'] + MF['width'] && ME['y'] >= MF['y'] && ME['y'] <= MF['y'] + MF['height']; + } + function MG(MH, MI, MJ, MK, Li) { + if (Li == 0x0) { + let MM = ![]; + const MN = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](MH, MJ); + if (Cesium['defined'](MN)) { + const MO = Cesium[dol(0x3f6)]['transformWindowToDrawingBuffer'](MH, MN); + MM = Cesium['defined'](MO) && MD(MO, MK); + } + if (MM) + return !![]; + else { + for (const MP of MI) { + const MQ = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](MH, MP); + if (!Cesium['defined'](MQ)) + continue; + const MR = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](MH, MQ); + if (!Cesium['defined'](MR)) + continue; + if (MD(MR, MK)) { + return !![]; + } + } + } + } else { + let MS = 0x0; + for (const MT of MI) { + const MU = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](MH, MT); + if (!Cesium[dol(0x3f7)](MU)) + continue; + const MV = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](MH, MU); + if (!Cesium[dol(0x3f8)](MV)) + continue; + if (MD(MV, MK)) { + MS++; + } + } + return MS === MI['length']; + } + } + function MW(MX, MY, MZ) { + var N0 = MX['_boundingVolume']; + var N1 = MX['_contentBoundingVolume']; + if (!N5(MY, N0)) { + return; + } + if (!Cesium['defined'](N1) || N5(MY, N1)) { + MZ['push'](MX); + } + var N2 = MX['children']; + var N3 = N2['length']; + for (var N4 = 0x0; N4 < N3; ++N4) { + MW(N2[N4], MY, MZ); + } + } + function N5(N6, N7) { + return N6['computeVisibility'](N7) !== Cesium['Intersect']['OUTSIDE']; + } + function N8(N9, Na, Nb) { + const Nc = cs['viewer']['scene']; + const Nd = Nc['camera']; + const Ne = Nd['frustum']; + const Nf = Nc['drawingBufferWidth']; + const Ng = Nc['drawingBufferHeight']; + const Nh = Ne['getPixelDimensions'](Nf, Ng, Ne[dol(0x3f9)], Ne['aspectRatio'], new Cesium['Cartesian2']()); + const Ni = N9['x'] / Nf * 0x2 - 0x1; + const Nj = 0x1 - N9['y'] / Ng * 0x2; + let Nk; + if (Ne instanceof Cesium[dol(0x3fa)]) { + Nk = new Cesium['PerspectiveOffCenterFrustum'](); + const Nl = Ne['near']; + const Nm = Ne['fovy']; + const Nn = Ne['aspectRatio']; + const No = 0x2 * Nl * Math['tan'](Nm / 0x2); + const Np = No * Nn; + const Nq = Ni * (Np / 0x2); + const Nr = Nj * (No / 0x2); + const Ns = Nh['x'] * Na / 0x2; + const Nt = Nh['y'] * Nb / 0x2; + Nk['left'] = Nq - Ns; + Nk['right'] = Nq + Ns; + Nk['bottom'] = Nr - Nt; + Nk['top'] = Nr + Nt; + Nk[dol(0x3fb)] = Nl; + Nk['far'] = Ne[dol(0x3fc)]; + } else if (Ne instanceof Cesium['OrthographicFrustum']) { + Nk = new Cesium['OrthographicOffCenterFrustum'](); + const Na = Ne['width']; + const Nb = Ne['height']; + const Nw = Ni * (Na / 0x2); + const Nx = Nj * (Nb / 0x2); + const Ny = Nh['x'] * Na / 0x2; + const Nz = Nh['y'] * Nb / 0x2; + Nk[dol(0x3fd)] = Nw - Ny; + Nk['right'] = Nw + Ny; + Nk['bottom'] = Nx - Nz; + Nk['top'] = Nx + Nz; + Nk['near'] = Ne['near']; + Nk['far'] = Ne['far']; + } + const NA = Nk['computeCullingVolume'](Nd[dol(0x3fe)], Nd['directionWC'], Nd['upWC'], Nd['rightWC']); + return NA; + } + function NB(NC, ND, NE) { + const NF = NC['canvas']; + const NG = new Cesium['BoundingRectangle'](NE['x'] / NF['width'] * 0x2 - 0x1,(0x1 - (NE['y'] + NE['height']) / NF['height']) * 0x2 - 0x1,NE['width'] / NF[dol(0x3ff)] * 0x2,NE['height'] / NF[dol(0x400)] * 0x2); + const NH = Cesium['Matrix4']['multiply'](NC['camera']['frustum'][dol(0x401)], NC['camera']['viewMatrix'], new Cesium['Matrix4']()); + for (const NI of ND) { + const NJ = Cesium['Matrix4']['multiplyByVector'](NH, Cesium['Cartesian4']['fromElements'](NI['x'], NI['y'], NI['z'], 0x1), new Cesium[(dol(0x402))]()); + const NK = NJ['w']; + if (NK <= 0x0) + return ![]; + const NL = NJ['x'] / NK; + const NM = NJ['y'] / NK; + if (NL < NG['x'] || NL > NG['x'] + NG['width'] || NM < NG['y'] || NM > NG['y'] + NG['height']) { + return ![]; + } + } + return !![]; + } + function NN(NO, NP, NQ) { + const NR = Cesium['Matrix4']['multiply'](NO['camera']['frustum']['projectionMatrix'], NO['camera']['viewMatrix'], new Cesium['Matrix4']()); + const NS = []; + for (const NT of NP) { + const NU = Cesium['Matrix4']['multiplyByVector'](NR, Cesium['Cartesian4']['fromElements'](NT['x'], NT['y'], NT['z'], 0x1), new Cesium['Cartesian4']()); + const NV = NU['w']; + if (NV <= 0x0) + continue; + NS['push'](new Cesium['Cartesian2'](NU['x'] / NV,NU['y'] / NV)); + } + const NW = NO['canvas']; + const NX = new Cesium['BoundingRectangle'](NQ['x'] / NW['width'] * 0x2 - 0x1,(0x1 - (NQ['y'] + NQ['height']) / NW['height']) * 0x2 - 0x1,NQ['width'] / NW['width'] * 0x2,NQ['height'] / NW['height'] * 0x2); + return NY(NS, NX) || O2(NS, NX); + } + function NY(NZ, O0) { + return NZ[dol(0x403)](O1 => O1['x'] >= O0['x'] && O1['x'] <= O0['x'] + O0['width'] && O1['y'] >= O0['y'] && O1['y'] <= O0['y'] + O0['height']); + } + function O2(O3, O4) { + if (O3[dol(0x404)] !== 0x8) + return ![]; + const O5 = [{ + 'start': O3[0x0], + 'end': O3[0x1] + }, { + 'start': O3[0x0], + 'end': O3[0x2] + }, { + 'start': O3[0x1], + 'end': O3[0x3] + }, { + 'start': O3[0x2], + 'end': O3[0x3] + }, { + 'start': O3[0x4], + 'end': O3[0x5] + }, { + 'start': O3[0x4], + 'end': O3[0x6] + }, { + 'start': O3[0x5], + 'end': O3[0x7] + }, { + 'start': O3[0x6], + 'end': O3[0x7] + }, { + 'start': O3[0x0], + 'end': O3[0x4] + }, { + 'start': O3[0x1], + 'end': O3[0x5] + }, { + 'start': O3[0x2], + 'end': O3[0x6] + }, { + 'start': O3[0x3], + 'end': O3[0x7] + }]; + const O6 = [{ + 'start': new Cesium['Cartesian2'](O4['x'],O4['y']), + 'end': new Cesium['Cartesian2'](O4['x'] + O4['width'],O4['y']) + }, { + 'start': new Cesium['Cartesian2'](O4['x'] + O4[dol(0x405)],O4['y']), + 'end': new Cesium['Cartesian2'](O4['x'] + O4['width'],O4['y'] + O4['height']) + }, { + 'start': new Cesium['Cartesian2'](O4['x'] + O4['width'],O4['y'] + O4['height']), + 'end': new Cesium['Cartesian2'](O4['x'],O4['y'] + O4[dol(0x406)]) + }, { + 'start': new Cesium['Cartesian2'](O4['x'],O4['y'] + O4['height']), + 'end': new Cesium['Cartesian2'](O4['x'],O4['y']) + }]; + for (const O7 of O6) { + for (const O8 of O5) { + if (O9(O7['start'], O7['end'], O8['start'], O8['end'])) { + return !![]; + } + } + } + return ![]; + } + function O9(Oa, Ob, Oc, Od) { + const Oe = (Of, Og, Oh) => (Oh['y'] - Of['y']) * (Og['x'] - Of['x']) > (Og['y'] - Of['y']) * (Oh['x'] - Of['x']); + return Oe(Oa, Oc, Od) !== Oe(Ob, Oc, Od) && Oe(Oa, Ob, Oc) !== Oe(Oa, Ob, Od); + } + } catch (Oi) { + throw Oi; + } + }, + 'getByEvent': function(Oj, Ok, Ol, Om) { + try { + + if (!Cesium['defined'](Ol)) + Ol = !![]; + if (!Cesium['defined'](Om)) + Om = ![]; + var On = ''; + var Oo = cs['viewer']['scene']['pick'](Oj); + if (Oo && Cesium['defined'](Oo) && Oo instanceof Cesium['Cesium3DTileFeature']) { + var Op = Oo['getProperty']('n' + doo(0x1d2) + 'e'); + if (!Cesium['defined'](Op)) { + Op = Oo['getProperty'](doh(0x37)); + } + if (!Om) { + cs['Feature']['clearSelectColor'](); + } + cs['m_model']['forEach'](function(Oq, Or) { + if (Oq['id'] === Oo['tileset']['id']) { + cs['tileset'] = Oq; + On = Or; + } + }); + if (Ol) { + var Os = cs['defaults']['selectedcolor']instanceof Cesium['Color'] ? cs['defaults']['selectedcolor']['toCssColorString']() : Cesium[dol(0x407)]['fromCssColorString'](cs['defaults']['selectedcolor'])['toCssColorString'](); + var Ot = cs['modelStyleMap']['get'](On['toString']()); + var Ou = { + 'featureId': Op, + 'color': Os, + 'original': 'r' + doo(0x1d3) + ')' + }; + if (!Ot['has'](Op)) { + Ot['set'](Op, Ou); + } else { + var Ov = Ot['get'](Op); + Ov['original'] = Cesium['clone'](Ov[dol(0x408)]); + Ov['color'] = Cesium['clone'](Ou['color']); + } + cs['funcPublic']['updateModelStyle'](cs['tileset'], Ot); + } + Ok({ + 'id': On + '^' + Op, + 'batchId': Oo['_batchId'] + }); + } else if (Oo && Cesium['defined'](Oo) && Oo instanceof Object) { + if (cs['tileset'] === undefined) { + throw doj(0x78); + } + var Ot = cs['modelStyleMap']['get'](cs['tileset']['id']); + var Ox = ''; + if (Ot[dol(0x409)] > 0x0) { + Ot['forEach'](function(Oy, Oz) { + if (Oy['isParam'] || Oy[dol(0x40a)]) { + Ox += '#' + Oy['featureId']; + } + }); + } + var OA = cs['tileset']['getParamObject']() == undefined ? [] : [cs[dol(0x40b)]['getParamObject']()]; + if (cs[dol(0x40c)][dol(0x40d)] != undefined) { + var OB = Cesium['Color']['fromCssColorString'](cs['tileset']['stylecolor'])['alpha']; + cs['funcPublic']['updateEntityAlpha'](OA, OB, Ox); + } + if (!Om) { + cs['Feature']['clearSelectColor'](); + } + if (Oo['id']instanceof Cesium['Entity']) { + var OC = Oo['id']['entityCollection']['_owner']['_name']; + if (OC == undefined) { + if (Oo['id']['id'] != undefined && Oo['id']['id'] != 'C' + doo(0x1d4) + 'G') { + Ok({ + 'id': Oo['id']['id'], + 'batchId': 0x0 + }); + return; + } + Ok(undefined); + return; + } + if (Ol) { + var Os = cs['defaults']['selectedcolor']instanceof Cesium['Color'] ? cs['defaults']['selectedcolor'][dol(0x40e)]() : Cesium['Color']['fromCssColorString'](cs['defaults']['selectedcolor'])['toCssColorString'](); + Os = Cesium[dol(0x40f)]['fromCssColorString'](Os); + var OE = Cesium[dol(0x410)]['fromRandom']({ + 'red': Os['red'], + 'green': Os['green'], + 'blue': Os['blue'], + 'alpha': Os['alpha'] + }); + cs['m_model']['forEach'](function(OF, OG) { + if (OF['id'] === OC) { + cs[dol(0x411)] = OF; + On = OG; + } + }); + var Ot = cs['modelStyleMap']['get'](cs['tileset']['id']); + var Op = Oo['id'][dol(0x412)]; + var Ou = { + 'featureId': Op, + 'color': OE, + 'original': 'r' + doo(0x1d5) + ')' + }; + if (!Ot['has'](Op)) { + Ot['set'](Op, Ou); + } else { + var Ov = Ot['get'](Op); + Ov['original'] = Cesium[dol(0x413)](Ov[dol(0x414)]); + Ov['color'] = Cesium['clone'](Ou['color']); + } + if (!(Ov && Ov['isPolylineFlowMaterialProperty'] && Om)) { + var OL = cs['tileset']['getParamObject'](); + cs['funcPublic']['updateEntityFeatureColor'](Oo['id']['name'], OE, cs['viewer'], OL); + } + } + if (Oo['id'] != undefined) { + Ok({ + 'id': OC + '^' + Oo['id']['name'], + 'batchId': 0x0 + }); + } + } + } else { + Ok(undefined); + } + } catch (OM) { + throw OM; + } + }, + 'zoomTo': function(ON, OO, OP, OQ, OR, OS, OT, OU, OV, OW, OX) { + try { + + if (isEmpty(OW)) { + OW = 0.5; + } + if (OV == undefined) + OV = !![]; + if (!isEmpty(OO)) { + if (cs['m_model']['get'](OO['toString']()) === undefined) { + throw doj(0x79); + } + cs['tileset'] = cs['m_model']['get'](OO['toString']()); + } + var OY; + var OZ = []; + if (!Array['isArray'](ON)) { + ON = [ON]; + } + for (var P0 = 0x0; P0 < ON['length']; P0++) { + OY = cs['funcPublic']['disposeFeatureId'](ON[P0]); + if (OY['length'] > 0x1) + OZ['push'](OY[0x1]); + else + OZ['push'](OY[0x0]); + } + cs['Feature']['clearSelectColor'](); + var P1 = !isEmpty(cs[dol(0x415)]['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var P2 = ![]; + var P3 = new Cesium['Cartesian3'](-Number[dol(0x416)],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var P4 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var P5 = Cesium['Color']['fromCssColorString'](cs['tileset']['stylecolor']); + if (!isEmpty(OQ)) { + cs['tileset']['stylecolor'] = P5['withAlpha'](OQ)['toCssColorString'](); + } else { + cs['tileset'][dol(0x417)] = P5['withAlpha'](0.2)['toCssColorString'](); + } + for (var P0 = 0x0; P0 < OZ['length']; P0++) { + cs['funcPublic']['getAllTiles'](cs['tileset'], function(P7) { + for (var P8 = 0x0; P8 < P7['length']; ++P8) { + var P9 = P7[P8]['_content']; + if (!Cesium['defined'](P9)) + continue; + var Pa = cs['funcPublic']['GetFeaturesFromContent'](P9, OZ['join']('#')); + let Pb = []; + if (Pa['size'] == 0x0) + continue; + Pa['forEach'](function(Pc, Pd) { + Pb['push'](Pc); + let Pe = Pc; + var Pf = cs['funcPublic']['GetFeatureMaxMinPoint'](P9, Pe); + P3 = Cesium['Cartesian3']['maximumByComponent'](P3, Pf[0x0], new Cesium['Cartesian3']()); + P3 = Cesium['Cartesian3']['maximumByComponent'](P3, Pf[0x1], new Cesium['Cartesian3']()); + P4 = Cesium[dol(0x418)]['minimumByComponent'](P4, Pf[0x0], new Cesium[(dol(0x419))]()); + P4 = Cesium['Cartesian3']['minimumByComponent'](P4, Pf[0x1], new Cesium['Cartesian3']()); + }); + P2 = !![]; + } + }); + } + if (P2) { + var P5 = Cesium['Color']['fromCssColorString'](cs['tileset'][dol(0x41a)]); + if (!isEmpty(OQ)) { + cs['tileset']['stylecolor'] = P5['withAlpha'](OQ)['toCssColorString'](); + } + var Ph = cs['defaults']['selectedcolor']instanceof Cesium['Color'] ? cs['defaults']['selectedcolor'] : Cesium['Color']['fromCssColorString'](cs['defaults']['selectedcolor']); + var Pi = cs['modelStyleMap']['get'](OO['toString']()); + Pi['forEach'](function(Pj, Pk) { + if (OZ['indexOf'](Pk) == -0x1) { + var Pl = Cesium[dol(0x41b)]['fromCssColorString'](Pj[dol(0x41c)]); + Pl['alpha'] = OQ == undefined ? 0.2 : OQ; + Pj['color'] = Pl['toCssColorString'](); + } + }); + if (OX == undefined || !OX) { + for (var Pm = 0x0; Pm < OZ['length']; Pm++) { + var Pn = { + 'featureId': OZ[Pm], + 'color': Ph['toCssColorString'](), + 'original': 'r' + doo(0x1d6) + ')' + }; + if (!Pi['has'](OZ[Pm])) { + Pi['set'](OZ[Pm], Pn); + } else { + var Po = Pi['get'](OZ[Pm]); + Po[dol(0x41d)] = Cesium['clone'](Po['color']); + Po['color'] = Cesium['clone'](Pn['color']); + } + cs['funcPublic']['updateModelStyle'](cs[dol(0x41e)], Pi); + } + } + cs['viewer']['scene']['requestRender'](); + } + var Pp = Cesium['Cartesian3']['equals'](P3, new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE'])); + if (Pp) { + if (!isEmpty(OR)) + OR(-0x1); + return -0x1; + } + var Pq = Cesium[dol(0x41f)]['subtract'](P3, P4, new Cesium['Cartesian3']()); + var Pr = Cesium['Cartesian3']['midpoint'](P3, P4, new Cesium['Cartesian3']()); + if (OV) { + cs[dol(0x420)]['drawBox23Lines'](Pr, Pq, cs); + } + if (OP) { + var Ps = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], Pr, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](P1, Ps, Ps); + var Pt = Cesium[dol(0x421)]['magnitude'](Pq); + zoomSphere = new Cesium['BoundingSphere'](Ps,Pt); + if (isEmpty(OS)) + OS = 0x5a; + if (isEmpty(OT)) + OT = 0x3c; + if (isEmpty(OU)) + OU = Pt * 2.5; + cs['viewer']['camera']['flyToBoundingSphere'](zoomSphere, { + 'duration': OW, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](Number(OS)),-Cesium['Math']['toRadians'](Number(OT)),Number(OU)), + 'complete': function() { + if (!isEmpty(OR)) + OR(0x0); + } + }); + } + return 0x0; + } catch (Pu) { + console['log'](OZ, OO, OP, OQ, OR, OS, OT, OU, Pu); + } + }, + 'getVertex': function(Pv, Pw, Px) { + try { + + var Py = cs[dol(0x422)]['disposeFeatureId'](Pv); + if (!isEmpty(Pw)) { + if (cs['m_model']['get'](Pw['toString']()) === undefined) { + throw doj(0x7a); + } + cs['tileset'] = cs['m_model']['get'](Pw['toString']()); + } else { + Pw = Py[0x0]['toString'](); + if (cs['m_model']['get'](Pw) === undefined) { + throw doj(0x7b); + } + cs['tileset'] = cs['m_model']['get'](Pw); + } + if (cs['isMobile']()) { + aCe('手' + doo(0x1d7) + '!'); + return; + } + if (Py['length'] > 0x1) + Pv = Py[0x1]; + else + Pv = Py[0x0]; + var Pz = []; + cs['funcPublic']['GetVertexByFeatureId'](cs['tileset'], cs['tileset']['root'], Pv, Pz, -0x1, Px); + return Pz; + } catch (PA) { + aCe(PA); + return []; + } + }, + 'getFaceAndNormal': function(PB, PC) { + try { + + var PD = ''; + var PE = cs['viewer']['scene']['pick'](PB); + if (PE && Cesium['defined'](PE) && PE instanceof Cesium['Cesium3DTileFeature']) { + var PF = PE['getProperty']('n' + doo(0x1d8) + 'e'); + if (!Cesium['defined'](PF)) { + PF = PE['getProperty'](doh(0x38)); + } + cs['m_model']['forEach'](function(PG, PH) { + if (PG['id'] === PE['tileset']['id']) { + cs[dol(0x423)] = PG; + PD = PH; + } + }); + var PJ = PD + '^' + PF; + var PK = []; + var PL = cs['funcPublic']['pickPosition'](PB, cs['viewer']); + var PM = cs['viewer']['camera']['position']; + cs['funcPublic']['GetFaceNormalByFeatureId'](cs['tileset'], cs['tileset']['root'], PF, PE[dol(0x424)], PL, PM, PK); + var PN = new Cesium['Matrix4'](); + Cesium[dol(0x425)]['inverse'](cs['tileset']['root']['transform'], PN); + var PO = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](PN, PL['position'], PO); + var PP = []; + for (var PQ = 0x0; PQ < PK['length'] / 0x3; PQ++) { + var PR = PK[PQ * 0x3]; + var PS = PK[PQ * 0x3 + 0x1]; + var PT = PK[PQ * 0x3 + 0x2]; + if (PQ != 0x0) { + var PU = new Cesium['Cartesian3'](); + PU['x'] = (PP[0x0]['x'] + PP[0x1]['x'] + PP[0x2]['x']) / 0x3; + PU['y'] = (PP[0x0]['y'] + PP[0x1]['y'] + PP[0x2]['y']) / 0x3; + PU['z'] = (PP[0x0]['z'] + PP[0x1]['z'] + PP[0x2]['z']) / 0x3; + var PV = Cesium[dol(0x426)]['subtract'](PO, PU, new Cesium['Cartesian3']()); + Cesium['Cartesian3'][dol(0x427)](PV, PV); + var PW = Cesium['Cartesian3']['minimumComponent'](PV); + var PX = new Cesium['Cartesian3'](); + PX['x'] = (PR['x'] + PS['x'] + PT['x']) / 0x3; + PX['y'] = (PR['y'] + PS['y'] + PT['y']) / 0x3; + PX['z'] = (PR['z'] + PS['z'] + PT['z']) / 0x3; + var PY = Cesium['Cartesian3']['subtract'](PO, PX, new Cesium[(dol(0x428))]()); + Cesium['Cartesian3']['abs'](PY, PY); + var PZ = Cesium['Cartesian3'][dol(0x429)](PY); + if (PZ < PW) { + PP = []; + FaceNormalArr = []; + PP['push'](PR); + PP['push'](PS); + PP['push'](PT); + } + } else { + PP['push'](PR); + PP['push'](PS); + PP['push'](PT); + } + } + if (PP['length'] == 0x0) { + PC(undefined); + return; + } + var Q0 = new Cesium['Cartesian3'](); + var Q1 = Cesium['Cartesian3']['subtract'](PP[0x2], PP[0x0], new Cesium['Cartesian3']()); + var Q2 = Cesium['Cartesian3']['subtract'](PP[0x2], PP[0x1], new Cesium['Cartesian3']()); + Cesium['Cartesian3'][dol(0x42a)](Q1, Q2, Q0); + Cesium['Cartesian3']['normalize'](Q0, Q0); + PC({ + 'id': PJ, + 'clickPosition': PB, + 'FacePOSArr': PP, + 'FaceNormal': Q0 + }); + } else { + PC(undefined); + } + } catch (Q3) { + throw Q3; + } + }, + 'original': function(Q4, Q5) { + try { + + var Q6 = cs['funcPublic']['disposeFeatureId'](Q4); + if (!isEmpty(Q5)) { + if (cs['m_model']['get'](Q5['toString']()) === undefined) { + throw doj(0x7c); + } + cs['tileset'] = cs['m_model']['get'](Q5['toString']()); + } else { + Q5 = Q6[0x0]['toString'](); + if (cs['m_model']['get'](Q5) === undefined) { + throw doj(0x7d); + } + cs['tileset'] = cs['m_model'][dol(0x42b)](Q5); + } + cs['tileset']['stylecolor'] = 'r' + doo(0x1d9) + ')'; + cs['funcPublic']['updateModelStyle'](cs['tileset'], new Map()); + return 0x0; + } catch (Q7) { + aCe('错' + doo(0x1da) + ':' + Q7); + } + }, + 'clearSelectColor': function(Q8) { + try { + + if (cs['tileset'] === undefined) { + throw doj(0x7e); + } + var Q9 = 0x1; + if (cs['tileset']['stylecolor'] != undefined) { + var Qa = Cesium[dol(0x42c)][dol(0x42d)](cs['tileset']['stylecolor'])[dol(0x42e)]; + Q9 = Qa; + } + cs['m_model']['forEach'](function(Qb, Qc) { + var Qd = cs['modelStyleMap']['get'](Qc[dol(0x42f)]()); + if (Qd['size'] > 0x0) { + Qd['forEach'](function(Qe, Qf) { + if (Q8 && Q8['indexOf']('#' + Qe['featureId']) > -0x1) { + return; + } + if (!isEmpty(Qe['original'])) { + if ('r' + doo(0x1db) + ')' === Qe['original']) { + Qd['delete'](Qf); + } else { + Qe['color'] = Qe['original']; + } + } + }); + cs['funcPublic']['updateModelStyle'](Qb, Qd); + } + }); + cs[dol(0x430)]['clearBOX23line'](cs['viewer']); + } catch (Qg) { + aCe('错' + doo(0x1dc) + ':' + Qg); + } + }, + 'showFeatures': function(Qh, Qi, Qj) { + try { + + var Qk = cs['funcPublic']['splitFeatureId'](Qh); + if (!isEmpty(Qi)) { + if (cs['m_model']['get'](Qi['toString']()) === undefined) { + throw doj(0x7f); + } + cs['tileset'] = cs['m_model']['get'](Qi['toString']()); + } else { + var Ql = cs['funcPublic']['disposeFeatureId'](Qk[0x0]); + Qi = Ql[0x0][dol(0x431)](); + if (cs['m_model']['get'](Qi) === undefined) { + throw doj(0x80); + } + cs['tileset'] = cs['m_model']['get'](Qi); + } + var Qm = cs['modelShowMap']['get'](Qi[dol(0x432)]()); + var Qn = ''; + Qm['clear'](); + for (var Qo = 0x0; Qo < Qk['length']; Qo++) { + var Qp = Qk[Qo]; + if (Qp['length'] > 0x0) { + var Qq = cs['funcPublic']['disposeFeatureId'](Qp); + if (Qq['length'] > 0x1) + Qp = Qq[0x1]; + else + Qp = Qq[0x0]; + var Qr = { + 'featureId': Qp, + 'show': !![] + }; + Qm['set'](Qp, Qr); + Qn += Qp + '#'; + } + } + var Qs = ![]; + if (isEmpty(Qh)) + Qs = !![]; + if (!isEmpty(Qi)) { + var Qm = cs['modelShowMap']['get'](Qi[dol(0x433)]()); + cs['funcPublic']['updateModelShowStyle'](cs['tileset'], Qm, Qs, Qj); + } else { + cs[dol(0x434)]['forEach'](function(Qu, Qv) { + var Qm = cs['modelShowMap']['get'](Qv['toString']()); + cs['funcPublic']['updateModelShowStyle'](Qu, Qm, Qs, Qj); + }); + } + return 0x0; + } catch (Qx) { + aCe('错' + doo(0x1dd) + ':' + Qx); + } + }, + 'setVisible': function(Qy, Qz, QA, QB) { + try { + + var QC = cs[dol(0x435)]['splitFeatureId'](Qy); + if (!isEmpty(QA)) { + if (cs['m_model']['get'](QA['toString']()) === undefined) { + throw doj(0x81); + } + cs[dol(0x436)] = cs['m_model'][dol(0x437)](QA['toString']()); + } else { + var QD = cs['funcPublic'][dol(0x438)](QC[0x0]); + QA = QD[0x0]['toString'](); + if (cs['m_model']['get'](QA) === undefined) { + throw doj(0x82); + } + cs['tileset'] = cs['m_model']['get'](QA); + } + var QE = cs['modelShowMap']['get'](QA['toString']()); + var QF = ''; + for (var QG = 0x0; QG < QC['length']; QG++) { + var QH = QC[QG]; + if (QH['length'] > 0x0) { + var QI = cs['funcPublic']['disposeFeatureId'](QH); + if (QI['length'] > 0x1) + QH = QI[0x1]; + else + QH = QI[0x0]; + var QJ = { + 'featureId': QH, + 'show': Qz + }; + QE['set'](QH, QJ); + QF += QH + '#'; + } + } + if (QB != undefined) { + QE['forEach'](function(QK, QL) { + if (QF['indexOf'](QL) == -0x1) { + QE['delete'](QL); + } + }); + } + if (!isEmpty(QA)) { + var QE = cs[dol(0x439)]['get'](QA['toString']()); + cs['funcPublic']['updateModelShowStyle'](cs['tileset'], QE, QB); + } else { + cs['m_model']['forEach'](function(QN, QO) { + var QE = cs['modelShowMap']['get'](QO['toString']()); + cs['funcPublic'][dol(0x43a)](QN, QE, QB); + }); + } + return 0x0; + } catch (QQ) { + aCe('错' + doo(0x1de) + ':' + QQ); + } + }, + 'setColor': function(QR, QS, QT, QU, QV, QW) { + try { + + if (isEmpty(QV)) + QV = 0x1; + var QX = 'r' + doo(0x1df) + '(' + QS + ',' + QT + ',' + QU + ',' + QV + ')'; + var QY = cs['funcPublic']['splitFeatureId'](QR); + if (!isEmpty(QW)) { + if (cs[dol(0x43b)]['get'](QW['toString']()) === undefined) { + throw doj(0x83); + } + cs['tileset'] = cs[dol(0x43c)]['get'](QW['toString']()); + } else { + var QZ = cs['funcPublic'][dol(0x43d)](QY[0x0]); + QW = QZ[0x0]['toString'](); + if (cs['m_model']['get'](QW) === undefined) { + throw doj(0x84); + } + cs[dol(0x43e)] = cs['m_model']['get'](QW); + } + var R0 = cs[dol(0x43f)]['get'](QW['toString']()); + for (var R1 = 0x0; R1 < QY['length']; R1++) { + var R2 = QY[R1]; + if (!isEmpty(R2)) { + var R3 = cs[dol(0x440)]['disposeFeatureId'](R2); + if (R3['length'] > 0x1) + R2 = R3[0x1]; + else + R2 = R3[0x0]; + var R4 = { + 'featureId': R2, + 'color': QX + }; + R0['set'](R2, R4); + } + } + if (!isEmpty(QW)) { + var R5 = cs['modelStyleMap']['get'](QW['toString']()); + cs['funcPublic']['updateModelStyle'](cs['tileset'], R5); + } else { + cs['m_model']['forEach'](function(R6, R7) { + var R5 = cs['modelStyleMap'][dol(0x441)](R7[dol(0x442)]()); + cs['funcPublic'][dol(0x443)](R6, R5); + }); + } + return 0x0; + } catch (R9) { + aCe('错' + doo(0x1e0) + ':' + R9); + } + }, + 'setAlpha': function(Ra, Rb, Rc) { + try { + + if (isEmpty(Rb)) + Rb = 0x1; + var Rd = 'r' + doo(0x1e1) + ',' + Rb + ')'; + var Re = cs['funcPublic']['splitFeatureId'](Ra); + if (!isEmpty(Rc)) { + if (cs[dol(0x444)]['get'](Rc['toString']()) === undefined) { + throw doj(0x85); + } + cs['tileset'] = cs[dol(0x445)]['get'](Rc['toString']()); + } else { + var Rf = cs['funcPublic']['disposeFeatureId'](Re[0x0]); + Rc = Rf[0x0][dol(0x446)](); + if (cs['m_model']['get'](Rc) === undefined) { + throw doj(0x86); + } + cs['tileset'] = cs['m_model']['get'](Rc); + } + var Rg = cs['modelStyleMap']['get'](Rc['toString']()); + var Rh = ''; + var Rg = cs['modelStyleMap']['get'](Rc['toString']()); + if (Rg['size'] > 0x0) { + Rg['forEach'](function(Rj, Rk) { + if (Rj['isParam']) { + isParamAlpha = !![]; + Rh += '#' + Rj[dol(0x447)]; + } else { + Rh += '#' + Rj['featureId']; + } + }); + } + for (var Rl = 0x0; Rl < Re['length']; Rl++) { + var Rm = Re[Rl]; + if (Rm['length'] > 0x0) { + var Rn = cs['funcPublic']['disposeFeatureId'](Rm); + if (Rn['length'] > 0x1) + Rm = Rn[0x1]; + else + Rm = Rn[0x0]; + var Rn = cs['funcPublic']['disposeFeatureId'](Rm); + if (Rn['length'] > 0x1) + Rm = Rn[0x1]; + else + Rm = Rn[0x0]; + var Rp = { + 'featureId': Rm, + 'color': Rd + }; + Rg['set'](Rm, Rp); + } + } + if (!isEmpty(Rc)) { + var Rq = cs['modelStyleMap']['get'](Rc['toString']()); + cs['funcPublic']['updateModelStyle'](cs['tileset'], Rq); + } else { + cs['m_model']['forEach'](function(Rr, Rs) { + var Rq = cs['modelStyleMap']['get'](Rs['toString']()); + cs['funcPublic']['updateModelStyle'](Rr, Rq); + }); + } + return 0x0; + } catch (Ru) { + aCe('错' + doo(0x1e2) + ':' + Ru); + } + }, + 'getStatus': function(Rv, Rw) { + try { + + var Rx = []; + var Ry = cs[dol(0x448)]['splitFeatureId'](Rv); + if (!isEmpty(Rw)) { + if (cs[dol(0x449)]['get'](Rw['toString']()) === undefined) { + throw doj(0x87); + } + cs['tileset'] = cs['m_model']['get'](Rw['toString']()); + } else { + var Rz = cs['funcPublic']['disposeFeatureId'](Ry[0x0]); + Rw = Rz[0x0]['toString'](); + if (cs['m_model']['get'](Rw) === undefined) { + throw doj(0x88); + } + cs['tileset'] = cs['m_model']['get'](Rw); + } + var RA = cs['modelStyleMap']['get'](Rw['toString']()); + for (var RB = 0x0; RB < Ry['length']; RB++) { + var RC = Ry[RB]; + var RD = cs['funcPublic']['disposeFeatureId'](RC); + if (RD['length'] > 0x1) + RC = RD[0x1]; + else + RC = RD[0x0]; + Rx['push'](RA[dol(0x44a)](RC)); + } + return Rx; + } catch (RE) { + aCe('错' + doo(0x1e3) + ':' + RE); + } + }, + 'getCenterById': function(RF, RG, RH) { + try { + + var RI = cs['funcPublic']['disposeFeatureId'](RF); + if (!isEmpty(RG)) { + if (cs['m_model']['get'](RG['toString']()) === undefined) { + throw doj(0x89); + } + cs['tileset'] = cs['m_model']['get'](RG['toString']()); + } else { + RG = RI[0x0]['toString'](); + if (cs['m_model']['get'](RG) === undefined) { + throw doj(0x8a); + } + cs['tileset'] = cs['m_model'][dol(0x44b)](RG); + } + var RJ = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4'][(dol(0x44c))](Cesium[dol(0x44d)]['IDENTITY']); + if (RI[dol(0x44e)] > 0x1) + RF = RI[0x1]; + else + RF = RI[0x0]; + var RK = new Cesium['Cartesian3'](); + var RL = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var RM = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number[dol(0x44f)]); + cs['funcPublic']['GetPositionByFeatureId'](cs['tileset'], cs['tileset']['root'], RF, RK, RL, RM); + if (!isEmpty(RK)) { + Cesium['Matrix4'][dol(0x450)](RJ, RK, RK); + if (RH == undefined || RH == 0x0) + return cs['funcPublic']['outCartesian3ToRadian'](RK, cs['viewer']); + else + return RK; + } else + return undefined; + } catch (RN) { + aCe('错' + doo(0x1e4) + ':' + RN); + } + }, + 'getBoundingBox': function(RO, RP, RQ, RR) { + try { + + if (!isEmpty(RP)) { + if (cs['m_model']['get'](RP['toString']()) === undefined) { + throw doj(0x8b); + } + cs['tileset'] = cs['m_model']['get'](RP['toString']()); + } else { + throw doj(0x8c); + } + if (!Cesium['defined'](RR)) + RR = !![]; + var RS = RO['split']('#'); + var RT = function(RU) { + var RV = cs['funcPublic']['disposeFeatureId'](RU); + if (RV['length'] > 0x1) + RU = RV[0x1]; + else + RU = RV[0x0]; + return RU; + }; + var RW = []; + var RX; + if (!Array['isArray'](RS)) { + RS = [RS]; + } + for (var RY = 0x0; RY < RS['length']; RY++) { + RX = cs['funcPublic']['disposeFeatureId'](RS[RY]); + if (RX['length'] > 0x1) + RW['push'](RX[0x1]); + else + RW['push'](RX[0x0]); + } + var RZ = new Array(); + var S0 = new Array(); + var S1 = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number[dol(0x451)],-Number['MAX_VALUE']); + var S2 = new Cesium['Cartesian3'](Number[dol(0x452)],Number['MAX_VALUE'],Number['MAX_VALUE']); + var S3 = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var S4 = ![]; + var S5 = cs['funcPublic']['deepCopy'](RW); + for (var S6 = 0x0; S6 < cs['tileset']['_selectedTiles']['length']; ++S6) { + var S7 = cs['tileset']['_selectedTiles'][S6]['_content']; + var S8 = cs['funcPublic']['GetFeaturesFromContent'](S7, RS['join']('#')); + let S9 = []; + if (S8['size'] == 0x0) { + continue; + } + S8['forEach'](function(Sa, Sb) { + S9['push'](Sa); + let Sc = Sa; + var Sd = cs['funcPublic'][dol(0x453)](S7, Sc); + S1 = Cesium['Cartesian3']['maximumByComponent'](S1, Sd[0x0], new Cesium['Cartesian3']()); + S1 = Cesium['Cartesian3']['maximumByComponent'](S1, Sd[0x1], new Cesium['Cartesian3']()); + S2 = Cesium['Cartesian3']['minimumByComponent'](S2, Sd[0x0], new Cesium['Cartesian3']()); + S2 = Cesium['Cartesian3'][dol(0x454)](S2, Sd[0x1], new Cesium['Cartesian3']()); + RZ['push'](S1); + S0['push'](S2); + S4 = !![]; + S5['splice'](S5['indexOf'](Sb), 0x1); + }); + } + if (S5['length'] > 0x0) { + var Se = new Cesium[(dol(0x455))](); + var Sf = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var Sg = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + for (var RY = 0x0; RY < S5['length']; RY++) { + var Si = S5[RY]; + var Se = new Cesium['Cartesian3'](); + cs['funcPublic']['GetPositionByFeatureId'](cs['tileset'], cs['tileset']['root'], RT(Si), Se, Sf, Sg); + S1 = Cesium['Cartesian3']['maximumByComponent'](S1, Sf, new Cesium['Cartesian3']()); + S2 = Cesium['Cartesian3']['minimumByComponent'](S2, Sg, new Cesium['Cartesian3']()); + RZ[dol(0x456)](S1); + S0[dol(0x457)](S2); + } + if (Se['x'] != 0x0) { + S4 = !![]; + } + } + if (RZ['length'] > 0x0 && S0['length'] > 0x0) { + var Sk = Cesium['Cartesian3'][dol(0x458)](S1, S2, new Cesium['Cartesian3']()); + var Sl = Cesium['Cartesian3']['midpoint'](S1, S2, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['abs'](Sk, Sk); + var Sm = Cesium[dol(0x459)]['multiplyByPoint'](cs['tileset']['root'][dol(0x45a)], Sl, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](S3, Sm, Sm); + if (RR) { + cs['viewer'][dol(0x45b)]['removeById']('o' + doo(0x1e5) + 's'); + var Sn = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium[dol(0x45c)]['multiply'](S3, cs['tileset']['root']['transform'], Sn); + var So = Cesium['Transforms']['eastNorthUpToFixedFrame'](Cesium['Matrix4']['getTranslation'](Sn, new Cesium['Cartesian3']()), Cesium['Ellipsoid']['WGS84'], new Cesium['Matrix4']()); + var Sp = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['inverse'](So, new Cesium['Matrix4']()), Sn, new Cesium['Matrix4']()); + var Sq = Cesium['Matrix4']['getRotation'](Sp, new Cesium['Matrix3']()); + var Sr = Cesium['Quaternion']['fromRotationMatrix'](Sq); + var Ss = Cesium[dol(0x45d)]['fromQuaternion'](Sr); + var St = Cesium['Transforms']['headingPitchRollQuaternion'](Sm, Ss); + cs[dol(0x45e)][dol(0x45f)]['add']({ + 'id': 'o' + doo(0x1e6) + 's', + 'name': doh(0x39) + RP, + 'position': Sm, + 'orientation': St, + 'box': { + 'dimensions': Sk, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x1e7) + 's', cs['viewer']); + cs['funcPublic']['CreateMeasuringline']('o' + doo(0x1e8) + 's', Sl, Sk, cs['tileset']['root']['transform'], S3, cs[dol(0x460)], RQ); + cs['viewer']['scene']['requestRender'](); + } + return { + 'min': S2, + 'max': S1, + 'center': Sm, + 'size': Sk + }; + } + } catch (Su) { + aCe('错' + doo(0x1e9) + ':' + Su); + } + }, + 'getGeometrySizeById': function(Sv, Sw, Sx, Sy, Sz) { + try { + + if (!isEmpty(Sw)) { + if (cs['m_model']['get'](Sw['toString']()) === undefined) { + throw doj(0x8d); + } + cs['tileset'] = cs['m_model']['get'](Sw['toString']()); + } + if (!Cesium['defined'](Sy)) + Sy = !![]; + if (!Cesium['defined'](Sz)) + Sz = ![]; + var SA = cs['funcPublic']['disposeFeatureId'](Sv); + if (SA['length'] > 0x1) + Sv = SA[0x1]; + else + Sv = SA[0x0]; + var SB = new Array(); + var SC = new Array(); + var SD = new Cesium['Cartesian3'](-Number[dol(0x461)],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var SE = new Cesium['Cartesian3'](Number[dol(0x462)],Number['MAX_VALUE'],Number['MAX_VALUE']); + var SF = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4'][(dol(0x463))](Cesium['Matrix4'][dol(0x464)]); + var SG = ![]; + if (Sz) { + var SH = cs['Feature']['getVertex'](Sv, Sw); + var SI = GetMaxMinPoint(SH); + SD = SI[0x0]; + SE = SI[0x1]; + var SJ = []; + var SK = []; + for (let SL = 0x0; SL < SH['length'] / 0x3; SL++) { + var SM = new Cesium['Cartesian3'](SH[SL * 0x3],SH[SL * 0x3 + 0x1],SD['z']); + SJ['push'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset'][dol(0x465)]['transform'], SM, new Cesium['Cartesian3']())); + SK['push'](SM); + } + var SN = []; + for (let SO = 0x0; SO < SH['length'] / 0x3; SO++) { + var SM = new Cesium['Cartesian3'](SH[SO * 0x3],SH[SO * 0x3 + 0x1],SE['z']); + SN['push'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x466)], SM, new Cesium['Cartesian3']())); + SK['push'](SM); + } + if (Sy) { + const SQ = SJ['concat'](SN); + var SR = Cesium[dol(0x467)]['fromPoints'](SQ); + var SS = Cesium['Matrix4']['fromRotationTranslation'](SR['halfAxes'], SR['center'], new Cesium['Matrix4']()); + var ST = new Cesium['GeometryInstance']({ + 'geometry': Cesium['BoxOutlineGeometry']['fromDimensions']({ + 'dimensions': new Cesium['Cartesian3'](0x2,0x2,0x2) + }), + 'modelMatrix': SS, + 'attributes': { + 'color': Cesium[dol(0x468)]['fromColor'](Cesium[dol(0x469)][dol(0x46a)]) + } + }); + var SU = new Cesium['Primitive']({ + 'geometryInstances': ST, + 'appearance': new Cesium['PerInstanceColorAppearance']({ + 'translucent': ![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + if (cs['outlinefeatures'] != undefined) { + cs[dol(0x46b)]['scene']['primitives']['remove'](cs['outlinefeatures']); + } + cs['viewer'][dol(0x46c)]['primitives']['add'](SU); + cs['outlinefeatures'] = SU; + } + var SV = Cesium['OrientedBoundingBox']['fromPoints'](SK); + var SW = Cesium['Matrix3']['getColumn'](SV['halfAxes'], 0x0, new Cesium['Cartesian3']()); + var SX = Cesium['Matrix3'][dol(0x46d)](SV['halfAxes'], 0x1, new Cesium['Cartesian3']()); + var SY = Cesium['Matrix3']['getColumn'](SV['halfAxes'], 0x2, new Cesium['Cartesian3']()); + var SZ = new Cesium['Cartesian3'](); + SZ['x'] = Math['sqrt'](Math['pow'](SW['x'], 0x2) + Math['pow'](SW['y'], 0x2) + Math['pow'](SW['z'], 0x2)) * 0x2; + SZ['y'] = Math['sqrt'](Math['pow'](SX['x'], 0x2) + Math['pow'](SX['y'], 0x2) + Math['pow'](SX['z'], 0x2)) * 0x2; + SZ['z'] = Math['sqrt'](Math['pow'](SY['x'], 0x2) + Math['pow'](SY['y'], 0x2) + Math['pow'](SY['z'], 0x2)) * 0x2; + if (Sy) { + cs[dol(0x46e)]['ClearMeasuringline']('o' + doo(0x1ea) + 's', cs['viewer']); + cs['funcPublic']['CreateMeasuringlineObb']('o' + doo(0x1eb) + 's', SV['center'], SZ, cs['tileset'][dol(0x46f)][dol(0x470)], SF, cs['viewer'], Cesium['Cartesian3']['normalize'](SW, new Cesium['Cartesian3']()), Cesium['Cartesian3']['normalize'](SX, new Cesium['Cartesian3']()), Cesium['Cartesian3']['normalize'](SY, new Cesium['Cartesian3']())); + } + if (!isEmpty(Sx)) { + Sx({ + 'x': SZ['x']['toFixed'](0x2)['toString'](), + 'y': SZ['y'][dol(0x471)](0x2)['toString'](), + 'z': SZ['z']['toFixed'](0x2)['toString'](), + 'center': SV['center'], + 'halfAxes': SV['halfAxes'] + }); + } + cs['viewer']['scene']['requestRender'](); + return; + } else { + for (j = 0x0; j < cs['tileset']['_selectedTiles']['length']; ++j) { + var T0 = cs[dol(0x472)]['_selectedTiles'][j]['_content']; + var T1 = cs[dol(0x473)]['GetFeatureFromContent'](T0, Sv); + if (T1 == -0x1) { + continue; + } + var T2 = cs['funcPublic']['GetFeatureMaxMinPoint'](T0, T1); + SD = Cesium['Cartesian3']['maximumByComponent'](SD, T2[0x0], new Cesium['Cartesian3']()); + SD = Cesium['Cartesian3']['maximumByComponent'](SD, T2[0x1], new Cesium['Cartesian3']()); + SE = Cesium['Cartesian3']['minimumByComponent'](SE, T2[0x0], new Cesium[(dol(0x474))]()); + SE = Cesium[dol(0x475)][dol(0x476)](SE, T2[0x1], new Cesium['Cartesian3']()); + SB['push'](SD); + SC['push'](SE); + SG = !![]; + } + } + if (SB['length'] > 0x0 && SC['length'] > 0x0) { + var T3 = Cesium['Cartesian3']['subtract'](SD, SE, new Cesium['Cartesian3']()); + var T4 = Cesium['Cartesian3']['midpoint'](SD, SE, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['abs'](T3, T3); + var T5 = Cesium['Matrix4'][dol(0x477)](cs[dol(0x478)]['root']['transform'], T4, new Cesium['Cartesian3']()); + Cesium[dol(0x479)]['multiplyByPoint'](SF, T5, T5); + if (Sy) { + cs['viewer']['entities'][dol(0x47a)]('o' + doo(0x1ec) + 's'); + var T6 = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4']['multiply'](SF, cs[dol(0x47b)]['root']['transform'], T6); + var T7 = Cesium['Transforms']['eastNorthUpToFixedFrame'](Cesium['Matrix4']['getTranslation'](T6, new Cesium['Cartesian3']()), Cesium['Ellipsoid']['WGS84'], new Cesium['Matrix4']()); + var T8 = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['inverse'](T7, new Cesium[(dol(0x47c))]()), T6, new Cesium['Matrix4']()); + var T9 = Cesium['Matrix4']['getRotation'](T8, new Cesium['Matrix3']()); + var Ta = Cesium[dol(0x47d)]['fromRotationMatrix'](T9); + var Tb = Cesium['HeadingPitchRoll']['fromQuaternion'](Ta); + var Tc = Cesium['Transforms']['headingPitchRollQuaternion'](T5, Tb); + cs[dol(0x47e)]['entities']['add']({ + 'id': 'o' + doo(0x1ed) + 's', + 'name': doh(0x3a) + Sv, + 'position': T5, + 'orientation': Tc, + 'box': { + 'dimensions': T3, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x1ee) + 's', cs['viewer']); + cs['funcPublic']['CreateMeasuringline']('o' + doo(0x1ef) + 's', T4, T3, cs['tileset']['root']['transform'], SF, cs['viewer']); + cs['viewer']['scene']['requestRender'](); + } + if (!isEmpty(Sx)) { + Sx({ + 'x': T3['x']['toFixed'](0x2)[dol(0x47f)](), + 'y': T3['y']['toFixed'](0x2)['toString'](), + 'z': T3['z']['toFixed'](0x2)['toString'](), + 'center': T5, + 'min': SE, + 'max': SD + }); + } + } + } catch (Td) { + aCe('错' + doo(0x1f0) + ':' + Td); + } + }, + 'getFeaturesBoundingBox': function(Te, Tf, Tg, Th) { + try { + + if (!isEmpty(Tf)) { + if (cs['m_model']['get'](Tf['toString']()) === undefined) { + throw doj(0x8e); + } + cs['tileset'] = cs['m_model']['get'](Tf['toString']()); + } + if (!Cesium['defined'](Th)) + Th = !![]; + var Ti = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + if (!Array['isArray'](Te)) { + Te = Te['split']('#'); + } + if (Array[dol(0x480)](Te)) { + var Tj = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var Tk = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number[dol(0x481)],Number['MAX_VALUE']); + var Tl = 0x0; + var Tm = function(Tn) { + var To = cs['funcPublic']['disposeFeatureId'](Tn); + if (To[dol(0x482)] > 0x1) + Tn = To[0x1]; + else + Tn = To[0x0]; + cs['funcPublic']['getAllTiles'](cs['tileset'], function(Tp) { + for (var Tq = 0x0; Tq < Tp['length']; ++Tq) { + var Tr = Tp[Tq]['_content']; + if (!Cesium['defined'](Tr)) + continue; + var Ts = cs['funcPublic']['GetFeatureFromContent'](Tr, Tn); + if (!Cesium['defined'](Ts) || Ts == -0x1) + continue; + Tl++; + var Tt = cs['funcPublic']['GetFeatureMaxMinPoint'](Tr, Ts); + var Tu = Tt[0x0]; + var Tv = Tt[0x1]; + Tj = Cesium['Cartesian3']['maximumByComponent'](Tj, Tu, new Cesium['Cartesian3']()); + Tk = Cesium['Cartesian3'][dol(0x483)](Tk, Tv, new Cesium['Cartesian3']()); + } + }); + }; + for (var Tw = 0x0; Tw < Te['length']; Tw++) { + var Tx = Te[Tw]; + Tm(Tx); + } + if (Tl == 0x0) { + return; + } + var Ty = Cesium['Cartesian3']['midpoint'](Tj, Tk, new Cesium[(dol(0x484))]()); + var Tz = Cesium['Cartesian3']['subtract'](Tj, Tk, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['abs'](Tz, Tz); + var TA = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x485)], Ty, new Cesium['Cartesian3']()); + Cesium['Matrix4'][dol(0x486)](Ti, TA, TA); + if (Th) { + cs['viewer']['entities']['removeById']('o' + doo(0x1f1) + 's'); + var TB = Cesium['Matrix4'][dol(0x487)]['clone'](); + Cesium['Matrix4']['multiply'](Ti, cs['tileset']['root']['transform'], TB); + var TC = Cesium['Transforms']['eastNorthUpToFixedFrame'](Cesium['Matrix4'][dol(0x488)](TB, new Cesium['Cartesian3']()), Cesium['Ellipsoid']['WGS84'], new Cesium['Matrix4']()); + var TD = Cesium[dol(0x489)]['multiply'](Cesium['Matrix4']['inverse'](TC, new Cesium['Matrix4']()), TB, new Cesium['Matrix4']()); + var TE = Cesium['Matrix4']['getRotation'](TD, new Cesium[(dol(0x48a))]()); + var TF = Cesium['Quaternion']['fromRotationMatrix'](TE); + var TG = Cesium['HeadingPitchRoll'][dol(0x48b)](TF); + var TH = Cesium['Transforms']['headingPitchRollQuaternion'](TA, TG); + cs['viewer'][dol(0x48c)]['add']({ + 'id': 'o' + doo(0x1f2) + 's', + 'name': doh(0x3b) + Tx, + 'position': TA, + 'orientation': TH, + 'box': { + 'dimensions': Tz, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x1f3) + 's', cs['viewer']); + var TI = new Cesium['Matrix4'](); + Cesium['Matrix4']['clone'](cs['tileset']['root']['transform'], TI); + cs['funcPublic']['CreateMeasuringline']('o' + doo(0x1f4) + 's', Ty, Tz, TI, Ti, cs['viewer'], Tg); + cs['viewer']['scene']['requestRender'](); + } + var TJ = new Cesium['Cartesian3']() + , TK = new Cesium[(dol(0x48d))](); + var TL = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['multiplyByScalar'](Tz, 0.5, TL); + Cesium['Cartesian3']['add'](Ty, TL, TK); + Cesium['Cartesian3']['subtract'](Ty, TL, TJ); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], TJ, TJ); + Cesium['Matrix4']['multiplyByPoint'](cs[dol(0x48e)]['root']['transform'], TK, TK); + return { + 'min': Tk, + 'max': Tj, + 'minWC': TJ, + 'maxWC': TK, + 'center': TA, + 'size': Tz + }; + } + } catch (TM) { + console['log']('错' + doo(0x1f5) + ':' + TM); + } + }, + 'getGeometrySizeByBatchId': function(TN, TO, TP, TQ, TR) { + try { + + if (!isEmpty(TO)) { + if (cs['m_model']['get'](TO['toString']()) === undefined) { + throw doj(0x8f); + } + cs['tileset'] = cs['m_model']['get'](TO['toString']()); + } + if (!Cesium['defined'](TR)) + TR = !![]; + var TS = cs['funcPublic']['disposeFeatureId'](TN); + if (TS['length'] > 0x1) + TN = TS[0x1]; + else + TN = TS[0x0]; + var TT = new Array(); + var TU = new Array(); + var TV = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var TW = new Cesium[(dol(0x48f))](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var TX = !isEmpty(cs['tileset'][dol(0x490)]) ? new Cesium['Matrix4'][(dol(0x491))](cs['tileset']['modelMatrix']) : new Cesium[(dol(0x492))]['clone'](Cesium['Matrix4']['IDENTITY']); + var TY = ![]; + if (isShowOBBBox) { + var TZ = cs['Feature']['getVertex'](TN, TO); + var U0 = GetMaxMinPoint(TZ); + TV = U0[0x0]; + TW = U0[0x1]; + var U1 = []; + var U2 = []; + for (let U3 = 0x0; U3 < TZ['length'] / 0x3; U3++) { + var U4 = new Cesium['Cartesian3'](TZ[U3 * 0x3],TZ[U3 * 0x3 + 0x1],TV['z']); + U1['push'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], U4, new Cesium['Cartesian3']())); + U2['push'](U4); + } + var U5 = []; + for (let U6 = 0x0; U6 < TZ['length'] / 0x3; U6++) { + var U4 = new Cesium['Cartesian3'](TZ[U6 * 0x3],TZ[U6 * 0x3 + 0x1],TW['z']); + U5['push'](Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], U4, new Cesium['Cartesian3']())); + U2['push'](U4); + } + if (TR) { + const U8 = U1['concat'](U5); + var U9 = Cesium['OrientedBoundingBox']['fromPoints'](U8); + var Ua = Cesium['Matrix4']['fromRotationTranslation'](U9['halfAxes'], U9[dol(0x493)], new Cesium['Matrix4']()); + var Ub = new Cesium['GeometryInstance']({ + 'geometry': Cesium['BoxOutlineGeometry']['fromDimensions']({ + 'dimensions': new Cesium['Cartesian3'](0x2,0x2,0x2) + }), + 'modelMatrix': Ua, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](Cesium['Color']['BLUE']) + } + }); + var Uc = new Cesium['Primitive']({ + 'geometryInstances': Ub, + 'appearance': new Cesium['PerInstanceColorAppearance']({ + 'translucent': ![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + if (cs['outlinefeatures'] != undefined) { + cs['viewer']['scene']['primitives']['remove'](cs['outlinefeatures']); + } + cs['viewer']['scene']['primitives']['add'](Uc); + cs['outlinefeatures'] = Uc; + } + var Ud = Cesium['OrientedBoundingBox']['fromPoints'](U2); + var Ue = Cesium['Matrix3']['getColumn'](Ud['halfAxes'], 0x0, new Cesium['Cartesian3']()); + var Uf = Cesium['Matrix3']['getColumn'](Ud['halfAxes'], 0x1, new Cesium['Cartesian3']()); + var Ug = Cesium['Matrix3']['getColumn'](Ud['halfAxes'], 0x2, new Cesium['Cartesian3']()); + var Uh = new Cesium['Cartesian3'](); + Uh['x'] = Math['sqrt'](Math['pow'](Ue['x'], 0x2) + Math['pow'](Ue['y'], 0x2) + Math['pow'](Ue['z'], 0x2)) * 0x2; + Uh['y'] = Math['sqrt'](Math['pow'](Uf['x'], 0x2) + Math['pow'](Uf['y'], 0x2) + Math[dol(0x494)](Uf['z'], 0x2)) * 0x2; + Uh['z'] = Math['sqrt'](Math['pow'](Ug['x'], 0x2) + Math['pow'](Ug['y'], 0x2) + Math['pow'](Ug['z'], 0x2)) * 0x2; + if (TR) { + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x1f6) + 's', cs['viewer']); + cs['funcPublic'][dol(0x495)]('o' + doo(0x1f7) + 's', Ud[dol(0x496)], Uh, cs['tileset'][dol(0x497)]['transform'], TX, cs['viewer'], Cesium['Cartesian3']['normalize'](Ue, new Cesium['Cartesian3']()), Cesium['Cartesian3']['normalize'](Uf, new Cesium['Cartesian3']()), Cesium[dol(0x498)]['normalize'](Ug, new Cesium['Cartesian3']())); + } + if (!isEmpty(TQ)) { + TQ({ + 'x': Uh['x']['toFixed'](0x2)['toString'](), + 'y': Uh['y']['toFixed'](0x2)['toString'](), + 'z': Uh['z']['toFixed'](0x2)[dol(0x499)](), + 'center': Ud['center'], + 'halfAxes': Ud['halfAxes'] + }); + } + cs['viewer'][dol(0x49a)]['requestRender'](); + return; + } else { + for (var Ui = 0x0; Ui < cs[dol(0x49b)]['_selectedTiles'][dol(0x49c)]; ++Ui) { + var Uj = cs[dol(0x49d)]['_selectedTiles'][Ui]['_content']; + var Uk = cs['funcPublic']['GetFeatureFromContent'](Uj, TN); + if (Uk == -0x1 && Uk != TP) { + continue; + } + var Ul = cs['funcPublic']['GetFeatureMaxMinPoint'](Uj, Uk); + TV = Cesium['Cartesian3']['maximumByComponent'](TV, Ul[0x0], new Cesium['Cartesian3']()); + TV = Cesium['Cartesian3']['maximumByComponent'](TV, Ul[0x1], new Cesium['Cartesian3']()); + TW = Cesium['Cartesian3']['minimumByComponent'](TW, Ul[0x0], new Cesium['Cartesian3']()); + TW = Cesium['Cartesian3']['minimumByComponent'](TW, Ul[0x1], new Cesium['Cartesian3']()); + TT[dol(0x49e)](TV); + TU['push'](TW); + TY = !![]; + } + if (!TY) { + var Um = new Cesium['Cartesian3'](); + var Un = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number[dol(0x49f)]); + var Uo = new Cesium['Cartesian3'](Number[dol(0x4a0)],Number['MAX_VALUE'],Number['MAX_VALUE']); + cs['funcPublic']['GetPositionByFeatureId'](cs['tileset'], cs['tileset']['root'], TN, Um, Un, Uo); + TV = Cesium[dol(0x4a1)]['maximumByComponent'](TV, Un, new Cesium['Cartesian3']()); + TW = Cesium['Cartesian3']['minimumByComponent'](TW, Uo, new Cesium['Cartesian3']()); + TT['push'](TV); + TU['push'](TW); + if (Um['x'] != 0x0) { + TY = !![]; + } + return; + } + } + if (TT['length'] > 0x0 && TU['length'] > 0x0) { + var Up = Cesium['Cartesian3']['subtract'](TV, TW, new Cesium['Cartesian3']()); + var Uq = Cesium['Cartesian3']['midpoint'](TV, TW, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['abs'](Up, Up); + var Ur = Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x4a2)], Uq, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](TX, Ur, Ur); + if (TR) { + cs['viewer']['entities']['removeById']('o' + doo(0x1f8) + 's'); + var Us = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4'][dol(0x4a3)](TX, cs['tileset']['root'][dol(0x4a4)], Us); + var Ut = Cesium[dol(0x4a5)]['eastNorthUpToFixedFrame'](Cesium['Matrix4']['getTranslation'](Us, new Cesium[(dol(0x4a6))]()), Cesium['Ellipsoid']['WGS84'], new Cesium['Matrix4']()); + var Uu = Cesium['Matrix4']['multiply'](Cesium[dol(0x4a7)]['inverse'](Ut, new Cesium['Matrix4']()), Us, new Cesium['Matrix4']()); + var Uv = Cesium['Matrix4']['getRotation'](Uu, new Cesium['Matrix3']()); + var Uw = Cesium['Quaternion']['fromRotationMatrix'](Uv); + var Ux = Cesium['HeadingPitchRoll']['fromQuaternion'](Uw); + var Uy = Cesium['Transforms'][dol(0x4a8)](Ur, Ux); + cs['viewer']['entities']['add']({ + 'id': 'o' + doo(0x1f9) + 's', + 'name': doh(0x3c) + TN, + 'position': Ur, + 'orientation': Uy, + 'box': { + 'dimensions': Up, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x1fa) + 's', cs['viewer']); + cs['funcPublic']['CreateMeasuringline']('o' + doo(0x1fb) + 's', Uq, Up, cs['tileset'][dol(0x4a9)]['transform'], TX, cs[dol(0x4aa)], TQ); + cs['viewer']['scene']['requestRender'](); + } + var Uz = new Cesium['Cartesian3']() + , UA = new Cesium['Cartesian3'](); + var UB = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['multiplyByScalar'](Up, 0.5, UB); + Cesium['Cartesian3']['add'](Uq, UB, UA); + Cesium['Cartesian3'][dol(0x4ab)](Uq, UB, Uz); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], Uz, Uz); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], UA, UA); + if (!isEmpty(TQ)) { + TQ({ + 'x': Up['x']['toFixed'](0x2)['toString'](), + 'y': Up['y']['toFixed'](0x2)['toString'](), + 'z': Up['z']['toFixed'](0x2)['toString'](), + 'center': Ur, + 'min': TW, + 'max': TV + }); + } + } + } catch (UC) { + aCe('错' + doo(0x1fc) + ':' + UC); + } + }, + 'offset': function(UD, UE, UF, UG, UH) { + try { + if (!cs['viewer']['scene']['_context']['floatingPointTexture']) { + aCe(doj(0x90)); + return; + } + + if (!isEmpty(UH)) { + if (cs['m_model']['get'](UH['toString']()) === undefined) { + throw doj(0x91); + } + cs['tileset'] = cs['m_model']['get'](UH['toString']()); + } + var UI = cs['funcPublic']['disposeFeatureId'](UG); + if (UI['length'] > 0x1) + UG = UI[0x1]; + else + UG = UI[0x0]; + for (var UJ = 0x0; UJ < cs['tileset']['_selectedTiles']['length']; ++UJ) { + var UK = cs['tileset']['_selectedTiles'][UJ]['_content']; + var UL = cs['funcPublic']['GetFeatureFromContent'](UK, UG); + if (UL == -0x1) { + continue; + } + var UM = cs['tileset'][dol(0x4ac)][UJ]; + model = UK['_model']; + var UN = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](UD,UE,UF), new Cesium['Matrix4']()); + var UO = Cesium['Cartesian3']['fromArray'](UK['_batchTable']['_properties']['maxPoint'][UL]); + var UP = Cesium['Cartesian3']['fromArray'](UK['_batchTable']['_properties']['minPoint'][UL]); + var UQ = UK['_batchTable']['getBatchIdMatrix'](UL); + UN = Cesium['Matrix4']['multiplyTransformation'](UN, UQ, new Cesium['Matrix4']()); + UK['_batchTable'][dol(0x4ad)](UL, UN); + var UR = Cesium['Matrix4']['multiplyByPoint'](UN, UO, new Cesium['Cartesian3']()); + var US = Cesium['Matrix4']['multiplyByPoint'](UN, UP, new Cesium['Cartesian3']()); + var UT = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([UR, US], UT); + Cesium[dol(0x4ae)]['transform'](UT, UK['_contentModelMatrix'], UT); + var UU = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], UU); + Cesium['BoundingSphere']['union'](UT, UU, model['_nodeCommands'][0x0]['command'][dol(0x4af)]); + model['_nodeCommands'][0x0]['dirty'] = !![]; + var UV = [UR, US]; + UK['_batchTable']['_properties']['newMaxPoint'] = cs[dol(0x4b0)]['copyArr'](UK['_batchTable']['_properties'][dol(0x4b1)]); + UK['_batchTable']['_properties'][dol(0x4b2)] = cs['funcPublic']['copyArr'](UK['_batchTable']['_properties']['minPoint']); + Cesium['Cartesian3']['pack'](UV[0x0], UK['_batchTable']['_properties']['newMaxPoint'][UL]); + Cesium['Cartesian3'][dol(0x4b3)](UV[0x1], UK['_batchTable']['_properties']['newMinPoint'][UL]); + var UW = Cesium['Matrix4']['multiplyByPoint'](UK['_contentModelMatrix'], UV[0x0], new Cesium['Cartesian3']()); + var UX = Cesium['Matrix4']['multiplyByPoint'](UK['_contentModelMatrix'], UV[0x1], new Cesium['Cartesian3']()); + UM['updateBoundingVolume'](UX, UW); + model['_nodeCommands'][0x0]['command']['debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + cs['viewer']['scene']['requestRender'](); + } catch (UY) { + aCe('错' + doo(0x1fd) + ':' + UY); + } + }, + 'moveToPosition': function(UZ, V0, V1, V2, V3) { + try { + if (cs['isMobile']()) { + aCe('手' + doo(0x1fe) + '!'); + return; + } + + if (!isEmpty(V0)) { + if (cs['m_model']['get'](V0['toString']()) === undefined) { + throw doj(0x92); + } + cs['tileset'] = cs['m_model']['get'](V0['toString']()); + } + var V4, V5; + var V6; + var V7; + if (V1['length'] > 0x0) { + V4 = V1[0x0]; + V5 = V1[0x1]; + if (V1['length'] == 0x3) + height = V1[0x2]; + if (V2 == 0x0) { + V6 = Cesium['Cartographic']['fromDegrees'](V4, V5, height); + V7 = cs['funcPublic']['cartographicToCartesian3'](V6, cs['viewer']); + } else if (V2 == 0x1) { + V6 = new Cesium['Cartographic'](V4,V5,height); + V7 = cs['funcPublic']['cartographicToCartesian3'](V6, cs[dol(0x4b4)]); + } else if (V2 == 0x2) { + var V8 = cs['viewer'][dol(0x4b5)]['getPickRay'](new Cesium[(dol(0x4b6))](V1[0x0],V1[0x1])); + V7 = cs[dol(0x4b7)][dol(0x4b8)][dol(0x4b9)]['pick'](V8, cs['viewer']['scene']); + } + var V9 = function(Va, Vb, Vc, Vd, Ve) { + var Vf = Cesium['Matrix4']['fromTranslation'](Ve, new Cesium['Matrix4']()); + var Vg = Cesium['Cartesian3']['fromArray'](Vb['_batchTable']['_properties']['maxPoint'][Vd]); + var Vh = Cesium['Cartesian3']['fromArray'](Vb['_batchTable'][dol(0x4ba)]['minPoint'][Vd]); + var Vi = Vb['_batchTable']['getBatchIdMatrix'](Vd); + Vf = Cesium['Matrix4']['multiplyTransformation'](Vf, Vi, new Cesium['Matrix4']()); + Vb['_batchTable']['setBatchIdMatrix'](Vd, Vf); + var Vj = Cesium['Matrix4']['multiplyByPoint'](Vf, Vg, new Cesium['Cartesian3']()); + var Vk = Cesium['Matrix4']['multiplyByPoint'](Vf, Vh, new Cesium['Cartesian3']()); + var Vl = new Cesium['BoundingSphere'](); + Cesium[dol(0x4bb)]['fromPoints']([Vj, Vk], Vl); + Cesium['BoundingSphere']['transform'](Vl, Vb['_contentModelMatrix'], Vl); + var Vm = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere'][dol(0x4bc)](Vc['_nodeCommands'][0x0]['command']['_boundingVolume'], Vm); + Cesium['BoundingSphere']['union'](Vl, Vm, Vc['_nodeCommands'][0x0]['command']['_boundingVolume']); + Vc['_nodeCommands'][0x0]['dirty'] = !![]; + var Vn = [Vj, Vk]; + Vb['_batchTable']['_properties']['newMaxPoint'] = cs['funcPublic'][dol(0x4bd)](Vb[dol(0x4be)]['_properties']['maxPoint']); + Vb['_batchTable']['_properties'][dol(0x4bf)] = cs['funcPublic']['copyArr'](Vb['_batchTable']['_properties']['minPoint']); + Cesium['Cartesian3']['pack'](Vn[0x0], Vb['_batchTable']['_properties']['newMaxPoint'][Vd]); + Cesium['Cartesian3']['pack'](Vn[0x1], Vb['_batchTable']['_properties']['newMinPoint'][Vd]); + var Vo = Cesium['Matrix4']['multiplyByPoint'](Vb['_contentModelMatrix'], Vn[0x0], new Cesium['Cartesian3']()); + var Vp = Cesium[dol(0x4c0)]['multiplyByPoint'](Vb[dol(0x4c1)], Vn[0x1], new Cesium['Cartesian3']()); + Va['updateBoundingVolume'](Vp, Vo); + Vc['_nodeCommands'][0x0]['command']['debugShowBoundingVolume'] = ![]; + Vc['_nodeCommands'][0x0]['command']['dirty'] = !![]; + }; + var Vq = function(Vr, V7, Vt) { + var Vu = new Cesium['Cartesian3'](); + var Vv = new Cesium['Cartesian3'](); + var Vw = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], Vw); + Cesium['Matrix4']['multiplyByPoint'](Vw, Vr, Vu); + Cesium['Matrix4']['multiplyByPoint'](Vw, V7, Vv); + Cesium['Cartesian3']['add'](Vv, Vt, Vv); + var Vx = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](Vv, Vu, Vx); + return Vx; + }; + var Vy = function(Vz, VA, VB, V7) { + var VD = VA['_content']; + var VE = cs['funcPublic']['GetFeatureFromContent'](VD, Vz); + if (VE == -0x1) { + return; + } + var VF = VD['_model']; + if (cs['_lastMoveToPositionFeatureId'] && UZ === cs['_lastMoveToPositionFeatureId']['featureId'] && !cs['_lastMoveToPositionFeatureId']['size']) { + cs['Feature']['getGeometrySizeById'](UZ, V0, function(VG) { + if (VG != undefined) { + cs['_lastMoveToPositionFeatureId']['size'] = new Cesium[(dol(0x4c2))](Number(VG['x']),Number(VG['y']),Number(VG['z'])); + } + }, ![]); + } + if (V3) { + var VH = Vq(VB, V7, new Cesium['Cartesian3'](0x0,0x0,cs['_lastMoveToPositionFeatureId']['size']['z'] * 0.5)); + V9(VA, VD, VF, VE, VH); + } else { + var VH = Vq(VB, V7, new Cesium['Cartesian3']()); + V9(VA, VD, VF, VE, VH); + } + cs['viewer']['scene']['requestRender'](); + }; + if (V7) { + var VJ = cs['funcPublic']['disposeFeatureId'](UZ); + var VK; + if (VJ['length'] > 0x1) + VK = VJ[0x1]; + else + VK = VJ[0x0]; + var VL = cs['Feature']['getCenterById'](UZ, V0); + if (!VL) + return; + var VM = Cesium[dol(0x4c3)][dol(0x4c4)](VL); + var VN = new Cesium['Cartesian3'](); + if (VM && VM['length'] >= 0x1) { + VN = VM[0x0]; + } else { + return; + } + if (cs['_lastMoveToPositionFeatureId']) + cs[dol(0x4c5)] = void 0x0; + var VO = cs['m_model']['get'](V0['toString']()); + if (Cesium['defined'](VO)) { + cs['funcPublic']['getAllTiles'](VO, function(VP) { + for (var VQ = 0x0; VQ < VP['length']; ++VQ) { + var VR = VP[VQ]; + var VS = VR['_content']; + var VT = cs['funcPublic']['GetFeatureFromContent'](VS, VK); + if (VT == -0x1) { + continue; + } + if (!cs['_lastMoveToPositionFeatureId']) + cs['_lastMoveToPositionFeatureId'] = { + 'featureId': UZ, + 'tile': VR + }; + Vy(VK, VR, VN, V7); + } + }); + } + } + } + } catch (VU) { + aCe('错' + doo(0x1ff) + ':' + VU); + } + }, + 'moveByTrackPoint': function(bb, VW, VX) { + try { + + bb['speed'] = Number(bb['speed']) || 0x3; + var VY = bb['featureIds']; + var VZ = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var W0 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var W1 = { + 'models': [], + 'batchids': [] + }; + var W2; + var W3 = []; + for (var W4 = 0x0; W4 < VY['length']; W4++) { + var W5 = cs['funcPublic']['disposeFeatureId'](VY[W4]); + if (W5['length'] > 0x1) + W2 = W5[0x1]; + else + W2 = W5[0x0]; + W3['push'](W2); + } + for (var W6 = 0x0; W6 < cs['tileset']['_selectedTiles']['length']; ++W6) { + var W7 = cs['tileset']['_selectedTiles'][W6]['_content']; + var W8 = cs['funcPublic']['GetFeaturesFromContent'](W7, W3['join']('#')); + let W9 = cs['tileset']['_selectedTiles'][W6]; + let Wa = []; + if (W8['size'] == 0x0) { + continue; + } + W8['forEach'](function(Wb, Wc) { + Wa['push'](Wb); + let Wd = Wb; + W1['models']['push'](W9); + W1['batchids']['push'](Wd); + }); + } + var VZ = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var W0 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var Wg = cs['FeatureMoveState']['get'](bb['trackId']); + var Wh; + if (Wg == undefined) { + for (var W4 = 0x0; W4 < VY['length']; W4++) { + let W2; + var W5 = cs['funcPublic']['disposeFeatureId'](VY[W4]); + if (W5['length'] > 0x1) + W2 = W5[0x1]; + else + W2 = W5[0x0]; + var Wl = cs['Feature']['getVertex'](W2, W5[0x0], !![]); + var Wm = GetMaxMinPoint(Wl); + VZ = Cesium[dol(0x4c6)]['maximumByComponent'](VZ, Wm[0x0], new Cesium['Cartesian3']()); + W0 = Cesium['Cartesian3']['minimumByComponent'](W0, Wm[0x1], new Cesium['Cartesian3']()); + } + Wh = Cesium['Cartesian3']['midpoint'](VZ, W0, new Cesium['Cartesian3']()); + Wg = { + 'options': bb, + 'callback': VW, + 'onMoving': VX, + 'state': !![], + 'index': 0x0, + 'bigCenterPt': Wh, + 'angleOld': 0x0 + }; + cs['FeatureMoveState']['set'](bb['trackId'], Wg); + } else { + Wh = Wg['bigCenterPt']; + } + var Wn = []; + var Wo = [0x0]; + var Wp = [0x0]; + var Wq = []; + var Wr = 0x0; + bb['positions'][dol(0x4c7)]( (Ws, W4) => { + if (bb['axisType'] == 0x1) { + Wn['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3']['fromRadians'](Ws[0x0], Ws[0x1], Ws[0x2]), 0x0, 0x0, Wh['z'])); + } else if (bb['axisType'] == 0x2) { + Wn['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3']['fromDegrees'](Ws[0x0], Ws[0x1], Ws[0x2]), 0x0, 0x0, Wh['z'])); + } else if (bb[dol(0x4c8)] == 0x3) { + Wn['push'](cs['funcPublic']['getPointByDistance'](new Cesium['Cartesian3'](Ws[0x0],Ws[0x1],Ws[0x2]), 0x0, 0x0, 0x0)); + } + if (W4 > 0x0) { + Wr += Cesium[dol(0x4c9)]['distance'](Wn[W4], Wn[W4 - 0x1]); + Wo['push'](Wr); + } + } + ); + bb['positions']['forEach']( (Wu, W4) => { + if (W4 > 0x0) + Wp[dol(0x4ca)](Wo[W4] / Wr); + } + ); + var Ww = new Cesium['LinearSpline']({ + 'times': Wp, + 'points': Wn + }); + var Wx = Wg != undefined ? Wg['index'] : 0x0 + , Wy = Wg == undefined ? 0x0 : Wg['angleOld']; + var Wz = function() { + requestAnimationFrame(function() { + var Wg = cs['FeatureMoveState']['get'](bb['trackId']); + if (Wg == undefined) { + if (!isEmpty(VW)) { + VW(); + } + return; + } + if (!Wg['state']) { + Wg['index'] = --Wx; + return; + } + var WB = Ww[dol(0x4cb)](Wx / (0x7d0 / bb['speed'])); + if (Wx + 0x1 > 0x7d0 / bb['speed']) { + if (!isEmpty(VW)) { + VW(); + } + return; + } + var WC = Ww['evaluate']((Wx + 0x1) / (0x7d0 / bb['speed'])); + var WD = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], WD); + var WE = new Cesium['Cartesian3'](); + var WF = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](WD, WB, WE); + Cesium[dol(0x4cc)]['multiplyByPoint'](WD, WC, WF); + var WG = Cesium['Cartesian3']['subtract'](WF, WE, new Cesium['Cartesian3']()); + var WH = Cesium[dol(0x4cd)]['fromCartesian'](WB); + var WI = Cesium[dol(0x4ce)]['fromCartesian'](WC); + var WJ = cs['funcPublic']['bearing'](WH['longitude'], WH['latitude'], WI['longitude'], WI['latitude']); + WJ += bb['angleInit']; + for (let WK = 0x0; WK < W1['models']['length']; ++WK) { + let WL = W1['models'][WK]['_content']['_model']; + let WN = W1['models'][WK]['_content']; + let WO = W1['models'][WK]; + let WP = W1['batchids'][WK]; + if (Math['round'](Wy) != Math['round'](WJ)) { + var WQ = Cesium['Matrix3']['fromRotationZ'](Cesium['Math']['toRadians'](WJ - Wy)); + let WR = new Cesium['Matrix4'](); + WN['_batchTable']['getBatchIdMatrix'](WP)[dol(0x4cf)](WR); + var WS = Cesium['Matrix4']['multiplyByPoint'](WR, Wh, new Cesium['Cartesian3']()); + let WT = WS; + let WU = Cesium['Cartesian3']['subtract'](new Cesium['Cartesian3'](0x0,0x0,0x0), WT, new Cesium['Cartesian3']()); + let WV = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromRotationTranslation'](WQ), Cesium['Matrix4']['fromTranslation'](WU), new Cesium['Matrix4']()); + WV = Cesium['Matrix4']['multiply'](Cesium[dol(0x4d0)]['fromTranslation'](WT), WV, new Cesium['Matrix4']()); + var WW = Cesium['Matrix4']['multiplyTransformation'](WV, WR, new Cesium['Matrix4']()); + WN[dol(0x4d1)]['setBatchIdMatrix'](WP, WW); + } + var WW = Cesium['Matrix4']['fromTranslation'](WG, new Cesium['Matrix4']()); + var WY = WN['_batchTable']['getBatchIdMatrix'](WP); + WW = Cesium['Matrix4']['multiplyTransformation'](WW, WY, new Cesium['Matrix4']()); + WN['_batchTable']['setBatchIdMatrix'](WP, WW); + var WZ = Cesium['Cartesian3']['fromArray'](WN['_batchTable']['_properties']['maxPoint'][WP]); + var X0 = Cesium['Cartesian3']['fromArray'](WN['_batchTable']['_properties']['minPoint'][WP]); + var X1 = Cesium['Matrix4']['multiplyByPoint'](WW, WZ, new Cesium['Cartesian3']()); + var X2 = Cesium['Matrix4']['multiplyByPoint'](WW, X0, new Cesium['Cartesian3']()); + var X3 = new Cesium['BoundingSphere'](); + Cesium[dol(0x4d2)]['fromPoints']([X1, X2], X3); + Cesium['BoundingSphere']['transform'](X3, WN[dol(0x4d3)], X3); + var X4 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](WL['_nodeCommands'][0x0][dol(0x4d4)]['_boundingVolume'], X4); + Cesium['BoundingSphere'][dol(0x4d5)](X3, X4, WL['_nodeCommands'][0x0]['command']['_boundingVolume']); + WL['_nodeCommands'][0x0]['dirty'] = !![]; + var X5 = [X1, X2]; + WN['_batchTable']['_properties']['newMaxPoint'] = cs['funcPublic'][dol(0x4d6)](WN[dol(0x4d7)]['_properties']['maxPoint']); + WN['_batchTable']['_properties']['newMinPoint'] = cs['funcPublic']['copyArr'](WN['_batchTable']['_properties']['minPoint']); + Cesium['Cartesian3']['pack'](X5[0x0], WN['_batchTable']['_properties']['newMaxPoint'][WP]); + Cesium['Cartesian3']['pack'](X5[0x1], WN['_batchTable']['_properties']['newMinPoint'][WP]); + var X6 = Cesium['Matrix4']['multiplyByPoint'](WN['_contentModelMatrix'], X5[0x0], new Cesium['Cartesian3']()); + var X7 = Cesium['Matrix4'][dol(0x4d8)](WN['_contentModelMatrix'], X5[0x1], new Cesium['Cartesian3']()); + WO['updateBoundingVolume'](X7, X6); + WL['_nodeCommands'][0x0]['command']['debugShowBoundingVolume'] = ![]; + WL['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + Wy = WJ; + Wg['angleOld'] = Wy; + cs['viewer']['scene']['requestRender'](); + Wx++; + if (Wx < 0x7d0 / bb['speed']) { + Wz(); + } else { + if (!isEmpty(VW)) { + VW(); + } + } + }); + }; + Wz(); + } catch (X8) { + aCe('错' + doo(0x200) + ':' + X8); + } + }, + 'moveByTrackPan': function(bb, Xa, Xb) { + try { + + bb['speed'] = Number(bb['speed']) || 0x3; + var Xc = bb['featureIds']; + var Xd = new Cesium[(dol(0x4d9))](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var Xe = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number[dol(0x4da)],Number['MAX_VALUE']); + var Xf = { + 'models': [], + 'batchids': [] + }; + var Xg; + var Xh = []; + for (var Xi = 0x0; Xi < Xc['length']; Xi++) { + var Xj = cs['funcPublic']['disposeFeatureId'](Xc[Xi]); + if (Xj['length'] > 0x1) + Xg = Xj[0x1]; + else + Xg = Xj[0x0]; + Xh['push'](Xg); + } + for (var Xk = 0x0; Xk < cs['tileset']['_selectedTiles']['length']; ++Xk) { + var Xl = cs['tileset']['_selectedTiles'][Xk]['_content']; + var Xm = cs['funcPublic']['GetFeaturesFromContent'](Xl, Xh['join']('#')); + let Xn = cs['tileset']['_selectedTiles'][Xk]; + let Xo = []; + if (Xm['size'] == 0x0) { + continue; + } + Xm['forEach'](function(Xp, Xq) { + Xo['push'](Xp); + let Xr = Xp; + Xf['models']['push'](Xn); + Xf['batchids']['push'](Xr); + }); + } + var Xd = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var Xe = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number[dol(0x4db)]); + var Xu = cs['FeatureMoveState'][dol(0x4dc)](bb['trackId']); + var Xv; + if (Xu == undefined) { + for (var Xi = 0x0; Xi < Xc['length']; Xi++) { + var Xx = cs['Feature']['getVertex'](Xc[Xi]); + var Xy = GetMaxMinPoint(Xx); + Xd = Cesium[dol(0x4dd)]['maximumByComponent'](Xd, Xy[0x0], new Cesium['Cartesian3']()); + Xe = Cesium['Cartesian3']['minimumByComponent'](Xe, Xy[0x1], new Cesium['Cartesian3']()); + } + Xv = Cesium['Cartesian3']['midpoint'](Xd, Xe, new Cesium['Cartesian3']()); + Xu = { + 'options': bb, + 'callback': Xa, + 'onMoving': Xb, + 'state': !![], + 'index': 0x0, + 'bigCenterPt': Xv, + 'angleOld': 0x0 + }; + cs['FeatureMoveState']['set'](bb['trackId'], Xu); + } else { + Xv = Xu['bigCenterPt']; + } + var Xz = []; + var XA = [0x0]; + var XB = [0x0]; + var XC = []; + var XD = 0x0; + bb[dol(0x4de)]['forEach']( (XE, Xi) => { + if (bb['axisType'] == 0x1) { + Xz['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3']['fromRadians'](XE[0x0], XE[0x1], XE[0x2]), 0x0, 0x0, Xv['z'])); + } else if (bb['axisType'] == 0x2) { + Xz['push'](cs['funcPublic']['getPointByDistance'](Cesium['Cartesian3']['fromDegrees'](XE[0x0], XE[0x1], XE[0x2]), 0x0, 0x0, Xv['z'])); + } else if (bb['axisType'] == 0x3) { + Xz['push'](cs['funcPublic']['getPointByDistance'](new Cesium['Cartesian3'](XE[0x0],XE[0x1],XE[0x2]), 0x0, 0x0, 0x0)); + } + if (Xi > 0x0) { + XD += Cesium['Cartesian3']['distance'](Xz[Xi], Xz[Xi - 0x1]); + XA['push'](XD); + } + } + ); + bb['positions']['forEach']( (XG, Xi) => { + if (Xi > 0x0) + XB['push'](XA[Xi] / XD); + } + ); + var XI = new Cesium['LinearSpline']({ + 'times': XB, + 'points': Xz + }); + var XJ = Xu != undefined ? Xu['index'] : 0x0 + , XK = Xu == undefined ? 0x0 : Xu['angleOld']; + var XL = function() { + requestAnimationFrame(function() { + var Xu = cs['FeatureMoveState']['get'](bb['trackId']); + if (Xu == undefined) { + if (!isEmpty(Xa)) { + Xa(); + } + return; + } + if (!Xu['state']) { + Xu['index'] = --XJ; + return; + } + var XN = XI['evaluate'](XJ / (0x7d0 / bb['speed'])); + if (XJ + 0x1 > 0x7d0 / bb['speed']) { + if (!isEmpty(Xa)) { + Xa(); + } + return; + } + var XO = XI['evaluate']((XJ + 0x1) / (0x7d0 / bb['speed'])); + var XP = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], XP); + var XQ = new Cesium['Cartesian3'](); + var XR = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](XP, XN, XQ); + Cesium['Matrix4']['multiplyByPoint'](XP, XO, XR); + var XS = Cesium['Cartesian3']['subtract'](XR, XQ, new Cesium['Cartesian3']()); + for (let XT = 0x0; XT < Xf['models']['length']; ++XT) { + let XU = Xf['models'][XT]['_content'][dol(0x4df)]; + let XV = Xf['models'][XT]['_content']; + let XW = Xf['models'][XT]; + let XX = Xf['batchids'][XT]; + var XY = Cesium[dol(0x4e0)]['fromTranslation'](XS, new Cesium['Matrix4']()); + var XZ = XV['_batchTable']['getBatchIdMatrix'](XX); + XY = Cesium['Matrix4']['multiplyTransformation'](XY, XZ, new Cesium['Matrix4']()); + XV['_batchTable']['setBatchIdMatrix'](XX, XY); + var Y0 = Cesium['Cartesian3']['fromArray'](XV['_batchTable']['_properties']['maxPoint'][XX]); + var Y1 = Cesium['Cartesian3'][dol(0x4e1)](XV['_batchTable']['_properties']['minPoint'][XX]); + var Y2 = Cesium['Matrix4']['multiplyByPoint'](XY, Y0, new Cesium[(dol(0x4e2))]()); + var Y3 = Cesium['Matrix4'][dol(0x4e3)](XY, Y1, new Cesium['Cartesian3']()); + var Y4 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([Y2, Y3], Y4); + Cesium['BoundingSphere'][dol(0x4e4)](Y4, XV['_contentModelMatrix'], Y4); + var Y5 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](XU['_nodeCommands'][0x0]['command']['_boundingVolume'], Y5); + Cesium['BoundingSphere']['union'](Y4, Y5, XU['_nodeCommands'][0x0]['command'][dol(0x4e5)]); + XU['_nodeCommands'][0x0]['dirty'] = !![]; + var Y6 = [Y2, Y3]; + XV['_batchTable']['_properties']['newMaxPoint'] = cs['funcPublic']['copyArr'](XV['_batchTable']['_properties']['maxPoint']); + XV['_batchTable'][dol(0x4e6)][dol(0x4e7)] = cs['funcPublic']['copyArr'](XV['_batchTable']['_properties']['minPoint']); + Cesium['Cartesian3']['pack'](Y6[0x0], XV['_batchTable']['_properties']['newMaxPoint'][XX]); + Cesium['Cartesian3']['pack'](Y6[0x1], XV['_batchTable']['_properties']['newMinPoint'][XX]); + var Y7 = Cesium['Matrix4']['multiplyByPoint'](XV['_contentModelMatrix'], Y6[0x0], new Cesium['Cartesian3']()); + var Y8 = Cesium['Matrix4']['multiplyByPoint'](XV['_contentModelMatrix'], Y6[0x1], new Cesium['Cartesian3']()); + XW['updateBoundingVolume'](Y8, Y7); + XU['_nodeCommands'][0x0]['command']['debugShowBoundingVolume'] = ![]; + XU['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + cs['viewer']['scene']['requestRender'](); + XJ++; + if (XJ < 0x7d0 / bb['speed']) { + XL(); + } else { + if (!isEmpty(Xa)) { + Xa(); + } + } + }); + }; + XL(); + } catch (Y9) { + aCe('错' + doo(0x201) + ':' + Y9); + } + }, + 'pauseMoveByTrackPoint': function(Ya) { + + var Yb = cs['FeatureMoveState']['get'](Ya); + if (Yb == undefined) { + throw 'I' + doo(0x202) + 'l'; + } + Yb['state'] = !Yb['state']; + if (Yb[dol(0x4e8)]) { + cs['Feature']['moveByTrackPoint'](Yb['options'], Yb[dol(0x4e9)], Yb['onMoving']); + } + }, + 'stopMoveByTrackPoint': function(Yc) { + + cs['FeatureMoveState'][dol(0x4ea)](Yc); + }, + 'debugShowBoundingVolume': function(Yd) { + if (!isEmpty(Yd)) { + if (cs['m_model']['get'](Yd['toString']()) === undefined) { + throw doj(0x93); + } + cs['tileset'] = cs['m_model']['get'](Yd['toString']()); + } + for (j = 0x0; j < cs['tileset'][dol(0x4eb)]['length']; ++j) { + var Ye = cs['tileset']['_selectedTiles'][j]['_content']; + } + cs['viewer']['scene']['requestRender'](); + }, + 'debugShowGLB': function(Yf) { + if (!isEmpty(Yf)) { + if (cs['m_model']['get'](Yf['toString']()) === undefined) { + throw doj(0x94); + } + var Yg = cs['m_model']['get'](Yf['toString']()); + for (var Yh = 0x0; Yh < Yg['_nodeCommands']['length']; Yh++) { + Yg['_nodeCommands'][Yh]['command']['debugShowBoundingVolume'] = !![]; + cs['funcPublic']['drawPointByCartesian3'](Yg['_nodeCommands'][Yh]['command']['_boundingVolume']['center'], cs['viewer'], Cesium['Color'][dol(0x4ec)], 0x64); + var Yi = Yg['_nodeCommands'][Yh]['command']['_owner']; + var Yj = Yg['_nodeCommands'][Yh]['command']['_vertexArray']['_attributes']['length'] == 0x2 ? 0x1 : 0x2; + var Yk = Yg['_nodeCommands'][Yh]['command'][dol(0x4ed)]['_attributes'][Yj]['vertexBuffer']; + var Yl = Cesium['ComponentDatatype']['FLOAT']; + var Ym = new Uint8Array(Yk[dol(0x4ee)]); + Yk['getBufferData'](Ym); + var Yn = Ym['buffer']; + var Yo = Yk['_sizeInBytes'] / Cesium['ComponentDatatype']['getSizeInBytes'](Yl); + var Yp = Cesium[dol(0x4ef)]['createArrayBufferView'](Yl, Yn, 0x0, Yo); + console['log'](Yi['node']['_matrix']); + var Yq = []; + for (j = 0x0; j < Yp['length'] / 0x3; j++) { + var Yr = j; + var Ys = new Cesium['Cartesian3'](Yp[Yr * 0x3],Yp[Yr * 0x3 + 0x1],Yp[Yr * 0x3 + 0x2]); + Yq['push'](Ys['x']); + Yq['push'](Ys['y']); + Yq['push'](Ys['z']); + var Yt = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](Yg['modelMatrix'], Ys, Yt); + cs['viewer']['entities']['add']({ + 'position': Yt, + 'point': { + 'color': Cesium['Color']['BLUE'], + 'pixelSize': 0x32 + } + }); + } + console['log'](Yq); + var Yu = GetMaxMinPoint(Yq); + console['log'](Yu); + } + } + cs['viewer']['scene']['requestRender'](); + }, + 'offsetBatchId': function(Yv, Yw, Yx, Yy, Yz, YA) { + try { + if (cs['isMobile']()) { + aCe('手' + doo(0x203) + '!'); + return; + } + + if (!isEmpty(Yz)) { + if (cs['m_model']['get'](Yz['toString']()) === undefined) { + throw doj(0x95); + } + cs['tileset'] = cs['m_model'][dol(0x4f0)](Yz[dol(0x4f1)]()); + } + var YB = cs[dol(0x4f2)]['disposeFeatureId'](Yy); + if (YB['length'] > 0x1) + Yy = YB[0x1]; + else + Yy = YB[0x0]; + for (var YC = 0x0; YC < cs['tileset']['_selectedTiles']['length']; ++YC) { + var YD = cs['tileset']['_selectedTiles'][YC]['_content']; + var YE = cs['funcPublic']['GetFeatureFromContent'](YD, Yy); + if (YE == -0x1 && YE != YA) { + continue; + } + var YF = cs['tileset']['_selectedTiles'][YC]; + model = YD[dol(0x4f3)]; + var YG = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](Yv,Yw,Yx), new Cesium['Matrix4']()); + var YH = Cesium['Cartesian3']['fromArray'](YD['_batchTable']['_properties']['maxPoint'][YE]); + var YI = Cesium[dol(0x4f4)]['fromArray'](YD['_batchTable']['_properties']['minPoint'][YE]); + var YJ = YD['_batchTable']['getBatchIdMatrix'](YE); + YG = Cesium['Matrix4']['multiplyTransformation'](YG, YJ, new Cesium['Matrix4']()); + YD['_batchTable'][dol(0x4f5)](YE, YG); + var YK = Cesium['Matrix4']['multiplyByPoint'](YG, YH, new Cesium['Cartesian3']()); + var YL = Cesium['Matrix4']['multiplyByPoint'](YG, YI, new Cesium[(dol(0x4f6))]()); + var YM = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([YK, YL], YM); + Cesium['BoundingSphere']['transform'](YM, YD['_contentModelMatrix'], YM); + var YN = new Cesium[(dol(0x4f7))](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], YN); + Cesium['BoundingSphere']['union'](YM, YN, model['_nodeCommands'][0x0]['command']['_boundingVolume']); + model['_nodeCommands'][0x0]['dirty'] = !![]; + var YO = [YK, YL]; + YD['_batchTable']['_properties']['newMaxPoint'] = cs['funcPublic'][dol(0x4f8)](YD['_batchTable']['_properties']['maxPoint']); + YD['_batchTable']['_properties']['newMinPoint'] = cs['funcPublic']['copyArr'](YD['_batchTable']['_properties'][dol(0x4f9)]); + Cesium['Cartesian3']['pack'](YO[0x0], YD['_batchTable']['_properties']['newMaxPoint'][YE]); + Cesium[dol(0x4fa)]['pack'](YO[0x1], YD['_batchTable']['_properties']['newMinPoint'][YE]); + var YP = Cesium['Matrix4']['multiplyByPoint'](YD['_contentModelMatrix'], YO[0x0], new Cesium['Cartesian3']()); + var YQ = Cesium['Matrix4']['multiplyByPoint'](YD['_contentModelMatrix'], YO[0x1], new Cesium['Cartesian3']()); + YF['updateBoundingVolume'](YQ, YP); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + cs['viewer']['scene'][dol(0x4fb)](); + } catch (YR) { + aCe('错' + doo(0x204) + ':' + YR); + } + }, + 'clearRotate': function(YS, YT) { + try { + if (cs[dol(0x4fc)]()) { + aCe('手' + doo(0x205) + '!'); + return; + } + + if (!isEmpty(YT)) { + if (cs['m_model']['get'](YT['toString']()) === undefined) { + throw doj(0x96); + } + cs['tileset'] = cs['m_model']['get'](YT['toString']()); + } + var YU = cs['funcPublic']['disposeFeatureId'](YS); + if (YU['length'] > 0x1) { + YT = YU[0x0]; + YS = YU[0x1]; + } else + YS = YU[0x0]; + cs['AutoRotateList']['some'](function(YV, YW) { + if (YV['FeatureID'] == YS && YV['Tag'] == YT) { + cs['AutoRotateList'][dol(0x4fd)](YW, 0x1); + return !![]; + } + }); + for (var YX = 0x0; YX < cs['tileset']['_selectedTiles']['length']; ++YX) { + var YY = cs['tileset']['_selectedTiles'][YX]['_content']; + var YZ = cs['tileset']['_selectedTiles'][YX]; + var Z0 = cs['funcPublic']['GetFeatureFromContent'](YY, YS); + if (Z0 == -0x1) { + continue; + } + model = YY['_model']; + YY['_batchTable']['setBatchIdMatrix'](Z0, Cesium['Matrix4'][dol(0x4fe)]); + var Z1 = cs['funcPublic']['GetFeatureMaxMinPoint'](YY, Z0, cs, !![]); + var Z2 = new Cesium['Cartesian3'](-Infinity,-Infinity,-Infinity) + , Z3 = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + Z2 = Cesium['Cartesian3']['maximumByComponent'](Z2, Z1[0x0], new Cesium['Cartesian3']()); + Z3 = Cesium['Cartesian3']['minimumByComponent'](Z3, Z1[0x1], new Cesium['Cartesian3']()); + var Z4 = new Cesium[(dol(0x4ff))](); + Cesium['BoundingSphere']['fromPoints']([Z2, Z3], Z4); + Cesium['BoundingSphere']['transform'](Z4, YY['_contentModelMatrix'], Z4); + var Z5 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], Z5); + Cesium[dol(0x500)][dol(0x501)](Z4, Z5, model['_nodeCommands'][0x0]['command']['_boundingVolume']); + model['_nodeCommands'][0x0]['dirty'] = !![]; + var Z6 = [Z2, Z3]; + var Z7 = Cesium['Matrix4']['multiplyByPoint'](YY['_contentModelMatrix'], Z6[0x0], new Cesium['Cartesian3']()); + var Z8 = Cesium['Matrix4']['multiplyByPoint'](YY['_contentModelMatrix'], Z6[0x1], new Cesium['Cartesian3']()); + YZ['updateBoundingVolume'](Z8, Z7); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + cs['viewer']['scene']['requestRender'](); + } catch (Z9) { + aCe('错' + doo(0x206) + ':' + Z9); + } + }, + 'rotate': function(Za, Zb, Zc, Zd, Ze, Zf, Zg) { + try { + if (cs['isMobile']()) { + aCe('手' + doo(0x207) + '!'); + return; + } + + if (!isEmpty(Zf)) { + if (cs['m_model']['get'](Zf['toString']()) === undefined) { + throw doj(0x97); + } + cs['tileset'] = cs['m_model']['get'](Zf['toString']()); + } + if (!Array['isArray'](Za)) { + Za = [Za]; + } + var Zh; + var Zi = []; + for (var Zj = 0x0; Zj < Za['length']; Zj++) { + Zh = cs['funcPublic']['disposeFeatureId'](Za[Zj]); + if (Zh['length'] > 0x1) + Zi['push'](Zh[0x1]); + else + Zi['push'](Zh[0x0]); + } + var Zk = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var Zl = new Cesium[(dol(0x502))](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var Zm = { + 'models': [], + 'batchids': [] + }; + var Zn = new Cesium['Matrix3'](); + for (var Zo = 0x0; Zo < cs['tileset']['_selectedTiles']['length']; ++Zo) { + let Zp = cs[dol(0x503)]['_selectedTiles'][Zo][dol(0x504)]; + let Zq = cs[dol(0x505)]['_selectedTiles'][Zo]; + var Zr = cs['funcPublic']['GetFeaturesFromContent'](Zp, Zi['join']('#')); + let Zs = []; + if (Zr['size'] == 0x0) { + continue; + } + Zr['forEach'](function(Zt, Zu) { + let Zv = Zt; + var Zw = cs['funcPublic']['GetFeatureMaxMinPoint'](Zp, Zv); + Zk = Cesium['Cartesian3']['maximumByComponent'](Zk, Zw[0x0], new Cesium['Cartesian3']()); + Zk = Cesium['Cartesian3']['maximumByComponent'](Zk, Zw[0x1], new Cesium['Cartesian3']()); + Zl = Cesium['Cartesian3'][dol(0x506)](Zl, Zw[0x0], new Cesium['Cartesian3']()); + Zl = Cesium['Cartesian3']['minimumByComponent'](Zl, Zw[0x1], new Cesium['Cartesian3']()); + Zm['models'][dol(0x507)](Zq); + Zm[dol(0x508)]['push'](Zv); + isFindFeature = !![]; + }); + } + if (Zm['models']['length'] > 0x0) { + var Zx = Cesium['Cartesian3']['midpoint'](Zk, Zl, new Cesium['Cartesian3']()); + var Zy = undefined; + if (Zb == 0x1 && Zc == 0x0 && Zd == 0x0) { + Zy = Cesium[dol(0x509)]['fromRotationX'](Cesium['Math']['toRadians'](Ze)); + } else if (Zb == 0x0 && Zc == 0x1 && Zd == 0x0) { + Zy = Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](Ze)); + } else if (Zb == 0x0 && Zc == 0x0 && Zd == 0x1) { + Zy = Cesium['Matrix3']['fromRotationZ'](Cesium['Math']['toRadians'](Ze)); + } + Cesium['Matrix4']['clone'](Zy, Zn); + for (let Zz = 0x0; Zz < Zm[dol(0x50a)]['length']; ++Zz) { + let ZA = Zm['models'][Zz]['_content']['_model']; + let ZB = Zm['models'][Zz]['_content']; + let ZC = Zm['models'][Zz]; + let ZD = Zm['batchids'][Zz]; + let ZE = new Cesium['Matrix4'](); + ZB['_batchTable']['getBatchIdMatrix'](ZD)['clone'](ZE); + let ZF = Zx; + let ZG = Cesium['Cartesian3']['subtract'](new Cesium['Cartesian3'](0x0,0x0,0x0), ZF, new Cesium['Cartesian3']()); + let ZH = Cesium[dol(0x50b)]['multiply'](Cesium['Matrix4']['fromRotationTranslation'](Zy), Cesium['Matrix4']['fromTranslation'](ZG), new Cesium['Matrix4']()); + ZH = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromTranslation'](ZF), ZH, new Cesium['Matrix4']()); + m1 = Cesium['Matrix4']['multiplyTransformation'](ZH, ZE, new Cesium['Matrix4']()); + ZB['_batchTable']['setBatchIdMatrix'](ZD, m1); + var ZI = Cesium['Matrix4']['multiplyByPoint'](m1, Zk, new Cesium['Cartesian3']()); + var ZJ = Cesium[dol(0x50c)]['multiplyByPoint'](m1, Zl, new Cesium['Cartesian3']()); + var ZK = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere'][dol(0x50d)]([ZI, ZJ], ZK); + Cesium['BoundingSphere']['transform'](ZK, ZB['_contentModelMatrix'], ZK); + var ZL = new Cesium[(dol(0x50e))](); + Cesium['BoundingSphere']['clone'](ZA[dol(0x50f)][0x0]['command']['_boundingVolume'], ZL); + Cesium['BoundingSphere']['union'](ZK, ZL, ZA[dol(0x510)][0x0]['command']['_boundingVolume']); + ZA['_nodeCommands'][0x0]['dirty'] = !![]; + var ZM = [ZI, ZJ]; + ZB['_batchTable']['_properties']['newMaxPoint'] = cs['funcPublic']['copyArr'](ZB[dol(0x511)][dol(0x512)]['maxPoint']); + ZB[dol(0x513)]['_properties']['newMinPoint'] = cs['funcPublic'][dol(0x514)](ZB['_batchTable']['_properties']['minPoint']); + Cesium['Cartesian3']['pack'](ZM[0x0], ZB['_batchTable']['_properties']['newMaxPoint'][ZD]); + Cesium['Cartesian3']['pack'](ZM[0x1], ZB['_batchTable']['_properties']['newMinPoint'][ZD]); + var ZN = Cesium['Matrix4']['multiplyByPoint'](ZB['_contentModelMatrix'], ZM[0x0], new Cesium['Cartesian3']()); + var ZO = Cesium['Matrix4']['multiplyByPoint'](ZB['_contentModelMatrix'], ZM[0x1], new Cesium['Cartesian3']()); + ZC['updateBoundingVolume'](ZO, ZN); + ZA['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + ZA['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + } + if (Zg != undefined) { + Zg(Zn); + } + cs['viewer']['scene']['requestRender'](); + } catch (ZP) { + aCe('错' + doo(0x208) + ':' + ZP); + } + }, + 'getRotateAxis': function(ZQ, ZR, ZS) { + try { + if (!isEmpty(ZS)) { + if (cs['m_model']['get'](ZS['toString']()) === undefined) { + throw doj(0x98); + } + cs['tileset'] = cs['m_model']['get'](ZS[dol(0x515)]()); + } + var ZT = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](ZQ, ZT); + var ZU = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root'][dol(0x516)], ZU); + Cesium['Matrix4']['multiplyByPoint'](ZU, ZQ, ZQ); + Cesium['Matrix4']['multiplyByPoint'](ZU, ZR, ZR); + var ZV = Cesium[dol(0x517)]['subtract'](ZQ, ZR, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['normalize'](ZV, ZV); + return ZV; + } catch (ZW) { + aCe('错' + doo(0x209) + ':' + ZW); + } + }, + 'updateRotateAxis': function(ZX, ZY, ZZ) { + if (ZX == undefined || ZY == undefined || ZZ == undefined) { + return undefined; + } + var a00 = new Cesium['Cartesian3'](); + var a01 = Cesium['Cartesian3']['angleBetween'](ZX, new Cesium['Cartesian3'](0x1,0x0,0x0)); + a01 = a01 * 0xb4 / Math['PI']; + var a02 = ZY; + var a03 = ZZ; + var a04 = cs['funcPublic']['bearing'](a02['longitude'], a02['latitude'], a03['longitude'], a03['latitude']); + a04 += a01; + if (Math['round'](a04)) { + var a05 = Cesium['Matrix3']['fromRotationZ'](Cesium[dol(0x518)]['toRadians'](a04)); + Cesium['Matrix4']['multiplyByPoint'](Cesium['Matrix4']['fromRotationTranslation'](a05), ZX, a00); + } + Cesium['Cartesian3']['normalize'](a00, a00); + return a00; + }, + 'autoRotate': function(a06, a07, a08, a09, a0a, a0b, a0c, a0d, a0e) { + if (cs[dol(0x519)]()) { + aCe('手' + doo(0x20a) + '!'); + return; + } + + var a0f = new Cesium['Cartesian3'](a07,a08,a09); + try { + if (!isEmpty(a0c)) { + if (cs['m_model']['get'](a0c['toString']()) === undefined) { + throw doj(0x99); + } + cs['tileset'] = cs['m_model']['get'](a0c['toString']()); + } + var a0g = cs['funcPublic'][dol(0x51a)](a06); + if (a0g['length'] > 0x1) { + a0c = a0g[0x0]; + a06 = a0g[0x1]; + } else + a06 = a0g[0x0]; + var a0h = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number[dol(0x51b)],-Number['MAX_VALUE']); + var a0i = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var a0j = { + 'models': [], + 'batchids': [], + 'contents': [] + }; + for (var a0k = 0x0; a0k < cs['tileset']['_selectedTiles']['length']; ++a0k) { + let a0l = cs['tileset'][dol(0x51c)][a0k]['_content']; + var a0m = cs['funcPublic']['GetFeatureFromContent'](a0l, a06); + if (a0m == -0x1) { + continue; + } + let a0n = []; + a0n['push'](a0m); + if (a0d == undefined) { + var a0o = cs['funcPublic']['GetFeatureMaxMinPoint'](a0l, a0m); + a0h = Cesium['Cartesian3']['maximumByComponent'](a0h, a0o[0x0], new Cesium[(dol(0x51d))]()); + a0h = Cesium['Cartesian3']['maximumByComponent'](a0h, a0o[0x1], new Cesium['Cartesian3']()); + a0i = Cesium[dol(0x51e)][dol(0x51f)](a0i, a0o[0x0], new Cesium[(dol(0x520))]()); + a0i = Cesium['Cartesian3']['minimumByComponent'](a0i, a0o[0x1], new Cesium['Cartesian3']()); + } else { + a0d = a0d['clone'](); + } + a0j['models']['push'](a0l['_model']); + a0j['batchids']['push'](a0n); + a0j['contents'][dol(0x521)](a0l); + } + if (a0j['models']['length'] > 0x0) { + var a0p; + if (a0d != undefined) { + var a0q = new Cesium['Matrix4'](); + var a0r = Cesium['Matrix4']['multiply'](cs['tileset']['modelMatrix'], cs['tileset']['root']['transform'], new Cesium['Matrix4']()); + Cesium['Matrix4']['inverse'](a0r, a0q); + Cesium['Matrix4']['multiplyByPoint'](a0q, a0d, a0d); + a0p = a0d; + } else { + a0p = Cesium['Cartesian3']['midpoint'](a0h, a0i, new Cesium['Cartesian3']()); + } + cs['StopAutoRotate'] = ![]; + cs['AutoRotateList']['push']({ + 'FeatureID': a06, + 'RotateDirection': a0f, + 'Speed': a0a, + 'RepeatNum': a0b, + 'Tag': a0c + }); + cs['Feature']['animation'](a06, a0j, a0p[dol(0x522)](), a0f, a0a, a0b, 0x1, a0c, a0e); + } + cs[dol(0x523)]['scene']['requestRender'](); + } catch (a0s) { + aCe('错' + doo(0x20b) + ':' + a0s); + } + }, + 'animation': function(a0t, a0u, a0v, a0w, a0x, a0y, a0z, a0A, a0B) { + if (cs['isMobile']()) { + aCe('手' + doo(0x20c) + '!'); + return; + } + requestAnimationFrame(function() { + if (!cs['StopAutoRotate']) { + if (a0z % 0x2 == 0x0) { + let a0C = undefined; + var a0D = Cesium['Quaternion']['fromAxisAngle'](a0w, Cesium['Math']['toRadians'](a0x * 0xa), new Cesium['Quaternion']()); + a0C = Cesium[dol(0x524)]['fromQuaternion'](a0D, new Cesium['Matrix3']()); + for (let a0E = 0x0; a0E < a0u['models']['length']; ++a0E) { + let a0F = a0u['models'][a0E]; + let a0G = a0u['batchids'][a0E]; + let a0H = a0u[dol(0x525)][a0E]; + for (let a0I = 0x0; a0I < a0G['length']; a0I++) { + let a0J = a0G[a0I]; + var a0K = new Cesium['Matrix4'](); + a0H['_batchTable']['getBatchIdMatrix'](a0J)['clone'](a0K); + var a0L = []; + let a0M = a0v; + let a0N = Cesium['Cartesian3']['subtract'](new Cesium[(dol(0x526))](0x0,0x0,0x0), a0M, new Cesium['Cartesian3']()); + let a0O = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromRotationTranslation'](a0C), Cesium['Matrix4'][dol(0x527)](a0N), new Cesium['Matrix4']()); + a0O = Cesium['Matrix4'][dol(0x528)](Cesium['Matrix4'][dol(0x529)](a0M), a0O, new Cesium['Matrix4']()); + var a0P = Cesium['Matrix4']['multiplyTransformation'](a0O, a0K, new Cesium['Matrix4']()); + a0H['_batchTable']['setBatchIdMatrix'](a0J, a0P); + } + } + var a0Q = cs['FeatureEditMap']['get'](a0u['featureId']); + if (a0Q == undefined) { + cs['FeatureEditMap']['set'](a0u['featureId'], a0L); + } + } + a0z++; + cs['viewer']['scene']['requestRender'](); + var a0R; + if (cs['AutoRotateList']['some'](function(a0S) { + a0R = a0S['RotateDirection']; + return a0S['FeatureID'] == a0t; + }) && (parseFloat(a0y || 0x0) == 0x0 || a0z < a0y)) { + cs['Feature']['animation'](a0t, a0u, a0v, a0R, a0x, a0y, a0z, a0A, a0B); + } else { + cs['Feature']['clearRotate'](a0t, a0A, ![]); + if (a0B) { + a0B(); + } + } + } + }); + }, + 'updateAutoRotateList': function(a0T) { + if (cs['AutoRotateList']['length'] > 0x0) { + for (var a0U = 0x0; a0U < cs['AutoRotateList']['length']; a0U++) { + var a0V = cs['AutoRotateList'][a0U]; + a0V['RotateDirection'] = a0T['clone'](); + } + } + }, + 'rotateByAnyAxis': function(bb) { + if (cs['isMobile']()) { + aCe('手' + doo(0x20d) + '!'); + return; + } + try { + + if (!Cesium['defined'](bb)) + throw '缺' + doo(0x20e) + 's'; + if (!isEmpty(bb['tag'])) { + if (cs['m_model']['get'](bb['tag'][dol(0x52a)]()) === undefined) { + throw doj(0x9a); + } + cs['tileset'] = cs['m_model']['get'](bb['tag']['toString']()); + } + var a0X; + var a0Y = []; + var a0Z = new Cesium['Matrix4'](); + var a10 = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4']['multiply'](cs['tileset'][dol(0x52b)], cs['tileset']['root'][dol(0x52c)], a10); + Cesium['Matrix4']['inverse'](a10, a0Z); + if (!Array['isArray'](bb[dol(0x52d)]) && bb['featureId']['indexOf']('#')) { + bb['featureId'] = bb[dol(0x52e)]['split']('#'); + } + for (var a11 = 0x0; a11 < bb['featureId']['length']; a11++) { + a0X = cs['funcPublic']['disposeFeatureId'](bb['featureId'][a11]); + if (a0X['length'] > 0x1) + a0Y['push'](a0X[0x1]); + else + a0Y[dol(0x52f)](a0X[0x0]); + } + var a12 = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var a13 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var a14 = { + 'models': [], + 'batchids': [] + }; + var a15 = new Cesium[(dol(0x530))](); + for (var a16 = 0x0; a16 < cs['tileset']['_selectedTiles'][dol(0x531)]; ++a16) { + let a17 = cs['tileset']['_selectedTiles'][a16]['_content']; + let a18 = cs['tileset']['_selectedTiles'][a16]; + var a19 = cs[dol(0x532)]['GetFeaturesFromContent'](a17, a0Y['join']('#')); + let a1a = []; + if (a19['size'] == 0x0) { + continue; + } + a19['forEach'](function(a1b, a1c) { + a1a['push'](a1b); + let a1d = a1b; + var a1e = cs['funcPublic']['GetFeatureMaxMinPoint'](a17, a1d); + a12 = Cesium['Cartesian3']['maximumByComponent'](a12, a1e[0x0], new Cesium['Cartesian3']()); + a12 = Cesium[dol(0x533)]['maximumByComponent'](a12, a1e[0x1], new Cesium['Cartesian3']()); + a13 = Cesium['Cartesian3']['minimumByComponent'](a13, a1e[0x0], new Cesium['Cartesian3']()); + a13 = Cesium['Cartesian3']['minimumByComponent'](a13, a1e[0x1], new Cesium['Cartesian3']()); + a14['models']['push'](a18); + a14[dol(0x534)]['push'](a1a); + }); + } + if (a14['models']['length'] == 0x0 || a14['batchids']['length'] == 0x0) { + throw doj(0x9b); + } + var a1f = Number(bb['rotate']); + if (isNaN(a1f)) { + throw doj(0x9c); + } + var a1g, a1h; + switch (bb['type']) { + case 0x0: + if (Array['isArray'](bb['point1']) && bb['point1']['length'] == 0x3 && Array['isArray'](bb['point2']) && bb['point2']['length'] == 0x3) { + a1g = Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['point1'])[0x0]; + a1h = Cesium[dol(0x535)]['fromRadiansArrayHeights'](bb['point2'])[0x0]; + } else + throw Error(doj(0x9d)); + break; + case 0x1: + if (Cesium['defined'](bb['point1']) && bb['point1']instanceof Cesium['Cartesian3'] && Cesium['defined'](bb['point2']) && bb['point2']instanceof Cesium['Cartesian3']) { + a1g = bb['point1']; + a1h = bb['point2']; + } else + throw Error(doj(0x9e)); + break; + default: + throw Error('t' + doo(0x20f) + '效'); + } + if (a14['models']['length'] > 0x0) { + var a1i = Cesium['Cartesian3']['midpoint'](a12, a13, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](a0Z, a1g, a1g); + Cesium[dol(0x536)][dol(0x537)](a0Z, a1h, a1h); + var a1j = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](a1h, a1g, a1j); + Cesium['Cartesian3']['normalize'](a1j, a1j); + var a1k = new Cesium['Matrix3'](); + _applyRotateAroundAxis(a1j, Cesium['Math']['toRadians'](a1f), a1k); + var a1l = Cesium['Matrix4']['fromRotationTranslation'](a1k); + Cesium['Matrix4']['clone'](a1k, a15); + var a1m = GetFootOfPerpendicular(a1g, a1h, a1i); + var a1n = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['negate'](a1m, a1n); + var a1o = Cesium['Matrix4']['IDENTITY']['clone'](); + var a1p = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4']['fromTranslation'](a1n, a1o); + Cesium['Matrix4'][dol(0x538)](a1m, a1p); + var a1q = Cesium['Matrix4']['multiply'](a1l, a1o, new Cesium['Matrix4']()); + a1q = Cesium['Matrix4']['multiply'](a1p, a1q, new Cesium[(dol(0x539))]()); + var a1r = undefined; + for (var a1s = 0x0; a1s < a14['models']['length']; ++a1s) { + var a1t = a14['models'][a1s]['_content']['_model']; + var a1u = a14['models'][a1s]['_content']; + var a1v = a14['models'][a1s]; + var a1w = a14['batchids'][a1s]; + for (var a11 = 0x0; a11 < a1w['length']; a11++) { + var a1y = a1w[a11]; + if (!a1r) { + a1r = new Cesium['Matrix4'](); + a1u['_batchTable']['getBatchIdMatrix'](a1y)['clone'](a1r); + } + var a1z = Cesium['Matrix4'][dol(0x53a)](a1q, a1r, new Cesium['Matrix4']()); + a1u[dol(0x53b)]['setBatchIdMatrix'](a1y, a1z); + } + a1t['_nodeCommands'][0x0]['dirty'] = !![]; + a1t['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + a1t['_nodeCommands'][0x0]['command']['dirty'] = !![]; + if (bb['callback'] != undefined) { + bb['callback'](a15); + } + } + } + cs['viewer']['scene']['requestRender'](); + } catch (a1A) { + aCe(a1A); + } + }, + 'clearOffset': function(a1B, a1C) { + try { + + if (!isEmpty(a1C)) { + if (cs['m_model']['get'](a1C[dol(0x53c)]()) === undefined) { + throw doj(0x9f); + } + cs['tileset'] = cs['m_model']['get'](a1C[dol(0x53d)]()); + } + var a1D = cs['funcPublic']['disposeFeatureId'](a1B); + if (a1D['length'] > 0x1) + a1B = a1D[0x1]; + else + a1B = a1D[0x0]; + for (var a1E = 0x0; a1E < cs['tileset']['_selectedTiles']['length']; ++a1E) { + var a1F = cs['tileset']['_selectedTiles'][a1E]['_content']; + var a1G = cs['funcPublic']['GetFeatureFromContent'](a1F, a1B); + if (a1G == -0x1) { + continue; + } + model = a1F[dol(0x53e)]; + var a1H = cs[dol(0x53f)]['_selectedTiles'][a1E]; + a1F['_batchTable']['setBatchIdMatrix'](a1G, Cesium['Matrix4']['IDENTITY']); + var a1I = cs['funcPublic']['GetFeatureMaxMinPoint'](a1F, a1G, cs); + var a1J = new Cesium['Cartesian3'](-Infinity,-Infinity,-Infinity) + , a1K = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + a1J = Cesium['Cartesian3']['maximumByComponent'](a1J, a1I[0x0], new Cesium['Cartesian3']()); + a1K = Cesium['Cartesian3']['minimumByComponent'](a1K, a1I[0x1], new Cesium['Cartesian3']()); + var a1L = new Cesium['BoundingSphere'](); + Cesium[dol(0x540)]['fromPoints']([a1J, a1K], a1L); + Cesium['BoundingSphere'][dol(0x541)](a1L, a1F['_contentModelMatrix'], a1L); + var a1M = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], a1M); + Cesium['BoundingSphere']['union'](a1L, a1M, model['_nodeCommands'][0x0]['command']['_boundingVolume']); + model['_nodeCommands'][0x0]['dirty'] = !![]; + var a1N = [a1J, a1K]; + var a1O = Cesium['Matrix4'][dol(0x542)](a1F['_contentModelMatrix'], a1N[0x0], new Cesium['Cartesian3']()); + var a1P = Cesium['Matrix4']['multiplyByPoint'](a1F['_contentModelMatrix'], a1N[0x1], new Cesium['Cartesian3']()); + a1H['updateBoundingVolume'](a1P, a1O); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + cs['viewer']['scene'][dol(0x543)](); + } catch (a1Q) { + aCe('错' + doo(0x210) + ':' + a1Q); + } + }, + 'clearGeometrySize': function() { + try { + + cl['forEach']( (a1R, a1S) => { + cs['viewer']['scene']['primitives']['remove'](a1R); + if (Cesium['defined'](a1R)) + cl['splice'](a1S, 0x1); + } + ); + cs['funcPublic']['ClearMeasuringline']('o' + doo(0x211) + 's', cs['viewer']); + cs[dol(0x544)]['entities']['removeById']('o' + doo(0x212) + 's'); + } catch (a1T) { + aCe('错' + doo(0x213) + ':' + a1T); + } + }, + 'clipFeatures': function(a1U, a1V, a1W, a1X) { + try { + + if (cs['clippingPlaneMapArray'][a1U]) { + aCe('错' + doo(0x214) + '在'); + return; + } + cs['clippingPlaneMapArray'][a1U] = []; + cs['clippingPlaneEntitiesMap'][a1U] = []; + cs['clippingPlanesMap'][a1U] = []; + cs['GLE_ClipPlansBoxSizeMap'][a1U] = undefined; + cs['GLE_ClipPlansBoxCenterMap'][a1U] = undefined; + cs['clippingPlaneMap_mulActorIds'][a1U] = a1V; + var a1Y = new Cesium['Color'](); + if (!Cesium['defined'](a1W)) + a1W = new Cesium['Color'](0x0,0x0,0x0,0.01); + if (a1W instanceof Cesium['Color']) + Cesium['Color']['clone'](a1W, a1Y); + else + Cesium[dol(0x545)]['fromCssColorString'](a1W, a1Y); + var a1Z = a1V['split']('#'); + if (Array['isArray'](a1Z)) { + var a20 = new Map(); + var a21 = []; + for (var a22 = 0x0; a22 < a1Z['length']; a22++) { + var a23 = a1Z[a22]; + var a24 = cs['funcPublic']['disposeFeatureId'](a23); + var a25 = ''; + if (a24['length'] > 0x1) { + a25 = a24[0x0]; + a23 = a24[0x1]; + } else + throw '未' + doo(0x215) + '。'; + if (!a20['has'](a25)) + a20['set'](a25, []); + var a26 = cs['m_model']['get'](a25['toString']()); + if (Cesium['defined'](a26)) + cs[dol(0x546)]['getAllTiles'](a26, function(a27) { + for (var a28 = 0x0; a28 < a27['length']; ++a28) { + var a29 = a27[a28]['_content']; + if (!Cesium['defined'](a29)) + continue; + var a2a = cs[dol(0x547)]['GetFeatureFromContent'](a29, a23); + var a2b = a29['_batchTable']; + if (!a2b) + continue; + if (!Cesium['defined'](a2a) || a2a == -0x1) + continue; + if (!a27[a28]['oldbatchId']) + a27[a28]['oldbatchId'] = []; + if (!a27[a28]['oldbatchId']['indexOf'](a2a) > -0x1) + a27[a28]['oldbatchId']['push'](a2a); + a20['get'](a25)['push']({ + 'id': a23, + 'batchId': a2a, + 'model': a27[a28] + }); + if (a2b['setBatchIdsClipState']) { + Array['prototype'][dol(0x548)] = function(q) { + return this['filter'](function(a22) { + return q['indexOf'](a22) < 0x0; + }); + } + ; + a2b['setBatchIdsClipState'](a2b['_properties']['batchId']['diff'](a27[a28]['oldbatchId']), ![]); + } + } + }); + } + if (a20['size'] > 0x0) { + a20['forEach'](function(a2e, a2f) { + if (!isEmpty(a2f)) { + if (cs['m_model']['get'](a2f['toString']()) === undefined) { + throw doj(0xa0); + } + cs['tileset'] = cs['m_model']['get'](a2f['toString']()); + } + var a2g = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium[(dol(0x549))][(dol(0x54a))](Cesium['Matrix4'][dol(0x54b)]); + var a2h = function(a2i, a23, a2k) { + var a24 = cs['funcPublic']['disposeFeatureId'](a23); + if (a24['length'] > 0x1) + a23 = a24[0x1]; + else + a23 = a24[0x0]; + var a2m = a2i['content']['featuresLength']; + var a2n = a2i['content']['_batchTable']; + if (a2k < a2m) { + var a2o; + if (!a2i['content']['_model']['_clippingPlanes']) { + a2o = new Cesium['ClippingPlaneCollection']({ + 'planes': [], + 'edgeColor': Cesium[dol(0x54c)]['RED'], + 'edgeWidth': 0x0, + 'unionClippingRegions': !![] + }); + a2i['content']['_model']['_clippingPlanes'] = a2o; + } else {} + a2o = a2i[dol(0x54d)]['_model']['_clippingPlanes']; + a2o['_owner'] = a2i[dol(0x54e)]['_model']; + a2o['featureId'] = a23; + a2o['batchId'] = a2k; + a2o['featureBox'] = cs['Feature']['getFeaturesBoundingBox'](a23, a2f, function(a2p) {}, ![]); + cs['clippingPlaneMapArray'][a1U]['push'](a2o); + if (a2n['setBatchIdClipState']) + a2n['setBatchIdClipState'](a2k, !![]); + if (a2n['setBatchIdClipColor']) + a2n['setBatchIdClipColor'](a2k, a1Y); + } + }; + var a2q = []; + for (var a22 = 0x0; a22 < a2e['length']; a22++) { + var a2s = a2e[a22]; + var a23 = a2s['id']; + a2q['push'](a23); + } + var a2u = cs['Feature']['getFeaturesBoundingBox'](a2q, a25, function(a2v) {}, ![]); + if (!Cesium[dol(0x54f)](a2u)) + throw doj(0xa1); + var a2w = a2u['max']; + var a2x = a2u['min']; + var a2y = a2u['center']; + var a2z = a2u['size']; + cs['GLE_ClipPlansBoxCenterMap'][a1U] = a2y; + Cesium['Cartesian3']['multiplyByScalar'](a2z, Cesium['defaultValue'](a1X, 0x1), a2z); + cs['GLE_ClipPlansBoxSizeMap'][a1U] = a2z; + for (var a22 = 0x0; a22 < a2e['length']; a22++) { + var a2s = a2e[a22]; + var a23 = a2s['id']; + var a2D = a2s[dol(0x550)]; + var a2E = a2s['model']; + a2h(a2E, a23, a2D); + } + var a2F = a2y; + var a2G = Cesium['Transforms']['eastNorthUpToFixedFrame'](a2F); + var a2H = Cesium['Matrix4']['inverse'](cs['tileset']['clippingPlanesOriginMatrix'], new Cesium['Matrix4']()); + var a2g = Cesium['Matrix4']['multiply'](a2H, a2G, new Cesium['Matrix4']()); + if (cs['clippingPlaneMapArray'][a1U] && cs['clippingPlaneMapArray'][a1U]['length'] > 0x0) { + cs[dol(0x551)][a1U]['forEach'](function(a2J) { + a2J['modelMatrix'] = a2g; + }); + } + cs['viewer']['scene']['requestRender'](); + }); + } + } + } catch (a2K) { + aCe(a2K); + } + }, + 'setClipDistance': function(a2L, a2M, a2N, a2O) { + + cs['Feature']['closeClipFill'](); + if (a2M && undefined != cs['GLE_ClipPlansBoxSizeMap'][a2L]) { + a2M = a2M['toUpperCase'](); + var a2P; + var a2Q; + switch (a2M) { + case 'X' + doo(0x216) + 'X': + a2P = cs['GLE_ClipPlansBoxSizeMap'][a2L]['x'] * a2N / 0x2; + a2Q = new Cesium['Cartesian3'](-0x1,0x0,0x0); + break; + case 'X' + doo(0x217) + 'N': + a2P = cs['GLE_ClipPlansBoxSizeMap'][a2L]['x'] * -a2N / 0x2; + a2Q = new Cesium['Cartesian3'](0x1,0x0,0x0); + break; + case 'Y' + doo(0x218) + 'X': + a2P = cs['GLE_ClipPlansBoxSizeMap'][a2L]['y'] * a2N / 0x2; + a2Q = new Cesium[(dol(0x552))](0x0,-0x1,0x0); + break; + case 'Y' + doo(0x219) + 'N': + a2P = cs['GLE_ClipPlansBoxSizeMap'][a2L]['y'] * -a2N / 0x2; + a2Q = new Cesium['Cartesian3'](0x0,0x1,0x0); + break; + case 'Z' + doo(0x21a) + 'X': + a2P = cs['GLE_ClipPlansBoxSizeMap'][a2L]['z'] * a2N / 0x2; + a2Q = new Cesium['Cartesian3'](0x0,0x0,-0x1); + break; + case 'Z' + doo(0x21b) + 'N': + a2P = cs[dol(0x553)][a2L]['z'] * -a2N / 0x2; + a2Q = new Cesium[(dol(0x554))](0x0,0x0,0x1); + break; + default: + return; + } + if (cs['clippingPlaneMapArray'][a2L] && cs['clippingPlaneMapArray'][a2L][dol(0x555)] > 0x0) { + for (let a2R = 0x0; a2R < cs[dol(0x556)][a2L]['length']; a2R++) { + var a2S = cs['clippingPlaneMapArray'][a2L][a2R]; + var a2T = ![]; + if (a2S && a2S['length'] > 0x0) { + for (var a2U = 0x0; a2U < a2S['length']; ++a2U) { + var a2V = a2S['get'](a2U); + if (!a2V['isDestroy'] && a2V['types'] === a2M) { + a2V['distance'] = a2P; + a2T = !![]; + if (Cesium['defined'](a2O) && a2O && cs['clippingPlaneEntitiesMap'][a2L] && cs['clippingPlaneEntitiesMap'][a2L]['length'] > 0x0) { + for (let a2W = 0x0; a2W < cs['clippingPlaneEntitiesMap'][a2L]['length']; a2W++) { + const a2X = cs[dol(0x557)][a2L][a2W]; + if (a2X['types'] === a2M) { + a2X['plane']['plane']['distance'] = a2P; + break; + } + } + } + break; + } + } + } + if (!a2T) { + var a2V = new Cesium['ClippingPlane'](a2Q,a2P); + if (a2V) { + a2V['types'] = a2M; + a2S['add'](a2V); + if (Cesium['defined'](a2O) && a2O) { + var a2Z = cs['viewer']['entities']['add']({ + 'position': cs['GLE_ClipPlansBoxCenterMap'][a2L], + 'plane': { + 'dimensions': new Cesium['Cartesian2'](0x1e,0x1e), + 'material': Cesium['Color']['WHITE']['withAlpha'](0.1), + 'plane': new Cesium['CallbackProperty'](function() { + return a2V; + } + ,![]), + 'outline': !![], + 'outlineColor': Cesium['Color']['WHITE'] + } + }); + a2Z['types'] = a2M; + cs['clippingPlaneEntitiesMap'][a2L]['push'](a2Z); + cs['clippingPlanesMap'][a2L]['push'](a2V); + } + } + } + } + } + cs['viewer'][dol(0x558)]['requestRender'](); + } + }, + 'cancelClipFeatures': function(a30) { + + var a31 = cs['clippingPlaneMap_mulActorIds'][a30]; + var a32 = a31['split']('#'); + var a33 = []; + for (var a34 = 0x0; a34 < a32['length']; a34++) { + var a35 = a32[0x0]; + var a36 = cs['funcPublic']['disposeFeatureId'](a35); + var a37 = ''; + if (a36['length'] > 0x1) { + a37 = a36[0x0]; + a35 = a36[0x1]; + a33['push'](a35); + } + } + if (a32['length'] > 0x0) { + var a35 = a32[0x0]; + var a36 = cs['funcPublic']['disposeFeatureId'](a35); + var a37 = ''; + if (a36['length'] > 0x1) { + a37 = a36[0x0]; + a35 = a36[0x1]; + } else + throw '未' + doo(0x21c) + '。'; + var a3b = cs['m_model']['get'](a37[dol(0x559)]()); + if (Cesium['defined'](a3b)) + cs['funcPublic']['getAllTiles'](a3b, function(a3c) { + for (var a3d = 0x0; a3d < a3c['length']; ++a3d) { + var a3e = a3c[a3d]['_content']; + if (!Cesium['defined'](a3e)) + continue; + var a3f = a3e['_batchTable']; + if (!a3f) + continue; + var a3g = cs['funcPublic']['GetFeaturesFromContent'](a3e, a33['join']('#')); + if (a3g['size'] == 0x0) + continue; + var a3h = []; + a3g['forEach'](function(a3i, a3j) { + a3h['push'](a3i); + var a3k = a3c[a3d][dol(0x55a)][dol(0x55b)](a3i); + if (a3k > -0x1) + a3c[a3d]['oldbatchId']['splice'](a3k, 0x1); + }); + if (a3f['setBatchIdsClipState']) + a3f['setBatchIdsClipState'](a3h, !![]); + if (a3f['setBatchIdsClipColor']) + a3f['setBatchIdsClipColor'](a3h, new Cesium[(dol(0x55c))](0x1,0x1,0x1,0x1)); + a3e['_model']['clippingPlanes']['removeAll'](); + if (!a3c[a3d]['oldbatchId'] || a3c[a3d]['oldbatchId']['length'] === 0x0) { + if (a3e['_model'] && a3e['_model']['clippingPlanes'] && a3e['_model'][dol(0x55d)] !== a3b[dol(0x55e)]) { + a3e['_model']['_clippingPlanes'] = a3b['clippingPlanes']; + } + } + } + }); + } + if (cs['clippingPlaneEntitiesMap'][a30] && cs['clippingPlaneEntitiesMap'][a30]['length'] > 0x0) { + cs['clippingPlaneEntitiesMap'][a30]['forEach'](function(a3l) { + if (cs['viewer'][dol(0x55f)]['contains'](a3l)) { + cs['viewer']['entities']['remove'](a3l); + } + }); + cs['clippingPlaneEntitiesMap'][a30]['length'] = 0x0; + } + cs['clippingPlaneMapArray'][a30]['splice'](0x0, cs['clippingPlaneMapArray'][a30]['length']); + cs['clippingPlaneEntitiesMap'][a30]['splice'](0x0, cs['clippingPlaneEntitiesMap'][a30]['length']); + cs['clippingPlanesMap'][a30]['splice'](0x0, cs['clippingPlanesMap'][a30]['length']); + cs['GLE_ClipPlansBoxSizeMap'][a30] = undefined; + cs['GLE_ClipPlansBoxCenterMap'][a30] = undefined; + cs['clippingPlaneMap_mulActorIds'][a30] = undefined; + delete cs[dol(0x560)][a30]; + delete cs['clippingPlaneEntitiesMap'][a30]; + delete cs['clippingPlanesMap'][a30]; + delete cs['GLE_ClipPlansBoxSizeMap'][a30]; + delete cs['GLE_ClipPlansBoxCenterMap'][a30]; + delete cs['clippingPlaneMap_mulActorIds'][a30]; + cs['Feature']['closeClipFill'](); + cs['viewer']['scene']['requestRender'](); + }, + 'setClipProgressByPath': function(a3m, a3n, a3o, a3p, a3q) { + try { + + cs['Feature']['closeClipFill'](); + var a3r = function(a3n) { + var a3t = []; + if (Array['isArray'](a3n) && a3n[dol(0x561)] % 0x3 == 0x0) { + a3t = Cesium['Cartesian3']['fromRadiansArrayHeights'](a3n); + } else { + throw doj(0xa2); + } + return a3t; + }; + var a3u = function(a3v, a3w, a3x) { + var a3y = Math['min'](a3v, a3w); + var a3z = Math['max'](a3v, a3w); + return Math['min'](Math['max'](a3x, a3y), a3z); + }; + let a3A = function(a3B, a3C) { + var a3D = new Cesium['Cartesian3'](); + var a3E = new Cesium['Cartesian3'](); + var a3F = new Cesium['Cartesian3'](); + var a3G = a3B['evaluate'](a3C); + var a3H = cs['Public']['cartesian3ToRadians']([a3G['x'], a3G['y'], a3G['z']]); + var a3I = cs['Public']['radiansToModelCartesian3'](a3H[0x1], a3H[0x0], a3H[0x2], cs['tileset']['id']); + a3G = new Cesium['Cartesian3'](a3I['x'],a3I['y'],a3I['z']); + let a3J; + var a3K = a3B['_times'][a3B['_times']['length'] - 0x1] <= a3C; + if (!a3K) { + for (let a3L = 0x0; a3L < a3B['_times']['length']; a3L++) { + if (a3B['_times'][a3L] > a3C) { + a3J = a3B['evaluate'](a3B['_times'][a3L]); + var a3M = cs['Public']['cartesian3ToRadians']([a3J['x'], a3J['y'], a3J['z']]); + var a3N = cs['Public']['radiansToModelCartesian3'](a3M[0x1], a3M[0x0], a3M[0x2], cs['tileset']['id']); + a3J = new Cesium['Cartesian3'](a3N['x'],a3N['y'],a3N['z']); + Cesium['Cartesian3']['clone'](a3G, a3D); + Cesium['Cartesian3']['clone'](a3J, a3E); + Cesium['Cartesian3']['subtract'](a3J, a3G, a3F); + break; + } + } + } else { + let a3O = a3B['evaluate'](a3B[dol(0x562)][a3B['_times']['length'] - 0x2]); + var a3M = cs['Public']['cartesian3ToRadians']([a3O['x'], a3O['y'], a3O['z']]); + var a3I = cs[dol(0x563)]['radiansToModelCartesian3'](a3M[0x1], a3M[0x0], a3M[0x2], cs['tileset']['id']); + a3O = new Cesium['Cartesian3'](a3I['x'],a3I['y'],a3I['z']); + Cesium['Cartesian3']['clone'](a3O, a3D); + Cesium['Cartesian3']['clone'](a3G, a3E); + Cesium['Cartesian3'][dol(0x564)](a3G, a3O, a3F); + } + Cesium['Cartesian3']['normalize'](a3F, a3F); + return { + 'direction': a3F, + 'point1': a3D, + 'point2': a3E + }; + }; + var a3R = a3r(a3n); + if (a3R['length'] < 0x2) { + return; + } + var a3S = 0x0; + var a3T = [0x0]; + for (var a3U = 0x0; a3U < a3R['length'] - 0x1; a3U++) { + var a3V = a3R[a3U]; + var a3W = a3R[a3U + 0x1]; + var a3X = Cesium['Cartesian3']['distance'](a3V, a3W); + a3S += a3X; + a3T[dol(0x565)](a3S); + } + a3o = a3u(0x0, 0x64, a3o); + var a3Y = new Cesium['LinearSpline']({ + 'times': a3T, + 'points': a3R + }); + var a3Z = a3o / 0x64 * a3S; + var a40 = a3Y['evaluate'](a3Z); + var {direction, point1, point2} = a3A(a3Y, a3Z); + cs['GLE_ClipPlansBoxCenterMap'][a3m] = a40; + var a41 = a40; + var a42 = Cesium['Transforms'][dol(0x566)](a41); + var a43 = Cesium['Matrix4']['inverse'](cs['tileset']['clippingPlanesOriginMatrix'], new Cesium['Matrix4']()); + var a44 = Cesium[dol(0x567)]['multiply'](a43, a42, new Cesium['Matrix4']()); + a3p = Cesium['defaultValue'](a3p, !![]); + Cesium['Cartesian3']['multiplyByScalar'](direction, a3p ? 0x1 : -0x1, direction); + if (cs['clippingPlaneMapArray'][a3m] && cs[dol(0x568)][a3m]['length'] > 0x0) { + cs['clippingPlaneMapArray'][a3m]['forEach'](function(a45) { + a45['modelMatrix'] = a44; + a45['unionClippingRegions'] = a3p; + }); + } + var a46 = 'C' + doo(0x21d) + 'h'; + if (cs['clippingPlaneMapArray'][a3m] && cs['clippingPlaneMapArray'][a3m]['length'] > 0x0) { + for (let a47 = 0x0; a47 < cs['clippingPlaneMapArray'][a3m]['length']; a47++) { + var a48 = cs['clippingPlaneMapArray'][a3m][a47]; + var a49 = ![]; + if (a48 && a48['length'] > 0x0) { + for (var a4a = 0x0; a4a < a48['length']; ++a4a) { + var a4b = a48['get'](a4a); + if (!a4b['isDestroy'] && a4b['types'] === a46) { + a4b['normal'] = direction; + a4b['distance'] = 0x0; + a49 = !![]; + break; + } + } + } + if (!a49) { + var a4b = new Cesium['ClippingPlane'](direction,0x0); + if (a4b) { + a4b['types'] = a46; + a48['add'](a4b); + if (Cesium[dol(0x569)](a3q) && a3q) { + var a4d = cs['viewer']['entities']['add']({ + 'position': new Cesium['CallbackProperty'](function() { + return cs[dol(0x56a)][a3m]; + } + ,![]), + 'plane': { + 'dimensions': new Cesium[(dol(0x56b))](0x3e8,0x3e8), + 'material': Cesium['Color']['WHITE']['withAlpha'](0.1), + 'plane': new Cesium['CallbackProperty'](function() { + return a4b; + } + ,![]), + 'outline': !![], + 'outlineColor': Cesium['Color']['WHITE']['withAlpha'](0.4) + } + }); + a4d['types'] = a46; + cs['clippingPlaneEntitiesMap'][a3m]['push'](a4d); + cs['clippingPlanesMap'][a3m]['push'](a4b); + } + } + } + } + } + cs['viewer']['scene']['requestRender'](); + } catch (a4e) { + aCe('错' + doo(0x21e) + ':' + a4e); + } + }, + 'clipFill': function(a4f, a4g, a4h, a4i) { + try { + + if (!cs['enableDoubleSided']) { + console['log'](doj(0xa3)); + return; + } + if (!Cesium['defined'](a4f)) { + a4f = Cesium[dol(0x56c)]['RED']; + } + if (!Cesium['defined'](a4i)) { + a4i = !![]; + } + var a4j = function() { + for (var a4k in cs['clippingPlaneMapArray']) { + return ![]; + } + return !![]; + }; + if (!a4j()) { + cs['Feature']['closeClipFill'](); + cs['viewer']['scene']['msaaSamples'] = 0x1; + var a4l = cs['viewer']['scene']['_postRender']['addEventListener'](function() { + function a4m() { + try { + cs['funcPublic']['clipFillFeatureByStencil'](cs, cs[dol(0x56d)]['id'], a4f, a4g, a4h, a4i); + cs['viewer']['scene']['requestRender'](); + } catch (a4n) { + a4l(); + if (a4n['message'] != 'b' + doo(0x21f) + 'k') + throw a4n; + } + ; + } + setTimeout(a4m, 0x64); + a4l(); + }, null); + cs['viewer']['scene']['requestRender'](); + } + } catch (a4o) { + aCe('错' + doo(0x220) + ':' + a4o); + } + }, + 'closeClipFill': function() { + try { + + try { + cs['viewer']['scene']['msaaSamples'] = 0x4; + if (cs['tileset']['isBimModel']) { + var a4p = cs['viewer']['scene']['primitives']['_primitives']; + for (var a4q = 0x0; a4q < a4p['length']; a4q++) { + if (a4p[a4q]instanceof aFy || a4p[a4q]instanceof aFB) { + if (a4p[a4q][dol(0x56e)]['id'] == cs['tileset'][dol(0x56f)]) { + cs['viewer']['scene']['primitives']['remove'](a4p[a4q]); + a4q--; + } + } + } + for (var a4q = 0x0; a4q < a4p['length']; a4q++) { + if (Cesium['defined'](a4p[a4q]['clipFillTag'])) { + cs['viewer']['scene']['primitives']['remove'](a4p[a4q]); + a4q--; + } + } + } + } catch (a4s) { + if (a4s['message'] != 'b' + doo(0x221) + 'k') + throw a4s; + } + ;cs[dol(0x570)]['scene']['requestRender'](); + } catch (a4t) { + aCe('错' + doo(0x222) + ':' + a4t); + } + }, + 'getClipFillCenter': function(a4u, a4v) { + try { + + var a4w = new Cesium[(dol(0x571))](); + if (a4v) { + var a4x = cs['viewer']['scene']['primitives']['_primitives']; + for (var a4y = 0x0; a4y < a4x['length']; a4y++) { + if (Cesium['defined'](a4x[a4y]['clipFillTag'])) { + if (a4x[a4y]['clipFillTag'] == a4u) { + Cesium['Matrix4']['multiplyByPoint'](a4x[a4y]['modelMatrix'], Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), a4w); + break; + } + } + } + } else { + for (var a4z = 0x0; a4z < api['clippingPlaneMapArray'][a4u]['length']; ++a4z) { + var a4A = api[dol(0x572)][a4u][a4z]; + var a4B = Cesium['Transforms'][dol(0x573)](api[dol(0x574)][a4u]); + var a4C = api[dol(0x575)][a4u]; + for (var a4y = 0x0; a4y < a4A['length']; ++a4y) { + var a4E = a4A['get'](a4y); + switch (a4E['types']) { + case 'Z' + doo(0x223) + 'N': + if (a4E['distance'] < api['GLE_ClipPlansBoxSizeMap'][a4u]['z']) { + var a4F = new Cesium['Matrix4'](); + var a4G = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,-(a4C['z'] - (a4C['z'] - a4E['distance']))), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](a4B, a4G, a4F); + var a4H = new Cesium['Cartesian3'](a4C['x'],a4C['y'],a4C['z']); + var a4I = Cesium['Matrix4']['fromScale'](a4H); + Cesium['Matrix4'][dol(0x576)](a4F, a4I, a4F); + Cesium['Matrix4'][dol(0x577)](a4F, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), a4w); + } + break; + case 'Z' + doo(0x224) + 'X': + if (a4E['distance'] < api['GLE_ClipPlansBoxSizeMap'][a4u]['z']) { + var a4F = new Cesium['Matrix4'](); + var a4G = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,a4C['z'] - (a4C['z'] - a4E['distance'])), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](a4B, a4G, a4F); + var a4H = new Cesium['Cartesian3'](a4C['x'],a4C['y'],a4C['z']); + var a4I = Cesium['Matrix4']['fromScale'](a4H); + Cesium['Matrix4']['multiply'](a4F, a4I, a4F); + Cesium['Matrix4']['multiplyByPoint'](a4F, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), a4w); + } + break; + case 'X' + doo(0x225) + 'N': + if (a4E['distance'] < api['GLE_ClipPlansBoxSizeMap'][a4u]['x']) { + var a4F = new Cesium['Matrix4'](); + var a4G = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](-(a4C['x'] - (a4C['x'] - a4E['distance'])),0x0,0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](a4B, a4G, a4F); + var a4H = new Cesium['Cartesian3'](a4C['z'],a4C['y'],a4C['x']); + var a4I = Cesium['Matrix4']['fromScale'](a4H); + Cesium['Matrix4']['multiply'](a4F, a4I, a4F); + Cesium[dol(0x578)]['multiplyByPoint'](a4F, Cesium['Cartesian3'][dol(0x579)](0x0, 0x0, 0x0), a4w); + } + break; + case 'X' + doo(0x226) + 'X': + if (a4E['distance'] < api['GLE_ClipPlansBoxSizeMap'][a4u]['x']) { + var a4F = new Cesium['Matrix4'](); + var a4G = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](a4C['x'] - (a4C['x'] - a4E['distance']),0x0,0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](a4B, a4G, a4F); + var a4H = new Cesium['Cartesian3'](a4C['z'],a4C['y'],a4C['x']); + var a4I = Cesium['Matrix4']['fromScale'](a4H); + Cesium['Matrix4']['multiply'](a4F, a4I, a4F); + Cesium['Matrix4']['multiplyByPoint'](a4F, Cesium['Cartesian3'][dol(0x57a)](0x0, 0x0, 0x0), a4w); + } + break; + case 'Y' + doo(0x227) + 'N': + if (a4E[dol(0x57b)] < api['GLE_ClipPlansBoxSizeMap'][a4u]['y']) { + var a4F = new Cesium['Matrix4'](); + var a4G = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](0x5a)), new Cesium[(dol(0x57c))](0x0,-(a4C['y'] - (a4C['y'] - a4E['distance'])),0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](a4B, a4G, a4F); + var a4H = new Cesium['Cartesian3'](a4C['x'],a4C['z'],a4C['y']); + var a4I = Cesium['Matrix4']['fromScale'](a4H); + Cesium['Matrix4']['multiply'](a4F, a4I, a4F); + Cesium['Matrix4']['multiplyByPoint'](a4F, Cesium['Cartesian3'][dol(0x57d)](0x0, 0x0, 0x0), a4w); + } + break; + case 'Y' + doo(0x228) + 'X': + if (a4E['distance'] < api['GLE_ClipPlansBoxSizeMap'][a4u]['y']) { + var a4F = new Cesium['Matrix4'](); + var a4G = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](0x0,a4C['y'] - (a4C['y'] - a4E['distance']),0x0), new Cesium['Matrix4']()); + Cesium['Matrix4'][dol(0x57e)](a4B, a4G, a4F); + var a4H = new Cesium[(dol(0x57f))](a4C['x'],a4C['z'],a4C['y']); + var a4I = Cesium['Matrix4']['fromScale'](a4H); + Cesium['Matrix4']['multiply'](a4F, a4I, a4F); + Cesium['Matrix4']['multiplyByPoint'](a4F, Cesium['Cartesian3'][dol(0x580)](0x0, 0x0, 0x0), a4w); + } + break; + case 'C' + doo(0x229) + 'h': + var a4F = new Cesium['Matrix4'](); + let a54 = Cesium['Cartesian3']['normalize'](a4E['normal'][dol(0x581)], new Cesium['Cartesian3']()); + var a55 = function(a56) { + var a56 = Cesium['Cartesian3']['normalize'](a56, new Cesium['Cartesian3']()); + var a58 = Math['atan2'](a56['y'], a56['x']) - Cesium['Math']['PI_OVER_TWO']; + return Cesium['Math']['TWO_PI'] - Cesium['Math']['zeroToTwoPi'](a58); + }; + var a59 = function(a5a) { + Cesium['Cartesian3'][dol(0x582)](a5a, a5a); + return Cesium['Math']['PI_OVER_TWO'] - Cesium['Math']['acosClamped'](a5a['z']); + }; + var a5b = a55(a54); + var a5c = a59(a54); + var a5d = new Cesium['HeadingPitchRoll'](a5b - Cesium[dol(0x583)]['PI_OVER_TWO'],a5c - Cesium['Math']['PI_OVER_TWO'],0x0); + var a5e = Cesium['Matrix3']['IDENTITY']['clone'](); + Cesium['Matrix3']['fromHeadingPitchRoll'](a5d, a5e); + Cesium['Matrix4']['multiplyByMatrix3'](a4B, a5e, a4F); + var a4H = new Cesium['Cartesian3'](a4C['x'],a4C['z'],a4C['y']); + var a4I = Cesium['Matrix4'][dol(0x584)](a4H); + Cesium[dol(0x585)]['multiply'](a4F, a4I, a4F); + Cesium['Matrix4']['multiplyByPoint'](a4F, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), a4w); + break; + } + } + break; + } + } + return a4w; + } catch (a5h) { + aCe('错' + doo(0x22a) + ':' + a5h); + } + }, + 'getAll': function(a5i) { + try { + + if (!isEmpty(a5i)) { + if (cs[dol(0x586)]['get'](a5i['toString']()) === undefined) { + throw doj(0xa4); + } + cs[dol(0x587)] = cs[dol(0x588)][dol(0x589)](a5i['toString']()); + } + let a5j = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a5i, a5j); + return { + 'features': a5j, + 'length': a5j['length'] + }; + } catch (a5k) { + aCe('错' + doo(0x22b) + ':' + a5k); + } + }, + 'getAllIdByTileset': function(a5l, a5m) { + try { + let a5n = []; + cs['funcPublic']['GetAllTilesetFeatureId'](a5l, a5l[dol(0x58a)], a5m, a5n); + return { + 'features': a5n, + 'length': a5n['length'] + }; + } catch (a5o) { + aCe('错' + doo(0x22c) + ':' + a5o); + } + }, + 'getTileByIds': function(a5p, a5q) { + try { + + if (!isEmpty(a5p)) { + if (cs['m_model']['get'](a5p['toString']()) === undefined) { + throw doj(0xa5); + } + cs['tileset'] = cs['m_model']['get'](a5p['toString']()); + } + let a5r = new Map(); + cs['funcPublic'][dol(0x58b)](cs['tileset'], cs['tileset']['root'], a5p, a5q, a5r); + return a5r; + } catch (a5s) { + aCe('错' + doo(0x22d) + ':' + a5s); + } + }, + 'topRendering': function(bb) { + try { + if (!cs['getTopRenderState']()) { + aCe('请' + doo(0x22e) + '!'); + return; + } + if (!cs[dol(0x58c)]['scene']['_context']['_webgl2']) { + aCe('w' + doo(0x22f) + '!'); + return; + } + if (cs['tileset'] == undefined) { + throw doj(0xa6); + } + cs['viewer']['scene']['requestRenderMode'] = ![]; + var a5u = bb['featureIds']; + var a5v = bb['selectColor'] == undefined ? Cesium['Color']['YELLOW'] : bb['selectColor']; + var a5w = bb['featureAlpha'] == undefined ? 0.1 : bb['featureAlpha']; + var a5x = bb['isMultiple'] == undefined ? ![] : bb['isMultiple']; + var a5y = bb['tagName']; + if (a5y == undefined) { + return; + } + if (!a5x) { + cs['Feature']['clearTopRenderSelectColor'](); + } + cs['viewer']['scene']['requestRender'](); + var a5z = ''; + var a5A = 0x0; + if (a5u['size'] > 0x0) { + a5u['forEach'](function(a5B, a5C) { + if (a5w < 0x1) + cs['Feature']['setAlpha'](a5C, a5w); + var a5D = a5C['split']('^'); + if (a5D['length'] == 0x2) + a5D = a5D[0x1]; + else + a5D = a5D[0x0]; + a5z += '#' + a5D; + var a5E = cs['topRenderMap']['get'](a5y['toString']()); + var a5F = { + 'featureId': a5D, + 'color': a5v, + 'original': 'r' + doo(0x230) + ')' + }; + if (!a5E['has'](a5D)) { + a5E[dol(0x58d)](a5D, a5F); + } + a5A++; + }); + } else { + return; + } + for (var a5G = 0x0; a5G < cs[dol(0x58e)]['_selectedTiles']['length']; ++a5G) { + var a5H = cs['tileset']['_selectedTiles'][a5G]['_content']; + var a5I = cs['funcPublic']['GetFeaturesFromContent'](a5H, a5z); + var a5J = a5H['_batchTable']; + if (a5I['size'] == 0x0) { + continue; + } + a5I['forEach'](function(a5K, a5L) { + a5J['setBatchIdTopRenderState'](a5K, !![]); + }); + a5H['_isTopRender'] = !![]; + } + if (cs['viewer']['scene']['postProcessStages']['_stages']['length'] > 0x0) { + var a5M = cs['viewer']['scene']['postProcessStages']['_stages']; + for (var a5N = 0x0; a5N < cs['viewer']['scene']['postProcessStages']['_stages']['length']; a5N++) { + var a5O = a5M[a5N]; + if (a5O['_name'] == doj(0xa7)) { + cs['viewer']['scene'][dol(0x58f)](); + return; + } + } + } + var a5P = Cesium['PostProcessStageLibrary'][dol(0x590)](); + a5P['uniforms']['selectColor'] = a5v; + cs['viewer']['scene']['postProcessStages']['add'](a5P); + cs['viewer']['scene']['requestRender'](); + } catch (a5Q) { + aCe('错' + doo(0x231) + ':' + a5Q); + } + }, + 'clearTopRenderSelectColor': function() { + try { + + if (cs['tileset'] == undefined) { + throw doj(0xa8); + } + var a5R = ''; + var a5S = 0x1; + if (cs['tileset']['stylecolor'] != undefined) { + var a5T = Cesium['Color']['fromCssColorString'](cs['tileset']['stylecolor'])['alpha']; + a5S = a5T; + } + cs['m_model']['forEach'](function(a5U, a5V) { + var a5W = cs['topRenderMap']['get'](a5V['toString']()); + if (a5W['size'] > 0x0) { + a5W['forEach'](function(a5X, a5Y) { + a5R += '#' + a5Y; + cs['Feature']['setAlpha'](a5V + '^' + a5Y, a5S); + a5W['delete'](a5Y); + }); + cs['tileset'] = cs['m_model']['get'](a5V); + cs['funcPublic']['SetStateByFeatureIds'](cs[dol(0x591)], cs['tileset']['root'], a5R, ![]); + cs['viewer']['scene']['requestRender'](); + } + }); + } catch (a5Z) { + aCe('错' + doo(0x232) + ':' + a5Z); + } + }, + 'getMaterialName': function(a60, a61, a62) { + try { + + if (!isEmpty(a61)) { + if (cs['m_model']['get'](a61['toString']()) === undefined) { + throw doj(0xa9); + } + cs['tileset'] = cs['m_model']['get'](a61['toString']()); + } + var a63 = cs['funcPublic'][dol(0x592)](a60); + if (a63['length'] > 0x1) + a60 = a63[0x1]; + else + a60 = a63[0x0]; + var a64 = new Map(); + for (var a65 = 0x0; a65 < cs['tileset']['_selectedTiles']['length']; ++a65) { + var a66 = cs['tileset']['_selectedTiles'][a65]['_content']; + var a67 = cs['funcPublic']['GetFeatureFromContent'](a66, a60); + if (a67 == -0x1) { + continue; + } + if (a62 != undefined) { + if (a62 != a67) { + continue; + } + } + var a68 = a66['_model']['_runtime']['materialsByName']; + Object['getOwnPropertyNames'](a68)['forEach'](function(a69, a6a, a6b) { + a64[dol(0x593)](a60 + '_' + a67, a68[a69]['name']); + }); + } + return a64; + } catch (a6c) { + aCe('错' + doo(0x233) + ':' + a6c); + } + }, + 'rotateInstance': function(a6d, a6e, a6f, a6g, a6h) { + try { + + if (!isEmpty(a6g)) { + if (cs['m_model']['get'](a6g['toString']()) === undefined) { + throw doj(0xaa); + } + cs[dol(0x594)] = cs['m_model']['get'](a6g['toString']()); + } + var a6i = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a6g, a6i); + var a6j = []; + for (var a6k = 0x0; a6k < a6i['length']; a6k++) { + var a6l = a6i[a6k][dol(0x595)]('_'); + if (a6l['length'] > 0x1) { + a6l[dol(0x596)](); + } + if (a6j['indexOf'](a6l['join']('_')) == -0x1) { + a6j['push'](a6l['join']('_')); + } + } + if (a6d[dol(0x597)] > 0x0) { + for (var a6m = 0x0; a6m < a6d['length']; a6m++) { + var a6n = []; + for (var a6o = 0x0; a6o < a6j['length']; a6o++) { + a6n['push'](a6j[a6o] + '_' + a6d[a6m]); + } + cs['Feature']['rotate'](a6n, a6e == 'X' ? 0x1 : 0x0, a6e == 'Y' ? 0x1 : 0x0, a6e == 'Z' ? 0x1 : 0x0, a6f, a6g, a6h); + } + } else { + var a6n = []; + for (var a6o = 0x0; a6o < a6j['length']; a6o++) { + a6n['push'](a6j[a6o]); + } + cs['Feature']['rotate'](a6n, a6e == 'X' ? 0x1 : 0x0, a6e == 'Y' ? 0x1 : 0x0, a6e == 'Z' ? 0x1 : 0x0, a6f, a6g, a6h); + } + } catch (a6r) { + aCe('错' + doo(0x234) + ':' + a6r); + } + }, + 'clearRotateInstance': function(a6s, a6t) { + try { + + if (!isEmpty(a6t)) { + if (cs['m_model']['get'](a6t['toString']()) === undefined) { + throw doj(0xab); + } + cs['tileset'] = cs['m_model']['get'](a6t['toString']()); + } + var a6u = []; + cs[dol(0x598)]['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a6t, a6u); + var a6v = []; + for (var a6w = 0x0; a6w < a6u['length']; a6w++) { + var a6x = a6u[a6w]['split']('_'); + if (a6x['length'] > 0x1) { + a6x['pop'](); + } + if (a6v['indexOf'](a6x['join']('_')) == -0x1) { + a6v['push'](a6x[dol(0x599)]('_')); + } + } + if (a6s['length'] > 0x0) { + for (var a6y = 0x0; a6y < a6s['length']; a6y++) { + for (var a6z = 0x0; a6z < a6v['length']; a6z++) { + cs[dol(0x59a)]['clearRotate'](a6v[a6z] + '_' + a6s[a6y], a6t); + } + } + } else { + for (var a6z = 0x0; a6z < a6v['length']; a6z++) { + cs[dol(0x59b)]['clearRotate'](a6v[a6z], a6t); + } + } + } catch (a6B) { + aCe('错' + doo(0x235) + ':' + a6B); + } + }, + 'setColorInstance': function(a6C, a6D, a6E, a6F, a6G, a6H) { + try { + + if (!isEmpty(a6H)) { + if (cs['m_model']['get'](a6H[dol(0x59c)]()) === undefined) { + throw doj(0xac); + } + cs['tileset'] = cs['m_model'][dol(0x59d)](a6H['toString']()); + } + var a6I = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a6H, a6I); + var a6J = []; + for (var a6K = 0x0; a6K < a6I['length']; a6K++) { + var a6L = a6I[a6K]['split']('_'); + if (a6L['length'] > 0x1) { + a6L['pop'](); + } + if (a6J['indexOf'](a6L['join']('_')) == -0x1) { + a6J['push'](a6L['join']('_')); + } + } + var a6M = []; + if (a6C['length'] > 0x0) { + for (var a6N = 0x0; a6N < a6C['length']; a6N++) { + for (var a6O = 0x0; a6O < a6J['length']; a6O++) { + a6M[dol(0x59e)](a6J[a6O] + '_' + a6C[a6N]); + } + } + } else { + for (var a6O = 0x0; a6O < a6J['length']; a6O++) { + a6M['push'](a6J[a6O]); + } + } + cs['Feature']['setColor'](a6M['join']('#'), a6D, a6E, a6F, a6G, a6H); + } catch (a6Q) { + aCe('错' + doo(0x236) + ':' + a6Q); + } + }, + 'setVisibleInstance': function(a6R, a6S, a6T, a6U) { + try { + + if (!isEmpty(a6T)) { + if (cs['m_model']['get'](a6T['toString']()) === undefined) { + throw doj(0xad); + } + cs['tileset'] = cs['m_model']['get'](a6T['toString']()); + } + var a6V = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a6T, a6V); + var a6W = []; + for (var a6X = 0x0; a6X < a6V[dol(0x59f)]; a6X++) { + var a6Y = a6V[a6X]['split']('_'); + if (a6Y['length'] > 0x1) { + a6Y['pop'](); + } + if (a6W['indexOf'](a6Y['join']('_')) == -0x1) { + a6W[dol(0x5a0)](a6Y['join']('_')); + } + } + var a6Z = []; + if (a6R['length'] > 0x0) { + for (var a70 = 0x0; a70 < a6R['length']; a70++) { + for (var a71 = 0x0; a71 < a6W['length']; a71++) { + a6Z['push'](a6W[a71] + '_' + a6R[a70]); + } + } + } else { + for (var a71 = 0x0; a71 < a6W['length']; a71++) { + a6Z['push'](a6W[a71]); + } + } + cs['Feature']['setVisible'](a6Z['join']('#'), a6S, a6T, a6U); + } catch (a73) { + aCe('错' + doo(0x237) + ':' + a73); + } + }, + 'offsetInstance': function(a74, a75, a76, a77, a78) { + try { + + if (!isEmpty(a78)) { + if (cs['m_model']['get'](a78['toString']()) === undefined) { + throw doj(0xae); + } + cs[dol(0x5a1)] = cs['m_model']['get'](a78['toString']()); + } + var a79 = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs[dol(0x5a2)]['root'], a78, a79); + var a7a = []; + for (var a7b = 0x0; a7b < a79['length']; a7b++) { + var a7c = a79[a7b]['split']('_'); + if (a7c['length'] > 0x1) { + a7c['pop'](); + } + if (a7a['indexOf'](a7c['join']('_')) == -0x1) { + a7a[dol(0x5a3)](a7c['join']('_')); + } + } + if (a77['length'] > 0x0) { + for (var a7d = 0x0; a7d < a77['length']; a7d++) { + for (var a7e = 0x0; a7e < a7a['length']; a7e++) { + cs['Feature'][dol(0x5a4)](a74, a75, a76, a7a[a7e] + '_' + a77[a7d], a78); + } + } + } else { + for (var a7e = 0x0; a7e < a7a['length']; a7e++) { + cs['Feature']['offset'](a74, a75, a76, a7a[a7e], a78); + } + } + } catch (a7g) { + aCe('错' + doo(0x238) + ':' + a7g); + } + }, + 'clearOffsetInstance': function(a7h, a7i) { + try { + + if (!isEmpty(a7i)) { + if (cs['m_model']['get'](a7i['toString']()) === undefined) { + throw doj(0xaf); + } + cs[dol(0x5a5)] = cs['m_model']['get'](a7i['toString']()); + } + var a7j = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a7i, a7j); + var a7k = []; + for (var a7l = 0x0; a7l < a7j[dol(0x5a6)]; a7l++) { + var a7m = a7j[a7l][dol(0x5a7)]('_'); + if (a7m['length'] > 0x1) { + a7m['pop'](); + } + if (a7k['indexOf'](a7m['join']('_')) == -0x1) { + a7k['push'](a7m['join']('_')); + } + } + if (a7h['length'] > 0x0) { + for (var a7n = 0x0; a7n < a7h['length']; a7n++) { + for (var a7o = 0x0; a7o < a7k['length']; a7o++) { + cs['Feature']['clearOffset'](a7k[a7o] + '_' + a7h[a7n], a7i); + } + } + } else { + for (var a7o = 0x0; a7o < a7k['length']; a7o++) { + cs['Feature']['clearOffset'](a7k[a7o], a7i); + } + } + } catch (a7q) { + aCe('错' + doo(0x239) + ':' + a7q); + } + }, + 'setAlphaInstance': function(a7r, a7s, a7t) { + try { + + if (!isEmpty(a7t)) { + if (cs['m_model']['get'](a7t['toString']()) === undefined) { + throw doj(0xb0); + } + cs[dol(0x5a8)] = cs[dol(0x5a9)]['get'](a7t['toString']()); + } + var a7u = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs[dol(0x5aa)]['root'], a7t, a7u); + var a7v = []; + for (var a7w = 0x0; a7w < a7u['length']; a7w++) { + var a7x = a7u[a7w]['split']('_'); + if (a7x['length'] > 0x1) { + a7x['pop'](); + } + if (a7v['indexOf'](a7x['join']('_')) == -0x1) { + a7v[dol(0x5ab)](a7x['join']('_')); + } + } + var a7y = []; + if (a7r[dol(0x5ac)] > 0x0) { + for (var a7z = 0x0; a7z < a7r['length']; a7z++) { + for (var a7A = 0x0; a7A < a7v['length']; a7A++) { + a7y['push'](a7v[a7A] + '_' + a7r[a7z]); + } + } + } else { + for (var a7A = 0x0; a7A < a7v[dol(0x5ad)]; a7A++) { + a7y['push'](a7v[a7A]); + } + } + cs['Feature']['setAlpha'](a7y['join']('#'), a7s, a7t); + } catch (a7C) { + aCe('错' + doo(0x23a) + ':' + a7C); + } + }, + 'getAllInstance': function(a7D, a7E) { + try { + + if (!isEmpty(a7D)) { + if (cs['m_model']['get'](a7D[dol(0x5ae)]()) === undefined) { + throw doj(0xb1); + } + cs['tileset'] = cs['m_model']['get'](a7D['toString']()); + } + let a7F = []; + let a7G = []; + let a7H = []; + cs['funcPublic']['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], a7D, a7F); + for (let a7I = 0x0; a7I < a7F['length']; a7I++) { + var a7J = a7F[a7I]['split']('_'); + if (a7J['length'] > 0x1) { + a7J['pop'](); + if (a7H['indexOf'](a7J['join']('_')) == -0x1) { + a7H['push'](a7J['join']('_')); + } + } else { + a7G['push'](a7F[a7I]); + } + } + var a7K = []; + for (var a7L = 0x0; a7L < a7E['length']; a7L++) { + if (a7E[a7L] == 0x0) { + a7K = a7K['concat'](a7G); + } + for (var a7M = 0x0; a7M < a7H['length']; a7M++) { + a7K['push'](a7H[a7M] + '_' + a7E[a7L]); + } + } + return { + 'features': a7K, + 'length': a7K['length'] + }; + } catch (a7N) { + aCe('错' + doo(0x23b) + ':' + a7N); + } + }, + 'rotateByAnyAxisInstance': function(bb) { + if (cs['isMobile']()) { + aCe('手' + doo(0x23c) + '!'); + return; + } + try { + + if (!Cesium['defined'](bb)) + throw '缺' + doo(0x23d) + 's'; + if (!isEmpty(bb['tag'])) { + if (cs['m_model'][dol(0x5af)](bb[dol(0x5b0)]['toString']()) === undefined) { + throw doj(0xb2); + } + cs['tileset'] = cs['m_model']['get'](bb['tag']['toString']()); + } + let a7P = []; + let a7Q = []; + let a7R = []; + cs[dol(0x5b1)]['GetAllTilesetFeatureId'](cs['tileset'], cs['tileset']['root'], bb['tag'], a7P); + for (let a7S = 0x0; a7S < a7P['length']; a7S++) { + var a7T = a7P[a7S]['split']('_'); + if (a7T['length'] > 0x1) { + a7T['pop'](); + if (a7R['indexOf'](a7T['join']('_')) == -0x1) { + a7R['push'](a7T['join']('_')); + } + } else { + a7Q[dol(0x5b2)](a7P[a7S]); + } + } + for (var a7U = 0x0; a7U < bb['modelIndices']['length']; a7U++) { + var a7V = []; + if (bb['modelIndices'][a7U] == 0x0) { + a7V = a7V['concat'](a7Q); + } + for (var a7W = 0x0; a7W < a7R['length']; a7W++) { + a7V['push'](a7R[a7W] + '_' + bb[dol(0x5b3)][a7U]); + } + bb['featureId'] = a7V['join']('#'); + cs['Feature']['rotateByAnyAxis'](bb); + } + cs['viewer']['scene']['requestRender'](); + } catch (a7X) { + aCe(a7X); + } + }, + 'drawAllFace': function(a7Y) { + var a7Z = cs['Feature']['getVertex'](a7Y); + if (a7Z['length'] > 0x0) { + var a80 = []; + var a81 = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4'][(dol(0x5b4))](cs[dol(0x5b5)]['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var a82 = cs['tileset']['root'][dol(0x5b6)]; + var a83 = new Map(); + for (var q = 0x0; q < a7Z['length'] / 0x9; q++) { + var a85 = Cesium['Color']['fromRandom'](); + var a86 = new Cesium['Cartesian3'](a7Z[q * 0x9],a7Z[q * 0x9 + 0x1],a7Z[q * 0x9 + 0x2]); + var a87 = new Cesium['Cartesian3'](a7Z[q * 0x9 + 0x3],a7Z[q * 0x9 + 0x4],a7Z[q * 0x9 + 0x5]); + var a88 = new Cesium['Cartesian3'](a7Z[q * 0x9 + 0x6],a7Z[q * 0x9 + 0x7],a7Z[q * 0x9 + 0x8]); + a83['set'](a86, [a86, a87, a88]); + a83[dol(0x5b7)](a87, [a86, a87, a88]); + a83['set'](a88, [a86, a87, a88]); + if (a86) { + var a89 = Cesium[dol(0x5b8)]['multiplyByPoint'](a82, a86, new Cesium['Cartesian3']()); + Cesium[dol(0x5b9)]['multiplyByPoint'](a81, a89, a89); + var a8a = Cesium['Matrix4']['multiplyByPoint'](a82, a87, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](a81, a8a, a8a); + var a8b = Cesium['Matrix4']['multiplyByPoint'](a82, a88, new Cesium[(dol(0x5ba))]()); + Cesium['Matrix4']['multiplyByPoint'](a81, a8b, a8b); + } + cs['viewer']['entities'][dol(0x5bb)]({ + 'id': 'f' + doo(0x23e) + '_' + Math['random'](), + 'polyline': { + 'show': !![], + 'positions': [a89, a8a], + 'arcType': Cesium['ArcType']['NONE'], + 'material': a85, + 'width': 0x5 + } + }); + cs['viewer']['entities'][dol(0x5bc)]({ + 'id': 'f' + doo(0x23f) + '_' + Math['random'](), + 'polyline': { + 'show': !![], + 'positions': [a8a, a8b], + 'arcType': Cesium['ArcType']['NONE'], + 'material': a85, + 'width': 0x5 + } + }); + cs['viewer']['entities']['add']({ + 'id': 'f' + doo(0x240) + '_' + Math['random'](), + 'polyline': { + 'show': !![], + 'positions': [a8b, a89], + 'arcType': Cesium['ArcType']['NONE'], + 'material': a85, + 'width': 0x5 + } + }); + } + return a83; + } + } + }; + this['ParticleSystem'] = { + 'getDefaultConfig': function(a8c) { + + if (!Cesium['defined'](cs['Effect_ParticleSystem'])) { + cs['Effect_ParticleSystem'] = new GLEParticleSystem(cs['viewer']); + } + return cs['Effect_ParticleSystem']['getConfig'](a8c); + }, + 'add': function(a8d, a8e, bb) { + + if (!Cesium['defined'](cs['Effect_ParticleSystem'])) { + cs['Effect_ParticleSystem'] = new GLEParticleSystem(cs[dol(0x5bd)]); + } + cs['viewer']['scene']['requestRenderMode'] = ![]; + return cs['Effect_ParticleSystem']['addParticleSystem'](a8d, a8e, bb); + }, + 'update': function(a8g, bb) { + + if (!Cesium['defined'](cs['Effect_ParticleSystem'])) { + cs['Effect_ParticleSystem'] = new GLEParticleSystem(cs['viewer']); + } + cs['viewer']['scene']['requestRenderMode'] = ![]; + return cs[dol(0x5be)]['updateParticleSystem'](a8g, bb); + }, + 'remove': function(a8i) { + + if (!Cesium['defined'](cs['Effect_ParticleSystem'])) { + cs['Effect_ParticleSystem'] = new GLEParticleSystem(cs['viewer']); + } + return cs['Effect_ParticleSystem'][dol(0x5bf)](a8i); + }, + 'removeAll': function() { + + if (!Cesium['defined'](cs['Effect_ParticleSystem'])) { + cs['Effect_ParticleSystem'] = new GLEParticleSystem(cs[dol(0x5c0)]); + } + cs['viewer']['scene']['requestRenderMode'] = !![]; + return cs['Effect_ParticleSystem']['cleanAllParticleSystem'](); + } + }; + this['Public'] = { + 'event': function(a8j, a8k) { + var a8l = Cesium[dol(0x5c1)]['LEFT_CLICK']; + if (Cesium['defined'](a8j)) { + a8j = a8j[dol(0x5c2)](); + cs['Public']['clearHandler'](a8j); + } + switch (a8j) { + case 'L' + doo(0x241) + 'K': + bL = new Cesium[(dol(0x5c3))](cs['viewer']['scene']); + bL['setInputAction'](function(a8m) { + a8k({ + 'position': a8m['position'], + 'ctrl': ![], + 'shift': ![] + }); + }, a8l); + bM = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bM['setInputAction'](function(a8n) { + a8k({ + 'position': a8n['position'], + 'ctrl': !![], + 'shift': ![] + }); + }, a8l, Cesium['KeyboardEventModifier']['CTRL']); + bN = new Cesium['ScreenSpaceEventHandler'](cs['viewer'][dol(0x5c4)]); + bN['setInputAction'](function(a8o) { + a8k({ + 'position': a8o['position'], + 'ctrl': ![], + 'shift': !![] + }); + }, a8l, Cesium[dol(0x5c5)]['SHIFT']); + break; + case 'L' + doo(0x242) + 'K': + a8l = Cesium[dol(0x5c6)][dol(0x5c7)]; + bO = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bO['setInputAction'](a8k, a8l); + break; + case 'L' + doo(0x243) + 'N': + a8l = Cesium['ScreenSpaceEventType']['LEFT_DOWN']; + bP = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bP['setInputAction'](a8k, a8l); + break; + case 'L' + doo(0x244) + 'P': + a8l = Cesium['ScreenSpaceEventType']['LEFT_UP']; + bQ = new Cesium[(dol(0x5c8))](cs['viewer']['scene']); + bQ['setInputAction'](a8k, a8l); + break; + case 'R' + doo(0x245) + 'K': + a8l = Cesium['ScreenSpaceEventType'][dol(0x5c9)]; + bR = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bR['setInputAction'](a8k, a8l); + break; + case 'R' + doo(0x246) + 'N': + a8l = Cesium['ScreenSpaceEventType']['RIGHT_DOWN']; + bS = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bS['setInputAction'](a8k, a8l); + break; + case 'R' + doo(0x247) + 'P': + a8l = Cesium['ScreenSpaceEventType']['RIGHT_UP']; + bT = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bT['setInputAction'](a8k, a8l); + break; + case 'W' + doo(0x248) + 'L': + a8l = Cesium['ScreenSpaceEventType']['WHEEL']; + bU = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bU['setInputAction'](a8k, a8l); + break; + case 'M' + doo(0x249) + 'K': + a8l = Cesium['ScreenSpaceEventType']['MIDDLE_CLICK']; + bV = new Cesium['ScreenSpaceEventHandler'](cs['viewer'][dol(0x5ca)]); + bV['setInputAction'](a8k, a8l); + break; + case 'M' + doo(0x24a) + 'N': + a8l = Cesium['ScreenSpaceEventType']['MIDDLE_DOWN']; + bW = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bW['setInputAction'](a8k, a8l); + break; + case 'M' + doo(0x24b) + 'P': + a8l = Cesium['ScreenSpaceEventType']['MIDDLE_UP']; + bX = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bX['setInputAction'](a8k, a8l); + break; + case 'M' + doo(0x24c) + 'E': + a8l = Cesium['ScreenSpaceEventType']['MOUSE_MOVE']; + bY = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + bY['setInputAction'](a8k, a8l); + break; + case 'P' + doo(0x24d) + 'D': + a8l = Cesium['ScreenSpaceEventType']['PINCH_END']; + bZ = new Cesium['ScreenSpaceEventHandler'](cs['viewer'][dol(0x5cb)]); + bZ['setInputAction'](a8k, a8l); + break; + case 'P' + doo(0x24e) + 'E': + a8l = Cesium['ScreenSpaceEventType']['PINCH_MOVE']; + c0 = new Cesium['ScreenSpaceEventHandler'](cs['viewer'][dol(0x5cc)]); + c0[dol(0x5cd)](a8k, a8l); + break; + case 'P' + doo(0x24f) + 'T': + a8l = Cesium['ScreenSpaceEventType']['PINCH_START']; + c1 = new Cesium['ScreenSpaceEventHandler'](cs['viewer']['scene']); + c1['setInputAction'](a8k, a8l); + break; + default: + break; + } + }, + 'clearHandler': function(a8p) { + if (Cesium['defined'](a8p)) + a8p = a8p['toUpperCase'](); + else + a8p = undefined; + if (!a8p && bK != null) { + bK[dol(0x5ce)](); + bK = null; + } + if ((!a8p || a8p && a8p === 'L' + doo(0x250) + 'K') && bL != null) { + bL['destroy'](); + bL = null; + bM['destroy'](); + bM = null; + bN['destroy'](); + bN = null; + } + if ((!a8p || a8p && a8p === 'L' + doo(0x251) + 'K') && bO != null) { + bO['destroy'](); + bO = null; + } + if ((!a8p || a8p && a8p === 'L' + doo(0x252) + 'N') && bP != null) { + bP['destroy'](); + bP = null; + } + if ((!a8p || a8p && a8p === 'L' + doo(0x253) + 'P') && bQ != null) { + bQ['destroy'](); + bQ = null; + } + if ((!a8p || a8p && a8p === 'R' + doo(0x254) + 'K') && bR != null) { + bR['destroy'](); + bR = null; + } + if ((!a8p || a8p && a8p === 'R' + doo(0x255) + 'N') && bS != null) { + bS['destroy'](); + bS = null; + } + if ((!a8p || a8p && a8p === 'R' + doo(0x256) + 'P') && bT != null) { + bT['destroy'](); + bT = null; + } + if ((!a8p || a8p && a8p === 'W' + doo(0x257) + 'L') && bU != null) { + bU['destroy'](); + bU = null; + } + if ((!a8p || a8p && a8p === 'M' + doo(0x258) + 'K') && bV != null) { + bV['destroy'](); + bV = null; + } + if ((!a8p || a8p && a8p === 'M' + doo(0x259) + 'N') && bW != null) { + bW['destroy'](); + bW = null; + } + if ((!a8p || a8p && a8p === 'M' + doo(0x25a) + 'P') && bX != null) { + bX['destroy'](); + bX = null; + } + if ((!a8p || a8p && a8p === 'M' + doo(0x25b) + 'E') && bY != null) { + bY['destroy'](); + bY = null; + } + if ((!a8p || a8p && a8p === 'P' + doo(0x25c) + 'D') && bZ != null) { + bZ['destroy'](); + bZ = null; + } + if ((!a8p || a8p && a8p === 'P' + doo(0x25d) + 'E') && c0 != null) { + c0['destroy'](); + c0 = null; + } + if ((!a8p || a8p && a8p === 'P' + doo(0x25e) + 'T') && c1 != null) { + c1['destroy'](); + c1 = null; + } + if (!isEmpty(cs['nameOverlay'])) + cs['nameOverlay']['style']['display'] = 'n' + doo(0x25f) + 'e'; + }, + 'changeEventType': function(bb) { + var bp = cs['viewer']['scene'][dol(0x5cf)]; + var a8s = { + 'translateEventTypes': bp['translateEventTypes'], + 'zoomEventTypes': bp['zoomEventTypes'], + 'rotateEventTypes': bp['rotateEventTypes'], + 'tiltEventTypes': bp['tiltEventTypes'], + 'lookEventTypes': bp['lookEventTypes'] + }; + if (Cesium['defined'](bb)) { + for (var a8t in bb) { + if (Cesium[dol(0x5d0)](bb[a8t])) { + a8s[a8t] = bb[a8t]; + } + } + } + bp['translateEventTypes'] = a8s['translateEventTypes']; + bp['zoomEventTypes'] = a8s['zoomEventTypes']; + bp['rotateEventTypes'] = a8s['rotateEventTypes']; + bp['tiltEventTypes'] = a8s['tiltEventTypes']; + bp['lookEventTypes'] = a8s['lookEventTypes']; + }, + 'resetEventType': function() { + + var bp = cs['viewer']['scene']['screenSpaceCameraController']; + bp['zoomEventTypes'] = [Cesium['CameraEventType']['WHEEL'], Cesium['CameraEventType']['PINCH']]; + bp['rotateEventTypes'] = cs['isMobile']() ? Cesium['CameraEventType']['PINCH'] : Cesium['CameraEventType']['RIGHT_DRAG']; + bp['tiltEventTypes'] = [Cesium['CameraEventType']['MIDDLE_DRAG'], Cesium['CameraEventType']['LEFT_DRAG'], { + 'eventType': Cesium['CameraEventType']['LEFT_DRAG'], + 'modifier': Cesium['KeyboardEventModifier']['CTRL'] + }, { + 'eventType': Cesium['CameraEventType']['RIGHT_DRAG'], + 'modifier': Cesium[dol(0x5d1)]['CTRL'] + }]; + }, + 'setDoubleSidedRender': function(a8v) { + + cs['enableDoubleSided'] = a8v; + }, + 'listenExceptionMessage': function(a8w) { + + cs['viewer']['scene']['renderError']['addEventListener'](function(a8x, a8y) { + if (!isEmpty(a8w)) + a8w(a8y); + }); + }, + 'drawPolygonGrid': function(a8z) { + try { + + if (a8z['length'] > 0x0) { + var a8A = []; + var a8B = []; + for (var a8C = 0x0; a8C < a8z['length']; a8C++) { + var a8D = a8z[a8C]; + if (!isEmpty(a8D)) { + var a8E = Cesium[dol(0x5d2)](); + if (!isEmpty(a8D['id'])) { + a8E = a8D['id']; + } + var a8F = Cesium['Color']['fromRandom']({ + 'alpha': 0.2 + }); + if (!isEmpty(a8D['gridColor'])) { + a8F = Cesium['Color']['fromCssColorString'](a8D['gridColor']); + } + var a8G = Cesium['Color']['WHITE']; + if (!isEmpty(a8D['boderColor'])) { + a8G = Cesium['Color']['fromCssColorString'](a8D['boderColor']); + } + var a8H = []; + if (!isEmpty(a8D['positions']) && a8D['positions']['length'] > 0x0) { + for (var q = 0x0; q < a8D['positions']['length']; q++) { + a8H[dol(0x5d3)](Cesium['Cartesian3']['fromRadians'](a8D['positions'][q]['longitude'], a8D['positions'][q]['latitude'], a8D['positions'][q]['height'])); + } + } + if (a8H['length'] > 0x2) { + a8A[dol(0x5d4)](new Cesium['GeometryInstance']({ + 'geometry': Cesium['PolygonGeometry']['fromPositions']({ + 'positions': a8H, + 'vertexFormat': Cesium['PerInstanceColorAppearance']['VERTEX_FORMAT'] + }), + 'id': a8E, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](a8F), + 'show': new Cesium['ShowGeometryInstanceAttribute'](!![]) + } + })); + if (a8D['showBoder']) { + a8B[dol(0x5d5)](new Cesium['GeometryInstance']({ + 'geometry': Cesium['PolygonOutlineGeometry']['fromPositions']({ + 'positions': a8H + }), + 'id': a8E, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](a8G), + 'show': new Cesium['ShowGeometryInstanceAttribute'](!![]) + } + })); + } + } + } + } + if (a8A['length'] > 0x0) { + var a8J = cs['viewer']['scene']['primitives']['add'](new Cesium[(dol(0x5d6))]({ + 'geometryInstances': a8A, + 'appearance': new Cesium['PerInstanceColorAppearance']() + })); + cm['push'](a8J); + } + if (a8B[dol(0x5d7)] > 0x0) { + cm[dol(0x5d8)](cs['viewer']['scene'][dol(0x5d9)]['add'](new Cesium['Primitive']({ + 'geometryInstances': a8B, + 'appearance': new Cesium['PerInstanceColorAppearance']({ + 'translucent': ![], + 'flat': !![] + }) + }))); + } + cs[dol(0x5da)]['scene']['requestRender'](); + } + } catch (a8K) { + aCe('错' + doo(0x260) + ':' + a8K); + } + }, + 'drawGrid': function(a8L) { + try { + + if (a8L['length'] > 0x0) { + var a8M = []; + var a8N = []; + for (var a8O = 0x0; a8O < a8L['length']; a8O++) { + var a8P = a8L[a8O]; + if (!isEmpty(a8P)) { + var a8Q = Cesium['createGuid'](); + if (!isEmpty(a8P['id'])) { + a8Q = a8P['id']; + } + var a8R = Cesium['Color']['fromRandom']({ + 'alpha': 0.2 + }); + if (!isEmpty(a8P['gridColor'])) { + a8R = Cesium['Color']['fromCssColorString'](a8P['gridColor']); + } + var a8S = Cesium[dol(0x5db)]['WHITE']; + if (!isEmpty(a8P['boderColor'])) { + a8S = Cesium['Color'][dol(0x5dc)](a8P['boderColor']); + } + var a8T = []; + if (!isEmpty(a8P['positions']) && a8P['positions']['length'] > 0x0) { + for (var q = 0x0; q < a8P['positions']['length']; q++) { + a8T['push'](new Cesium['Cartographic'](a8P['positions'][q]['longitude'],a8P['positions'][q]['latitude'],a8P['positions'][q]['height'])); + } + } + if (a8T[dol(0x5dd)] > 0x3) { + var a8V = Cesium['Rectangle']['fromCartographicArray'](a8T, new Cesium['Rectangle']()); + a8M['push'](new Cesium['GeometryInstance']({ + 'geometry': new Cesium['RectangleGeometry']({ + 'rectangle': a8V, + 'vertexFormat': Cesium['PerInstanceColorAppearance']['VERTEX_FORMAT'] + }), + 'id': a8Q, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](a8R), + 'show': new Cesium['ShowGeometryInstanceAttribute'](!![]) + } + })); + if (a8P['showBoder']) { + a8N['push'](new Cesium[(dol(0x5de))]({ + 'geometry': new Cesium['RectangleOutlineGeometry']({ + 'rectangle': a8V + }), + 'id': a8Q, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](a8S), + 'show': new Cesium['ShowGeometryInstanceAttribute'](!![]) + } + })); + } + } + } + } + if (a8M['length'] > 0x0) { + var a8W = cs['viewer']['scene'][dol(0x5df)]['add'](new Cesium['Primitive']({ + 'geometryInstances': a8M, + 'appearance': new Cesium['PerInstanceColorAppearance']() + })); + cm['push'](a8W); + } + if (a8N['length'] > 0x0) { + cm['push'](cs[dol(0x5e0)]['scene']['primitives']['add'](new Cesium['Primitive']({ + 'geometryInstances': a8N, + 'appearance': new Cesium[(dol(0x5e1))]({ + 'translucent': ![], + 'flat': !![] + }) + }))); + } + cs['viewer']['scene']['requestRender'](); + } + } catch (a8X) { + aCe('错' + doo(0x261) + ':' + a8X); + } + }, + 'removeGrid': function(a8Y) { + try { + + if (isEmpty(a8Y)) { + for (var a8Z = 0x0; a8Z < cm[dol(0x5e2)]; a8Z++) { + cs['viewer']['scene']['primitives']['remove'](cm[a8Z]); + } + cm = []; + } else { + for (var a8Z = 0x0; a8Z < cm['length']; a8Z++) { + var a91 = cm[a8Z]; + var a92 = a91['getGeometryInstanceAttributes'](a8Y); + a92['show'] = Cesium['ShowGeometryInstanceAttribute']['toValue'](![]); + } + } + cs['viewer']['scene']['requestRender'](); + } catch (a93) { + aCe('错' + doo(0x262) + ':' + a93); + } + }, + 'pickGridByEvent': function(a94, a95) { + try { + + if (!isEmpty(a95)) { + if (!isEmpty(a94)) { + var a96 = cs['funcPublic']['pickPosition'](a94, cs['viewer']); + var a97 = cs['viewer'][dol(0x5e3)][dol(0x5e4)](a94); + if (Cesium['defined'](a97)) { + if (a97['primitive']instanceof Cesium['Primitive']) { + a95({ + 'id': a97['id'], + 'position': cs['funcPublic']['outCartesian3ToRadian'](a96['position'], cs[dol(0x5e5)]) + }); + } + } + } + } + cs['viewer']['scene']['requestRender'](); + } catch (a98) { + aCe('错' + doo(0x263) + ':' + a98); + } + }, + 'setGridColorById': function(a99, a9a) { + try { + + if (!isEmpty(a99)) { + var a9b = Cesium['Color']['YELLOW']['withAlpha'](0.9); + if (!isEmpty(a9a)) { + a9b = Cesium['Color'][dol(0x5e6)](a9a); + } + for (var a9c = 0x0; a9c < cm['length']; a9c++) { + var a9d = cm[a9c]; + var a9e = a9d[dol(0x5e7)](a99); + a9e['color'] = Cesium['ColorGeometryInstanceAttribute']['toValue'](a9b); + } + } + } catch (a9f) { + aCe('错' + doo(0x264) + ':' + a9f); + } + }, + 'updateCanvas': function() { + try { + + for (var a9g = 0x0; a9g < ce['length']; a9g++) { + var a9h = ce[a9g]; + if (!isEmpty(a9h)) { + a9h['updateData'](); + } + } + } catch (a9i) { + aCe('错' + doo(0x265) + ':' + a9i); + } + }, + 'surfaceTransparency': function(a9j, a9k, a9l) { + try { + + if (isEmpty(a9l)) { + a9q(cs['viewer']); + var a9j = Number(a9j); + a9j = !isNaN(a9j) ? a9j : 0x1; + a9j = Cesium['Math']['clamp'](a9j, 0x0, 0x1); + var a9k = Number(a9k); + a9k = !isNaN(a9k) ? a9k : 0x1; + a9k = Cesium[dol(0x5e8)]['clamp'](a9k, 0x0, 0x1); + cs['viewer']['scene']['globe']['translucency']['frontFaceAlphaByDistance'] = new Cesium['NearFarScalar'](0x190,0x0,0x320,0x1); + cs['viewer']['scene']['globe']['translucency']['enabled'] = a9j < 0x1 ? !![] : ![]; + cs['viewer']['scene']['globe']['translucency'][dol(0x5e9)]['nearValue'] = Cesium['Math']['clamp'](a9j, 0x0, 0x1); + cs[dol(0x5ea)]['scene'][dol(0x5eb)]['translucency']['frontFaceAlphaByDistance']['farValue'] = Cesium['Math']['clamp'](a9k, 0x0, 0x1); + } else { + a9q(cs['viewer']); + cs['viewer'][dol(0x5ec)]['globe']['translucency']['enabled'] = !![]; + cs['viewer']['scene']['globe']['undergroundColor'] = undefined; + cs['viewer']['scene']['globe']['translucency']['frontFaceAlpha'] = a9j; + var a9o = []; + for (var a9p = 0x0; a9p < a9l['length']; a9p++) { + a9o['push'](new Cesium['Cartographic'](a9l[a9p][0x0],a9l[a9p][0x1],a9l[a9p][0x2])); + } + cs['viewer']['scene']['globe']['translucency']['rectangle'] = Cesium['Rectangle']['fromCartographicArray'](a9o); + } + function a9q(a9r) { + a9r['scene']['globe']['showGroundAtmosphere'] = !![]; + a9r['scene']['globe']['baseColor'] = Cesium['Color']['BLACK']; + a9r['scene']['globe']['translucency']['enabled'] = ![]; + a9r['scene']['globe']['translucency']['frontFaceAlpha'] = 0x1; + a9r['scene']['globe']['undergroundColor'] = Cesium['Color']['BLACK']; + a9r['scene']['globe']['translucency'][dol(0x5ed)] = undefined; + a9r['scene']['imageryLayers']['get'](0x0)['colorToAlpha'] = undefined; + } + cs['viewer']['scene']['requestRender'](); + } catch (a9s) { + aCe('错' + doo(0x266) + ':' + a9s); + } + }, + 'setLogarithmicDepth': function(a9t) { + + if (typeof a9t == 'b' + doo(0x267) + 'n') { + cs['viewer']['scene']['logarithmicDepthBuffer'] = a9t; + cs['viewer']['scene']['requestRender'](); + } else { + aCe('参' + doo(0x268) + '!'); + } + }, + 'getRenderMode': function() { + + return cs[dol(0x5ee)]; + }, + 'setRenderMode': function(a9u) { + + if (typeof a9u == 'n' + doo(0x269) + 'r') { + cs['RenderMode'] = a9u; + } else { + aCe('参' + doo(0x26a) + '!'); + } + }, + 'getIsOptimizeRendering': function() { + + return cs['IsOptimizeRendering']; + }, + 'setIsOptimizeRendering': function(a9v) { + + if (typeof a9v == 'b' + doo(0x26b) + 'n') { + cs['IsOptimizeRendering'] = a9v; + cs['viewer']['scene']['requestRender'](); + } else { + aCe('参' + doo(0x26c) + '!'); + } + }, + 'setRefreshRender': function(a9w) { + + if (typeof a9w == 'b' + doo(0x26d) + 'n') { + cs['RefreshRendering'] = a9w; + cs[dol(0x5ef)]['scene']['requestRender'](); + } else { + aCe('参' + doo(0x26e) + '!'); + } + }, + 'closeMouseAction': function(a9x) { + + cs['viewer']['scene'][dol(0x5f0)][dol(0x5f1)] = a9x; + cs['viewer']['scene'][dol(0x5f2)]['enableTranslate'] = a9x; + cs['viewer']['scene']['screenSpaceCameraController'][dol(0x5f3)] = a9x; + cs['viewer'][dol(0x5f4)]['screenSpaceCameraController']['enableTilt'] = a9x; + cs['viewer']['scene']['screenSpaceCameraController']['enableLook'] = a9x; + }, + 'drawRegion': function(a9y, a9z) { + + var a9A = new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var a9B = new Cesium['RectangleOutlineGeometry']({ + 'rectangle': new Cesium['Rectangle'](a9y[0x0],a9y[0x1],a9y[0x2],a9y[0x3]), + 'height': a9y[0x4], + 'extrudedHeight': a9y[0x5] + }); + a9B = Cesium['RectangleOutlineGeometry']['createGeometry'](a9B); + var a9C = new Cesium['GeometryInstance']({ + 'geometry': a9B, + 'modelMatrix': a9A, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](a9z) + } + }); + var a9D = new Cesium['Primitive']({ + 'geometryInstances': a9C, + 'appearance': new Cesium['PerInstanceColorAppearance']({ + 'translucent': ![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + cs['viewer']['scene']['primitives'][dol(0x5f5)](a9D); + cs['viewer']['scene'][dol(0x5f6)](); + }, + 'setSceneRenderState': function(a9E) { + try { + + cs['viewer']['scene'][dol(0x5f7)] = Boolean(a9E); + } catch (a9F) { + aCe('错' + doo(0x26f) + ':' + a9F); + } + }, + 'getAltitude': function(a9G, a9H, a9I) { + try { + + if (!cs['defaults']['openearth'] || !cs['defaults']['openterrain']) { + return 0x0; + } + var a9J = [new Cesium['Cartographic'](a9H,a9G)]; + var a9K = Cesium['sampleTerrainMostDetailed'](cs['viewer']['scene']['terrainProvider'], a9J); + Cesium['when'](a9K, function(a9L) { + if (a9I) + a9I(a9L); + }); + } catch (a9M) { + aCe('错' + doo(0x270) + ':' + a9M); + } + }, + 'degreesToRadians': function(a9N) { + try { + + return Cesium[dol(0x5f8)]['toRadians'](Number(a9N)); + } catch (a9O) { + aCe('错' + doo(0x271) + ':' + a9O); + } + }, + 'radiansToDegrees': function(a9P) { + try { + + return Cesium['Math']['toDegrees'](Number(a9P)); + } catch (a9Q) { + aCe('错' + doo(0x272) + ':' + a9Q); + } + }, + 'setSensitivityPC': function(a9R, a9S, a9T) { + + cs['maximumRotateRatePc'] = Number(a9R); + cs['minimumRotateRatePc'] = Number(a9S); + cs['zoomFactorPc'] = Number(a9T); + return 0x0; + }, + 'setSensitivityMobile': function(a9U, a9V, a9W) { + + cs['maximumRotateRateMobile'] = Number(a9U); + cs['minimumRotateRateMobile'] = Number(a9V); + cs['zoomFactorMobile'] = Number(a9W); + return 0x0; + }, + 'radiansToScreenCoord': function(a9X) { + try { + + var a9Y = cs['funcPublic'][dol(0x5f9)](a9X, cs['viewer']); + return cs['viewer']['scene']['cartesianToCanvasCoordinates'](a9Y); + } catch (a9Z) { + aCe('错' + doo(0x273) + ':' + a9Z); + } + }, + 'degreesToCartesian3': function(aa0, aa1, aa2) { + try { + + return cs['funcPublic']['cartographicToCartesian3Three'](Cesium['Math'][dol(0x5fa)](Number(aa1)), Cesium['Math']['toRadians'](Number(aa0)), Number(aa2), cs['viewer']); + } catch (aa3) { + aCe('错' + doo(0x274) + ':' + aa3); + } + }, + 'radiansToCartesian3': function(aa4, aa5, aa6) { + try { + + return cs['funcPublic']['cartographicToCartesian3Three'](Number(aa5), Number(aa4), Number(aa6), cs['viewer']); + } catch (aa7) { + aCe('错' + doo(0x275) + ':' + aa7); + } + }, + 'radiansToModelCartesian3': function(aa8, aa9, aaa, aab) { + try { + + var aac = cs['Model']['get'](aab); + if (!aac) { + throw doj(0xb3); + } + var aad = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](aac['root']['transform'], aad); + var aae = cs['Public']['radiansToCartesian3'](aa8, aa9, aaa); + var aaf = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](aad, aae, aaf); + var aag = cs['tileset']['offset']; + if (!Cesium['defined'](aag)) + aag = [0x0, 0x0, 0x0]; + var aah = Cesium['Cartesian3']['fromArray'](aag); + Cesium['Cartesian3']['divideByScalar'](aah, 0x3e8, aah); + Cesium['Cartesian3']['add'](aaf, aah, aaf); + return aaf; + } catch (aai) { + aCe('错' + doo(0x276) + ':' + aai); + } + }, + 'cartesian3ToRadians': function(aaj) { + + return cs['funcPublic']['outCartesian3ToRadian']({ + 'x': aaj[0x0], + 'y': aaj[0x1], + 'z': aaj[0x2] + }, cs['viewer']); + }, + 'convertWorldToModel': function(aak, aal, aam) { + try { + + var aan = Cesium['Cartographic']['toCartesian'](new Cesium['Cartographic'](Number(aak),Number(aal),Number(aam))); + var aao = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], aao); + Cesium['Matrix4']['multiplyByPoint'](aao, aan, aan); + return aan; + } catch (aap) { + aCe('错' + doo(0x277) + ':' + aap); + } + }, + 'convertModelToWorld': function(aaq, aar, aas, aat, aau) { + try { + + if (Cesium['defined'](aat)) { + var aav = cs['Model'][dol(0x5fb)](aat); + if (!aav) { + throw doj(0xb4); + } + cs['tileset'] = aav; + } + var aaw = cs['tileset']['offset']; + if (!Cesium['defined'](aaw)) + aaw = [0x0, 0x0, 0x0]; + var aax = Cesium['Cartesian3']['fromArray'](aaw); + var aay = new Cesium[(dol(0x5fc))](Number(aaq),Number(aar),Number(aas)); + Cesium['Cartesian3']['subtract'](aay, aax, aay); + Cesium['Cartesian3'][dol(0x5fd)](aay, 0x3e8, aay); + var aaz = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium[(dol(0x5fe))]['clone'](cs[dol(0x5ff)][dol(0x600)]) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + Cesium['Matrix4'][dol(0x601)](cs['tileset']['root'][dol(0x602)], aay, aay); + Cesium['Matrix4']['multiplyByPoint'](aaz, aay, aay); + if (aau) { + return aay; + } else { + return cs['funcPublic'][dol(0x603)](aay, cs['viewer']); + } + } catch (aaA) { + aCe('错' + doo(0x278) + ':' + aaA); + } + }, + 'pickupCoordinate': function(aaB, aaC, aaD, aaE) { + try { + + if (isEmpty(aaD)) + aaD = 0x0; + if (!isEmpty(aaC)) { + if (!isEmpty(aaB)) { + var aaF = cs['funcPublic']['pickPosition'](aaB, cs['viewer']); + if (aaF['type'] !== cs['PositionType']['NONE']) { + if (aaD == 0x0) { + aaC(cs['funcPublic']['outCartesian3ToRadian'](aaF['position'], cs['viewer'])); + return; + } else if (aaD == 0x1) { + if (cs['vertexAdsorption']) { + var aaG = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], aaG); + var aaH = Cesium['Matrix4']['multiplyByPoint'](aaG, aaF[dol(0x604)], new Cesium['Cartesian3']()); + cs['Feature']['getByEvent'](aaB, function(aaI) { + if (aaI != null) { + if (cs['viewer']['scene']['_context']['_webgl2']) { + var aaJ = cs[dol(0x605)]['getVertex'](aaI['id']); + if (aaJ['length'] > 0x0) { + var aaK = new Cesium['Cartesian3'](); + for (var q = 0x0; q < aaJ['length'] / 0x3; q++) { + var aaM = new Cesium['Cartesian3'](aaJ[q * 0x3],aaJ[q * 0x3 + 0x1],aaJ[q * 0x3 + 0x2]); + var aaN = Cesium['Cartesian3']['distance'](aaH, aaM); + if (aaN < cs['vertexAdsorptionDis']) { + Cesium['Cartesian3']['clone'](aaM, aaK); + break; + } + } + if (aaK['equals'](Cesium['Cartesian3']())) { + aaC(aaF['position']); + } else { + Cesium['Matrix4'][dol(0x606)](cs['tileset'][dol(0x607)]['transform'], aaK, aaK); + aaC(aaK); + } + } else { + aaC(aaF['position']); + } + } else { + aaC(aaF['position']); + } + } + }); + } else { + aaC(aaF['position']); + } + return; + } else if (aaD == 0x2) { + bj['Feature']['getFaceAndNormal'](aaB, function(aaO) { + var aaP = aaO['FaceNormal']; + var aaQ = aaO['FacePOSArr']; + var aaG = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset'][dol(0x608)]['transform'], aaG); + var aaS = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](aaG, aaF['position'], aaS); + var aaT = 0.5; + aaF['x'] += aaT * aaP['x']; + aaF['y'] += aaT * aaP['y']; + aaF['z'] += aaT * aaP['z']; + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], aaS, aaS); + aaC(aaS); + }); + } + } else { + if (!isEmpty(aaE)) + aaE(); + } + } + } + } catch (aaU) { + aCe('错' + doo(0x279) + ':' + aaU); + } + }, + 'getPos2DByPos3D': function(aaV, aaW, aaX, aaY, aaZ) { + try { + + var ab0 = []; + var ab1 = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](aaV, ab1); + var ab2 = cs['Model']['getModelsCenter'](); + var ab3 = ab2['maxHeight'][0x0] * 0x1 - ab2['minHeight'][0x0] * 0x1; + ab1['y'] += ab3 / 0x2; + var ab4 = new Cesium['Cartesian3'](0x0,-0x1,0x0); + var ab5 = new Cesium['Ray'](ab1,ab4); + var ab6 = aaZ; + var ab7 = '#' + ab6['toString'](); + ab7 = ab7['trimEnd']('#'); + var ab8 = ab7['replace'](/#/g, '#' + aaX + '_'); + ab8 = ab8['TrimStart']('#'); + cs['Feature']['setVisible'](ab8, ![], aaW); + var ab9 = '#' + aaY; + ab9 = ab9['trimEnd']('#'); + var aba = ab9['replace'](/#/g, '#' + aaX + '_'); + aba = aba['TrimStart']('#'); + cs['Feature'][dol(0x609)](aba, !![], aaW); + var abb = cs['viewer']['scene']['pickFromRay'](ab5, ab0); + cs['Feature']['setVisible'](ab8, !![], aaW); + if (Cesium['defined'](abb)) { + results = [abb]; + return results[0x0][dol(0x60a)]; + } + } catch (abc) { + aCe('错' + doo(0x27a) + ':' + abc); + } + }, + 'drawShape': function(abd, abe) { + try { + + var abe = abe ? abe : {}; + var abg; + var abh = abe['id'] ? abe['id'] : Cesium['createGuid'](); + if (abe['drawMode'] == 'p' + doo(0x27b) + 'n') { + abg = cs['viewer']['entities']['add']({ + 'id': abh, + 'polygon': { + 'hierarchy': abd, + 'material': abe['color'] ? abe['color'] : new Cesium['ColorMaterialProperty'](Cesium[dol(0x60b)]['WHITE']['withAlpha'](0.7)), + 'width': abe['width'] ? abe['width'] : 0x2, + 'classificationType': abe['classificationType'] ? abe['classificationType'] : Cesium['ClassificationType']['TERRAIN'], + 'clampToGround': !![] + } + }); + } else if (abe['drawMode'] == 'p' + doo(0x27c) + 'e') { + abg = cs['viewer']['entities']['add']({ + 'id': abh, + 'polyline': { + 'clampToGround': !![], + 'classificationType': abe['classificationType'] ? abe['classificationType'] : Cesium['ClassificationType']['TERRAIN'], + 'positions': abd, + 'material': abe['color'] ? abe['color'] : new Cesium['Color']['fromCssColorString']('#' + doo(0x27d) + '0')['withAlpha'](0.2), + 'width': abe['width'] ? abe['width'] : 0x3 + } + }); + } + cs['viewer'][dol(0x60c)]['requestRender'](); + return abg; + } catch (abi) { + aCe('错' + doo(0x27e) + ':' + abi); + } + }, + 'removeShape': function(abj) { + try { + + var abk = cs['viewer']['entities']['getById'](abj); + if (abk != undefined) { + cs['viewer']['entities']['remove'](abk); + } + cs['viewer']['scene']['requestRender'](); + } catch (abl) { + aCe('错' + doo(0x27f) + ':' + abl); + } + }, + 'setShapeVisible': function(abm, abn) { + try { + + var abo = cs['viewer']['entities']['getById'](abm); + if (Cesium['defined'](abo)) { + abo['show'] = abn; + } + cs['viewer']['scene']['requestRender'](); + } catch (abp) { + aCe('错' + doo(0x280) + ':' + abp); + } + }, + 'zoomToShape': function(abq, abr) { + try { + + var abr = abr ? abr : {}; + var abu = abr[dol(0x60d)] ? abr['heading'] : 0x0; + var abv = abr[dol(0x60e)] ? abr['pitch'] : 0x1e; + var abw = abr['distance'] ? abr['distance'] : 0x0; + var abx = abr['time'] ? abr['time'] : 0x0; + var aby = cs['viewer']['entities']['getById'](abq); + if (aby != undefined) { + var abz; + if (aby['_polygon']) { + abz = aby['_polygon']['_hierarchy']['_value']['positions']; + } else if (aby['_polyline']) { + abz = aby['_polyline']['_positions']['_value']; + } + var abA = Cesium['clone'](abz[0x0]); + var abB = Cesium['clone'](abz[0x0]); + for (var abC = 0x0; abC < abz['length']; abC++) { + abA = cs[dol(0x60f)]['max'](abA, abz[abC]); + } + for (var abC = 0x0; abC < abz[dol(0x610)]; abC++) { + abB = cs['funcPublic']['min'](abB, abz[abC]); + } + var abE = Cesium['Cartesian3']['subtract'](abA, abB, new Cesium['Cartesian3']()); + var abF = Cesium['Cartesian3']['midpoint'](abA, abB, new Cesium['Cartesian3']()); + var abG = Cesium['Cartesian3']['magnitude'](abE); + var abH = new Cesium['BoundingSphere'](abF,abG); + cs['viewer']['camera'][dol(0x611)](abH, { + 'duration': abx, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](abu),Cesium['Math']['toRadians'](-abv),abw) + }); + } + cs['viewer'][dol(0x612)]['requestRender'](); + } catch (abI) { + aCe('错' + doo(0x281) + ':' + abI); + } + }, + 'drawPoint': function(abJ, abK) { + try { + + var abK = abK ? abK : {}; + var abM = abK[dol(0x613)] ? abK['id'] : Cesium['createGuid'](); + if (!Cesium['defined'](cs['pointPrimitives'])) { + cs['pointPrimitives'] = cs[dol(0x614)]['scene']['primitives']['add'](new Cesium['PointPrimitiveCollection']({ + 'blendOption': Cesium['BlendOption']['TRANSLUCENT'] + })); + } + if (Array['isArray'](abJ)) { + switch (abK['axisType']) { + case 0x1: + abJ = Cesium['Cartesian3']['fromRadiansArrayHeights'](abJ)[0x0]; + break; + case 0x2: + abJ = Cesium['Cartesian3']['fromDegreesArrayHeights'](abJ)[0x0]; + break; + case 0x3: + abJ = Cesium['Cartesian3']['fromArray'](abJ); + break; + default: + throw doj(0xb5); + } + } + if (!Cesium['defined'](abK['color'])) { + abK['color'] = Cesium['Color']['YELLOW']; + } + if (typeof abK['color'] == 's' + doo(0x282) + 'g' && abK[dol(0x615)][dol(0x616)] == String) { + abK['color'] = Cesium['Color']['fromCssColorString'](abK['color']); + } + if (Cesium['defined'](abK['width']) && !Cesium['defined'](abK['size'])) { + abK['size'] = abK['width']; + } + if (!Cesium['defined'](abK[dol(0x617)])) { + abK[dol(0x618)] = !![]; + } + cs['pointPrimitives']['add']({ + 'id': abM, + 'pixelSize': abK['size'] ? abK['size'] : 0x5, + 'color': abK['color'], + 'position': abJ, + 'disableDepthTestDistance': abK['alwaysVisible'] ? Number['POSITIVE_INFINITY'] : 0x0 + }); + cs['viewer']['scene']['requestRender'](); + return abM; + } catch (abN) { + aCe('错' + doo(0x283) + ':' + abN); + } + }, + 'removePoint': function(abO) { + try { + + if (Cesium['defined'](cs['pointPrimitives'])) { + if (abO === 0x0) { + cs['pointPrimitives']['removeAll'](); + } else { + var abP = cs['pointPrimitives']['length']; + for (var abQ = 0x0; abQ < abP; ++abQ) { + var abR = cs['pointPrimitives']['get'](abQ); + if (abR['id'] === abO) + cs['pointPrimitives']['remove'](abR); + } + } + cs['viewer']['scene']['requestRender'](); + } + } catch (abS) { + aCe('错' + doo(0x284) + ':' + abS); + } + }, + 'drawLine': function(abT, abU, bb) { + try { + + if (!Cesium['defined'](cs[dol(0x619)])) + cs[dol(0x61a)] = {}; + if (!Cesium['defined'](cs[dol(0x61b)][abT])) { + cs['_entitiesMap'][abT] = { + 'id': abT, + 'activeShapePoints': [], + 'activeShape': undefined, + 'positionType': isNaN(bb['positionType']) ? 0x1 : bb[dol(0x61c)], + 'acquisitionDensity': bb['acquisitionDensity'] || 0.5, + 'lineColor': bb['lineColor'] || Cesium['Color']['fromRandom']({ + 'minimumRed': 0.75, + 'minimumGreen': 0.05, + 'minimumBlue': 0.05, + 'alpha': 0x1 + }), + 'lineWidth': bb['lineWidth'] || 0x3, + 'dash': { + 'isDash': Cesium['defined'](bb['dash']) && bb['dash']['isDash'] ? bb['dash']['isDash'] : ![], + 'gapColor': Cesium['defined'](bb['dash']) && bb['dash']['isDash'] && Cesium['defined'](bb['dash']['gapColor']) ? bb['dash']['gapColor'] : Cesium['Color']['TRANSPARENT'], + 'dashLength': Cesium['defined'](bb['dash']) && bb['dash']['isDash'] && !isNaN(bb['dash']['dashLength']) ? bb[dol(0x61d)]['dashLength'] : 0x10, + 'dashPattern': Cesium['defined'](bb['dash']) && bb['dash']['isDash'] && Cesium[dol(0x61e)](bb['dash']['dashPattern']) ? bb['dash']['dashPattern'] : 0xff + }, + 'perspectiveFollowing': { + 'isPerspectiveFollowing': Cesium['defined'](bb['perspectiveFollowing']) && bb['perspectiveFollowing']['isPerspectiveFollowing'] ? bb['perspectiveFollowing']['isPerspectiveFollowing'] : ![], + 'heading': Cesium[dol(0x61f)](bb['perspectiveFollowing']) && bb['perspectiveFollowing']['isPerspectiveFollowing'] && !isNaN(bb['perspectiveFollowing']['heading']) ? bb['perspectiveFollowing']['heading'] : -0x3c, + 'pitch': Cesium['defined'](bb['perspectiveFollowing']) && bb['perspectiveFollowing']['isPerspectiveFollowing'] && !isNaN(bb['perspectiveFollowing']['pitch']) ? bb['perspectiveFollowing'][dol(0x620)] : -0x14, + 'range': Cesium['defined'](bb['perspectiveFollowing']) && bb['perspectiveFollowing']['isPerspectiveFollowing'] && !isNaN(bb['perspectiveFollowing']['range']) ? bb[dol(0x621)]['range'] : 0xf + }, + 'altitudeOffset': !isNaN(bb['altitudeOffset']) ? bb['altitudeOffset'] : 0x0, + 'clampToGround': bb['clampToGround'] || ![], + 'isCallBack': Cesium['defaultValue'](bb['isCallBack'], !![]), + 'image': bb['image'], + 'bgColor': Cesium['defined'](bb[dol(0x622)]) && Cesium['Color']['fromCssColorString'](bb['bgColor']) ? Cesium['Color']['fromCssColorString'](bb['bgColor']) : Cesium['Color']['AQUAMARINE'], + 'foregroundColor': Cesium['defined'](bb['foregroundColor']) && Cesium['Color']['fromCssColorString'](bb['foregroundColor']) ? Cesium['Color']['fromCssColorString'](bb['foregroundColor']) : Cesium['Color'][dol(0x623)] + }; + } + var abW = function(abX, abY, abZ) { + var ac0 = cs['_entitiesMap'][abT][dol(0x624)]instanceof Cesium['Color'] ? cs['_entitiesMap'][abT]['lineColor'] : Cesium['Color']['fromCssColorString'](cs['_entitiesMap'][abT][dol(0x625)]); + var abU = abZ ? abX : abY; + if (abZ) { + return cs['viewer']['entities']['add']({ + 'id': cs['_entitiesMap'][abT]['id'], + 'polyline': { + 'positions': abU, + 'width': cs[dol(0x626)][abT]['lineWidth'], + 'material': Cesium['defined'](cs['_entitiesMap'][abT]['dash']) && cs['_entitiesMap'][abT]['dash']['isDash'] ? new Cesium['PolylineDashMaterialProperty']({ + 'color': ac0, + 'gapColor': cs[dol(0x627)][abT]['dash']['gapColor'] || Cesium['Color']['TRANSPARENT'], + 'dashLength': cs['_entitiesMap'][abT]['dash']['dashLength'] || 0x10, + 'dasdashPatternhLength': cs['_entitiesMap'][abT]['dash']['dashPattern'] || 0xff + }) : new Cesium['ColorMaterialProperty'](ac0) + } + }); + } else { + var ac2 = cs['viewer']['scene']['primitives']['add'](new Cesium['PolylineCollection']()); + cs[dol(0x628)]['scene']['primitives']['raiseToTop'](ac2); + ac2[dol(0x629)]({ + 'positions': abU, + 'width': cs['_entitiesMap'][abT]['lineWidth'], + 'material': new Cesium['Material']({ + 'fabric': { + 'type': doj(0xb6), + 'uniforms': { + 'img': cs['_entitiesMap'][abT]['image'], + 'bgColor': cs['_entitiesMap'][abT]['bgColor'], + 'foregroundColor': cs['_entitiesMap'][abT]['foregroundColor'] + }, + 'source': '\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20czm_getMaterial(czm_materialInput\x20materialInput)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成默认的基础材质\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20st\x20=\x20materialInput.st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20定义动画持续时间,从0到1\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20durationTime\x20=\x2050.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20获取当前帧数,fract(x)\x20返回x的小数部分\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20time\x20=\x20fract(czm_frameNumber\x20/\x20(60.0\x20*\x20durationTime));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20根据uv采样颜色\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(img,vec2(fract(st.s\x20-\x20time),st.t));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(color.a<1.0)\x20{\x20//\x20debug\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color=\x20bgColor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}else{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(foregroundColor.a>0.0){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color=\x20foregroundColor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.alpha\x20=\x20color.a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.diffuse\x20=\x20color.rgb;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20material;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20' + } + }) + }); + return ac2; + } + }; + var ac3 = function(abT, ac5) { + if (Cesium['defined'](ac5)) { + if (!Cesium['defined'](cs['_entitiesMap'][abT][dol(0x62a)])) { + cs['_entitiesMap'][abT][dol(0x62b)] = []; + } + var ac6 = undefined; + if (cs['_entitiesMap'][abT]['activeShapePoints']['length'] === 0x0) { + if (Array['isArray'](ac5)) { + cs['_entitiesMap'][abT]['activeShapePoints'] = cs[dol(0x62c)][abT]['activeShapePoints']['concat'](ac5); + cs['_entitiesMap'][abT]['lastPoint'] = ac5[ac5['length'] - 0x1]; + ac6 = ac5[ac5['length'] - 0x1]; + } else { + cs['_entitiesMap'][abT]['activeShapePoints']['push'](ac5); + cs['_entitiesMap'][abT][dol(0x62d)] = ac5; + ac6 = ac5; + } + var ac7 = new Cesium['CallbackProperty'](function() { + return cs['_entitiesMap'][abT] ? cs['_entitiesMap'][abT]['activeShapePoints'] : []; + } + ,![]); + cs['_entitiesMap'][abT]['activeShape'] = abW(ac7, cs['_entitiesMap'][abT]['activeShapePoints'], cs['_entitiesMap'][abT]['isCallBack']); + } else { + if (Array['isArray'](ac5)) { + ac6 = ac5[ac5['length'] - 0x1]; + } else { + ac6 = ac5; + } + var ac8 = Cesium['Cartesian3']['distance'](cs['_entitiesMap'][abT]['lastPoint'], ac6); + if (ac8 < cs['_entitiesMap'][abT]['acquisitionDensity']) {} else { + cs['_entitiesMap'][abT]['lastPoint'] = ac6['clone'](); + } + if (Array['isArray'](ac5)) { + cs['_entitiesMap'][abT]['activeShapePoints'] = cs['_entitiesMap'][abT]['activeShapePoints'][dol(0x62e)](ac5); + } else { + cs['_entitiesMap'][abT]['activeShapePoints']['push'](ac5); + } + } + } + }; + var ac9 = []; + if (cs['_entitiesMap'][abT]['positionType'] == 0x1) { + if (abU instanceof Cesium['Cartesian3']) { + abU = [abU]; + } else if (Array['isArray'](abU) && !(abU[0x0]instanceof Cesium['Cartesian3'])) { + abU = Cesium['Cartesian3'][dol(0x62f)](abU); + } + for (var aca = 0x0; aca < abU['length']; aca++) { + var acb = cs['Public']['VecToRadians']([abU[aca]['x'], abU[aca]['y'], abU[aca]['z']]); + ac9[dol(0x630)](cs['Public'][dol(0x631)](acb[0x1], acb[0x0], acb[0x2] + cs['_entitiesMap'][abT][dol(0x632)])); + } + } else if (cs['_entitiesMap'][abT]['positionType'] == 0x0) { + if (Array['isArray'](abU) && abU['length'] > 0x0 && abU['length'] % 0x3 == 0x0) { + for (var aca = 0x0; aca < abU[dol(0x633)]; aca += 0x3) { + ac9['push'](cs['Public']['CartographicToCartesian'](abU[aca], abU[aca + 0x1], abU[aca + 0x2] + cs['_entitiesMap'][abT]['altitudeOffset'])); + } + } + } + if (ac9['length'] > 0x0) { + ac3(abT, ac9); + if (Cesium['defined'](cs['_entitiesMap'][abT]['perspectiveFollowing']) && cs['_entitiesMap'][abT][dol(0x634)]['isPerspectiveFollowing']) { + cs['viewer'][dol(0x635)]['lookAt'](ac9[ac9['length'] - 0x1], new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](cs['_entitiesMap'][abT]['perspectiveFollowing']['heading']),Cesium['Math']['toRadians'](cs['_entitiesMap'][abT]['perspectiveFollowing']['pitch']),cs['_entitiesMap'][abT]['perspectiveFollowing']['range'])); + cs['viewer']['camera']['lookAtTransform'](Cesium['Matrix4']['IDENTITY']); + } + } + cs['viewer']['scene']['requestRender'](); + } catch (acd) { + aCe('错' + doo(0x285) + ':' + acd); + } + }, + 'removeLine': function(ace) { + try { + + if (Cesium[dol(0x636)](cs['_entitiesMap']) && Cesium['defined'](cs['_entitiesMap'][ace]) && Cesium[dol(0x637)](cs['_entitiesMap'][ace]['activeShape'])) { + if (cs['_entitiesMap'][ace]['isCallBack']) { + cs['viewer']['scene']['primitives']['remove'](cs['_entitiesMap'][ace]['activeShape']); + } else { + cs['viewer']['entities']['remove'](cs['_entitiesMap'][ace]['activeShape']); + } + cs['viewer']['entities']['removeById'](ace); + delete cs['_entitiesMap'][ace]; + } + cs['viewer']['scene']['requestRender'](); + } catch (acf) { + aCe('错' + doo(0x286) + ':' + acf); + } + }, + 'drawPlane': function(acg, ach, aci, acj, ack, acl) { + try { + + if (acl != undefined) { + cs['viewer']['entities']['add']({ + 'id': ach, + 'name': ach, + 'position': acg, + 'plane': { + 'plane': new Cesium[(dol(0x638))](ack == undefined ? Cesium['Cartesian3']['UNIT_Z'] : ack,0x0), + 'dimensions': new Cesium['Cartesian2'](aci,acj), + 'material': Cesium['Color'][dol(0x639)]['withAlpha'](0.01), + 'distanceDisplayCondition': acl == undefined ? null : acl + } + }); + } else { + cs['viewer']['entities']['add']({ + 'id': ach, + 'name': ach, + 'position': acg, + 'plane': { + 'plane': new Cesium['Plane'](ack == undefined ? Cesium['Cartesian3']['UNIT_Z'] : ack,0x0), + 'dimensions': new Cesium[(dol(0x63a))](aci,acj), + 'material': Cesium['Color']['TRANSPARENT']['withAlpha'](0.01) + } + }); + } + cs['viewer']['scene']['requestRender'](); + } catch (acm) { + aCe('错' + doo(0x287) + ':' + acm); + } + }, + 'removePlane': function(acn) { + try { + + var aco = cs['viewer']['entities']['getById'](acn); + if (aco != undefined) { + cs['viewer']['entities']['remove'](aco); + } + cs['viewer']['scene']['requestRender'](); + } catch (acp) { + aCe('错' + doo(0x288) + ':' + acp); + } + }, + 'drawPolygon'(bb) { + try { + var acr; + var acs = bb['color'] ? bb['color']instanceof Cesium[dol(0x63b)] ? bb['color'] : Cesium['Color']['fromCssColorString'](bb['color']) : Cesium['Color']['WHITE']; + bb['transparent'] = Cesium['defaultValue'](bb['transparent'], ![]); + if (bb['transparent'] && Cesium['defined'](bb['colorAlpha']) && Number(bb['colorAlpha']) != NaN) { + acs = acs['withAlpha'](bb['colorAlpha']); + } + if (Cesium['defined'](bb['image'])) { + acr = new Cesium['ImageMaterialProperty']({ + 'image': bb['image'], + 'color': Cesium['Color']['fromCssColorString']('r' + doo(0x289) + ',' + acs['alpha'] + ')'), + 'repeat': new Cesium[(dol(0x63c))](Cesium['defaultValue'](bb['repeatX'], 0x1),Cesium['defaultValue'](bb[dol(0x63d)], 0x1)), + 'transparent': bb['transparent'] + }); + } else { + acr = new Cesium['ColorMaterialProperty'](acs); + } + var act = cs['viewer']['entities']['add']({ + 'id': bb['id'], + 'name': bb['id'], + 'polygon': { + 'hierarchy': Cesium['Cartesian3']['fromRadiansArrayHeights'](bb['positions']), + 'perPositionHeight': !![], + 'outline': Cesium['defaultValue'](bb['outline'], ![]), + 'outlineColor': bb['outlineColor'] ? bb['outlineColor']instanceof Cesium['Color'] ? bb['outlineColor'] : Cesium['Color']['fromCssColorString'](bb['outlineColor']) : Cesium['Color'][dol(0x63e)], + 'outlineWidth': Cesium['defaultValue'](bb['outlineWidth'], 0x1), + 'material': acr + } + }); + cs['viewer']['scene']['requestRender'](); + return act; + } catch (acu) { + aCe('错' + doo(0x28a) + ':' + acu); + } + }, + 'removePolygon': function(acv) { + try { + + var acw = cs['viewer']['entities']['getById'](acv); + if (acw != undefined) { + cs['viewer']['entities']['remove'](acw); + } + cs['viewer']['scene']['requestRender'](); + } catch (acx) { + aCe('错' + doo(0x28b) + ':' + acx); + } + }, + 'createEllipse': function(acy, acz, acA) { + + cs['viewer']['entities']['add']({ + 'position': acy, + 'id': acz, + 'ellipse': { + 'show': !![], + 'semiMinorAxis': acA, + 'semiMajorAxis': acA, + 'height': 0x1, + 'material': Cesium['Color']['RED'] + } + }); + cs[dol(0x63f)]['scene']['requestRender'](); + }, + 'SetOutLineScaleVal': function(acB) { + cs['defaults']['outlineScaleVal'] = acB; + }, + 'SetPOSMap': function(acC, acD) { + + cs['POSMAP']['set'](acC, acD); + }, + 'getEditState': function() { + + return cs[dol(0x640)]; + }, + 'setEditState': function() { + + cs[dol(0x641)] = !![]; + }, + 'setVertexAdsorption': function(acE) { + + cs['vertexAdsorption'] = acE; + }, + 'setBrightness': function(acF, acG) { + if (!isEmpty(acG)) { + + if (cs['m_model']['get'](acG['toString']()) === undefined) { + throw doj(0xb7); + } + cs['tileset'] = cs['m_model']['get'](acG['toString']()); + cs['tileset']['lightColor'] = new Cesium['Cartesian3'](Number(acF),Number(acF),Number(acF)); + } else { + var bn = cs['viewer'][dol(0x642)]['postProcessStages']; + cs['viewer']['scene']['brightness'] = cs['viewer']['scene']['brightness'] || bn['add'](Cesium['PostProcessStageLibrary']['createBrightnessStage']()); + cs['viewer']['scene']['brightness']['enabled'] = !![]; + cs['viewer']['scene']['brightness']['uniforms'][dol(0x643)] = Number(acF); + } + cs['viewer'][dol(0x644)][dol(0x645)](); + }, + 'setSceneLight': function(acI, acJ) { + + acI = acI || 0x1; + var bn = cs[dol(0x646)]['scene']['postProcessStages']; + cs['viewer']['scene']['brightness'] = cs['viewer']['scene']['brightness'] || bn['add'](Cesium[dol(0x647)]['createBrightnessStage']()); + cs[dol(0x648)]['scene']['brightness']['enabled'] = !![]; + cs['viewer']['scene']['brightness']['uniforms']['brightness'] = Number(acI); + var acL = cs['viewer']; + if (acJ) { + if (!cs['preRender']) { + cs[dol(0x649)] = function(acM, acN) { + acL['scene']['light'][dol(0x64a)] = Cesium['Cartesian3']['clone'](acL['scene']['camera']['directionWC'], acL['scene'][dol(0x64b)][dol(0x64c)]); + } + ; + } + acL['scene']['light'] = new Cesium['DirectionalLight']({ + 'direction': acL['scene']['camera']['directionWC'] + }); + acL[dol(0x64d)]['preRender'][dol(0x64e)](cs['preRender']); + } else { + acL['scene']['preRender']['removeEventListener'](cs['preRender']); + acL['scene']['light'] = new Cesium['SunLight']({ + 'color': Cesium['Color']['WHITE'], + 'intensity': 0x2 + }); + cs['preRender'] = void 0x0; + delete cs['preRender']; + } + cs['viewer']['scene']['requestRender'](); + }, + 'setSunlightState': function(acO) { + + cs[dol(0x64f)]['scene']['globe'][dol(0x650)] = acO; + cs['viewer']['shadows'] = acO; + cs['viewer']['scene']['requestRender'](); + }, + 'setSunshineDuration': function(acP) { + var acQ = new Date(); + var acR = acQ['getFullYear'](); + var acS = acQ['getMonth']() + 0x1; + var acT = acQ['getDate'](); + var acU = new Date('' + acR + '/' + acS + '/' + acT + '\x20' + acP + ''); + var acV = Cesium['JulianDate']['fromDate'](acU); + cs[dol(0x651)]['clockViewModel']['currentTime'] = acV; + }, + 'setGisState': function(acW, acX) { + + if (!isEmpty(acX)) { + cs['defaults']['bgcolor'] = acX instanceof Cesium['Color'] ? acX : Cesium['Color']['fromCssColorString'](acX); + cs['viewer']['scene']['backgroundColor'] = cs[dol(0x652)]['bgcolor']; + } + cs['viewer']['scene']['globe']['show'] = acW; + cs['viewer']['scene']['skyAtmosphere']['show'] = acW; + cs['viewer']['scene']['skyBox']['show'] = acW; + cs['defaults']['openearth'] = acW; + cs[dol(0x653)]['terrainProvider'] = new Cesium['EllipsoidTerrainProvider']({}); + if (cs['viewer']['_baseLayerPicker'] == undefined) { + const acY = document['getElementsByClassName']('c' + doo(0x28c) + 'r')[0x0]; + var acZ = document['getElementsByClassName'](doj(0xb8))[0x0]; + if (acZ == undefined) { + acZ = document['createElement'](doh(0x3d)); + acZ['className'] = doj(0xb9); + acY['appendChild'](acZ); + } + let ad0; + let ad1; + const ad2 = Cesium['createDefaultImageryProviderViewModels'](); + const ad3 = Cesium['createDefaultTerrainProviderViewModels'](); + ad0 = new Cesium['BaseLayerPicker'](acZ,{ + 'globe': cs['viewer']['scene']['globe'], + 'imageryProviderViewModels': ad2, + 'selectedImageryProviderViewModel': undefined, + 'terrainProviderViewModels': ad3, + 'selectedTerrainProviderViewModel': undefined + }); + const ad4 = acZ['getElementsByClassName'](doj(0xba)); + ad1 = ad4[0x0]; + cs['viewer']['_baseLayerPicker'] = ad0; + cs['viewer']['_baseLayerPickerDropDown'] = ad1; + } + cs['defaults']['openterrain'] = ![]; + if (acW) { + if (cs['defaults']['mapbox']) { + cs['viewer']['baseLayerPicker']['_container'][dol(0x654)]['display'] = 'i' + doo(0x28d) + 'k'; + } + if (cs['defaults']['searchbox']) { + cs['viewer']['geocoder']['_container']['style']['display'] = 'i' + doo(0x28e) + 'k'; + } + cs['ImageryProvider'] = new ImageryProvider(cs); + if (!isEmpty(cs['defaults']['imageryprovider'])) { + if (!isEmpty(cs['ImageryProvider'])) { + var ct = cs['ImageryProvider']['getImagerys'](); + if (ct['has'](cs['defaults'][dol(0x655)])) { + cs['viewer']['baseLayerPicker']['viewModel']['selectedImagery'] = ct['get'](cs['defaults']['imageryprovider']); + } + } + } + } else { + cs['viewer']['baseLayerPicker']['_container']['style']['display'] = 'n' + doo(0x28f) + 'e'; + cs['viewer'][dol(0x656)][dol(0x657)]['style']['display'] = 'n' + doo(0x290) + 'e'; + } + cs['viewer']['scene']['requestRender'](); + return 0x0; + }, + 'clearScene': function() { + try { + + const ad6 = cs['viewer'][dol(0x658)]['context']['_gl']['getExtension']('W' + doo(0x291) + 't'); + if (ad6) + ad6['loseContext'](); + cs['viewer']['_dataSourceCollection']['removeAll'](!![]); + var ad7 = cs[dol(0x659)]['scene']['primitives']['_primitives']; + for (var ad8 = 0x0; ad8 < ad7['length']; ad8++) { + if (ad7[ad8] !== cs['viewer']['_dataSourceDisplay']['_primitives']) { + cs['viewer']['scene']['primitives']['remove'](ad7[ad8]); + ad8--; + } + } + cs[dol(0x65a)]['entities']['removeAll'](); + cs['tileset'] = undefined; + cs['m_model'] = new Map(); + cs['modelStyleMap'] = new Map(); + cs['modelShowMap'] = new Map(); + cs['pinBuilder'] = new Cesium['PinBuilder'](); + cs[dol(0x65b)] = undefined; + cs['labels'] = undefined; + cs['roaming'] = []; + cs['clippingPlanes'] = undefined; + cs['planeEntities'] = []; + cs['routeDataSource'] = new Map(); + cs['timeListener'] = undefined; + cs['clippingPlaneMapArray'] = {}; + cs['clippingPlaneEntitiesMap'] = {}; + cs['GLE_ClipPlansBoxSizeMap'] = {}; + cs['GLE_ClipPlansBoxCenterMap'] = {}; + cs['clippingPlaneMap_mulActorIds'] = {}; + cs['Camera_ImmersionRoaming'] = undefined; + cs['Effect_ParticleSystem'] = undefined; + cs['CustomLabel'] = undefined; + cs['InspectionTrack'] = undefined; + cs['tagName'] = undefined; + cs['POSMAP'] = new Map(); + cs['underground'] = undefined; + cs['cancelEntityArr'] = []; + cs['WaterMark'] = []; + cs['Label']['removeBalloon'](0x0); + cs['Label']['removeAllCustomHtml'](); + cs['viewer']['scene']['requestRender'](); + if (cs['defaults']['editmode']) { + cs['Public']['clearEditScene'](); + } + return 0x0; + } catch (ad9) { + aCe('错' + doo(0x292) + ':' + ad9); + return -0x1; + } + }, + 'destroyScene': function() { + try { + + const ada = cs['viewer']['scene']['context'][dol(0x65c)]['getExtension']('W' + doo(0x293) + 't'); + if (ada) + ada['loseContext'](); + cs['viewer']['scene']['requestRender'](); + cs['viewer'] && cs[dol(0x65d)]['destroy'](); + return 0x0; + } catch (adb) { + return -0x1; + aCe('错' + doo(0x294) + ':' + adb); + } + }, + 'getSceneStatus': function() { + + if (cs['defaults']['openearth'] && cs['viewer']['scene']['globe']['show']) { + return 0x0; + } else { + return 0x1; + } + }, + 'addEarthClip': function(adc, ade) { + + if (!cs['earthClip']) { + cs['earthClip'] = new globeMultiClip(cs); + } + cs['earthClip']['add'](adc, ade); + }, + 'closeEarthClip': function() { + + if (!cs['earthClip']) { + cs['earthClip'] = new globeMultiClip(cs); + } + cs['earthClip']['close'](); + }, + 'addEarthFlatten': function(bb) { + try { + + if (Cesium['defined'](bb[dol(0x65e)]) && bb['positions']['length'] > 0x2) { + var adg = []; + for (var adh = 0x0; adh < bb['positions']['length']; adh++) { + var adi = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][adh], cs['viewer']); + adg['push'](adi); + } + var adj = { + 'positions': adg, + 'autoFlatten': Cesium['defined'](bb['autoFlatten']) ? bb['autoFlatten'] : ![], + 'height': Cesium['defined'](bb['height']) ? bb['height'] : bb['positions'][0x0][0x2] + }; + var adk = Cesium['createGuid'](); + cs['earthFlatten']['set'](Cesium['defined'](bb['id']) ? bb['id'] : adk, adj); + if (cs['earthFlatten']['size'] > 0x0) { + var adl = Cesium['ContextLimits']['maximumTextureSize']; + var adm = new Cesium['Cartesian2'](); + var adn = 0x0; + cs['earthFlatten']['forEach'](function(ado, adp) { + adn += 0x1; + adn += ado['positions'][dol(0x65f)]; + }); + adm['x'] = Math['min'](adn, adl); + adm['y'] = Math['ceil'](adn / adm['x']); + if (!Cesium['defined'](cs['viewer']['scene'][dol(0x660)]['_surface']['_tileProvider'][dol(0x661)])) + cs['viewer']['scene']['globe']['_surface'][dol(0x662)]['_flattenCount'] = new Cesium['Cartesian3'](); + cs['viewer'][dol(0x663)]['globe']['_surface']['_tileProvider']['_flattenCount']['x'] = adm['x']; + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount']['y'] = adm['y']; + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount']['z'] = cs['earthFlatten']['size']; + var adq = new Float32Array(0x4 * adm['x'] * adm['y']); + let adr = 0x0; + cs['earthFlatten']['forEach'](function(ads, adt) { + adq[adr + 0x0] = ads['positions']['length']; + adq[adr + 0x1] = ads['height']; + adq[adr + 0x2] = ads['autoFlatten'] ? 0x1 : 0x0; + adq[adr + 0x3] = 0x0; + for (let adu = 0x0; adu < ads['positions']['length']; adu++) { + adq[adr + adu * 0x4 + 0x4] = ads[dol(0x664)][adu]['x']; + adq[adr + adu * 0x4 + 0x5] = ads[dol(0x665)][adu]['y']; + adq[adr + adu * 0x4 + 0x6] = ads['positions'][adu]['z']; + adq[adr + adu * 0x4 + 0x7] = 0x0; + } + adr += (ads['positions']['length'] + 0x1) * 0x4; + }); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': adm['x'], + 'height': adm['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': adq + } + }); + } + cs[dol(0x666)]['scene']['requestRender'](); + return adk; + } + } catch (adv) { + throw adv; + } + }, + 'removeEarthFlatten': function(adw) { + + if (Cesium['defined'](adw)) { + cs['earthFlatten']['delete'](adw); + if (cs['earthFlatten']['size'] > 0x0) { + var adx = Cesium['ContextLimits']['maximumTextureSize']; + var ady = new Cesium['Cartesian2'](); + var adz = 0x0; + cs['earthFlatten']['forEach'](function(adA, adB) { + adz += 0x1; + adz += adA['positions'][dol(0x667)]; + }); + ady['x'] = Math['min'](adz, adx); + ady['y'] = Math['ceil'](adz / ady['x']); + if (!Cesium['defined'](cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount'])) + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount'] = new Cesium[(dol(0x668))](); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount']['x'] = ady['x']; + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount']['y'] = ady['y']; + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenCount']['z'] = cs['earthFlatten']['size']; + var adC = new Float32Array(0x4 * ady['x'] * ady['y']); + let adD = 0x0; + cs['earthFlatten']['forEach'](function(adE, adF) { + adC[adD + 0x0] = adE[dol(0x669)]['length']; + adC[adD + 0x1] = adE['height']; + adC[adD + 0x2] = adE['autoFlatten'] ? 0x1 : 0x0; + adC[adD + 0x3] = 0x0; + for (let adG = 0x0; adG < adE['positions'][dol(0x66a)]; adG++) { + adC[adD + adG * 0x4 + 0x4] = adE['positions'][adG]['x']; + adC[adD + adG * 0x4 + 0x5] = adE['positions'][adG]['y']; + adC[adD + adG * 0x4 + 0x6] = adE['positions'][adG]['z']; + adC[adD + adG * 0x4 + 0x7] = 0x0; + } + adD += (adE['positions']['length'] + 0x1) * 0x4; + }); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': ady['x'], + 'height': ady['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': adC + } + }); + } else + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenData'] = undefined; + } else { + if (cs['earthFlatten']['size'] > 0x0) { + cs['earthFlatten']['clear'](); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_flattenData'] = undefined; + } + } + cs['viewer']['scene']['requestRender'](); + }, + 'addEarthCutPart': function(bb) { + try { + + if (Cesium['defined'](bb['positions']) && bb['positions']['length'] > 0x2) { + var adI = []; + for (var adJ = 0x0; adJ < bb['positions']['length']; adJ++) { + var adK = cs['funcPublic']['inputRadianToCartesian3'](bb['positions'][adJ], cs['viewer']); + adI[dol(0x66b)](adK); + } + var adL = { + 'positions': adI, + 'inverse': Cesium['defined'](bb['inverse']) ? bb['inverse'] : ![] + }; + var adM = Cesium['createGuid'](); + cs['earthClipping']['set'](Cesium['defined'](bb['id']) ? bb['id'] : adM, adL); + if (cs['earthClipping']['size'] > 0x0) { + var adN = Cesium['ContextLimits']['maximumTextureSize']; + var adO = new Cesium['Cartesian2'](); + var adP = 0x0; + cs['earthClipping']['forEach'](function(adQ, adR) { + adP += 0x1; + adP += adQ['positions']['length']; + }); + adO['x'] = Math['min'](adP, adN); + adO['y'] = Math['ceil'](adP / adO['x']); + if (!Cesium['defined'](cs['viewer']['scene']['globe']['_surface']['_tileProvider'][dol(0x66c)])) + cs['viewer']['scene']['globe']['_surface']['_tileProvider'][dol(0x66d)] = new Cesium['Cartesian3'](); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingCount']['x'] = adO['x']; + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingCount']['y'] = adO['y']; + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingCount']['z'] = cs['earthClipping']['size']; + var adS = new Float32Array(0x4 * adO['x'] * adO['y']); + let adT = 0x0; + cs['earthClipping'][dol(0x66e)](function(adU, adV) { + adS[adT + 0x0] = adU['positions']['length']; + adS[adT + 0x1] = adU['inverse'] ? 0x1 : 0x0; + adS[adT + 0x2] = 0x0; + adS[adT + 0x3] = 0x0; + for (let adW = 0x0; adW < adU['positions']['length']; adW++) { + adS[adT + adW * 0x4 + 0x4] = adU['positions'][adW]['x']; + adS[adT + adW * 0x4 + 0x5] = adU[dol(0x66f)][adW]['y']; + adS[adT + adW * 0x4 + 0x6] = adU[dol(0x670)][adW]['z']; + adS[adT + adW * 0x4 + 0x7] = 0x0; + } + adT += (adU[dol(0x671)]['length'] + 0x1) * 0x4; + }); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': adO['x'], + 'height': adO['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': adS + } + }); + } + cs['viewer']['scene']['requestRender'](); + return adM; + } + } catch (adX) { + throw adX; + } + }, + 'removeEarthCutPart': function(adY) { + + if (Cesium['defined'](adY)) { + cs['earthClipping']['delete'](adY); + if (cs['earthClipping']['size'] > 0x0) { + var adZ = Cesium[dol(0x672)]['maximumTextureSize']; + var ae0 = new Cesium['Cartesian2'](); + var ae1 = 0x0; + cs['earthClipping']['forEach'](function(ae2, ae3) { + ae1 += 0x1; + ae1 += ae2[dol(0x673)]['length']; + }); + ae0['x'] = Math['min'](ae1, adZ); + ae0['y'] = Math['ceil'](ae1 / ae0['x']); + if (!Cesium['defined'](cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingCount'])) + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingCount'] = new Cesium['Cartesian3'](); + cs['viewer']['scene']['globe']['_surface']['_tileProvider'][dol(0x674)]['x'] = ae0['x']; + cs[dol(0x675)]['scene']['globe']['_surface']['_tileProvider']['_clippingCount']['y'] = ae0['y']; + cs[dol(0x676)]['scene'][dol(0x677)][dol(0x678)][dol(0x679)]['_clippingCount']['z'] = cs['earthClipping'][dol(0x67a)]; + var ae4 = new Float32Array(0x4 * ae0['x'] * ae0['y']); + let ae5 = 0x0; + cs['earthClipping']['forEach'](function(ae6, ae7) { + ae4[ae5 + 0x0] = ae6['positions']['length']; + ae4[ae5 + 0x1] = ae6[dol(0x67b)] ? 0x1 : 0x0; + ae4[ae5 + 0x2] = 0x0; + ae4[ae5 + 0x3] = 0x0; + for (let ae8 = 0x0; ae8 < ae6['positions']['length']; ae8++) { + ae4[ae5 + ae8 * 0x4 + 0x4] = ae6['positions'][ae8]['x']; + ae4[ae5 + ae8 * 0x4 + 0x5] = ae6['positions'][ae8]['y']; + ae4[ae5 + ae8 * 0x4 + 0x6] = ae6['positions'][ae8]['z']; + ae4[ae5 + ae8 * 0x4 + 0x7] = 0x0; + } + ae5 += (ae6['positions'][dol(0x67c)] + 0x1) * 0x4; + }); + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingData'] = new Cesium['Texture']({ + 'context': cs['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': ae0['x'], + 'height': ae0['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': flattenData + } + }); + } else + cs['viewer']['scene']['globe']['_surface']['_tileProvider']['_clippingData'] = undefined; + } else { + if (cs['earthClipping']['size'] > 0x0) { + cs['earthClipping']['clear'](); + cs['viewer'][dol(0x67d)]['globe']['_surface']['_tileProvider']['_clippingData'] = undefined; + } + } + cs['viewer']['scene']['requestRender'](); + }, + 'setImageryProviderState': function(ae9) { + + if (cs['defaults']['openearth'] && cs['defaults']['sceneMode'] == Cesium['SceneMode']['SCENE3D']) { + if (!isEmpty(ae9)) { + cs['viewer'][dol(0x67e)]['removeAll'](); + cs[dol(0x67f)]['imageryprovider'] = ae9; + cs['ImageryProvider'] = new ImageryProvider(cs); + } else { + cs['viewer']['imageryLayers']['removeAll'](); + } + cs['viewer']['scene']['requestRender'](); + } + }, + 'addImageryProvider': function(aea, aeb, bb) { + + bb = extend({ + 'serverType': 0x0, + 'rectangle': [], + 'minimumLevel': 0x0, + 'maximumLevel': 0x15, + 'fileExtension': doh(0x3e), + 'srs': 0xf11, + 'flyto': ![] + }, bb); + var aed = undefined; + if (bb['rectangle']['length'] == 0x4) { + aed = Cesium['Rectangle']['fromRadians'](bb['rectangle'][0x0], bb['rectangle'][0x1], bb[dol(0x680)][0x2], bb['rectangle'][0x3]); + } + if (cs['defaults']['openearth'] && cs['defaults']['sceneMode'] == Cesium['SceneMode']['SCENE3D']) { + if (!isEmpty(aea)) { + if (aeb) { + cs['viewer']['imageryLayers']['removeAll'](); + } + var aee = aea; + if (!isEmpty(bb['requestHeaders'])) { + aee = new Cesium['Resource']({ + 'url': aea, + 'headers': bb['requestHeaders'] + }); + } + if (bb[dol(0x681)] == 0x0) { + var aef = cs['viewer']['imageryLayers']['addImageryProvider'](new Cesium['UrlTemplateImageryProvider']({ + 'url': aee, + 'tilingScheme': bb['srs'] == 0xf11 ? new Cesium['WebMercatorTilingScheme']() : new Cesium['GeographicTilingScheme'](), + 'rectangle': aed, + 'minimumLevel': bb['minimumLevel'], + 'maximumLevel': bb['maximumLevel'] + })); + cs['addImageryProviderArr']['set'](bb['id'], { + 'option': aef + }); + } else if (bb['serverType'] == 0x1) { + var aef = cs['viewer']['imageryLayers']['addImageryProvider'](new Cesium['TileMapServiceImageryProvider']({ + 'url': aee, + 'fileExtension': bb['fileExtension'], + 'tilingScheme': bb['srs'] == 0xf11 ? new Cesium['WebMercatorTilingScheme']() : new Cesium['GeographicTilingScheme'](), + 'rectangle': aed, + 'minimumLevel': bb['minimumLevel'], + 'maximumLevel': bb['maximumLevel'] + })); + cs[dol(0x682)]['set'](bb['id'], { + 'option': aef + }); + } else { + var aef = cs['viewer']['imageryLayers']['addImageryProvider'](new Cesium['SingleTileImageryProvider']({ + 'url': aee, + 'rectangle': aed + })); + cs['addImageryProviderArr']['set'](bb['id'], { + 'option': aef + }); + } + if (bb['flyto'] && !isEmpty(aed)) { + cs['viewer'][dol(0x683)]['flyTo']({ + 'destination': aed, + 'duration': 0x1, + 'orientation': { + 'heading': Cesium['Math']['toRadians'](0x0), + 'pitch': Cesium['Math']['toRadians'](-0x5a), + 'roll': 0x0 + } + }); + } + } + } + }, + 'removeImageryProvider': function(aei) { + var aej = cs['addImageryProviderArr']['get'](aei['toString']()); + if (aej == undefined) { + throw doj(0xbb); + } else { + cs[dol(0x684)]['delete'](aei); + cs['viewer']['imageryLayers']['remove'](aej['option']); + } + }, + 'setTerrainState': function(aek, ael) { + + if (cs['defaults']['openearth']) { + if (aek) { + if (!isEmpty(ael)) { + var aem = new Cesium['CesiumTerrainProvider']({ + 'url': ael + }); + cs['viewer']['scene']['terrainProvider'] = aem; + } else { + cs['viewer']['terrainProvider'] = new Cesium['CesiumTerrainProvider']({ + 'url': doj(0xbc), + 'requestWaterMask': !![], + 'requestVertexNormals': !![] + }); + } + } else { + cs['viewer']['terrainProvider'] = new Cesium['EllipsoidTerrainProvider']({}); + } + cs[dol(0x685)]['openterrain'] = aek; + cs['viewer']['scene']['requestRender'](); + return 0x0; + } + }, + 'openWorldTerrain': function() { + cs['viewer']['scene']['terrainProvider'] = Cesium['createWorldTerrain']({ + 'requestWaterMask': !![], + 'requestVertexNormals': !![] + }); + }, + 'showBoundingVolume': function(aen, aeo) { + + if (!isEmpty(aeo)) { + if (cs['m_model']['get'](aeo['toString']()) === undefined) { + throw doj(0xbd); + } + cs['tileset'] = cs['m_model']['get'](aeo['toString']()); + } + cs['tileset']['debugShowBoundingVolume'] = Boolean(aen); + cs['viewer']['scene']['requestRender'](); + }, + 'openColorizeTiles': function(aep, aeq) { + + if (!isEmpty(aeq)) { + if (cs['m_model']['get'](aeq['toString']()) === undefined) { + throw doj(0xbe); + } + cs['tileset'] = cs['m_model']['get'](aeq['toString']()); + } + cs['tileset'][dol(0x686)] = Boolean(aep); + cs['viewer']['scene'][dol(0x687)](); + }, + 'openWireframe': function(aer, aes) { + + if (!isEmpty(aes)) { + if (cs['m_model']['get'](aes['toString']()) === undefined) { + throw doj(0xbf); + } + cs['tileset'] = cs['m_model']['get'](aes['toString']()); + } + cs['tileset']['debugWireframe'] = Boolean(aer); + cs['viewer']['scene']['requestRender'](); + }, + 'clearBOX23line': function() { + + cs['funcPublic']['clearBOX23line'](cs['viewer']); + cs['viewer']['scene']['requestRender'](); + }, + 'AxisHelper': { + 'add': function(aet, aeu) { + + if (cs['m_model']['get'](aet['toString']()) === undefined) { + throw doj(0xc0); + } else { + if (!cs['AxisHelper']) { + cs['AxisHelper'] = new GLEAxisHelper(cs); + } + cs['AxisHelper']['setOriginAndShow'](aet, aeu); + } + }, + 'setVisible': function(aev, aew) { + + if (cs['m_model']['get'](aev['toString']()) === undefined) { + throw doj(0xc1); + } else { + if (cs['AxisHelper']) { + cs['AxisHelper']['setVisible'](aev, aew); + } + } + } + }, + 'setSkyBoxState': function(aex, aey) { + + cs['IsOpenSkyBox'] = aex; + if (cs[dol(0x688)]) { + cs[dol(0x689)]['scene']['skyAtmosphere']['show'] = cs['defaults']['openearth']; + cs['viewer']['scene']['skyBox']['show'] = !![]; + cs['viewer']['scene']['skyBox'] = GLESkyBox(cs, aey); + } else { + cs['viewer']['scene']['skyBox']['show'] = ![]; + } + cs['viewer']['scene'][dol(0x68a)](); + }, + 'getOrderState': function() { + return aA6; + }, + 'getAuthorizationInfo': function() { + if (cs['tileset'] != undefined) { + return cs['tileset']['authentication']; + } + }, + 'drawPointByCartesian3': function(aez, aeA, aeB) { + + var aeC = cs['viewer']['entities']['add']({ + 'position': aez, + 'point': { + 'pixelSize': aeB == undefined ? 0xa : aeB, + 'color': aeA == undefined ? Cesium['Color']['RED'] : aeA, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities']['push'](aeC); + }, + 'getHDRRenderState': function() { + + return cs['IsOpenHDR']; + }, + 'setHDRRenderState': function(aeD) { + + if (typeof aeD == 'b' + doo(0x295) + 'n') { + cs['IsOpenHDR'] = aeD; + } else { + aCe('参' + doo(0x296) + '!'); + } + }, + 'setminimumNdotL': function(aeE) { + + cs['minimumNdotL'] = aeE * 0x1; + }, + 'loadHeatMap': function(bb) { + var aeG = bb['data']; + if (aeG == null || aeG == undefined) { + aCe('数' + doo(0x297) + '!'); + } + var aeH = bb['title']; + if (aeH == null || aeH == undefined) { + aCe('图' + doo(0x298) + '!'); + } + var aeI = bb['id']; + if (aeI == null || aeI == undefined) { + aCe('图' + doo(0x299) + '!'); + } + var aeJ = bb['tipsStyle'] == undefined ? doj(0xc2) : bb['tipsStyle']; + var aeK = bb['step'] == undefined ? 2.5 : bb['step']; + var aeL = bb['gradient'] == undefined ? '' : bb['gradient']; + var aeM = bb['MAXTempColor'] == undefined ? aeG['max'] : bb['MAXTempColor']; + var aeN = bb['classificationType'] == undefined ? Cesium['ClassificationType']['CESIUM_3D_TILE'] : bb['classificationType']; + var aeO = bb['isFlyTo'] == undefined ? !![] : bb['isFlyTo']; + var aeP = []; + let aeQ = { + 'west': aeG['point1'][0x1], + 'east': aeG['point3'][0x1], + 'south': aeG['point1'][0x0], + 'north': aeG[dol(0x68b)][0x0] + }; + var aeR = new Cesium['Cartesian3']['fromDegrees'](aeG['point1'][0x1],aeG['point1'][0x0],aeG['point1'][0x2]); + var aeS = new Cesium['Cartesian3']['fromDegrees'](aeG['point2'][0x1],aeG['point2'][0x0],aeG['point2'][0x2]); + var aeT = new Cesium['Cartesian3']['fromDegrees'](aeG['point3'][0x1],aeG['point3'][0x0],aeG[dol(0x68c)][0x2]); + var aeU = new Cesium[(dol(0x68d))]['fromDegrees'](aeG['point4'][0x1],aeG['point4'][0x0],aeG['point4'][0x2]); + let aeV = [aeR, aeS, aeT, aeU]; + var aeW = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs[dol(0x68e)]['root']['transform'], aeW); + var aeX = new Cesium[(dol(0x68f))](); + var aeY = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](aeW, aeR, aeX); + Cesium['Matrix4']['multiplyByPoint'](aeW, aeT, aeY); + var aeZ = Cesium['Cartesian3']['midpoint'](aeX, aeY, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], aeZ, aeZ); + var af0 = Cesium['Cartesian3']['subtract'](aeY, aeX, new Cesium['Cartesian3']()); + cs['GLEHeatMap'] = CesiumHeatmap['create'](bj['viewer'], aeQ, { + 'id': aeI, + 'opacity': bb['opacity'] == undefined ? 0x1 : bb['opacity'], + 'blur': bb['blur'] == undefined ? 0x1 : bb['blur'], + 'radius': bb['radius'] == undefined ? 0x1e : bb['radius'], + 'polygonbounds': aeV, + 'polygonheight': aeG['point1'][0x2], + 'classificationType': aeN + }); + var af1 = aeG['min'] == 0x0 ? 0.00001 : aeG['min']; + var af2 = aeG['max']; + for (var af3 = 0x0; af3 < aeG['data']['M']['length']; af3++) { + var af4 = aeG['data']['M'][af3]; + var af5 = { + 'x': af4['v'][0x1], + 'y': af4['v'][0x0], + 'value': af4['s'] * 0x1 <= 0x0 ? 0.00001 : af4['s'] * 0x1 + }; + aeP['push'](af5); + } + cs['GLEHeatMap'][dol(0x690)](aeI, aeH, af1 == 0x0 ? 0.00001 : af1, af2, aeK, aeL, aeJ, aeM); + cs['GLEHeatMap']['setWGS84Data'](af1 == 0x0 ? 0.00001 : af1, af2, aeP); + if (aeO) { + var af6 = Cesium['Cartesian3']['magnitude'](new Cesium['Cartesian3'](Math['abs'](af0['x']),Math[dol(0x691)](af0['y']),Math['abs'](af0['z']))); + var af7 = new Cesium['BoundingSphere'](aeZ,af6); + cs['viewer']['camera']['flyToBoundingSphere'](af7, { + 'duration': 0.5, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](0x5a),Cesium['Math']['toRadians'](-0x3c),af6 * 2.5) + }); + } + }, + 'removeHeatMap': function(af8) { + cs[dol(0x692)]['removeColorPalette'](af8); + cs['GLEHeatMap']['remove'](af8); + }, + 'initWindTrack': function() { + + if (!Cesium['defined'](cs['GLEWindTrack'])) { + cs['GLEWindTrack'] = new GLEWindTrack(cs['viewer'],cs); + } + cs[dol(0x693)]['scene']['requestRender'](); + }, + 'initWindSlicing': function() { + + if (!Cesium['defined'](cs['GLEWindSlicing'])) { + cs['GLEWindSlicing'] = new GLEWindSlicing(cs['viewer'],cs); + } + cs['viewer']['scene']['requestRender'](); + }, + 'initWindProfile': function() { + + if (!Cesium['defined'](cs['GLEWindProfile'])) { + cs[dol(0x694)] = new WindProfile(cs['viewer'],cs); + } + cs['viewer']['scene']['requestRender'](); + }, + 'initModelSegmentation': function() { + + if (!Cesium['defined'](cs['GLEModelSegmentation'])) { + cs['GLEModelSegmentation'] = new ModelSegmentation(cs['viewer'],cs); + } + cs['viewer'][dol(0x695)]['requestRender'](); + }, + 'removeColorPalette': function(af9) { + + var afa = document['getElementById']('c' + doo(0x29a) + '_' + af9); + if (afa) { + afa['parentNode']['removeChild'](afa); + } + }, + 'initPaintingRoad': function() { + + if (!Cesium['defined'](cs[dol(0x696)])) { + cs['GLEPaintingRoad'] = new PaintingRoad(cs['viewer'],cs); + } + cs['viewer']['scene']['requestRender'](); + }, + 'setModelRotationCenter': function(afb, afc) { + ci = afb; + cj = afc; + }, + 'getModelRotationCenter': function() { + return ci; + }, + 'drawLineByDirectionXY': function(afd, afe, aff, afg) { + var afh = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], afh); + var afi = Cesium['Matrix4']['multiplyByPoint'](afh, afe, new Cesium['Cartesian3']()); + var afj = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](afi, afj); + afj['x'] += aff['x'] * afg; + afj['y'] += aff['y'] * afg; + var afk = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], afj, afk); + var afl = cs['viewer']['entities']['getById'](afd); + if (afl != undefined) { + cs['viewer']['entities']['remove'](afl); + } + cs['viewer']['entities']['add']({ + 'id': afd, + 'polyline': { + 'show': !![], + 'positions': [afe, afk], + 'arcType': Cesium['ArcType']['NONE'], + 'material': new Cesium['PolylineArrowMaterialProperty'](Cesium['Color']['RED']), + 'width': 0xa + } + }); + return [afe, afk]; + }, + 'drawLineByDirectionXYZ': function(afm, afn, afo, afp, afq, afr) { + var afs = new Cesium['Matrix4'](); + Cesium[dol(0x697)]['inverse'](cs[dol(0x698)]['root']['transform'], afs); + var aft = Cesium['Matrix4']['multiplyByPoint'](afs, afn, new Cesium['Cartesian3']()); + var afu = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](aft, afu); + afu['x'] += afo['x'] * afp; + afu['y'] += afo['y'] * afp; + afu['z'] += afo['z'] * afp; + var afv = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](cs[dol(0x699)]['root']['transform'], afu, afv); + var afw = cs['viewer']['entities']['getById'](afm); + if (afw != undefined) { + cs['viewer']['entities']['remove'](afw); + } + cs[dol(0x69a)]['entities']['add']({ + 'id': afm, + 'polyline': { + 'show': !![], + 'positions': [afn, afv], + 'arcType': Cesium['ArcType']['NONE'], + 'material': new Cesium['PolylineArrowMaterialProperty'](afq == undefined ? Cesium['Color']['YELLOW'] : afq), + 'width': afr == undefined ? 0xa : afr + } + }); + return [afn, afv]; + }, + 'getDirectionByAngle': function(afx, afy, afz, afA, afB) { + var afC = new Cesium[(dol(0x69b))](afz['x'],afz['y'],0x0); + afC = Cesium['Cartesian3']['normalize'](afC, afC); + var afD = new Cesium['Cartesian3'](0x0,0x0,0x1); + Cesium['Cartesian3']['normalize'](afD, afD); + var afE = new Cesium[(dol(0x69c))](); + Cesium['Cartesian3']['cross'](afD, afC, afE); + Cesium['Cartesian3']['normalize'](afE, afE); + var afF = Cesium['Quaternion']['fromAxisAngle'](afE, Cesium[dol(0x69d)]['toRadians'](-afA), new Cesium['Quaternion']()); + var afG = new Cesium['Matrix3'](); + Cesium['Matrix3']['fromQuaternion'](afF, afG); + var afH = new Cesium['Cartesian3'](); + Cesium['Matrix3']['multiplyByVector'](afG, afC, afH); + cs['Public']['drawLineByDirectionXYZ'](afx, afy, afH, afB); + return afH; + }, + 'setMinimumZoomDistance': function(afI) { + + if (typeof afI == 'n' + doo(0x29b) + 'r') { + cs['viewer']['scene']['screenSpaceCameraController']['enableCollisionDetection'] = !![]; + cs['viewer'][dol(0x69e)]['screenSpaceCameraController']['maximumZoomDistance'] = afI; + } else { + aCe('参' + doo(0x29c) + '!'); + } + }, + 'highLightModelRegion': function(bb) { + if (bb['PosArr']['length'] < 0x2) { + return; + } + if (bb['id'] == '') { + return; + } + var afK = bb['regionColor']; + var afL = bb['isInvertClassification'] == undefined ? ![] : bb['isInvertClassification']; + var afM = bb['invertClassificationColor'] == undefined ? new Cesium['Color'](0.25,0.25,0.25,0x1) : bb['invertClassificationColor']; + var afN = bb['alphaVal'] == undefined ? ![] : bb['alphaVal']; + var afO = bb['PosArr'][0x0]; + var afP = bb['PosArr'][0x1]; + var afQ = new Cesium['Cartesian3'](); + var afR = new Cesium['Cartesian3'](); + var afS = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], afS); + Cesium['Matrix4']['multiplyByPoint'](afS, afO, afQ); + Cesium['Matrix4']['multiplyByPoint'](afS, afP, afR); + var afT = new Cesium[(dol(0x69f))]['subtract'](afQ,afR,new Cesium['Cartesian3']()); + var afU = Cesium['Cartesian3']['midpoint'](afQ, afR, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], afU, afU); + var afV = Cesium['Transforms']['eastNorthUpToFixedFrame'](afU); + var afW = new Cesium['ClassificationPrimitive']({ + 'geometryInstances': new Cesium[(dol(0x6a0))]({ + 'geometry': Cesium['BoxGeometry']['fromDimensions']({ + 'vertexFormat': Cesium['PerInstanceColorAppearance']['VERTEX_FORMAT'], + 'dimensions': new Cesium['Cartesian3'](Math['abs'](afT['x']),Math['abs'](afT['y']),Math['abs'](afT['z'])) + }), + 'modelMatrix': afV, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](afK), + 'show': new Cesium[(dol(0x6a1))](!![]) + }, + 'id': bb['id'] + }), + 'classificationType': Cesium[dol(0x6a2)]['CESIUM_3D_TILE'] + }); + cs['viewer']['scene']['primitives']['add'](afW); + cs['viewer']['scene']['invertClassification'] = afL; + cs['viewer'][dol(0x6a3)]['invertClassificationColor'] = afM; + cs['viewer']['scene']['invertClassificationColor']['alpha'] = parseFloat(afN); + cs['buildingHighlightArr']['set'](bb['id'], afW); + cs['viewer']['scene']['requestRender'](); + }, + 'highLightModelRegionByPolygon': function(bb) { + if (bb['PosArr'][dol(0x6a4)] < 0x2) { + return; + } + if (bb[dol(0x6a5)] == '') { + return; + } + var afY = bb['regionColor']; + var afZ = bb['isInvertClassification'] == undefined ? ![] : bb['isInvertClassification']; + var ag0 = bb['invertClassificationColor'] == undefined ? new Cesium['Color'](0.25,0.25,0.25,0x1) : bb['invertClassificationColor']; + var ag1 = bb['alphaVal'] == undefined ? ![] : bb[dol(0x6a6)]; + var ag2 = bb['PosArr']; + var ag3 = bb['extrudedHeight'] == undefined ? 0x0 : bb[dol(0x6a7)]; + var ag4 = new Cesium['ClassificationPrimitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'geometry': Cesium['PolygonGeometry']['fromPositions']({ + 'positions': ag2, + 'extrudedHeight': ag3 + }), + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](afY), + 'show': new Cesium['ShowGeometryInstanceAttribute'](!![]) + }, + 'id': bb['id'] + }), + 'classificationType': Cesium['ClassificationType']['CESIUM_3D_TILE'] + }); + cs['viewer']['scene']['primitives']['add'](ag4); + cs[dol(0x6a8)]['scene']['invertClassification'] = afZ; + cs['viewer']['scene']['invertClassificationColor'] = ag0; + cs[dol(0x6a9)]['scene'][dol(0x6aa)]['alpha'] = parseFloat(ag1); + cs['buildingHighlightArr']['set'](bb['id'], ag4); + cs['viewer']['scene'][dol(0x6ab)](); + }, + 'cleanBuildingHighlight': function(ag5) { + var ag6 = cs['buildingHighlightArr']['get'](ag5); + cs['viewer']['scene']['primitives']['remove'](ag6); + cs['viewer'][dol(0x6ac)][dol(0x6ad)] = ![]; + cs[dol(0x6ae)]['scene'][dol(0x6af)](); + }, + 'setMsaaSamplesState': function(ag7) { + if (typeof ag7 == 'b' + doo(0x29d) + 'n') { + bj['viewer']['scene']['_msaaSamples'] = ag7 ? 0x4 : 0x1; + } else { + aCe('参' + doo(0x29e) + '!'); + } + }, + 'getErrorMessage': function() { + return cs['errorMessage']; + }, + 'setIsRoateByScreenCenter': function(ag8, ag9) { + + if (typeof ag8 == 'b' + doo(0x29f) + 'n') { + cs['IsRoateByScreenCenter'] = ag8; + if (!Cesium['defined'](ag9)) { + ag9 = ![]; + } + cs['showDebuggerCenter'] = ag9; + } else { + aCe('参' + doo(0x2a0) + '!'); + } + }, + 'getIsRoateByScreenCenter': function() { + + return cs['IsRoateByScreenCenter']; + }, + 'getScreenCenter': function() { + var aga = cs['viewer'][dol(0x6b0)]['pickEllipsoid'](new Cesium['Cartesian2'](cs['viewer']['canvas'][dol(0x6b1)] / 0x2,cs['viewer']['canvas']['clientHeight'] / 0x2)); + if (cs['showDebuggerCenter']) { + cs['funcPublic']['drawPointByCartesian3'](aga, cs['viewer'], Cesium['Color']['YELLOW'], 0xa); + } + return aga; + }, + 'setGisAlpha': function(agb) { + if (agb) { + cs['viewer'][dol(0x6b2)]['globe']['show'] = ![]; + } + }, + 'setDisableMouseState': function(agc) { + if (agc) { + cs['isDisableMouse'] = !![]; + } else { + cs['isDisableMouse'] = ![]; + } + }, + 'addFlowingTo3DTile': function(bb) { + var age = bb['positions']; + var agf = bb['posToNormal']; + if (bb['Id'] == undefined) { + aCe('管' + doo(0x2a1) + '空'); + return; + } + if (bb['speed'] == undefined) { + bb['speed'] = 0x1; + } + if (bb['duration'] == undefined) { + bb['duration'] = 0x2710; + } + if (bb['lineWidth'] == undefined) { + bb['lineWidth'] = 0x5; + } + if (bb['color'] == undefined) { + bb['color'] = [0xff, 0xff, 0x0, 0.5]; + } + if (bb['MaxDistanceDisplay'] == undefined) { + bb['MaxDistanceDisplay'] = 0x7d0; + } + var agg = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](bj['tileset']['root']['transform'], agg); + var agh = 0.1; + var agi = 0x0; + var agj = ''; + var agk = []; + var agl = []; + var agm = -Infinity; + var agn = Infinity; + age['forEach'](function(ago, agp) { + var agq = agf['get'](agp); + if (agi > 0x0) { + var agr = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](agg, age[dol(0x6b3)](agj), agr); + var ags = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](agg, ago, ags); + var agt = Cesium[dol(0x6b4)]['subtract'](ags, agr, new Cesium['Cartesian3']()); + Cesium[dol(0x6b5)]['normalize'](agt, agt); + var agu = Cesium['Cartesian3']['cross'](agt, agq, new Cesium['Cartesian3']()); + var agv = new Cesium[(dol(0x6b6))](); + Cesium['Cartesian3']['clone'](agr, agv); + agv['x'] += agh * agu['x']; + agv['y'] += agh * agu['y']; + agv['z'] += agh * agu['z']; + var agw = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](agr, agw); + agw['x'] -= agh * agu['x']; + agw['y'] -= agh * agu['y']; + agw['z'] -= agh * agu['z']; + if (agv['z'] < agn) { + agn = agv['z']; + } + if (agw['z'] < agn) { + agn = agw['z']; + } + if (agv['z'] > agm) { + agm = agv['z']; + } + if (agw['z'] > agm) { + agm = agw['z']; + } + Cesium['Matrix4']['multiplyByPoint'](bj[dol(0x6b7)]['root']['transform'], agv, agv); + Cesium['Matrix4']['multiplyByPoint'](bj['tileset']['root']['transform'], agw, agw); + agk['push'](agv); + agl[dol(0x6b8)](agw); + cs['viewer']['entities']['add']({ + 'position': agv, + 'point': { + 'color': Cesium['Color']['BLUE'], + 'pixelSize': 0x14, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['viewer']['entities']['add']({ + 'position': agw, + 'point': { + 'color': Cesium['Color']['RED'], + 'pixelSize': 0x14, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + } + agj = agp; + cs['viewer']['entities'][dol(0x6b9)]({ + 'position': ago, + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x14, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + agi++; + }); + agk = agk['concat'](agl); + var agx = cs['viewer']['entities']['add']({ + 'polygon': { + 'hierarchy': agk, + 'material': new Cesium['PolylineFlowMaterialProperty']({ + 'color': Cesium['Color']['fromCssColorString']('r' + doo(0x2a2) + '(' + bb['color'][0x0] + ',' + bb['color'][0x1] + ',' + bb['color'][0x2] + ',' + bb['color'][0x3] + ')'), + 'speed': bb['speed'], + 'duration': bb['duration'] + }), + 'width': 0x1, + 'classificationType': Cesium['ClassificationType']['CESIUM_3D_TILE'] + } + }); + cs['FlowingTo3DTile']['set'](bb['Id'], agx); + }, + 'removeFlowingTo3DTile': function(agy) { + if (Cesium['defined'](cs['FlowingTo3DTile'])) { + if (agy == 0x0) { + cs['FlowingTo3DTile']['forEach'](function(agz, agA) { + for (var agB = 0x0; agB < agz['length']; agB++) { + cs['viewer']['entities']['remove'](agz[agB]); + } + cs['FlowingTo3DTile']['delete'](agA[dol(0x6ba)]()); + }); + } else { + let agC = cs['FlowingTo3DTile']['get'](agy); + if (Cesium['defined'](agC)) { + cs['viewer']['entities']['remove'](agC); + cs['FlowingTo3DTile']['delete'](agy['toString']()); + } + } + } + cs[dol(0x6bb)]['scene']['requestRender'](); + }, + 'setIsflipUnderground': function(agD) { + if (agD) { + cs['isflipUnderground'] = !![]; + } else { + cs['isflipUnderground'] = ![]; + } + }, + 'setMinPlaneHeight': function(agE) { + cs['minPlaneHeight'] = agE; + }, + 'setEnableCheck2DFrustumRange': function(agF) { + cs[dol(0x6bc)] = agF; + }, + 'setTopRenderState': function(agG) { + cs[dol(0x6bd)] = agG; + }, + 'setPipelineFlowState': function(agH) { + cs['isOpenPipelineFlow'] = agH; + }, + 'setTexturePipelineFlow': function(agI) { + cs['isTexturePipelineFlow'] = agI; + }, + 'setTargetFrameRate': function(agJ) { + cs['viewer']['targetFrameRate'] = agJ; + }, + 'getTargetFrameRate': function() { + return cs['viewer']['targetFrameRate']; + }, + 'setBackgroundImage': function(agK) { + if (agK != '') { + cs['viewer']['scene']['backgroundImageUrl'] = agK; + } + }, + 'deleteBackgroundImage': function() { + cs['viewer']['scene']['backgroundImageUrl'] = undefined; + }, + 'setParallelLightLuminance': function(agL) { + cs[dol(0x6be)] = agL * 0x1; + }, + 'getParallelLightLuminance': function() { + return cs['parallelLightLuminance']; + }, + 'setIndexDB': function(agM) { + if (agM != undefined) { + this['MyIndexDB'] = agM; + } + }, + 'getIndexDB': function() { + return this['MyIndexDB']; + } + }; + this['Lights'] = { + 'addUnrealBloom': function(bb) { + + cs['viewer']['scene']['requestRenderMode'] = ![]; + var agO = bb['featureIds']; + var agP = bb['isopen']; + var agQ = bb['tagname']; + var agR = bb[dol(0x6bf)]; + var agS = bb['bloomStrength']; + var agT = bb['bloomRadius']; + var agU = []; + var agV = ''; + var agW = 0x0; + if (agO['size'] > 0x0) { + agO['forEach'](function(agX, agY) { + var agZ = Cesium['Color']['fromCssColorString'](cs['tileset']['stylecolor']); + if (agZ['alpha'] < 0x1) { + cs[dol(0x6c0)]['setColor'](agY, agR['red'], agR['green'], agR['blue'], 0x1); + } + var ah0 = agY['split']('^'); + if (ah0['length'] == 0x2) + ah0 = ah0[0x1]; + else + ah0 = ah0[0x0]; + agV += '#' + ah0; + agW++; + }); + } + for (var ah1 = 0x0; ah1 < cs['tileset']['_selectedTiles']['length']; ++ah1) { + var ah2 = cs['tileset']['_selectedTiles'][ah1]['_content']; + var ah3 = cs['funcPublic']['GetFeaturesFromContent'](ah2, agV); + if (ah3['size'] == 0x0) { + continue; + } + ah3['forEach'](function(ah4, ah5) { + ah2['_features'][ah4]['currentFeatureId'] = ah5; + agU['push'](ah2['_features'][ah4]); + }); + } + if (cs['viewer']['scene'][dol(0x6c1)]['_stages']['length'] > 0x0) { + var ah6 = cs[dol(0x6c2)]['scene']['postProcessStages']['_stages']; + for (var ah7 = 0x0; ah7 < cs['viewer']['scene']['postProcessStages']['_stages']['length']; ah7++) { + var ah8 = ah6[ah7]; + if (ah8['_name'] == 'c' + doo(0x2a3) + 's') { + for (var ah9 = 0x0; ah9 < ah8['uniforms']['selectFeatures']['length']; ah9++) { + var aha = ah8['uniforms']['selectFeatures'][ah9]['currentFeatureId']; + if (agV['indexOf'](aha) > -0x1) { + if (!agP) { + ah8[dol(0x6c3)]['selectFeatures']['splice'](ah9, 0x1); + ah9 -= 0x1; + } else {} + } + } + if (agP) { + ah8['uniforms']['selectFeatures'] = ah8['uniforms'][dol(0x6c4)]['concat'](agU); + } + cs['viewer'][dol(0x6c5)]['requestRender'](); + return; + } + } + } + var ahb = Cesium['PostProcessStageLibrary']['createUnrealBloomStage'](bj['viewer']['scene']); + ahb['uniforms']['glowOnly'] = ![]; + ahb['uniforms']['luminosityThreshold'] = 0.1; + ahb[dol(0x6c6)]['smoothWidth'] = 0.01; + ahb['uniforms']['bloomTintColors'] = [new Cesium['Cartesian3'](agR['red'],agR['green'],agR['blue']), new Cesium[(dol(0x6c7))](agR['red'],agR['green'],agR['blue']), new Cesium['Cartesian3'](agR['red'],agR['green'],agR[dol(0x6c8)]), new Cesium['Cartesian3'](agR['red'],agR['green'],agR['blue']), new Cesium['Cartesian3'](agR['red'],agR['green'],agR['blue'])]; + ahb['uniforms']['bloomStrength'] = agS; + ahb['uniforms']['bloomRadius'] = agT; + ahb['uniforms'][dol(0x6c9)] = agU; + cs[dol(0x6ca)]['scene']['postProcessStages']['add'](ahb); + cs['viewer']['scene']['requestRender'](); + cs['viewer']['scene']['requestRenderMode'] = !![]; + }, + 'removeUnrealBloom': function() { + + if (cs['viewer']['scene']['postProcessStages']['_stages']['length'] > 0x0) { + var ahc = cs['viewer']['scene']['postProcessStages']['_stages']; + for (var ahd = 0x0; ahd < cs[dol(0x6cb)]['scene']['postProcessStages']['_stages']['length']; ahd++) { + var ahe = ahc[ahd]; + if (ahe['_name'] == 'c' + doo(0x2a4) + 's') { + cs['viewer'][dol(0x6cc)][dol(0x6cd)]['remove'](ahe); + cs['viewer']['scene']['requestRender'](); + cs['viewer']['scene']['requestRenderMode'] = !![]; + return; + } + } + } + }, + 'addModelBloom': function(bb) { + + if (cs['viewer']['scene']['postProcessStages']['_stages']['length'] > 0x0) { + var ahg = cs['viewer']['scene']['postProcessStages']['_stages']; + for (var ahh = 0x0; ahh < cs['viewer']['scene']['postProcessStages']['_stages']['length']; ahh++) { + var ahi = ahg[ahh]; + if (ahi[dol(0x6ce)] == 'c' + doo(0x2a5) + 's') { + aCe('已' + doo(0x2a6) + '果'); + return; + } + } + } + cs[dol(0x6cf)][dol(0x6d0)]['requestRenderMode'] = ![]; + var ahj = bb['bloomColor'] == undefined ? Cesium['Color']['WHITE'] : bb['bloomColor']; + var ahk = bb['bloomStrength'] == undefined ? 1.5 : bb['bloomStrength']; + var ahl = bb['bloomRadius'] == undefined ? 0.1 : bb['bloomRadius']; + var ahm = []; + var ahn = Cesium['PostProcessStageLibrary']['createModelOutlineStage'](cs['viewer']['scene']); + ahn['enabled'] = !![]; + ahn['uniforms'][dol(0x6d1)] = ![]; + ahn['uniforms']['luminosityThreshold'] = 0.5; + ahn[dol(0x6d2)]['smoothWidth'] = 0.5; + ahn['uniforms']['bloomTintColors'] = [new Cesium['Cartesian3'](ahj['red'],ahj['green'],ahj['blue']), new Cesium['Cartesian3'](ahj['red'],ahj['green'],ahj['blue']), new Cesium['Cartesian3'](ahj['red'],ahj['green'],ahj['blue']), new Cesium['Cartesian3'](ahj['red'],ahj['green'],ahj['blue']), new Cesium['Cartesian3'](ahj[dol(0x6d3)],ahj['green'],ahj['blue'])]; + ahn['uniforms']['bloomStrength'] = ahk; + ahn['uniforms']['bloomRadius'] = ahl; + ahn['uniforms']['selectFeatures'] = ahm; + ahn['uniforms']['sceneBrightness'] = cs['viewer']['scene']['brightness'] == undefined ? 0x1 : cs['viewer'][dol(0x6d4)]['brightness']['uniforms']['brightness']; + cs['viewer']['scene']['postProcessStages']['add'](ahn); + cs[dol(0x6d5)]['scene']['requestRender'](); + }, + 'addEdgeBloom': function(bb) { + + cs['viewer']['scene']['requestRenderMode'] = ![]; + var ahp = Cesium[dol(0x6d6)](bb['id']) ? bb['id'] : Cesium['createGuid'](); + var ahq = bb['edgeColor']; + var ahr = bb['bloomColor']; + var ahs = bb['bloomStrength']; + var aht = bb['bloomRadius']; + if (cs['viewer']['scene']['postProcessStages']['_stages'][dol(0x6d7)] > 0x0) { + var ahu = cs['viewer']['scene']['postProcessStages']['_stages']; + for (var ahv = 0x0; ahv < cs['viewer']['scene']['postProcessStages']['_stages']['length']; ahv++) { + var ahw = ahu[ahv]; + if (ahw['_name'] == 'c' + doo(0x2a7) + '_' + ahp) { + cs['viewer']['scene']['requestRender'](); + return; + } + } + } + var ahx = Cesium['PostProcessStageLibrary']['createEageBloomStage'](ahp); + ahx['uniforms']['glowOnly'] = ![]; + ahx['uniforms']['luminosityThreshold'] = 0.1; + ahx['uniforms'][dol(0x6d8)] = 0.01; + ahx['uniforms']['bloomTintColors'] = [new Cesium['Cartesian3'](ahr['red'],ahr['green'],ahr['blue']), new Cesium['Cartesian3'](ahr['red'],ahr['green'],ahr['blue']), new Cesium['Cartesian3'](ahr['red'],ahr['green'],ahr['blue']), new Cesium['Cartesian3'](ahr['red'],ahr['green'],ahr['blue']), new Cesium['Cartesian3'](ahr[dol(0x6d9)],ahr['green'],ahr['blue'])]; + ahx['uniforms']['bloomStrength'] = ahs; + ahx['uniforms']['bloomRadius'] = aht; + ahx['uniforms'][dol(0x6da)] = new Cesium['Cartesian3'](ahq['red'],ahq['green'],ahq['blue']); + cs['viewer']['scene'][dol(0x6db)]['add'](ahx); + cs['viewer']['scene']['requestRender'](); + return ahp; + }, + 'removeEdgeBloom': function(ahy) { + + if (cs['viewer'][dol(0x6dc)]['postProcessStages']['_stages']['length'] > 0x0) { + var ahz = cs['viewer']['scene']['postProcessStages']['_stages']; + if (Cesium['defined'](ahy)) { + for (var ahA = 0x0; ahA < cs['viewer']['scene']['postProcessStages']['_stages']['length']; ahA++) { + var ahB = ahz[ahA]; + if (Cesium['defined'](ahB)) { + if (ahB['_name'] == 'c' + doo(0x2a8) + '_' + ahy) { + cs['viewer']['scene']['postProcessStages']['remove'](ahB); + cs['viewer']['scene']['requestRender'](); + cs['viewer']['scene']['requestRenderMode'] = !![]; + return; + } + } + } + } else { + for (var ahA = 0x0; ahA < cs['viewer']['scene']['postProcessStages']['_stages']['length']; ahA++) { + var ahB = ahz[ahA]; + if (Cesium[dol(0x6dd)](ahB)) { + if (ahB['_name']['indexOf']('c' + doo(0x2a9) + 's') != -0x1) { + cs['viewer'][dol(0x6de)]['postProcessStages']['remove'](ahB); + } + } + } + cs['viewer'][dol(0x6df)]['requestRender'](); + cs['viewer']['scene']['requestRenderMode'] = !![]; + } + } + }, + 'getEdges': function(ahE, ahF, ahG, ahH) { + if (Cesium['defined'](ahE)) { + var ahG = []; + var ahJ = ahE['split']('#'); + for (var ahK = 0x0; ahK < ahJ['length']; ahK++) { + if (ahJ[ahK] != '') { + ahG = ahG['concat'](cs['Feature']['getVertex'](ahJ[ahK])); + } + } + if (ahG['length'] > 0x0) { + var ahL = new aG3(null,ahG,Cesium['defined'](ahH) ? ahH : 0x1); + return ahL['positions']; + } + } else { + if (Cesium['defined'](ahG)) { + var ahL = new aG3(Cesium['defined'](ahF) ? ahF : null,ahG,Cesium['defined'](ahH) ? ahH : 0x1); + return ahL['positions']; + } + } + return []; + }, + 'addEdges': function(bb) { + if (Cesium['defined'](bb['positions'])) { + var ahO = []; + var ahP = Cesium['defined'](bb['tag']) ? cs['m_model']['get'](bb[dol(0x6e0)]['toString']()) : cs['tileset']; + var ahQ = !isEmpty(ahP['modelMatrix']) ? new Cesium['Matrix4']['clone'](ahP[dol(0x6e1)]) : new Cesium['Matrix4'][(dol(0x6e2))](Cesium['Matrix4']['IDENTITY']); + var ahR = ahP['root']['transform']; + var ahS = []; + for (var ahT = 0x0; ahT < bb['positions'][dol(0x6e3)]; ahT += 0x3) { + var ahU = new Cesium['Cartesian3'](bb['positions'][ahT],bb['positions'][ahT + 0x1],bb['positions'][ahT + 0x2]); + if (ahU) { + Cesium['Matrix4']['multiplyByPoint'](ahR, ahU, ahU); + Cesium['Matrix4']['multiplyByPoint'](ahQ, ahU, ahU); + ahS['push'](ahU); + } + } + for (var ahT = 0x0; ahT < ahS['length']; ahT += 0x2) { + var ahW = new Cesium['GeometryInstance']({ + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': [ahS[ahT], ahS[ahT + 0x1]], + 'width': Cesium['defined'](bb['width']) ? bb['width'] : 0x1, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }), + 'id': 'e' + doo(0x2aa) + '_' + Cesium['createGuid']() + }); + ahO['push'](ahW); + } + var ahX = Cesium['defined'](bb['color']) ? bb['color'] : new Cesium['Color'](0.1,0.3,0x1); + if (ahO['length'] > 0x0) { + var ahY = new Cesium['Primitive']({ + 'allowPicking': ![], + 'geometryInstances': ahO, + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0x2ab) + 'r', + 'uniforms': { + 'color': ahX + } + } + }), + 'translucent': ![], + 'renderState': { + 'blending': Cesium['BlendingState']['PRE_MULTIPLIED_ALPHA_BLEND'], + 'frontFace': Cesium['WindingOrder']['COUNTER_CLOCKWISE'], + 'cull': { + 'enabled': !![], + 'face': Cesium['CullFace']['Back'] + }, + 'depthTest': { + 'enabled': !![], + 'func': Cesium[dol(0x6e4)]['LESS'] + } + } + }) + }); + var ahZ = Cesium['defined'](bb['edgeId']) ? bb['edgeId'] : Cesium['createGuid'](); + ahY['edgeId'] = ahZ; + cs['viewer']['scene']['primitives']['add'](ahY); + cs['edgePrimitives']['push'](ahY); + if (Cesium['defined'](bb['glow'])) { + if (bb[dol(0x6e5)]) { + var bb = { + 'id': ahZ, + 'edgeColor': ahX, + 'bloomColor': Cesium['defined'](bb['glowColor']) ? bb['glowColor'] : Cesium['Color']['WHITE'], + 'bloomStrength': Cesium['defined'](bb['bloomStrength']) ? bb['bloomStrength'] : 1.5, + 'bloomRadius': Cesium['defined'](bb['bloomRadius']) ? bb['bloomRadius'] : 0.4 + }; + cs['Lights']['addEdgeBloom'](bb); + cs['viewer']['scene']['requestRenderMode'] = ![]; + } + } + cs['viewer']['scene']['requestRender'](); + } + return ahZ; + } + return ''; + }, + 'removeEdges': function(ai1) { + try { + + if (Cesium['defined'](ai1)) { + for (var ai2 = 0x0; ai2 < cs['edgePrimitives']['length']; ai2++) { + if (cs['edgePrimitives'][ai2][dol(0x6e6)] === ai1) { + cs['viewer']['scene']['primitives']['remove'](cs['edgePrimitives'][ai2]); + cs['Lights']['removeEdgeBloom'](ai1); + } + } + } else { + for (var ai2 = 0x0; ai2 < cs['edgePrimitives']['length']; ai2++) { + cs[dol(0x6e7)]['scene'][dol(0x6e8)][dol(0x6e9)](cs[dol(0x6ea)][ai2]); + } + cs['Lights']['removeEdgeBloom'](); + cs['edgePrimitives'] = []; + } + cs['viewer']['scene']['requestRender'](); + } catch (ai4) { + aCe('错' + doo(0x2ac) + ':' + ai4); + } + } + }; + this['Other'] = { + 'addFlyLine': function(ai5, ai6, bb) { + + if (!Cesium['defined'](cs['viewer']['scene']['fly_lines'])) + cs['viewer']['scene']['fly_lines'] = new Map(); + cs[dol(0x6eb)]['scene']['requestRenderMode'] = ![]; + bb = extend({ + 'groupId': Cesium['createGuid'](), + 'lineCount': 0xa, + 'lineWidth': 0x5, + 'lineCurvature': 0x4e20, + 'lineColors': [new Cesium['Color'](0x4d / 0xff,0xc9 / 0xff,0xff / 0xff,0x1), new Cesium['Color'](0xdd / 0xff,0xdd / 0xff,0xdd / 0xff,0x1), new Cesium['Color'](0xff / 0xff,0xc9 / 0xff,0x26 / 0xff,0x1)] + }, bb); + let ai8 = 0x0; + let ai9 = []; + let aia = 0x168 / bb['lineCount']; + for (var aib = 0x0; aib < bb['lineCount']; aib++) { + let aic = aie(ai6, ai5, ai8); + var aid = Cesium['getLinkedPointList'](ai5, aic, bb[dol(0x6ec)], 0x64); + ai9['push'](cs['viewer']['entities']['add']({ + 'polyline': { + 'positions': aid, + 'width': bb['lineWidth'], + 'material': new Cesium['PolylineArrowLinkMaterialProperty']({ + 'color': bb['lineColors'][aib % 0x3], + 'duration': 0xbb8 + }) + } + })); + ai8 += aia; + } + if (ai9['length'] > 0x0) + cs['viewer']['scene']['fly_lines']['set'](bb['groupId'], ai9); + function aie(aif, aig, aih) { + var aii = Cesium['Transforms']['eastNorthUpToFixedFrame'](aig); + var aij = Cesium['Matrix4']['inverse'](aii, new Cesium['Matrix4']()); + var aik = Cesium[dol(0x6ed)]['multiplyByPoint'](aij, aig, new Cesium[(dol(0x6ee))]()); + var ail = Cesium['Matrix4']['multiplyByPoint'](aij, aif, new Cesium['Cartesian3']()); + var aim = ail['x'] * Math['cos'](Cesium['Math']['toRadians'](aih)) + ail['y'] * Math['sin'](Cesium['Math']['toRadians'](aih)); + var ain = ail['y'] * Math['cos'](Cesium['Math']['toRadians'](aih)) - ail['x'] * Math['sin'](Cesium['Math'][dol(0x6ef)](aih)); + var aio = ail['z']; + return Cesium['Matrix4'][dol(0x6f0)](aii, new Cesium['Cartesian3'](aim,ain,aio), new Cesium['Cartesian3']()); + } + }, + 'removeFlyLine': function(aip) { + + if (Cesium['defined'](cs['viewer']['scene']['fly_lines'])) { + if (aip == 0x0) { + cs['viewer']['scene'][dol(0x6f1)]['forEach'](function(aiq, air) { + for (var ais = 0x0; ais < aiq['length']; ais++) { + cs['viewer']['entities']['remove'](aiq[ais]); + } + cs['viewer']['scene']['fly_lines']['delete'](air['toString']()); + }); + } else { + let ait = cs['viewer']['scene']['fly_lines'][dol(0x6f2)](aip['toString']()); + if (Cesium['defined'](ait)) { + for (var aiu = 0x0; aiu < ait['length']; aiu++) { + cs['viewer']['entities'][dol(0x6f3)](ait[aiu]); + } + cs['viewer']['scene']['fly_lines']['delete'](aip['toString']()); + } + } + } + cs['viewer']['scene']['requestRenderMode'] = !![]; + cs['viewer']['scene']['requestRender'](); + }, + 'drawGroundLines': function(aiv) { + + var aiw = { + 'id': '', + 'name': '', + 'positions': [], + 'axisType': 0x0, + 'lineWidth': 0xa, + 'color': 0xff00ff7f, + 'isDash': ![], + 'outlineColor': 0x7f, + 'outlineWidth': 0x2, + 'gapColor': 0xff00007f, + 'dashLength': 0xa, + 'dashPattern': 0xff, + 'clampToGround': !![] + }; + aiw = extend(aiw, aiv); + var aix = []; + if (!Cesium['defined'](aiw['id']) || aiw['id']['length'] == 0x0) { + throw doj(0xc3); + } + if (!Cesium['defined'](aiw['positions']) || !Cesium['defined'](aiw['axisType']) || aiw['positions']['length'] == 0x0) { + throw doj(0xc4); + } + switch (aiw['axisType']) { + case 0x0: + break; + case 0x1: + aix = Cesium[dol(0x6f4)]['fromRadiansArray'](aiw['positions']); + break; + case 0x2: + aix = Cesium['Cartesian3'][dol(0x6f5)](aiw['positions']); + break; + case 0x3: + aix = Cesium[dol(0x6f6)]['unpackArray'](aiw['positions']); + break; + default: + throw doj(0xc5); + } + var aiy = aiw[dol(0x6f7)] ? new Cesium[(dol(0x6f8))]({ + 'color': Cesium['Color']['fromRgba'](aiw['color']), + 'gapColor': Cesium['Color']['fromRgba'](aiw['gapColor']), + 'dashLength': aiw['dashLength'], + 'dashPattern': aiw['dashPattern'] + }) : new Cesium['PolylineOutlineMaterialProperty']({ + 'color': Cesium['Color']['fromRgba'](aiw['color']), + 'outlineWidth': aiw['outlineWidth'], + 'outlineColor': Cesium['Color']['fromRgba'](aiw['outlineColor']) + }); + var aiz = cs['viewer']['entities']['getById'](aiw['id']); + if (!Cesium['defined'](aiz) || !Cesium['defined'](aiz['polyline'])) { + aiz = cs['viewer']['entities']['add']({ + 'id': aiw['id'], + 'name': aiw['name'], + 'polyline': { + 'positions': aix, + 'width': aiw['lineWidth'], + 'material': aiy, + 'clampToGround': aiw['clampToGround'], + 'show': !![] + } + }); + } else { + aiz['polyline']['positions'] = aix; + aiz['polyline']['width'] = aiw['lineWidth']; + aiz['polyline']['material'] = aiy; + aiz['polyline']['clampToGround'] = aiw['clampToGround']; + aiz[dol(0x6f9)]['show'] = !![]; + } + return aiz['id']; + }, + 'removeGroundLines': function(aiA) { + + var aiB = cs['viewer']['entities']['removeById'](aiA); + cs[dol(0x6fa)]['scene'][dol(0x6fb)](); + return aiB; + }, + 'getGroundLines': function(aiC) { + + return cs['viewer']['entities'][dol(0x6fc)](aiC); + }, + 'addInspectionTrack': function(bb) { + + if (!Cesium['defined'](cs['InspectionTrack'])) { + cs['InspectionTrack'] = new GLEInspectionTrack(cs[dol(0x6fd)],cs); + } + cs['InspectionTrack']['new'](bb); + }, + 'undoInspectionTrack': function(aiE) { + + if (!Cesium['defined'](cs['InspectionTrack'])) { + cs['InspectionTrack'] = new GLEInspectionTrack(cs['viewer'],cs); + } + cs[dol(0x6fe)]['undo'](aiE); + }, + 'getInspectionTrack': function(aiF) { + + if (!Cesium['defined'](cs['InspectionTrack'])) { + cs['InspectionTrack'] = new GLEInspectionTrack(cs['viewer'],cs); + } + return cs['InspectionTrack']['getById'](aiF); + }, + 'pauseInspectionTrack': function(aiG, aiH) { + + if (!Cesium['defined'](cs['InspectionTrack'])) { + cs['InspectionTrack'] = new GLEInspectionTrack(cs['viewer'],cs); + } + return cs['InspectionTrack']['suspend'](aiG, aiH); + }, + 'loadInspectionTrack': function(bb, aiJ) { + + if (!Cesium['defined'](cs['InspectionTrack'])) { + cs['InspectionTrack'] = new GLEInspectionTrack(cs['viewer'],cs); + } + cs['InspectionTrack']['load'](bb, aiJ); + }, + 'removeInspectionTrack': function(aiK) { + + if (!Cesium['defined'](cs['InspectionTrack'])) { + cs['InspectionTrack'] = new GLEInspectionTrack(cs['viewer'],cs); + } + cs['InspectionTrack']['delete'](aiK); + }, + 'setCenterOfRotation': function(aiL, aiM, aiN, aiO) { + try { + + if (aiL) + switch (aiN) { + case 0x0: + if (Array['isArray'](aiM) && aiM[dol(0x6ff)] == 0x3) { + var aiP = Cesium['Cartesian3']['fromRadiansArrayHeights'](aiM); + if (aiP && Array['isArray'](aiP) && aiP['length'] > 0x0) + cs['RotationCenterOfScene'] = aiP[0x0]; + } else + throw Error('c' + doo(0x2ad) + '误'); + break; + case 0x1: + if (Array['isArray'](aiM) && aiM['length'] == 0x3) { + var aiQ = Cesium['Cartesian3'][dol(0x700)](aiM); + var aiR = cs['Public']['convertModelToWorld'](aiQ['x'], aiQ['y'], aiQ['z'], aiO); + cs['RotationCenterOfScene'] = cs['Public']['radiansToCartesian3'](aiR[0x1], aiR[0x0], aiR[0x2]); + } else + throw Error('c' + doo(0x2ae) + '误'); + break; + case 0x2: + if (aiM instanceof Cesium['Cartesian3']) { + cs[dol(0x701)] = aiM; + } else + throw Error('c' + doo(0x2af) + '误'); + break; + default: + throw Error('t' + doo(0x2b0) + '效'); + } + cs['RotationCenterOfSceneState'] = aiL; + } catch (aiS) { + aCe(aiS); + } + }, + 'setOperationCenterPointState': function(aiT) { + + cs['isShowOperationCenterPoint'] = aiT; + }, + 'addOperationCenterPoint': function(aiU) { + try { + + if (!cs['isShowOperationCenterPoint']) + return; + if (Cesium['defined'](cs['RotationCenterOfSceneState']) && cs[dol(0x702)]) { + aiU = cs['RotationCenterOfScene']; + } + if (!aiU instanceof Cesium['Cartesian2'] || cs['Public']['getModelRotationCenter']()) { + var aiV = cs['Model']['getModelsCenter'](); + if (aiV) { + aiU = aiV['center']; + } + } + if (aiU instanceof Cesium['Cartesian2']) { + cs['Public']['pickupCoordinate'](aiU, function(aiW) { + aiU = Cesium['Cartesian3'][dol(0x703)](aiW[0x0], aiW[0x1], aiW[0x2]); + cs['Other']['removeOperationCenterPoint'](); + cs['OperationCenterPoint'] = cs['viewer']['entities']['add']({ + 'position': aiU, + 'point': { + 'show': !![], + 'color': Cesium['Color']['SKYBLUE']['withAlpha'](0.5), + 'pixelSize': 0xa, + 'outlineColor': Cesium[dol(0x704)]['YELLOW']['withAlpha'](0.5), + 'outlineWidth': 0x3, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + }, 0x0, function error() { + if (cs['defaults']['openearth']) + return; + var aiV = cs[dol(0x705)]['getModelsCenter'](); + if (aiV) { + aiU = aiV['center']; + } + cs['Other']['removeOperationCenterPoint'](); + cs['OperationCenterPoint'] = cs['viewer']['entities']['add']({ + 'position': aiU, + 'point': { + 'show': !![], + 'color': Cesium['Color'][dol(0x706)]['withAlpha'](0.5), + 'pixelSize': 0xa, + 'outlineColor': Cesium['Color']['YELLOW']['withAlpha'](0.5), + 'outlineWidth': 0x3, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + }); + return; + } + cs['Other']['removeOperationCenterPoint'](); + cs['OperationCenterPoint'] = cs['viewer']['entities']['add']({ + 'position': aiU, + 'point': { + 'show': !![], + 'color': Cesium['Color']['SKYBLUE']['withAlpha'](0.5), + 'pixelSize': 0xa, + 'outlineColor': Cesium['Color']['YELLOW']['withAlpha'](0.5), + 'outlineWidth': 0x3, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + } catch (aiY) { + aCe(aiY); + } + }, + 'removeOperationCenterPoint': function() { + if (cs['OperationCenterPoint']) { + cs['viewer']['entities']['remove'](cs['OperationCenterPoint']); + cs['OperationCenterPoint'] = undefined; + cs['viewer']['scene']['requestRender'](); + } + }, + 'addTrapezium': function(aiZ, aj0, aj1, aj2, aj3) { + + var aj0 = !isNaN(aj0) ? aj0 : 0xa; + var aj1 = !isNaN(aj1) ? aj1 : 0xa; + var aj2 = !isNaN(aj2) ? aj2 : 0x5; + var aj7 = Cesium['Cartesian3']['fromDegrees'](aiZ[0x0], aiZ[0x1], aiZ[0x2]); + let aj8 = Cesium['Transforms']['eastNorthUpToFixedFrame'](aj7); + var aj9 = Cesium['Color']['fromCssColorString'](aj3); + var aja = []; + aja[0x0] = 0x0; + aja[0x1] = aj2; + aja[0x2] = aj0; + aja[0x3] = -aj2; + aja[0x4] = 0x0; + aja[0x5] = aj0; + aja[0x6] = 0x0; + aja[0x7] = -aj2; + aja[0x8] = aj0; + aja[0x9] = aj2; + aja[0xa] = 0x0; + aja[0xb] = aj0; + aja[0xc] = 0x0; + aja[0xd] = aj1; + aja[0xe] = 0x0; + aja[0xf] = -aj1; + aja[0x10] = 0x0; + aja[0x11] = 0x0; + aja[0x12] = 0x0; + aja[0x13] = -aj1; + aja[0x14] = 0x0; + aja[0x15] = aj1; + aja[0x16] = 0x0; + aja[0x17] = 0x0; + var ajb = []; + for (var ajc = 0x0; ajc < aja['length'] / 0x3; ajc++) { + var ajd = new Cesium['Cartesian3'](aja[ajc * 0x3],aja[ajc * 0x3 + 0x1],aja[ajc * 0x3 + 0x2]); + Cesium['Matrix4']['multiplyByPoint'](aj8, ajd, ajd); + ajb['push'](ajd['x'], ajd['y'], ajd['z']); + } + var aje = new Float64Array(ajb); + var aj3 = new Float64Array(0x8 * 0x4); + for (let ajc = 0x0; ajc < aj3['length'] / 0x4; ajc++) { + aj3[ajc * 0x4] = aj9[dol(0x707)]; + aj3[ajc * 0x4 + 0x1] = aj9['green']; + aj3[ajc * 0x4 + 0x2] = aj9['blue']; + aj3[ajc * 0x4 + 0x3] = aj9['alpha']; + } + var ajh = []; + ajh['push']([0x6, 0x2, 0x3]); + ajh['push']([0x7, 0x6, 0x3]); + ajh['push']([0x1, 0x2, 0x5]); + ajh['push']([0x2, 0x5, 0x6]); + ajh[dol(0x708)]([0x4, 0x3, 0x0]); + ajh['push']([0x4, 0x3, 0x7]); + ajh['push']([0x4, 0x5, 0x6]); + ajh['push']([0x4, 0x7, 0x6]); + ajh['push']([0x1, 0x5, 0x4]); + ajh['push']([0x1, 0x0, 0x4]); + ajh['push']([0x1, 0x0, 0x2]); + ajh['push']([0x0, 0x2, 0x3]); + var aji = new Cesium['GradientFacePrimitiveNew'](aje,ajh,aj3); + cs['viewer']['scene']['primitives'][dol(0x709)](aji); + cs['viewer']['scene']['requestRender'](); + }, + 'addTriangleFace': function(ajj) { + + var ajk = []; + var ajl = []; + var ajm = []; + for (var ajn = 0x0; ajn < ajj['length']; ajn++) { + var ajo = ajj[ajn]['startPos']; + var ajp = ajj[ajn]['endPos']; + var ajq = ajj[ajn][dol(0x70a)]; + var ajr = new Cesium['Cartesian3'](); + var ajs = Cesium['Cartesian3']['subtract'](ajo, ajp, new Cesium['Cartesian3']()); + if (ajs['z'] == 0x0) { + const ajt = ajk['length']; + var aju = ajs['x']; + var ajv = ajs['y']; + var ajw = Math['sqrt'](aju * aju + ajv * ajv); + var ajx = ajq / 0x2; + var ajy = Math['atan'](ajx / ajw); + var ajz = Cesium['Matrix3']['fromRotationZ'](Cesium['Math']['PI'] - ajy, new Cesium[(dol(0x70b))]()); + var ajA = Cesium['Cartesian3']['subtract'](ajp, ajo, new Cesium['Cartesian3']()); + var ajB = new Cesium[(dol(0x70c))](); + Cesium['Cartesian3']['normalize'](ajA, ajA); + Cesium['Matrix3']['multiplyByVector'](ajz, ajA, ajB); + var ajC = Math['sqrt'](ajw * ajw + ajx * ajx); + Cesium['Cartesian3'][dol(0x70d)](ajp, ajr); + ajr['x'] += ajB['x'] * ajC; + ajr['y'] += ajB['y'] * ajC; + ajr['z'] += ajB['z'] * ajC; + var ajD = Cesium['Cartesian3']['subtract'](ajr, ajo, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['normalize'](ajD, ajD); + var ajE = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](ajr, ajE); + ajE['x'] -= ajD['x'] * ajq; + ajE['y'] -= ajD['y'] * ajq; + ajE['z'] -= ajD['z'] * ajq; + Cesium[dol(0x70e)]['multiplyByPoint'](cs['tileset']['root']['transform'], ajr, ajr); + Cesium['Matrix4'][dol(0x70f)](cs['tileset']['root']['transform'], ajp, ajp); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], ajE, ajE); + Cesium[dol(0x710)]['pack'](ajr, ajk, ajt); + Cesium['Cartesian3']['pack'](ajp, ajk, ajt + 0x3); + Cesium['Cartesian3']['pack'](ajE, ajk, ajt + 0x6); + ajl['push']([ajt / 0x3, ajt / 0x3 + 0x1, ajt / 0x3 + 0x2]); + ajm['push'](0x0, 0x0, 0x0, 0x1); + ajm[dol(0x711)](0x0, 0x0, 0x0, 0x1); + ajm['push'](0x0, 0x0, 0x0, 0x1); + } else { + const ajF = ajk['length']; + var ajx = ajq / 0x2; + Cesium['Cartesian3'][dol(0x712)](ajo, ajr); + ajr['x'] -= ajx; + var ajE = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](ajo, ajE); + ajE['x'] += ajx; + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], ajr, ajr); + Cesium['Matrix4'][dol(0x713)](cs['tileset']['root']['transform'], ajp, ajp); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x714)], ajE, ajE); + Cesium['Cartesian3'][dol(0x715)](ajr, ajk, ajF); + Cesium['Cartesian3']['pack'](ajp, ajk, ajF + 0x3); + Cesium['Cartesian3']['pack'](ajE, ajk, ajF + 0x6); + ajl['push']([ajF / 0x3, ajF / 0x3 + 0x1, ajF / 0x3 + 0x2]); + ajm['push'](0x0, 0x0, 0x0, 0x1); + ajm['push'](0x0, 0x0, 0x0, 0x1); + ajm['push'](0x0, 0x0, 0x0, 0x1); + } + } + var ajI = new Float64Array(ajk); + var ajJ = new Float64Array(ajm); + var ajK = new Cesium['GradientFacePrimitiveNew'](ajI,ajl,ajJ); + cs['viewer']['scene']['primitives']['add'](ajK); + cs['viewer']['scene']['requestRender'](); + } + }; + this['Plugin'] = { + 'initNavCube': function(bb) { + + if (!Cesium[dol(0x716)](cs['PluginNavigationCube'])) + cs['PluginNavigationCube'] = new GLENavigationCube(cs,bb); + return cs['PluginNavigationCube']; + }, + 'initGyroscope': function(bb) { + + if (!Cesium['defined'](cs['PluginGyroscope'])) + cs['PluginGyroscope'] = new CesiumNavigation(cs['viewer'],bb); + return cs['PluginGyroscope']; + }, + 'initVideo': function() { + + if (!Cesium['defined'](cs['PluginCesiumVideo'])) + cs['PluginCesiumVideo'] = new GLECesiumVideo(cs); + return cs['PluginCesiumVideo']; + }, + 'initLightSource': function() { + + if (!Cesium['defined'](cs['PluginLightSource'])) + cs['PluginLightSource'] = new GLELightSource(cs); + return cs['PluginLightSource']; + }, + 'initWeatherSource': function() { + if (!Cesium['defined'](cs['PluginWeatherSource'])) + cs['PluginWeatherSource'] = new GLEWeatherSource(cs); + return cs['PluginWeatherSource']; + }, + 'initVehicleBorneRadar': function() { + + if (!Cesium['defined'](cs[dol(0x717)])) + cs['PluginVehicleBorneRadar'] = new GLEVehicleBorneRadar(cs); + return cs['PluginVehicleBorneRadar']; + }, + 'initClippingSystem': function() { + + if (!Cesium['defined'](cs['PluginClippingBoxSystem'])) + cs[dol(0x718)] = new GLEClippingSystem(cs); + return cs['PluginClippingBoxSystem']; + }, + 'initRoamingSystem': function() { + + if (!Cesium['defined'](cs[dol(0x719)])) { + cs['Camera_ImmersionRoaming'] = new GLERoaming(cs); + } + return cs['Camera_ImmersionRoaming']; + }, + 'init3rdRoaming': function(bb) { + + if (!Cesium['defined'](cs['Camera_3rdRoaming'])) { + cs['Camera_3rdRoaming'] = new GLEThirdPersonRoaming(cs,bb); + } + return cs['Camera_3rdRoaming']; + }, + 'initCircleScan': function() { + + if (!Cesium['defined'](cs['PluginCircleScan'])) + cs['PluginCircleScan'] = new GLECircleScan(cs); + return cs['PluginCircleScan']; + }, + 'initWaterRipple': function() { + + if (!Cesium['defined'](cs['PluginWaterRipple'])) + cs['PluginWaterRipple'] = new GLEWaterRipple(cs); + return cs['PluginWaterRipple']; + }, + 'initHawkEyeMap': function(bb) { + + cs['PluginHawkEyeMap'] = new GLEHawkEyeMap(cs,bb); + return cs['PluginHawkEyeMap']; + }, + 'initViewportScreentshot': function() { + + if (!Cesium['defined'](cs['PluginViewportScreentshot'])) + cs['PluginViewportScreentshot'] = new GLEViewportScreentshot(cs); + return cs['PluginViewportScreentshot']; + }, + 'initInundationAnalysis': function() { + + if (!Cesium['defined'](cs['PluginInundationAnalysis'])) + cs['PluginInundationAnalysis'] = new GLEInundationAnalysis(cs); + return cs['PluginInundationAnalysis']; + } + }; + this['Test'] = {}; + this['funcPublic'] = { + 'updateEntityShow': function(ajP, ajQ, ajR, ajS) { + var ajT = cs['tileset']['getParamObject']() == undefined ? [] : [cs['tileset']['getParamObject']()]; + if (ajT['length'] > 0x0) { + ajT = ajT[0x0]['entities']['_entities']['_array']; + for (var ajU = 0x0; ajU < ajT['length']; ajU++) { + if (ajQ['indexOf'](ajT[ajU]['id']) > -0x1) { + ajT[ajU]['show'] = ajR; + } else { + if (ajS == 0x1) { + ajT[ajU]['show'] = !ajR; + } else { + if (ajS != -0x1 && ajT[ajU][dol(0x71a)] != ajR) { + ajT[ajU]['show'] = ajR; + } + } + } + } + } + }, + 'GetIndicesIndex': function(ajV) { + var ajW = 0x1; + Object['getOwnPropertyNames'](ajV)['forEach'](function(ajX, ajY, ajZ) { + if (ajV[ajX] && ajV[ajX]['indexDatatype'] != undefined) { + ajW = ajX * 0x1; + return ajW; + } + }); + return ajW; + }, + 'GetDracoIndicesIndex': function(ak0, ak1) { + var ak2 = 0x0; + var ak3; + try { + Object['getOwnPropertyNames'](ak0)['forEach'](function(ak4) { + if (ak0[ak4] && ak0[ak4]['indexDatatype'] != undefined) { + if (ak1 == ak2) { + ak3 = ak4; + throw new Error(); + } + ak2++; + } + }); + } catch (ak5) { + return ak3; + } + ; + }, + 'GetFeatureFromContent': function(ak6, ak7) { + try { + if (ak6['_batchTable'] != undefined) { + return ak6['_batchTable']['_properties']['name']['indexOf'](ak7); + } else { + return -0x1; + } + } catch (ak8) { + return -0x1; + } + }, + 'GetFeaturesFromContent': function(ak9, aka) { + if (ak9['_batchTable'] != undefined) { + var akb = new Map(); + var akc = aka['split']('#'); + for (var akd = 0x0; akd < akc['length']; akd++) { + if (akc[akd] != '') { + var ake = ak9['_batchTable']['_properties']['name'][dol(0x71b)](akc[akd]); + if (ake != -0x1) { + akb['set'](akc[akd], ake); + } + } + } + return akb; + } + return new Map(); + }, + 'GetWorldCoordinatesPos': function(akf, akg, akh) { + var akf = akf['clone'](); + if (akf == undefined) { + return null; + } + if (akg != undefined) { + Cesium['Matrix4']['multiplyByPoint'](akg, akf, akf); + } + if (akh != undefined) { + Cesium['Matrix4']['multiplyByPoint'](akh, akf, akf); + } + return akf['clone'](); + }, + 'GetPositionByFeatureId': function(akj, akk, akl, akm, akn, ako) { + if (!Cesium['defined'](akk)) { + return ![]; + } + if (!Cesium['defined'](akm)) { + akm = new Cesium['Cartesian3'](); + } + if (Cesium['defined'](akk['_content']) && Cesium['defined'](akk[dol(0x71c)]['featuresLength']) && akk['_content']['featuresLength'] > 0x0) { + var akp = akk['_content']; + if (akp != undefined) { + var akq = cs['funcPublic']['GetFeatureFromContent'](akp, akl); + if (akq == -0x1) { + return; + } + var akr = new Cesium['Cartesian3'](); + var aks = cs['funcPublic']['GetFeatureMaxMinPoint'](akp, akq); + Cesium['Cartesian3']['maximumByComponent'](akn, aks[0x0], akn); + Cesium['Cartesian3']['minimumByComponent'](ako, aks[0x1], ako); + Cesium['Cartesian3']['midpoint'](akn, ako, akr); + Cesium['Matrix4'][dol(0x71d)](akj['root'][dol(0x71e)], akr, akm); + } + } + var akt = akk['children']; + if (Cesium['defined'](akt)) { + var aku = akt['length']; + for (var akv = 0x0; akv < aku; ++akv) { + cs['funcPublic']['GetPositionByFeatureId'](akj, akt[akv], akl, akm, akn, ako); + } + } + }, + 'GetVertexByDracoData': function(akw, akx) { + var aky = []; + var akz = akw['_rendererResources']['buffers']; + var akA = 'P' + doo(0x2b1) + 'N'; + var akB = akw['_decodedData'][akx + ('.' + doo(0x2b2) + '0')]; + if (Cesium['defined'](akB)) { + var akC = akB['attributes']; + if (akC['hasOwnProperty'](akA)) { + var akD = akC[akA]; + var akE = akD['quantization']; + var akF; + if (akE['quantizationBits'] <= 0x8) { + akF = new Uint8Array(akz[akD['bufferView']]['_sizeInBytes']); + } else if (akE['quantizationBits'] <= 0x10) { + akF = new Uint16Array(akz[akD['bufferView']]['_sizeInBytes'] / 0x2); + } else { + akF = new Uint32Array(akz[akD['bufferView']]['_sizeInBytes'] / 0x4); + } + akz[akD[dol(0x71f)]]['getBufferData'](akF); + var akG = akz[akD['bufferView']]['_sizeInBytes']; + var akH = akG / akD['byteStride']; + var akI = akD['byteStride'] / Cesium['ComponentDatatype']['getSizeInBytes'](akD['componentDatatype']); + var akJ = akE['range'] / (0x1 << akE['quantizationBits']); + for (var akK = 0x0; akK < akH; akK++) { + var akL = new Cesium['Cartesian3'](akE['minValues'][0x0] + akF[akK * akI] * akJ,akE['minValues'][0x1] + akF[akK * akI + 0x1] * akJ,akE['minValues'][0x2] + akF[akK * akI + 0x2] * akJ); + aky['push'](akL); + } + } + } + return aky; + }, + 'GetUvByDracoData': function(akM, akN) { + var akO = []; + var akP = akM['_rendererResources']['buffers']; + var akQ = 'T' + doo(0x2b3) + '0'; + var akR = akM['_decodedData'][akN + ('.' + doo(0x2b4) + '0')]; + if (Cesium['defined'](akR)) { + var akS = akR['attributes']; + if (akS['hasOwnProperty'](akQ)) { + var akT = akS[akQ]; + var akU = akT['quantization']; + if (akU['quantizationBits'] <= 0x8) { + arrBuffer = new Uint8Array(akP[akT['bufferView']]['_sizeInBytes']); + } else if (akU['quantizationBits'] <= 0x10) { + arrBuffer = new Uint16Array(akP[akT['bufferView']]['_sizeInBytes'] / 0x2); + } else { + arrBuffer = new Uint32Array(akP[akT['bufferView']]['_sizeInBytes'] / 0x4); + } + akP[akT['bufferView']]['getBufferData'](arrBuffer); + var akV = akP[akT['bufferView']]['_sizeInBytes']; + var akW = akV / akT['byteStride']; + var akX = akT['byteStride'] / Cesium['ComponentDatatype'][dol(0x720)](akT['componentDatatype']); + var akY = akU['range'] / (0x1 << akU['quantizationBits']); + for (var akZ = 0x0; akZ < akW; akZ++) { + var al0 = new Cesium['Cartesian2'](akU['minValues'][0x0] + arrBuffer[akZ * akX] * akY,akU['minValues'][0x1] + arrBuffer[akZ * akX + 0x1] * akY); + akO['push'](al0); + } + } + } + return akO; + }, + 'GetBatchIdByDracoData': function(al1, al2) { + var al3 = []; + var al4 = al1['_rendererResources']['buffers']; + var al5 = '_' + doo(0x2b5) + 'D'; + var al6 = al1['_decodedData'][al2 + ('.' + doo(0x2b6) + '0')]; + if (Cesium['defined'](al6)) { + var al7 = al6['attributes']; + if (al7['hasOwnProperty'](al5)) { + var al8 = al7[al5]; + al3 = new Uint16Array(al4[al8['bufferView']]['_sizeInBytes'] / 0x2); + al4[al8['bufferView']][dol(0x721)](al3); + } + } + return al3; + }, + 'GetVertexByFeatureId': function(al9, ala, alb, alc, ald, ale) { + if (!Cesium[dol(0x722)](ala)) { + return ![]; + } + if (Cesium['defined'](ala['_content']) && ala['_content']['featuresLength'] > 0x0) { + var alf = ala['_content']; + if (alf != undefined) { + var alg = cs[dol(0x723)]['GetFeatureFromContent'](alf, alb); + if (alg != -0x1 && (alg == ald || ald == -0x1)) { + var alh = alf['_model']; + if (alf[dol(0x724)] != undefined || alh['content']['_batchTable']['featuresLength'] == alh['uniformMaps']['size']) { + if (alf['_modelInstanceCollection'] != undefined) { + alh = alf['_modelInstanceCollection']['_instances'][alg]['model']; + } + return azq(alf, alh, alg, alc); + } + if (alf['_model']['loadCommand']['command']['_primitiveType'] == 0x4 || alf['_model']['isBimModel'] === 0x1) { + alh['draco'] = Cesium[dol(0x725)](alh['draco'], ![]); + var ali; + var alj; + var alk; + var alm = 0x0; + var aln = 0x0; + var alo = Cesium['ComponentDatatype']['FLOAT']; + var alp = alh['batchid2OffsetMap'][dol(0x726)](alg); + var alq = []; + if (alf['_isGlp']) { + var alr = new Uint8Array(alh['_cachedRendererResources']['buffers'][0x2]['_sizeInBytes']); + alh['_rendererResources']['buffers'][0x2]['getBufferData'](alr); + var als = alr['buffer']; + var alt = alh['_cachedRendererResources']['buffers'][0x2]['_sizeInBytes'] / Cesium['ComponentDatatype'][dol(0x727)](alo); + ali = Cesium['ComponentDatatype']['createArrayBufferView'](alo, als, 0x0, alt); + alm = alh['_cachedRendererResources']['buffers'][0x0][dol(0x728)]; + var alu = new Uint8Array(alh['_cachedRendererResources']['buffers'][0x0]['_sizeInBytes']); + alh['_rendererResources']['buffers'][0x0][dol(0x729)](alu); + var alv = alu['buffer']; + var alw = alh['_cachedRendererResources'][dol(0x72a)][0x0]['_sizeInBytes'] / Cesium['ComponentDatatype']['getSizeInBytes'](alm); + alj = Cesium['ComponentDatatype'][dol(0x72b)](alm, alv, 0x0, alw); + } else { + if (alh['isInstanced']) { + aln = alp[0x0]; + alq = alh['batchid2OffsetMap']['get'](aln); + } + if (alh['draco']) { + ali = cs['funcPublic']['GetVertexByDracoData'](alh, aln); + } else { + var alr = new Uint8Array(alh[dol(0x72c)]['buffers'][0x0]['_sizeInBytes']); + alh['_rendererResources']['buffers'][0x0]['getBufferData'](alr); + var als = alr['buffer']; + var alt = alh['_cachedRendererResources']['buffers'][0x0][dol(0x72d)] / Cesium['ComponentDatatype']['getSizeInBytes'](alo); + ali = Cesium['ComponentDatatype']['createArrayBufferView'](alo, als, 0x0, alt); + } + var alA = 0x2; + if (alh[dol(0x72e)]) { + alA = alh['_decodedData'][aln + ('.' + doo(0x2b7) + '0')]['bufferView']; + } else { + alA = cs['funcPublic'][dol(0x72f)](alh['_cachedRendererResources']['buffers']); + } + alm = alh['_cachedRendererResources']['buffers'][alA]['indexDatatype']; + var alu = new Uint8Array(alh['_cachedRendererResources'][dol(0x730)][alA]['_sizeInBytes']); + alh['_rendererResources']['buffers'][alA]['getBufferData'](alu); + var alv = alu['buffer']; + var alw = alh['_cachedRendererResources']['buffers'][alA]['_sizeInBytes'] / Cesium['ComponentDatatype']['getSizeInBytes'](alm); + if (alh[dol(0x731)]) { + alj = Cesium['ComponentDatatype']['createArrayBufferView'](alm, alv, alq[0x2], alq[0x3]); + } else { + alj = Cesium['ComponentDatatype']['createArrayBufferView'](alm, alv, 0x0, alw); + } + if (alh['draco']) { + alk = cs['funcPublic']['GetBatchIdByDracoData'](alh, aln); + } else { + var alE = 0x3; + if (alh['tileset']['isBimModel'] === 0x1 || isEmpty(alh['_rendererResources'][dol(0x732)][alE])) { + alE = 0x2; + } + alk = new Uint16Array(alh['_rendererResources']['buffers'][alE]['_sizeInBytes'] / 0x2); + alh['_rendererResources']['buffers'][alE]['getBufferData'](alk); + } + } + var alF = alf['_batchTable']['getBatchIdMatrix'](alg); + if (alh['isInstanced']) { + let alG = new Cesium['Matrix4'](); + alh['getObjectMatrix'](alg)['clone'](alG); + alF = Cesium['Matrix4'][dol(0x733)](alF, alG, new Cesium['Matrix4']()); + } + if (alh['draco']) { + for (var alH = 0x0; alH < alj['length']; alH++) { + if (alk[alj[alH]] == (alh['isInstanced'] ? aln : alg)) { + var alI = Cesium['clone'](ali[alj[alH]]); + if (ale == undefined) { + Cesium['Matrix4']['multiplyByPoint'](alF, alI, alI); + } + alc[dol(0x734)](alI['x']); + alc['push'](alI['y']); + alc['push'](alI['z']); + } + } + } else { + if (alh['isInstanced']) { + var alJ = []; + var alK = []; + for (var alH = 0x0; alH < alk['length']; alH++) { + if (alk[alH] == aln) { + var alM = new Cesium['Cartesian3'](ali[alH * 0x3],ali[alH * 0x3 + 0x1],ali[alH * 0x3 + 0x2]); + alK[dol(0x735)](alM); + alJ['push'](alk[alH]); + } + } + for (var alH = 0x0; alH < alj[dol(0x736)]; alH++) { + if (alJ[alj[alH]] == aln) { + var alI = Cesium['clone'](alK[alj[alH]]); + if (ale == undefined) { + Cesium['Matrix4']['multiplyByPoint'](alF, alI, alI); + } + alc[dol(0x737)](alI['x']); + alc['push'](alI['y']); + alc[dol(0x738)](alI['z']); + } + } + } else { + var alK = []; + for (var alH = 0x0; alH < alk['length']; alH++) { + var alM = new Cesium['Cartesian3'](ali[alH * 0x3],ali[alH * 0x3 + 0x1],ali[alH * 0x3 + 0x2]); + alK['push'](alM); + } + for (var alH = 0x0; alH < alj['length']; alH++) { + if (alk[alj[alH]] == (alh['isInstanced'] ? aln : alg)) { + var alI = Cesium['clone'](alK[alj[alH]]); + if (ale == undefined) { + Cesium['Matrix4']['multiplyByPoint'](alF, alI, alI); + } + alc['push'](alI['x']); + alc['push'](alI['y']); + alc['push'](alI['z']); + } + } + } + } + } + } + } + } + var alU = ala['children']; + if (Cesium[dol(0x739)](alU)) { + var alV = alU['length']; + for (var alW = 0x0; alW < alV; ++alW) { + cs['funcPublic']['GetVertexByFeatureId'](al9, alU[alW], alb, alc, ald, ale); + } + } + }, + 'GetUVByFeatureId': function(alX, alY, alZ, am0) { + if (!Cesium['defined'](alY)) { + return ![]; + } + if (Cesium['defined'](alY['_content']) && alY['_content']['featuresLength'] > 0x0) { + var am1 = alY[dol(0x73a)]; + if (am1 != undefined) { + var am2 = cs['funcPublic']['GetFeatureFromContent'](am1, alZ); + if (am2 != -0x1) { + if (am1['_model']['loadCommand']['command']['_primitiveType'] == 0x4 || am1['_model']['isBimModel'] === 0x1) { + var am3 = am1['_model']; + am3['draco'] = Cesium['defaultValue'](am3['draco'], ![]); + var am4; + var am5; + var am6; + var am7 = 0x0; + var am8 = 0x0; + var am9 = Cesium['ComponentDatatype']['FLOAT']; + var ama = am3['batchid2OffsetMap']['get'](am2); + var amb = []; + if (am3['isInstanced']) { + am8 = ama[0x0]; + amb = am3['batchid2OffsetMap']['get'](am8); + } + if (am3['draco']) { + am4 = cs['funcPublic']['GetUvByDracoData'](am3, am8); + } else { + var amc = new Uint8Array(am3['_rendererResources']['buffers'][0x1]['_sizeInBytes']); + am3['_rendererResources']['buffers'][0x1]['getBufferData'](amc); + var ame = amc['buffer']; + var amf = am3['_rendererResources']['buffers'][0x1]['_sizeInBytes'] / Cesium['ComponentDatatype']['getSizeInBytes'](am9); + am4 = Cesium['ComponentDatatype']['createArrayBufferView'](am9, ame, 0x0, amf); + } + var amg = 0x2; + if (am3['draco']) { + amg = am3['_decodedData'][am8 + ('.' + doo(0x2b8) + '0')]['bufferView']; + } else { + amg = cs['funcPublic']['GetIndicesIndex'](am3['_cachedRendererResources']['buffers']); + } + am7 = am3['_cachedRendererResources']['buffers'][amg]['indexDatatype']; + var amh = new Uint8Array(am3['_cachedRendererResources']['buffers'][amg]['_sizeInBytes']); + am3['_rendererResources']['buffers'][amg]['getBufferData'](amh); + var ami = amh['buffer']; + var amj = am3['_cachedRendererResources']['buffers'][amg][dol(0x73b)] / Cesium[dol(0x73c)]['getSizeInBytes'](am7); + if (am3['isInstanced']) { + am5 = Cesium['ComponentDatatype']['createArrayBufferView'](am7, ami, amb[0x2], amb[0x3]); + } else { + am5 = Cesium['ComponentDatatype']['createArrayBufferView'](am7, ami, 0x0, amj); + } + if (am3['draco']) { + am6 = cs['funcPublic']['GetBatchIdByDracoData'](am3, am8); + } else { + var amk = 0x3; + if (am3['tileset']['isBimModel'] === 0x1) { + amk = 0x2; + } + am6 = new Uint16Array(am3['_rendererResources']['buffers'][amk]['_sizeInBytes'] / 0x2); + am3['_rendererResources']['buffers'][amk]['getBufferData'](am6); + } + var aml = am1['_batchTable'][dol(0x73d)](am2); + if (am3['isInstanced']) { + let amm = new Cesium['Matrix4'](); + am3[dol(0x73e)](am2)['clone'](amm); + aml = Cesium['Matrix4']['multiplyTransformation'](aml, amm, new Cesium[(dol(0x73f))]()); + } + if (am3['draco']) { + for (var amn = 0x0; amn < am5['length']; amn++) { + if (am6[am5[amn]] == (am3['isInstanced'] ? am8 : am2)) { + var amo = Cesium['clone'](am4[am5[amn]]); + am0['push'](amo['x']); + am0['push'](amo['y']); + } + } + } else { + if (am3['isInstanced']) { + var amp = []; + var amq = []; + for (var amn = 0x0; amn < am6['length']; amn++) { + if (am6[amn] == am8) { + var ams = new Cesium['Cartesian2'](am4[amn * 0x2],am4[amn * 0x2 + 0x1]); + amq['push'](ams); + amp['push'](am6[amn]); + } + } + for (var amn = 0x0; amn < am5['length']; amn++) { + if (amp[am5[amn]] == am8) { + var amo = Cesium['clone'](amq[am5[amn]]); + am0['push'](amo['x']); + am0['push'](amo['y']); + } + } + } else { + var amq = []; + for (var amn = 0x0; amn < am6['length']; amn++) { + var ams = new Cesium['Cartesian2'](am4[amn * 0x2],am4[amn * 0x2 + 0x1]); + amq['push'](ams); + } + for (var amn = 0x0; amn < am5['length']; amn++) { + if (am6[am5[amn]] == (am3['isInstanced'] ? am8 : am2)) { + var amo = Cesium['clone'](amq[am5[amn]]); + am0['push'](amo['x']); + am0['push'](amo['y']); + } + } + } + } + } + } + } + } + var amA = alY['children']; + if (Cesium['defined'](amA)) { + var amB = amA['length']; + for (var amC = 0x0; amC < amB; ++amC) { + cs['funcPublic']['GetUVByFeatureId'](alX, amA[amC], alZ, am0); + } + } + }, + 'GetFaceNormalByFeatureId': function(amD, amE, amF, amG, amH, amI, amJ) { + var amK = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], amK); + var amL = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](amK, amH['position'], amL); + var amM = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](amK, amI, amM); + var amN = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](amL, amM, amN); + Cesium['Cartesian3']['normalize'](amN, amN); + var amO = []; + cs[dol(0x740)]['GetVertexByFeatureId'](amD, amE, amF, amO, amG); + var amP = []; + for (i = 0x0; i < amO['length'] / 0x3; i++) { + var amQ = new Cesium['Cartesian3'](amO[i * 0x3],amO[i * 0x3 + 0x1],amO[i * 0x3 + 0x2]); + amP['push'](amQ); + } + for (i = 0x0; i < amP['length'] / 0x3; i++) { + if (cs['funcPublic']['intersectsTriangle'](amN, amM, amP[i * 0x3], amP[i * 0x3 + 0x1], amP[i * 0x3 + 0x2])) { + amJ['push'](amP[i * 0x3]); + amJ['push'](amP[i * 0x3 + 0x1]); + amJ['push'](amP[i * 0x3 + 0x2]); + } + } + }, + 'intersectsTriangle': function(amR, amS, amT, amU, amV) { + var amW = !![]; + var amX = ![]; + var amY = 0.000001; + var amZ = Cesium['Cartesian3']['subtract'](amU, amT, new Cesium['Cartesian3']()); + var an0 = Cesium['Cartesian3']['subtract'](amV, amT, new Cesium['Cartesian3']()); + var an1 = Cesium['Cartesian3']['cross'](amR, an0, new Cesium['Cartesian3']()); + var an2 = Cesium[dol(0x741)][dol(0x742)](amZ, an1); + if ((!amW || an2 <= amY) && (!amX || an2 >= -amY)) + return ![]; + var an3 = 0x1 / an2; + var an4 = Cesium['Cartesian3']['subtract'](amS, amT, new Cesium['Cartesian3']()); + var an5 = Cesium['Cartesian3']['dot'](an4, an1) * an3; + if (an5 < 0x0 || an5 > 0x1) + return ![]; + var an6 = Cesium['Cartesian3']['cross'](an4, amZ, new Cesium['Cartesian3']()); + var an7 = Cesium['Cartesian3']['dot'](amR, an6) * an3; + if (an7 < 0x0 || an5 + an7 > 0x1) + return ![]; + var an8 = Cesium['Cartesian3']['dot'](an0, an6) * an3; + if (an8 < 0x0) + return ![]; + return !![]; + }, + 'SetStateByFeatureIds': function(an9, ana, anb, anc) { + if (!Cesium[dol(0x743)](ana)) { + return ![]; + } + if (Cesium['defined'](ana['_content']) && Cesium['defined'](ana['_content']['featuresLength']) && ana['_content']['featuresLength'] > 0x0) { + var and = ana['_content']; + if (and != undefined) { + var ane = cs['funcPublic'][dol(0x744)](and, anb); + var anf = and['_batchTable']; + if (ane['size'] > 0x0) { + ane['forEach'](function(ang, anh) { + anf['setBatchIdTopRenderState'](ang, anc); + }); + and['_isTopRender'] = !![]; + } + } + } + var ani = ana['children']; + if (Cesium['defined'](ani)) { + var anj = ani[dol(0x745)]; + for (var ank = 0x0; ank < anj; ++ank) { + cs[dol(0x746)]['SetStateByFeatureIds'](an9, ani[ank], anb, anc); + } + } + }, + 'GetAllTilesetFeatureId': function(anl, anm, ann, ano) { + if (!Cesium['defined'](anm)) { + return ![]; + } + if (!Cesium['defined'](ann)) { + return ![]; + } + if (Cesium[dol(0x747)](anm['_content']) && Cesium['defined'](anm['_content']['featuresLength']) && anm['_content']['featuresLength'] > 0x0) { + var anp = anm['_content']; + if (anp != undefined) { + var anq = anp[dol(0x748)]['_properties']['name']; + for (k = 0x0; k < anq['length']; ++k) { + var anr = anq[k]; + ano['push'](ann + '^' + anr); + } + } + } + var ans = anm['children']; + if (Cesium[dol(0x749)](ans)) { + var ant = ans['length']; + for (var anu = 0x0; anu < ant; ++anu) { + cs['funcPublic']['GetAllTilesetFeatureId'](anl, ans[anu], ann, ano); + } + } + }, + 'GetTileByFeatureId': function(anv, anw, anx, any, anz) { + if (!Cesium['defined'](anw)) { + return ![]; + } + if (!Cesium['defined'](anx)) { + return ![]; + } + if (Cesium['defined'](anw['_content']) && Cesium['defined'](anw['_content']['featuresLength']) && anw['_content']['featuresLength'] > 0x0) { + var anA = anw['_content']; + if (anA != undefined) { + var anB = anA['_batchTable']['_properties']['name']; + for (k = 0x0; k < anB['length']; ++k) { + var anC = anB[k]; + if (any['indexOf'](anx + '^' + anC) > -0x1) { + anz['set'](anC, anw); + } + } + } + } + var anD = anw['children']; + if (Cesium['defined'](anD)) { + var anE = anD['length']; + for (var anF = 0x0; anF < anE; ++anF) { + cs['funcPublic'][dol(0x74a)](anv, anD[anF], anx, any, anz); + } + } + }, + 'pickPosition': function(anG, anH) { + anH['scene']['globe']['depthTestAgainstTerrain'] = !![]; + var anI = undefined; + var anJ = cs['PositionType']['NONE']; + if (anH['scene']['mode'] !== Cesium['SceneMode']['MORPHING']) { + var anK = anH['scene'][dol(0x74b)](anG); + if (anH['scene']['pickPositionSupported'] && Cesium['defined'](anK)) { + anI = anH[dol(0x74c)]['pickPosition'](anG); + if (anK['primitive']instanceof Cesium['Label']) {} + if (anK['primitive']instanceof Cesium['Billboard'] || anK['primitive']instanceof Cesium[dol(0x74d)]) { + if (anK['primitive']['id']['name'] == doj(0xc6)) { + anI = anK['primitive'][dol(0x74e)]; + } + } + if (anK['primitive']instanceof Cesium['PointPrimitive']) { + anI = anK['primitive']['position']; + } + if (Cesium['defined'](anI)) { + anJ = cs['PositionType']['ON_MODEL']; + } + } else { + if (anH['terrainProvider']instanceof Cesium['EllipsoidTerrainProvider']) + anI = anH['camera']['pickEllipsoid'](anG, anH['scene']['globe']['ellipsoid']); + else { + var anL = anH['scene']['camera']['getPickRay'](anG); + if (anH[dol(0x74f)]['globe']) + anI = anH['scene']['globe']['pick'](anL, anH['scene']); + } + if (Cesium[dol(0x750)](anI)) { + anJ = cs['PositionType']['ON_TERRAIN']; + } + } + } + if (anI) { + return { + 'type': anJ, + 'position': anI + }; + } else { + return { + 'type': anJ, + 'position': anI + }; + } + }, + 'getCartesian3ListCenter': function(anM) { + var anN = Number[dol(0x751)]; + var anO = Number['MAX_VALUE']; + var anP = Number['MAX_VALUE']; + var anQ = -Number['MAX_VALUE']; + var q = -Number['MAX_VALUE']; + var anS = -Number['MAX_VALUE']; + if (anM['length'] == 0x0) { + return undefined; + } else { + for (var anT = 0x0; anT < anM['length']; anT++) { + if (anM[anT]['x'] < anN) { + anN = anM[anT]['x']; + } + if (anM[anT]['y'] < anO) { + anO = anM[anT]['y']; + } + if (anM[anT]['z'] < anP) { + anP = anM[anT]['z']; + } + if (anM[anT]['x'] > anQ) { + anQ = anM[anT]['x']; + } + if (anM[anT]['y'] > q) { + q = anM[anT]['y']; + } + if (anM[anT]['z'] > anS) { + anS = anM[anT]['z']; + } + } + var anU = new Cesium['Cartesian3']((anQ + anN) / 0x2,(q + anO) / 0x2,(anS + anP) / 0x2); + return anU; + } + }, + 'round': function(anV, anW) { + if (anV >= 0x0) { + var anX = parseInt(anV * Math['pow'](0xa, anW) + 0.5) / Math['pow'](0xa, anW); + return anX; + } else { + var anY = -anV; + var anX = parseInt(anY * Math['pow'](0xa, anW) + 0.5) / Math['pow'](0xa, anW); + return -anX; + } + }, + 'calcArea3D': function(ao0) { + var ao1, ao2, ao3; + ao1 = ao0['length']; + ao2 = Cesium['clone'](ao0, !![]); + ao2['push'](ao0[0x0]); + ao2['push'](ao0[0x1]); + var ao4 = new Cesium['Cartesian3'](); + var q = Cesium['Cartesian3']['subtract'](ao0[0x1], ao0[0x0], new Cesium['Cartesian3']()); + var ao6 = Cesium['Cartesian3']['subtract'](ao0[0x2], ao0[0x1], new Cesium['Cartesian3']()); + ao3 = Cesium['Cartesian3']['cross'](q, ao6, new Cesium['Cartesian3']()); + ao3 = Cesium[dol(0x752)][dol(0x753)](ao3, new Cesium['Cartesian3']()); + var ao7 = 0x0; + var ao8, ao9, aoa, aob; + var aoc; + var aod, aoe, aof; + ao9 = ao3['x'] > 0x0 ? ao3['x'] : -ao3['x']; + aoa = ao3['y'] > 0x0 ? ao3['y'] : -ao3['y']; + aob = ao3['z'] > 0x0 ? ao3['z'] : -ao3['z']; + aoc = 0x3; + if (ao9 > aoa) { + if (ao9 > aob) + aoc = 0x1; + } else if (aoa > aob) + aoc = 0x2; + for (aod = 0x1, + aoe = 0x2, + aof = 0x0; aod <= ao1; aod++, + aoe++, + aof++) { + switch (aoc) { + case 0x1: + ao7 += ao2[aod]['y'] * (ao2[aoe]['z'] - ao2[aof]['z']); + continue; + case 0x2: + ao7 += ao2[aod]['x'] * (ao2[aoe]['z'] - ao2[aof]['z']); + continue; + case 0x3: + ao7 += ao2[aod]['x'] * (ao2[aoe]['y'] - ao2[aof]['y']); + continue; + } + } + ao8 = Math['sqrt'](ao9 * ao9 + aoa * aoa + aob * aob); + switch (aoc) { + case 0x1: + ao7 *= ao8 / (0x2 * ao9); + break; + case 0x2: + ao7 *= ao8 / (0x2 * aoa); + break; + case 0x3: + ao7 *= ao8 / (0x2 * aob); + } + return ao7; + }, + 'getCenter': function(aog, aoh) { + var aoi = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['add'](aog, aoh, aoi); + Cesium['Cartesian3']['multiplyByScalar'](aoi, 0.5, aoi); + return aoi; + }, + 'createModelVolume': function(aoj, aok) { + var aol = aoj['root']['boundingVolume']['_orientedBoundingBox']; + var aom = Cesium['Matrix4']['fromRotationTranslation'](aol['halfAxes'], aol['center'], new Cesium['Matrix4']()); + var aon = new Cesium['GeometryInstance']({ + 'geometry': Cesium['BoxOutlineGeometry']['fromDimensions']({ + 'dimensions': new Cesium[(dol(0x754))](0x2,0x2,0x2) + }), + 'modelMatrix': aom, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](aok) + } + }); + return new Cesium['Primitive']({ + 'geometryInstances': aon, + 'appearance': new Cesium['PerInstanceColorAppearance']({ + 'translucent': ![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + }, + 'createModelVolumeOld': function(aoo, aop) { + var aoq = []; + var aor = aoo['tilesetoutline']['positions']; + for (var q = 0x0; q < aor['length'] / 0x3; q++) { + var aot = new Cesium['Cartesian3'](aor[q * 0x3],aor[q * 0x3 + 0x1],aor[q * 0x3 + 0x2]); + aoq['push'](aot); + } + var aou = new Cesium['RectangleOutlineGeometry']({ + 'rectangle': Cesium['Rectangle']['fromCartesianArray'](aoq), + 'height': aoo['tilesetoutline']['minimumHeight'], + 'extrudedHeight': aoo['tilesetoutline']['maximumHeight'] + }); + aou = Cesium['RectangleOutlineGeometry']['createGeometry'](aou); + var aov = new Cesium['GeometryInstance']({ + 'id': aoo['id'], + 'geometry': aou, + 'modelMatrix': aoo['modelMatrix'], + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](aop) + } + }); + return new Cesium['Primitive']({ + 'geometryInstances': aov, + 'appearance': new Cesium['PerInstanceColorAppearance']({ + 'translucent': ![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + }, + 'min': function(aow, aox) { + aow['x'] = Math['min'](aow['x'], aox['x']); + aow['y'] = Math['min'](aow['y'], aox['y']); + aow['z'] = Math['min'](aow['z'], aox['z']); + return aow; + }, + 'max': function(aoy, aoz) { + aoy['x'] = Math['max'](aoy['x'], aoz['x']); + aoy['y'] = Math['max'](aoy['y'], aoz['y']); + aoy['z'] = Math['max'](aoy['z'], aoz['z']); + return aoy; + }, + 'updateModelShowStyle': function(aoA, aoB, aoC, aoD) { + if (!aoA['show']) + aoA['show'] = !![]; + if (isEmpty(aoA['style'])) + aoA['style'] = new Cesium['Cesium3DTileStyle'](); + var aoE = aoA['style']; + aoA['otherFeatureVisible'] = aoC; + aoE['show'] = { + 'evaluate': function(aoF) { + if (!Cesium['defined'](aoF)) { + if (Cesium['defined'](aoC)) { + return aoC; + } + } + if (aoF instanceof Cesium['Cesium3DTileFeature']) { + var aoG = aoF['getProperty']('n' + doo(0x2b9) + 'e'); + if (aoB['has'](aoG)) { + var aoH = aoB['get'](aoG); + return aoH['show']; + } + if (Cesium['defined'](aoC)) { + return aoC; + } else { + return aoF['show']; + } + } + } + }; + aoA['style'] = aoE; + if (!aoD) + aoA['_viewer']['scene']['requestRender'](); + }, + 'updateEntityFeatureColor': function(aoI, aoJ, aoK, aoL) { + if (aoL == undefined) + return; + var aoM = aoL['entities']['getById'](aoI); + if (aoM != undefined) { + if (aoM['polylineVolume'] != undefined) { + aoM['polylineVolume']['material'] = aoJ; + } else if (aoM['cylinder'] != undefined) { + aoM['cylinder']['material'] = aoJ; + } else if (aoM['box'] != undefined) { + aoM['box'][dol(0x755)] = aoJ; + } + } + aoK['scene'][dol(0x756)](); + }, + 'updateEntityColor': function(aoN, aoO) { + if (aoN[dol(0x757)] == 0x0) + return; + var aoN = aoN[0x0]['entities']['_entities']['_array']; + for (var aoQ = 0x0; aoQ < aoN['length']; aoQ++) { + var aoR = aoN[aoQ]; + if (aoR != undefined) { + if (aoR['polylineVolume'] != undefined) { + aoR['polylineVolume']['material'] = aoO; + } else if (aoR['cylinder'] != undefined) { + aoR['cylinder']['material'] = aoO; + } else if (aoR['box'] != undefined) { + aoR['box'][dol(0x758)] = aoO; + } + } + } + }, + 'updateEntityAlpha': function(aoS, aoT, aoU) { + if (aoS['length'] == 0x0) + return; + var aoS = aoS[0x0]['entities']['_entities'][dol(0x759)]; + for (var aoW = 0x0; aoW < aoS['length']; aoW++) { + var aoX = aoS[aoW]; + if (aoU['indexOf']('#' + aoX['_id']) == -0x1) { + if (aoX[dol(0x75a)] != undefined) { + var aoY = aoX; + var aoZ = Cesium[dol(0x75b)]['fromRandom']({ + 'red': aoY['polylineVolume']['originalColor']['red'], + 'green': aoY['polylineVolume'][dol(0x75c)]['green'], + 'blue': aoY['polylineVolume']['originalColor']['blue'], + 'alpha': aoT + }); + aoY['polylineVolume']['material'] = aoZ; + } else if (aoX['cylinder'] != undefined) { + var aoY = aoX; + var aoZ = Cesium['Color']['fromRandom']({ + 'red': aoY['cylinder']['originalColor']['red'], + 'green': aoY['cylinder']['originalColor']['green'], + 'blue': aoY['cylinder']['originalColor']['blue'], + 'alpha': aoT + }); + aoY['cylinder']['material'] = aoZ; + } else if (aoX['box'] != undefined) { + var aoY = aoX; + var aoZ = Cesium['Color']['fromRandom']({ + 'red': aoY['box']['originalColor']['red'], + 'green': aoY['box']['originalColor']['green'], + 'blue': aoY['box']['originalColor']['blue'], + 'alpha': aoT + }); + aoY['box']['material'] = aoZ; + } + } + } + }, + 'clearEntityColor': function(ap4) { + if (ap4['length'] == 0x0) + return; + var ap4 = ap4[0x0]['entities']['_entities']['_array']; + for (var ap6 = 0x0; ap6 < ap4['length']; ap6++) { + var ap7 = ap4[ap6]; + if (ap7['polylineVolume'] != undefined) { + var ap8 = ap7; + var ap9 = Cesium['Color']['fromRandom']({ + 'red': ap8['polylineVolume']['originalColor']['red'], + 'green': ap8['polylineVolume']['originalColor']['green'], + 'blue': ap8['polylineVolume'][dol(0x75d)]['blue'], + 'alpha': ap8[dol(0x75e)][dol(0x75f)]['alpha'] + }); + ap8['polylineVolume']['material'] = ap9; + } else if (ap7['cylinder'] != undefined) { + var ap8 = ap7; + var ap9 = Cesium[dol(0x760)]['fromRandom']({ + 'red': ap8['cylinder']['originalColor']['red'], + 'green': ap8['cylinder']['originalColor']['green'], + 'blue': ap8['cylinder']['originalColor']['blue'], + 'alpha': ap8['cylinder']['originalColor']['alpha'] + }); + ap8['cylinder']['material'] = ap9; + } else if (ap7['box'] != undefined) { + var ap8 = ap7; + var ap9 = Cesium['Color']['fromRandom']({ + 'red': ap8['box']['originalColor']['red'], + 'green': ap8['box']['originalColor']['green'], + 'blue': ap8['box']['originalColor']['blue'], + 'alpha': ap8['box']['originalColor']['alpha'] + }); + ap8['box']['material'] = ap9; + } + } + }, + 'updateCadBg': function() { + var ape = cs['Model']['getModelsCenter'](); + var apf = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['clone'](ape['center'], apf); + var apg = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](cs['tileset']['root']['transform'], apg); + Cesium[dol(0x761)]['multiplyByPoint'](apg, apf, apf); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root'][dol(0x762)], apf, apf); + if (cs['viewer']['entities']['getById']('C' + doo(0x2ba) + 'G')) { + cs['viewer']['entities'][dol(0x763)]('C' + doo(0x2bb) + 'G'); + } + cs['Public']['drawPlane'](apf, 'C' + doo(0x2bc) + 'G', ape['radius'] * cr, ape[dol(0x764)] * cr); + }, + 'updateModelStyle': function(aph, apj) { + if (isEmpty(aph['style'])) + aph['style'] = new Cesium['Cesium3DTileStyle'](); + var apk = aph['style']; + apk['color'] = { + 'evaluateColor': function(apl, apm) { + if (!Cesium['defined'](apl)) { + return Cesium[dol(0x765)]['fromCssColorString'](aph['stylecolor']); + } + if (apl instanceof Cesium['Cesium3DTileFeature']) { + var apn = apl['getProperty']('n' + doo(0x2bd) + 'e'); + if (Cesium['defined'](apj) && apj['has'](apn)) { + var apo = apj['get'](apn); + return Cesium['Color'][dol(0x766)](apo['color']); + } + return Cesium['Color']['fromCssColorString'](aph['stylecolor']); + } + } + }; + aph['style'] = apk; + aph[dol(0x767)]['scene']['requestRender'](); + }, + 'getTerrainHeight': function(app, apq, apr) { + var aps = 0x0; + var apt = Cesium['Cartographic']['fromCartesian'](app); + var apu = [Cesium['Cartographic']['fromDegrees'](apt['longitude'] / Math['PI'] * 0xb4, apt['latitude'] / Math['PI'] * 0xb4)]; + var apv = Cesium['sampleTerrainMostDetailed'](apq['scene']['terrainProvider'], apu); + Cesium[dol(0x768)](apv, function(apw) { + aps = apw[0x0]['height']; + apr(aps); + }); + }, + 'outCartesian3ToRadian': function(apx, apy) { + var apz = cs['funcPublic']['cartesian3ToCartographic'](apx, apy); + return [apz[dol(0x769)], apz['latitude'], apz['height']]; + }, + 'outCartesian3ToRadianArr': function(apA, apB) { + var apC = []; + for (var apD = 0x0; apD < apA['length']; apD++) { + var apE = cs['funcPublic']['cartesian3ToCartographic'](apA[apD], apB); + apC['push']([apE[dol(0x76a)], apE['latitude'], apE['height']]); + } + return apC; + }, + 'inputRadianToCartesian3': function(apF, apG) { + if (Cesium['defined'](apF) && Array['isArray'](apF) && apF['length'] == 0x3) { + return cs['funcPublic']['cartographicToCartesian3Three'](Number(apF[0x0]), Number(apF[0x1]), Number(apF[0x2]), apG); + } + console['error'](doj(0xc7)); + return undefined; + }, + 'inputRadianArrToCartesian3Arr': function(apH, apI) { + var apJ = []; + for (var apK = 0x0; apK < apH['length']; apK++) { + if (Cesium['defined'](apH[apK]) && Array['isArray'](apH[apK]) && apH[apK][dol(0x76b)] == 0x3) { + apJ['push'](cs['funcPublic']['cartographicToCartesian3Three'](Number(apH[apK][0x0]), Number(apH[apK][0x1]), Number(apH[apK][0x2]), apI)); + } + } + return apJ; + }, + 'calculateVertex': function(apL, apM, cs) { + var apO = cs[dol(0x76c)]['scene']['pick'](apL); + if (apO && Cesium['defined'](apO) && apO instanceof Cesium[dol(0x76d)]) { + var apP = apO['getProperty']('n' + doo(0x2be) + 'e'); + if (!Cesium['defined'](apP)) { + apP = apO[dol(0x76e)](doh(0x3f)); + } + cs['m_model']['forEach'](function(apQ, apR) { + if (apQ['id'] === apO['tileset']['id']) { + cs['tileset'] = apQ; + apP = apR + '^' + apP; + } + }); + var apS = Cesium['Cartesian3']['distance'](cs['viewer']['camera']['position'], apM) / 0xa; + apS = apS < 0x1 ? 0x1 : apS; + var apT = 0.02 * apS; + var apU = cs[dol(0x76f)]['getVertex'](apP); + if (apU['length'] > 0x0) { + var apV = []; + var apW = !isEmpty(cs['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](cs['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var apX = cs['tileset']['root']['transform']; + for (var q = 0x0; q < apU[dol(0x770)] / 0x3; q++) { + var apZ = new Cesium['Cartesian3'](apU[q * 0x3],apU[q * 0x3 + 0x1],apU[q * 0x3 + 0x2]); + if (apZ) { + Cesium[dol(0x771)]['multiplyByPoint'](apX, apZ, apZ); + Cesium['Matrix4']['multiplyByPoint'](apW, apZ, apZ); + } + var aq0 = Cesium['Cartesian3']['subtract'](apM, apZ, new Cesium['Cartesian3']()); + if (cs['EditViewMode'] == doh(0x40)) { + if (Math[dol(0x772)](aq0['x']) < apT && Math['abs'](aq0['y']) < apT) { + apV['push'](apZ); + } + } else { + if (Math['abs'](aq0['x']) < apT && Math['abs'](aq0['y']) < apT && Math['abs'](aq0['z']) < apT) { + apV['push'](apZ); + } + } + } + var aq1 = undefined; + for (var q = 0x0; q < apV['length']; q++) { + var aq3 = Cesium['Cartesian3']['distance'](apM, apV[q]); + if (aq3 < apT) { + apT = aq3; + aq1 = apV[q]; + } + } + return aq1; + } + } + return undefined; + }, + 'getDistance': function(aq4) { + var aq5 = 0x0; + for (var aq6 = 0x1; aq6 < aq4['length']; ++aq6) { + aq5 += Cesium['Cartesian3']['distance'](aq4[aq6 - 0x1], aq4[aq6]); + } + return aq5; + }, + 'ClearMeasuringline': function(aq7, aq8) { + aq8['entities']['removeById'](aq7 + ('l' + doo(0x2bf) + 'g') + 'l'); + aq8['entities']['removeById'](aq7 + ('l' + doo(0x2c0) + 'g') + 'r'); + aq8['entities']['removeById'](aq7 + ('l' + doo(0x2c1) + 'g') + ('l' + doo(0x2c2) + 'e')); + aq8['entities']['removeById'](aq7 + ('l' + doo(0x2c3) + 'g') + ('l' + doo(0x2c4) + 'w')); + aq8['entities']['removeById'](aq7 + ('l' + doo(0x2c5) + 'g') + ('r' + doo(0x2c6) + 'w')); + aq8['entities']['removeById'](aq7 + ('w' + doo(0x2c7) + 'h') + 'l'); + aq8['entities']['removeById'](aq7 + ('w' + doo(0x2c8) + 'h') + 'r'); + aq8[dol(0x773)]['removeById'](aq7 + ('w' + doo(0x2c9) + 'h') + ('l' + doo(0x2ca) + 'e')); + aq8['entities']['removeById'](aq7 + ('w' + doo(0x2cb) + 'h') + ('l' + doo(0x2cc) + 'w')); + aq8['entities']['removeById'](aq7 + ('w' + doo(0x2cd) + 'h') + ('r' + doo(0x2ce) + 'w')); + aq8['entities']['removeById'](aq7 + ('h' + doo(0x2cf) + 't') + 'l'); + aq8['entities']['removeById'](aq7 + ('h' + doo(0x2d0) + 't') + 'r'); + aq8['entities']['removeById'](aq7 + ('h' + doo(0x2d1) + 't') + ('l' + doo(0x2d2) + 'e')); + aq8['entities']['removeById'](aq7 + ('h' + doo(0x2d3) + 't') + ('l' + doo(0x2d4) + 'w')); + aq8['entities']['removeById'](aq7 + ('h' + doo(0x2d5) + 't') + ('r' + doo(0x2d6) + 'w')); + }, + 'clearBOX23line': function(aq9) { + aq9['entities']['removeById']('b' + doo(0x2d7) + '1'); + aq9['entities']['removeById']('b' + doo(0x2d8) + '2'); + aq9['entities']['removeById']('b' + doo(0x2d9) + '3'); + aq9['entities']['removeById']('b' + doo(0x2da) + '4'); + aq9['entities']['removeById']('b' + doo(0x2db) + '5'); + aq9['entities']['removeById']('b' + doo(0x2dc) + '6'); + aq9['entities']['removeById']('b' + doo(0x2dd) + '7'); + aq9['entities']['removeById']('b' + doo(0x2de) + '8'); + aq9['entities']['removeById']('b' + doo(0x2df) + '9'); + aq9['entities']['removeById']('b' + doo(0x2e0) + '0'); + aq9['entities']['removeById']('b' + doo(0x2e1) + '1'); + aq9['entities']['removeById']('b' + doo(0x2e2) + '2'); + }, + 'CreateMeasuringline': function(aqa, aqb, aqc, aqd, aqe, aqf) { + var aqg = aqb['clone'](); + aqg['z'] += aqc['clone']()['z'] / 0x2; + aqg['x'] -= aqc['clone']()['x'] / 0x2; + aqg['y'] -= aqc['clone']()['y'] / 0x2; + var aqh = aqg['clone'](); + aqh['y'] -= 0x2; + var aqi = cs['funcPublic']['GetWorldCoordinatesPos'](aqg, aqd, aqe); + var aqj = cs['funcPublic']['GetWorldCoordinatesPos'](aqh, aqd, aqe); + cs[dol(0x774)]['drawLineByModelCartesian3'](aqa + ('l' + doo(0x2e3) + 'l'), aqi, aqj, 0x2, aqf); + var aqk = aqb['clone'](); + aqk['z'] += aqc['clone']()['z'] / 0x2; + aqk['x'] += aqc['clone']()['x'] / 0x2; + aqk['y'] -= aqc['clone']()['y'] / 0x2; + var aql = aqk['clone'](); + aql['y'] -= 0x2; + var aqm = cs['funcPublic'][dol(0x775)](aqk, aqd, aqe); + var aqn = cs[dol(0x776)]['GetWorldCoordinatesPos'](aql, aqd, aqe); + cs['funcPublic']['drawLineByModelCartesian3'](aqa + ('l' + doo(0x2e4) + 'r'), aqm, aqn, 0x2, aqf); + var aqo = aqc['clone'](); + var aqp = aqo['x'] * 0.3; + var aqq = aqg['clone'](); + aqq['x'] += aqc['x'] / 0x2; + aqq['y'] -= 0x1; + var aqr = cs[dol(0x777)]['GetWorldCoordinatesPos'](aqq, aqd, aqe); + cs['funcPublic'][dol(0x778)](aqa + ('l' + doo(0x2e5) + 'e'), aqo['x']['toFixed'](0x2)['toString']() + 'm', aqr, aqf); + var aqs = aqg['clone'](); + aqs['y'] -= 0x1; + var aqt = aqs['clone'](); + aqt['x'] += aqp; + var aqu = cs['funcPublic']['GetWorldCoordinatesPos'](aqt, aqd, aqe); + var aqv = cs['funcPublic']['GetWorldCoordinatesPos'](aqs, aqd, aqe); + cs['funcPublic']['drawLineArrowByModelCartesian3'](aqa + ('l' + doo(0x2e6) + 'w'), aqu, aqv, 0xa, aqf); + var aqw = aqk['clone'](); + aqw['y'] -= 0x1; + var aqx = aqw['clone'](); + aqx['x'] -= aqp; + var aqy = cs['funcPublic']['GetWorldCoordinatesPos'](aqx, aqd, aqe); + var aqz = cs[dol(0x779)]['GetWorldCoordinatesPos'](aqw, aqd, aqe); + cs['funcPublic']['drawLineArrowByModelCartesian3'](aqa + ('l' + doo(0x2e7) + 'w'), aqy, aqz, 0xa, aqf); + var aqA = aqb['clone'](); + aqA['z'] += aqc['clone']()['z'] / 0x2; + aqA['x'] += aqc['clone']()['x'] / 0x2; + aqA['y'] -= aqc['clone']()['y'] / 0x2; + var aqB = aqA['clone'](); + aqB['x'] += 0x2; + var aqi = cs[dol(0x77a)]['GetWorldCoordinatesPos'](aqA, aqd, aqe); + var aqj = cs['funcPublic']['GetWorldCoordinatesPos'](aqB, aqd, aqe); + cs[dol(0x77b)]['drawLineByModelCartesian3'](aqa + ('w' + doo(0x2e8) + 'l'), aqi, aqj, 0x2, aqf); + var aqE = aqb['clone'](); + aqE['z'] += aqc['clone']()['z'] / 0x2; + aqE['x'] += aqc['clone']()['x'] / 0x2; + aqE['y'] += aqc['clone']()['y'] / 0x2; + var aqF = aqE['clone'](); + aqF['x'] += 0x2; + var aqm = cs['funcPublic']['GetWorldCoordinatesPos'](aqE, aqd, aqe); + var aqn = cs['funcPublic']['GetWorldCoordinatesPos'](aqF, aqd, aqe); + cs['funcPublic']['drawLineByModelCartesian3'](aqa + ('w' + doo(0x2e9) + 'r'), aqm, aqn, 0x2, aqf); + var aqI = aqc['clone'](); + var aqJ = aqI['y'] * 0.3; + var aqq = aqA['clone'](); + aqq['y'] += aqI['y'] / 0x2; + aqq['x'] += 0x1; + var aqr = cs['funcPublic']['GetWorldCoordinatesPos'](aqq, aqd, aqe); + cs[dol(0x77c)]['drawLable'](aqa + ('w' + doo(0x2ea) + 'e'), aqI['y'][dol(0x77d)](0x2)['toString']() + 'm', aqr, aqf); + var aqs = aqA[dol(0x77e)](); + aqs['x'] += 0x1; + var aqt = aqs['clone'](); + aqt['y'] += aqJ; + var aqu = cs['funcPublic']['GetWorldCoordinatesPos'](aqt, aqd, aqe); + var aqv = cs['funcPublic'][dol(0x77f)](aqs, aqd, aqe); + cs[dol(0x780)]['drawLineArrowByModelCartesian3'](aqa + ('w' + doo(0x2eb) + 'w'), aqu, aqv, 0xa, aqf); + var aqw = aqE['clone'](); + aqw['x'] += 0x1; + var aqx = aqw['clone'](); + aqx['y'] -= aqJ; + var aqy = cs['funcPublic']['GetWorldCoordinatesPos'](aqx, aqd, aqe); + var aqz = cs['funcPublic']['GetWorldCoordinatesPos'](aqw, aqd, aqe); + cs['funcPublic']['drawLineArrowByModelCartesian3'](aqa + ('w' + doo(0x2ec) + 'w'), aqy, aqz, 0xa, aqf); + var aqU = aqb['clone'](); + aqU['z'] -= aqc['clone']()['z'] / 0x2; + aqU['x'] -= aqc['clone']()['x'] / 0x2; + aqU['y'] -= aqc['clone']()['y'] / 0x2; + var aqV = aqU['clone'](); + aqV['x'] -= 0x2; + var aqi = cs['funcPublic']['GetWorldCoordinatesPos'](aqU, aqd, aqe); + var aqj = cs['funcPublic']['GetWorldCoordinatesPos'](aqV, aqd, aqe); + cs['funcPublic']['drawLineByModelCartesian3'](aqa + ('h' + doo(0x2ed) + 'l'), aqi, aqj, 0x2, aqf); + var aqY = aqb['clone'](); + aqY['z'] += aqc['clone']()['z'] / 0x2; + aqY['x'] -= aqc['clone']()['x'] / 0x2; + aqY['y'] -= aqc['clone']()['y'] / 0x2; + var aqZ = aqY[dol(0x781)](); + aqZ['x'] -= 0x2; + var aqm = cs['funcPublic']['GetWorldCoordinatesPos'](aqY, aqd, aqe); + var aqn = cs['funcPublic']['GetWorldCoordinatesPos'](aqZ, aqd, aqe); + cs['funcPublic']['drawLineByModelCartesian3'](aqa + ('h' + doo(0x2ee) + 'r'), aqm, aqn, 0x2, aqf); + var ar2 = aqc['clone'](); + var ar3 = ar2['z'] * 0.4; + var aqq = aqU['clone'](); + aqq['z'] += ar2['z'] / 0x2; + aqq['x'] -= 0x1; + var aqr = cs['funcPublic']['GetWorldCoordinatesPos'](aqq, aqd, aqe); + cs['funcPublic']['drawLable'](aqa + ('h' + doo(0x2ef) + 'e'), ar2['z']['toFixed'](0x2)['toString']() + 'm', aqr, aqf); + var aqs = aqU['clone'](); + aqs['x'] -= 0x1; + var aqt = aqs['clone'](); + aqt['z'] += ar3; + var aqu = cs['funcPublic']['GetWorldCoordinatesPos'](aqt, aqd, aqe); + var aqv = cs['funcPublic']['GetWorldCoordinatesPos'](aqs, aqd, aqe); + cs['funcPublic']['drawLineArrowByModelCartesian3'](aqa + ('h' + doo(0x2f0) + 'w'), aqu, aqv, 0xa, aqf); + var aqw = aqY['clone'](); + aqw['x'] -= 0x1; + var aqx = aqw['clone'](); + aqx['z'] -= ar3; + var aqy = cs['funcPublic']['GetWorldCoordinatesPos'](aqx, aqd, aqe); + var aqz = cs['funcPublic']['GetWorldCoordinatesPos'](aqw, aqd, aqe); + cs['funcPublic']['drawLineArrowByModelCartesian3'](aqa + ('h' + doo(0x2f1) + 'w'), aqy, aqz, 0xa, aqf); + }, + 'CreateMeasuringlineObb': function(arf, arg, arh, ari, arj, ark, arl, arm, arn) { + var aro = arg[dol(0x782)](); + aro['z'] -= arl['z'] * (arh['clone']()['x'] / 0x2); + aro['x'] -= arl['x'] * (arh['clone']()['x'] / 0x2); + aro['y'] -= arl['y'] * (arh['clone']()['x'] / 0x2); + aro['x'] -= arm['x'] * (arh['clone']()['y'] / 0x2); + aro['y'] -= arm['y'] * (arh['clone']()['y'] / 0x2); + aro['z'] -= arm['z'] * (arh['clone']()['y'] / 0x2); + aro['x'] += arn['x'] * (arh['clone']()['z'] / 0x2); + aro['y'] += arn['y'] * (arh['clone']()['z'] / 0x2); + aro['z'] += arn['z'] * (arh['clone']()['z'] / 0x2); + var arp = aro['clone'](); + arp['x'] -= arm['x'] * 0x2; + arp['y'] -= arm['y'] * 0x2; + arp['z'] -= arm['z'] * 0x2; + var arq = cs['funcPublic']['GetWorldCoordinatesPos'](aro, ari, arj); + var arr = cs['funcPublic']['GetWorldCoordinatesPos'](arp, ari, arj); + cs['funcPublic']['drawLineByModelCartesian3'](arf + ('l' + doo(0x2f2) + 'l'), arq, arr, 0x2, ark); + var ars = arg['clone'](); + ars['z'] += arl['z'] * (arh['clone']()['x'] / 0x2); + ars['x'] += arl['x'] * (arh['clone']()['x'] / 0x2); + ars['y'] += arl['y'] * (arh['clone']()['x'] / 0x2); + ars['x'] -= arm['x'] * (arh['clone']()['y'] / 0x2); + ars['y'] -= arm['y'] * (arh['clone']()['y'] / 0x2); + ars['z'] -= arm['z'] * (arh[dol(0x783)]()['y'] / 0x2); + ars['x'] += arn['x'] * (arh['clone']()['z'] / 0x2); + ars['y'] += arn['y'] * (arh['clone']()['z'] / 0x2); + ars['z'] += arn['z'] * (arh[dol(0x784)]()['z'] / 0x2); + var art = ars['clone'](); + art['x'] -= arm['x'] * 0x2; + art['y'] -= arm['y'] * 0x2; + art['z'] -= arm['z'] * 0x2; + var aru = cs['funcPublic']['GetWorldCoordinatesPos'](ars, ari, arj); + var arv = cs['funcPublic']['GetWorldCoordinatesPos'](art, ari, arj); + cs['funcPublic']['drawLineByModelCartesian3'](arf + ('l' + doo(0x2f3) + 'r'), aru, arv, 0x2, ark); + var arw = arh['clone'](); + var arx = arw['x'] * 0.3; + var ary = aro['clone'](); + ary['z'] += arl['z'] * (arh['clone']()['x'] / 0x2); + ary['x'] += arl['x'] * (arh['clone']()['x'] / 0x2); + ary['y'] += arl['y'] * (arh[dol(0x785)]()['x'] / 0x2); + ary['x'] -= arm['x'] * 0x1; + ary['y'] -= arm['y'] * 0x1; + ary['z'] -= arm['z'] * 0x1; + var arz = cs['funcPublic']['GetWorldCoordinatesPos'](ary, ari, arj); + cs['funcPublic'][dol(0x786)](arf + ('l' + doo(0x2f4) + 'e'), arw['x']['toFixed'](0x2)['toString']() + 'm', arz, ark); + var arA = aro['clone'](); + arA['x'] -= arm['x'] * 0x1; + arA['y'] -= arm['y'] * 0x1; + arA['z'] -= arm['z'] * 0x1; + var arB = arA['clone'](); + arB['x'] += arl['x'] * arx; + arB['y'] += arl['y'] * arx; + arB['z'] += arl['z'] * arx; + var arC = cs['funcPublic']['GetWorldCoordinatesPos'](arB, ari, arj); + var arD = cs['funcPublic']['GetWorldCoordinatesPos'](arA, ari, arj); + cs['funcPublic'][dol(0x787)](arf + ('l' + doo(0x2f5) + 'w'), arC, arD, 0xa, ark); + var arE = ars[dol(0x788)](); + arE['x'] -= arm['x'] * 0x1; + arE['y'] -= arm['y'] * 0x1; + arE['z'] -= arm['z'] * 0x1; + var arF = arE['clone'](); + arF['x'] -= arl['x'] * arx; + arF['y'] -= arl['y'] * arx; + arF['z'] -= arl['z'] * arx; + var arG = cs[dol(0x789)]['GetWorldCoordinatesPos'](arF, ari, arj); + var arH = cs['funcPublic']['GetWorldCoordinatesPos'](arE, ari, arj); + cs['funcPublic']['drawLineArrowByModelCartesian3'](arf + ('l' + doo(0x2f6) + 'w'), arG, arH, 0xa, ark); + var arI = arg['clone'](); + arI['x'] += arl['x'] * (arh['clone']()['x'] / 0x2); + arI['y'] += arl['y'] * (arh['clone']()['x'] / 0x2); + arI['z'] += arl['z'] * (arh['clone']()['x'] / 0x2); + arI['x'] -= arm['x'] * (arh['clone']()['y'] / 0x2); + arI['y'] -= arm['y'] * (arh[dol(0x78a)]()['y'] / 0x2); + arI['z'] -= arm['z'] * (arh['clone']()['y'] / 0x2); + arI['x'] += arn['x'] * (arh['clone']()['z'] / 0x2); + arI['y'] += arn['y'] * (arh['clone']()['z'] / 0x2); + arI['z'] += arn['z'] * (arh['clone']()['z'] / 0x2); + var arJ = arI['clone'](); + arJ['x'] += arl['x'] * 0x2; + arJ['y'] += arl['y'] * 0x2; + arJ['z'] += arl['z'] * 0x2; + var arq = cs['funcPublic']['GetWorldCoordinatesPos'](arI, ari, arj); + var arr = cs['funcPublic']['GetWorldCoordinatesPos'](arJ, ari, arj); + cs['funcPublic']['drawLineByModelCartesian3'](arf + ('w' + doo(0x2f7) + 'l'), arq, arr, 0x2, ark); + var arM = arg[dol(0x78b)](); + arM['x'] += arl['x'] * (arh['clone']()['x'] / 0x2); + arM['y'] += arl['y'] * (arh['clone']()['x'] / 0x2); + arM['z'] += arl['z'] * (arh[dol(0x78c)]()['x'] / 0x2); + arM['x'] += arm['x'] * (arh[dol(0x78d)]()['y'] / 0x2); + arM['y'] += arm['y'] * (arh['clone']()['y'] / 0x2); + arM['z'] += arm['z'] * (arh['clone']()['y'] / 0x2); + arM['x'] += arn['x'] * (arh['clone']()['z'] / 0x2); + arM['y'] += arn['y'] * (arh['clone']()['z'] / 0x2); + arM['z'] += arn['z'] * (arh['clone']()['z'] / 0x2); + var arN = arM['clone'](); + arN['x'] += arl['x'] * 0x2; + arN['y'] += arl['y'] * 0x2; + arN['z'] += arl['z'] * 0x2; + var aru = cs['funcPublic']['GetWorldCoordinatesPos'](arM, ari, arj); + var arv = cs['funcPublic']['GetWorldCoordinatesPos'](arN, ari, arj); + cs['funcPublic']['drawLineByModelCartesian3'](arf + ('w' + doo(0x2f8) + 'r'), aru, arv, 0x2, ark); + var arQ = arh['clone'](); + var arR = arQ['y'] * 0.3; + var ary = arI['clone'](); + ary['z'] += arm['z'] * (arQ['y'] / 0x2); + ary['x'] += arm['x'] * (arQ['y'] / 0x2); + ary['y'] += arm['y'] * (arQ['y'] / 0x2); + ary['x'] += arl['x'] * 0x1; + ary['y'] += arl['y'] * 0x1; + ary['z'] += arl['z'] * 0x1; + var arz = cs['funcPublic']['GetWorldCoordinatesPos'](ary, ari, arj); + cs['funcPublic']['drawLable'](arf + ('w' + doo(0x2f9) + 'e'), arQ['y']['toFixed'](0x2)[dol(0x78e)]() + 'm', arz, ark); + var arA = arI[dol(0x78f)](); + arA['x'] += arl['x'] * 0x1; + arA['y'] += arl['y'] * 0x1; + arA['z'] += arl['z'] * 0x1; + var arB = arA['clone'](); + arB['x'] += arm['x'] * arR; + arB['y'] += arm['y'] * arR; + arB['z'] += arm['z'] * arR; + var arC = cs[dol(0x790)]['GetWorldCoordinatesPos'](arB, ari, arj); + var arD = cs['funcPublic']['GetWorldCoordinatesPos'](arA, ari, arj); + cs['funcPublic'][dol(0x791)](arf + ('w' + doo(0x2fa) + 'w'), arC, arD, 0xa, ark); + var arE = arM['clone'](); + arE['x'] += arl['x'] * 0x1; + arE['y'] += arl['y'] * 0x1; + arE['z'] += arl['z'] * 0x1; + var arF = arE['clone'](); + arF['x'] -= arm['x'] * arR; + arF['y'] -= arm['y'] * arR; + arF['z'] -= arm['z'] * arR; + var arG = cs['funcPublic']['GetWorldCoordinatesPos'](arF, ari, arj); + var arH = cs['funcPublic']['GetWorldCoordinatesPos'](arE, ari, arj); + cs[dol(0x792)][dol(0x793)](arf + ('w' + doo(0x2fb) + 'w'), arG, arH, 0xa, ark); + var as2 = arg['clone'](); + as2['x'] -= arl['x'] * (arh['clone']()['x'] / 0x2); + as2['y'] -= arl['y'] * (arh['clone']()['x'] / 0x2); + as2['z'] -= arl['z'] * (arh['clone']()['x'] / 0x2); + as2['x'] -= arm['x'] * (arh['clone']()['y'] / 0x2); + as2['y'] -= arm['y'] * (arh['clone']()['y'] / 0x2); + as2['z'] -= arm['z'] * (arh[dol(0x794)]()['y'] / 0x2); + as2['x'] -= arn['x'] * (arh['clone']()['z'] / 0x2); + as2['y'] -= arn['y'] * (arh['clone']()['z'] / 0x2); + as2['z'] -= arn['z'] * (arh['clone']()['z'] / 0x2); + var as3 = as2['clone'](); + as3['x'] -= arl['x'] * 0x2; + as3['y'] -= arl['y'] * 0x2; + as3['z'] -= arl['z'] * 0x2; + var arq = cs['funcPublic']['GetWorldCoordinatesPos'](as2, ari, arj); + var arr = cs['funcPublic']['GetWorldCoordinatesPos'](as3, ari, arj); + cs['funcPublic']['drawLineByModelCartesian3'](arf + ('h' + doo(0x2fc) + 'l'), arq, arr, 0x2, ark); + var as6 = arg['clone'](); + as6['x'] -= arl['x'] * (arh['clone']()['x'] / 0x2); + as6['y'] -= arl['y'] * (arh['clone']()['x'] / 0x2); + as6['z'] -= arl['z'] * (arh['clone']()['x'] / 0x2); + as6['x'] -= arm['x'] * (arh['clone']()['y'] / 0x2); + as6['y'] -= arm['y'] * (arh['clone']()['y'] / 0x2); + as6['z'] -= arm['z'] * (arh['clone']()['y'] / 0x2); + as6['x'] += arn['x'] * (arh['clone']()['z'] / 0x2); + as6['y'] += arn['y'] * (arh[dol(0x795)]()['z'] / 0x2); + as6['z'] += arn['z'] * (arh['clone']()['z'] / 0x2); + var as7 = as6['clone'](); + as7['x'] -= arl['x'] * 0x2; + as7['y'] -= arl['y'] * 0x2; + as7['z'] -= arl['z'] * 0x2; + var aru = cs['funcPublic'][dol(0x796)](as6, ari, arj); + var arv = cs['funcPublic']['GetWorldCoordinatesPos'](as7, ari, arj); + cs['funcPublic']['drawLineByModelCartesian3'](arf + ('h' + doo(0x2fd) + 'r'), aru, arv, 0x2, ark); + var asa = arh['clone'](); + var asb = asa['z'] * 0.4; + var ary = as2['clone'](); + ary['z'] += arn['z'] * (asa['z'] / 0x2); + ary['x'] += arn['x'] * (asa['z'] / 0x2); + ary['y'] += arn['y'] * (asa['z'] / 0x2); + ary['x'] -= arl['x'] * 0x1; + ary['y'] -= arl['y'] * 0x1; + ary['z'] -= arl['z'] * 0x1; + var arz = cs['funcPublic']['GetWorldCoordinatesPos'](ary, ari, arj); + cs['funcPublic']['drawLable'](arf + ('h' + doo(0x2fe) + 'e'), asa['z']['toFixed'](0x2)['toString']() + 'm', arz, ark); + var arA = as2['clone'](); + arA['x'] -= arl['x'] * 0x1; + arA['y'] -= arl['y'] * 0x1; + arA['z'] -= arl['z'] * 0x1; + var arB = arA['clone'](); + arB['x'] += arn['x'] * asb; + arB['y'] += arn['y'] * asb; + arB['z'] += arn['z'] * asb; + var arC = cs['funcPublic']['GetWorldCoordinatesPos'](arB, ari, arj); + var arD = cs['funcPublic']['GetWorldCoordinatesPos'](arA, ari, arj); + cs['funcPublic']['drawLineArrowByModelCartesian3'](arf + ('h' + doo(0x2ff) + 'w'), arC, arD, 0xa, ark); + var arE = as6['clone'](); + arE['x'] -= arl['x'] * 0x1; + arE['y'] -= arl['y'] * 0x1; + arE['z'] -= arl['z'] * 0x1; + var arF = arE['clone'](); + arF['x'] -= arn['x'] * asb; + arF['y'] -= arn['y'] * asb; + arF['z'] -= arn['z'] * asb; + var arG = cs['funcPublic']['GetWorldCoordinatesPos'](arF, ari, arj); + var arH = cs['funcPublic']['GetWorldCoordinatesPos'](arE, ari, arj); + cs[dol(0x797)][dol(0x798)](arf + ('h' + doo(0x300) + 'w'), arG, arH, 0xa, ark); + }, + 'cartesian2ToCartesian3': function(asm, asn) { + var aso = cs['funcPublic']['pickPosition'](asm, asn); + if (Cesium['defined'](aso['type']) && aso['type'] == 0x1) {} else { + if (!ba['openearth']) { + return undefined; + } + } + if (aso['type'] !== cs['PositionType']['NONE']) { + return aso['position']; + } + return ''; + }, + 'cartesian3ToCartesian2': function(asp, asq) { + return Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](asp, asq, new Cesium['Cartesian2']()); + }, + 'cartesian3ToCartographic': function(asr, ass) { + return ass['scene']['globe']['ellipsoid']['cartesianToCartographic'](asr); + }, + 'cartographicToWgs84': function(ast) { + return [ast['longitude'] / Math['PI'] * 0xb4, ast['latitude'] / Math['PI'] * 0xb4, ast['height']]; + }, + 'wgs84ToCartographic': function(asu, asv, asw) { + return Cesium['Cartographic'][dol(0x799)](asu, asv, asw); + }, + 'wgs84ToCartesian3Three': function(asx, asy, asz) { + return Cesium['Cartesian3']['fromDegrees'](asx, asy, asz, cs['viewer']['scene']['globe']['ellipsoid']); + }, + 'wgs84ToCartesian3': function(asA, asB, asC) { + return Cesium[dol(0x79a)]['fromDegrees'](asA, asB, asC); + }, + 'cartographicToCartesian3': function(asD, asE) { + return asE['scene']['globe']['ellipsoid'][dol(0x79b)](asD); + }, + 'cartographicToCartesian3Three': function(asF, asG, asH, asI) { + return Cesium['Cartesian3']['fromRadians'](asF, asG, asH, asI[dol(0x79c)]['globe']['ellipsoid']); + }, + 'disposeFeatureId': function(asJ) { + if (asJ && asJ['length'] > 0x0) { + var asK = asJ['split']('^'); + if (asK['length'] > 0x1) { + return [asK[0x0], asK[asK['length'] - 0x1]]; + } else { + return [asK[0x0]]; + } + } else { + return []; + } + }, + 'GetFileName': function(asL) { + return asL && asL['length'] > 0x0 ? asL[dol(0x79d)]('_' + asL[dol(0x79e)]('_')[asL['split']('_')['length'] - 0x1], '') : ''; + }, + 'splitFeatureId': function(asM) { + return asM['split']('#'); + }, + 'drawLineByModelCartesian3': function(asN, asO, asP, asQ, asR) { + asR['entities']['add']({ + 'id': asN, + 'polyline': { + 'show': !![], + 'positions': [asO, asP], + 'arcType': Cesium['ArcType']['NONE'], + 'material': Cesium['Color']['RED'], + 'width': asQ, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + }, + 'drawLines': function(asS, asT, asU) { + var asV = [-5.219648, -8.5344, 0.3048, -5.372048, -8.5344, 0.3048, -5.372048, -8.5344, 0.3048, -5.372048, -8.4328, 0.3048, -5.219648, -8.5344, 4.0005, -5.219648, -8.5344, 0.3048, -5.372048, -8.4328, 0.3048, -5.219648, -8.4328, 0.3048, -5.219648, -8.4328, 0.3048, -5.219648, -8.5344, 0.3048, -5.372048, -8.5344, 4.0005, -5.372048, -8.5344, 0.3048, -5.219648, -8.4328, 0.3048, -5.219648, -8.4328, 4.0005, -5.219648, -8.4328, 4.0005, -5.219648, -8.5344, 4.0005, -5.372048, -8.4328, 4.0005, -5.372048, -8.4328, 0.3048, -5.219648, -8.5344, 4.0005, -5.372048, -8.5344, 4.0005, -5.372048, -8.5344, 4.0005, -5.372048, -8.4328, 4.0005, -5.372048, -8.4328, 4.0005, -5.219648, -8.4328, 4.0005]; + var asW = []; + for (var asX = 0x0; asX < asV['length'] / 0x3; asX++) { + var asY = new Cesium[(dol(0x79f))](asV[asX * 0x3],asV[asX * 0x3 + 0x1],asV[asX * 0x3 + 0x2]); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], asY, asY); + asW['push'](asY); + } + cs[dol(0x7a0)]['entities']['add']({ + 'id': '2' + doo(0x301) + '5', + 'polyline': { + 'positions': asW, + 'material': Cesium['Color']['RED'], + 'width': 0x5, + 'show': !![] + } + }); + }, + 'drawLineArrowByModelCartesian3': function(asZ, at0, at1, at2, at3) { + at3['entities'][dol(0x7a1)]({ + 'id': asZ, + 'polyline': { + 'show': !![], + 'positions': [at0, at1], + 'arcType': Cesium['ArcType']['NONE'], + 'material': new Cesium['PolylineArrowMaterialProperty'](Cesium['Color']['RED']), + 'width': at2 + } + }); + }, + 'drawBox23Lines': function(at4, at5, cs) { + var at7 = Cesium['Cartesian3']['add'](at4, new Cesium['Cartesian3'](-at5['x'] / 0x2,at5['y'] / 0x2,at5['z'] / 0x2), new Cesium['Cartesian3']()); + var at8 = Cesium['Cartesian3']['add'](at4, new Cesium['Cartesian3'](at5['x'] / 0x2,at5['y'] / 0x2,at5['z'] / 0x2), new Cesium['Cartesian3']()); + var at9 = Cesium['Cartesian3']['add'](at4, new Cesium['Cartesian3'](-at5['x'] / 0x2,-at5['y'] / 0x2,at5['z'] / 0x2), new Cesium['Cartesian3']()); + var ata = Cesium['Cartesian3']['add'](at4, new Cesium[(dol(0x7a2))](at5['x'] / 0x2,-at5['y'] / 0x2,at5['z'] / 0x2), new Cesium['Cartesian3']()); + var atb = Cesium['Cartesian3']['add'](at4, new Cesium['Cartesian3'](-at5['x'] / 0x2,at5['y'] / 0x2,-at5['z'] / 0x2), new Cesium['Cartesian3']()); + var atc = Cesium['Cartesian3']['add'](at4, new Cesium['Cartesian3'](at5['x'] / 0x2,at5['y'] / 0x2,-at5['z'] / 0x2), new Cesium['Cartesian3']()); + var atd = Cesium[dol(0x7a3)]['add'](at4, new Cesium['Cartesian3'](-at5['x'] / 0x2,-at5['y'] / 0x2,-at5['z'] / 0x2), new Cesium['Cartesian3']()); + var ate = Cesium['Cartesian3']['add'](at4, new Cesium[(dol(0x7a4))](at5['x'] / 0x2,-at5['y'] / 0x2,-at5['z'] / 0x2), new Cesium[(dol(0x7a5))]()); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], at7, at7); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], at8, at8); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], at7, at7); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], at8, at8); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], at9, at9); + Cesium[dol(0x7a6)]['multiplyByPoint'](cs['tileset']['root']['transform'], ata, ata); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], at9, at9); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], ata, ata); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], atb, atb); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], atc, atc); + Cesium['Matrix4'][dol(0x7a7)](cs['tileset']['modelMatrix'], atb, atb); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], atc, atc); + Cesium[dol(0x7a8)]['multiplyByPoint'](cs['tileset']['root']['transform'], atd, atd); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['root']['transform'], ate, ate); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], atd, atd); + Cesium['Matrix4']['multiplyByPoint'](cs['tileset']['modelMatrix'], ate, ate); + cs['funcPublic']['clearBOX23line'](cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x302) + '_' + 0x1, at7, at8, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x303) + '_' + 0x2, at9, ata, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x304) + '_' + 0x3, atb, atc, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x305) + '_' + 0x4, atd, ate, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x306) + '_' + 0x5, at7, at9, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x307) + '_' + 0x6, at8, ata, 0x2, cs['viewer']); + cs[dol(0x7a9)]['drawLineByModelCartesian3']('b' + doo(0x308) + '_' + 0x7, atb, atd, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x309) + '_' + 0x8, atc, ate, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x30a) + '_' + 0x9, at7, atb, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x30b) + '_' + 0xa, at8, atc, 0x2, cs['viewer']); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x30c) + '_' + 0xb, at9, atd, 0x2, cs[dol(0x7aa)]); + cs['funcPublic']['drawLineByModelCartesian3']('b' + doo(0x30d) + '_' + 0xc, ata, ate, 0x2, cs['viewer']); + }, + 'drawLable': function(atf, atg, ath, ati) { + ati['entities']['add']({ + 'id': atf, + 'name': 'l' + doo(0x30e) + 'e', + 'position': ath, + 'label': { + 'text': atg, + 'font': '1' + doo(0x30f) + 'f', + 'fillColor': Cesium['Color']['YELLOW'], + 'backgroundColor': new Cesium['Color'](0.165,0.165,0.165,0.8), + 'showBackground': !![], + 'backgroundPadding': new Cesium['Cartesian2'](0x7,0x5), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + }, + 'drawPointByCartesian3': function(atj, atk, atl, atm) { + var atn = atk['entities']['add']({ + 'position': atj, + 'point': { + 'pixelSize': atm == undefined ? 0xa : atm, + 'color': atl, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + cs['tempEntities'][dol(0x7ab)](atn); + }, + 'zoom': function(ato, atp, atq, atr, ats, att) { + if (isEmpty(atq)) + atq = 0x0; + if (isEmpty(atr)) + atr = -0x1e; + if (isEmpty(ats)) + ats = 0x1; + if (!isEmpty(ato) && ato['tilesetoutline']['positions'] != undefined) { + var atu = []; + var atv = !isEmpty(ato['modelMatrix']) ? new Cesium['Matrix4']['clone'](ato[dol(0x7ac)]) : new Cesium['Matrix4']['clone'](Cesium[dol(0x7ad)]['IDENTITY']); + var atw = ato['tilesetoutline']['positions']; + for (var q = 0x0; q < atw['length'] / 0x3; q++) { + var aty = new Cesium['Cartesian3'](atw[q * 0x3],atw[q * 0x3 + 0x1],atw[q * 0x3 + 0x2]); + Cesium['Matrix4']['multiplyByPoint'](atv, aty, aty); + atu['push'](aty); + } + if (atu['length'] > 0x0) { + var atz = Cesium['clone'](atu[0x0]); + var atA = Cesium['clone'](atu[0x0]); + for (var atB = 0x0; atB < atu[dol(0x7ae)]; atB++) { + atz = cs['funcPublic']['max'](atz, atu[atB]); + } + for (var atB = 0x0; atB < atu['length']; atB++) { + atA = cs['funcPublic']['min'](atA, atu[atB]); + } + var atD = Cesium['Cartesian3']['subtract'](atz, atA, new Cesium['Cartesian3']()); + var atE = Cesium['Cartesian3'][dol(0x7af)](atz, atA, new Cesium['Cartesian3']()); + var atF = Cesium['Cartesian3'][dol(0x7b0)](atD); + var atG = new Cesium['BoundingSphere'](atE,atF); + if (!isEmpty(ato['viewDirection']) && !isEmpty(ato['viewEye'])) { + var atH = Cesium['Cartesian3']['fromArray'](ato['viewEye']); + atH['x'] = atH['x'] * 304.8; + atH['y'] = atH['y'] * 304.8; + atH['z'] = atH['z'] * 304.8; + var atI = Cesium['Cartesian3']['fromArray'](ato[dol(0x7b1)]['_header']['offset']); + var atJ = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](atH, atI, atJ); + atJ['x'] = atJ['x'] / 0x3e8; + atJ['y'] = atJ['y'] / 0x3e8; + atJ['z'] = atJ['z'] / 0x3e8; + var atK = ato['root']['transform']; + Cesium['Matrix4']['multiplyByPoint'](atK, atJ, atJ); + var atL = Cesium[dol(0x7b2)][dol(0x7b3)](atJ, ato['boundingSphere']['center']); + var atM = Cesium['Cartesian3']['fromArray'](ato['viewDirection']); + var atN = atM['y'] > 0x0 ? atM['x'] : 3.141592653589793 - atM['x']; + var atO = atM['z']; + atp['camera']['flyToBoundingSphere'](atG, { + 'duration': 0x0, + 'offset': new Cesium['HeadingPitchRange'](atN,atO,atL * 0x2), + 'complete': function() { + atp['scene']['requestRender'](); + } + }); + if (Cesium['defined'](att)) + ato['allTilesLoaded']['addEventListener'](att); + } else { + atp['camera']['flyToBoundingSphere'](atG, { + 'duration': 0x0, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](atq),Cesium['Math']['toRadians'](atr),atF * ats), + 'complete': function() { + atp['scene']['requestRender'](); + } + }); + if (Cesium['defined'](att)) + ato['allTilesLoaded']['addEventListener'](att); + } + } + } else { + var atP = []; + atP['push'](ato['boundingSphere']); + if (atP['length'] == 0x0) { + aCe('未' + doo(0x310) + '息'); + if (Cesium['defined'](att)) + ato['allTilesLoaded'][dol(0x7b4)](att); + } else { + var atG = Cesium['BoundingSphere']['fromBoundingSpheres'](atP, new Cesium['BoundingSphere']()); + if (ats == 0x1) { + atp['camera']['flyToBoundingSphere'](atG, { + 'duration': 0x0, + 'offset': new Cesium[(dol(0x7b5))](Cesium['Math']['toRadians'](atq),Cesium['Math']['toRadians'](atr)), + 'complete': function() { + atp['scene']['requestRender'](); + } + }); + } else { + atp['camera']['flyToBoundingSphere'](atG, { + 'duration': 0x0, + 'offset': new Cesium['HeadingPitchRange'](Cesium[dol(0x7b6)]['toRadians'](atq),Cesium['Math']['toRadians'](atr),atG['radius'] * ats), + 'complete': function() { + atp['scene']['requestRender'](); + } + }); + } + if (Cesium['defined'](att)) + ato['allTilesLoaded']['addEventListener'](att); + } + } + }, + 'getAllTiles': function(atR, atS) { + var atT = []; + var atU = function(atV) { + for (var atW = 0x0; atW < atV['children']['length']; ++atW) { + var atX = atV['children'][atW]; + if (atX['children']['length'] > 0x0) { + atU(atX); + } + if (!isEmpty(atX['_contentResource'])) { + atT['push'](atX); + } + } + }; + atU(atR['root']); + atS(atT); + }, + 'genID': function(atY) { + return Number(Math['random']()[dol(0x7b7)]()[dol(0x7b8)](0x3, atY) + Date['now']())['toString'](0x24); + }, + 'getPos': function(atZ) { + var au0 = new Cesium['Cartesian2'](atZ['x'],atZ['y']); + return au0; + }, + 'removePoint': function(au1) { + cs['viewer']['entities']['remove'](au1); + }, + 'getHeight': function() { + if (viewer) { + var au2 = cs['viewer']['scene'][dol(0x7b9)]['ellipsoid']; + var au3 = au2['cartesianToCartographic'](cs['viewer']['camera']['position'])['height']; + return au3; + } + }, + 'getClickPt': function(au4, au5) { + var au6 = Cesium['Cartesian3']['fromDegrees'](au4, au5); + var au7 = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](cs['viewer']['scene'], au6); + var au8 = au7['x']; + var au9 = au7['y']; + return au8 + ',' + au9; + }, + 'getCenterPosition': function() { + var aua = cs['viewer']['camera']['pickEllipsoid'](new Cesium['Cartesian2'](cs['viewer'][dol(0x7ba)]['clientWidth'] / 0x2,cs['viewer'][dol(0x7bb)]['clientHeight'] / 0x2)); + var aub = Cesium['Ellipsoid']['WGS84']['cartesianToCartographic'](aua); + var auc = aub['longitude'] * 0xb4 / Math['PI']; + var aud = aub['latitude'] * 0xb4 / Math[dol(0x7bc)]; + var aue = cs['funcPublic']['getHeight'](); + return { + 'longitude': auc, + 'latitude': aud, + 'height': aue + }; + }, + 'drawLine': function(auf, aug, auh, aui) { + auh = Cesium['defaultValue'](auh, new Cesium[(dol(0x7bd))](0x1,0.3,0.3,0x1)); + if (aug['scene'][dol(0x7be)] === Cesium['SceneMode']['SCENE2D']) { + if (!Cesium['defined'](aug['scene']['CAD_measure_lines'])) + aug['scene']['CAD_measure_lines'] = aug['scene']['primitives'][dol(0x7bf)](new Cesium['PolylineCollection']()); + const auj = aug['scene']['CAD_measure_lines']['add']({ + 'positions': Cesium['PolylinePipeline']['generateCartesianArc']({ + 'positions': auf + }), + 'material': Cesium['Material']['fromType']('C' + doo(0x311) + 'r', { + 'color': auh + }), + 'show': !![], + 'width': 0x2 + }); + return new Cesium['Primitive'](); + } + var auk, aul; + if (aug['scene']['globe']) { + aul = !![]; + } else { + aul = ![]; + } + auk = new Cesium['PolylineGeometry']({ + 'positions': auf, + 'width': 0x2, + 'followSurface': aul, + 'arcType': !ba['openearth'] ? Cesium['ArcType']['NONE'] : undefined, + 'vertexFormat': Cesium['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }); + var aum = aui ? 'P' + doo(0x312) + 'h' : 'C' + doo(0x313) + 'r'; + return new Cesium['Primitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'geometry': auk + }), + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': aum, + 'uniforms': { + 'color': auh + } + } + }), + 'renderState': new Cesium['RenderState']({ + 'polygonOffset': { + 'enabled': !![], + 'factor': -0x1, + 'units': -0x1 + }, + 'depthTest': { + 'enabled': !![], + 'func': Cesium['WebGLConstants']['LEQUAL'] + } + }) + }), + 'depthFailAppearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': aum, + 'uniforms': { + 'color': auh + } + } + }) + }) + }); + }, + 'getColor': function(aun, auo) { + var aup = Cesium['Color'][aun['toUpperCase']()]; + return Cesium[dol(0x7c0)][dol(0x7c1)](aup, parseFloat(auo)); + }, + 'PointInPoly': function(auq, aur) { + for (var aus = ![], aut = -0x1, auu = aur['length'], auv = auu - 0x1; ++aut < auu; auv = aut) + (aur[aut]['lat'] <= auq['lat'] && auq['lat'] < aur[auv]['lat'] || aur[auv]['lat'] <= auq['lat'] && auq['lat'] < aur[aut]['lat']) && auq['lon'] < (aur[auv]['lon'] - aur[aut]['lon']) * (auq['lat'] - aur[aut]['lat']) / (aur[auv]['lat'] - aur[aut]['lat']) + aur[aut][dol(0x7c2)] && (aus = !aus); + return aus; + }, + 'getNorthPointByDistance': function(auw, aux) { + var auy = Cesium['Transforms']['eastNorthUpToFixedFrame'](auw); + return Cesium['Matrix4']['multiplyByPoint'](auy, Cesium['Cartesian3']['fromElements'](0x0, aux, 0x0), new Cesium['Cartesian3']()); + }, + 'getPointByDistance': function(auz, auA, auB, auC) { + var auD = Cesium['Transforms']['eastNorthUpToFixedFrame'](auz); + return Cesium[dol(0x7c3)]['multiplyByPoint'](auD, Cesium['Cartesian3']['fromElements'](auA, auB, auC), new Cesium['Cartesian3']()); + }, + 'GetDistance': function(auE, auF, auG, auH, auI) { + var auJ = Cesium['Cartographic']['fromCartesian'](auE); + var auK = Cesium['Cartographic']['fromCartesian'](auF); + if (auG == 0x1) + auF = Cesium['Cartesian3']['fromRadians'](auK['longitude'], auJ['latitude'], auJ['height']); + else if (auH == 0x1) + auF = Cesium['Cartesian3']['fromRadians'](auJ['longitude'], auK['latitude'], auJ['height']); + else if (auI == 0x1) + auF = Cesium['Cartesian3']['fromRadians'](auJ[dol(0x7c4)], auJ['latitude'], auK['height']); + return Cesium['Cartesian3']['distance'](auE, auF); + }, + 'bearing': function(auL, auM, auN, auO) { + auL = Cesium['Math']['toRadians'](auL); + auM = Cesium['Math']['toRadians'](auM); + auN = Cesium['Math']['toRadians'](auN); + auO = Cesium['Math']['toRadians'](auO); + var auP = Math[dol(0x7c5)](auO - auM) * Math['cos'](auN); + var auQ = Math['cos'](auL) * Math['sin'](auN) - Math['sin'](auL) * Math['cos'](auN) * Math[dol(0x7c6)](auO - auM); + var auR = Math['atan2'](auP, auQ); + var auS = Cesium['Math']['toDegrees'](auR); + return (auS + 0x168) % 0x168; + }, + 'getFlatternDistance': function(auT, auU, auV, auW) { + var auX = 0x615299; + var auY = Math['PI']; + function auZ(av0) { + return av0 * auY / 0xb4; + } + var av1 = auZ((auT + auV) / 0x2); + var av2 = auZ((auT - auV) / 0x2); + var av3 = auZ((auU - auW) / 0x2); + var av4 = Math['sin'](av2); + var av5 = Math['sin'](av3); + var av6 = Math['sin'](av1); + var av7, av8, av9, ava, avb, avc, avd; + var q = auX; + var avf = 0x1 / 298.257; + av4 = av4 * av4; + av5 = av5 * av5; + av6 = av6 * av6; + av7 = av4 * (0x1 - av5) + (0x1 - av6) * av5; + av8 = (0x1 - av4) * (0x1 - av5) + av6 * av5; + av9 = Math['atan'](Math['sqrt'](av7 / av8)); + ava = Math[dol(0x7c7)](av7 * av8) / av9; + avb = 0x2 * av9 * q; + avc = (0x3 * ava - 0x1) / 0x2 / av8; + avd = (0x3 * ava + 0x1) / 0x2 / av7; + return avb * (0x1 + avf * (avc * av6 * (0x1 - av4) - avd * (0x1 - av6) * av4)); + }, + 'drawText': function(avg) { + const avh = avg['text']; + var avi = document['createElement']('c' + doo(0x314) + 's'); + avi['style'] = doj(0xc8); + const avj = (avh + '')['length'] * avg['fontSize']; + avi['width'] = avj; + avi['height'] = avg['fontSize']; + var avk = avi['getContext'](doh(0x41)); + if (avg['bgcolor'] != undefined) { + avk['fillStyle'] = avg['bgcolor']; + avk['fillRect'](0x0, 0x0, avi['width'], avi['height']); + } + avk['fillStyle'] = avg['color']; + avk['font'] = '\x20' + avg['fontSize'] + ('p' + doo(0x315) + '黑'); + avk['textBaseline'] = 'h' + doo(0x316) + 'g'; + avk['fillText'](avh, 0x0, 0x0); + return avi; + }, + 'GetMaxMinByCar3Arr': function(avl) { + var avm = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var avn = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number[dol(0x7c8)],Number['MAX_VALUE']); + for (var avo = 0x0; avo < avl[dol(0x7c9)]; ++avo) { + avm = Cesium['Cartesian3']['maximumByComponent'](avm, avl[avo], new Cesium['Cartesian3']()); + avn = Cesium['Cartesian3']['minimumByComponent'](avn, avl[avo], new Cesium['Cartesian3']()); + } + return [avm, avn]; + }, + 'GetFeatureMaxMinPoint': function(avp, avq, cs, avs) { + try { + var avt = Cesium['Cartesian3']['unpack'](avp['_batchTable']['_properties']['maxPoint'][avq]); + var avu = Cesium['Cartesian3']['unpack'](avp['_batchTable']['_properties']['minPoint'][avq]); + if (avs == undefined) + avs = ![]; + if (avs != undefined && !avs) { + var avv = avp['_batchTable']['getBatchIdMatrix'](avq); + var avw = Cesium['Matrix4']['multiplyByPoint'](avv, avt, new Cesium['Cartesian3']()); + var avx = Cesium['Matrix4']['multiplyByPoint'](avv, avu, new Cesium['Cartesian3']()); + } else { + var avw = Cesium['Cartesian3']['clone'](avt, new Cesium['Cartesian3']()); + var avx = Cesium['Cartesian3'][dol(0x7ca)](avu, new Cesium['Cartesian3']()); + } + return [avw, avx]; + } catch (avA) { + aCe(doj(0xc9) + avA); + } + }, + 'deepCopy': function(avB) { + if (!avB || typeof avB !== 'o' + doo(0x317) + 't') { + throw new Error('e' + doo(0x318) + 'r'); + } + var avC = avB['constructor'] === Array ? [] : {}; + for (var avD in avB) { + if (avB['hasOwnProperty'](avD)) { + if (avB[avD] && typeof avB[avD] === 'o' + doo(0x319) + 't') { + avC[avD] = avB[avD]['constructor'] === Array ? [] : {}; + avC[avD] = cs['funcPublic']['deepCopy'](avB[avD]); + } else { + avC[avD] = avB[avD]; + } + } + } + return avC; + }, + 'copyArr': function(avE) { + var avF = [] + , avG = 0x0 + , avH = avE['length']; + for (; avG < avH; avG++) { + if (avE[avG]instanceof Array) { + avF[avG] = cs['funcPublic']['copyArr'](avE[avG]); + } else { + avF[avG] = avE[avG]; + } + } + return avF; + }, + 'degToRad': function(avI) { + return avI * Math['PI'] / 0xb4; + }, + 'getHeading': function(avJ, avK) { + var avL = Cesium['Transforms']['eastNorthUpToFixedFrame'](avJ); + var avM = Cesium['Cartesian3']['subtract'](avK, avJ, new Cesium['Cartesian3']()); + var avN = Cesium['Matrix4']['multiplyByPointAsVector'](Cesium['Matrix4']['inverse'](avL, new Cesium['Matrix4']()), avM, new Cesium['Cartesian3']()); + var avO = Cesium['Cartesian3']['normalize'](avN, new Cesium['Cartesian3']()); + var avP = Math['atan2'](avO['y'], avO['x']) - Cesium['Math']['PI_OVER_TWO']; + return Cesium['Math']['TWO_PI'] - Cesium['Math']['zeroToTwoPi'](avP); + }, + 'getPitch': function(avQ, avR) { + var avS = Cesium['Transforms']['eastNorthUpToFixedFrame'](avQ); + var avT = Cesium[dol(0x7cb)]['subtract'](avR, avQ, new Cesium['Cartesian3']()); + var avU = Cesium['Matrix4']['multiplyByPointAsVector'](Cesium['Matrix4']['inverse'](avS, avS), avT, avT); + Cesium['Cartesian3']['normalize'](avU, avU); + return Cesium['Math']['PI_OVER_TWO'] - Cesium['Math']['acosClamped'](avU['z']); + }, + 'clipFillByStencil': function(avV, avW, avX, avY, avZ) { + var aw0 = avV['viewer']['scene']['_frameState']['commandList']; + for (var aw1 = 0x0; aw1 < aw0['length']; aw1++) { + if (aw0[aw1]['pass'] == Cesium['Pass'][dol(0x7cc)]) { + if (Cesium['defined'](aw0[aw1]['owner']) && Cesium[dol(0x7cd)](aw0[aw1]['owner']['primitive']) && Cesium['defined'](aw0[aw1]['owner']['primitive']['id']) && aw0[aw1]['owner']['primitive']['id'] == avW) { + var aw2 = Cesium['DrawCommand']['shallowClone'](aw0[aw1]); + aw2['id'] = avW; + var aw3 = aw2['_shaderProgram']; + if (Cesium['defined'](aw3)) { + var aw4 = Cesium[dol(0x7ce)](aw2[dol(0x7cf)], !![]); + var ba = { + 'frontFace': Cesium['WindingOrder']['COUNTER_CLOCKWISE'], + 'cull': { + 'enabled': ![], + 'face': Cesium['CullFace']['BACK'] + }, + 'depthTest': { + 'enabled': ![], + 'func': Cesium['DepthFunction']['LESS'] + }, + 'colorMask': { + 'red': ![], + 'green': ![], + 'blue': ![], + 'alpha': ![] + }, + 'depthMask': ![], + 'stencilMask': !![], + 'stencilTest': { + 'enabled': !![], + 'frontFunction': Cesium['StencilFunction']['ALWAYS'], + 'backFunction': Cesium['StencilFunction']['ALWAYS'], + 'reference': 0x1, + 'mask': 0x1, + 'frontOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium['StencilOperation']['KEEP'], + 'zPass': Cesium['StencilOperation']['DECREMENT'] + }, + 'backOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium[dol(0x7d0)]['KEEP'], + 'zPass': Cesium[dol(0x7d1)]['INCREMENT'] + } + } + }; + aw4['colorMask'] = ba['colorMask']; + aw4[dol(0x7d2)] = ba['depthMask']; + aw4['depthTest'] = ba['depthTest']; + aw4['stencilMask'] = ba['stencilMask']; + aw4['stencilTest'] = ba['stencilTest']; + aw2['renderState'] = Cesium['RenderState']['fromCache'](aw4); + var aw6 = new aFy(aw2); + aw6['drawCommand'][dol(0x7d3)] = undefined; + avV['viewer']['scene']['primitives'][dol(0x7d4)](aw6); + } + } + } + } + var aw7 = avV['Model']['get'](avW); + var aw8 = aw7[dol(0x7d5)]['boundingVolume']['_orientedBoundingBox']; + var aw9 = Cesium['Matrix3']['getScale'](aw8['halfAxes'], new Cesium['Cartesian3']()); + var awa = Cesium['Transforms']['eastNorthUpToFixedFrame'](aw8['center']); + Cesium['Matrix4']['multiply'](awa, aw7[dol(0x7d6)], new Cesium['Matrix4']()); + var awb = new Cesium['Cartesian3'](aw9['x'] * 0x2,aw9['y'] * 0x2,aw9['z'] * 0x2); + var awc = Cesium['Matrix4']['fromScale'](awb); + for (var aw1 = 0x0; aw1 < aw7['_clippingPlanes'][dol(0x7d7)]; ++aw1) { + var awe = aw7['_clippingPlanes']['get'](aw1); + switch (awe['types']) { + case 'Z' + doo(0x31a) + 'N': + if (awe['distance'] < aw9['z']) { + var awf = new Cesium['Matrix4'](); + var awg = Cesium['Matrix4'][dol(0x7d8)](new Cesium[(dol(0x7d9))](0x0,0x0,-(aw9['z'] - (aw9['z'] - awe['distance']))), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awa, awg, awf); + Cesium['Matrix4']['multiply'](awf, awc, awf); + if (Cesium['defined'](avY)) + cs['funcPublic'][dol(0x7da)](avV, avW, awf, avY, avZ, Cesium['WindingOrder']['CLOCKWISE']); + else + cs['funcPublic'][dol(0x7db)](avV, avW, awf, avX, Cesium['WindingOrder']['CLOCKWISE']); + } + break; + case 'Z' + doo(0x31b) + 'X': + if (awe['distance'] < aw9['z']) { + var awf = new Cesium['Matrix4'](); + var awg = Cesium['Matrix4'][dol(0x7dc)](new Cesium['Cartesian3'](0x0,0x0,aw9['z'] - (aw9['z'] - awe[dol(0x7dd)])), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awa, awg, awf); + Cesium['Matrix4'][dol(0x7de)](awf, awc, awf); + if (Cesium['defined'](avY)) + cs['funcPublic']['createFillPlaneTexture'](avV, avW, awf, avY, avZ, Cesium[dol(0x7df)]['COUNTER_CLOCKWISE']); + else + cs['funcPublic'][dol(0x7e0)](avV, avW, awf, avX, Cesium['WindingOrder'][dol(0x7e1)]); + } + break; + case 'X' + doo(0x31c) + 'N': + if (awe['distance'] < aw9['x']) { + var awf = new Cesium['Matrix4'](); + var awg = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](-(aw9['x'] - (aw9['x'] - awe['distance'])),0x0,0x0), new Cesium['Matrix4']()); + Cesium['Matrix4'][dol(0x7e2)](awa, awg, awf); + Cesium['Matrix4']['multiply'](awf, awc, awf); + if (Cesium['defined'](avY)) + cs['funcPublic'][dol(0x7e3)](avV, avW, awf, avY, avZ, Cesium['WindingOrder']['CLOCKWISE']); + else + cs['funcPublic'][dol(0x7e4)](avV, avW, awf, avX, Cesium[dol(0x7e5)]['CLOCKWISE']); + } + break; + case 'X' + doo(0x31d) + 'X': + if (awe['distance'] < aw9['x']) { + var awf = new Cesium['Matrix4'](); + var awg = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](aw9['x'] - (aw9['x'] - awe['distance']),0x0,0x0), new Cesium[(dol(0x7e6))]()); + Cesium['Matrix4']['multiply'](awa, awg, awf); + Cesium[dol(0x7e7)]['multiply'](awf, awc, awf); + if (Cesium['defined'](avY)) + cs['funcPublic']['createFillPlaneTexture'](avV, avW, awf, avY, avZ, Cesium['WindingOrder']['COUNTER_CLOCKWISE']); + else + cs['funcPublic']['createFillPlane'](avV, avW, awf, avX, Cesium['WindingOrder']['COUNTER_CLOCKWISE']); + } + break; + case 'Y' + doo(0x31e) + 'N': + if (awe['distance'] < aw9['y']) { + var awf = new Cesium['Matrix4'](); + var awg = Cesium[dol(0x7e8)]['fromRotationTranslation'](Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](0x0,-(aw9['y'] - (aw9['y'] - awe['distance'])),0x0), new Cesium['Matrix4']()); + Cesium['Matrix4'][dol(0x7e9)](awa, awg, awf); + Cesium['Matrix4']['multiply'](awf, awc, awf); + if (Cesium['defined'](avY)) + cs['funcPublic']['createFillPlaneTexture'](avV, avW, awf, avY, avZ, Cesium['WindingOrder']['COUNTER_CLOCKWISE']); + else + cs['funcPublic']['createFillPlane'](avV, avW, awf, avX, Cesium['WindingOrder']['COUNTER_CLOCKWISE']); + } + break; + case 'Y' + doo(0x31f) + 'X': + if (awe['distance'] < aw9['y']) { + var awf = new Cesium['Matrix4'](); + var awg = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](0x0,aw9['y'] - (aw9['y'] - awe['distance']),0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awa, awg, awf); + Cesium['Matrix4']['multiply'](awf, awc, awf); + if (Cesium['defined'](avY)) + cs['funcPublic']['createFillPlaneTexture'](avV, avW, awf, avY, avZ, Cesium['WindingOrder']['CLOCKWISE']); + else + cs['funcPublic']['createFillPlane'](avV, avW, awf, avX, Cesium['WindingOrder']['CLOCKWISE']); + } + break; + } + } + }, + 'clipFillFeatureByStencil': function(awr, aws, awt, awu, awv, aww) { + var awx = awr['viewer']['scene']['_frameState']['commandList']; + for (var awy = 0x0; awy < awx['length']; awy++) { + if (awx[awy][dol(0x7ea)] == Cesium['Pass']['CESIUM_3D_TILE']) { + if (Cesium[dol(0x7eb)](awx[awy]['owner']) && Cesium['defined'](awx[awy]['owner']['primitive']) && Cesium['defined'](awx[awy]['owner']['primitive'][dol(0x7ec)]) && awx[awy]['owner'][dol(0x7ed)]['id'] == aws) { + var awz = Cesium['DrawCommand']['shallowClone'](awx[awy]); + awz['id'] = aws; + var awA = awz['_shaderProgram']; + if (Cesium['defined'](awA)) { + var awB = Cesium['clone'](awz['renderState'], !![]); + var ba = { + 'frontFace': Cesium['WindingOrder']['COUNTER_CLOCKWISE'], + 'cull': { + 'enabled': ![], + 'face': Cesium[dol(0x7ee)]['BACK'] + }, + 'depthTest': { + 'enabled': ![], + 'func': Cesium['DepthFunction']['LESS'] + }, + 'colorMask': { + 'red': ![], + 'green': ![], + 'blue': ![], + 'alpha': ![] + }, + 'depthMask': ![], + 'stencilMask': !![], + 'stencilTest': { + 'enabled': !![], + 'frontFunction': Cesium['StencilFunction']['ALWAYS'], + 'backFunction': Cesium['StencilFunction']['ALWAYS'], + 'reference': 0x1, + 'mask': 0x1, + 'frontOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium[dol(0x7ef)]['KEEP'], + 'zPass': Cesium['StencilOperation']['DECREMENT'] + }, + 'backOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium[dol(0x7f0)]['KEEP'], + 'zPass': Cesium['StencilOperation']['INCREMENT'] + } + } + }; + awB['colorMask'] = ba['colorMask']; + awB['depthMask'] = ba['depthMask']; + awB['depthTest'] = ba['depthTest']; + awB['stencilMask'] = ba['stencilMask']; + awB['stencilTest'] = ba['stencilTest']; + awz['renderState'] = Cesium[dol(0x7f1)]['fromCache'](awB); + var awD = new aFy(awz); + awD['drawCommand']['_pickId'] = undefined; + awr['viewer']['scene']['primitives']['add'](awD); + } + } + } + } + Object['keys'](awr['clippingPlaneMapArray'])['forEach'](awE => { + for (var awF = 0x0; awF < awr['clippingPlaneMapArray'][awE]['length']; ++awF) { + var awG = awr['clippingPlaneMapArray'][awE][awF]; + var awH = Cesium['Transforms']['eastNorthUpToFixedFrame'](awr['GLE_ClipPlansBoxCenterMap'][awE]); + var awI = awr[dol(0x7f2)][awE]; + if (aww) + awI = awG['featureBox']['size']; + var awJ = ![]; + var awK = awu; + if (aww) { + awK = awG[dol(0x7f3)]['_rendererResources'][dol(0x7f4)][0x0]; + var awL; + var awM = awG['_owner']['_runtime']['materialsByName']; + Object['getOwnPropertyNames'](awM)['forEach'](function(awN, awO, awP) { + awL = awM[awN][dol(0x7f5)]; + }); + if (awL == 'O' + doo(0x320) + 'E' || awL == 'B' + doo(0x321) + 'D') { + var awQ = []; + awr['funcPublic']['GetUVByFeatureId'](awr['tileset'], awr['tileset']['root'], awG['featureId'], awQ); + if (awQ['length'] > 0x1) { + awv = new Cesium['Cartesian2'](awQ[0x0],awQ[0x1]); + awJ = !![]; + } + } + } + for (var awy = 0x0; awy < awG['length']; ++awy) { + var awS = awG['get'](awy); + switch (awS['types']) { + case 'Z' + doo(0x322) + 'N': + if (awS['distance'] < awr['GLE_ClipPlansBoxSizeMap'][awE]['z']) { + var awT = new Cesium['Matrix4'](); + var awU = Cesium[dol(0x7f6)]['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,-(awI['z'] - (awI['z'] - awS['distance']))), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awH, awU, awT); + var awV = new Cesium['Cartesian3'](awI['x'],awI['y'],awI['z']); + var awW = Cesium['Matrix4']['fromScale'](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (aww) { + var awX = Cesium['Matrix4']['multiplyByPoint'](awT, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var awY = awr['funcPublic']['cartesian3ToCartographic'](awX, awr['viewer']); + var awZ = awr['funcPublic'][dol(0x7f7)](awG[dol(0x7f8)]['center'], awr['viewer']); + var ax0 = new Cesium['Cartographic'](awZ['longitude'],awZ['latitude'],awY[dol(0x7f9)]); + var ax1 = awr['funcPublic']['cartographicToCartesian3'](new Cesium['Cartographic'](ax0['longitude'],ax0['latitude'],ax0['height']), awr[dol(0x7fa)]); + var ax2 = Cesium['Cartesian3']['subtract'](ax1, awX, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromTranslation'](ax2), awT, awT); + } + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium['WindingOrder']['CLOCKWISE'], awJ); + else + cs[dol(0x7fb)]['createFillPlane'](awr, awE, awT, awt, Cesium['WindingOrder']['CLOCKWISE']); + } + break; + case 'Z' + doo(0x323) + 'X': + if (awS['distance'] < awr['GLE_ClipPlansBoxSizeMap'][awE]['z']) { + var awT = new Cesium['Matrix4'](); + var awU = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,awI['z'] - (awI['z'] - awS['distance'])), new Cesium['Matrix4']()); + Cesium['Matrix4'][dol(0x7fc)](awH, awU, awT); + var awV = new Cesium[(dol(0x7fd))](awI['x'],awI['y'],awI['z']); + var awW = Cesium['Matrix4']['fromScale'](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (aww) { + var awX = Cesium['Matrix4'][dol(0x7fe)](awT, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var awY = awr['funcPublic']['cartesian3ToCartographic'](awX, awr['viewer']); + var awZ = awr['funcPublic']['cartesian3ToCartographic'](awG['featureBox']['center'], awr['viewer']); + var ax0 = new Cesium['Cartographic'](awZ['longitude'],awZ['latitude'],awY['height']); + var ax1 = awr['funcPublic']['cartographicToCartesian3'](new Cesium['Cartographic'](ax0['longitude'],ax0[dol(0x7ff)],ax0['height']), awr['viewer']); + var ax2 = Cesium['Cartesian3'][dol(0x800)](ax1, awX, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromTranslation'](ax2), awT, awT); + } + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium[dol(0x801)]['COUNTER_CLOCKWISE'], awJ); + else + cs['funcPublic']['createFillPlane'](awr, awE, awT, awt, Cesium['WindingOrder']['COUNTER_CLOCKWISE']); + } + break; + case 'X' + doo(0x324) + 'N': + if (awS[dol(0x802)] < awr['GLE_ClipPlansBoxSizeMap'][awE]['x']) { + var awT = new Cesium['Matrix4'](); + var awU = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](-(awI['x'] - (awI['x'] - awS['distance'])),0x0,0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awH, awU, awT); + var awV = new Cesium['Cartesian3'](awI['z'],awI['y'],awI['x']); + var awW = Cesium['Matrix4'][dol(0x803)](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (aww) { + var awX = Cesium['Matrix4']['multiplyByPoint'](awT, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var awY = awr['funcPublic']['cartesian3ToCartographic'](awX, awr[dol(0x804)]); + var awZ = awr['funcPublic']['cartesian3ToCartographic'](awG['featureBox']['center'], awr['viewer']); + var ax0 = new Cesium['Cartographic'](awY[dol(0x805)],awZ['latitude'],awY['height']); + var ax1 = awr['funcPublic']['cartographicToCartesian3'](new Cesium['Cartographic'](ax0['longitude'],ax0['latitude'],awZ['height']), awr['viewer']); + var ax2 = Cesium['Cartesian3']['subtract'](ax1, awX, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiply'](Cesium['Matrix4'][dol(0x806)](ax2), awT, awT); + } + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium['WindingOrder']['CLOCKWISE'], awJ); + else + cs['funcPublic']['createFillPlane'](awr, awE, awT, awt, Cesium[dol(0x807)]['CLOCKWISE']); + } + break; + case 'X' + doo(0x325) + 'X': + if (awS['distance'] < awr['GLE_ClipPlansBoxSizeMap'][awE]['x']) { + var awT = new Cesium['Matrix4'](); + var awU = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](awI['x'] - (awI['x'] - awS['distance']),0x0,0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awH, awU, awT); + var awV = new Cesium['Cartesian3'](awI['z'],awI['y'],awI['x']); + var awW = Cesium['Matrix4']['fromScale'](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (aww) { + var awX = Cesium['Matrix4']['multiplyByPoint'](awT, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var awY = awr['funcPublic']['cartesian3ToCartographic'](awX, awr['viewer']); + var awZ = awr[dol(0x808)]['cartesian3ToCartographic'](awG['featureBox']['center'], awr['viewer']); + var ax0 = new Cesium['Cartographic'](awY['longitude'],awZ['latitude'],awY['height']); + var ax1 = awr['funcPublic'][dol(0x809)](new Cesium['Cartographic'](ax0[dol(0x80a)],ax0['latitude'],awZ['height']), awr['viewer']); + var ax2 = Cesium[dol(0x80b)]['subtract'](ax1, awX, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromTranslation'](ax2), awT, awT); + } + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium['WindingOrder']['COUNTER_CLOCKWISE'], awJ); + else + cs['funcPublic']['createFillPlane'](awr, awE, awT, awt, Cesium[dol(0x80c)]['COUNTER_CLOCKWISE']); + } + break; + case 'Y' + doo(0x326) + 'N': + if (awS['distance'] < awr['GLE_ClipPlansBoxSizeMap'][awE]['y']) { + var awT = new Cesium['Matrix4'](); + var awU = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](0x0,-(awI['y'] - (awI['y'] - awS['distance'])),0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awH, awU, awT); + var awV = new Cesium['Cartesian3'](awI['x'],awI['z'],awI['y']); + var awW = Cesium[dol(0x80d)]['fromScale'](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (aww) { + var awX = Cesium['Matrix4']['multiplyByPoint'](awT, Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var awY = awr['funcPublic']['cartesian3ToCartographic'](awX, awr['viewer']); + var awZ = awr['funcPublic']['cartesian3ToCartographic'](awG['featureBox']['center'], awr[dol(0x80e)]); + var ax0 = new Cesium['Cartographic'](awZ[dol(0x80f)],awY[dol(0x810)],awY['height']); + var ax1 = awr['funcPublic']['cartographicToCartesian3'](new Cesium['Cartographic'](ax0[dol(0x811)],ax0['latitude'],awZ['height']), awr['viewer']); + var ax2 = Cesium['Cartesian3']['subtract'](ax1, awX, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromTranslation'](ax2), awT, awT); + } + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium['WindingOrder']['COUNTER_CLOCKWISE'], awJ); + else + cs['funcPublic']['createFillPlane'](awr, awE, awT, awt, Cesium['WindingOrder']['COUNTER_CLOCKWISE']); + } + break; + case 'Y' + doo(0x327) + 'X': + if (awS['distance'] < awr['GLE_ClipPlansBoxSizeMap'][awE]['y']) { + var awT = new Cesium['Matrix4'](); + var awU = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](0x5a)), new Cesium['Cartesian3'](0x0,awI['y'] - (awI['y'] - awS['distance']),0x0), new Cesium['Matrix4']()); + Cesium['Matrix4']['multiply'](awH, awU, awT); + var awV = new Cesium[(dol(0x812))](awI['x'],awI['z'],awI['y']); + var awW = Cesium['Matrix4']['fromScale'](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (aww) { + var awX = Cesium['Matrix4']['multiplyByPoint'](awT, Cesium['Cartesian3'][dol(0x813)](0x0, 0x0, 0x0), new Cesium[(dol(0x814))]()); + var awY = awr['funcPublic']['cartesian3ToCartographic'](awX, awr['viewer']); + var awZ = awr['funcPublic']['cartesian3ToCartographic'](awG['featureBox']['center'], awr['viewer']); + var ax0 = new Cesium['Cartographic'](awZ['longitude'],awY[dol(0x815)],awY['height']); + var ax1 = awr[dol(0x816)]['cartographicToCartesian3'](new Cesium['Cartographic'](ax0['longitude'],ax0['latitude'],awZ['height']), awr['viewer']); + var ax2 = Cesium['Cartesian3']['subtract'](ax1, awX, new Cesium['Cartesian3']()); + Cesium[dol(0x817)]['multiply'](Cesium['Matrix4']['fromTranslation'](ax2), awT, awT); + } + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium['WindingOrder']['CLOCKWISE'], awJ); + else + cs[dol(0x818)]['createFillPlane'](awr, awE, awT, awt, Cesium['WindingOrder']['CLOCKWISE']); + } + break; + case 'C' + doo(0x328) + 'h': + var awT = new Cesium['Matrix4'](); + let axS = Cesium['Cartesian3']['normalize'](awS['normal']['_cartesian3'], new Cesium['Cartesian3']()); + var axT = function(axU) { + var axU = Cesium['Cartesian3']['normalize'](axU, new Cesium['Cartesian3']()); + var axW = Math['atan2'](axU['y'], axU['x']) - Cesium[dol(0x819)][dol(0x81a)]; + return Cesium['Math']['TWO_PI'] - Cesium['Math']['zeroToTwoPi'](axW); + }; + var axX = function(axY) { + Cesium['Cartesian3'][dol(0x81b)](axY, axY); + return Cesium['Math']['PI_OVER_TWO'] - Cesium['Math']['acosClamped'](axY['z']); + }; + var axZ = awr['GLE_ClipPlansBoxCenterMap'][awE]; + var ay0 = Cesium['Transforms']['eastNorthUpToFixedFrame'](axZ); + var ay1 = axT(axS); + var ay2 = axX(axS); + var ay3 = new Cesium['HeadingPitchRoll'](ay1 - Cesium['Math']['PI_OVER_TWO'],ay2 - Cesium['Math']['PI_OVER_TWO'],0x0); + var ay4 = Cesium['Matrix3'][dol(0x81c)]['clone'](); + Cesium[dol(0x81d)]['fromHeadingPitchRoll'](ay3, ay4); + Cesium['Matrix4']['multiplyByMatrix3'](awH, ay4, awT); + var ay5 = Math['sqrt'](awI['x'] * awI['x'] + awI['y'] * awI['y'] + awI['z'] * awI['z']); + var awV = new Cesium['Cartesian3'](ay5,ay5,ay5); + var awW = Cesium['Matrix4']['fromScale'](awV); + Cesium['Matrix4']['multiply'](awT, awW, awT); + if (Cesium['defined'](awK)) + cs['funcPublic']['createFillPlaneTexture'](awr, awE, awT, awK, awv, Cesium['WindingOrder']['CLOCKWISE'], awJ); + else + cs['funcPublic']['createFillPlane'](awr, awE, awT, awt, Cesium['WindingOrder'][dol(0x81e)]); + break; + } + } + } + } + ); + }, + 'createFillPlaneTexture': function(ay8, ay9, aya, ayb, ayc, ayd, aye) { + if (!Cesium['defined'](ayc)) { + ayc = new Cesium['Cartesian2'](0x1,0x1); + } else { + ayc = new Cesium['Cartesian2'](ayc['x'],ayc['y']); + } + var ayf = new Cesium['PlaneGeometry']({ + 'vertexFormat': Cesium['VertexFormat']['POSITION_AND_ST'] + }); + var ayg = new Cesium['GeometryInstance']({ + 'geometry': ayf, + 'modelMatrix': aya + }); + var ayh = ayj(ayp(), ayo(), aye ? ayr() : ayq(), ayb); + var ayi = new Cesium['Primitive']({ + 'geometryInstances': ayg, + 'appearance': ayh, + 'asynchronous': ![], + 'debugShowBoundingVolume': ![] + }); + ayi['clipFillTag'] = ay9; + ay8['viewer']['scene']['primitives']['add'](ayi); + function ayj(ayk, ayl, aym, ayn) { + return new Cesium['Appearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'uniforms': { + 'image': ayn, + 'repeat': ayc + }, + 'source': aym + } + }), + 'aboveGround': !![], + 'faceForward': !![], + 'flat': !![], + 'translucent': ![], + 'renderState': { + 'blending': Cesium['BlendingState']['PRE_MULTIPLIED_ALPHA_BLEND'], + 'frontFace': ayd, + 'cull': { + 'enabled': !![], + 'face': Cesium['CullFace']['Back'] + }, + 'depthTest': { + 'enabled': !![], + 'func': Cesium['DepthFunction']['LESS'] + }, + 'depthMask': ![], + 'stencilMask': ![], + 'stencilTest': { + 'enabled': !![], + 'frontFunction': Cesium['StencilFunction']['EQUAL'], + 'backFunction': Cesium['StencilFunction']['EQUAL'], + 'reference': 0x1, + 'mask': 0x1, + 'frontOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium['StencilOperation']['KEEP'], + 'zPass': Cesium['StencilOperation']['KEEP'] + }, + 'backOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium['StencilOperation']['KEEP'], + 'zPass': Cesium['StencilOperation']['KEEP'] + } + } + }, + 'fragmentShaderSource': ayk, + 'vertexShaderSource': ayl + }); + } + function ayo() { + return doj(0xca); + } + function ayp() { + return doj(0xcb); + } + function ayq() { + return doj(0xcc); + } + function ayr() { + return doj(0xcd); + } + }, + 'createFillPlane': function(ays, ayt, ayu, ayv, ayw) { + var ayx = new Cesium['PlaneGeometry']({ + 'vertexFormat': Cesium['VertexFormat']['POSITION_ONLY'] + }); + var ayy = new Cesium['GeometryInstance']({ + 'geometry': ayx, + 'modelMatrix': ayu, + 'attributes': { + 'color': Cesium['ColorGeometryInstanceAttribute']['fromColor'](ayv) + } + }); + var ayz = '\x20\x20attribute\x20vec3\x20position3DHigh;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20position3DLow;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec4\x20color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec4\x20v_color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20float\x20batchId;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20p\x20=\x20czm_computePosition();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_color\x20=color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20p;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}'; + var ayA = '\x20\x20varying\x20vec4\x20v_color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20v_color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}'; + var ayB = new Cesium['Appearance']({ + 'renderState': { + 'frontFace': ayw, + 'cull': { + 'enabled': !![], + 'face': Cesium['CullFace']['Back'] + }, + 'depthTest': { + 'enabled': !![], + 'func': Cesium['DepthFunction']['LESS'] + }, + 'depthMask': ![], + 'stencilMask': ![], + 'stencilTest': { + 'enabled': !![], + 'frontFunction': Cesium['StencilFunction']['EQUAL'], + 'backFunction': Cesium['StencilFunction']['EQUAL'], + 'reference': 0x1, + 'mask': 0x1, + 'frontOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium['StencilOperation']['KEEP'], + 'zPass': Cesium['StencilOperation']['KEEP'] + }, + 'backOperation': { + 'fail': Cesium['StencilOperation']['KEEP'], + 'zFail': Cesium['StencilOperation']['KEEP'], + 'zPass': Cesium['StencilOperation']['KEEP'] + } + } + }, + 'fragmentShaderSource': ayA, + 'vertexShaderSource': ayz + }); + var ayC = new Cesium['Primitive']({ + 'geometryInstances': ayy, + 'appearance': ayB, + 'debugShowBoundingVolume': ![] + }); + ayC['clipFillTag'] = ayt; + ays['viewer']['scene']['primitives']['add'](ayC); + }, + 'check2DFrustumRange': function(ayD) { + if (cs['EditViewMode'] != doh(0x42) || cs['isCad3D'] || !cs[dol(0x81f)]) { + return; + } + var ayE = ![]; + if (cp && Cesium['Cartesian3']['distanceSquared'](cp, cs['viewer']['scene']['camera'][dol(0x820)]) == 0x0) { + if (!Cesium['defined'](ayD)) + return; + } + if (Cesium[dol(0x821)](ayD)) { + cq = 'w' + doo(0x329) + 'l'; + } else { + cq = 'm' + doo(0x32a) + 'e'; + } + var ayF = cs['Model']['getModelsCenter'](); + if (!ayF) + return; + var ayG = function(ayH, ayI, ayJ) { + var ayK = ayI / 0x2; + var ayL = ayJ / 0x2; + var ayM = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4']['fromTranslation'](ayH, ayM); + var ayN = Cesium['Transforms']['eastNorthUpToFixedFrame'](ayH); + var ayO = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['multiplyByScalar'](new Cesium['Cartesian3'](0x1,0x1,0x0), ayI, ayO); + var ayP = Cesium['Matrix4']['multiplyByPoint'](ayN, ayO, new Cesium[(dol(0x822))]()); + Cesium['Cartesian3']['multiplyByScalar'](new Cesium['Cartesian3'](-0x1,-0x1,0x0), ayI, ayO); + var ayQ = Cesium['Matrix4']['multiplyByPoint'](ayN, ayO, new Cesium['Cartesian3']()); + var ayR = Cesium['Cartographic']['fromCartesian'](ayQ); + var ayS = Cesium['Cartographic']['fromCartesian'](ayP); + return new Cesium[(dol(0x823))](ayR['longitude'],ayR['latitude'],ayS[dol(0x824)],ayS['latitude']); + }; + var ayT = function(ayU, ayV) { + var ayW = ayU['west'] > ayV['west']; + var ayX = ayU['east'] < ayV['east']; + var ayY = ayU[dol(0x825)] > ayV['south']; + var ayZ = ayU['north'] < ayV['north']; + return ayW && ayX && ayY && ayZ; + }; + var az0 = function(az1, az2) { + var az3 = Cesium['BoundingRectangle']['fromRectangle'](az1); + var az4 = Cesium['BoundingRectangle']['fromRectangle'](az2); + var az5 = az3['intersect'](az4); + return az5 == Cesium['Intersect']['INTERSECTING'] || ayT(az1, az2) || ayT(az2, az1); + }; + function az6(az7, az8) { + var az9 = 0x0; + if (az8['east'] < az7['west']) { + az9 = az8['east'] - az7['west']; + } else if (az8['west'] > az7['east']) { + az9 = az8['west'] - az7['east']; + } + var aza = 0x0; + if (az8['north'] < az7['south']) { + aza = az8['north'] - az7['south']; + } else if (az8['south'] > az7['north']) { + aza = az8['south'] - az7['north']; + } + var azb = Math['sqrt'](az9 * az9 + aza * aza); + return { + 'shortestDistance': azb, + 'horizontalDistance': az9, + 'verticalDistance': aza + }; + } + var azc = cs['viewer']['scene']['camera']['heading']; + var azd = cs['viewer']['scene']['camera']['pitch']; + var aze = cs[dol(0x826)]['scene']['camera']['roll']; + if ((azc > Math['PI'] ? Math['abs'](azc - 0x2 * Math['PI']) > 0.001 : Math['abs'](azc) > 0.001) || Math['abs'](azd + Math['PI'] * 0.5) > 0.001 || aze != 0x0) { + cs['viewer']['scene']['camera']['setView']({ + 'destination': cs['viewer']['scene']['camera']['position'], + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math'][dol(0x827)](-0x5a), + 'roll': 0x0 + } + }); + } + ;var azf = ayG(ayF['center'], ayF['radius'] * 0.5, ayF['radius'] * 0.5); + var azg = ayG(ayF['center'], ayF['radius'] * cr / 0x5, ayF['radius'] * cr / 0x5); + var azh = cs['viewer']['camera']['computeViewRectangle'](); + if (ayT(azf, azh) && !ayT(azh, azg)) { + cs['viewer']['scene']['camera']['setView']({ + 'destination': cs['viewer']['scene']['camera']['position'], + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math'][dol(0x828)](-0x5a), + 'roll': 0x0 + } + }); + if (Cesium['defined'](ayD) && ayD < 0x0) { + ayE = !![]; + } + } + var azi = ![]; + if (!az0(azh, azf)) { + azi = !![]; + var azj, azk; + azj = Math['abs'](azf['east'] - azf[dol(0x829)]); + azk = Math['abs'](azf['north'] - azf['south']); + var azl = az6(azh, azf); + var azm = Cesium['Cartographic']['fromCartesian'](cs['viewer']['scene']['camera']['position']); + var azn = azm['longitude'] + azl['horizontalDistance'] + (azl['horizontalDistance'] === 0x0 ? 0x0 : azl['horizontalDistance'] / Math['abs'](azl[dol(0x82a)]) * azj * 0.2); + var azo = azm['latitude'] + azl['verticalDistance'] + (azl['verticalDistance'] === 0x0 ? 0x0 : azl['verticalDistance'] / Math['abs'](azl['verticalDistance']) * azk * 0.2); + var azp = Cesium['Cartesian3']['fromRadians'](azn, azo, azm['height']); + cs['viewer']['scene']['camera']['flyTo']({ + 'destination': azp, + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math']['toRadians'](-0x5a), + 'roll': 0x0 + }, + 'duration': 1.5, + 'complete': function() { + if (!cp) + cp = new Cesium['Cartesian3'](); + Cesium['Cartesian3'][dol(0x82b)](cs['viewer']['scene']['camera']['position'], cp); + } + }); + } + if (!azi) { + if (!cp) + cp = new Cesium[(dol(0x82c))](); + Cesium['Cartesian3']['clone'](cs['viewer']['scene']['camera']['position'], cp); + } + cs['viewer'][dol(0x82d)]['requestRender'](); + return ayE; + } + }; + if (this['defaults']['editmode'] ) + EditControls(this); + if (this['defaults']['cadmode'] ) + GLECad(this); + APIAlias(cs); + function azq(azr, azs, azt, azu) { + azs[dol(0x82e)] = Cesium['defaultValue'](azs['draco'], ![]); + var azv; + var azw; + var azx; + var azy = 0x0; + var azz = 0x0; + var azA = Cesium['ComponentDatatype']['FLOAT']; + var azB = azs['batchid2OffsetMap']['get'](azt); + var azC = []; + if (azs['draco']) { + azv = cs['funcPublic']['GetVertexByDracoData'](azs, azr['_modelInstanceCollection'] != undefined ? 0x0 : azt); + } else { + var azD = new Uint8Array(azs[dol(0x82f)]['buffers'][0x0]['_sizeInBytes']); + azs['_rendererResources']['buffers'][0x0]['getBufferData'](azD); + var azE = azD['buffer']; + var azF = azs['_cachedRendererResources']['buffers'][0x0]['_sizeInBytes'] / Cesium['ComponentDatatype']['getSizeInBytes'](azA); + azv = Cesium['ComponentDatatype']['createArrayBufferView'](azA, azE, 0x0, azF); + } + var azG = 0x2; + if (azs[dol(0x830)]) { + azG = azs['_decodedData'][(azr['_modelInstanceCollection'] != undefined ? 0x0 : azt) + ('.' + doo(0x32b) + '0')]['bufferView']; + } else { + azG = cs['funcPublic']['GetIndicesIndex'](azs['_cachedRendererResources']['buffers']); + } + azy = azs['_cachedRendererResources']['buffers'][azG]['indexDatatype']; + var azH = new Uint8Array(azs['_cachedRendererResources'][dol(0x831)][azG]['_sizeInBytes']); + azs['_rendererResources']['buffers'][azG][dol(0x832)](azH); + var azI = azH['buffer']; + var azJ = azs['_cachedRendererResources']['buffers'][azG]['_sizeInBytes'] / Cesium['ComponentDatatype']['getSizeInBytes'](azy); + azw = Cesium['ComponentDatatype']['createArrayBufferView'](azy, azI, 0x0, azJ); + var azK = azr['_batchTable']['getBatchIdMatrix'](azt); + if (azr['_modelInstanceCollection'] != undefined) { + let azL = new Cesium['Matrix4'](); + azr['_modelInstanceCollection']['_instances'][azt][dol(0x833)]['clone'](azL); + azK = Cesium['Matrix4']['multiplyTransformation'](azK, azL, new Cesium['Matrix4']()); + } + if (azs['draco']) { + for (var azM = 0x0; azM < azw['length']; azM++) { + var azN = Cesium['clone'](azv[azw[azM]]); + Cesium['Matrix4']['multiplyByPoint'](azK, azN, azN); + azu['push'](azN['x']); + azu['push'](azN['y']); + azu['push'](azN['z']); + } + } else { + if (azs['isInstanced']) { + var azO = []; + var azP = []; + for (var azM = 0x0; azM < azx['length']; azM++) { + if (azx[azM] == azt) { + var azR = new Cesium['Cartesian3'](azv[azM * 0x3],azv[azM * 0x3 + 0x1],azv[azM * 0x3 + 0x2]); + azP['push'](azR); + azO['push'](azx[azM]); + } + } + for (var azM = 0x0; azM < azw['length']; azM++) { + if (azO[azw[azM]] == azt) { + var azN = Cesium['clone'](azP[azw[azM]]); + Cesium['Matrix4']['multiplyByPoint'](azK, azN, azN); + azu['push'](azN['x']); + azu['push'](azN['y']); + azu['push'](azN['z']); + } + } + } else { + var azP = []; + for (var azM = 0x0; azM < azx['length']; azM++) { + var azR = new Cesium['Cartesian3'](azv[azM * 0x3],azv[azM * 0x3 + 0x1],azv[azM * 0x3 + 0x2]); + azP[dol(0x834)](azR); + } + for (var azM = 0x0; azM < azw['length']; azM++) { + if (azx[azw[azM]] == (azs['isInstanced'] ? azt : azt)) { + var azN = Cesium['clone'](azP[azw[azM]]); + Cesium[dol(0x835)]['multiplyByPoint'](azK, azN, azN); + azu['push'](azN['x']); + azu['push'](azN['y']); + azu['push'](azN['z']); + } + } + } + } + } + function azZ(aA0) { + return !![]; + } + function aA1(aA2, aA3) { + return !![]; + } + var aA6 = !![]; + function aA7() { + try { + if (cs['defaults']['secretkey'] !== '' && cs['defaults']['secretkey'] != undefined) { + var aA8 = aCo(cs['defaults']['secretkey'], 'e' + doo(0x32e) + 'g')['replace'](/(^[\s\n\t]+|[\s\n\t]+$)/g, ''); + var aA9 = aA8['lastIndexOf']('}'); + var aAa = aA8['substring'](aA8, aA9 + 0x1); + var aAb = cs[dol(0x836)]['getAuthorizationInfo'](); + if (aAb != undefined) { + var aAc = 0x1; + var aA8 = aCo(aAb, 'e' + doo(0x32f) + 'g')['replace'](/(^[\s\n\t]+|[\s\n\t]+$)/g, ''); + var aAe = ''; + if (aA8['indexOf']('&') > -0x1) { + aAc = 0x1; + aAe = aA8['split']('&'); + } else if (aA8['indexOf']('|') > -0x1) { + aAc = 0x2; + aAe = aA8['split']('|'); + } + var aAf = aAa; + aAf = aAf['substring'](aAf['indexOf']('{') + 0x1, aAf['indexOf']('}')); + aAf = aAf['split']('&'); + if (aAe['length'] == 0x6 && aAf[dol(0x837)] == 0x4) { + var aAg = 0x0; + var aAh = window['location']['href']; + if (aAh['indexOf']('h' + doo(0x330) + '/') > -0x1) { + aAg += 0x8; + } else if (aAh['indexOf']('h' + doo(0x331) + '/') > -0x1) { + aAg += 0x7; + } + var aAi = aAh[dol(0x838)](0x0, aAg + aAh['replace']('h' + doo(0x332) + '/', '')['replace']('h' + doo(0x333) + '/', '')['indexOf']('/') + 0x1); + aAe[0x1] = aAe[0x1][dol(0x839)]('/'); + if (aAe[0x4] != aAf[0x2] || aAe[0x3] != aAf[0x1]) { + return aCe(-0xf); + } + if (aAf[0x3]['replace']('\x20', '')[dol(0x83a)](doh(0x43)) > -0x1) { + var aAj = aAf[0x3]['replace']('\x20', '')['split'](doh(0x44)); + var aAk = ![]; + for (var aAl = 0x0; aAl < aAj['length']; aAl++) { + if (aAj[aAl]['replace']('\x20', '') != '') { + if (aAe[0x5][dol(0x83b)](aAj[aAl]['replace']('\x20', '')) > -0x1) { + aAk = !![]; + } + } + } + if (!aAk) { + return aCe(-0xe); + } + } else { + if (aAe[0x5]['indexOf'](aAf[0x3][dol(0x83c)]('\x20', '')) == -0x1) { + return aCe(-0xe); + } + } + if (aAf[0x0]['replace']('\x20', '')['indexOf'](doh(0x45)) > -0x1) { + var aAj = aAf[0x0]['replace']('\x20', '')['split'](doh(0x46)); + var aAk = ![]; + for (var aAl = 0x0; aAl < aAj['length']; aAl++) { + if (aAj[aAl]['replace']('\x20', '') != '') { + if (aAe[0x1]['indexOf'](aAj[aAl]['replace']('\x20', '')) > -0x1 && aAi['indexOf'](aAj[aAl]['replace']('\x20', '')) > -0x1) { + aAk = !![]; + } + } + } + if (!aAk) { + return aCe(-0xd); + } + } else { + if (aAf[0x0] != aAe[0x1] || aAi['indexOf'](aAe[0x1]['replace']('\x20', '')) == -0x1) { + return aCe(-0xd); + } + } + aA6 = !![]; + } else { + var aAp; + if (Object['prototype']['toString']['call'](aA8) === '[' + doo(0x334) + ']') { + aAp = JSON['parse'](aAa); + } + var aAq = aAe; + var aAf = aAp; + var aAs = new XMLHttpRequest(); + aAs['open']('P' + doo(0x335) + 'T', aAp['xhrurl'], !![]); + aAs['setRequestHeader']('C' + doo(0x336) + 'e', doj(0xce)); + aAs['onreadystatechange'] = function() { + if (aAs['readyState'] === 0x4) { + if (aAs['status'] === 0xc8 || aAs['status'] === 0x0) { + var aAt = aAs['responseText']; + if (aAt != '' && aAt != null) { + var aAp; + if (Object['prototype']['toString']['call'](aAt) === '[' + doo(0x337) + ']') { + aAp = JSON['parse'](aAt); + } else { + aAp = aAt; + } + var aAv = aCo(aAp['bf226bd314'], '1' + doo(0x338) + '!'); + var aAg = 0x0; + var aAh = window['location']['href']; + if (aAh['indexOf']('h' + doo(0x339) + '/') > -0x1) { + aAg += 0x8; + } else if (aAh['indexOf']('h' + doo(0x33a) + '/') > -0x1) { + aAg += 0x7; + } + var aAi = aAh['substring'](0x0, aAg + aAh['replace']('h' + doo(0x33b) + '/', '')['replace']('h' + doo(0x33c) + '/', '')['indexOf']('/') + 0x1); + if (aAf['domainname'] != undefined) { + if (aAq != '') { + if (aAf['domainname']['replace']('\x20', '')['indexOf']('#') > -0x1) { + var aAj = aAf['domainname']['replace']('\x20', '')['split']('#'); + var aAk = ![]; + var aAB = ![]; + for (var aAl = 0x0; aAl < aAj['length']; aAl++) { + aAj[aAl] = aBA(aAj[aAl], '/'); + if (aAj[aAl]['replace']('\x20', '') != '') { + if (aAq[aAc]['indexOf'](aAj[aAl][dol(0x83d)]('\x20', '')) > -0x1) { + aAB = !![]; + } + if (aAi['indexOf'](aAj[aAl][dol(0x83e)]('\x20', '')) > -0x1) { + aAk = !![]; + if (aAB) { + break; + } + } + } + } + if (!aAk || !aAB) { + return aCe(-0x10); + } + } else { + if (aAq[aAc][dol(0x83f)](aAf['domainname']['replace']('\x20', '')) == -0x1 || aAi['indexOf'](aAf['domainname']['replace']('\x20', '')) == -0x1) { + return aCe(-0x10); + } + } + } else { + aAi = aBA(aAi, '/'); + if (aAf['domainname'] == undefined || aAf['domainname']['indexOf'](aAi['replace']('\x20', '')) == -0x1) { + return aCe(-0x11); + } + } + } + var aAD = aAv['split']('|'); + var aAE = aAD[0x0]; + var aAF = aAD[0x1]; + var aAG = aAD[0x2]; + var aAH = Date['parse'](new Date()); + var aAI = Date['parse'](new Date(aAE['replace'](/-/g, '/'))); + if (Math['floor']((aAI - aAH) / (0x3c * 0x3e8)) < 0x1e) { + var aAJ = aAG['trim'](); + if (aAF === 'g' + doo(0x33d) + 'e') { + if (aAJ['indexOf']('0') > -0x1) { + aA6 = !![]; + } else { + aA6 = ![]; + return aCe(-0x12); + } + } else { + aA6 = ![]; + return aCe(-0x13); + } + } else { + aA6 = ![]; + return aCe(-0x14); + } + } else { + aA6 = ![]; + return aCe(-0x15); + } + } else { + aA6 = ![]; + return aCe(-0x16); + } + } + } + ; + aAs['timeout'] = 0x4e20; + aAs['ontimeout'] = function(aAK) { + aCe('r' + doo(0x33e) + '!'); + } + ; + aAs['send']('d' + doo(0x33f) + '=' + cs[dol(0x840)]['secretkey'] + ''); + } + } else { + var aAp; + if (Object['prototype']['toString']['call'](aA8) === '[' + doo(0x340) + ']') { + aAp = JSON['parse'](aAa); + } + var aAq = ''; + var aAf = aAp; + var aAs = new XMLHttpRequest(); + aAs['open']('P' + doo(0x341) + 'T', aAp[dol(0x841)], !![]); + aAs['setRequestHeader']('C' + doo(0x342) + 'e', doj(0xcf)); + aAs['onreadystatechange'] = function() { + if (aAs['readyState'] === 0x4) { + if (aAs['status'] === 0xc8 || aAs['status'] === 0x0) { + var aAP = aAs['responseText']; + if (aAP != '' && aAP != null) { + var aAp; + if (Object['prototype']['toString']['call'](aAP) === '[' + doo(0x343) + ']') { + aAp = JSON['parse'](aAP); + } else { + aAp = aAP; + } + var aAR = aCo(aAp['bf226bd314'], '1' + doo(0x344) + '!'); + var aAg = 0x0; + var aAh = window[dol(0x842)]['href']; + if (aAh['indexOf']('h' + doo(0x345) + '/') > -0x1) { + aAg += 0x8; + } else if (aAh['indexOf']('h' + doo(0x346) + '/') > -0x1) { + aAg += 0x7; + } + var aAi = aAh['substring'](0x0, aAg + aAh['replace']('h' + doo(0x347) + '/', '')['replace']('h' + doo(0x348) + '/', '')['indexOf']('/') + 0x1); + if (aAf['domainname'] != undefined) { + aAi = aBA(aAi, '/'); + if (aAf['domainname'] == undefined || aAf['domainname']['indexOf'](aAi['replace']('\x20', '')) == -0x1) { + return aCe(-0x17); + } + } + var aAV = aAR['split']('|'); + var aAW = aAV[0x0]; + var aAX = aAV[0x1]; + var aAY = aAV[0x2]; + var aAZ = Date['parse'](new Date()); + var aB0 = Date[dol(0x843)](new Date(aAW['replace'](/-/g, '/'))); + if (Math['floor']((aB0 - aAZ) / (0x3c * 0x3e8)) < 0x1e) { + var aB1 = aAY['trim'](); + if (aAX === 'g' + doo(0x349) + 'e') { + if (aB1['indexOf']('0') > -0x1) { + aA6 = !![]; + } else { + aA6 = ![]; + return aCe(-0x18); + } + } else { + aA6 = ![]; + return aCe(-0x19); + } + } else { + aA6 = ![]; + return aCe(-0x1a); + } + } else { + aA6 = ![]; + return aCe(-0x1b); + } + } else { + aA6 = ![]; + return aCe(-0x1c); + } + } + } + ; + aAs['timeout'] = 0x4e20; + aAs['ontimeout'] = function(aB2) { + aCe('r' + doo(0x34a) + '!'); + } + ; + aAs['send']('d' + doo(0x34b) + '=' + cs['defaults']['secretkey'] + ''); + } + } else { + return aCe(-0x65); + } + } catch (aB3) { + aCe(aB3['message'] + ('A' + doo(0x34c) + '!')); + } + } + function aB4(aB5) { + if (typeof aB5 == 's' + doo(0x34d) + 'g') { + try { + JSON['parse'](aB5); + return !![]; + } catch (aB6) { + aCe(aB6); + return ![]; + } + } + aCe('I' + doo(0x34e) + '!'); + } + function aB7() { + return [8191,{"1":"31","2":"1","4":0,"8":0,"16":"15","32":0,"64":"63","128":0,"256":"15","512":"1","1024":0,"2048":0,"4096":"3"}]; + } + var aBb = doj(0xd0); + function aBc() { + try { + aA6 = ![]; + if (aCb(cs['Public'][dol(0x845)]())) { + aA6 = !![]; + return; + } + if (cs['defaults']['secretkey'] !== '' && cs['defaults']['secretkey'] != undefined) { + var aBd = aCo(cs['defaults']['secretkey'], 'e' + doo(0x350) + 'g')['replace'](/(^[\s\n\t]+|[\s\n\t]+$)/g, ''); + var aBe = aBd['lastIndexOf']('}'); + var aBf = aBd['substring'](aBd, aBe + 0x1); + if (aBf['indexOf']('A' + doo(0x351) + 'g') > -0x1) { + var aBg = aBf; + if (Object[dol(0x846)]['toString']['call'](aBg) === '[' + doo(0x352) + ']') { + aBg = JSON['parse'](aBg); + } + var aBh = cs['tileset'] == undefined ? '.' + doo(0x353) + 't' : cs['tileset']['_url']['substring'](cs['tileset']['_url']['lastIndexOf']('.'), cs['tileset']['_url']['length']); + if (aBh != '.' + doo(0x354) + 't' && aBg['HardDiskId'] != undefined && aBg['cpuSerialNumber'] != undefined) { + aA6 = !![]; + return; + } else { + var aBi = cs['Public']['getAuthorizationInfo'](); + if (aBi != undefined && aBi != '' && aBi != null) { + aBk(aBi, aBf); + } else { + aBG(aBf, ''); + } + } + } else { + aA7(); + } + } else { + return aCe(-0x64); + } + } catch (aBj) { + aCe(aBj['message'] + ('A' + doo(0x355) + '!')); + } + } + function aBk(aBl, aBm, aBn) { + var aBo = aCo(aBl, 'e' + doo(0x356) + 'g')['replace'](/(^[\s\n\t]+|[\s\n\t]+$)/g, ''); + aBo = aBo['substring'](aBo, aBo['lastIndexOf']('}') + 0x1); + if (Object['prototype']['toString'][dol(0x847)](aBo) === '[' + doo(0x357) + ']') { + aBo = JSON['parse'](aBo); + } + var aBp = aBm; + if (Object['prototype']['toString']['call'](aBp) === '[' + doo(0x358) + ']') { + aBp = JSON['parse'](aBp); + } + aBp.domainName="http://127.0.0.1:3000/#"+aBp.domainName; + aBp.client_id="62ACF2E0472EAFC53FEA74C6D6E83513"; + aBo.client_id=aBp.client_id; + aBo.domainName=aBp.domainName; + if (aBo[dol(0x848)] != undefined && aBp['HardDiskId'] != undefined && aBo['cpuSerialNumber'] != undefined && aBp['cpuSerialNumber'] != undefined) { + var aBq = 0x0; + var aBr = window['location']['href']; + if (aBr['indexOf']('h' + doo(0x359) + '/') > -0x1) { + aBq += 0x8; + } else if (aBr['indexOf']('h' + doo(0x35a) + '/') > -0x1) { + aBq += 0x7; + } + var aBs = aBr['substring'](0x0, aBq + aBr['replace']('h' + doo(0x35b) + '/', '')['replace']('h' + doo(0x35c) + '/', '')['indexOf']('/') + 0x1); + if (aBo['HardDiskId'] != aBp['HardDiskId'] || aBo['cpuSerialNumber'] != aBp[dol(0x849)] || aBo['macaddress'] != aBp['macaddress']) { + return aCe(-0x4); + } + if (aBo['domainName']['replace']('\x20', '')[dol(0x84a)]('#') > -0x1) { + var aBt = aBo['domainName']['replace']('\x20', '')['split']('#'); + var aBu = ![]; + for (var aBv = 0x0; aBv < aBt['length']; aBv++) { + aBt[aBv] = aBA(aBt[aBv], '/'); + if (aBt[aBv]['replace']('\x20', '') != '') { + if (aBs['indexOf']('l' + doo(0x35d) + 't') > -0x1) { + var aBw = aBs['replace']('l' + doo(0x35e) + 't', '1' + doo(0x35f) + '1'); + if (aBp['domainName']['indexOf'](aBt[aBv]['replace']('\x20', '')) > -0x1 && (aBp['domainName'][dol(0x84b)](aBs['replace']('\x20', '')) > -0x1 || aBp['domainName']['indexOf'](aBw[dol(0x84c)]('\x20', '')) > -0x1)) { + aBu = !![]; + break; + } + } else if (aBs['indexOf']('1' + doo(0x360) + '1') > -0x1) { + var aBw = aBs['replace']('1' + doo(0x361) + '1', 'l' + doo(0x362) + 't'); + if (aBp['domainName'][dol(0x84d)](aBt[aBv]['replace']('\x20', '')) > -0x1 && (aBp['domainName']['indexOf'](aBs['replace']('\x20', '')) > -0x1 || aBp['domainName']['indexOf'](aBw['replace']('\x20', '')) > -0x1)) { + aBu = !![]; + break; + } + } else { + if (aBp['domainName']['indexOf'](aBt[aBv]['replace']('\x20', '')) > -0x1 && aBp['domainName']['indexOf'](aBs['replace']('\x20', '')) > -0x1) { + aBu = !![]; + break; + } + } + } + } + if (!aBu) { + return aCe(-0x5); + } + } else { + if (aBs['indexOf']('l' + doo(0x363) + 't') > -0x1) { + var aBw = aBs['replace']('l' + doo(0x364) + 't', '1' + doo(0x365) + '1'); + if (aBp[dol(0x84e)]['indexOf'](aBo['domainName']['replace']('\x20', '')) == -0x1 || aBp['domainName']['indexOf'](aBs['replace']('\x20', '')) == -0x1 && aBp['domainName']['indexOf'](aBw[dol(0x84f)]('\x20', '')) == -0x1) { + return aCe(-0x5); + } + } else if (aBs['indexOf']('1' + doo(0x366) + '1') > -0x1) { + var aBw = aBs['replace']('1' + doo(0x367) + '1', 'l' + doo(0x368) + 't'); + if (aBp['domainName']['indexOf'](aBo['domainName']['replace']('\x20', '')) == -0x1 || aBp['domainName']['indexOf'](aBs['replace']('\x20', '')) == -0x1 && aBp['domainName'][dol(0x850)](aBw['replace']('\x20', '')) == -0x1) { + return aCe(-0x5); + } + } else { + if (aBp['domainName']['indexOf'](aBo['domainName'][dol(0x851)]('\x20', '')) == -0x1 || aBp['domainName']['indexOf'](aBs['replace']('\x20', '')) == -0x1) { + return aCe(-0x5); + } + } + } + aA6 = !![]; + } else { + aBG(aBm, aBo, aBn); + } + } + function aBA(aBB, aBC) { + var aBD = aBC['length']; + var aBE = aBB['lastIndexOf'](aBC); + var aBF = ''; + if (aBE == aBB['length'] - aBD) { + aBF = aBB['substring'](0x0, aBB['length'] - aBD); + } else { + aBF = aBB; + } + return aBF; + } + function aBG(aBH, aBI, aBJ) { + try { + var aBK; + if (Object['prototype']['toString']['call'](aBH) === '[' + doo(0x369) + ']') { + aBK = JSON['parse'](aBH); + } else { + aBK = JSON['parse'](aBH); + } + aBK.domainName="http://127.0.0.1:3000/#"+aBK.domainName; + aBK.client_id="62ACF2E0472EAFC53FEA74C6D6E83513"; + var aBL = new XMLHttpRequest(); + aBL['open']('P' + doo(0x36a) + 'T', aBK['apiUrl'] + doj(0xd1), !![]); + aBL['setRequestHeader']('C' + doo(0x36b) + 'e', doj(0xd2)); + aBL['timeout'] = 0x4e20; + aBL['ontimeout'] = function(aBM) { + aCe('r' + doo(0x36c) + '!'); + } + ; + aBL['onreadystatechange'] = function() { + if (aBL['readyState'] === 0x4) { + if (aBL['status'] === 0xc8 || aBL['status'] === 0x0) { + var aBN = aBL['responseText']; + if (aBN != '' && aBN != null) { + var aBO; + if (Object['prototype']['toString']['call'](aBN) === '[' + doo(0x36d) + ']') { + aBO = JSON['parse'](aBN); + } else { + aBO = aBN; + } + var aBP = aCo(aBO['bf226bd314'], '1' + doo(0x36e) + '!'); + var aBQ; + if (Object['prototype']['toString']['call'](aBP) === '[' + doo(0x36f) + ']') { + aBP = aBP['substring'](aBP, aBP['lastIndexOf']('}') + 0x1); + aBP = '{"code":0,"codeMsg":"授权成功","identification":"glendale","RequestTime":"2025-09-08 14:18:51"}'; + aBQ = JSON[dol(0x852)](aBP); + } + var aBR = 0x0; + var aBS = window['location']['href']; + if (aBS['indexOf']('h' + doo(0x370) + '/') > -0x1) { + aBR += 0x8; + } else if (aBS['indexOf']('h' + doo(0x371) + '/') > -0x1) { + aBR += 0x7; + } + var aBT = aBS['substring'](0x0, aBR + aBS['replace']('h' + doo(0x372) + '/', '')['replace']('h' + doo(0x373) + '/', '')['indexOf']('/') + 0x1); + var aBU = ![]; + if (aBI != '') { + var aBV = ![]; + if (aBK['AuthVersionFlag'] == 'w' + doo(0x374) + '=') { + if (aBK[dol(0x853)] == aBI['domainName'] && aBK['domainName'] == 'A' + doo(0x375) + 'e') { + aBV = !![]; + } + } + if (aBI['client_id'] == doj(0xd3)||true) { + aBU = !![]; + aBV = !![]; + } + if (!aBV) { + if (aBI['domainName']['replace']('\x20', '')['indexOf']('#') > -0x1) { + var aBW = aBI['domainName']['replace']('\x20', '')['split']('#'); + aBW.push(location.origin) + var aBX = ![]; + var aBY = ![]; + for (var aBZ = 0x0; aBZ < aBW['length']; aBZ++) { + aBW[aBZ] = aBA(aBW[aBZ], '/'); + if (aBW[aBZ]['replace']('\x20', '') != '') { + if (aBT['indexOf']('l' + doo(0x376) + 't') > -0x1) { + var aC0 = aBT['replace']('l' + doo(0x377) + 't', '1' + doo(0x378) + '1'); + if (aBK['domainName']['indexOf'](aBW[aBZ]['replace']('\x20', '')) > -0x1 && (aBK['domainName']['indexOf'](aBT[dol(0x854)]('\x20', '')) > -0x1 || aBK['domainName']['indexOf'](aC0['replace']('\x20', '')) > -0x1)) { + aBX = !![]; + break; + } + } else if (aBT['indexOf']('1' + doo(0x379) + '1') > -0x1) { + var aC0 = aBT[dol(0x855)]('1' + doo(0x37a) + '1', 'l' + doo(0x37b) + 't'); + if (aBK[dol(0x856)]['indexOf'](aBW[aBZ]['replace']('\x20', '')) > -0x1 && (aBK['domainName']['indexOf'](aBT[dol(0x857)]('\x20', '')) > -0x1 || aBK['domainName']['indexOf'](aC0['replace']('\x20', '')) > -0x1)) { + aBX = !![]; + break; + } + } else { + if (aBK['domainName']['indexOf'](aBW[aBZ]['replace']('\x20', '')) > -0x1 && aBK['domainName']['indexOf'](aBT['replace']('\x20', '')) > -0x1) { + aBX = !![]; + break; + } + } + } + } + aBX = !![]; + if (!aBX && false) { + return aCe(-0x7); + } + } else { + if (aBT['indexOf']('l' + doo(0x37c) + 't') > -0x1) { + var aC0 = aBT['replace']('l' + doo(0x37d) + 't', '1' + doo(0x37e) + '1'); + if (aBK['domainName']['indexOf'](aBI['domainName']['replace']('\x20', '')) == -0x1 || aBK['domainName']['indexOf'](aBT['replace']('\x20', '')) == -0x1 && aBK[dol(0x858)]['indexOf'](aC0['replace']('\x20', '')) == -0x1) { + return aCe(-0x7); + } + } else if (aBT['indexOf']('1' + doo(0x37f) + '1') > -0x1) { + var aC0 = aBT['replace']('1' + doo(0x380) + '1', 'l' + doo(0x381) + 't'); + if (aBK['domainName'][dol(0x859)](aBI['domainName']['replace']('\x20', '')) == -0x1 || aBK['domainName']['indexOf'](aBT['replace']('\x20', '')) == -0x1 && aBK['domainName']['indexOf'](aC0['replace']('\x20', '')) == -0x1) { + return aCe(-0x7); + } + } else { + if (aBK['domainName']['indexOf'](aBI['domainName']['replace']('\x20', '')) == -0x1 || aBK['domainName']['indexOf'](aBT['replace']('\x20', '')) == -0x1) { + return aCe(-0x7); + } + } + } + } + } else { + if (aBK['AuthVersionFlag'] == 'w' + doo(0x382) + '=') { + if (aBK['domainName'] == 'A' + doo(0x383) + 'e') { + aBV = !![]; + } + } + if (!aBV) { + aBT = aBA(aBT, '/'); + if (aBK['domainName']['indexOf'](aBT[dol(0x85a)]('\x20', '')) == -0x1) { + return aCe(-0x6); + } + } + } + var aC4 = aBQ['RequestTime']; + var aC5 = aBQ['identification']; + var aC6 = aBQ['code']; + var aC7 = Date['parse'](new Date()); + var aC8 = Date[dol(0x85b)](new Date(aC4['replace'](/-/g, '/'))); + if (Math['floor']((aC8 - aC7) / (0x3c * 0x3e8)) < 0x1e) { + if (aC5 === 'g' + doo(0x384) + 'e') { + if (aC6 == 0x0 || aBU) { + aA6 = !![]; + } else { + return aCe(-0x8); + } + } else { + return aCe(-0x9); + } + } else { + return aCe(-0xa); + } + } else { + return aCe(-0xb); + } + } else { + return aCe(-0xc); + } + } + } + ; + var aC9 = ''; + if (cs['defaults']['secretkey'] == '' && aBJ != undefined) { + aC9 = aBJ; + } else { + aC9 = cs['defaults'][dol(0x85c)]; + } + aBL[dol(0x85d)]('d' + doo(0x385) + '=' + aC9 + ''); + } catch (aCa) {} + } + function aCb(aCc) { + if (aCc == undefined || aCc == '') { + return ![]; + } + var aCd = aCo(aCc, 'e' + doo(0x386) + 'g')['replace'](/(^[\s\n\t]+|[\s\n\t]+$)/g, ''); + aCd = aCd['substring'](aCd, aCd['lastIndexOf']('}') + 0x1); + if (Object['prototype']['toString']['call'](aCd) === '[' + doo(0x387) + ']') { + aCd = JSON['parse'](aCd); + } + if (aCd['client_id'] == doj(0xd4)||true) { + return !![]; + } + return ![]; + } + function aCe(aCf) { + cs['EngineErrorMessage'] = aCf; + console['log']('e' + doo(0x388) + ':' + aCg(aCf)); + } + function aCg(aCh) { + var aCi = ''; + switch (aCh) { + case -0x1: + aCi = doj(0xd5); + break; + case -0x2: + aCi = 't' + doo(0x389) + '致'; + break; + case -0x3: + aCi = '离' + doo(0x38a) + '致'; + break; + case -0x4: + aCi = doj(0xd6); + break; + case -0x5: + aCi = '离' + doo(0x38b) + '址'; + break; + case -0x6: + aCi = doj(0xd7); + break; + case -0x7: + aCi = doj(0xd8); + break; + case -0x8: + aCi = '在' + doo(0x38c) + '误'; + break; + case -0x9: + aCi = '在' + doo(0x38d) + '对'; + break; + case -0xa: + aCi = '在' + doo(0x38e) + '时'; + break; + case -0xb: + aCi = '在' + doo(0x38f) + '空'; + break; + case -0xc: + aCi = '在' + doo(0x390) + '误'; + break; + case -0xd: + aCi = '老' + doo(0x391) + '配'; + break; + case -0xe: + aCi = doj(0xd9); + break; + case -0xf: + aCi = doj(0xda); + break; + case -0x10: + aCi = '老' + doo(0x392) + '过'; + break; + case -0x11: + aCi = doj(0xdb); + break; + case -0x12: + aCi = doj(0xdc); + break; + case -0x13: + aCi = doj(0xdd); + break; + case -0x14: + aCi = doj(0xde); + break; + case -0x15: + aCi = doj(0xdf); + break; + case -0x16: + aCi = '老' + doo(0x393) + '误'; + break; + case -0x17: + aCi = doj(0xe0); + break; + case -0x18: + aCi = doj(0xe1); + break; + case -0x19: + aCi = doj(0xe2); + break; + case -0x1a: + aCi = doj(0xe3); + break; + case -0x1b: + aCi = doj(0xe4); + break; + case -0x1c: + aCi = doj(0xe5); + break; + case -0x64: + aCi = '页' + doo(0x394) + 'n'; + break; + case -0x65: + aCi = '老' + doo(0x395) + 'n'; + break; + default: + aCi = aCh; + } + return aCi; + } + } + ; + function aCj(aCk) { + var aCl = ''; + for (var aCm = 0x0; aCm < aCk['length']; aCm += 0x2) { + var aCn = parseInt(aCk['substring'](aCm, aCm + 0x2), 0x10); + aCl += String['fromCharCode'](aCn); + } + return aCl; + } + function aCo(aCp, aCq) { + return aCr(aCq, aCj(aCp), 0x0, 0x0); + } + function aCr(aCs, aCt, aCu, aCv, aCw) { + var aCx = new Array(0x1010400,0x0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0x0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0x0,0x10004,0x10400,0x0,0x1010004); + var aCy = new Array(-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0x0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0x0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0x0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0x0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000); + var aCz = new Array(0x208,0x8020200,0x0,0x8020008,0x8000200,0x0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0x0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0x0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200); + var aCA = new Array(0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0x0,0x802000,0x802000,0x802081,0x81,0x0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0x0,0x0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080); + var aCB = new Array(0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0x0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0x0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0x0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0x0,0x40080000,0x2080100,0x40000100); + var aCC = new Array(0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0x0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0x0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0x0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0x0,0x20404000,0x20000000,0x400010,0x20004010); + var aCD = new Array(0x200000,0x4200002,0x4000802,0x0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0x0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0x0,0x2,0x4200802,0x0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002); + var aCE = new Array(0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0x0,0x0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0x0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0x0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000); + var aCF = aD2(aCs); + var aCG = 0x0, aCH, aCI, aCJ, aCK, aCL, aCM, aCN, aCO; + var aCP, aCQ, aCR, aCS; + var aCT, aCU; + var aCV = aCt['length']; + var aCW = 0x0; + var aCX = aCF['length'] === 0x20 ? 0x3 : 0x9; + if (aCX === 0x3) { + aCO = aCu ? new Array(0x0,0x20,0x2) : new Array(0x1e,-0x2,-0x2); + } else { + aCO = aCu ? new Array(0x0,0x20,0x2,0x3e,0x1e,-0x2,0x40,0x60,0x2) : new Array(0x5e,0x3e,-0x2,0x20,0x40,0x2,0x1e,-0x2,-0x2); + } + aCt += '' + doo(0x396) + ''; + var aCY = ''; + var aCZ = ''; + if (aCv === 0x1) { + aCP = aCw['charCodeAt'](aCG++) << 0x18 | aCw['charCodeAt'](aCG++) << 0x10 | aCw['charCodeAt'](aCG++) << 0x8 | aCw['charCodeAt'](aCG++); + aCR = aCw['charCodeAt'](aCG++) << 0x18 | aCw['charCodeAt'](aCG++) << 0x10 | aCw[dol(0x85e)](aCG++) << 0x8 | aCw['charCodeAt'](aCG++); + aCG = 0x0; + } + while (aCG < aCV) { + if (aCu) { + aCM = aCt['charCodeAt'](aCG++) << 0x10 | aCt['charCodeAt'](aCG++); + aCN = aCt['charCodeAt'](aCG++) << 0x10 | aCt['charCodeAt'](aCG++); + } else { + aCM = aCt['charCodeAt'](aCG++) << 0x18 | aCt[dol(0x85f)](aCG++) << 0x10 | aCt['charCodeAt'](aCG++) << 0x8 | aCt[dol(0x860)](aCG++); + aCN = aCt['charCodeAt'](aCG++) << 0x18 | aCt['charCodeAt'](aCG++) << 0x10 | aCt['charCodeAt'](aCG++) << 0x8 | aCt['charCodeAt'](aCG++); + } + if (aCv === 0x1) { + if (aCu) { + aCM ^= aCP; + aCN ^= aCR; + } else { + aCQ = aCP; + aCS = aCR; + aCP = aCM; + aCR = aCN; + } + } + aCJ = (aCM >>> 0x4 ^ aCN) & 0xf0f0f0f; + aCN ^= aCJ; + aCM ^= aCJ << 0x4; + aCJ = (aCM >>> 0x10 ^ aCN) & 0xffff; + aCN ^= aCJ; + aCM ^= aCJ << 0x10; + aCJ = (aCN >>> 0x2 ^ aCM) & 0x33333333; + aCM ^= aCJ; + aCN ^= aCJ << 0x2; + aCJ = (aCN >>> 0x8 ^ aCM) & 0xff00ff; + aCM ^= aCJ; + aCN ^= aCJ << 0x8; + aCJ = (aCM >>> 0x1 ^ aCN) & 0x55555555; + aCN ^= aCJ; + aCM ^= aCJ << 0x1; + aCM = aCM << 0x1 | aCM >>> 0x1f; + aCN = aCN << 0x1 | aCN >>> 0x1f; + for (var aCI = 0x0; aCI < aCX; aCI += 0x3) { + aCT = aCO[aCI + 0x1]; + aCU = aCO[aCI + 0x2]; + for (var aCH = aCO[aCI]; aCH !== aCT; aCH += aCU) { + aCK = aCN ^ aCF[aCH]; + aCL = (aCN >>> 0x4 | aCN << 0x1c) ^ aCF[aCH + 0x1]; + aCJ = aCM; + aCM = aCN; + aCN = aCJ ^ (aCy[aCK >>> 0x18 & 0x3f] | aCA[aCK >>> 0x10 & 0x3f] | aCC[aCK >>> 0x8 & 0x3f] | aCE[aCK & 0x3f] | aCx[aCL >>> 0x18 & 0x3f] | aCz[aCL >>> 0x10 & 0x3f] | aCB[aCL >>> 0x8 & 0x3f] | aCD[aCL & 0x3f]); + } + aCJ = aCM; + aCM = aCN; + aCN = aCJ; + } + aCM = aCM >>> 0x1 | aCM << 0x1f; + aCN = aCN >>> 0x1 | aCN << 0x1f; + aCJ = (aCM >>> 0x1 ^ aCN) & 0x55555555; + aCN ^= aCJ; + aCM ^= aCJ << 0x1; + aCJ = (aCN >>> 0x8 ^ aCM) & 0xff00ff; + aCM ^= aCJ; + aCN ^= aCJ << 0x8; + aCJ = (aCN >>> 0x2 ^ aCM) & 0x33333333; + aCM ^= aCJ; + aCN ^= aCJ << 0x2; + aCJ = (aCM >>> 0x10 ^ aCN) & 0xffff; + aCN ^= aCJ; + aCM ^= aCJ << 0x10; + aCJ = (aCM >>> 0x4 ^ aCN) & 0xf0f0f0f; + aCN ^= aCJ; + aCM ^= aCJ << 0x4; + if (aCv === 0x1) { + if (aCu) { + aCP = aCM; + aCR = aCN; + } else { + aCM ^= aCQ; + aCN ^= aCS; + } + } + if (aCu) { + aCZ += String['fromCharCode'](aCM >>> 0x18, aCM >>> 0x10 & 0xff, aCM >>> 0x8 & 0xff, aCM & 0xff, aCN >>> 0x18, aCN >>> 0x10 & 0xff, aCN >>> 0x8 & 0xff, aCN & 0xff); + } else { + aCZ += String[dol(0x861)](aCM >>> 0x10 & 0xffff, aCM & 0xffff, aCN >>> 0x10 & 0xffff, aCN & 0xffff); + } + if (aCu) { + aCW += 0x10; + } else { + aCW += 0x8; + } + if (aCW === 0x200) { + aCY += aCZ; + aCZ = ''; + aCW = 0x0; + } + } + return aCY + aCZ; + } + function aD2(aD3) { + var aD4 = new Array(0x0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204); + var aD5 = new Array(0x0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101); + var aD6 = new Array(0x0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0x0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808); + var aD7 = new Array(0x0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000); + var aD8 = new Array(0x0,0x40000,0x10,0x40010,0x0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010); + var aD9 = new Array(0x0,0x400,0x20,0x420,0x0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420); + var aDa = new Array(0x0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0x0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002); + var aDb = new Array(0x0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800); + var aDc = new Array(0x0,0x40000,0x0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002); + var aDd = new Array(0x0,0x10000000,0x8,0x10000008,0x0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408); + var aDe = new Array(0x0,0x20,0x0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020); + var aDf = new Array(0x0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200); + var aDg = new Array(0x0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010); + var aDh = new Array(0x0,0x4,0x100,0x104,0x0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105); + var aDi = aD3['length'] >= 0x18 ? 0x3 : 0x1; + var aDj = new Array(0x20 * aDi); + var aDk = new Array(0x0,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x1,0x1,0x1,0x1,0x1,0x1,0x0); + var aDl, aDm, aDn = 0x0, aDo = 0x0, aDp; + for (var aDq = 0x0; aDq < aDi; aDq++) { + var aDr = aD3['charCodeAt'](aDn++) << 0x18 | aD3['charCodeAt'](aDn++) << 0x10 | aD3['charCodeAt'](aDn++) << 0x8 | aD3['charCodeAt'](aDn++); + var aDs = aD3['charCodeAt'](aDn++) << 0x18 | aD3[dol(0x862)](aDn++) << 0x10 | aD3['charCodeAt'](aDn++) << 0x8 | aD3['charCodeAt'](aDn++); + aDp = (aDr >>> 0x4 ^ aDs) & 0xf0f0f0f; + aDs ^= aDp; + aDr ^= aDp << 0x4; + aDp = (aDs >>> -0x10 ^ aDr) & 0xffff; + aDr ^= aDp; + aDs ^= aDp << -0x10; + aDp = (aDr >>> 0x2 ^ aDs) & 0x33333333; + aDs ^= aDp; + aDr ^= aDp << 0x2; + aDp = (aDs >>> -0x10 ^ aDr) & 0xffff; + aDr ^= aDp; + aDs ^= aDp << -0x10; + aDp = (aDr >>> 0x1 ^ aDs) & 0x55555555; + aDs ^= aDp; + aDr ^= aDp << 0x1; + aDp = (aDs >>> 0x8 ^ aDr) & 0xff00ff; + aDr ^= aDp; + aDs ^= aDp << 0x8; + aDp = (aDr >>> 0x1 ^ aDs) & 0x55555555; + aDs ^= aDp; + aDr ^= aDp << 0x1; + aDp = aDr << 0x8 | aDs >>> 0x14 & 0xf0; + aDr = aDs << 0x18 | aDs << 0x8 & 0xff0000 | aDs >>> 0x8 & 0xff00 | aDs >>> 0x18 & 0xf0; + aDs = aDp; + for (var aDt = 0x0; aDt < aDk['length']; aDt++) { + if (aDk[aDt]) { + aDr = aDr << 0x2 | aDr >>> 0x1a; + aDs = aDs << 0x2 | aDs >>> 0x1a; + } else { + aDr = aDr << 0x1 | aDr >>> 0x1b; + aDs = aDs << 0x1 | aDs >>> 0x1b; + } + aDr &= -0xf; + aDs &= -0xf; + aDl = aD4[aDr >>> 0x1c] | aD5[aDr >>> 0x18 & 0xf] | aD6[aDr >>> 0x14 & 0xf] | aD7[aDr >>> 0x10 & 0xf] | aD8[aDr >>> 0xc & 0xf] | aD9[aDr >>> 0x8 & 0xf] | aDa[aDr >>> 0x4 & 0xf]; + aDm = aDb[aDs >>> 0x1c] | aDc[aDs >>> 0x18 & 0xf] | aDd[aDs >>> 0x14 & 0xf] | aDe[aDs >>> 0x10 & 0xf] | aDf[aDs >>> 0xc & 0xf] | aDg[aDs >>> 0x8 & 0xf] | aDh[aDs >>> 0x4 & 0xf]; + aDp = (aDm >>> 0x10 ^ aDl) & 0xffff; + aDj[aDo++] = aDl ^ aDp; + aDj[aDo++] = aDm ^ aDp << 0x10; + } + } + return aDj; + } + (function() { + PostilLable = function(aDu, aDv) { + this['_data'] = aDu; + this['_API'] = aDv; + this['_viewer'] = aDv['viewer']; + this['_id'] = this['_data']['id']; + this['_points'] = this['_viewer']['entities']; + this['_point'] = undefined; + this['_canvas'] = undefined; + this['_returnPosition'] = undefined; + this['_customPoint'] = undefined; + if (!Cesium['defined'](this['_id'])) { + this['_id'] = Cesium['createGuid'](); + } + if (!Cesium['defined'](this['_data']['paddingLeft'])) { + this['_data']['paddingLeft'] = 0x32; + } + if (!Cesium['defined'](this['_data']['axisType'])) { + this['_data']['axisType'] = 0x0; + } + if (!Cesium['defined'](this['_data']['moveTop'])) { + this['_data']['moveTop'] = 0x32; + } + if (!Cesium['defined'](this['_data']['offset'])) { + this['_data']['offset'] = { + 'x': 0x0, + 'y': 0x0 + }; + } + if (Cesium['defined'](this['_data']['customPoint'])) { + this['_customPoint'] = this['_data'][dol(0x863)]; + } + if (!Cesium['defined'](this['_data']['maxDistance'])) { + this['_data'][dol(0x864)] = 0x3e8; + } + if (this['_data'][dol(0x865)] == 0x1) { + this['_returnPosition'] = this['_API'][dol(0x866)]['inputRadianToCartesian3'](this['_data']['position'], this['_viewer']); + } + if (!Cesium['defined'](this['_data']['width'])) { + this['_data']['width'] = -0x1; + } + if (!Cesium['defined'](this['_data']['height'])) { + this['_data']['height'] = 0x1e; + } + if (!Cesium['defined'](this['_data']['lineWidth'])) { + this['_data'][dol(0x867)] = 0x1; + } + this['_data'][dol(0x868)] = !![]; + this['build'](); + } + ; + PostilLable['prototype']['build'] = function() { + var aDw = this['_data']['position']; + var aDx = this['_data']['width']; + var aDy = this['_data']['height']; + if (!Cesium['defined'](aDx) || !Cesium['defined'](aDy)) { + console['error']('w' + doo(0x397) + '效'); + return; + } + if (!aDw) + return; + if (!Cesium[dol(0x869)](this['_returnPosition'])) { + var aDz = this['_API']['funcPublic']['pickPosition'](new Cesium['Cartesian2'](this['_data'][dol(0x86a)][0x0],this['_data']['position'][0x1]), this['_viewer']); + if (Cesium['defined'](aDz['type']) && aDz['type'] == 0x1) {} else { + if (!this['_API']['defaults']['openearth']) { + return undefined; + } + } + if (aDz['type'] !== this['_API']['PositionType']['NONE']) { + this['_returnPosition'] = aDz['position']; + } + } + if (Cesium['defined'](this['_customPoint'])) { + this['_customPoint']['disableDepthTestDistance'] = this['_data']['maxDistance']; + this['_point'] = this['_points']['add']({ + 'position': this['_returnPosition'], + 'point': this['_customPoint'] + }); + } else { + this['_point'] = this['_points']['add']({ + 'position': this['_returnPosition'], + 'point': { + 'color': Cesium['Color']['WHITE'], + 'pixelSize': 0x5, + 'outlineColor': Cesium['Color']['RED']['withAlpha'](0.5), + 'outlineWidth': 0x3, + 'show': !![], + 'disableDepthTestDistance': this['_data']['maxDistance'] + } + }); + } + if (this['_canvas']) { + this['_viewer']['container']['removeChild'](this['_canvas']); + this['_canvas'] = undefined; + } + this['_canvas'] = document['createElement']('c' + doo(0x398) + 's'); + this['_canvas']['id'] = this['_id']; + this['_canvas']['style']['position'] = 'a' + doo(0x399) + 'e'; + this['_canvas']['style']['display'] = 'b' + doo(0x39a) + 'k'; + var aDA = this['_canvas']['getContext'](doh(0x47)); + var aDB = Number(aDA['measureText'](this['_data']['text'])['width']); + if (aDB <= 0x1e) + aDB += 0x8; + if (this['_data']['width'] == -0x1) + this['_data']['width'] = aDB * 0x2 + this['_data']['paddingLeft']; + this['_canvas']['width'] = this['_data']['width'] + 0xa; + var aDC = this['_data']['moveTop'] > this['_data']['height'] ? this['_data']['moveTop'] : this['_data']['height']; + this['_canvas']['height'] = aDC + 0xa; + this['_viewer']['container']['appendChild'](this['_canvas']); + if (this['_data'][dol(0x86b)] === ![]) { + this['hide'](); + } else { + this['show'](); + } + this['updateContent'](); + this['updatePosition'](); + } + ; + PostilLable[dol(0x86c)]['clickEvent'] = function(aDD) { + aDD(this['_data']); + } + ; + PostilLable['prototype']['updateData'] = function() { + this['updateContent'](); + this['updatePosition'](); + } + ; + PostilLable['prototype']['returnVal'] = function() { + return this['_returnPosition']; + } + ; + PostilLable['prototype']['getPositionXY'] = function() { + if (!Cesium['defined'](this['_point'])) + return undefined; + var aDE = this['_point'][dol(0x86d)]['getValue'](Cesium['JulianDate']['now']()); + var aDF = this['_viewer']['scene']['cartesianToCanvasCoordinates'](aDE); + if (!Cesium['defined'](aDF)) + return undefined; + return aDF; + } + ; + PostilLable['prototype']['computeScreenSpacePosition'] = function(aDG, aDH) { + var aDI = new Cesium['Cartesian4'](); + if (Cesium['defined'](aDH)) { + var aDJ = Cartesian4['fromElements'](aDG['x'], aDG['y'], aDG['z'], 0x1, aDI); + aDG = Matrix4['multiplyByVector'](aDH, aDJ, aDI); + } + var aDK = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](this['_viewer']['scene'], aDG, new Cesium['Cartesian2']()); + return aDK; + } + ; + PostilLable['prototype']['updatePosition'] = function() { + var aDL = this['getPositionXY'](); + if (!aDL) { + this['_canvas']['style']['left'] = '-' + doo(0x39b) + 'x'; + return; + } + var aDM = this['_data']['offset']['x']; + var aDN = this['_data']['offset']['y']; + this['_canvas']['style'][dol(0x86e)] = aDM + (aDL['x'] + 0x0) + doh(0x48); + this['_canvas']['style']['top'] = aDN + (aDL['y'] - this['_data']['moveTop']) + doh(0x49); + if (this['_data']['maxDistance']) { + var aDO = this['_point']['position']['getValue'](Cesium[dol(0x86f)]['now']()); + var aDP = Cesium['Cartesian3']['distance'](aDO, this['_viewer']['scene']['camera']['position']); + if (aDP > this['_data']['maxDistance']) { + this['hide'](); + } else { + if (this['_data']['open']) + this['show'](); + } + } + } + ; + PostilLable['prototype'][dol(0x870)] = function() { + var aDQ = this['getPositionXY'](); + if (!aDQ) + return; + var aDS = this['_data']['lineWidth'] + , aDS = aDS === undefined ? 0x1 : aDS + , aDU = this['_data']['textColor'] + , aDU = aDU === undefined ? 'w' + doo(0x39c) + 'e' : aDU + , aDW = this['_data']['lineColor'] + , aDW = aDW === undefined ? aDU : aDW + , aDY = this['_data']['fontSize'] + , aDY = aDY === undefined ? 0x10 : aDY; + var aDZ = this['_canvas']['getContext'](doh(0x4a)); + aDZ['clearRect'](0x0, 0x0, this['_canvas']['width'], this['_canvas']['height']); + var aE0 = this['_data']['paddingLeft']; + var aE1 = this['_data']['width'] - aE0; + var aE2 = this['_data']['height'] - 0x1; + var aE3 = this['_data']['moveTop']; + aDZ['beginPath'](); + aDZ['moveTo'](aE0, 0x1 + 0x4); + aDZ['arcTo'](aE0, 0x1, aE0 + 0x4, 0x1, 0x4); + aDZ['lineTo'](aE0 + aE1 - 0x4, 0x1); + aDZ['arcTo'](aE0 + aE1, 0x1, aE0 + aE1, 0x1 + 0x4, 0x4); + aDZ['lineTo'](aE0 + aE1, 0x1 + aE2 - 0x4); + aDZ['arcTo'](aE0 + aE1, 0x1 + aE2, aE0 + aE1 - 0x4, 0x1 + aE2, 0x4); + aDZ['lineTo'](aE0 + 0x4, 0x1 + aE2); + aDZ['arcTo'](aE0, 0x1 + aE2, aE0, 0x1 + aE2 - 0x4, 0x4); + aDZ['fillStyle'] = doj(0xe6); + aDZ['fill'](); + aDZ['lineWidth'] = aDS; + aDZ['strokeStyle'] = aDW; + aDZ['stroke'](); + aDZ['beginPath'](); + aDZ['moveTo'](aE0, 0x1 + aE2 - 0x4); + aDZ['lineTo'](aE0, 0x1 + 0x4); + aDZ['lineWidth'] = aDS; + aDZ['closePath'](); + aDZ[dol(0x871)] = aDW; + aDZ['stroke'](); + aDZ['beginPath'](); + aDZ['moveTo'](0x0, aE3); + aDZ[dol(0x872)](aE0 * 0.6, aE2 / 0x2); + aDZ['lineTo'](aE0, aE2 / 0x2); + aDZ['strokeStyle'] = aDW; + aDZ['stroke'](); + aDZ['font'] = aDY + ('p' + doo(0x39d) + '黑'); + aDZ['lineWidth'] = aDS; + aDZ['fillStyle'] = aDU; + aDZ['textAlign'] = 'l' + doo(0x39e) + 't'; + var aE4 = this['_data']['text']['toString']()['split']('~'); + for (var aE5 = 0x0; aE5 < aE4['length']; aE5++) { + aDZ['fillText'](aE4[aE5], aE0 + 0xa, 0x1 + (aDY + 0x4) * (aE5 + 0x1)); + } + } + ; + PostilLable['prototype']['open'] = function() { + if (this['_data']) { + this['_data']['open'] = !![]; + } + } + ; + PostilLable['prototype']['close'] = function() { + if (this['_data']) { + this['_data']['open'] = ![]; + } + } + ; + PostilLable['prototype']['show'] = function() { + if (this['_point']) { + this['_point']['show'] = !![]; + } + if (this['_canvas']) { + this['_canvas']['style']['display'] = 'b' + doo(0x39f) + 'k'; + } + if (this['_data']) { + this['_data']['show'] = !![]; + } + } + ; + PostilLable['prototype'][dol(0x873)] = function() { + if (this['_point']) { + this['_point']['show'] = ![]; + } + if (this['_canvas']) { + this['_canvas']['style'][dol(0x874)] = 'n' + doo(0x3a0) + 'e'; + } + if (this['_data']) { + this['_data']['show'] = ![]; + } + } + ; + PostilLable['prototype']['clear'] = function() { + this['_points']['remove'](this['_point']); + if (this['_canvas']) { + this['_viewer']['container']['removeChild'](this['_canvas']); + this['_canvas'] = undefined; + } + this['_data'] = undefined; + } + ; + }()); + (function() { + PlanDrawing = function(aE6, aE7) { + this['_data'] = aE6; + this['_viewer'] = aE7['viewer']; + this['_api'] = aE7; + this['_view_2d'] = undefined; + this['_view_3d'] = undefined; + this['_tileset'] = aE7['m_model']['get'](aE6['modelId']['toString']()); + this['_tilesetId'] = aE6['modelId']; + this['_topRendering'] = Cesium['defaultValue'](aE6['isTopRendering'], !![]); + this['_lastRevitId'] = undefined; + this['_featureId'] = undefined; + this['_cad'] = undefined; + this['init'](); + } + ; + PlanDrawing['prototype']['init'] = function() { + var aE8 = this['_data'][dol(0x875)]; + var aE9 = this['_data']['div_3d']; + if (!Cesium[dol(0x876)](aE8) || !Cesium['defined'](aE9)) { + console['error']('二' + doo(0x3a1) + '空'); + return; + } + var aEa = 0x1; + if (Cesium['defined'](this['_data']['zoomScalar'])) { + aEa = Number(this['_data']['zoomScalar']); + } + this['_cad'] = new GLCad(); + this['_view_2d'] = document['getElementById'](aE8); + this['_view_3d'] = document['getElementById'](aE9); + if (!isEmpty(this['_view_2d']) && !isEmpty(this['_view_3d'])) { + if (this['_data']['styleType'] != undefined && this['_data']['styleType'] == 'W' + doo(0x3a2) + 'e') { + this['_view_3d']['parentElement']['setAttribute']('s' + doo(0x3a3) + 'e', doj(0xe7)); + this['_view_2d']['setAttribute']('s' + doo(0x3a4) + 'e', doj(0xe8)); + this['_view_3d'][dol(0x877)]('s' + doo(0x3a5) + 'e', doj(0xe9)); + } else if (this['_data']['styleType'] != undefined && this['_data'][dol(0x878)] == 'M' + doo(0x3a6) + 'e') { + this['_view_2d']['setAttribute']('s' + doo(0x3a7) + 'e', doj(0xea)); + this['_view_3d']['setAttribute']('s' + doo(0x3a8) + 'e', doj(0xeb)); + } else { + this['_view_2d']['setAttribute']('s' + doo(0x3a9) + 'e', this['_data']['styleType'] != undefined && this['_data']['styleType']['Webpage'] != undefined ? this['_data']['styleType']['Webpage'] : doj(0xec)); + this['_view_3d'][dol(0x879)]('s' + doo(0x3aa) + 'e', this['_data']['styleType'] != undefined && this['_data']['styleType']['Mobile'] != undefined ? this['_data']['styleType']['Mobile'] : doj(0xed)); + if (this['_data']['styleType'] == undefined || this['_data']['styleType'][dol(0x87a)] == undefined && this['_data']['styleType']['Mobile'] == undefined) { + this['_view_3d']['parentElement']['setAttribute']('s' + doo(0x3ab) + 'e', doj(0xee)); + } + } + this['_view_2d']['innerHTML'] = null; + this['_cad'][dol(0x87b)](aE8); + this['_cad']['SetZoomToScalar'](aEa); + var aEb = this['_api']['viewer']['scene']['backgroundColor']['toBytes'](); + this['_cad']['SetBackGroundColor'](aEb[0x0], aEb[0x1], aEb[0x2], 0x1); + this['_api']['viewer']['scene']['requestRender'](); + } else { + console['error']('容' + doo(0x3ac) + '在'); + return; + } + } + ; + PlanDrawing['prototype']['openDrawing'] = function(aEc) { + var aEd = this['_data']['fileName']; + var aEe = this['_tilesetId']; + var aEf = this['_featureId']; + var aEg = ![]; + if (Cesium['defined'](this['_data']['notZoomTo'])) { + aEg = this['_data']['notZoomTo']; + } + var aEh = 0.2; + if (!isEmpty(this['_data']['modelAlpha'])) { + aEh = this['_data'][dol(0x87c)]; + } + this['_cad']['clearScene'](); + this['_cad']['Load'](aEc, aEe); + this['_cad']['SetClickMode'](0x5); + this['_cad']['SetDefaultHoverColor'](0xff0000); + var aEi = this; + this['_cad'][dol(0x87d)] = function(aEj, aEk) { + if (aEi['_lastRevitId'] != undefined) { + aEi['_cad']['ResetRevitColor'](aEi['_lastRevitId']); + } + aEi['_cad']['SetRevitColor'](aEj + '', 0xff0000); + aEi['_cad']['ZoomToRevit'](aEj); + aEi['_api']['Feature']['ZoomToFeature'](aEe + '^' + aEj, aEe, !![], aEh); + if (aEi['_topRendering']) { + var aEl = new Map(); + for (var aEm = 0x0; aEm < aEi[dol(0x87e)]['tileset']['_selectedTiles']['length']; ++aEm) { + var aEn = aEi['_api']['tileset']['_selectedTiles'][aEm]['_content']; + var aEo = aEi['_api']['funcPublic']['GetFeaturesFromContent'](aEn, aEj); + if (aEo['size'] > 0x0) + aEl['set'](aEe + '^' + aEj, aEo['get'](aEj)); + } + var aEp = { + 'featureIds': aEl, + 'tagName': aEe, + 'isMultiple': ![] + }; + aEi['_api']['Feature']['topRendering'](aEp); + } + aEi['_lastRevitId'] = aEj; + if (Cesium['defined'](aEi['OnCadSelectionRevitId'])) { + aEi['OnCadSelectionRevitId'](aEj); + } + } + ; + this['_cad']['onCadLoaded'] = function(aEe) { + if (!isEmpty(aEf)) { + var aEr = aEf[dol(0x87f)](aEe + '^', ''); + if (aEi['_lastRevitId'] != undefined) { + aEi['_cad']['ResetRevitColor'](aEi['_lastRevitId']); + } + aEi['_cad']['SetRevitColor'](aEr + '', 0xff0000); + aEi['_cad']['ZoomToRevit'](aEr); + aEi[dol(0x880)]['Feature']['ZoomToFeature'](aEf, aEe, ![], aEh); + aEi['_lastRevitId'] = aEr; + aEf = undefined; + } + } + ; + this['_api']['viewer']['scene']['requestRender'](); + } + ; + PlanDrawing['prototype']['exit'] = function() { + this['_cad']['clearScene'](); + if (!isEmpty(this['_view_2d']) && !isEmpty(this['_view_3d'])) { + this['_view_2d']['setAttribute']('s' + doo(0x3ad) + 'e', ''); + this['_view_3d']['setAttribute']('s' + doo(0x3ae) + 'e', ''); + document['body']['setAttribute']('s' + doo(0x3af) + 'e', 'o' + doo(0x3b0) + ';'); + this['_view_2d']['innerHTML'] = null; + this['_api']['Model']['original'](this['_tilesetId']); + this['_api']['Model'][dol(0x881)](this['_tilesetId']); + this['_api']['Feature']['clearSelectColor'](); + this['_api']['Feature']['clearTopRenderSelectColor'](); + this['_api'][dol(0x882)]['clearHandler'](); + self['_api'][dol(0x883)]['clearBOX23line'](this['_viewer']); + this['_api']['viewer'][dol(0x884)]['requestRender'](); + } + } + ; + }()); + (function() { + ImageryProvider = function(aEs) { + this['_viewer'] = aEs['viewer']; + this['_lab'] = undefined; + this['_providerViewModels'] = new Map(); + this['_imageProvider'] = []; + this['_geocodeMode'] = []; + this['_iconImg'] = doj(0xef); + this['_iconMap'] = doj(0xf0); + var aEt = this; + var aEu = '卫' + doo(0x3b1) + '像'; + var aEv = '天' + doo(0x3b2) + '像'; + var aEw = 'A' + doo(0x3b3) + '像'; + var aEx = '离' + doo(0x3b4) + '像'; + var aEy = '谷' + doo(0x3b5) + '像'; + var aEz = '官' + doo(0x3b6) + '像'; + var aEA = 'm' + doo(0x3b7) + '像'; + var aEB = '高' + doo(0x3b8) + '像'; + var aEC = '百' + doo(0x3b9) + '像'; + var aED = '电' + doo(0x3ba) + '图'; + var aEE = '天' + doo(0x3bb) + '图'; + var aEF = '高' + doo(0x3bc) + '图'; + var aEG = '百' + doo(0x3bd) + '图'; + switch (aEs['defaults']['language']) { + case 'z' + doo(0x3be) + 'W': + aEu = '衛' + doo(0x3bf) + '像'; + aEv = '天' + doo(0x3c0) + '像'; + aEw = 'A' + doo(0x3c1) + '像'; + aEx = '離' + doo(0x3c2) + '像'; + aEy = '穀' + doo(0x3c3) + '像'; + aEz = '官' + doo(0x3c4) + '像'; + aEA = 'm' + doo(0x3c5) + '像'; + aEB = '高' + doo(0x3c6) + '像'; + aEC = '百' + doo(0x3c7) + '像'; + aED = '電' + doo(0x3c8) + '圖'; + aEE = '天' + doo(0x3c9) + '圖'; + aEF = '高' + doo(0x3ca) + '圖'; + aEG = '百' + doo(0x3cb) + '圖'; + break; + case doh(0x4b): + aEu = 'S' + doo(0x3cc) + 'y'; + aEv = 'M' + doo(0x3cd) + 'y'; + aEw = 'A' + doo(0x3ce) + 'y'; + aEx = 'O' + doo(0x3cf) + 'y'; + aEy = 'G' + doo(0x3d0) + 'y'; + aEz = 'C' + doo(0x3d1) + 'y'; + aEA = 'M' + doo(0x3d2) + 'y'; + aEB = 'A' + doo(0x3d3) + 'y'; + aEC = 'B' + doo(0x3d4) + 'y'; + aED = doh(0x4c); + aEE = 'M' + doo(0x3d5) + 'd'; + aEF = 'A' + doo(0x3d6) + 'p'; + aEG = 'B' + doo(0x3d7) + 'p'; + break; + } + this['img_tdt_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEv, + 'name': aEv, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + var aEH = { + 'style': 'i' + doo(0x3d8) + 'w', + 'key': aEs['defaults']['mapworldkey'] + }; + var aEI = new Cesium['TdtImageryProvider'](aEH); + if (Cesium['defined'](aEt[dol(0x885)])) + aEt['_viewer']['imageryLayers']['remove'](aEt['_lab']); + aEt['_lab'] = aEt['_viewer']['imageryLayers']['addImageryProvider'](new Cesium['TdtImageryProvider']({ + 'style': 'c' + doo(0x3d9) + 'w', + 'key': aEs['defaults']['mapworldkey'] + })); + return aEI; + } + }); + this['_providerViewModels']['set']('t' + doo(0x3da) + 'e', this['img_tdt_yx']); + this['_imageProvider']['push'](this['img_tdt_yx']); + this['img_arcgis_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEw, + 'name': aEw, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + if (Cesium['defined'](aEt['_lab'])) + aEt['_viewer']['imageryLayers']['remove'](aEt['_lab']); + var aEJ = new Cesium['ArcGisMapServerImageryProvider']({ + 'url': doj(0xf1), + 'tilingScheme': new Cesium['WebMercatorTilingScheme'](), + 'maximumLevel': 0x16, + 'gamma': 0.66 + }); + aEJ[dol(0x886)] = 0.66; + return aEJ; + } + }); + this['_providerViewModels']['set']('a' + doo(0x3db) + 'e', this['img_arcgis_yx']); + this['_imageProvider']['push'](this['img_arcgis_yx']); + this['img_out_line_gis_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEx, + 'name': aEx, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + if (Cesium['defined'](aEt['_lab'])) + aEt['_viewer'][dol(0x887)][dol(0x888)](aEt['_lab']); + var aEK = new Cesium['TileMapServiceImageryProvider']({ + 'url': aEs['defaults']['outLineImageryProvider'], + 'tilingScheme': new Cesium['WebMercatorTilingScheme'](), + 'minimumLevel': 0x0, + 'maximumLevel': 0xf + }); + aEK['defaultGamma'] = 0.66; + return aEK; + } + }); + this['_providerViewModels'][dol(0x889)]('o' + doo(0x3dc) + 'e', this['img_out_line_gis_yx']); + this['_imageProvider']['push'](this['img_out_line_gis_yx']); + this['img_tdt_dt'] = new Cesium['ProviderViewModel']({ + 'category': aED, + 'tooltip': aEE, + 'name': aEE, + 'iconUrl': aEt['_iconMap'], + 'creationFunction': function() { + var aEL = { + 'style': 'v' + doo(0x3dd) + 'w', + 'key': aEs['defaults']['mapworldkey'] + }; + var aEM = new Cesium['TdtImageryProvider'](aEL); + if (Cesium['defined'](aEt['_lab'])) + aEt['_viewer']['imageryLayers'][dol(0x88a)](aEt['_lab']); + aEt['_lab'] = aEt['_viewer'][dol(0x88b)]['addImageryProvider'](new Cesium['TdtImageryProvider']({ + 'style': 'c' + doo(0x3de) + 'w', + 'key': aEs['defaults']['mapworldkey'] + })); + return aEM; + } + }); + this['_providerViewModels']['set']('t' + doo(0x3df) + 'p', this['img_tdt_dt']); + this['_imageProvider']['push'](this['img_tdt_dt']); + this['img_goole_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEy, + 'name': aEy, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + if (Cesium['defined'](aEt[dol(0x88c)])) + aEt[dol(0x88d)]['imageryLayers']['remove'](aEt['_lab']); + var aEN = { + 'style': doh(0x4d) + }; + return new Cesium['GoogleImageryProvider'](aEN); + } + }); + this['img_cesiumWorld_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEz, + 'name': aEz, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + if (Cesium[dol(0x88e)](aEt[dol(0x88f)])) + aEt['_viewer']['imageryLayers']['remove'](aEt['_lab']); + var aEO = new Cesium['createWorldImagery']({ + 'style': Cesium[dol(0x890)]['AERIAL_WITH_LABELS'] + }); + return aEO; + } + }); + this['_providerViewModels']['set']('c' + doo(0x3e0) + 'e', this['img_cesiumWorld_yx']); + this['_imageProvider']['push'](this['img_cesiumWorld_yx']); + this['img_mapbox_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEA, + 'name': aEA, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + if (Cesium['defined'](aEt['_lab'])) + aEt[dol(0x891)]['imageryLayers']['remove'](aEt['_lab']); + var aEP = new Cesium[(dol(0x892))]({ + 'mapId': 'm' + doo(0x3e1) + 'e', + 'accessToken': doj(0xf2) + }); + return aEP; + } + }); + this['img_gaode_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEB, + 'name': aEB, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + if (Cesium['defined'](aEt['_lab'])) + aEt['_viewer']['imageryLayers']['remove'](aEt['_lab']); + var aEQ = { + 'style': doh(0x4e), + 'crs': 'W' + doo(0x3e2) + '4' + }; + var aER = new Cesium['AmapImageryProvider'](aEQ); + aER['maximumLevel'] = 0x12; + aEt['_lab'] = aEt['_viewer']['imageryLayers']['addImageryProvider'](new Cesium['AmapImageryProvider']({ + 'style': doh(0x4f), + 'crs': 'W' + doo(0x3e3) + '4' + })); + return aER; + } + }); + this['_providerViewModels']['set']('g' + doo(0x3e4) + 'e', this['img_gaode_yx']); + this['_imageProvider']['push'](this['img_gaode_yx']); + this['img_gaode_dt'] = new Cesium['ProviderViewModel']({ + 'category': aED, + 'tooltip': aEF, + 'name': aEF, + 'iconUrl': aEt['_iconMap'], + 'creationFunction': function() { + if (Cesium['defined'](aEt['_lab'])) + aEt['_viewer']['imageryLayers']['remove'](aEt['_lab']); + var aES = { + 'style': 'e' + doo(0x3e5) + 'c', + 'crs': 'W' + doo(0x3e6) + '4' + }; + var aET = new Cesium['AmapImageryProvider'](aES); + aEt['_lab'] = aEt['_viewer']['imageryLayers']['addImageryProvider'](new Cesium[(dol(0x893))]({ + 'style': doh(0x50), + 'crs': 'W' + doo(0x3e7) + '4' + })); + return aET; + } + }); + this['_providerViewModels']['set']('g' + doo(0x3e8) + 'p', this['img_gaode_dt']); + this['_imageProvider']['push'](this['img_gaode_dt']); + this['img_baidu_yx'] = new Cesium['ProviderViewModel']({ + 'category': aEu, + 'tooltip': aEC, + 'name': aEC, + 'iconUrl': aEt['_iconImg'], + 'creationFunction': function() { + var aEU = { + 'style': doh(0x51), + 'crs': 'W' + doo(0x3e9) + '4' + }; + var aEV = new Cesium[(dol(0x894))](aEU); + if (Cesium['defined'](aEt['_lab'])) + aEt[dol(0x895)]['imageryLayers']['remove'](aEt['_lab']); + aEt['_lab'] = aEt['_viewer']['imageryLayers'][dol(0x896)](new Cesium['BaiduImageryProvider']({ + 'style': doh(0x52), + 'crs': 'W' + doo(0x3ea) + '4' + })); + return aEV; + } + }); + this['_providerViewModels']['set']('b' + doo(0x3eb) + 'e', this['img_baidu_yx']); + this['_imageProvider']['push'](this['img_baidu_yx']); + this['img_baidu_dt'] = new Cesium['ProviderViewModel']({ + 'category': aED, + 'tooltip': aEG, + 'name': aEG, + 'iconUrl': aEt['_iconMap'], + 'creationFunction': function() { + var aEW = { + 'style': 'n' + doo(0x3ec) + 'l', + 'crs': 'W' + doo(0x3ed) + '4' + }; + var aEX = new Cesium['BaiduImageryProvider'](aEW); + if (Cesium['defined'](aEt['_lab'])) + aEt['_viewer']['imageryLayers']['remove'](aEt['_lab']); + aEt['_lab'] = aEt['_viewer']['imageryLayers']['addImageryProvider'](new Cesium['BaiduImageryProvider']({ + 'style': doh(0x53), + 'crs': 'W' + doo(0x3ee) + '4' + })); + return aEX; + } + }); + this['_providerViewModels']['set']('b' + doo(0x3ef) + 'p', this['img_baidu_dt']); + this['_imageProvider']['push'](this['img_baidu_dt']); + this['_viewer']['baseLayerPicker']['viewModel']['imageryProviderViewModels'] = this['_imageProvider']; + var aEY = this['_viewer']['geocoder']['viewModel']; + var aEZ = function(aF0) { + for (var aF1 = 0x0; aF1 < aEt['_geocodeMode'][dol(0x897)]; aF1++) { + aEt['_viewer']['entities']['remove'](aEt[dol(0x898)][aF1]); + } + aEt['_geocodeMode'] = []; + var aF2 = doj(0xf3) + aF0['_searchText'] + doj(0xf4); + if (!aFc(aF0['_searchText'])) { + var aF3 = aF0['_searchText']['split'](','); + if (aF3['length'] > 0x1) { + aF2 = doj(0xf5) + aF3[0x0] + (',' + doo(0x3f0) + ':') + aF3[0x1] + doj(0xf6); + } + } + var aF4 = new XMLHttpRequest(); + aF4['open'](doh(0x54), aF2, !![]); + aF4['send'](null); + aF4['onreadystatechange'] = function() { + if (aF4['status'] === 0xc8 && aF4['readyState'] === 0x4) { + if (!isEmpty(aF4['responseText'])) { + var aF5 = JSON['parse'](aF4['responseText']); + if (!isEmpty(aF5) && !isEmpty(aF5['location'])) { + var aF6 = aEt['_viewer']['baseLayerPicker']['viewModel']['selectedImagery']['tooltip']; + var aF7 = [aF5['location']['lon'], aF5[dol(0x899)]['lat']]; + var aF8 = aEt['_viewer']['entities']['add']({ + 'position': Cesium['Cartesian3']['fromDegrees'](aF7[0x0], aF7[0x1]), + 'point': { + 'color': Cesium['Color']['RED'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aEt['_geocodeMode'][dol(0x89a)](aF8); + aEt[dol(0x89b)]['camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromDegrees'](aF7[0x0], aF7[0x1], 0x1f4) + }); + } else { + if (!isEmpty(aF5['result']) && !isEmpty(aF5['result']['location'])) { + var aF6 = aEt['_viewer']['baseLayerPicker']['viewModel']['selectedImagery']['tooltip']; + var aF7 = [aF5['result']['location']['lon'], aF5['result']['location']['lat']]; + var aF8 = aEt[dol(0x89c)]['entities']['add']({ + 'position': Cesium['Cartesian3']['fromDegrees'](aF7[0x0], aF7[0x1]), + 'point': { + 'color': Cesium['Color']['RED'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aEt[dol(0x89d)]['push'](aF8); + aEt['_viewer']['camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromDegrees'](aF7[0x0], aF7[0x1], 0x1f4) + }); + } + } + } + } + } + ; + }; + aEY['_searchCommand'] = Cesium['createCommand'](function() { + if (aEY['isSearchInProgress']) { + cancelGeocode(aEY); + } else { + aEZ(aEY); + } + }); + function aFc(aFd) { + var aFe = /[^\u4E00-\u9FA5]/; + if (aFe['test'](aFd)) + return ![]; + return !![]; + } + } + ; + ImageryProvider['prototype']['getImagerys'] = function() { + return this['_providerViewModels']; + } + ; + }()); + (function() { + MeasuringAuxiliaryComponents = function(aFf, aFg) { + this['_API'] = aFg; + this['_viewer'] = aFg['viewer']; + this['enableOld'] = { + 'billboard': ![], + 'plane': ![] + }; + this['enable'] = { + 'billboard': ![], + 'plane': ![] + }; + this['billboardImage'] = aFf['image']; + this['point'] = Cesium['Cartesian3']['fromRadians'](1.9003252866764104, 0.5969003386708813, 0x0); + this['plane'] = new Cesium['Plane'](Cesium['Cartesian3']['UNIT_Z'],0x0); + this['dimensions'] = new Cesium['Cartesian2'](0x14,0x14); + this['lastCartesian'] = new Cesium['Cartesian3'](); + if (this['_API']['MeasuringAuxiliaryComponents']) { + this['clear'](); + this['_API']['MeasuringAuxiliaryComponents'] = undefined; + } + this['_API']['MeasuringAuxiliaryComponents'] = this; + this['init'](); + } + ; + MeasuringAuxiliaryComponents['prototype'][dol(0x89e)] = function() { + var aFh = this; + aFh['oldCameraPercentageChanged'] = aFh['_viewer']['camera']['percentageChanged']; + aFh['_viewer'][dol(0x89f)]['percentageChanged'] = 0.2; + this['cameraChangedEvent'] = function() { + aFh['updateDimensions'](); + } + ; + aFh['_viewer']['camera']['changed']['addEventListener'](this['cameraChangedEvent']); + aFh['entity'] = aFh['_viewer']['entities'][dol(0x8a0)]({ + 'name': doj(0xf7), + 'position': new Cesium['CallbackProperty']( () => aFh['point'],![]), + 'plane': { + 'show': new Cesium['CallbackProperty'](function() { + return aFh['enable']['plane']; + } + ,![]), + 'dimensions': new Cesium['CallbackProperty'](function() { + return aFh['dimensions']; + } + ,![]), + 'material': Cesium['Color']['WHITE']['withAlpha'](0.5), + 'outline': !![], + 'outlineWidth': 0xa, + 'outlineColor': Cesium['Color']['BLACK'][dol(0x8a1)](0.7), + 'plane': new Cesium['CallbackProperty'](function() { + return aFh['plane']; + } + ,![]), + 'fill': ![], + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + this['entityId'] = aFh[dol(0x8a2)]['id']; + } + ; + MeasuringAuxiliaryComponents['prototype']['cameraChangedEvent'] = function() { + this['updateDimensions'](); + } + ; + MeasuringAuxiliaryComponents['prototype']['updateDimensions'] = function() { + if (Cesium['Cartesian3']['equals'](this['point'], Cesium['Cartesian3']['ZERO'])) { + return; + } + var aFi = Cesium['Cartesian3']['distance'](this['_viewer']['camera']['position'], this['point']) / 0x14; + Cesium[dol(0x8a3)]['multiplyByScalar'](Cesium['Cartesian3']['ONE'][dol(0x8a4)](), aFi, this['dimensions']); + this['_viewer']['scene']['requestRender'](); + } + ; + MeasuringAuxiliaryComponents['prototype']['updateData'] = function(aFj) { + if (aFj['cartesian']) { + Cesium['Cartesian3']['clone'](aFj['cartesian'], this['lastCartesian']); + Cesium[dol(0x8a5)]['clone'](this['lastCartesian'], this['point']); + } + var aFk = Cesium['Cartesian3']['distance'](this['_viewer'][dol(0x8a6)]['position'], this['point']) / 0x14; + if (aFj['isPlane'] && aFj['planeNormal']) { + var aFl = aFj['planeNormal']['clone'](); + Cesium['Cartesian3']['normalize'](aFl, aFl); + this['plane'] = new Cesium['Plane'](aFl,-0.05 * aFk); + this['updateDimensions'](); + } + this['entity']['plane']['show'] = aFj['isPlane']; + this['enable']['billboard'] = aFj['isVertex']; + this['enable']['plane'] = aFj['isPlane']; + this['_viewer']['scene'][dol(0x8a7)](); + } + ; + MeasuringAuxiliaryComponents['prototype']['toggle'] = function(aFm) { + if (aFm) { + this['enable']['billboard'] = this['enableOld']['billboard']; + this['enable']['plane'] = this['enableOld']['plane']; + } else { + this['enableOld']['billboard'] = this['enable']['billboard']; + this['enableOld']['plane'] = this['enable']['plane']; + this['enable'][dol(0x8a8)] = ![]; + this['enable']['plane'] = ![]; + } + this['_viewer']['scene']['requestRender'](); + } + ; + MeasuringAuxiliaryComponents['prototype']['clear'] = function() { + this['_viewer']['entities']['remove'](this['entity']); + this['_viewer'][dol(0x8a9)]['removeById'](this['entityId']); + this['_viewer'][dol(0x8aa)]['changed']['removeEventListener'](this['cameraChangedEvent']); + this['_viewer']['camera']['percentageChanged'] = this['oldCameraPercentageChanged']; + } + ; + }()); + function aFn(aFo, aFp) { + this['_viewer'] = aFo; + var aFq = Cesium['defaultValue'](aFp, {}); + this['_depth'] = Cesium['defaultValue'](aFq['depth'], 0x1f4), + this['_alpha'] = Cesium['defaultValue'](aFq['alpha'], 0.5), + this['_enable'] = Cesium['defaultValue'](aFq['enable'], !0x1); + } + aFn['prototype']['_updateImageryLayersAlpha'] = function(aFr) { + for (var aFs = this['_viewer']['imageryLayers']['_layers'], aFt = 0x0, q = aFs['length']; aFt < q; aFt++) + aFs[aFt]['alpha'] = aFr; + } + ; + aFn['prototype']['_historyOpts'] = function() { + var aFv = {}; + aFv['alpha'] = Cesium['clone'](this['_viewer']['imageryLayers']['_layers'][0x0] && this['_viewer']['imageryLayers']['_layers'][0x0]['alpha']), + aFv['skyShow'] = Cesium['clone'](this['_viewer']['scene']['skyAtmosphere']['show']), + aFv['skyBoxShow'] = Cesium['clone'](this['_viewer']['scene'][dol(0x8ab)]['show']), + aFv['depthTest'] = Cesium['clone'](this['_viewer'][dol(0x8ac)]['globe']['depthTestAgainstTerrain']), + this['_viewer']['scene']['globe']['_surface'] && this['_viewer']['scene']['globe']['_surface']['_tileProvider'] && this['_viewer']['scene']['globe']['_surface']['_tileProvider']['_renderState'] && (aFv['blending'] = Cesium['clone'](this['_viewer']['scene']['globe']['_surface']['_tileProvider']['_renderState'][dol(0x8ad)])), + this['_oldViewOpts'] = aFv; + } + ; + aFn['prototype']['activate'] = function() { + if (!this['_enable']) { + this['_enable'] = !0x0, + this['_historyOpts'](), + this['_updateImageryLayersAlpha'](this['_alpha']); + var aFw = this['_viewer']; + Cesium['ExpandByMars']['underEarth']['cullFace'] = !0x1, + Cesium['ExpandByMars']['underEarth']['enable'] = !0x0, + Cesium['ExpandByMars']['underEarth']['enableDepth'] = this['_depth'], + Cesium['ExpandByMars']['underEarth']['enableSkirt'] = !0x0, + aFw['scene'][dol(0x8ae)]['depthTestAgainstTerrain'] = !0x0, + aFw['scene']['skyAtmosphere']['show'] = !0x1, + aFw['scene']['skyBox']['show'] = !0x1, + aFw['scene']['globe']['_surface'][dol(0x8af)] && aFw['scene']['globe']['_surface'][dol(0x8b0)]['_renderState'] && aFw['scene'][dol(0x8b1)]['_surface']['_tileProvider']['_renderState']['blending']; + } + } + ; + aFn['prototype']['disable'] = function() { + if (this['_enable']) { + this['_enable'] = !0x1, + this['_updateImageryLayersAlpha'](this['_oldViewOpts']['alpha']); + var aFx = this['_viewer']; + Cesium['ExpandByMars']['underEarth']['cullFace'] = void 0x0, + Cesium['ExpandByMars']['underEarth']['enable'] = !0x1, + Cesium['ExpandByMars']['underEarth'][dol(0x8b2)] = 0x0, + Cesium['ExpandByMars']['underEarth']['enableSkirt'] = !0x1, + aFx[dol(0x8b3)]['globe']['depthTestAgainstTerrain'] = this['_oldViewOpts']['depthTest'], + aFx['scene']['skyBox'][dol(0x8b4)] = this['_oldViewOpts']['skyBoxShow'], + aFx['scene']['skyAtmosphere']['show'] = this['_oldViewOpts']['skyShow']; + } + } + ; + aFn['prototype']['destroy'] = function() { + delete this['_viewer'], + delete this['_alpha'], + delete this['_depth'], + delete this['_enable'], + delete this['_oldViewOpts']; + } + ; + class aFy { + constructor(aFz) { + this['drawCommand'] = aFz; + } + ['update'](aFA) { + if (!this['drawCommand']) { + this['createCommand'](aFA['context']); + } + aFA['commandList']['push'](this['drawCommand']); + } + ['destroy']() {} + } + class aFB { + constructor(aFC, aFD, aFE) { + this['tag'] = aFC; + this['modelMatrix'] = aFD || Cesium['Matrix4']['IDENTITY']['clone'](); + this['fillColor'] = aFE; + this['drawCommand'] = null; + } + ['createCommand'](aFF) { + var aFG = this['tag']; + var aFH = this['fillColor']; + var aFI = new Cesium['BoxGeometry']({ + 'vertexFormat': Cesium['VertexFormat']['POSITION_ONLY'], + 'maximum': new Cesium['Cartesian3'](0x1,0x1,0x1), + 'minimum': new Cesium['Cartesian3'](-0x1,-0x1,-0x1) + }); + var aFJ = Cesium['BoxGeometry']['createGeometry'](aFI); + var aFK = Cesium['GeometryPipeline']['createAttributeLocations'](aFJ); + var aFL = Cesium['VertexArray']['fromGeometry']({ + 'context': aFF, + 'geometry': aFJ, + 'attributeLocations': aFK + }); + var aFM = '\x0aattribute\x20vec3\x20position;\x0avoid\x20main(){\x0agl_Position\x20=\x20czm_projection\x20\x20*\x20czm_modelView\x20*\x20vec4(\x20position\x20,\x201.\x20);\x0a}\x0a'; + var aFN = '\x0auniform\x20vec3\x20color;\x0avoid\x20main(){\x0agl_FragColor=vec4(\x20color\x20,\x201.\x20);\x0a}\x0a'; + var aFO = Cesium['ShaderProgram']['fromCache']({ + 'context': aFF, + 'vertexShaderSource': aFM, + 'fragmentShaderSource': aFN, + 'attributeLocations': aFK + }); + var aFP = { + 'color'() { + return aFH; + } + }; + var aFQ = Cesium['RenderState']['fromCache']({ + 'frontFace': Cesium['WindingOrder']['COUNTER_CLOCKWISE'], + 'cull': { + 'enabled': !![], + 'face': Cesium['CullFace']['BACK'] + }, + 'depthTest': { + 'enabled': ![], + 'func': Cesium['DepthFunction']['LESS'] + }, + 'depthMask': ![], + 'stencilMask': ![], + 'stencilTest': { + 'enabled': !![], + 'frontFunction': Cesium['StencilFunction']['EQUAL'], + 'reference': 0x1, + 'mask': 0x1, + 'frontOperation': { + 'fail': Cesium[dol(0x8b5)]['KEEP'], + 'zFail': Cesium['StencilOperation']['KEEP'], + 'zPass': Cesium['StencilOperation']['KEEP'] + } + } + }); + this['drawCommand'] = new Cesium['DrawCommand']({ + 'modelMatrix': this['modelMatrix'], + 'vertexArray': aFL, + 'shaderProgram': aFO, + 'uniformMap': aFP, + 'renderState': aFQ, + 'pass': Cesium['Pass']['OPAQUE'] + }); + this['drawCommand']['id'] = aFG; + } + ['update'](aFR) { + if (!this['drawCommand']) { + this['createCommand'](aFR['context']); + } + aFR['commandList'][dol(0x8b6)](this['drawCommand']); + } + ['destroy']() {} + } + class aFS { + constructor(q=new Cesium['Cartesian3'](), aFU=new Cesium['Cartesian3'](), aFV=new Cesium['Cartesian3']()) { + this['a'] = q; + this['b'] = aFU; + this['c'] = aFV; + } + static['getNormal'](q, aFX, aFY, aFZ) { + var aG0 = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](aFY, aFX, aFZ); + Cesium['Cartesian3']['subtract'](q, aFX, aG0); + Cesium['Cartesian3'][dol(0x8b7)](aFZ, aG0, aFZ); + const aG1 = Cesium['Cartesian3']['magnitudeSquared'](aFZ); + if (aG1 > 0x0) { + return Cesium['Cartesian3']['multiplyByScalar'](aFZ, 0x1 / Math['sqrt'](aG1), aFZ); + } + return new Cesium['Cartesian3'](0x0,0x0,0x0); + } + ['getNormal'](aG2) { + return aFS['getNormal'](this['a'], this['b'], this['c'], aG2); + } + } + class aG3 { + constructor(aG4=null, aG5=null, aG6=0x1) { + this['type'] = 'E' + doo(0x3f1) + 'y'; + this['parameters'] = { + 'indexAttr': aG4, + 'positionAttr': aG5, + 'thresholdAngle': aG6 + }; + if (aG5 !== null) { + const aG7 = 0x4; + const aG8 = Math['pow'](0xa, aG7); + const aG9 = Math['cos'](Math['PI'] / 0xb4 * aG6); + const aGa = aG4 ? aG4['length'] : aG5['length']; + const aGb = [0x0, 0x0, 0x0]; + const aGc = ['a', 'b', 'c']; + const aGd = new Array(0x3); + const aGe = {}; + const aGf = []; + for (let aGg = 0x0; aGg < aGa; aGg += 0x3) { + if (aG4) { + aGb[0x0] = aG4[aGg]; + aGb[0x1] = aG4[aGg + 0x1]; + aGb[0x2] = aG4[aGg + 0x2]; + } else { + aGb[0x0] = aGg; + aGb[0x1] = aGg + 0x1; + aGb[0x2] = aGg + 0x2; + } + const aGh = new Cesium['Cartesian3'](); + const aGi = new aFS(); + const {a, b, c} = aGi; + this['fromBufferAttribute'](aG5, aGb[0x0], a); + this['fromBufferAttribute'](aG5, aGb[0x1], b); + this['fromBufferAttribute'](aG5, aGb[0x2], c); + aGi['getNormal'](aGh); + aGd[0x0] = Math['round'](a['x'] * aG8) + ',' + Math['round'](a['y'] * aG8) + ',' + Math['round'](a['z'] * aG8); + aGd[0x1] = Math['round'](b['x'] * aG8) + ',' + Math['round'](b['y'] * aG8) + ',' + Math['round'](b['z'] * aG8); + aGd[0x2] = Math[dol(0x8b8)](c['x'] * aG8) + ',' + Math['round'](c['y'] * aG8) + ',' + Math['round'](c['z'] * aG8); + if (aGd[0x0] === aGd[0x1] || aGd[0x1] === aGd[0x2] || aGd[0x2] === aGd[0x0]) { + continue; + } + for (let aGj = 0x0; aGj < 0x3; aGj++) { + const aGk = (aGj + 0x1) % 0x3; + const aGl = aGd[aGj]; + const aGm = aGd[aGk]; + const aGn = aGi[aGc[aGj]]; + const aGo = aGi[aGc[aGk]]; + const aGp = aGl + '_' + aGm; + const aGq = aGm + '_' + aGl; + if (aGq in aGe && aGe[aGq]) { + if (Cesium['Cartesian3']['dot'](aGh, aGe[aGq]['normal']) <= aG9) { + aGf[dol(0x8b9)](aGn['x'], aGn['y'], aGn['z']); + aGf['push'](aGo['x'], aGo['y'], aGo['z']); + } + aGe[aGq] = null; + } else if (!(aGp in aGe)) { + aGe[aGp] = { + 'index0': aGb[aGj], + 'index1': aGb[aGk], + 'normal': aGh['clone']() + }; + } + } + } + const aGr = new Cesium['Cartesian3'](); + const aGs = new Cesium['Cartesian3'](); + for (const aGt in aGe) { + if (aGe[aGt]) { + const {index0, index1} = aGe[aGt]; + this['fromBufferAttribute'](aG5, index0, aGr); + this['fromBufferAttribute'](aG5, index1, aGs); + aGf['push'](aGr['x'], aGr['y'], aGr['z']); + aGf['push'](aGs['x'], aGs['y'], aGs['z']); + } + } + this['positions'] = aGf; + } + } + ['fromBufferAttribute'](aGu, aGv, aGw) { + aGw['x'] = aGu[aGv * 0x3]; + aGw['y'] = aGu[aGv * 0x3 + 0x1]; + aGw['z'] = aGu[aGv * 0x3 + 0x2]; + return aGw; + } + } + }()); + saveFile = function(aGx, aGy) { + var aGz = document['createElementNS'](doj(0xf8), 'a'); + aGz[dol(0x8ba)] = aGx; + aGz['download'] = aGy; + var aGA = document['createEvent']('M' + doo(0x3f2) + 's'); + aGA['initMouseEvent']('c' + doo(0x3f3) + 'k', !![], ![], window, 0x0, 0x0, 0x0, 0x0, 0x0, ![], ![], ![], ![], 0x0, null); + aGz['dispatchEvent'](aGA); + } + ; + extend = function(aGB, aGC) { + for (var aGD in aGC) { + if (aGC['hasOwnProperty'](aGD)) + aGB[aGD] = aGC[aGD]; + } + return aGB; + } + ; + Uint16Array[dol(0x8bb)]['indexXB'] = function(aGE) { + var aGF = [] + , aGG = this['length'] + , aGH = 0x0; + while (aGH < aGG) { + aGH = this['indexOf'](aGE, aGH); + if (aGH === -0x1) { + break; + } + aGF['push'](aGH); + aGH += 0x1; + } + return aGF; + } + ; + extendDeep = function(aGI, aGJ) { + var aGK, aGL; + aGL = JSON[dol(0x8bc)](aGI); + aGL = JSON['parse'](aGL); + aGJ = aGJ || {}; + for (aGK in aGL) { + if (aGL['hasOwnProperty'](aGK)) { + aGJ[aGK] = aGL[aGK]; + } + } + aGL = null; + return aGJ; + } + ; + ;EditControls = function(aGM) { + aGM['defaultPosition'] = new Cesium['Cartographic'](108.88,34.22,0x0); + aGM['CurrentEditTag'] = undefined; + aGM['MergeList'] = []; + aGM['OnRenderList'] = []; + aGM['BaseContorl'] = new BaseControls(aGM); + aGM['TransformContorl'] = new TransformControls(aGM); + aGM['CurrentEditTag'] = undefined; + aGM[dol(0x8bd)] = ''; + aGM['EditViewMode'] = doh(0x55); + aGM['c_primitive'] = new Map(); + aGM['c_flickerFeatures'] = {}; + aGM['showAxis'] = ![]; + aGM[dol(0x8be)] = { + 'loadGrid': function(aGN=!![]) { + aGM['BaseContorl']['LoadGrid'](); + aGM['showAxis'] = aGN; + if (aGN) + aGM['BaseContorl'][dol(0x8bf)](); + aGM['viewer']['camera'][dol(0x8c0)]({ + 'destination': Cesium['Cartesian3']['fromDegrees'](aGM['defaultPosition']['longitude'], aGM['defaultPosition']['latitude'] - aGM['BaseContorl']['gridCellSize']['x'] * 0.0004, aGM['defaultPosition']['height'] + aGM['BaseContorl']['gridCellSize']['x'] * 0xa), + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math']['toRadians'](-0x5), + 'roll': 0x0 + } + }); + }, + 'updateGridPos': function(aGO) { + aGM[dol(0x8c1)][dol(0x8c2)](aGO); + if (aGM[dol(0x8c3)]) + aGM['BaseContorl']['LoadDebugAxis'](); + aGM['viewer']['camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromDegrees'](aGO[0x0], aGO[0x1] - aGM[dol(0x8c4)]['gridCellSize']['x'] * 0.0004, aGO[0x2] + aGM['BaseContorl']['gridCellSize']['x'] * 0xa), + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math']['toRadians'](-0x5), + 'roll': 0x0 + } + }); + }, + 'set3DView': function() { + if (aGM['EditViewMode'] == doh(0x56)) + return; + var aGP = aGM['viewer']['scene']['camera']; + var aGQ = new Cesium['PerspectiveFrustum'](); + aGQ['fov'] = Cesium['Math']['PI_OVER_THREE']; + aGQ['near'] = 0.01; + aGQ['far'] = 0x2540be400; + aGQ['aspectRatio'] = aGP['frustum']['aspectRatio']; + aGP['frustum'] = aGQ; + aGM[dol(0x8c5)]['scene']['screenSpaceCameraController']['enableTilt'] = !![]; + aGM['viewer']['scene']['screenSpaceCameraController']['rotateEventTypes'] = [Cesium['CameraEventType']['RIGHT_DRAG']]; + aGM['viewer']['camera'][dol(0x8c6)]({ + 'destination': Cesium['Cartesian3']['fromDegrees'](aGM['defaultPosition']['longitude'], aGM['defaultPosition']['latitude'] - aGM['BaseContorl']['gridCellSize']['x'] * 0.0004, aGM['defaultPosition']['height'] + aGM[dol(0x8c7)][dol(0x8c8)]['x'] * 0xa), + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium[dol(0x8c9)][dol(0x8ca)](-0x5), + 'roll': 0x0 + } + }); + aGM['EditViewMode'] = doh(0x57); + }, + 'set2DView': function() { + if (aGM['EditViewMode'] == doh(0x58)) + return; + var aGR = aGM['viewer']['scene']['camera']; + var aGS = new Cesium['OrthographicFrustum'](); + aGS['_offCenterFrustum'][dol(0x8cb)] = 0x0; + aGS['_offCenterFrustum']['right'] = 0x0; + aGS['_offCenterFrustum']['top'] = 0x0; + aGS['_offCenterFrustum']['bottom'] = 0x0; + aGS['_offCenterFrustum']['near'] = 0.01; + aGS['_offCenterFrustum']['far'] = 0x2540be400; + aGS['width'] = 0x32; + aGS['aspectRatio'] = aGR['frustum']['aspectRatio']; + aGR['frustum'] = aGS; + aGM['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + aGM['viewer']['scene']['screenSpaceCameraController']['rotateEventTypes'] = [Cesium[dol(0x8cc)]['LEFT_DRAG'], Cesium['CameraEventType']['RIGHT_DRAG']]; + aGM['viewer']['camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromDegrees'](aGM[dol(0x8cd)]['longitude'], aGM['defaultPosition']['latitude'], aGM['defaultPosition']['height'] + aGM['BaseContorl']['gridCellSize']['x'] * 0x14), + 'orientation': { + 'heading': 0x0, + 'pitch': Cesium['Math']['toRadians'](-0x5a), + 'roll': 0x0 + } + }); + aGM['EditViewMode'] = doh(0x59); + }, + 'togglelView': function() { + if (aGM[dol(0x8ce)] == doh(0x5a)) + aGM['Edit']['set2DView'](); + else if (aGM['EditViewMode'] == doh(0x5b)) + aGM['Edit']['set3DView'](); + }, + 'setGridStyle': function(aGT) { + aGM['BaseContorl']['gridCellCount'] = new Cesium['Cartesian2'](aGT['Count']['x'],aGT['Count']['y']); + aGM['BaseContorl']['gridCellSize'] = new Cesium['Cartesian2'](aGT['Size']['x'],aGT['Size']['y']); + aGM['BaseContorl']['gridColor'] = Cesium['Color']['fromCssColorString'](aGT['Color']); + aGM['BaseContorl']['LoadGrid'](); + }, + 'setGridAttractState': function(aGU) { + aGM['BaseContorl']['gridAttract'] = aGU; + }, + 'setModelAttractState': function(aGV) { + aGM['BaseContorl']['modelAttract'] = aGV; + }, + 'setRangingState': function(aGW) { + aGM['BaseContorl']['AutoMeasurement'](aGW); + }, + 'save': function(aGX) { + aGM['BaseContorl']['Save'](aGX); + }, + 'restore': function(aGY, aGZ) { + aGM['BaseContorl']['LoadByJson'](aGY, aGZ); + }, + 'undo': function() { + aGM[dol(0x8cf)][dol(0x8d0)](); + }, + 'redo': function() { + aGM['BaseContorl']['Redo'](); + }, + 'exists': function(aH0) { + return aGM[dol(0x8d1)]['entities']['getById'](aH0) || aGM['m_model']['has'](aH0); + }, + 'location': function(aH1) { + var aH2 = aGM[dol(0x8d2)]['find'](function(aH3) { + return aH3['modelList']['indexOf'](aH1) > -0x1 || aH3['id'] == aH1; + }); + if (Cesium['defined'](aH2)) { + var aH4 = []; + aH2['modelList']['forEach']( (aH5, aH6) => { + var aH7 = aGM['Model']['GetModelCenter'](aH5)['position']; + aH4['push'](Cesium['Cartesian3']['fromRadians'](aH7[0x0], aH7[0x1], aH7[0x2])); + } + ); + var aH8 = Cesium['BoundingSphere']['fromPoints'](aH4); + aGM['viewer']['camera']['flyToBoundingSphere'](aH8, { + 'duration': 0.5 + }); + return; + } + var aH9 = aGM['m_model']['get'](aH1); + if (Cesium['defined'](aH9)) { + aGM[dol(0x8d3)]['LocationModel'](aH1); + return; + } + aH9 = aGM['viewer'][dol(0x8d4)]['getById'](aH1); + if (Cesium['defined'](aH9)) { + var aH8; + if (Cesium['defined'](aH9['polyline'])) + aH8 = Cesium['BoundingSphere']['fromPoints'](aH9['polyline']['positions']['getValue']()); + else if (Cesium['defined'](aH9['polylineVolume'])) + aH8 = Cesium['BoundingSphere']['fromPoints'](aH9['polylineVolume'][dol(0x8d5)]['getValue']()); + else if (Cesium['defined'](aH9['ellipse'])) + aH8 = new Cesium['BoundingSphere'](aH9[dol(0x8d6)]['getValue'](),aH9['ellipse']['semiMajorAxis']['getValue']()); + else if (Cesium['defined'](aH9['rectangle'])) + aH8 = Cesium['BoundingSphere']['fromRectangle3D'](aH9['rectangle']['coordinates']['getValue']()); + else if (Cesium[dol(0x8d7)](aH9[dol(0x8d8)])) + aH8 = new Cesium['BoundingSphere'](aH9['position']['getValue'](),Math['max'](aH9['billboard']['width'][dol(0x8d9)](), aH9['billboard']['height']['getValue']())); + if (Cesium['defined'](aH8)) { + aGM['viewer']['camera']['flyToBoundingSphere'](aH8, { + 'duration': 0.5 + }); + } + return; + } + aH9 = aGM['Label']['getCustomHtml'](aH1); + if (Cesium['defined'](aH9)) { + aGM['Camera']['ZoomToPosition'](aH9[dol(0x8da)], [Cesium['Math']['toDegrees'](aGM['viewer']['camera']['heading']), Cesium['Math']['toDegrees'](aGM['viewer']['camera']['pitch']), 0x1]); + } + }, + 'setEditMode': function(aHb) { + aGM['EditMode'] = aHb; + if (aHb == 'T' + doo(0x3f4) + 's') { + if (!Cesium['defined'](aGM['TransformContorl'])) { + aGM['TransformContorl'] = new TransformControls(aGM); + } + aGM['TransformContorl']['Transform'](); + } else if (aHb == 'R' + doo(0x3f5) + 'e') { + if (!Cesium['defined'](aGM['TransformContorl'])) { + aGM['TransformContorl'] = new TransformControls(aGM); + } + aGM['TransformContorl']['Rotate'](); + } else if (aHb == 'Z' + doo(0x3f6) + 'm') {} else { + aGM[dol(0x8db)][dol(0x8dc)](); + } + } + }; + aGM['Entity'] = { + 'drawLine': function(aHc, aHd) { + aGM['BaseContorl']['DrawLine'](aHc, aHd); + }, + 'exitDraw': function() { + aGM['BaseContorl']['exitDraw'](); + }, + 'drawCircle': function(aHe, aHf) { + aGM['BaseContorl']['DrawCircle'](aHe, aHf); + }, + 'drawRectangle': function(aHg, aHh) { + aGM['BaseContorl']['DrawRectangle'](aHg, aHh); + }, + 'drawPolygon': function(aHi, aHj) { + aGM['BaseContorl']['DrawPolygon'](aHi, aHj); + }, + 'drawPipeLine': function(aHk, aHl) { + aGM[dol(0x8dd)]['DrawPipeLine'](aHk, aHl); + }, + 'drawImage': function(aHm, aHn) { + aGM['BaseContorl']['DrawImage'](aHm, aHn); + }, + 'drawCylinder': function(aHo, aHp) { + aGM['BaseContorl']['DrawCylinder'](aHo, aHp); + }, + 'drawTexture': function(aHq, aHr) { + aGM['BaseContorl']['DrawTexture'](aHq, aHr); + }, + 'setFlowForPipeLine': function(aHs, aHt) { + var aHu = aGM['viewer']['entities']['getById'](aHs); + var aHv; + if (Cesium['defined'](aHu)) { + if (Cesium['defined'](aHu['polyline'])) + aHv = aHu[dol(0x8de)]; + else if (Cesium['defined'](aHu['polylineVolume'])) + aHv = aHu['polylineVolume']; + } + if (Cesium['defined'](aHv)) { + if (aHt['Flow'] > 0x0) { + aGM['OnRenderList']['push'](aHs); + aGM['viewer']['scene']['requestRenderMode'] = ![]; + aGM['viewer']['scene']['maximumRenderTimeChange'] = 0x0; + aHv['material'] = new Cesium['PolylineFlowMaterialProperty']({ + 'color': Cesium['Color'][dol(0x8df)](aHt[dol(0x8e0)] || 'r' + doo(0x3f7) + ',' + (0x1 - Math['random']() / 0x186a0) + ')'), + 'image': aHt['Flow'] == 0x1 ? 'T' + doo(0x3f8) + 'g' : doj(0xf9), + 'speed': aHt[dol(0x8e1)] || 0x1, + 'duration': aHt['Duration'] || 0x2710 + }); + } else { + aHv['material'] = Cesium['Color']['fromCssColorString'](aHt[dol(0x8e2)]); + aGM[dol(0x8e3)]['splice'](aGM['OnRenderList']['indexOf'](aHs), 0x1); + if (aGM['OnRenderList']['length'] == 0x0) { + aGM['viewer']['scene']['requestRenderMode'] = !![]; + aGM['viewer']['scene']['maximumRenderTimeChange'] = Infinity; + aGM['viewer']['scene']['requestRenderMode'] = ![]; + } + } + } + }, + 'setFlowFor3DTilePolyline': function(aHw) { + if (!aGM['getPipelineFlowState']()) { + console['log']('请' + doo(0x3f9) + '!'); + return; + } + var aHx = function(aHy) { + aGM['BaseContorl']['DrawExternalFlow'](aHy)['then'](function() { + aGM['BaseContorl']['FlowDeque']['shift'](); + if (aGM['BaseContorl']['FlowDeque']['length'] > 0x0) { + aHx(aGM['BaseContorl']['FlowDeque'][0x0]); + } + }, function(aHz) { + console['log'](aHz); + aGM['BaseContorl']['FlowDeque']['shift'](); + if (aGM['BaseContorl']['FlowDeque']['length'] > 0x0) { + aHx(aGM['BaseContorl']['FlowDeque'][0x0]); + } + }); + }; + aGM['BaseContorl']['FlowDeque'] = []; + aGM['BaseContorl']['FlowDeque']['push'](aHw); + if (aGM['BaseContorl']['FlowDeque']['length'] == 0x1) + aHx(aGM['BaseContorl']['FlowDeque'][0x0]); + }, + 'getByEvent': function(aHA, aHB) { + try { + var aHC = ![]; + var aHD = undefined; + var aHE = aGM['viewer']['scene']['drillPick'](aHA, 0x2, 0x1, 0x1); + aHE[dol(0x8e4)](function(aHF) { + if (aHF && Cesium['defined'](aHF) && aHF['id']) { + if (aHF['id']instanceof Cesium['Entity'] && aHF[dol(0x8e5)]['id'] == 'E' + doo(0x3fa) + 'e') + return !![]; + else + aHD = aHF; + } + }); + if (Cesium['defined'](aHD) && aHD[dol(0x8e6)]instanceof Cesium['Entity']) { + aHC = !![]; + var aHG = []; + if (Cesium['defined'](aHD['id']['polyline'])) + aHG['push'](aHD['id']['polyline']); + if (Cesium['defined'](aHD['id']['polylineVolume'])) + aHG['push'](aHD['id']['polylineVolume']); + if (Cesium['defined'](aHD['id']['ellipse'])) + aHG['push'](aHD['id']['ellipse']); + if (Cesium['defined'](aHD['id']['rectangle'])) + aHG['push'](aHD['id']['rectangle']); + if (Cesium['defined'](aHD['id']['billboard'])) + aHG[dol(0x8e7)](aHD['id']['billboard']); + if (!isEmpty(aHB)) { + aHB({ + 'obj': aHG, + 'id': aHD['id']['id'] + }); + } + } else if (Cesium['defined'](aHD) && aHD['id'] && aHD['primitive']instanceof Cesium['Label']) { + aHC = !![]; + var aHG = []; + aHG[dol(0x8e8)](aHD[dol(0x8e9)]); + if (!isEmpty(aHB)) { + aHB({ + 'obj': aHG, + 'id': aHD['primitive']['id'] + }); + } + } else if (Cesium['defined'](aHD) && aHD['id'] && aHD[dol(0x8ea)]instanceof Cesium['Primitive']) { + aHC = !![]; + if (!isEmpty(aHB)) { + aHB({ + 'obj': aHD['primitive'], + 'id': aHD['id'] + }); + } + } else if (Cesium[dol(0x8eb)](aHD) && aHD['id'] && typeof aHD['id'] == 's' + doo(0x3fb) + 'g') { + var aHG = aGM['c_primitive']['get'](aHD[dol(0x8ec)])['obj']; + if (!isEmpty(aHB)) { + aHB({ + 'obj': aHG, + 'id': aHD['id'] + }); + } + } + if (!aHC && !isEmpty(aHB)) { + aHB(undefined); + } + } catch (aHJ) { + console['log']('错' + doo(0x3fc) + ':' + aHJ); + } + }, + 'remove': function(aHK) { + var aHL = aGM['m_model']['get'](aHK); + if (aHL) { + aGM['Model']['remove'](aHK); + return; + } + aHL = aGM['viewer']['entities']['getById'](aHK); + if (aHL) { + if (Cesium['defined'](aHL['cylinder'])) { + aGM['viewer']['entities']['removeById'](aHK + doh(0x5c)); + } + aGM['viewer']['entities']['removeById'](aHK); + aGM['OnRenderList']['splice'](aGM['OnRenderList']['indexOf'](aHK), 0x1); + return; + } + aHL = aGM['c_primitive']['get'](aHK); + if (aHL) { + aGM['viewer']['scene']['primitives']['remove'](aHL['obj']['primitive']); + aGM[dol(0x8ed)]['delete'](aHK); + return; + } + aGM['viewer']['scene']['requestRender'](); + if (aGM['OnRenderList']['length'] == 0x0) { + aGM['viewer']['scene']['requestRenderMode'] = !![]; + aGM['viewer']['scene'][dol(0x8ee)] = Infinity; + } + }, + 'update': function(aHM, aHN, aHO, aHP) { + aGM['BaseContorl']['DrawUpdate'](aHM, aHN, aHO, aHP); + }, + 'setGlowForPolyLine': function(aHQ) { + aGM['BaseContorl']['SetPolylineGlow'](aHQ); + } + }; + aGM['Model']['edit'] = function(aHR, aHS, aHT, aHU, aHV) { + if (aHV == undefined) { + aHV = { + 'flyto': ![] + }; + } else { + aHV['flyto'] = ![]; + } + aGM['Model']['add'](aHR, aHS, aHT, aHU, aHV); + } + ; + aGM['Model']['copy'] = function(aHW, aHX, aHY) { + try { + if (!isEmpty(aHW)) { + if (aGM['m_model'][dol(0x8ef)](aHW['toString']()) === undefined) { + throw doj(0xfa); + } + if (aHW['toString']()['toLowerCase']() == 'a' + doo(0x3fd) + 'r') + return; + aGM[dol(0x8f0)] = aGM['m_model'][dol(0x8f1)](aHW['toString']()); + let aHZ = aGM['tileset']['url']['indexOf']('?') > -0x1 ? aGM['tileset']['url']['substring'](0x0, aGM['tileset']['url']['indexOf']('?')) : aGM['tileset']['url']; + var aI0 = Cesium['Cartesian3']['multiplyByScalar'](Cesium['Cartesian3']['fromArray'](aGM['tileset']['root']['boundingVolume']['boundingVolume']['halfAxes'], 0x0), 0x2, new Cesium['Cartesian3']()); + var aI1 = Cesium['Matrix4']['fromTranslation'](aI0); + var aI2 = Cesium[dol(0x8f2)]['multiplyTransformation'](aI1, aGM['tileset']['modelMatrix'], new Cesium['Matrix4']()); + aGM['Model']['add'](aHZ, aHX, null, aHY, { + 'flyto': ![], + 'transform': aGM['tileset']['root']['transform'], + 'matrix': aI2, + 'rotate': aGM['tileset']['rotate'] + }); + _self['snap']['do']['push']({ + 'Key': doh(0x5d), + 'Type': 'M' + doo(0x3fe) + 'l', + 'ID': aHX + }); + } + } catch (aI3) { + console['log']('错' + doo(0x3ff) + ':' + aI3); + } + } + ; + aGM['Model']['rotateForEdit'] = function(aI4, aI5, aI6, aI7) { + try { + if (!isEmpty(aI4)) { + if (aGM['m_model']['get'](aI4['toString']()) === undefined) { + throw doj(0xfb); + } + aGM['tileset'] = aGM['m_model']['get'](aI4['toString']()); + } + aI5 = Number(aI5); + if (isNaN(aI5)) { + throw '参' + doo(0x400) + '字'; + } + aI6 = Number(aI6); + if (isNaN(aI6)) { + throw '参' + doo(0x401) + '字'; + } + aI7 = Number(aI7); + if (isNaN(aI7)) { + throw '参' + doo(0x402) + '字'; + } + var aI8 = new Cesium['Matrix3'](); + if (aI5 != 0x0) { + aI8 = Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](-aI5)); + aGM['tileset']['rotate'] = [(aGM['tileset']['rotate'][0x0] - aI5) % 0x168, aGM['tileset']['rotate'][0x1], aGM['tileset']['rotate'][0x2]]; + } else if (aI6 != 0x0) { + aI8 = Cesium['Matrix3']['fromRotationY'](Cesium['Math']['toRadians'](aI6)); + aGM['tileset']['rotate'] = [aGM['tileset'][dol(0x8f3)][0x0], (aGM[dol(0x8f4)]['rotate'][0x1] + aI6) % 0x168, aGM['tileset']['rotate'][0x2]]; + } else if (aI7 != 0x0) { + aI8 = Cesium['Matrix3']['fromRotationZ'](Cesium['Math']['toRadians'](-aI7)); + aGM['tileset']['rotate'] = [aGM['tileset']['rotate'][0x0], aGM['tileset']['rotate'][0x1], (aGM['tileset']['rotate'][0x2] - aI7) % 0x168]; + } + if (!aI8['equals'](new Cesium['Matrix3']())) { + let aI9 = aGM['tileset']['boundingSphere']['center']; + var aIa = aGM[dol(0x8f5)]['tilesetoutline'][dol(0x8f6)] - aGM['tileset']['tilesetoutline']['minimumHeight']; + var aIb = new Cesium['Matrix4'](); + var aIc = new Cesium['Matrix4'](); + Cesium['Matrix4']['multiply'](aGM['tileset']['modelMatrix'], aGM['tileset']['root']['transform'], aIc); + Cesium['Matrix4']['inverse'](aIc, aIb); + Cesium['Matrix4']['multiplyByPoint'](aIb, aI9, aI9); + let aId = Cesium['Cartesian3']['subtract'](new Cesium['Cartesian3'](0x0,0x0,0x0), aI9, new Cesium['Cartesian3']()); + var aIe = new Cesium['Matrix4'](); + aGM['tileset']['root']['transform'][dol(0x8f7)](aIe); + Cesium['Matrix4']['multiply'](aIe, Cesium['Matrix4']['fromTranslation'](aId), aIe); + Cesium['Matrix4']['multiply'](aIe, Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,aIa)), aIe); + Cesium['Matrix4'][dol(0x8f8)](aIe, aI8, aIe); + Cesium['Matrix4']['multiply'](aIe, Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,-aIa)), aIe); + Cesium['Matrix4']['multiply'](aIe, Cesium['Matrix4']['fromTranslation'](aI9), aGM['tileset']['root']['transform']); + aGM['viewer'][dol(0x8f9)]['requestRender'](); + } + } catch (aIf) { + console[dol(0x8fa)]('错' + doo(0x403) + ':' + aIf); + } + } + ; + aGM[dol(0x8fb)]['alignment'] = function(aIg, aIh) { + aGM['BaseContorl']['Alignment'](aIg, aIh); + } + ; + aGM['Model']['merge'] = function(aIi, aIj, aIk, aIl) { + if (aIj) { + aIk = Array['from'](new Set(aIk)); + var aIm = ![]; + aGM['MergeList'][dol(0x8fc)](function(aIn, aIo) { + if (aIn['id'] == aIi) { + aIm = !![]; + return !![]; + } + }); + if (aIm) { + if (!isEmpty(aIl)) + aIl(![]); + return; + } + aGM['MergeList']['push']({ + 'id': aIi, + 'modelList': aIk + }); + aGM['Model']['SetModelVisible']('a' + doo(0x404) + 'r', ![]); + if (!isEmpty(aIl)) + aIl(!![]); + } else { + aGM['MergeList'][dol(0x8fd)](function(aIp, aIq) { + if (aIp['id'] == aIi) { + aGM['MergeList']['splice'](aIq, 0x1); + return !![]; + } + }); + aGM['Model']['SetModelVisible']('a' + doo(0x405) + 'r', ![]); + } + } + ; + aGM['Model']['original'] = function(aIr) { + try { + if (!isEmpty(aIr)) { + if (aGM['m_model']['get'](aIr['toString']()) === undefined) { + throw doj(0xfc); + } else { + aGM['tileset'] = aGM['m_model'][dol(0x8fe)](aIr['toString']()); + aGM['tileset']['stylecolor'] = 'r' + doo(0x406) + ')'; + aGM['modelStyleMap']['get'](aIr['toString']())['clear'](); + aGM['modelShowMap']['get'](aIr[dol(0x8ff)]())['clear'](); + aGM['funcPublic']['updateModelStyle'](aGM[dol(0x900)], new Map()); + aGM['funcPublic']['updateModelShowStyle'](aGM[dol(0x901)], new Map(), !![]); + aGM['Feature']['ClearSelectColor'](); + var aIs = aGM['tileset']['getParamObject']() == undefined ? [] : [aGM['tileset']['getParamObject']()]; + aGM['funcPublic']['clearEntityColor'](aIs); + if (aIs['length'] > 0x0 && aIs[0x0][dol(0x902)]['_primitives']['length'] > 0x0) { + for (let aIt = 0x0; aIt < aIs[0x0]['_primitives']['_primitives']['length']; aIt++) { + if (aIs[0x0]['_primitives']['_primitives'][aIt]instanceof Cesium['Primitive']) { + var aIu = aIs[0x0][dol(0x903)]['_primitives'][aIt]; + aIu['appearance']['material'] = undefined; + aIu['appearance']['translucent'] = ![]; + } + } + } + aGM[dol(0x904)]['updateEntityShow'](aGM['viewer'], '', ![], 0x1); + } + } else { + if (aGM['defaults']['editmode']) + aGM['TransformContorl']['Cancel'](); + aGM['m_model'][dol(0x905)](function(aIv, aIw) { + if (aIw != 'a' + doo(0x407) + 'r') { + aIv['stylecolor'] = 'r' + doo(0x408) + ')'; + aGM['modelStyleMap']['get'](aIw)['clear'](); + aGM['modelShowMap']['get'](aIw)['clear'](); + aGM['funcPublic']['updateModelStyle'](aIv, new Map()); + aGM['funcPublic']['updateModelShowStyle'](aIv, new Map()); + } + }); + } + aGM['viewer']['scene']['requestRender'](); + return 0x0; + } catch (aIx) { + console['log']('错' + doo(0x409) + ':' + aIx); + } + } + ; + aGM['Feature']['rotateFeatureWithSide'] = function(aIy, aIz, aIA, aIB, aIC, aID) { + try { + if (!isEmpty(aID)) { + if (aGM['m_model']['get'](aID['toString']()) === undefined) { + throw doj(0xfd); + } + aGM['tileset'] = aGM['m_model'][dol(0x906)](aID['toString']()); + } + var aIE = aGM['funcPublic']['disposeFeatureId'](aIy); + if (aIE['length'] > 0x1) + aIy = aIE[0x1]; + else + aIy = aIE[0x0]; + aIB = Cesium['defaultValue'](aIB, 0x5a); + aIC = Cesium[dol(0x907)](aIC, 0x5); + var aIF = new Array(); + var aIG = new Array(); + var aIH = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var aII = new Cesium[(dol(0x908))](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var aIJ = 0x1; + var aIK = { + 'models': [], + 'batchids': [] + }; + var aIL = !isEmpty(aGM['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](aGM['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + for (var aIM = 0x0; aIM < aGM[dol(0x909)]['_selectedTiles']['length']; ++aIM) { + let aIN = aGM[dol(0x90a)]['_selectedTiles'][aIM]['_content']; + let aIO = aGM['tileset']['_selectedTiles'][aIM]; + var aIP = aGM['funcPublic']['GetFeatureFromContent'](aIN, aIy); + if (aIP == -0x1) { + continue; + } + var aIQ = aGM['funcPublic']['GetFeatureMaxMinPoint'](aIN, aIP); + aIH = Cesium['Cartesian3'][dol(0x90b)](aIH, aIQ[0x0], new Cesium['Cartesian3']()); + aIH = Cesium['Cartesian3']['maximumByComponent'](aIH, aIQ[0x1], new Cesium['Cartesian3']()); + aII = Cesium['Cartesian3'][dol(0x90c)](aII, aIQ[0x0], new Cesium['Cartesian3']()); + aII = Cesium['Cartesian3']['minimumByComponent'](aII, aIQ[0x1], new Cesium['Cartesian3']()); + aIK[dol(0x90d)][dol(0x90e)](aIO); + aIK['batchids']['push'](aIP); + isFindFeature = !![]; + } + if (aIK['models']['length'] > 0x0) { + var aIR = aIz == 0x1 ? aII : aIH; + var aIS = Cesium[dol(0x90f)]['subtract'](new Cesium['Cartesian3'](0x0,0x0,0x0), aIR, new Cesium['Cartesian3']()); + for (let aIT = 0x0; aIT < aIK[dol(0x910)][dol(0x911)]; ++aIT) { + let aIU = aIK['models'][aIT]['_content']['_model']; + let aIV = aIK['models'][aIT]['_content']; + let aIW = aIK['models'][aIT]; + let aIP = aIK[dol(0x912)][aIT]; + let aIY = new Cesium['Matrix4'](); + aIV['_batchTable']['getBatchIdMatrix'](aIP)[dol(0x913)](aIY); + var aIZ = Cesium['Matrix3']['fromRotationZ'](Cesium['Math']['toRadians'](aIB)); + var aJ0 = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromRotationTranslation'](aIZ), Cesium['Matrix4']['fromTranslation'](aIS), new Cesium['Matrix4']()); + aJ0 = Cesium[dol(0x914)]['multiply'](Cesium['Matrix4']['fromTranslation'](aIR), aJ0, new Cesium['Matrix4']()); + var aJ1 = Cesium['Matrix4']['multiplyTransformation'](aJ0, aIY, new Cesium['Matrix4']()); + aIV['_batchTable']['setBatchIdMatrix'](aIP, aJ1); + } + } + return ![]; + } catch (aJ2) { + console['log']('错' + doo(0x40a) + ':' + aJ2); + } + } + ; + aGM['Feature']['flicker'] = function(aJ3, aJ4, aJ5) { + if (!Cesium[dol(0x915)](aJ3)) + return; + if (aJ4) { + var aJ6 = ['#' + doo(0x40b) + '0', '#' + doo(0x40c) + '0', '#' + doo(0x40d) + '0']; + var aJ7 = 0x1f4; + var aJ8 = 0x0; + if (Cesium[dol(0x916)](aJ5)) { + aJ6 = aJ5['colors'] && aJ5[dol(0x917)]['length'] >= 0x2 ? aJ5['colors'] : aJ6; + aJ7 = aJ5['timeInterval'] && aJ5['timeInterval'] > 0x0 ? aJ5['timeInterval'] : 0x3e8; + aJ8 = aJ5['totalDuration'] || 0x0; + } + var aJ9 = function(aJa, aJb) { + var aJc = parseInt(aJb['substr'](0x1, 0x2), 0x10); + var aJd = parseInt(aJb['substr'](0x3, 0x2), 0x10); + var aJe = parseInt(aJb['substr'](0x5, 0x2), 0x10); + if (aJa != '') { + aGM['Feature']['SetActorColor'](aJa, aJc, aJd, aJe); + } + }; + if (!aJ6 || aJ6['length'] < 0x1) { + console['error']('至' + doo(0x40e) + '。', aJ6); + return; + } + if (Cesium['defined'](aGM['c_flickerFeatures'][aJ3])) { + aGM['Feature']['flicker'](aJ3, ![]); + } + var aJf = 0x0; + aJ9(aJ3, aJ6[aJf]); + var aJg = setInterval(function() { + if (aGM['c_flickerFeatures'][aJ3] == undefined) + return; + aJ9(aJ3, aJ6[aJf % aJ6['length']]); + aJf++; + }, aJ7); + aGM['c_flickerFeatures'][aJ3] = aJg; + if (!isNaN(aJ8) && aJ8 > 0x0) { + setTimeout(function() { + if (aGM['c_flickerFeatures'][aJ3] == undefined) + return; + aGM['Feature']['flicker'](aJ3, ![]); + }, aJ8); + } + return aJg; + } else { + if (Cesium['defined'](aGM[dol(0x918)][aJ3])) { + var aJg = aGM['c_flickerFeatures'][aJ3]; + clearInterval(aJg); + aGM['Feature']['OriginalFeature'](aJ3); + } + delete aGM['c_flickerFeatures'][aJ3]; + } + } + ; + aGM['PatrolRoam'] = { + 'setConfig': function(aJi) { + if (!Cesium['defined'](aGM['Camera_OnsiteInspection'])) { + aGM['Camera_OnsiteInspection'] = new GLEOnsiteInspection(aGM['viewer'],aGM); + } + if (Cesium['defined'](aJi['userName'])) { + aGM['Camera_OnsiteInspection']['InitUserName'](aJi['userName']); + } + aGM['Camera_OnsiteInspection']['ClearPosition'](); + aJi['positions']['forEach'](aJj => { + aGM['Camera_OnsiteInspection']['PickPosition'](aJj); + } + ); + aGM['Camera_OnsiteInspection']['CreatePath'](aJi['times']); + aGM['Camera_OnsiteInspection']['SetInformation'](aJi['showInformation']); + aGM['Camera_OnsiteInspection']['SetView'](aJi['showPerson'], aJi['viewPitch'], aJi['viewHeight']); + aJi['warnInfo'][dol(0x919)](aJk => { + aGM['Camera_OnsiteInspection']['SetWarnInfo'](aJk['featureId'], aJk['warnInfo']); + } + ); + aJi['doorInfo']['forEach'](aJl => { + aGM['Camera_OnsiteInspection']['SetDoorInfo'](aJl['featureId'], aJl['tag']); + } + ); + }, + 'start': function(aJm) { + if (!Cesium['defined'](aGM['Camera_OnsiteInspection'])) { + aGM['Camera_OnsiteInspection'] = new GLEOnsiteInspection(aGM['viewer'],aGM); + } + aGM['Camera_OnsiteInspection']['Start'](aJm); + }, + 'pause': function() { + if (!Cesium[dol(0x91a)](aGM['Camera_OnsiteInspection'])) { + aGM['Camera_OnsiteInspection'] = new GLEOnsiteInspection(aGM['viewer'],aGM); + } + aGM[dol(0x91b)]['Pause'](); + }, + 'close': function() { + if (!Cesium['defined'](aGM['Camera_OnsiteInspection'])) { + aGM['Camera_OnsiteInspection'] = new GLEOnsiteInspection(aGM['viewer'],aGM); + } + aGM['Camera_OnsiteInspection']['ClearPosition'](); + aGM['Camera_OnsiteInspection']['Close'](); + } + }; + aGM['Public'][dol(0x91c)] = function() { + try { + aGM['Label']['remove'](0x0); + aGM['m_model']['forEach']( (aJn, aJo) => { + if (aJo != 'a' + doo(0x40f) + 'r') { + aGM['Model']['RemoveModel'](aJo); + aGM['modelStyleMap']['delete'](aJo); + aGM['modelShowMap']['delete'](aJo); + } + } + ); + for (var aJp = 0x0; aJp < aGM['viewer']['entities']['values']['length']; aJp++) { + if (aGM['viewer']['entities']['values'][aJp]['id'] != 'E' + doo(0x410) + 'e') { + aGM['viewer']['entities']['remove'](aGM[dol(0x91d)]['entities']['values'][aJp]); + aJp--; + } + } + if (aGM['m_model']['has']('a' + doo(0x411) + 'r')) + aGM['Model']['SetModelVisible']('a' + doo(0x412) + 'r', ![]); + aGM[dol(0x91e)]['scene']['requestRender'](); + return 0x0; + } catch (aJq) { + console['log']('错' + doo(0x413) + ':' + aJq); + return -0x1; + } + } + ; + } + ; + APIAlias = function(aJr) { + aJr['Model']['AddModel'] = aJr['Model']['add']; + aJr['Model'][dol(0x91f)] = aJr['Model']['addByInstance']; + aJr['Model']['PartLoadModel'] = aJr['Model']['addPart']; + aJr[dol(0x920)]['AddModelByGltf'] = aJr['Model']['addByGltf']; + aJr['Model']['AddModelByKml'] = aJr['Model'][dol(0x921)]; + aJr['Model']['AddModelByJeoJson'] = aJr['Model'][dol(0x922)]; + aJr['Model']['GetModelLoadedData'] = aJr['Model']['getLoadedData']; + aJr['Model']['SetModelVisible'] = aJr[dol(0x923)]['setVisible']; + aJr['Model']['SetModelListVisible'] = aJr['Model'][dol(0x924)]; + aJr[dol(0x925)][dol(0x926)] = aJr['Model']['location']; + aJr['Model']['AddModelVolume'] = aJr['Model']['addBoundingVolume']; + aJr['Model']['ClearModelVolume'] = aJr['Model']['clearBoundingVolume']; + aJr[dol(0x927)]['GetModelCenter'] = aJr['Model'][dol(0x928)]; + aJr['Model']['SetPrimitiveView'] = aJr['Model']['add']; + aJr['Model']['SetModelAlpha'] = aJr['Model']['setAlpha']; + aJr['Model'][dol(0x929)] = aJr[dol(0x92a)]['setColor']; + aJr['Model']['OriginalModel'] = aJr['Model']['original']; + aJr['Model']['RemoveModel'] = aJr['Model']['remove']; + aJr['Model']['SetModelScale'] = aJr['Model']['scale']; + aJr[dol(0x92b)]['RotateModel'] = aJr['Model']['rotate']; + aJr['Model']['RotateModelAboutAnyAxis'] = aJr['Model']['rotateByAnyAxis']; + aJr['Model']['GetModel'] = aJr['Model']['get']; + aJr['Model'][dol(0x92c)] = aJr['Model']['setCurrent']; + aJr['Model']['GetModelByEvent'] = aJr['Model']['getByScreenCoord']; + aJr['Model']['ModelMoveToPosition'] = aJr['Model']['moveToPosition']; + aJr['Model']['ModelMoveByTrack'] = aJr['Model']['moveByTrack']; + aJr['Model']['ReModelMoveByTrack'] = aJr['Model']['moveByTrack']; + aJr['Model']['StopModelMoveByTrack'] = aJr['Model']['stopMoveByTrack']; + aJr['Model']['ClearModelOffset'] = aJr['Model']['clearOffset']; + aJr['Model']['ClearModelRotation'] = aJr['Model']['clearRotation']; + aJr['Model']['OffsetModel'] = aJr['Model']['offset']; + aJr['Model']['LoadModelList'] = aJr['Model']['getLoadedList']; + aJr['Model']['PlateClip'] = aJr['Model']['clip']; + aJr['Model']['ResetClip'] = aJr['Model']['closeClip']; + aJr['Model']['ClipingPlaneBySpace'] = aJr['Model']['clipBySpace']; + aJr['Model']['DrawGrid'] = aJr[dol(0x92d)]['drawGrid']; + aJr['Model'][dol(0x92e)] = aJr['Model']['clearGrid']; + aJr[dol(0x92f)]['SetViewPort'] = aJr['Camera']['setPerspectiveViewPort']; + aJr['Model']['SetMaximumScreen'] = aJr['Model']['setMaxSpaceError']; + aJr['Model']['GetModelsCenter'] = aJr['Model']['getModelsCenter']; + aJr['Model']['OrthogonalScreenshot'] = aJr['Model'][dol(0x930)]; + aJr['Model']['InitMapNavigation3D'] = aJr['Model']['initMapNavigator2D']; + aJr['Model']['closeMapNavigation3D'] = aJr['Model']['closeMapNavigator2D']; + aJr['Model'][dol(0x931)] = aJr['Model']['removeFlatten']; + aJr['Model']['FlattenModel'] = aJr['Model']['addFlatten']; + aJr[dol(0x932)][dol(0x933)] = aJr['Model']['asyncAddFlatten']; + aJr['Model']['CloseCutPartModel'] = aJr['Model']['removeCutPart']; + aJr['Model']['CutPartModel'] = aJr['Model']['addCutPart']; + aJr['Model']['CloseCutCircleModel'] = aJr['Model']['removeCutCircle']; + aJr['Model']['CutCircleModel'] = aJr['Model']['addCutCircle']; + aJr['Model']['FloorLayering'] = aJr['Model']['floorLayering']; + aJr['Model']['RestoreFloorLayering'] = aJr['Model']['restoreFloorLayering']; + aJr['Model']['SetOutlineOn'] = aJr['Model']['setOutlineOn']; + aJr['Model']['SetOutlineWidth'] = aJr['Model']['setOutlineWidth']; + aJr['Model']['SetOutlineColor'] = aJr['Model']['setOutlineColor']; + aJr['Model']['GetHandleState'] = aJr['Model']['getHandleState']; + aJr['Model']['SetHandleState'] = aJr['Model']['setHandleState']; + aJr[dol(0x934)]['OffsetModelTemp'] = aJr[dol(0x935)]['offsetTemp']; + aJr['Model']['RotateModelTemp'] = aJr['Model']['rotateTemp']; + aJr['Camera']['CameraWall'] = aJr['Camera'][dol(0x936)]; + aJr['Camera']['GetCamera'] = aJr['Camera']['getViewPort']; + aJr['Camera']['SetCamera'] = aJr['Camera']['setViewPort']; + aJr['Camera']['SetCamersLookAtSpace'] = aJr['Camera']['lookAt']; + aJr['Camera']['GetCameraExtent'] = aJr[dol(0x937)]['getExtent']; + aJr['Camera']['AddCameraListener'] = aJr['Camera']['addListener']; + aJr['Camera'][dol(0x938)] = aJr['Camera'][dol(0x939)]; + aJr['Camera']['StopCameraRotate'] = aJr['Camera']['stopAutoRotate']; + aJr['Camera']['ZoomPosition'] = aJr['Camera']['zoomToPosition']; + aJr['Camera']['FlyPosition'] = aJr['Camera']['flyToPosition']; + aJr['Camera']['RouteTrack'] = aJr['Camera']['autoRoamTrackByCzml']; + aJr[dol(0x93a)]['EndRouteTrack'] = aJr['Camera']['stopRoamTrackByCzml']; + aJr['Camera']['AutoRoaming'] = aJr['Camera']['autoRoamByTrace']; + aJr['Camera']['PauseOrContinueRoaming'] = aJr['Camera']['pauseAutoRoamByTrace']; + aJr['Camera']['EndRoaming'] = aJr['Camera']['stopRoamByTrace']; + aJr['Camera']['SaveScreenShot'] = aJr['Camera']['saveScreenShot']; + aJr['Camera']['KeyboardRoaming'] = aJr[dol(0x93b)]['roamByKeyboard']; + aJr['Camera']['SetIRConfig'] = aJr['Camera']['setImmersiveRoamConfig']; + aJr['Camera']['PickIrBirthplace'] = aJr['Camera']['pickImmersiveRoamBirthplace']; + aJr['Camera']['SetIrBirthplace'] = aJr['Camera']['setImmersiveRoamBirthplace']; + aJr['Camera']['StartImmersionRoaming'] = aJr['Camera']['startImmersiveRoam']; + aJr['Camera']['SuspendImmersionRoaming'] = aJr['Camera']['pauseImmersiveRoam']; + aJr['Camera']['EndImmersionRoaming'] = aJr[dol(0x93c)]['stopImmersiveRoam']; + aJr['Camera']['ResetIRCamera'] = aJr['Camera']['resetImmersiveRoamViewPort']; + aJr['Camera']['IsIRing'] = aJr[dol(0x93d)]['isImmersiveRoaming']; + aJr['Camera']['PlayIRCamera'] = aJr['Camera']['playImmersiveRoam']; + aJr['Camera']['PlayIRPause'] = aJr['Camera']['pauseImmersiveRoam']; + aJr['Camera']['PlayIRContinue'] = aJr['Camera']['continueImmersiveRoam']; + aJr['Camera'][dol(0x93e)] = aJr[dol(0x93f)]['playNextImmersiveRoam']; + aJr['Camera']['IRInsertKeyFrame'] = aJr['Camera'][dol(0x940)]; + aJr['Camera']['IRDeleteKeyFrame'] = aJr['Camera']['immersiveRoamDeleteKeyFrame']; + aJr['Camera'][dol(0x941)] = aJr['Camera']['cancelPlayImmersiveRoam']; + aJr[dol(0x942)]['IRKeyDown'] = aJr['Camera']['keyDownImmersiveRoam']; + aJr['Camera']['IRKeyUp'] = aJr['Camera']['keyUpImmersiveRoam']; + aJr['Camera']['SetCameraPos2D'] = aJr[dol(0x943)]['setPosition2D']; + aJr['Camera']['StartCustomRoam'] = aJr['Camera']['startViewPortRoam']; + aJr['Camera']['ReCustomRoam'] = aJr['Camera'][dol(0x944)]; + aJr['Camera']['StopCustomRoam'] = aJr[dol(0x945)]['stopViewPortRoam']; + aJr['Measurement']['DrawDistance'] = aJr['Measurement']['drawDistanceResult']; + aJr['Measurement'][dol(0x946)] = aJr['Measurement']['drawAreaResult']; + aJr[dol(0x947)]['Distance'] = aJr['Measurement'][dol(0x948)]; + aJr['Measurement']['Angle'] = aJr['Measurement']['angle']; + aJr['Measurement']['Area'] = aJr['Measurement']['area']; + aJr['Measurement']['GetAreaById'] = aJr['Measurement']['featureArea']; + aJr[dol(0x949)]['GetVolumeById'] = aJr['Measurement']['featureVolume']; + aJr['Measurement']['Radius'] = aJr['Measurement']['radius']; + aJr['Measurement']['Height'] = aJr['Measurement']['altitude']; + aJr['Measurement']['ClearTrace'] = aJr['Measurement']['clearAllTrace']; + aJr['Measurement']['SubmergeFill'] = aJr['Measurement']['submergeFill']; + aJr['Lable'] = {}; + aJr['Lable']['AddLable'] = aJr['Label']['addTextByScreenCoordinates']; + aJr['Lable']['DrawLable'] = aJr['Label'][dol(0x94a)]; + aJr['Lable']['AddIconLable'] = aJr['Label']['addIconByScreenCoordinates']; + aJr['Lable']['DrawIconLable'] = aJr['Label']['addIcon']; + aJr['Lable']['OnAnchorClick'] = aJr['Label']['getLableByEvent']; + aJr['Lable'][dol(0x94b)] = aJr['Label'][dol(0x94c)]; + aJr['Camera']['ChangePointSize2D'] = aJr['Label']['setIconSize2D']; + aJr['Lable']['AddLabel2d'] = aJr['Label']['addBalloon']; + aJr['Lable']['GetLabel2dById'] = aJr['Label']['getBalloonById']; + aJr['Lable']['ShowHideLabel2d'] = aJr['Label']['setBalloonVisible']; + aJr['Lable']['RemoveLabel2d'] = aJr['Label']['removeBalloon']; + aJr['Lable']['OnLabel2dClick'] = aJr['Label']['getBalloonByEvent']; + aJr['Lable']['GetFontLableById'] = aJr['Label']['getTextById']; + aJr[dol(0x94d)]['GetIconLableById'] = aJr['Label']['getIconById']; + aJr['Lable']['DeleteLable'] = aJr['Label']['remove']; + aJr[dol(0x94e)]['AddCustomLabel'] = aJr[dol(0x94f)][dol(0x950)]; + aJr['Lable']['UpdateCustomLabel'] = aJr[dol(0x951)]['updateCustomHtml']; + aJr['Lable']['AddCustomLabelByTheme'] = aJr['Label']['addCustomHtmlByTheme']; + aJr['Lable']['UpdateCustomLabelByTheme'] = aJr['Label']['updateCustomHtmlByTheme']; + aJr['Lable']['DeleteCustomLabel'] = aJr['Label']['removeCustomHtml']; + aJr['Lable']['DeleteAllCustomLabel'] = aJr['Label'][dol(0x952)]; + aJr[dol(0x953)]['SetCustomLabelVisible'] = aJr['Label']['setCustomHtmlVisible']; + aJr['Lable']['GetCustomLabel'] = aJr['Label'][dol(0x954)]; + aJr['Lable'][dol(0x955)] = aJr['Label']['addGroundTexture']; + aJr['Lable']['DeleteCenterPointSizePolygon'] = aJr[dol(0x956)]['removeGroundTexture']; + aJr[dol(0x957)][dol(0x958)] = aJr['Label']['addTexture']; + aJr['Lable']['RemoveFollowSceneLabel'] = aJr['Label'][dol(0x959)]; + aJr['Lable']['SetFollowSceneLabelVisible'] = aJr['Label']['setTextureVisible']; + aJr['Feature']['GetFeatureById'] = aJr['Feature']['getById']; + aJr['Feature']['CancelRegionFeature'] = aJr['Feature']['cancelBoxSelect']; + aJr[dol(0x95a)]['RegionFeature'] = aJr['Feature']['boxSelect']; + aJr['Feature']['GetFeatureByEvent'] = aJr['Feature']['getByEvent']; + aJr['Feature']['ZoomToFeature'] = aJr[dol(0x95b)]['zoomTo']; + aJr['Feature'][dol(0x95c)] = aJr['Feature']['zoomTo']; + aJr['Feature']['GetTrianglesVertex'] = aJr['Feature']['getVertex']; + aJr['Feature']['OriginalFeature'] = aJr[dol(0x95d)]['original']; + aJr['Feature']['ClearSelectColor'] = aJr['Feature']['clearSelectColor']; + aJr['Feature']['ShowActors'] = aJr['Feature']['showFeatures']; + aJr['Feature']['SetActorVisible'] = aJr['Feature']['setVisible']; + aJr['Feature']['SetActorColor'] = aJr['Feature']['setColor']; + aJr['Feature']['SetActorAlpha'] = aJr['Feature']['setAlpha']; + aJr['Feature']['GetActorStatus'] = aJr['Feature'][dol(0x95e)]; + aJr[dol(0x95f)]['GetCenterPosById'] = aJr['Feature']['getCenterById']; + aJr['Feature']['GetFeatureGeometryById'] = aJr['Feature']['getGeometrySizeById']; + aJr['Feature']['GetFeatureGeometryBybatchId'] = aJr['Feature']['getGeometrySizeByBatchId']; + aJr['Feature']['OffsetFeature'] = aJr['Feature']['offset']; + aJr['Feature']['OffsetFeatureBatchId'] = aJr[dol(0x960)]['offsetBatchId']; + aJr['Feature']['clearRotateFeature'] = aJr['Feature']['clearRotate']; + aJr['Feature']['RotateFeature'] = aJr['Feature']['rotate']; + aJr['Feature']['RotateFeatureList'] = aJr['Feature']['rotate']; + aJr['Feature']['SetActorAutoRotate'] = aJr['Feature']['autoRotate']; + aJr['Feature']['RotateFeatureAboutAnyAxis'] = aJr['Feature']['rotateByAnyAxis']; + aJr['Feature']['ClearOffsetFeature'] = aJr[dol(0x961)]['clearOffset']; + aJr[dol(0x962)]['ClearFeatureGeometry'] = aJr['Feature']['clearGeometrySize']; + aJr['Feature'][dol(0x963)] = aJr['Feature']['clipFeatures']; + aJr['Feature']['SetSlicingFeaturesDistance'] = aJr['Feature']['setClipDistance']; + aJr['Feature']['SlicingFeaturesCancle'] = aJr[dol(0x964)]['cancelClipFeatures']; + aJr['Feature']['getFeatures'] = aJr['Feature'][dol(0x965)]; + aJr[dol(0x966)][dol(0x967)] = aJr['Model']['modelsBlow']; + aJr['Feature']['SetModelBlow'] = function(aJs, aJt) { + return aJr['Model']['modelsBlow'](aJt, aJs); + } + ; + aJr[dol(0x968)]['GetTrianglesVertexNew'] = aJr['Feature']['getVertex']; + aJr['Effect'] = {}; + aJr['Effect']['GetParticleSystemDefaultConfig'] = aJr['ParticleSystem']['getDefaultConfig']; + aJr['Effect']['AddParticleSystem'] = aJr['ParticleSystem'][dol(0x969)]; + aJr['Effect'][dol(0x96a)] = aJr['ParticleSystem']['update']; + aJr[dol(0x96b)]['RemoveParticleSystem'] = aJr['ParticleSystem']['remove']; + aJr['Effect']['CleanAllParticleSystem'] = aJr['ParticleSystem']['removeAll']; + aJr['Public']['Event'] = aJr['Public']['event']; + aJr[dol(0x96c)]['ChangeEventType'] = aJr['Public']['changeEventType']; + aJr['Public']['ResetEventType'] = aJr['Public']['resetEventType']; + aJr['Public']['ControlledDoubleSidedRendering'] = aJr['Public']['setDoubleSidedRender']; + aJr['Public']['ListeningExceptionMessage'] = aJr['Public']['listenExceptionMessage']; + aJr['Public']['DrawPolygonGrid'] = aJr['Public']['drawPolygonGrid']; + aJr['Public']['DrawGridObject'] = aJr['Public']['drawGrid']; + aJr['Public']['RemoveGrid'] = aJr['Public']['removeGrid']; + aJr['Public']['PickGridByEvent'] = aJr['Public']['pickGridByEvent']; + aJr['Public']['SetGridColorById'] = aJr['Public']['setGridColorById']; + aJr['Public']['UpdateCanvas'] = aJr['Public']['updateCanvas']; + aJr['Public']['EarthTransparent'] = aJr['Public']['surfaceTransparency']; + aJr['Public']['SetLogarithmicDepth'] = aJr['Public'][dol(0x96d)]; + aJr['Public'][dol(0x96e)] = aJr[dol(0x96f)][dol(0x970)]; + aJr['Public']['SetRenderMode'] = aJr['Public']['setRenderMode']; + aJr['Public']['GetOutLineState'] = aJr['Public']['getOutLineState']; + aJr['Public']['SetOutLineState'] = aJr['Public']['setOutLineState']; + aJr['Public']['GetIsOptimizeRendering'] = aJr['Public']['getIsOptimizeRendering']; + aJr['Public']['SetIsOptimizeRendering'] = aJr['Public']['setIsOptimizeRendering']; + aJr['Public']['SetRefreshRendering'] = aJr['Public']['setRefreshRender']; + aJr['Public']['CloseMouseAction'] = aJr['Public']['closeMouseAction']; + aJr['Public']['DrawRegion'] = aJr['Public']['drawRegion']; + aJr['Public']['SetSceneRender'] = aJr['Public']['setSceneRenderState']; + aJr['Public']['getGlobeHeight'] = aJr['Public']['getAltitude']; + aJr['Public']['DegreesToRadians'] = aJr['Public']['degreesToRadians']; + aJr['Public']['RadiansToDegrees'] = aJr['Public']['radiansToDegrees']; + aJr['Public']['SetRotationScalingPc'] = aJr['Public'][dol(0x971)]; + aJr['Public'][dol(0x972)] = aJr['Public']['setSensitivityMobile']; + aJr[dol(0x973)]['RadiansToScreen'] = aJr['Public']['radiansToScreenCoord']; + aJr['Public']['LatLonToVec'] = aJr['Public']['degreesToCartesian3']; + aJr['Public']['CartographicToCartesian'] = aJr[dol(0x974)]['radiansToCartesian3']; + aJr['Public']['CartographicToModelCartesian'] = aJr['Public']['radiansToModelCartesian3']; + aJr['Public']['VecToRadians'] = aJr['Public'][dol(0x975)]; + aJr['Public']['GetRevitPosByPos'] = aJr['Public']['convertWorldToModel']; + aJr['Public'][dol(0x976)] = aJr['Public'][dol(0x977)]; + aJr['Public']['PickupCoordinate'] = aJr['Public']['pickupCoordinate']; + aJr['Public']['GetPosByPos'] = aJr['Public']['getPos2DByPos3D']; + aJr['Public']['DrawShape'] = aJr['Public']['drawShape']; + aJr['Public']['RemoveShape'] = aJr['Public']['removeShape']; + aJr['Public']['SetShapeVisible'] = aJr['Public']['setShapeVisible']; + aJr['Public']['ZoomToShape'] = aJr['Public']['zoomToShape']; + aJr['Public']['DrawPoint'] = aJr[dol(0x978)]['drawPoint']; + aJr['Public']['RemovePoint'] = aJr['Public']['removePoint']; + aJr[dol(0x979)][dol(0x97a)] = aJr['Public'][dol(0x97b)]; + aJr['Public']['RemovePlane'] = aJr['Public']['removePlane']; + aJr['Public']['CreateEllipse'] = aJr[dol(0x97c)][dol(0x97d)]; + aJr['Public']['GetOutLineColor'] = aJr['Public']['getOutLineColor']; + aJr['Public']['SetOutLineColor'] = aJr['Public'][dol(0x97e)]; + aJr[dol(0x97f)]['GetPickedStatus'] = aJr['Public']['getEditState']; + aJr['Public']['SetPickedStatus'] = aJr['Public']['setEditState']; + aJr['Public'][dol(0x980)] = aJr['Public'][dol(0x981)]; + aJr['Public']['SetSceneLight'] = aJr['Public']['setSceneLight']; + aJr['Public']['OpenSunlight'] = aJr['Public']['setSunlightState']; + aJr['Public']['OpenScene'] = aJr['Public']['setGisState']; + aJr['Public']['ClearScene'] = aJr['Public']['clearScene']; + aJr['Public'][dol(0x982)] = aJr['Public']['destroyScene']; + aJr['Public']['GetSceneStatus'] = aJr['Public']['getSceneStatus']; + aJr['Public']['OpenImageryProvider'] = aJr['Public']['setImageryProviderState']; + aJr['Public']['AddImageryProvider'] = aJr['Public']['addImageryProvider']; + aJr['Public']['OpenTerrain'] = aJr['Public']['setTerrainState']; + aJr[dol(0x983)]['OpenShowBoundingVolume'] = aJr['Public']['showBoundingVolume']; + aJr['Public']['OpenColorizeTiles'] = aJr['Public'][dol(0x984)]; + aJr['Public']['OpenWireframe'] = aJr['Public']['openWireframe']; + aJr['Public']['ClearBOX23line'] = aJr['Public'][dol(0x985)]; + aJr['Public']['AxisHelper']['setOriginAndShow'] = aJr['Public']['AxisHelper']['add']; + aJr['Public']['AxisHelper']['setVisible'] = aJr['Public']['AxisHelper']['setVisible']; + aJr['Public'][dol(0x986)] = aJr['Public']['setSkyBoxState']; + aJr['Public'][dol(0x987)] = aJr[dol(0x988)]['getOrderState']; + aJr['Public'][dol(0x989)] = aJr['Public']['getAuthorizationInfo']; + aJr['Public']['GetIsOpenHDR'] = aJr[dol(0x98a)][dol(0x98b)]; + aJr['Public']['SetIsOpenHDR'] = aJr['Public']['setHDRRenderState']; + aJr['Public']['SetminimumNdotL'] = aJr['Public']['setminimumNdotL']; + aJr['Model']['ModelCenterPointRotation'] = aJr[dol(0x98c)]['setModelRotationCenter']; + aJr['Model']['GetModelCenterPointRotation'] = aJr['Public']['getModelRotationCenter']; + aJr['Public']['SetMinimumZoomDistance'] = aJr['Public']['setMinimumZoomDistance']; + aJr['Public']['SetCameraOptions'] = aJr[dol(0x98d)]['setCameraOptions']; + aJr['Public']['ShowBoundingboxFace'] = function() { + return; + } + ; + aJr['Other']['DrawDroundLines'] = aJr['Other']['drawGroundLines']; + aJr['Other']['RemoveDroundLines'] = aJr['Other']['removeGroundLines']; + aJr['Other']['GetDroundLines'] = aJr['Other']['getGroundLines']; + aJr['Other']['NewInspectionTrack'] = aJr['Other']['addInspectionTrack']; + aJr['Other']['UndoInspectionTrack'] = aJr['Other']['undoInspectionTrack']; + aJr['Other']['GetInspectionTrack'] = aJr[dol(0x98e)][dol(0x98f)]; + aJr['Other']['SuspendInspectionTrack'] = aJr['Other']['pauseInspectionTrack']; + aJr['Other']['LoadInspectionTrack'] = aJr['Other'][dol(0x990)]; + aJr['Other']['DeleteInspectionTrack'] = aJr['Other']['removeInspectionTrack']; + aJr['Other']['SetCenterOfRotation'] = aJr['Other']['setCenterOfRotation']; + aJr['Other']['isShowOperationCenterPoint'] = aJr['Other']['setOperationCenterPointState']; + aJr['Other']['addOperationCenterPoint'] = aJr['Other']['addOperationCenterPoint']; + aJr['Other']['removeOperationCenterPoint'] = aJr['Other']['removeOperationCenterPoint']; + aJr['Other'][dol(0x991)] = aJr['Other']['addTrapezium']; + aJr['Lights']['OpenUnrealBloom'] = aJr['Lights']['addUnrealBloom']; + aJr['Lights']['destroyUnrealBloom'] = aJr['Lights']['removeUnrealBloom']; + aJr[dol(0x992)]['OpenModelBloom'] = aJr['Lights']['addModelBloom']; + aJr['Plugin']['InitNavCube'] = aJr['Plugin']['initNavCube']; + aJr['Plugin'][dol(0x993)] = aJr['Plugin']['initVideo']; + aJr['Plugin']['InitLightSource'] = aJr['Plugin']['initLightSource']; + aJr['Plugin'][dol(0x994)] = aJr['Plugin']['initVehicleBorneRadar']; + aJr['Plugin']['InitClippingSystem'] = aJr[dol(0x995)]['initClippingSystem']; + if (aJr['defaults']['editmode'] && aJr['Edit'] != undefined) { + aJr['Scene'] = {}; + aJr['Scene']['LoadGrid'] = aJr['Edit']['loadGrid']; + aJr[dol(0x996)]['SetScene3D'] = aJr['Edit'][dol(0x997)]; + aJr['Scene']['SetScene2D'] = aJr['Edit']['set2DView']; + aJr['Scene']['ToggledSceneViewMode'] = aJr['Edit']['togglelView']; + aJr['Scene']['SetGridStyle'] = aJr['Edit']['setGridStyle']; + aJr['Scene']['SetGridAttract'] = aJr['Edit']['setGridAttractState']; + aJr['Scene']['SetModelAttract'] = aJr['Edit']['setModelAttractState']; + aJr['Scene'][dol(0x998)] = aJr[dol(0x999)]['setRangingState']; + aJr[dol(0x99a)]['Save'] = aJr['Edit']['save']; + aJr['Scene'][dol(0x99b)] = aJr['Edit']['save']; + aJr['Scene']['LoadByJson'] = aJr['Edit'][dol(0x99c)]; + aJr['Scene']['Undo'] = aJr['Edit']['undo']; + aJr['Scene']['Redo'] = aJr['Edit']['redo']; + aJr['Scene']['RequestRender'] = function() { + aJr['Public']['setSceneRenderState'](![]); + aJr['Public']['setSceneRenderState'](!![]); + } + ; + aJr['Scene']['CheckExistsByID'] = aJr['Edit']['exists']; + aJr['Scene']['LocationByID'] = aJr['Edit']['location']; + aJr['Scene']['SetEditMode'] = aJr[dol(0x99d)][dol(0x99e)]; + aJr['Entity']['DrawLine'] = aJr['Entity']['drawLine']; + aJr['Entity']['DrawCircle'] = aJr[dol(0x99f)]['drawCircle']; + aJr['Entity']['DrawRectangle'] = aJr['Entity']['drawRectangle']; + aJr['Entity']['DrawPolygon'] = aJr['Entity']['drawPolygon']; + aJr['Entity']['DrawPipeLine'] = aJr['Entity']['drawPipeLine']; + aJr['Entity']['DrawImage'] = aJr['Entity'][dol(0x9a0)]; + aJr['Entity']['DrawCyline'] = aJr['Entity']['drawCylinder']; + aJr['Entity']['DrawTexture'] = aJr[dol(0x9a1)]['drawTexture']; + aJr['Entity']['DrawFlow'] = aJr['Entity']['setFlowForPipeLine']; + aJr['Entity']['GetEntityByEvent'] = aJr['Entity']['getByEvent']; + aJr['Entity']['RemoveEntity'] = aJr['Entity']['remove']; + aJr['Entity']['DrawUpdate'] = aJr['Entity']['update']; + aJr['Entity'][dol(0x9a2)] = aJr['Entity']['setGlowForPolyLine']; + aJr['Entity'][dol(0x9a3)] = aJr['Entity'][dol(0x9a4)]; + aJr['Model']['AddModelPart'] = aJr['Model']['edit']; + aJr['Model']['CopyModel'] = aJr['Model']['copy']; + aJr['Model']['SetModelRotate'] = aJr['Model'][dol(0x9a5)]; + aJr['Model']['SetModelScale'] = aJr['Model']['scale']; + aJr['Model'][dol(0x9a6)] = function(aJu, aJv, aJw, aJx) { + return aJr['Model'][dol(0x9a7)](aJv, aJw, aJx, aJu); + } + ; + aJr['Model']['Alignment'] = aJr[dol(0x9a8)]['alignment']; + aJr['Model'][dol(0x9a9)] = function(aJy, aJz, aJA) { + aJr['Model']['merge'](aJy, !![], aJz, aJA); + } + ; + aJr['Model']['CancelMerge'] = function(aJB) { + aJr['Model']['merge'](aJB, ![]); + } + ; + aJr['Model']['OriginalModel'] = aJr['Model']['original']; + aJr[dol(0x9aa)]['SetFeatureFlickerColor'] = function(aJC, aJD) { + aJr['Feature']['flicker'](aJC, !![], aJD); + } + ; + aJr[dol(0x9ab)]['StopFeatureFlashColor'] = function(aJE) { + aJr[dol(0x9ac)]['flicker'](aJE, ![]); + } + ; + ;aJr['Public']['ClearScene'] = aJr['Public']['clearScene']; + } + } + ; + ;GLECad = function(aJF) { + if (typeof Cesium == 'u' + doo(0x414) + 'd') + throw new Error(doj(0xfe)); + if (!Cesium['defined'](aJF)) + throw new Error(doj(0xff)); + var aJG = {}; + aJF['Cad'] = aJG; + aJF['Public']['UpdateCanvas'] = aJF['Public']['updateCanvas']; + var aJH = aJF; + var aJI = {}; + aJI['_viewer'] = aJH['viewer']; + aJI['_scene'] = aJH['viewer']['scene']; + aJI['_canvas'] = aJH['viewer']['canvas']; + aJI['_camera'] = aJH['viewer']['camera']; + aR6(aJG, aJI); + aJG['eventCollection'] = {}; + aJG['CurrentLayout'] = 'M' + doo(0x415) + 'l'; + var aJJ = {}; + var aJK = undefined; + var aJL = ![]; + var aJM = 0x1; + function aJN(aJO) { + if (!b7V(aJO)) { + if (aJH['m_model']['get'](aJO['toString']()) === undefined) { + throw doj(0x100); + } + aJH['tileset'] = aJH['m_model']['get'](aJO['toString']()); + aJG['tag'] = aJO; + } + if (aJH['tileset']['isBimModel'] !== aJM) + throw doj(0x101); + return aJH['tileset']; + } + aJG['Drawing'] = { + 'load': function(aJP, aJQ, aJR) { + try { + aJR = Cesium['defaultValue'](aJR, {}); + aJR['showLayout'] = Cesium['defaultValue'](aJR['showLayout'], 'M' + doo(0x416) + 'l'); + aJG['CurrentLayout'] = aJR[dol(0x9ad)]; + aJR['OntileLoaded'] = function(aJQ, aJT) { + if (aJT['content']instanceof Cesium['Batched3DModel3DTileContent'] && aJG['clipDatas'][aJQ]) { + var aJU = aJT['content']; + if (aJG['clipDatas'] && aJG[dol(0x9ae)][aJQ] && aJU && aJU['batchTable']['featuresLength'] > 0x0 && aJU['batchTable']['_properties']) { + for (var aJV in aJG['clipDatas'][aJQ]) { + var aJW = aJU['batchTable']['_properties']['name']['indexOf'](aJV); + if (aJW == -0x1) + continue; + var aJX = aJQ + '^' + aJV; + var aJY = 'c' + doo(0x417) + '_' + aJX; + var aJZ = aJU['batchTable']['_properties']['batchId'][aJW]; + var aK0 = aJG['clipDatas'][aJQ][aJV]['clippingModelMatrix']; + if (!aK0) { + var aK1 = aJG['clipDatas'][aJQ][aJV]['clippingCenterModel']; + var aK2 = aJH['Public']['convertModelToWorld'](aK1['x'], aK1['y'], aK1['z'], aJQ); + var aK3 = Cesium[dol(0x9af)]['fromRadians'](aK2[0x0], aK2[0x1], aK2[0x2]); + var aK4 = Cesium['Transforms']['eastNorthUpToFixedFrame'](aK3); + var aK5 = Cesium['Matrix4']['inverse'](aJH['tileset']['clippingPlanesOriginMatrix'], new Cesium['Matrix4']()); + aK0 = Cesium['Matrix4']['multiply'](aK5, aK4, new Cesium['Matrix4']()); + aJG['clipDatas'][aJQ][aJV]['clippingModelMatrix'] = aK0; + } + var aK6 = aJG['clipDatas'][aJQ][aJV]['clippingPlanes']; + if (aK6) { + var aK7 = baj(aJH, aJQ, aJY, aJT, aJX, aJZ, aJG[dol(0x9b0)][aJQ][aJV]['unionClippingRegions']); + if (aK7) { + var aK8 = aJH['viewer']['scene']['_frameState']; + aK7[dol(0x9b1)] = aK0; + aK7['update'](aK8); + for (var aK9 = 0x0; aK9 < aK6['length']; aK9++) { + aK7['add'](aK6[aK9]); + } + } + } + } + } + aJH['viewer']['scene']['requestRender'](); + } + } + ; + let aKa = baA(aJP); + let aKb = aKa + ('/' + doo(0x418) + 'n'); + fetch(aKb)['then'](function(aKc) { + return aKc['json'](); + })['then'](function(aKd) { + var aKe = aKd['ViewPort']['BoundingBox']; + var aKf = [aKe['Min']['X'], aKe['Min']['Y'], aKe[dol(0x9b2)]['Z']]; + var aKg = [aKe['Max']['X'], aKe['Max']['Y'], aKe[dol(0x9b3)]['Z']]; + if (!Cesium['defined'](aJG['CadBoundingBox'])) + aJG['CadBoundingBox'] = {}; + aJG['CadBoundingBox'][aJQ] = { + 'min': aKf, + 'max': aKg + }; + if (!aJG['clipDatas']) + aJG['clipDatas'] = {}; + aJG['clipDatas'][aJQ] = b9y(aJH, aJG['tag'], aKd); + if (aKd['SpatialFilterObjHandle']) { + aJR['cadBoundingBox'] = aJG['CadBoundingBox'][aJQ]; + } + aJR['gotCadInfo'] = !![]; + aJH[dol(0x9b4)]['add'](aJP, aJQ, function(aKh) { + if (aJR[dol(0x9b5)]) { + aJR['readyFunc'](aKh); + } + }, function(aKi) { + if (Cesium['defined'](aKi)) { + if (Cesium['defined'](aKi['obj']) && aKi['obj']instanceof Cesium['Cesium3DTileset']) { + aJG['tag'] = aKi['obj']['id']; + if (aKd) { + aKi['obj']['cadInfo'] = aKd; + } + aJI['_canvas'][dol(0x9b6)](); + if (aJR[dol(0x9b7)]) { + aJR['loadedFunc'](aKi['obj']['id'], aKi['obj'], aKi); + } + aJG['onCadLoaded'](aKi['obj']['id'], aKi['obj'], aKi); + } + } + }, aJR); + }); + } catch (aKj) { + b7H('错' + doo(0x419) + ':' + aKj); + } + }, + 'getLayoutList': function(aKk) { + try { + if (b7V(aKk)) { + aKk = aJG['tag']; + } + if (!b7V(aKk)) { + aJN(aKk); + } + var aKl = []; + if (aJH['tileset']['cadInfo'] && aJH['tileset']['cadInfo']['LayOut']) { + for (var aKm in aJH['tileset']['cadInfo']['LayOut']) { + if (Object[dol(0x9b8)]['call'](aJH['tileset']['cadInfo']['LayOut'], aKm)) { + aKl['push'](aKm); + } + } + } + return aKl; + } catch (aKn) { + b7H('错' + doo(0x41a) + ':' + aKn); + } + }, + 'showLayout': function(aKo, aKp, aKq) { + try { + if (b7V(aKo)) { + aKo = aJG['tag']; + } + if (!b7V(aKo)) { + aJN(aKo); + } + var aKr = ''; + if (aJH['tileset']['cadInfo'] && aJH['tileset']['cadInfo']['LayoutHandle'] && aJH['tileset']['cadInfo'][dol(0x9b9)][aKp]) { + aKr = aJH['tileset'][dol(0x9ba)]['LayoutHandle'][aKp]['map'](function(aKs, aKt) { + return aKo + '^' + aKs; + })['join']('#'); + aJG['Entity']['showSomeEntity'](aKo, aKr); + aJG['CurrentLayout'] = aKp; + if (aNK) { + aJG['Plugin']['showAerialView'](); + } else if (!aKq) { + aJG['Drawing']['location'](aKo); + } + } else {} + } catch (aKu) { + b7H('错' + doo(0x41b) + ':' + aKu); + } + }, + 'location': function(aKv, aKw) { + try { + if (b7V(aKv)) { + aKv = aJG[dol(0x9bb)]; + } + if (!b7V(aKv)) { + aJN(aKv); + } + aKw = Cesium['defaultValue'](aKw, {}); + if (aKw['useDefaultViewport'] && aJH['tileset']['cadInfo']) { + var aKx = aJH['tileset']['cadInfo']['ViewPort']['BoundingBox']; + var aKy = [aKx['Min']['X'], aKx['Min']['Y'], aKx['Min']['Z']]; + var aKz = [aKx['Max']['X'], aKx['Max']['Y'], aKx['Max']['Z']]; + aJH['Camera']['lookAt']({ + 'type': 0x1, + 'min': aKy, + 'max': aKz, + 'heading': 0x0, + 'pitch': -0x5a + }); + return; + } + var aKA = Cesium['defaultValue'](aKw['heading'], 0x0) + , aKB = Cesium[dol(0x9bc)](aKw['pitch'], -0x5a) + , aKC = Cesium[dol(0x9bd)](aKw['range'], 0x0); + var aKD = Cesium[dol(0x9be)](aKw['duration'], 0x1); + return aJH['viewer']['flyTo'](aJH['tileset'], { + 'duration': aKD, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](aKA),Cesium[dol(0x9bf)]['toRadians'](aKB),aKC) + }); + } catch (aKE) { + b7H('错' + doo(0x41c) + ':' + aKE); + } + }, + 'offset': function(aKF, aKG, aKH, aKI) { + try { + if (b7V(aKI)) { + aKI = aJG['tag']; + } + if (!b7V(aKI)) { + aJN(aKI); + } + aJI['Model']['offset'](aKF, aKG, aKH, aKI); + } catch (aKJ) { + b7H('错' + doo(0x41d) + ':' + aKJ); + } + }, + 'clearOffset': function(aKK) { + try { + if (b7V(aKK)) { + aKK = aJG['tag']; + } + if (!b7V(aKK)) { + aJN(aKK); + } + aJI['Model']['clearOffset'](aKK); + } catch (aKL) { + b7H('错' + doo(0x41e) + ':' + aKL); + } + }, + 'rotate': function(aKM, aKN) { + try { + if (b7V(aKN)) { + aKN = aJG['tag']; + } + if (!b7V(aKN)) { + aJN(aKN); + } + aJI[dol(0x9c0)]['rotate'](aKM, aKN); + } catch (aKO) { + b7H('错' + doo(0x41f) + ':' + aKO); + } + }, + 'clearRotation': function(aKP) { + try { + if (b7V(aKP)) { + aKP = aJG[dol(0x9c1)]; + } + if (!b7V(aKP)) { + aJN(aKP); + } + aJI['Model']['clearRotation'](aKP); + } catch (aKQ) { + b7H('错' + doo(0x420) + ':' + aKQ); + } + }, + 'scale': function(aKR, aKS) { + try { + if (b7V(aKS)) { + aKS = aJG['tag']; + } + if (!b7V(aKS)) { + aJN(aKS); + } + aJI['Model'][dol(0x9c2)](aKS, aKR); + } catch (aKT) { + b7H('错' + doo(0x421) + ':' + aKT); + } + }, + 'original': function(aKU) { + try { + aJI['Model'][dol(0x9c3)](aKU); + aJG['Drawing'][dol(0x9c4)](aKU, aJG['CurrentLayout']); + } catch (aKV) { + b7H('错' + doo(0x422) + ':' + aKV); + } + }, + 'remove': function(aKW) { + try { + aJI['Model']['remove'](aKW); + if (aNK) { + aJG['Plugin'][dol(0x9c5)](); + } + } catch (aKX) { + b7H('错' + doo(0x423) + ':' + aKX); + } + }, + 'showFacade': function(aKY, aKZ, aL0, aL1, aL2, aL3, aL4, aL5, aL6) { + aJH['isCad3D'] = !![]; + if (aJH['viewer'][dol(0x9c6)]['getById']('C' + doo(0x424) + 'G')) { + aJH['viewer']['entities']['removeById']('C' + doo(0x425) + 'G'); + } + var aL7 = function(aL8, aL9, aLa) { + var aLb = Cesium['Transforms']['eastNorthUpToFixedFrame'](aL8); + var aLc = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['multiplyByScalar'](aL9, aLa, aLc); + return Cesium['Matrix4']['multiplyByPoint'](aLb, aLc, new Cesium['Cartesian3']()); + }; + var aLd = aJH['Model']['getModelsCenter'](aKY); + var aLe = aLd['center']; + var aLf = aL7(aLd[dol(0x9c7)], new Cesium['Cartesian3'](0x0,0x0,0x1), 0x1); + var aLg = { + 'tags': [aKY], + 'rotate': aKZ, + 'point1': aLe, + 'point2': aLf, + 'type': 0x1 + }; + aJH['Model']['rotateByAnyAxis'](aLg); + var aLh = aL7(aLd['center'], new Cesium['Cartesian3'](aL0[0x0],aL0[0x1],aL0[0x2]), 0x1); + var aLg = { + 'tags': [aKY], + 'rotate': aL1, + 'point1': aLe, + 'point2': aLh, + 'type': 0x1 + }; + aJH['Model']['rotateByAnyAxis'](aLg); + if (aL6) { + var aLj = height = aLd['radius'] * 0x32; + aJH['viewer']['entities']['add']({ + 'id': 'C' + doo(0x426) + 'G', + 'name': 'C' + doo(0x427) + 'G', + 'position': aLd['center'], + 'plane': { + 'plane': new Cesium['Plane'](new Cesium['Cartesian3'](aL2[0x0],aL2[0x1],aL2[0x2]),0x0), + 'dimensions': new Cesium['Cartesian2'](aLj,height), + 'material': Cesium['Color']['RED']['withAlpha'](0.01) + } + }); + } + aJH['viewer']['camera']['flyTo']({ + 'destination': aL7(aLd['center'], new Cesium['Cartesian3'](aL2[0x0],aL2[0x1],aL2[0x2]), aLd['radius'] * 0x2 * aL5), + 'orientation': { + 'heading': Cesium['Math']['toRadians'](aL3), + 'pitch': Cesium['Math']['toRadians'](aL4), + 'roll': 0x0 + }, + 'duration': 0x1 + }); + aJH[dol(0x9c8)]['scene']['requestRender'](); + } + }; + aJG['Entity'] = { + 'isEnableRevit': function(aLk) { + aJL = aLk; + }, + 'getIsEnableRevit': function() { + return aJL; + }, + 'getRevitId': function(aLl, aLm) { + try { + if (!aLl) + throw doj(0x102); + if (aLl['length'] > 0x0) { + var aLn = aJH['funcPublic']['disposeFeatureId'](aLl); + if (aLn['length'] > 0x1) { + if (!aLm) + aLm = aLn[0x0]; + aLl = aLn[0x1]; + } else + aLl = aLn[0x0]; + } + aJN(aLm); + if (aJH['tileset']['cadInfo']) { + var aLo = aJH['tileset']['cadInfo']['HandleRvite']; + if (aLo && Object['hasOwnProperty']['call'](aLo, aLl)) { + return aLo[aLl]; + } + } + } catch (aLp) { + b7H(aLp); + } + }, + 'getHandlesByRevitId': function(aLq, aLr) { + try { + aJN(aLq); + var aLs = []; + if (aJH['tileset']['cadInfo']) { + var aLt = aJH['tileset']['cadInfo']['RviteHandle']; + if (aLt && Object['hasOwnProperty']['call'](aLt, aLr)) { + return aLt[aLr]['map'](function(aLu) { + return aLq + '^' + aLu; + }); + } + } + return aLs; + } catch (aLv) { + b7H(aLv); + } + }, + 'getHandlesByBlockNames': function(aLw, aLx) { + try { + aJN(aLw); + var aLy = []; + if (Array['isArray'](aLx) && aLx['length'] > 0x0 && aJH['tileset']['cadInfo']) { + var aLz = aJH['tileset']['cadInfo']['BlockNameHandle']; + if (aLz) { + for (var aLA = 0x0; aLA < aLx['length']; aLA++) { + var aLB = aLx[aLA]; + if (Object['hasOwnProperty']['call'](aLz, aLB)) { + var aLC = aLz[aLB]['map'](function(aLD) { + return aLw + '^' + aLD; + }); + aLy = aLy['concat'](aLC); + } + } + } + } + return aLy; + } catch (aLE) { + b7H(aLE); + } + }, + 'getAllBlockNames': function(aLF) { + try { + aJN(aLF); + var aLG = []; + if (aJH['tileset'][dol(0x9c9)]) { + var aLH = aJH['tileset']['cadInfo']['BlockNameHandle']; + if (aLH) { + for (var aLI in aLH) { + if (Object[dol(0x9ca)]['call'](aLH, aLI)) { + aLG['push'](aLI); + } + } + } + } + return aLG; + } catch (aLJ) { + b7H(aLJ); + } + }, + 'boxSelect': function(aLK) { + try { + aJI['Feature']['boxSelect'](aLK); + } catch (aLL) { + b7H(aLL); + } + }, + 'cancelBoxSelect': function() { + try { + aJI['Feature']['cancelBoxSelect'](); + } catch (aLM) { + b7H(aLM); + } + }, + 'zoomTo': function(aLN, aLO, aLP) { + try { + if (!Cesium['defined'](aLP)) { + aLP = {}; + } + aJN(aLN); + var aLQ = Cesium['defaultValue'](aLP['flyRange'], 0x0); + var aLR = Cesium['defaultValue'](aLP['drawBox'], ![]); + var aLS = Cesium['defaultValue'](aLP['flyHeading'], 0x0); + var aLT = Cesium['defaultValue'](aLP['flyPitch'], -0x5a); + aJI['Feature']['zoomTo'](aLO, aLN, !![], aLP['modelAlpha'], aLP['callback'], aLS, aLT, aLQ, aLR, aLP['flyTime']); + aJI['_viewer']['scene']['requestRender'](); + } catch (aLU) { + b7H(aLU); + } + }, + 'zoomToRevit': function(aLV, aLW, aLX) { + try { + var aLY = aJG['Entity']['getHandlesByRevitId'](aLV, aLW); + aJG['Entity']['zoomTo'](aLV, aLY, aLX); + } catch (aLZ) { + b7H(aLZ); + } + }, + 'setColor': function(aM0, aM1, aM2, aM3, aM4, aM5) { + try { + aJN(aM0); + if (!Cesium[dol(0x9cb)](aM3) && !Cesium[dol(0x9cc)](aM4) && !Cesium['defined'](aM5)) { + var aM6 = aM2 instanceof Cesium['Color'] ? Cesium['Color']['clone'](aM2) : !isNaN(aM2) ? Cesium['Color']['fromCssColorString'](b7J(aM2)) : Cesium['Color'][dol(0x9cd)](aM2); + aM2 = aM6['red'] * 0xff; + aM3 = aM6['green'] * 0xff; + aM4 = aM6['blue'] * 0xff; + aM5 = aM6['alpha']; + } + aJI['Feature']['setColor'](aM1, aM2, aM3, aM4, aM5); + } catch (aM7) { + b7H(aM7); + } + }, + 'resetColor': function(aM8, aM9) { + try { + aJG['Entity']['setColor'](aM8, aM9, 0xff, 0xff, 0xff, 0x1); + } catch (aMa) { + b7H(aMa); + } + }, + 'setRevitColor': function(aMb, aMc, aMd, aMe, aMf, aMg) { + try { + var aMh = aJG['Entity'][dol(0x9ce)](aMb, aMc); + if (aMh['length'] > 0x0) { + var aMi = aMh[dol(0x9cf)]('#'); + aJG['Entity']['setColor'](aMb, aMi, aMd, aMe, aMf, aMg); + } + } catch (aMj) { + b7H(aMj); + } + }, + 'resetRevitColor': function(aMk, aMl) { + try { + aJG['Entity']['setRevitColor'](aMk, aMl, 0xff, 0xff, 0xff, 0x1); + } catch (aMm) { + b7H(aMm); + } + }, + 'setSingleColor': function(aMn, aMo, aMp, aMq, aMr, aMs) { + try { + var aMt = { + 'flyRange': 0x0, + 'modelAlpha': 0x1, + 'flyTime': 0x1, + 'drawBox': ![], + 'callback': function() {} + }; + if (!isNaN(Number(aMp, 0xa)) || typeof aMp == 's' + doo(0x428) + 'g') { + aMt['red'] = aMp; + aMt['green'] = aMq; + aMt['blue'] = aMr; + aMt['alpha'] = aMs; + } else if (Object['prototype']['toString']['call'](aMp) === '[' + doo(0x429) + ']') { + aMt = aMp; + aMt['red'] = aMt['color']; + } + aJG['Entity']['zoomTo'](aMn, aMo, aMt); + aJG['Entity']['setColor'](aMn, aMo, aMt['red'], aMt['green'], aMt['blue'], aMt['alpha']); + } catch (aMu) { + b7H(aMu); + } + }, + 'setSingleRevitColor': function(aMv, aMw, aMx, aMy, aMz, aMA) { + try { + var aMB = { + 'flyRange': 0x0, + 'modelAlpha': 0x1, + 'flyTime': 0x1, + 'drawBox': ![], + 'callback': function() {} + }; + if (!isNaN(Number(aMx, 0xa)) || typeof aMx == 's' + doo(0x42a) + 'g') { + aMB['red'] = aMx; + aMB[dol(0x9d0)] = aMy; + aMB['blue'] = aMz; + aMB[dol(0x9d1)] = aMA; + } else if (Object['prototype']['toString'][dol(0x9d2)](aMx) === '[' + doo(0x42b) + ']') { + aMB = aMx; + aMB['red'] = aMB[dol(0x9d3)]; + } + aJG['Entity']['zoomToRevit'](aMv, aMw, aMB); + aJG['Entity']['setRevitColor'](aMv, aMw, aMB['red'], aMB['green'], aMB['blue'], aMB[dol(0x9d4)]); + } catch (aMC) { + b7H(aMC); + } + }, + 'setFlashColor': function(aMD, aME, aMF, aMG, aMH) { + try { + if (!aMF || aMF['length'] < 0x2) { + console[dol(0x9d5)]('至' + doo(0x42c) + '。', aMF); + throw doj(0x103); + } + if (aME != null && aME['length'] > 0x0) { + if (Array['isArray'](aME)) { + aME = aME['join']('#'); + } + var aMI = 0x0; + var aMJ, aMK, aML, aMM; + var aMN = setInterval(function() { + if (Array['isArray'](aMF[aMI % aMF['length']])) { + aMJ = aMF[aMI % aMF['length']][0x0]; + aMK = aMF[aMI % aMF['length']][0x1]; + aML = aMF[aMI % aMF['length']][0x2]; + aMM = aMF[aMI % aMF['length']][0x3]; + } else { + aMJ = aMF[aMI % aMF['length']]; + aMK = undefined; + aML = undefined; + aMM = undefined; + } + aJG['Entity']['setColor'](aMD, aME, aMJ, aMK, aML, aMM); + aMI++; + }, 0xc8); + if (!isNaN(aMG) && aMG > 0x0) { + setTimeout(function() { + clearInterval(aMN); + delete aJJ[aMN]; + if (aMH) { + aJG['Entity']['resetColor'](aMD, aME); + } + }, aMG); + } + aJJ[aMN] = { + 'tag': aMD, + 'guids': aME + }; + return aMN; + } + } catch (aMO) { + b7H(aMO); + } + }, + 'setRevitFlashColor': function(aMP, aMQ, aMR, aMS, aMT) { + try { + var aMU = aJG['Entity']['getHandlesByRevitId'](aMP, aMQ); + return aJG['Entity']['setFlashColor'](aMP, aMU, aMR, aMS, aMT); + } catch (aMV) { + b7H(aMV); + } + }, + 'stopFlashColor': function(aMW, aMX) { + try { + if (!aJJ['hasOwnProperty'](aMW)) { + throw Error('该' + doo(0x42d) + '。'); + } + clearInterval(aMW); + if (aMX) { + var {tag, guids} = aJJ[aMW]; + aJG['Entity']['resetColor'](tag, guids); + delete aJJ[aMW]; + } + } catch (aMY) { + b7H(aMY); + } + }, + 'setAllEntityColor': function(aMZ, aN0, aN1, aN2, aN3) { + try { + aJN(aMZ); + if (!Cesium['defined'](aN1) && !Cesium['defined'](aN2) && !Cesium['defined'](aN3)) { + var aN4 = aN0 instanceof Cesium['Color'] ? Cesium['Color']['clone'](aN0) : !isNaN(aN0) ? Cesium['Color']['fromCssColorString'](b7J(aN0)) : Cesium['Color']['fromCssColorString'](aN0); + aN0 = aN4['red'] * 0xff; + aN1 = aN4['green'] * 0xff; + aN2 = aN4['blue'] * 0xff; + aN3 = aN4['alpha']; + } + aJI['Model']['setColor'](aMZ, aN0, aN1, aN2, aN3); + } catch (aN5) { + b7H(aN5); + } + }, + 'resetAllEntityColor': function(aN6) { + aJG['Drawing']['original'](aN6); + }, + 'setVisible': function(aN7, aN8, aN9, aNa) { + try { + aJI['Feature']['setVisible'](aN7, aN8, aN9, aNa); + } catch (aNb) { + b7H(aNb); + } + }, + 'setRevitVisible': function(aNc, aNd, aNe, aNf) { + try { + var aNg = aJG['Entity']['getHandlesByRevitId'](aNc, aNd); + var aNh = aNg['join']('#'); + aJG['Entity']['setVisible'](aNh, aNe, aNc, aNf); + } catch (aNi) { + b7H(aNi); + } + }, + 'setAllEntityVisible': function(aNj, aNk) { + try { + aJI['Model']['setVisible'](aNj, aNk); + } catch (aNl) { + b7H(aNl); + } + }, + 'showSomeEntity': function(aNm, aNn) { + try { + aJI['Feature'][dol(0x9d6)](aNn, aNm); + } catch (aNo) { + b7H(aNo); + } + } + }; + aJG['Camera'] = { + 'getViewport': function() { + try { + var aNp = []; + Cesium['Cartesian3'][dol(0x9d7)](aJI['_camera']['positionWC'], aNp); + var aNq = aJI['_camera'][dol(0x9d8)]; + var aNr = [aNq['longitude'], aNq['latitude'], aNq['height']]; + var aNs = aJI['_camera']['heading']; + var aNt = aJI['_camera']['pitch']; + return { + 'position': aNr, + 'positionWC': aNp, + 'heading': aNs, + 'pitch': aNt + }; + } catch (aNu) { + b7H(aNu); + } + }, + 'setViewport': function(aNv, aNw, aNx) { + try { + aNw = Number(aNw); + aNx = Number(aNx); + aJI['_camera']['setView']({ + 'destination': Cesium['Cartesian3']['fromRadians'](aNv[0x0], aNv[0x1], aNv[0x2]), + 'orientation': { + 'heading': aNw, + 'pitch': aNx, + 'roll': 0x0 + } + }); + aJI['_scene']['requestRender'](); + } catch (aNy) { + b7H(aNy); + } + }, + 'transitionsView': function(aNz) { + try { + switch (aNz) { + case 0x2: + var aNA = aJH['viewer']['scene'][dol(0x9d9)]; + aNA['frustum'] = aNA['frustum2D']; + aJH['EditViewMode'] = doh(0x5e); + aJH['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + aJH['viewer'][dol(0x9da)]['screenSpaceCameraController']['translateEventTypes'] = [Cesium['CameraEventType']['LEFT_DRAG'], Cesium['CameraEventType']['RIGHT_DRAG']]; + aJG['Drawing']['location'](aJG['tag'], { + 'duration': 0x0 + }); + break; + case 0x3: + var aNA = aJH['viewer']['scene']['camera']; + aNA['frustum'] = aNA['frustum3D']; + aJH['EditViewMode'] = doh(0x5f); + aJH[dol(0x9db)]['scene'][dol(0x9dc)]['enableTilt'] = !![]; + aJH['Public']['resetEventType'](); + aJG['Drawing'][dol(0x9dd)](aJG['tag'], { + 'duration': 0x0, + 'pitch': -0x2d + }); + break; + default: + break; + } + aJI['_scene']['requestRender'](); + } catch (aNC) { + b7H(aNC); + } + } + }; + function aND() { + return 'c' + doo(0x42e) + 'r'; + } + function aNE() { + return new Promise(function(aNF, aNG) { + aJH['viewer']['flyTo'](aJH['tileset'], { + 'duration': 0x1, + 'offset': new Cesium['HeadingPitchRange'](0x0,Cesium['Math']['toRadians'](-0x5a),0x0) + })['then'](function() { + setTimeout(function() { + var aNH = aJI['_canvas']['toDataURL']('i' + doo(0x42f) + 'g'); + aNF(aNH); + }, 0x64); + }); + } + ); + } + var aNI; + var aNJ = {}; + var aNK = ![]; + var aNL = {}; + function aNM(aNN) { + try { + var aNO = aJH['viewer']['container']['getElementsByClassName']('c' + doo(0x430) + 'r')[0x0]; + aNN = Cesium['defaultValue'](aNN, aNJ); + aNJ = aNN; + aNK = !![]; + var aNP = aNO['clientWidth']; + var aNQ = aNO['clientHeight']; + var aNR = aNP / 0x5; + var aNS = aNQ / 0x5; + aNL['mainScene'] = { + 'originalWidth': aNP, + 'originalHeight': aNQ + }; + aNL['subScene'] = { + 'originalWidth': aNR, + 'originalHeight': aNS, + 'currentlWidth': aNR, + 'currentlHeight': aNS, + 'offsetX': 0x0, + 'offsetY': 0x0 + }; + var aNT = aND(); + aNI = document['getElementById'](aNT); + if (aNI) + aNI['parentNode']['removeChild'](aNI); + aNI = document[dol(0x9de)](doh(0x60)); + aNI['id'] = aNT; + aNI['style']['position'] = 'a' + doo(0x431) + 'e'; + aNI['style']['width'] = aNR + doh(0x61); + aNI['style']['height'] = aNS + doh(0x62); + aNI[dol(0x9df)]['zIndex'] = '1' + doo(0x432) + '0'; + aNI['style'][dol(0x9e0)] = '1' + doo(0x433) + 'x'; + aNI['style']['bottom'] = '1' + doo(0x434) + 'x'; + aNO['appendChild'](aNI); + aNI['onclick'] = aO3; + var aNU = aNN['rectBlockStrokeColor'] ? aNN['rectBlockStrokeColor'] : '#' + doo(0x435) + 'e'; + var aNV = aNN['rectViewerBlockStrokeColor'] ? aNN['rectViewerBlockStrokeColor'] : '#' + doo(0x436) + '7'; + var {position, heading, pitch} = aJG['Camera']['getViewport'](); + aNE()['then'](function(aNW) { + aNL['mainScene']['originalCenter'] = new Cesium['Cartesian3'](aJI['_camera']['positionCartographic']['longitude'],aJI['_camera']['positionCartographic']['latitude'],0x0); + var aNX = aJI['_camera']['frustum']; + var aNY = aNX['width']; + var aNZ = aNX['width'] / aNX['aspectRatio']; + aNL['mainScene']['originalFrustumSize'] = new Cesium['Cartesian2'](aNY,aNZ); + aNL['mainScene']['current'] = aNL['mainScene']['originalCenter']['clone'](); + aNL['mainScene']['currentFrustumSize'] = aNL['mainScene']['originalFrustumSize']['clone'](); + aJH[dol(0x9e1)]['pickupCoordinate'](new Cesium['Cartesian2'](aNP - 0x1,aNQ - 0x1), function(aO0) { + aNL['mainScene']['maxPosition'] = new Cesium['Cartesian3'](aO0[0x0],aO0[0x1],0x0); + aNL['mainScene']['minPosition'] = new Cesium['Cartesian3'](aNL['mainScene']['originalCenter']['x'] * 0x2 - aNL['mainScene'][dol(0x9e2)]['x'],aNL[dol(0x9e3)]['originalCenter']['y'] * 0x2 - aNL['mainScene']['maxPosition']['y'],aNL['mainScene']['originalCenter']['z'] * 0x2 - aNL['mainScene']['maxPosition']['z']); + }); + var aO1 = '<' + doo(0x437) + '\x22' + aNR + ('\x22' + doo(0x438) + '\x22') + aNS + doj(0x104) + aNW + ('\x22' + doo(0x439) + '\x22') + aNR + ('\x22' + doo(0x43a) + '\x22') + aNS + doj(0x105) + aNR + ('\x22' + doo(0x43b) + '\x22') + aNS + doj(0x106) + aNU + doj(0x107) + aNT + ('-' + doo(0x43c) + '\x22') + aNL['subScene']['currentlWidth'] + ('\x22' + doo(0x43d) + '\x22') + aNL['subScene']['currentlHeight'] + doj(0x108) + aNL['subScene']['offsetX'] + ',' + aNL['subScene']['offsetY'] + doj(0x109) + aNV + (';' + doo(0x43e) + '\x20') + aNV + doj(0x10a); + aNI[dol(0x9e4)] = aO1; + aO8(); + }); + } catch (aO2) { + b7H(aO2); + } + } + ;function aO3(aO4) { + var aO5 = aNL['mainScene']['minPosition']['x'] + (aNL[dol(0x9e5)]['maxPosition']['x'] - aNL['mainScene']['minPosition']['x']) * aO4['offsetX'] / aNL['subScene']['originalWidth']; + var aO6 = aNL['mainScene']['minPosition']['y'] + (aNL['mainScene']['maxPosition']['y'] - aNL['mainScene']['minPosition']['y']) * aO4['offsetY'] / aNL['subScene']['originalHeight']; + var aO7 = aJI['_camera']['positionCartographic']['height']; + aJI['_camera']['flyTo']({ + 'destination': Cesium['Cartesian3']['fromRadians'](aO5, aO6, aO7), + 'duration': 0x1 + }); + } + function aO8() { + if (!(aJI['_camera']['frustum']instanceof Cesium['OrthographicFrustum'])) + return; + aJI['_camera']['percentageChanged'] = 0.01; + aJI[dol(0x9e6)][dol(0x9e7)]['addEventListener'](function(aO9) { + var aOa = aND(); + aNI = document['getElementById'](aOa); + if (aNI) { + var aOb = document['querySelectorAll']('#' + aOa + ('-' + doo(0x43f) + 't')); + if (aOb && aOb['length'] > 0x0) { + var aOc = aOb[0x0]; + aNL['mainScene']['current'] = new Cesium['Cartesian3'](aJI['_camera']['positionCartographic']['longitude'],aJI[dol(0x9e8)]['positionCartographic']['latitude'],0x0); + var aOd = aJI['_camera']['frustum']; + if (!(aOd instanceof Cesium['OrthographicFrustum'])) + return; + var aOe = aOd['width']; + var aOf = aOd['width'] / aOd[dol(0x9e9)]; + aNL['mainScene']['currentFrustumSize'] = new Cesium['Cartesian2'](aOe,aOf); + aNL['subScene']['currentlWidth'] = aNL['subScene']['originalWidth'] * aNL[dol(0x9ea)]['currentFrustumSize']['x'] / aNL['mainScene']['originalFrustumSize']['x']; + aNL['subScene']['currentlHeight'] = aNL['subScene']['originalHeight'] * aNL['mainScene']['currentFrustumSize']['y'] / aNL['mainScene']['originalFrustumSize']['y']; + aNL['subScene']['offsetX'] = aNL['subScene'][dol(0x9eb)] * (aNL[dol(0x9ec)]['current']['x'] - aNL['mainScene']['minPosition']['x']) / (aNL['mainScene']['maxPosition']['x'] - aNL['mainScene']['minPosition']['x']) - aNL['subScene']['currentlWidth'] * 0.5; + aNL['subScene']['offsetY'] = aNL['subScene']['originalHeight'] * (aNL['mainScene'][dol(0x9ed)]['y'] - aNL['mainScene']['minPosition']['y']) / (aNL['mainScene']['maxPosition']['x'] - aNL['mainScene']['minPosition']['x']) + aNL['subScene'][dol(0x9ee)] * 0.5; + if (!Cesium['defined'](aNL['subScene']['offsetXError'])) { + aNL['subScene']['offsetXError'] = aNL['subScene']['offsetX']; + } + if (!Cesium['defined'](aNL['subScene']['offsetYError'])) { + aNL['subScene']['offsetYError'] = aNL[dol(0x9ef)]['offsetY']; + } + aNL['subScene']['offsetX'] += aNL['subScene']['offsetXError']; + aNL['subScene']['offsetY'] -= aNL['subScene']['offsetYError']; + aOc['setAttribute']('w' + doo(0x440) + 'h', aNL['subScene']['currentlWidth']); + aOc['setAttribute']('h' + doo(0x441) + 't', aNL['subScene'][dol(0x9f0)]); + aOc['setAttribute']('t' + doo(0x442) + 'm', 't' + doo(0x443) + '(' + aNL['subScene']['offsetX'] + ',' + -aNL['subScene']['offsetY'] + ')'); + } + } + }); + } + function aOg() { + try { + var aOh = aND(); + aNI = document['getElementById'](aOh); + if (aNI) + aNI['parentNode']['removeChild'](aNI); + aNK = ![]; + } catch (aOi) { + b7H(aOi); + } + } + aJG[dol(0x9f1)] = { + 'showAerialView': aNM, + 'closeAerialView': aOg, + 'initLabelingSystem': function(aOj) { + if (!aJH['LabelingSystem']) { + aJH['LabelingSystem'] = new GLELabelingSystem(aJH,aOj); + } else { + aJH['LabelingSystem']['updateConfigures'](aOj); + } + return aJH['LabelingSystem']; + } + }; + var aOk = 'c' + doo(0x444) + 'n'; + var aOl; + aJG[dol(0x9f2)] = { + 'addLabel': function(aOm, aOn, aOo) { + try { + if (!Cesium[dol(0x9f3)](aOl)) { + aOl = new Cesium['CustomDataSource'](aOk); + aJH['viewer']['dataSources']['add'](aOl); + } + if (!Cesium['defined'](aOm)) + throw new Error(doj(0x10b)); + if (!Cesium['defined'](aOn)) + throw new Error(doj(0x10c)); + aOo = Cesium['defaultValue'](aOo, {}); + var aOp, aOq, aOr; + if (Cesium['defined'](aOo['color'])) { + aOp = aOo['color']instanceof Cesium['Color'] ? Cesium['Color']['clone'](aOo['color']) : !isNaN(aOo['color']) ? Cesium['Color']['fromCssColorString'](b7J(aOo['color'])) : Cesium['Color']['fromCssColorString'](aOo['color']); + } else { + aOp = Cesium['Color']['fromCssColorString']('#' + doo(0x445) + '3'); + } + if (Cesium[dol(0x9f4)](aOo[dol(0x9f5)])) { + aOq = aOo['outlineColor']instanceof Cesium['Color'] ? Cesium['Color']['clone'](aOo['outlineColor']) : !isNaN(aOo['outlineColor']) ? Cesium['Color']['fromCssColorString'](b7J(aOo['outlineColor'])) : Cesium['Color']['fromCssColorString'](aOo['outlineColor']); + } else { + aOq = Cesium['Color']['fromCssColorString']('#' + doo(0x446) + '7'); + } + if (Cesium['defined'](aOo['backgroundColor'])) { + aOr = aOo['backgroundColor']instanceof Cesium['Color'] ? Cesium['Color']['clone'](aOo['backgroundColor']) : !isNaN(aOo['backgroundColor']) ? Cesium['Color']['fromCssColorString'](b7J(aOo['backgroundColor'])) : Cesium['Color']['fromCssColorString'](aOo['backgroundColor']); + } else { + aOr = Cesium['Color'][dol(0x9f6)]('#' + doo(0x447) + '4'); + } + var aOs = Cesium['defaultValue'](aOo['pointPixelSize'], 0x4); + var aOt = Cesium['defaultValue'](aOo['pointOutlineWidth'], 0x2); + var aOu = Cesium['defaultValue'](aOo['showBackground'], ![]); + var aOv = Cesium[dol(0x9f7)](aOo['showPoint'], !![]); + var aOw = Cesium['defaultValue'](aOo['labelOutlineWidth'], 0x0); + var aOx = Cesium['defaultValue'](aOo['scale'], 0.7); + var aOy = Cesium['defaultValue'](aOo['pixelOffset'], [0x0, -0x5]); + var aOz = Cesium[dol(0x9f8)]['unpack'](aOy); + var aOA = aOl['entities']['add']({ + 'id': aOm, + 'position': Cesium['Cartesian3']['fromRadians'](aOn[0x0], aOn[0x1], aOn[0x2]), + 'point': { + 'color': aOp, + 'pixelSize': aOs, + 'outlineColor': aOq, + 'outlineWidth': aOt, + 'show': aOv, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + }, + 'label': { + 'text': aOo['text'], + 'fillColor': aOp, + 'backgroundColor': aOr, + 'showBackground': aOu, + 'outlineColor': aOq, + 'outlineWidth': aOw, + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'scale': aOx, + 'horizontalOrigin': Cesium['HorizontalOrigin']['LEFT'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': aOz, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aJI['_scene']['requestRender'](); + return aOA; + } catch (aOB) { + b7H(aOB); + } + }, + 'removeLabel': function(aOC) { + try { + if (Cesium['defined'](aOl)) { + aOl['entities']['removeById'](aOC); + } + aJI['_scene']['requestRender'](); + } catch (aOD) { + b7H(aOD); + } + }, + 'getLabel': function(aOE) { + try { + if (Cesium['defined'](aOl)) { + return aOl['entities']['getById'](aOE); + } + } catch (aOF) { + b7H(aOF); + } + }, + 'removeAllLabel': function() { + try { + if (Cesium['defined'](aOl)) { + aOl['entities']['removeAll'](); + } + aJI['_scene']['requestRender'](); + } catch (aOG) { + b7H(aOG); + } + }, + 'setLabelVisible': function(aOH, aOI) { + try { + var aOJ = aJG['Label']['getLabel'](aOH); + aOI = Cesium['defined'](aOI) && (aOI === !![] || aOI === ![]) ? aOI : ![]; + if (Cesium['defined'](aOJ)) { + aOJ['show'] = aOI; + } + aJI['_scene'][dol(0x9f9)](); + } catch (aOK) { + b7H(aOK); + } + }, + 'pickupLableByClick': function(aOL, aOM) { + try { + if (aOL) { + if (!Cesium['defined'](aJG['eventCollection']['handler_pickupLableByClick'])) { + aJG['eventCollection']['handler_pickupLableByClick'] = new Cesium[(dol(0x9fa))](aJI['_scene']); + aJG['eventCollection']['handler_pickupLableByClick']['setInputAction'](function(aON) { + aJI['Label']['getLableByEvent'](aON['position'], function(aOO) { + if (Cesium['defined'](aOO) && Cesium['defined'](aOO['id']) && Cesium['defined'](aOM)) { + aOM(aOO['id']['id'], aOO); + } + }); + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + } + } else { + if (Cesium['defined'](aJG['eventCollection']['handler_pickupLableByClick'])) { + aJG['eventCollection'][dol(0x9fb)]['destroy'](); + aJG['eventCollection'][dol(0x9fc)] = null; + } + } + } catch (aOP) { + b7H(aOP); + } + } + }; + aJG['Layer'] = { + 'getLayerList': function(aOQ) { + try { + aJN(aOQ); + var aOR = []; + if (aJH['tileset']['cadInfo']) { + var aOS = aJH[dol(0x9fd)]['cadInfo']['LayerOut']['Model']['layer']; + if (aOS) { + for (var aOT in aOS) { + if (Object['hasOwnProperty']['call'](aOS, aOT)) { + aOR['push'](aOT); + } + } + } + } + return aOR; + } catch (aOU) { + b7H(aOU); + } + }, + 'setLayerVisible': function(aOV, aOW, aOX) { + try { + aJN(aOV); + aOW = Cesium['defaultValue'](aOW, []); + if (aJH['tileset']['cadInfo']) { + var aOY = aJH['tileset']['cadInfo']['LayerOut'][dol(0x9fe)][dol(0x9ff)]; + if (aOY && aOW['length'] > 0x0) { + for (var aOZ = 0x0; aOZ < aOW['length']; aOZ++) { + var aP0 = aOW[aOZ]; + if (Object['hasOwnProperty']['call'](aOY, aP0)) { + var aP1 = aOY[aP0]; + var aP2 = aP1[dol(0xa00)]; + var aP3 = aP2['map'](function(aP4) { + return aOV + '^' + aP4; + })['join']('#'); + aJI['Feature']['setVisible'](aP3, aOX, aOV); + } + } + } + } + } catch (aP5) { + b7H(aP5); + } + } + }; + aJG['Scene'] = { + 'setBackGroundColor': function(aP6, aP7, aP8, aP9) { + try { + var aPa; + if (Cesium['defined'](aP6) && Cesium['defined'](aP7) && Cesium['defined'](aP8) && Cesium[dol(0xa01)](aP9)) { + aPa = new Cesium['Color'](aP6 / 0xff,aP7 / 0xff,aP8 / 0xff,aP9 / 0xff); + } else if (Cesium[dol(0xa02)](aP6) && !Cesium['defined'](aP7) && !Cesium['defined'](aP8) && !Cesium[dol(0xa03)](aP9)) { + aPa = aP6 instanceof Cesium['Color'] ? Cesium['Color']['clone'](aP6) : !isNaN(aP6) ? Cesium['Color']['fromCssColorString'](b7J(aP6)) : Cesium['Color']['fromCssColorString'](aP6); + } else { + return; + } + aJI['_scene']['skyBox']['show'] = ![]; + aJI[dol(0xa04)]['backgroundColor'] = aPa; + aJI['_scene']['sun']['show'] = ![]; + aJI['_scene']['moon']['show'] = ![]; + aJI['_scene']['requestRender'](); + } catch (aPb) { + b7H(aPb); + } + }, + 'getImageBase64': function(aPc) { + try { + aJI['Camera'][dol(0xa05)](aPc); + } catch (aPd) { + b7H(aPd); + } + }, + 'getImage': function(aPe) { + try { + function aPf(aPg) { + var aPh = aPg['split'](',') + , aPi = aPh[0x0]['match'](/:(.*?);/)[0x1] + , aPj = atob(aPh[0x1]) + , aPk = aPj['length'] + , aPl = new Uint8Array(aPk); + while (aPk--) { + aPl[aPk] = aPj['charCodeAt'](aPk); + } + return new Blob([aPl],{ + 'type': aPi + }); + } + function aPm(aPn, aPo) { + var aPp = new Image(); + aPp['setAttribute']('c' + doo(0x448) + 'n', 'A' + doo(0x449) + 's'); + aPp['onload'] = function() { + var aPq = aPf(aPn); + var aPr = { + 'name': aPo, + 'src': aPq + }; + if (window['navigator']['msSaveOrOpenBlob']) { + navigator[dol(0xa06)](aPr['src'], aPr['name']); + } else { + var aPs = document['createElement']('a'); + aPs['setAttribute']('h' + doo(0x44a) + 'f', window[dol(0xa07)]['createObjectURL'](aPr['src'])); + aPs['setAttribute']('d' + doo(0x44b) + 'd', aPr['name']); + document['body']['appendChild'](aPs); + aPs['click'](); + } + } + ; + aPp[dol(0xa08)] = aPn; + } + aJG['Scene']['getImageBase64'](function(aPt) { + aPm(aPt, Cesium['defaultValue'](aPe, 'd' + doo(0x44c) + 'g')); + }); + } catch (aPu) { + b7H(aPu); + } + }, + 'setSceneRenderState': function(aPv) { + try { + aJH['Public']['setSceneRenderState'](aPv); + } catch (aPw) { + b7H(aPw); + } + }, + 'clearScene': function() { + try { + aJG['closeAerialView'](); + aJH['Public']['clearScene'](); + } catch (aPx) { + b7H(aPx); + } + } + }; + aJG['onCadLoaded'] = function(aPy) {} + ; + aJG['onClickPosition'] = function(aPz) {} + ; + aJG['onSelectionChanged'] = function(aPA, aPB) {} + ; + aJG['onSelectionRevitId'] = function(aPC) {} + ; + aJG['onMeasureResult'] = function(aPD) {} + ; + aJG['Measure'] = { + 'setMeasureMode': function(aPE) { + if (!aPE || aPE['length'] == 0x0) { + return; + } + if (aPE) { + aJK = aPE['toLowerCase'](); + } + }, + 'clearMeasureResultViewer': function() { + try { + aJI['Measurement']['clearAllTrace'](); + } catch (aPF) { + b7H(aPF); + } + }, + 'exit': function() { + try { + aJI['Measurement']['exit'](); + } catch (aPG) { + b7H(aPG); + } + } + }; + aJG['Event'] = { + 'setOnClickPositionListener': function(aPH, aPI) { + try { + aJH[dol(0xa09)]['event']('L' + doo(0x44d) + 'K', function(aPJ) { + aJH['Public']['pickupCoordinate'](aPJ['position'], function(aPK) { + if (Cesium['defined'](aPH)) { + aPH(aPK); + } else { + aJG['onClickPosition'](aPK); + } + }); + }); + } catch (aPL) { + b7H(aPL); + } + }, + 'setOnSelectEntityListener': function(aPM) { + try { + aJG['Measure'][dol(0xa0a)](); + aJH['Public']['event']('L' + doo(0x44e) + 'K', function(aPN) { + aJI[dol(0xa0b)]['getByEvent'](aPN['position'], function(aPO) { + if (aPO != undefined && aPO['id']['indexOf']('C' + doo(0x44f) + 'G') == -0x1) { + var aPP = aPO[dol(0xa0c)]; + var aPQ; + var aPR; + if (aPP['length'] > 0x0) { + var aPS = aJH['funcPublic']['disposeFeatureId'](aPP); + if (aPS['length'] > 0x1) { + if (!aPQ) + aPQ = aPS[0x0]; + aPR = aPS[0x1]; + } + } + var aPT = aJG['Entity'][dol(0xa0d)](aPP); + if (Cesium['defined'](aPT)) { + aJI['Feature']['clearSelectColor'](); + } + if (aJL && Cesium['defined'](aPT)) { + var aPU = aJG['Entity']['getHandlesByRevitId'](aPQ, aPT); + var aPV = aJH['defaults']['selectedcolor']instanceof Cesium['Color'] ? aJH['defaults'][dol(0xa0e)]['toCssColorString']() : Cesium['Color']['fromCssColorString'](aJH['defaults']['selectedcolor'])['toCssColorString'](); + var aPW = aJH['modelStyleMap']['get'](aPQ['toString']()); + for (var aPX = 0x0; aPX < aPU[dol(0xa0f)]; aPX++) { + var aPY = aPU[aPX]; + var aPZ; + var aQ0; + if (aPY['length'] > 0x0) { + var aPS = aJH['funcPublic']['disposeFeatureId'](aPY); + if (aPS[dol(0xa10)] > 0x1) { + aPZ = aPS[0x0]; + aQ0 = aPS[0x1]; + } + } + var aQ2 = { + 'featureId': aQ0, + 'color': aPV, + 'original': 'r' + doo(0x450) + ')' + }; + if (!aPW['has'](aQ0)) { + aPW['set'](aQ0, aQ2); + } else { + var aQ3 = aPW['get'](aQ0); + aQ3['original'] = Cesium['clone'](aQ3['color']); + aQ3['color'] = Cesium['clone'](aQ2['color']); + } + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], aPW); + } + aPP = aPU['join']('#'); + } + if (Cesium['defined'](aPM)) { + aPM(aPP, aPT); + } else { + aJG['onSelectionChanged'](aPP, aPT); + } + } + }); + }); + } catch (aQ4) { + b7H(aQ4); + } + }, + 'setOnSelectRevitListener': function(aQ5) { + try { + aJG['Measure']['setMeasureMode'](); + aJH['Public']['event']('L' + doo(0x451) + 'K', function(aQ6) { + aJI['Feature']['getByEvent'](aQ6['position'], function(aQ7) { + if (aQ7 != undefined) { + var aQ8 = aQ7['id']; + var aQ9; + if (aQ8[dol(0xa11)] > 0x0) { + var aQa = aJH['funcPublic']['disposeFeatureId'](aQ8); + if (aQa['length'] > 0x1) { + if (!aQ9) + aQ9 = aQa[0x0]; + } + } + var aQb = aJG['Entity']['getRevitId'](aQ8); + if (aJL && Cesium['defined'](aQb)) { + aJI['Feature']['clearSelectColor'](); + var aQc = aJG['Entity']['getHandlesByRevitId'](aQ9, aQb); + var aQd = aJH['defaults']['selectedcolor']instanceof Cesium['Color'] ? aJH['defaults']['selectedcolor']['toCssColorString']() : Cesium['Color']['fromCssColorString'](aJH['defaults']['selectedcolor'])['toCssColorString'](); + var aQe = aJH['modelStyleMap']['get'](aQ9['toString']()); + for (var aQf = 0x0; aQf < aQc['length']; aQf++) { + var aQg = aQc[aQf]; + var aQh; + var aQi; + if (aQg['length'] > 0x0) { + var aQa = aJH['funcPublic']['disposeFeatureId'](aQg); + if (aQa['length'] > 0x1) { + aQh = aQa[0x0]; + aQi = aQa[0x1]; + } + } + var aQk = { + 'featureId': aQi, + 'color': aQd, + 'original': 'r' + doo(0x452) + ')' + }; + if (!aQe['has'](aQi)) { + aQe['set'](aQi, aQk); + } else { + var aQl = aQe['get'](aQi); + aQl['original'] = Cesium['clone'](aQl['color']); + aQl['color'] = Cesium['clone'](aQk['color']); + } + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], aQe); + } + aQ8 = aQc['join']('#'); + } + if (Cesium['defined'](aQ5)) { + aQ5(aQb); + } else { + aJG['onSelectionRevitId'](aQb); + } + } + }); + }); + } catch (aQm) { + b7H(aQm); + } + }, + 'setOnMeasureResultListener': function(aQn) { + try { + if (!Cesium['defined'](aJK)) + return; + switch (aJK) { + case 'd' + doo(0x453) + 'e': + aJI['Measurement']['distance'](function(aQo) { + if (aQo != undefined) { + var aQp = { + 'xDistance': aQo['X'], + 'yDistance': aQo['Y'], + 'zDistance': aQo['Z'], + 'distance': aQo['dis'], + 'points': aQo['points'], + 'MeasureMode': aJK + }; + if (Cesium[dol(0xa12)](aQn)) { + aQn(aQp); + } else { + aJG[dol(0xa13)](aQp); + } + } + }, !![], !![]); + break; + case 'a' + doo(0x454) + 's': + aJI['Measurement']['angle'](function(aQq) { + if (aQq != undefined) { + var aQr = { + 'radian': Cesium['Math'][dol(0xa14)](aQq['angle']), + 'angles': aQq['angle'], + 'points': aQq['points'], + 'MeasureMode': aJK + }; + if (Cesium['defined'](aQn)) { + aQn(aQr); + } else { + aJG['onMeasureResult'](aQr); + } + } + }, !![], !![]); + break; + case 'a' + doo(0x455) + 'a': + aJI[dol(0xa15)]['area'](function(aQs) { + if (aQs != undefined) { + var aQt = { + 'area': aQs['area'], + 'points': aQs['points'], + 'MeasureMode': aJK + }; + if (Cesium['defined'](aQn)) { + aQn(aQt); + } else { + aJG['onMeasureResult'](aQt); + } + } + }, !![], !![]); + break; + default: + aJH['Public']['clearHandler']('L' + doo(0x456) + 'K'); + break; + } + } catch (aQu) { + b7H(aQu); + } + }, + 'setClickMode': function(aQv) { + try { + switch (aQv) { + case 0x1: + aJG['Event']['setOnClickPositionListener'](); + break; + case 0x2: + aJG['Event']['setOnSelectEntityListener'](); + break; + case 0x3: + aJH['Public']['event']('L' + doo(0x457) + 'K', function(aQw) { + aJG['Measure']['setMeasureMode'](); + aJI[dol(0xa16)]['getByEvent'](aQw['position'], function(aQx) { + if (aQx != undefined) { + aJH['Public']['pickupCoordinate'](aQw['position'], function(aQy) { + aJG['onClickPosition'](aQy); + }); + var aQz = aQx[dol(0xa17)]; + var aQA; + if (aQz['length'] > 0x0) { + var aQB = aJH['funcPublic']['disposeFeatureId'](aQz); + if (aQB['length'] > 0x1) { + if (!aQA) + aQA = aQB[0x0]; + } + } + var aQC = aJG['Entity']['getRevitId'](aQz); + if (aJL && Cesium['defined'](aQC)) { + aJI['Feature']['clearSelectColor'](); + var aQD = aJG['Entity']['getHandlesByRevitId'](aQA, aQC); + var aQE = aJH['defaults']['selectedcolor']instanceof Cesium['Color'] ? aJH['defaults']['selectedcolor']['toCssColorString']() : Cesium['Color']['fromCssColorString'](aJH['defaults']['selectedcolor'])['toCssColorString'](); + var aQF = aJH['modelStyleMap']['get'](aQA['toString']()); + for (var aQG = 0x0; aQG < aQD['length']; aQG++) { + var aQH = aQD[aQG]; + var aQI; + var aQJ; + if (aQH['length'] > 0x0) { + var aQB = aJH['funcPublic']['disposeFeatureId'](aQH); + if (aQB['length'] > 0x1) { + aQI = aQB[0x0]; + aQJ = aQB[0x1]; + } + } + var aQL = { + 'featureId': aQJ, + 'color': aQE, + 'original': 'r' + doo(0x458) + ')' + }; + if (!aQF['has'](aQJ)) { + aQF['set'](aQJ, aQL); + } else { + var aQM = aQF['get'](aQJ); + aQM['original'] = Cesium['clone'](aQM['color']); + aQM['color'] = Cesium['clone'](aQL['color']); + } + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], aQF); + } + aQz = aQD['join']('#'); + } + aJG['onSelectionChanged'](aQz, aQC); + } + }); + }); + break; + case 0x4: + aJG['Event']['setOnMeasureResultListener'](); + break; + case 0x5: + aJG['Event']['setOnSelectRevitListener'](); + break; + case 0x0: + aJH['Public']['clearHandler'](); + break; + case 0x6: + default: + break; + } + ; + } catch (aQN) { + b7H(aQN); + } + } + }; + aJG['Other'] = { + 'getVersion': function() { + if (!Cesium['defined'](ENGINEVERSION)) { + console[dol(0xa18)](doj(0x10d)); + return; + } + return ENGINEVERSION; + }, + 'isShowFPSStats': function(aQO) { + aJI['_scene']['debugShowFramesPerSecond'] = aQO; + }, + 'setZoomSpeed': function(aQP) { + if (!Cesium['defined'](aQP)) + return; + aJI['Camera']['setCameraOptions']({ + 'enableZoom': !![], + 'maximumZoomDistance': Cesium['defaultValue'](aQP['maxDistance'], Number['POSITIVE_INFINITY']), + 'minimumZoomDistance': Cesium['defaultValue'](aQP['minDistance'], 0.001), + '_minimumZoomRate': Cesium['defaultValue'](aQP['minZoomRate'], 0.001) + }); + }, + 'setPanSpeed': function(aQQ) { + aJI['Camera']['setCameraOptions']({ + 'enableTranslate': !![], + 'maximumMovementRatio': Cesium['defaultValue'](aQQ, 0.1) + }); + }, + 'isShowRenderLoopErrors': function(aQR) { + aJI['_viewer']['_cesiumWidget']['_showRenderLoopErrors'] = aQR; + }, + 'show3rdRoamPoint': function(aQS, aQT, aQU, aQV, aQW, aQX) { + if (!Cesium['defined'](aQS)) { + return; + } + aR1['point3rdRoam'] = { + 'positions': aQS, + 'axisType': aQT, + 'rotation': aQU, + 'image': aQV, + 'color': aQW, + 'size': aQX, + 'position': new Cesium['Cartesian3']() + }; + if (aQT == 0x1) { + if (Array['isArray'](aQS) && aQS['length'] == 0x3) { + aR1['point3rdRoam']['position'] = Cesium['Cartesian3']['fromRadiansArrayHeights'](aQS)[0x0]; + } else if (aQS instanceof Cesium['Cartesian3']) { + aQS['clone'](aR1['point3rdRoam'][dol(0xa19)]); + } + } else if (aQT == 0x2) { + if (Array['isArray'](aQS) && aQS['length'] == 0x3) { + aR1[dol(0xa1a)]['position'] = Cesium[dol(0xa1b)]['fromArray'](aQS); + } else if (aQS instanceof Cesium['Cartesian3']) { + aQS['clone'](aR1['point3rdRoam']['position']); + } + } else { + throw doj(0x10e); + } + if (!Cesium['defined'](aR1['point3rdRoam']['billboard'])) { + aR1['point3rdRoam']['billboard'] = aJH['viewer']['entities']['add']({ + 'position': new Cesium['CallbackProperty'](function() { + return aR1['point3rdRoam']['position']; + } + ,![]), + 'billboard': { + 'image': new Cesium['CallbackProperty'](function() { + return aR1['point3rdRoam']['image']; + } + ,![]), + 'show': !![], + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium[dol(0xa1c)]['CENTER'], + 'scale': 0x1, + 'color': new Cesium['CallbackProperty'](function() { + return Cesium['Color']['fromCssColorString'](aR1['point3rdRoam']['color']); + } + ,![]), + 'rotation': new Cesium['CallbackProperty'](function() { + return aR1['point3rdRoam']['rotation']; + } + ,![]), + 'alignedAxis': Cesium['Cartesian3']['UNIT_Z'], + 'width': new Cesium['CallbackProperty'](function() { + return aR1['point3rdRoam']['size']; + } + ,![]), + 'height': new Cesium['CallbackProperty'](function() { + return aR1['point3rdRoam']['size']; + } + ,![]), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + } + }, + 'remove3rdRoamPoint': function() { + if (Cesium['defined'](aR1['point3rdRoam']['billboard'])) { + aJH['viewer']['entities']['remove'](aR1['point3rdRoam']['billboard']); + } + aR1['point3rdRoam'] = undefined; + } + }; + aJG['zoomToPosition'] = function name(aQY, aQZ, aR0) { + aJI['Camera']['flyToPosition'](aQY, 0x0, -0x5a, aQZ, aR0); + } + ; + let aR1 = aJG; + aR1['Load'] = aJG['Drawing']['load']; + aR1['GetVersion'] = aJG['getVersion'] = aJG['Other'][dol(0xa1d)]; + ;aR1['Panorama'] = aJG[dol(0xa1e)]['location']; + aR1[dol(0xa1f)] = aJG['Entity']['isEnableRevit']; + aR1['StartRectCheck'] = aJG['Entity']['boxSelect']; + aR1['CloseRectCheck'] = aJG['Entity']['cancelBoxSelect']; + aR1['ZoomTo'] = aJG['zoomToPosition']; + aR1['ZoomToEntity'] = aJG['Entity'][dol(0xa20)]; + aR1['ZoomToRevit'] = aJG['Entity']['zoomToRevit']; + aR1['SetEntityColor'] = aJG['Entity']['setColor']; + aR1['ResetEntityColor'] = aJG['Entity']['resetColor']; + aR1['SetRevitColor'] = aJG['Entity']['setRevitColor']; + aR1['ResetRevitColor'] = aJG['Entity']['resetRevitColor']; + aR1['SetSingleEntityColor'] = aJG['Entity']['setSingleColor']; + aR1['SetSingleRevitColor'] = aJG['Entity']['setSingleRevitColor']; + aR1['SetEntityFlashColor'] = aJG['Entity']['setFlashColor']; + aR1['SetRevitFlashColor'] = aJG['Entity']['setRevitFlashColor']; + aR1['stopEntityFlashColor'] = aJG['Entity']['stopFlashColor']; + aR1['SetAllEntityColor'] = aJG['Entity']['setAllEntityColor']; + aR1[dol(0xa21)] = aJG[dol(0xa22)]['resetAllEntityColor']; + aR1[dol(0xa23)] = aJG['Entity'][dol(0xa24)]; + aR1['SetRevitVisible'] = aJG['Entity'][dol(0xa25)]; + aR1[dol(0xa26)] = aJG['Entity']['setAllEntityVisible']; + aR1['AddLabel'] = aJG['Label']['addLabel']; + aR1['RemoveLabel'] = aJG['Label']['removeLabel']; + aR1['RemoveAllLabel'] = aJG['Label']['removeAllLabel']; + aR1['SetMeasureMode'] = aJG['Measure']['setMeasureMode']; + aR1['clearMeasureResultViewer'] = aJG['Measure']['clearMeasureResultViewer']; + aR1['GetCameraViewer'] = aJG[dol(0xa27)]['getViewport']; + aR1['SetCameraViewer'] = aJG['Camera']['setViewport']; + aR1['GetLayerList'] = aJG[dol(0xa28)]['getLayerList']; + aR1[dol(0xa29)] = aJG['Layer']['setLayerVisible']; + aR1['SetBackGroundColor'] = aJG['Scene']['setBackGroundColor']; + aR1['GetImageBase64'] = aJG['Scene']['getImageBase64']; + aR1['GetImage'] = aJG['Scene']['getImage']; + aR1[dol(0xa2a)] = aJG['Scene']['clearScene']; + aR1['SetZoomSpeed'] = aJG['Other']['setZoomSpeed']; + aR1[dol(0xa2b)] = aJG['Other']['setPanSpeed']; + aR1['IsShowFPSStats'] = aJG['Other']['isShowFPSStats']; + aR1[dol(0xa2c)] = aJG['Plugin']['showAerialView']; + aR1['closeAerialView'] = aJG[dol(0xa2d)][dol(0xa2e)]; + aR1['SetClickMode'] = aJG['Event']['setClickMode']; + Object['defineProperties'](aR1, { + 'OnClickPosition': { + 'get': function() { + return aJG['onClickPosition']; + }, + 'set': function(aR2) { + aJG['onClickPosition'] = aR2; + } + }, + 'OnSelectionChanged': { + 'get': function() { + return aJG[dol(0xa2f)]; + }, + 'set': function(aR3) { + aJG['onSelectionChanged'] = aR3; + } + }, + 'OnSelectionRevitId': { + 'get': function() { + return aJG['onSelectionRevitId']; + }, + 'set': function(aR4) { + aJG['onSelectionRevitId'] = aR4; + } + }, + 'OnMeasureResult': { + 'get': function() { + return aJG['onMeasureResult']; + }, + 'set': function(aR5) { + aJG['onMeasureResult'] = aR5; + } + } + }); + aR1['Other']['setZoomSpeed']({ + 'minDistance': 0.001, + 'minZoomRate': 0.001 + }); + function aR6(aR7, aJI) { + aR7['tempEntities'] = []; + aR7['tempPrimitives'] = []; + aR7['tempCustomLabelIds'] = []; + aR7['tempCurrentAbsorptionPoint'] = undefined; + aR7['mouseoutEvent'] = undefined; + aR7['mouseoverEvent'] = undefined; + aJI[dol(0xa30)] = { + 'getLoadedData': function(aR9) { + try { + if (aJH['m_model'][dol(0xa31)](aR9['toString']()) === undefined) { + throw doj(0x10f); + } else { + var aRa = aJH['m_model']['get'](aR9['toString']()); + return { + 'total': aRa['_statistics']['numberOfTilesTotal'], + 'pending': aRa[dol(0xa32)]['numberOfPendingRequests'] + }; + } + } catch (aRb) { + b7H('错' + doo(0x459) + ':' + aRb); + } + }, + 'setVisible': function(aRc, aRd) { + try { + if (aJH['m_model']['get'](aRc['toString']()) === undefined) { + throw doj(0x110); + } else { + var aRe = aJH['m_model']['get'](aRc['toString']()); + aRe['show'] = aRd; + var aRf = aRe['getParamObject'](); + if (Cesium['defined'](aRf)) { + aRf['show'] = aRd; + } + aJH['viewer']['scene']['requestRender'](); + return 0x0; + } + } catch (aRg) { + b7H('错' + doo(0x45a) + ':' + aRg); + } + }, + 'setCustomEffects': function(aRh) { + try { + if (aJH['m_model']['get'](aRh['toString']()) === undefined) { + throw doj(0x111); + } else { + var aRi = aJH['m_model']['get'](aRh['toString']()); + aRi['customfragmentShader'] = digitalCityShader; + aJH[dol(0xa33)]['scene']['requestRender'](); + return 0x0; + } + } catch (aRj) { + b7H('错' + doo(0x45b) + ':' + aRj); + } + }, + 'setVisibleByInstanceId': function(aRk, aRl, aRm) { + try { + if (aJH['m_model']['get'](aRk['toString']()) === undefined) { + throw doj(0x112); + } else { + aJH['tileset'] = aJH['m_model']['get'](aRk['toString']()); + for (var aRn = 0x0; aRn < aJH[dol(0xa34)]['_selectedTiles']['length']; aRn++) { + var aRo = aJH['tileset']['_selectedTiles'][aRn]; + var aRp = aRo[dol(0xa35)]; + for (var aRq = 0x0; aRq < aRp['length']; aRq++) { + for (var aRr = 0x0; aRr < aRl['length']; aRr++) { + aJH[dol(0xa36)]['setVisible'](aRp[aRq]['o'] + '' + aRl[aRr], aRm, aRk); + } + } + } + aJH['viewer']['scene']['requestRender'](); + return 0x0; + } + } catch (aRs) { + b7H('错' + doo(0x45c) + ':' + aRs); + } + }, + 'location': function(aRt) { + try { + if (!b7V(aRt)) { + if (aJH['m_model']['get'](aRt['toString']()) === undefined) { + throw doj(0x113); + } else { + aJH['tileset'] = aJH['m_model']['get'](aRt['toString']()); + if (aJH[dol(0xa37)]['isImmersiveRoaming']()) + aJH['Camera']['resetImmersiveRoamViewPort'](); + else + aJH['funcPublic']['zoom'](aJH['tileset'], aJH[dol(0xa38)]); + } + } else { + if (aJH['Camera']['isImmersiveRoaming']()) + aJH['Camera']['resetImmersiveRoamViewPort'](); + else + aJH['funcPublic']['zoom'](aJH['tileset'], aJH['viewer']); + } + } catch (aRu) { + b7H('错' + doo(0x45d) + ':' + aRu); + } + }, + 'getCenter': function(aRv) { + try { + if (Model_CenterRotation && Model_CenterRotationId) { + if (aJH[dol(0xa39)]['get'](Model_CenterRotationId['toString']()) === undefined) { + throw doj(0x114); + } + if (!b7V(Model_CenterRotationId)) { + var aRw = aJH['m_model']['get'](Model_CenterRotationId['toString']()); + var aRx = aJH['funcPublic']['outCartesian3ToRadian'](aRw['boundingSphere']['center'], aJH['viewer']); + return { + 'center': aRw['boundingSphere']['center'], + 'radius': aRw['boundingSphere']['radius'], + 'position': aRx + }; + } + } + var aRy = []; + if (!b7V(aRv)) { + if (aJH['m_model']['get'](aRv['toString']()) === undefined) { + throw doj(0x115); + } + var aRw = aJH[dol(0xa3a)]['get'](aRv['toString']()); + return { + 'position': aJH['funcPublic']['outCartesian3ToRadian'](aRw['boundingSphere']['center'], aJH['viewer']) + }; + } else { + aJH['m_model']['forEach'](function(aRA, aRB) { + aRy['push'](aRA['boundingSphere']); + }); + } + var aRC; + if (aRy['length'] > 0x0) { + aRC = Cesium['BoundingSphere']['fromBoundingSpheres'](aRy, new Cesium['BoundingSphere']()); + } else { + aRC = new Cesium['BoundingSphere'](aJH[dol(0xa3b)]['camera']['position'],0x0); + } + if (Cesium['defined'](aRC)) { + var aRx = aJH['funcPublic']['outCartesian3ToRadian'](aRC['center'], aJH['viewer']); + return { + 'center': aRC['center'], + 'radius': aRC['radius'], + 'position': aRx + }; + } + } catch (aRE) { + b7H('错' + doo(0x45e) + ':' + aRE); + } + }, + 'getHandleState': function() { + try { + return aJH['IsMoving']; + } catch (aRF) { + b7H('错' + doo(0x45f) + ':' + aRF); + } + }, + 'setHandleState': function(aRG) { + try { + aJH['IsMoving'] = aRG; + return aJH['IsMoving']; + } catch (aRH) { + b7H('错' + doo(0x460) + ':' + aRH); + } + }, + 'setAlpha': function(aRI, aRJ) { + try { + if (!b7V(aRI)) { + if (aJH['m_model']['get'](aRI['toString']()) === undefined) { + throw doj(0x116); + } + aJH['tileset'] = aJH['m_model']['get'](aRI['toString']()); + } + if (b7V(aRJ)) + aRJ = 0.1; + var aRK = Cesium['Color']['fromCssColorString'](aJH['tileset'][dol(0xa3c)]); + aJH[dol(0xa3d)]['stylecolor'] = aRK['withAlpha'](aRJ)['toCssColorString'](); + var aRL = aJH['modelStyleMap']['get'](aRI['toString']()); + if (aRL['size'] > 0x0) { + aRL['forEach'](function(aRM, aRN) { + if (aRM['isParam']) { + aRM['color']['alpha'] = aRJ; + } else { + var aRO = typeof aRM[dol(0xa3e)] == 's' + doo(0x461) + 'g' ? Cesium['Color']['fromCssColorString'](aRM['color']) : aRM['color']; + aRM['color'] = aRO['withAlpha'](aRJ)['toCssColorString'](); + } + }); + } + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], aRL); + var aRP = aJH[dol(0xa3f)]['getParamObject']() == undefined ? [] : [aJH['tileset']['getParamObject']()]; + var aRQ = ![]; + var aRL = aJH['modelStyleMap'][dol(0xa40)](aRI['toString']()); + if (aRL['size'] > 0x0) { + aRL['forEach'](function(aRS, aRT) { + if (aRS['isParam']) { + aRQ = !![]; + } + }); + } + if (aRQ) { + aJH['funcPublic']['updateEntityAlpha'](aRP, aRJ, ''); + } else { + if (aRP['length'] > 0x0 && aRP[0x0]['_primitives']['_primitives']['length'] > 0x0) { + for (let aRU = 0x0; aRU < aRP[0x0]['_primitives']['_primitives']['length']; aRU++) { + if (aRP[0x0][dol(0xa41)]['_primitives'][aRU]instanceof Cesium['Primitive']) { + var aRV = aRP[0x0][dol(0xa42)]['_primitives'][aRU]; + aRV['appearance']['material'] = new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0x462) + 'r', + 'uniforms': { + 'color': new Cesium['Color'](0x1,0x1,0x1,aRJ) + } + } + }); + aRV['appearance']['translucent'] = !![]; + } + } + } + } + return 0x0; + } catch (aRW) { + b7H('错' + doo(0x463) + ':' + aRW); + } + return -0x1; + }, + 'setColor': function(aRX, aRY, aRZ, aS0, aS1) { + try { + if (!b7V(aRX)) { + if (aJH['m_model']['get'](aRX['toString']()) === undefined) { + throw doj(0x117); + } + aJH['tileset'] = aJH['m_model']['get'](aRX['toString']()); + } + if (b7V(aS1)) + aS1 = 0x1; + var aS2 = 'r' + doo(0x464) + '(' + aRY + ',' + aRZ + ',' + aS0 + ',' + aS1 + ')'; + aJH[dol(0xa43)]['stylecolor'] = aS2; + var aS3 = aJH['modelStyleMap']['get'](aRX['toString']()); + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], aS3); + return 0x0; + } catch (aS4) { + b7H('错' + doo(0x465) + ':' + aS4); + } + }, + 'original': function(aS5) { + try { + if (!b7V(aS5)) { + if (aJH['m_model']['get'](aS5['toString']()) === undefined) { + throw doj(0x118); + } else { + aJH['tileset'] = aJH['m_model']['get'](aS5['toString']()); + aJH[dol(0xa44)][dol(0xa45)] = 'r' + doo(0x466) + ')'; + aJH['modelStyleMap'][dol(0xa46)](aS5['toString']())['clear'](); + aJH['modelShowMap']['get'](aS5['toString']())['clear'](); + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], new Map()); + aJH['funcPublic']['updateModelShowStyle'](aJH['tileset'], new Map(), !![]); + aJI['Feature']['clearSelectColor'](); + var aS6 = aJH['tileset']['getParamObject']() == undefined ? [] : [aJH['tileset']['getParamObject']()]; + aJH['funcPublic'][dol(0xa47)](aS6); + if (aS6['length'] > 0x0 && aS6[0x0]['_primitives'][dol(0xa48)]['length'] > 0x0) { + for (let aS7 = 0x0; aS7 < aS6[0x0]['_primitives']['_primitives']['length']; aS7++) { + if (aS6[0x0][dol(0xa49)]['_primitives'][aS7]instanceof Cesium[dol(0xa4a)]) { + var aS8 = aS6[0x0]['_primitives']['_primitives'][aS7]; + aS8['appearance']['material'] = undefined; + aS8['appearance']['translucent'] = ![]; + } + } + } + aJH['funcPublic']['updateEntityShow'](aJH['viewer'], '', ![], 0x1); + } + } else { + aJH['tileset']['stylecolor'] = 'r' + doo(0x467) + ')'; + aJH['modelStyleMap']['get'](aJH[dol(0xa4b)]['toString']())['clear'](); + aJH['modelShowMap']['get'](aJH['tagName']['toString']())['clear'](); + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], new Map()); + aJH['funcPublic']['updateModelShowStyle'](aJH['tileset'], new Map(), !![]); + } + aJH['viewer']['scene']['requestRender'](); + return 0x0; + } catch (aS9) { + b7H('错' + doo(0x468) + ':' + aS9); + } + }, + 'remove': function(aSa) { + try { + var aSb = aJH['m_model']['get'](aSa['toString']()); + if (aSb === undefined) { + throw doj(0x119); + } else { + var aSc = aJH[dol(0xa4c)]['getParamObject'](); + if (aSc != undefined) { + aJH['viewer']['dataSources'][dol(0xa4d)](aSc, !![]); + } + aJH['viewer']['scene'][dol(0xa4e)]['remove'](aSb); + aJH['m_model']['delete'](aSa['toString']()); + var aSd = ![]; + if (aJH['m_model']['size'] > 0x0) { + for (var aSe of aJH['m_model']) { + if (aSe[0x1] && aSe[0x1]['isBimModel'] === 0x1) + aSd = !![]; + } + } + if (!aSd) { + var aSf = aJH['viewer']['entities']['getById']('C' + doo(0x469) + 'G'); + if (aSf) { + aJH['viewer']['entities']['removeById']('C' + doo(0x46a) + 'G'); + } + } + aJH['viewer']['scene'][dol(0xa4f)](); + return 0x0; + } + } catch (aSg) { + return -0x1; + b7H('错' + doo(0x46b) + ':' + aSg); + } + }, + 'scale': function(aSh, aSi) { + try { + var aSj = aJH['m_model']['get'](aSh['toString']()); + if (aSj === undefined) { + throw doj(0x11a); + } + aSi = Number(aSi); + if (isNaN(aSi)) { + throw '参' + doo(0x46c) + '字'; + } + aJH['tileset'] = aJH['m_model']['get'](aSh['toString']()); + var aSk = aSs(aJH['tileset'], aSi, 0x0); + var aSl = Cesium['Matrix4']['multiplyTransformation'](aSk, aJH['tileset']['modelMatrix'], new Cesium['Matrix4']()); + aJH['tileset']['modelMatrix'] = aSl; + aJH['viewer'][dol(0xa50)]['requestRender'](); + return Cesium['Matrix4']['toArray'](aSl); + function aSm(aSn, aSo) { + var aSp = aSn['boundingSphere']['center']; + var aSq = Cesium['Cartographic']['fromCartesian'](aSp); + aSq['height'] = aSo; + aSp = Cesium['Cartographic']['toCartesian'](aSq); + var aSr = Cesium['Transforms']['eastNorthUpToFixedFrame'](aSp); + return aSr; + } + function aSs(aSt, aSi, aSv) { + var aSw = aSm(aSt, aSv); + var aSx = Cesium['Matrix4']['inverse'](aSw, new Cesium['Matrix4']()); + var aSy = new Cesium['Cartesian3'](aSi,aSi,aSi); + var aSz = Cesium['Matrix4']['fromScale'](aSy); + var aSA = Cesium['Matrix4']['multiply'](aSw, Cesium['Matrix4']['multiply'](aSz, aSx, new Cesium['Matrix4']()), new Cesium['Matrix4']()); + return aSA; + } + } catch (aSB) { + b7H('错' + doo(0x46d) + ':' + aSB); + } + }, + 'rotate': function(aSC, aSD) { + try { + if (!b7V(aSD)) { + if (aJH[dol(0xa51)]['get'](aSD['toString']()) === undefined) { + throw doj(0x11b); + } + aJH['tileset'] = aJH['m_model']['get'](aSD['toString']()); + } + aSC = Number(aSC); + if (isNaN(aSC)) { + throw '参' + doo(0x46e) + '字'; + } + var aSE = aJH['tileset']['boundingSphere']['center']; + var aSF = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](aJH['tileset']['modelMatrix'], aSF); + Cesium['Matrix4'][dol(0xa52)](aSF, aSE, aSE); + var aSG = Cesium['Quaternion']['fromAxisAngle'](aSE, Cesium['Math']['toRadians'](aSC)); + var aSH = Cesium['Matrix3']['fromQuaternion'](aSG); + var aSI = Cesium['Matrix4']['fromRotationTranslation'](aSH); + var aSJ = new Cesium['Matrix4'](); + Cesium['Matrix4']['multiply'](aJH['tileset']['modelMatrix'], aSI, aSJ); + aJH['tileset']['modelMatrix'] = aSJ; + aJH['viewer']['scene']['requestRender'](); + return Cesium['Matrix4'][dol(0xa53)](aSJ); + } catch (aSK) { + b7H('错' + doo(0x46f) + ':' + aSK); + } + }, + 'rotateByAnyAxis': function(aSL) { + try { + if (!Cesium['defined'](aSL)) + throw '缺' + doo(0x470) + 's'; + var aSM = []; + var aSN; + if (!b7V(aSL['tags']) && aSL['tags']['length'] > 0x0) { + if (Array['isArray'](aSL['tags'])) { + for (var aSO = 0x0; aSO < aSL['tags']['length']; aSO++) { + var aSP = aSL['tags'][aSO]; + if (aJH['m_model']['get'](aSP['toString']()) === undefined) { + throw doj(0x11c); + } + aSM['push'](aJH['m_model']['get'](aSP['toString']())); + } + aSN = aJI['Model']['getModelsCenter'](aSL['tags']); + } else { + if (aJH['m_model']['get'](aSL['tags']['toString']()) === undefined) { + throw doj(0x11d); + } + aSM['push'](aJH['m_model']['get'](aSL['tags']['toString']())); + aSN = aJI[dol(0xa54)]['getModelsCenter']([aSL['tags']['toString']()]); + } + } + if (aSM['length'] == 0x0) { + throw doj(0x11e); + } + var aSQ = Number(aSL['rotate']); + if (isNaN(aSQ)) { + throw doj(0x11f); + } + var aSR, aSS; + switch (aSL[dol(0xa55)]) { + case 0x0: + if (Array['isArray'](aSL['point1']) && aSL['point1']['length'] == 0x3 && Array[dol(0xa56)](aSL['point2']) && aSL['point2']['length'] == 0x3) { + aSR = Cesium['Cartesian3']['fromRadiansArrayHeights'](aSL['point1'])[0x0]; + aSS = Cesium['Cartesian3']['fromRadiansArrayHeights'](aSL['point2'])[0x0]; + } else + throw Error(doj(0x120)); + break; + case 0x1: + if (Cesium['defined'](aSL['point1']) && aSL['point1']instanceof Cesium['Cartesian3'] && Cesium['defined'](aSL[dol(0xa57)]) && aSL[dol(0xa58)]instanceof Cesium['Cartesian3']) { + aSR = aSL['point1']; + aSS = aSL['point2']; + } else + throw Error(doj(0x121)); + break; + default: + throw Error('t' + doo(0x471) + '效'); + } + var aST = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](aSS, aSR, aST); + Cesium['Cartesian3']['normalize'](aST, aST); + var aSU = GetFootOfPerpendicular(aSR, aSS, aSN['center']); + var aSV = new Cesium['Matrix3'](); + _applyRotateAroundAxis(aST, Cesium['Math']['toRadians'](aSQ), aSV); + var aSW = Cesium[dol(0xa59)]['fromRotationTranslation'](aSV); + var aSX = new Cesium[(dol(0xa5a))](); + Cesium['Cartesian3']['negate'](aSU, aSX); + var aSY = Cesium['Matrix4']['IDENTITY']['clone'](); + var aSZ = Cesium['Matrix4']['IDENTITY']['clone'](); + Cesium['Matrix4']['fromTranslation'](aSX, aSY); + Cesium['Matrix4']['fromTranslation'](aSU, aSZ); + if (aSM['length'] > 0x0) { + for (var aT0 = 0x0; aT0 < aSM['length']; aT0++) { + var aT1 = aSM[aT0]; + Cesium[dol(0xa5b)]['multiply'](aSY, aT1['modelMatrix'], aT1[dol(0xa5c)]); + Cesium['Matrix4']['multiply'](aSW, aT1['modelMatrix'], aT1['modelMatrix']); + Cesium['Matrix4']['multiply'](aSZ, aT1['modelMatrix'], aT1['modelMatrix']); + } + } + aJH['viewer']['scene']['requestRender'](); + } catch (aT2) { + b7H(aT2); + } + }, + 'get': function(aT3) { + try { + if (aJH['m_model']['get'](aT3['toString']()) == undefined) { + return undefined; + } else { + return aJH['m_model']['get'](aT3['toString']()); + } + } catch (aT4) { + b7H('错' + doo(0x472) + ':' + aT4); + } + }, + 'setCurrent': function(aT5) { + try { + if (aJH['m_model']['get'](aT5['toString']()) == undefined) { + return null; + } else { + aJH['tileset'] = aJH['m_model']['get'](aT5['toString']()); + return aJH['tileset']; + } + } catch (aT6) { + b7H('错' + doo(0x473) + ':' + aT6); + } + }, + 'getByScreenCoord': function(aT7, aT8, aT9, aTa, aTb, aTc) { + try { + if (b7V(aT9)) + aT9 = 0xff; + if (b7V(aTa)) + aTa = 0xff; + if (b7V(aTb)) + aTb = 0xff; + if (b7V(aTc)) + aTc = 0x1; + var aTd = aJH['viewer']['scene'][dol(0xa5d)](aT7); + if (aTd && Cesium['defined'](aTd) && aTd instanceof Cesium[dol(0xa5e)]) { + var aTe = aTd['getProperty']('n' + doo(0x474) + 'e'); + if (!Cesium['defined'](aTe)) { + aTe = aTd['getProperty'](doh(0x63)); + } + aJH['m_model']['forEach'](function(aTf, aTg) { + if (aTf['id'] === aTd['tileset']['id']) { + aJH['tileset'] = aTf; + aJI['Model']['setColor'](aTg, aT9, aTa, aTb, aTc); + if (!b7V(aT8)) { + if (aJH['defaults']['editmode']) { + var aTh = aJH['MergeList']['find'](function(aTi) { + return aTi[dol(0xa5f)]['indexOf'](aTg) > -0x1; + }); + if (aTh != undefined) { + aT8(aTh); + } else { + var aTj = aJH['funcPublic']['getPointByDistance'](aJH['tileset']['boundingSphere']['center'], 0x0, 0x0, -(aJH['tileset']['tilesetoutline']['maximumHeight'] - aJH['tileset']['tilesetoutline']['minimumHeight']) / 0x2); + aT8({ + 'offset': { + 'x': aJH['funcPublic']['GetDistance'](aTj, aJH['BaseContorl']['gridStartX'], 0x1) - aJH['funcPublic']['GetDistance'](aJH['BaseContorl']['gridCenter'], aJH['BaseContorl'][dol(0xa60)], 0x1), + 'y': aJH['funcPublic']['GetDistance'](aTj, aJH['BaseContorl']['gridStartY'], 0x0, 0x1) - aJH['funcPublic']['GetDistance'](aJH[dol(0xa61)][dol(0xa62)], aJH['BaseContorl']['gridStartY'], 0x0, 0x1), + 'z': aJH['funcPublic'][dol(0xa63)](aTj, aJH['BaseContorl']['gridCenter'], 0x0, 0x0, 0x1) + }, + 'rotate': { + 'x': aJH['tileset']['rotate'][0x0], + 'y': aJH['tileset']['rotate'][0x1], + 'z': aJH['tileset']['rotate'][0x2] + }, + 'obj': aJH['tileset'], + 'id': aTg + }); + } + } else { + aT8({ + 'obj': aJH['tileset'], + 'id': aTg + }); + } + } + throw new Error('e' + doo(0x475) + 'g'); + } + }); + } else { + aJI['Model']['setColor'](aJH[dol(0xa64)]['id'], 0xff, 0xff, 0xff, 0x1); + } + if (!b7V(aT8)) { + aT8(undefined); + } + } catch (aTk) { + if (aTk[dol(0xa65)] == 'e' + doo(0x476) + 'g') {} else { + b7H('错' + doo(0x477) + ':' + aTk); + } + } + }, + 'MoveModel': function(aTl, aTm, aTn) { + try { + if (!b7V(aTm)) { + if (aJH['m_model']['get'](aTm['toString']()) === undefined) { + throw doj(0x122); + } + aJH['tileset'] = aJH['m_model']['get'](aTm['toString']()); + } + var aTo = aJH['funcPublic']['pickPosition'](aTl, aJH['viewer'])[dol(0xa66)]; + if (aTo) { + var aTp = Cesium['Cartographic']['fromCartesian'](aJH['tileset']['boundingSphere']['center']); + var aTq = Cesium['Cartographic']['fromCartesian'](aTo); + var aTr = Cesium['Cartesian3']['fromRadians'](aTp['longitude'], aTp['latitude'], 0x0); + var aTs = Cesium['Cartesian3'][dol(0xa67)](aTq['longitude'], aTq['latitude'], 0x0); + var aTt = Cesium['Cartesian3']['subtract'](aTs, aTr, new Cesium['Cartesian3']()); + var aTu = Cesium['Matrix4']['fromTranslation'](aTt); + var aTv = Cesium['Matrix4']['multiplyTransformation'](aTu, aJH['tileset']['modelMatrix'], new Cesium['Matrix4']()); + aJH['tileset']['modelMatrix'] = aTv; + if (!b7V(aTn)) { + aTn(Cesium['Matrix4']['toArray'](aTv)); + } else { + return Cesium['Matrix4']['toArray'](aTv); + } + aJH['viewer']['scene']['requestRender'](); + } + } catch (aTw) { + b7H('错' + doo(0x478) + ':' + aTw); + } + }, + 'moveToPosition': function(aTx, aTy, aTz) { + try { + if (!b7V(aTz)) { + if (aJH['m_model']['get'](aTz[dol(0xa68)]()) === undefined) { + throw doj(0x123); + } + aJH['tileset'] = aJH['m_model']['get'](aTz['toString']()); + } + var aTA, aTB; + var aTC; + if (aTx['length'] > 0x0) { + aTA = aTx[0x0]; + aTB = aTx[0x1]; + if (aTx['length'] == 0x3) + height = aTx[0x2]; + if (aTy == 0x0) { + aTC = Cesium['Cartographic']['fromDegrees'](aTA, aTB, height); + } else { + aTC = new Cesium[(dol(0xa69))](aTA,aTB,height); + } + var aTD = aJH[dol(0xa6a)]['cartographicToCartesian3'](aTC, aJH['viewer']); + if (aTD) { + var aTE = Cesium['Cartographic']['fromCartesian'](aJH['tileset']['boundingSphere'][dol(0xa6b)]); + var aTF = Cesium['Cartographic']['fromCartesian'](aTD); + var aTG = Cesium['Cartesian3']['fromRadians'](aTE['longitude'], aTE['latitude'], aTE['height']); + var aTH = Cesium[dol(0xa6c)][dol(0xa6d)](aTF['longitude'], aTF['latitude'], aTx[dol(0xa6e)] == 0x3 ? aTF['height'] : aTE['height']); + var aTI = Cesium['Cartesian3']['subtract'](aTH, aTG, new Cesium[(dol(0xa6f))]()); + var aTJ = Cesium['Matrix4']['fromTranslation'](aTI); + var aTK = Cesium['Matrix4']['multiplyTransformation'](aTJ, aJH['tileset'][dol(0xa70)], new Cesium['Matrix4']()); + aJH['tileset']['modelMatrix'] = aTK; + aJH['viewer']['scene'][dol(0xa71)](); + return Cesium['Matrix4']['toArray'](aTK); + } + } + } catch (aTL) { + b7H('错' + doo(0x479) + ':' + aTL); + } + }, + 'clearOffset': function(aTM) { + try { + if (!b7V(aTM)) { + if (aJH['m_model'][dol(0xa72)](aTM['toString']()) === undefined) { + throw doj(0x124); + } + aJH['tileset'] = aJH['m_model']['get'](aTM['toString']()); + } + var aTN = new Cesium['Matrix3'](); + Cesium['Matrix4']['getMatrix3'](aJH['tileset']['modelMatrix'], aTN); + var aTO = new Cesium['Matrix4'](); + Cesium['Matrix4']['fromRotationTranslation'](aTN, new Cesium[(dol(0xa73))](), aTO); + aJH['tileset']['modelMatrix'] = aTO; + aJH['viewer']['scene']['camera']['lookAtTransform'](Cesium['Matrix4']['IDENTITY']); + aJH[dol(0xa74)]['scene']['requestRender'](); + return 0x0; + } catch (aTP) { + b7H('错' + doo(0x47a) + ':' + aTP); + } + }, + 'clearRotation': function(aTQ) { + try { + if (!b7V(aTQ)) { + if (aJH['m_model']['get'](aTQ['toString']()) === undefined) { + throw doj(0x125); + } + aJH[dol(0xa75)] = aJH['m_model'][dol(0xa76)](aTQ['toString']()); + } + var aTR = new Cesium['Cartesian3'](); + Cesium['Matrix4']['getTranslation'](aJH['tileset']['modelMatrix'], aTR); + var aTS = new Cesium['Matrix4'](); + Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3']['IDENTITY'], aTR, aTS); + aJH['tileset']['modelMatrix'] = aTS; + aJH['viewer']['scene'][dol(0xa77)][dol(0xa78)](Cesium['Matrix4']['IDENTITY']); + aJH['viewer']['scene']['requestRender'](); + return 0x0; + } catch (aTT) { + b7H('错' + doo(0x47b) + ':' + aTT); + } + }, + 'offset': function(aTU, aTV, aTW, aTX) { + try { + if (!b7V(aTX)) { + if (aJH['m_model']['get'](aTX['toString']()) === undefined) { + throw doj(0x126); + } + aJH['tileset'] = aJH['m_model']['get'](aTX['toString']()); + } + aTU = Number(aTU); + if (isNaN(aTU)) { + throw '参' + doo(0x47c) + '字'; + } + aTV = Number(aTV); + if (isNaN(aTV)) { + throw '参' + doo(0x47d) + '字'; + } + aTW = Number(aTW); + if (isNaN(aTW)) { + throw '参' + doo(0x47e) + '字'; + } + var aTY = Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], Cesium['Cartesian3']['fromElements'](aTU, aTV, aTW), new Cesium['Cartesian3']()); + var aTZ = Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], Cesium['Cartesian3']['fromElements'](0x0, 0x0, 0x0), new Cesium['Cartesian3']()); + var aU0 = Cesium['Cartesian3']['subtract'](aTY, aTZ, new Cesium['Cartesian3']()); + var aU1 = Cesium['Matrix4']['fromTranslation'](aU0); + var aU2 = Cesium['Matrix4']['multiplyTransformation'](aU1, aJH['tileset']['modelMatrix'], new Cesium['Matrix4']()); + aJH['tileset']['modelMatrix'] = aU2; + aJH['viewer']['scene']['requestRender'](); + return Cesium[dol(0xa79)]['toArray'](aU2); + } catch (aU3) { + b7H('错' + doo(0x47f) + ':' + aU3); + } + }, + 'getModelMatrix': function(aU4) { + try { + if (!b7V(aU4)) { + if (aJH['m_model']['get'](aU4[dol(0xa7a)]()) === undefined) { + throw doj(0x127); + } + aJH['tileset'] = aJH['m_model']['get'](aU4['toString']()); + } + return Cesium['Matrix4']['toArray'](aJH['tileset']['modelMatrix']); + } catch (aU5) { + b7H('错' + doo(0x480) + ':' + aU5); + } + }, + 'setModelMatrix': function(aU6, aU7) { + try { + if (!b7V(aU6)) { + if (aJH['m_model']['get'](aU6['toString']()) === undefined) { + throw doj(0x128); + } + aJH['tileset'] = aJH[dol(0xa7b)]['get'](aU6['toString']()); + } + var aU8 = Cesium['Matrix4']['unpack'](aU7); + Cesium['Matrix4']['clone'](aU8, aJH[dol(0xa7c)]['modelMatrix']); + } catch (aU9) { + b7H('错' + doo(0x481) + ':' + aU9); + } + }, + 'resetModelMatrix': function(aUa) { + try { + if (!b7V(aUa)) { + if (aJH['m_model']['get'](aUa['toString']()) === undefined) { + throw doj(0x129); + } + aJH['tileset'] = aJH['m_model']['get'](aUa['toString']()); + } + var aUb = Cesium['defaultValue'](aJH['tileset']['_modelOriginalMatrix'], Cesium['Matrix4']['IDENTITY']); + Cesium['Matrix4']['clone'](aUb, aJH['tileset']['modelMatrix']); + } catch (aUc) { + b7H('错' + doo(0x482) + ':' + aUc); + } + }, + 'getLoadedList': function() { + try { + return aJH['m_model']; + } catch (aUd) { + b7H('错' + doo(0x483) + ':' + aUd); + } + }, + 'setVisualRange': function(aUe, aUf) { + if (!b7V(aUf)) { + if (aJH['m_model']['get'](aUf['toString']()) === undefined) { + throw doj(0x12a); + } + aJH['tileset'] = aJH['m_model']['get'](aUf['toString']()); + var aUg = 0x2 * Math[dol(0xa7d)](0.5 * Math['PI'] / 0x3); + var aUh = 0x3a9; + var aUi = 0x10 * aUg / aUh; + aJH['tileset']['maximumScreenSpaceError'] = aUi * aJH[dol(0xa7e)]['canvas'][dol(0xa7f)] / (Number(aUe) * aUg); + } else { + aJH['m_model']['forEach'](function(aUj, aUk) { + var aUg = 0x2 * Math['tan'](0.5 * Math['PI'] / 0x3); + var aUh = 0x3a9; + var aUi = 0x10 * aUg / aUh; + aUj['maximumScreenSpaceError'] = aUi * aJH['viewer'][dol(0xa80)]['height'] / (Number(aUe) * aUg); + }); + } + aJH['viewer']['scene']['requestRender'](); + }, + 'getModelsCenter': function(aUo) { + try { + if (Cesium['defined'](aUo) && !Array['isArray'](aUo)) { + aUo = [aUo]; + } + var aUp = []; + aJH['m_model']['forEach'](function(aUq, aUr) { + if (!Cesium['defined'](aUo) || aUo['indexOf'](aUq['id']) > -0x1) { + if (aUq['tilesetoutline']['boundingsphere'] != undefined) { + aUp['push'](aUq); + } + } + }); + var aUs = []; + var aUt = new Cesium['Cartesian3'](); + for (var aUu = 0x0; aUu < aUp['length']; aUu++) { + var aUv = !b7V(aUp[aUu]['modelMatrix']) ? new Cesium['Matrix4']['clone'](aUp[aUu]['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var aUw = aUp[aUu]['tilesetoutline']['positions']; + for (var q = 0x0; q < aUw[dol(0xa81)] / 0x3; q++) { + var aUy = new Cesium['Cartesian3'](aUw[q * 0x3],aUw[q * 0x3 + 0x1],aUw[q * 0x3 + 0x2]); + Cesium['Matrix4']['multiplyByPoint'](aUv, aUy, aUy); + aUs['push'](aJH['funcPublic']['cartesian3ToCartographic'](aUy, aJH[dol(0xa82)])); + } + } + if (aUs['length'] > 0x0) { + var aUz = new Cesium['Cartographic'](-Infinity,-Infinity,-Infinity) + , aUA = new Cesium[(dol(0xa83))](Infinity,Infinity,Infinity); + aUs['forEach'](function(aUB) { + aUz[dol(0xa84)] = Math['max'](aUz['longitude'], aUB[dol(0xa85)]); + aUz['latitude'] = Math['max'](aUz['latitude'], aUB['latitude']); + aUz['height'] = Math['max'](aUz['height'], aUB['height']); + aUA['longitude'] = Math['min'](aUA['longitude'], aUB['longitude']); + aUA['latitude'] = Math['min'](aUA['latitude'], aUB[dol(0xa86)]); + aUA['height'] = Math['min'](aUA['height'], aUB['height']); + }); + var aUC = aJH['funcPublic']['cartographicToCartesian3'](aUz, aJH['viewer']); + var aUD = aJH['funcPublic']['cartographicToCartesian3'](aUA, aJH['viewer']); + var aUE = Cesium['Cartesian3']['subtract'](aUC, aUD, new Cesium['Cartesian3']()); + var aUF = Cesium[dol(0xa87)]['midpoint'](aUC, aUD, new Cesium['Cartesian3']()); + var aUG = Cesium['Cartesian3'][dol(0xa88)](aUE); + var aUH = new Cesium['BoundingSphere'](aUF,aUG); + aUH['maxpos'] = aUC; + aUH[dol(0xa89)] = aUD; + aUH['oldsphere'] = aUp[0x0]['tilesetoutline']; + aUH['PCenter'] = aUt; + aUH['obb'] = aUp[0x0]['root']['boundingVolume']['_orientedBoundingBox']; + return aUH; + } + return undefined; + } catch (aUI) { + b7H('错' + doo(0x484) + ':' + aUI); + } + } + }; + aJI[dol(0xa8a)] = { + 'setCameraOptions': function(aUJ) { + try { + if (aUJ) + for (var aUK in aUJ) { + if (aUJ['hasOwnProperty'](aUK) && aJH['viewer']['scene']['screenSpaceCameraController']['hasOwnProperty'](aUK)) { + aJH['viewer']['scene'][dol(0xa8b)][aUK] = aUJ[aUK]; + } + } + } catch (aUL) { + b7H('错' + doo(0x485) + ':' + aUL); + } + }, + 'setPerspectiveViewPort': function(aUM) { + try { + if (b7V(aUM)) + aUM = doh(0x64); + var aUN = 0x0; + var aUO = -0x5a; + aUM = aUM['toUpperCase'](); + switch (aUM) { + case 'B' + doo(0x486) + 'M': + aUN = 0x0; + aUO = 0x5a; + break; + case 'F' + doo(0x487) + 'T': + aUN = aUO = 0x0; + break; + case 'B' + doo(0x488) + 'K': + aUN = 0xb4; + aUO = 0x0; + break; + case 'L' + doo(0x489) + 'T': + aUN = 0x5a; + aUO = 0x0; + break; + case 'R' + doo(0x48a) + 'T': + aUN = 0x10e; + aUO = 0x0; + break; + default: + aUN = 0x0; + aUO = -0x5a; + break; + } + if (aUM === 'B' + doo(0x48b) + 'M') { + if (aJH[dol(0xa8c)]['openearth']) + return -0x1; + } + var aUP = aJI['Model']['getModelsCenter'](); + var aUQ = Cesium['Cartesian3']['subtract'](aUP['maxpos'], aUP['minpos'], new Cesium['Cartesian3']()); + var aUR = Cesium['Cartesian3']['midpoint'](aUP['maxpos'], aUP['minpos'], new Cesium['Cartesian3']()); + var aUS = Cesium['Cartesian3']['magnitude'](aUQ); + var aUT = new Cesium['BoundingSphere'](aUR,aUS); + aJH[dol(0xa8d)]['camera']['flyToBoundingSphere'](aUT, { + 'duration': 0x0, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](aUN),Cesium['Math']['toRadians'](aUO),aUS) + }); + aJH['viewer']['scene']['requestRender'](); + return 0x0; + } catch (aUU) { + b7H('错' + doo(0x48c) + ':' + aUU); + } + }, + 'lookAt': function(aUV) { + try { + var aUW = new Cesium['Cartesian3']() + , aUX = 0xa; + switch (aUV[dol(0xa8e)]) { + case 0x0: + if (Array['isArray'](aUV['min']) && aUV['min']['length'] == 0x3 && Array['isArray'](aUV['max']) && aUV['max']['length'] == 0x3) { + var aUY = Cesium['Cartesian3']['fromRadiansArrayHeights'](aUV['min'])[0x0]; + var aUZ = Cesium['Cartesian3']['fromRadiansArrayHeights'](aUV['max'])[0x0]; + Cesium['Cartesian3']['midpoint'](aUY, aUZ, aUW); + aUX = Cesium[dol(0xa8f)]['distance'](aUY, aUZ); + } else + throw Error('m' + doo(0x48d) + '误'); + break; + case 0x1: + if (Array['isArray'](aUV['min']) && aUV['min']['length'] == 0x3 && Array['isArray'](aUV[dol(0xa90)]) && aUV['min']['length'] == 0x3) { + var aV0 = Cesium['Cartesian3']['fromArray'](aUV[dol(0xa91)]) + , aV1 = Cesium['Cartesian3']['fromArray'](aUV['max']); + var aV2 = aJH['Public']['convertModelToWorld'](aV0['x'], aV0['y'], aV0['z'], aUV[dol(0xa92)]); + var aV3 = aJH['Public']['convertModelToWorld'](aV1['x'], aV1['y'], aV1['z'], aUV['tag']); + var aUY = aJH['Public']['radiansToCartesian3'](aV2[0x1], aV2[0x0], aV2[0x2]); + var aUZ = aJH['Public']['radiansToCartesian3'](aV3[0x1], aV3[0x0], aV3[0x2]); + Cesium['Cartesian3']['midpoint'](aUY, aUZ, aUW); + aUX = Cesium['Cartesian3']['distance'](aUY, aUZ); + } else + throw Error('m' + doo(0x48e) + '误'); + break; + case 0x2: + if (Cesium['defined'](aUV['min']) && aUV['min']instanceof Cesium['Cartesian3'] && Cesium['defined'](aUV['max']) && aUV['max']instanceof Cesium['Cartesian3']) { + Cesium['Cartesian3'][dol(0xa93)](aUV['min'], aUV[dol(0xa94)], aUW); + aUX = Cesium['Cartesian3']['distance'](aUV['min'], aUV['max']); + } else + throw Error('m' + doo(0x48f) + '误'); + break; + default: + throw Error('t' + doo(0x490) + '效'); + } + var aV6 = aUV['heading'] || 0x0; + var aV7 = aUV['pitch'] || 0x0; + var aV8 = Cesium['Math']['toRadians'](aV6); + var aV9 = Cesium['Math']['toRadians'](aV7); + aJH[dol(0xa95)]['camera']['lookAt'](aUW, new Cesium[(dol(0xa96))](aV8,aV9,aUX * 0x2)); + aJH['viewer']['camera']['lookAtTransform'](Cesium['Matrix4']['IDENTITY']); + } catch (aVa) { + b7H(aVa); + } + }, + 'getExtent': function() { + try { + var aVb = aJH['viewer']['camera']['computeViewRectangle'](); + var aVc = []; + aVc['push'](Cesium['Rectangle']['northeast'](aVb, new Cesium['Cartographic']())); + aVc['push'](Cesium['Rectangle']['northwest'](aVb, new Cesium['Cartographic']())); + aVc['push'](Cesium['Rectangle']['southwest'](aVb, new Cesium['Cartographic']())); + aVc['push'](Cesium['Rectangle']['southeast'](aVb, new Cesium['Cartographic']())); + return aVc; + } catch (aVd) { + b7H('错' + doo(0x491) + ':' + aVd); + } + }, + 'addListener': function(aVe) { + try { + aJH['viewer']['camera']['changed']['addEventListener'](function(aVf) { + if (!b7V(aVe)) { + aVe({ + 'heading': aJH['viewer']['camera']['heading'], + 'pitch': aJH['viewer']['camera']['pitch'], + 'position': aJH['funcPublic']['outCartesian3ToRadian'](aJH['viewer']['camera']['position'], aJH['viewer']) + }); + } + }); + } catch (aVg) { + b7H('错' + doo(0x492) + ':' + aVg); + } + }, + 'flyToPosition': function(aVh, aVi, aVj, aVk, aVl) { + try { + if (b7V(aVi)) { + aVi = aJH['viewer']['camera']['heading']; + } + if (b7V(aVj)) { + aVj = aJH['viewer']['camera']['pitch']; + } + if (b7V(aVk)) { + aVk = 0x64; + } + if (b7V(aVl)) { + aVl = 0x5; + } + var aVm = aJH['viewer']['camera']['position']; + if (Array['isArray'](aVh)) { + aVm = aJH['funcPublic']['inputRadianToCartesian3'](aVh, aJH['viewer']); + } else if (aVh instanceof Cesium['Cartesian3']) { + aVm = aVh; + } + var aVn = new Cesium['BoundingSphere'](aVm,0x1); + aJH['viewer']['camera']['flyToBoundingSphere'](aVn, { + 'duration': aVl, + 'offset': new Cesium['HeadingPitchRange'](Cesium[dol(0xa97)]['toRadians'](aVi),Cesium[dol(0xa98)]['toRadians'](aVj),aVk) + }); + return 0x0; + } catch (aVo) { + b7H('错' + doo(0x493) + ':' + aVo); + } + }, + 'saveScreenShot': function(aVp) { + try { + if (aJH['Public']['getSceneStatus']() === 0x0) { + if (!aJH[dol(0xa99)]['baseLayerPicker']['viewModel']['dropDownVisible']) { + var aVq = document['getElementsByClassName'](doj(0x12b)); + if (!b7V(aVq) && aVq['length'] > 0x0) { + aVq[0x0]['style']['display'] = 'n' + doo(0x494) + 'e'; + } + } + } + var aVr = document['querySelector']('#' + aJH['defaults']['container'] + doj(0x12c)); + var aVs = document['querySelector']('#' + aJH[dol(0xa9a)]['container']); + Cesium['defined'](aJH[dol(0xa9b)]) && aJH[dol(0xa9c)]['initScreenshot'](!![]); + html2canvas(document['getElementById'](aJH['defaults']['container']), { + 'backgroundColor': 't' + doo(0x495) + 't', + 'allowTaint': !![], + 'y': aVs['offsetTop'] / 0x2, + 'x': aVs['offsetLeft'] / 0x2, + 'scrollY': 0x0, + 'scrollX': 0x0, + 'width': aVs['offsetWidth'], + 'height': aVs['offsetHeight'], + 'windowWidth': aVs['scrollWidth'], + 'windowHeight': aVs['scrollHeight'], + 'imageTimeout': 0x0, + 'useCORS': !![], + 'foreignObjectRendering': !![], + 'logging': ![] + })['then'](function(aVt) { + if (aJH['Public']['getSceneStatus']() === 0x0) { + var aVq = document['getElementsByClassName'](doj(0x12d)); + if (!b7V(aVq) && aVq['length'] > 0x0) { + aVq[0x0]['style']['display'] = 'b' + doo(0x496) + 'k'; + } + } + if (!b7V(aVp)) { + aVp(aVt[dol(0xa9d)]()); + } + }); + } catch (aVv) { + b7H('错' + doo(0x497) + ':' + aVv); + } + }, + 'keyDownImmersiveRoam': function(aVw) { + if (Cesium['defined'](aJH['Camera_ImmersionRoaming'])) { + aJH['Camera_ImmersionRoaming']['iRKeyDown'](aVw); + } + }, + 'keyUpImmersiveRoam': function(aVx) { + if (Cesium['defined'](aJH['Camera_ImmersionRoaming'])) { + aJH['Camera_ImmersionRoaming']['iRKeyUp'](aVx); + } + } + }; + aJI[dol(0xa9e)] = { + 'drawDistanceResult': function(aVy) { + try { + aJH[dol(0xa9f)][dol(0xaa0)]['globe']['depthTestAgainstTerrain'] = ![]; + var aVz = []; + if (!b7V(aVy) && aVy['length'] == 0x2) { + aVz = aJH['funcPublic'][dol(0xaa1)](aVy, aJH['viewer']); + } else { + throw '参' + doo(0x498) + '误'; + } + var aVA = aVU(aVz)['toFixed'](0x2); + if (aVA < 0.01) { + throw '坐' + doo(0x499) + '合'; + } + var aVB = aJH['viewer']['entities']['add']({ + 'position': aVz[0x0], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities'][dol(0xaa2)](aVB); + var aVB = aJH['viewer']['entities']['add']({ + 'position': aVz[0x1], + 'point': { + 'color': Cesium[dol(0xaa3)]['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aVB); + var aVD = Cesium['Cartographic']['fromCartesian'](aVz[0x0]); + var aVE = Cesium['Cartographic']['fromCartesian'](aVz[0x1]); + var aVF, aVG, aVH, aVI; + if (aVD['height'] > aVE[dol(0xaa4)]) { + aVG = aVz[0x1]; + aVF = aVz[0x0]; + aVH = aVD['height'] - aVE['height']; + } else { + aVG = aVz[0x0]; + aVF = aVz[0x1]; + aVH = aVE['height'] - aVD['height']; + } + var aVJ = new Cesium[(dol(0xaa5))](); + Cesium['Cartesian3']['normalize'](aVF, aVJ); + Cesium['Cartesian3']['multiplyByScalar'](aVJ, aVH, aVJ); + var aVK = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](aVF, aVJ, aVK); + aVI = Cesium['Cartesian3']['distance'](aVK, aVG); + var aVL = aJH['viewer']['scene']['primitives'][dol(0xaa6)](aJH['funcPublic']['drawLine']([aVG, aVF], aJH['viewer'])); + aR7['tempPrimitives']['push'](aVL); + var aVM = aJH['viewer']['scene']['primitives']['add'](aJH['funcPublic']['drawLine']([aVF, aVK], aJH['viewer'])); + aR7['tempPrimitives']['push'](aVM); + var aVN = aJH['viewer']['scene']['primitives']['add'](aJH['funcPublic']['drawLine']([aVG, aVK], aJH['viewer'])); + aR7['tempPrimitives']['push'](aVN); + var aVO = aJH[dol(0xaa7)]['getCenter'](aVF, aVG); + var aVP = aJH['viewer']['entities']['add']({ + 'position': aVO, + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': aVA + (aJH['EditViewMode'] == doh(0x65) ? '' : '米'), + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x49a) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aVP); + var aVQ = aVH[dol(0xaa8)](0x2); + if (aVQ > 0.1) { + var aVP = aJH['viewer']['entities']['add']({ + 'position': aJH['funcPublic'][dol(0xaa9)](aVK, aVF), + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': doh(0x66) + aVQ + (aJH['EditViewMode'] == doh(0x67) ? '' : '米'), + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium[dol(0xaaa)]['BLACK'], + 'font': '1' + doo(0x49b) + '体', + 'horizontalOrigin': Cesium[dol(0xaab)]['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7[dol(0xaac)]['push'](aVP); + } + var aVS = aVI[dol(0xaad)](0x2); + if (aVQ > 0.1) { + var aVP = aJH['viewer']['entities']['add']({ + 'position': aJH['funcPublic']['getCenter'](aVK, aVG), + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': doh(0x68) + aVS + (aJH['EditViewMode'] == doh(0x69) ? '' : '米'), + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x49c) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aVP); + } + aVz = []; + aJH[dol(0xaae)]['scene']['requestRender'](); + function aVU(aVz) { + var aVW = 0x0; + for (var aVX = 0x1; aVX < aVz['length']; ++aVX) { + aVW += Cesium['Cartesian3']['distance'](aVz[aVX - 0x1], aVz[aVX]); + } + return aVW; + } + } catch (aVY) { + b7H('错' + doo(0x49d) + ':' + aVY); + } + }, + 'drawAreaResult': function(aVZ) { + try { + aJH['viewer']['scene']['globe']['depthTestAgainstTerrain'] = ![]; + var aW0 = []; + if (!b7V(aVZ) && aVZ['length'] > 0x2) { + aW0 = aJH['funcPublic']['inputRadianArrToCartesian3Arr'](aVZ, aJH['viewer']); + } else { + throw '参' + doo(0x49e) + '误'; + } + var aW1 = aJH['viewer']['entities']['add']({ + 'polyline': { + 'show': !![], + 'positions': aW0, + 'material': new Cesium['PolylineOutlineMaterialProperty']({ + 'color': Cesium['Color']['YELLOW'] + }), + 'width': 0x3 + } + }); + aR7['tempEntities']['push'](aW1); + var aW2 = ''; + var aW3 = aJH['funcPublic']['calcArea3D'](aW0); + if (aW3 < 0x0) + aW3 *= -0x1; + aW3 = aJH['funcPublic']['round'](aW3, 0x2); + if (aW3 > 0xf4240) { + aW3 = aJH['funcPublic']['round'](aW3 / 0xf4240, 0x2); + aW2 = aW3 + (aJH['EditViewMode'] == doh(0x6a) ? '' : '平' + doo(0x49f) + '里'); + } else { + aW2 = aW3 + (aJH['EditViewMode'] == doh(0x6b) ? '' : doh(0x6c)); + } + var aW4; + var aW5 = aJH['funcPublic']['getCartesian3ListCenter'](aW0); + var aW6 = aJH['viewer']['scene']['globe']['ellipsoid']['cartesianToCartographic'](aW5); + aW4 = Cesium[dol(0xaaf)]['fromDegrees'](Cesium['Math']['toDegrees'](aW6[dol(0xab0)]), Cesium['Math'][dol(0xab1)](aW6[dol(0xab2)]), aW6['height']); + var aW7 = aJH['viewer']['entities']['add']({ + 'position': aW4, + 'label': { + 'style': Cesium['LabelStyle']['FILL_AND_OUTLINE'], + 'text': aW2, + 'show': !![], + 'fillColor': Cesium['Color']['WHITE'], + 'showBackground': !![], + 'backgroundColor': Cesium['Color']['BLACK'], + 'font': '1' + doo(0x4a0) + '体', + 'horizontalOrigin': Cesium['HorizontalOrigin']['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'pixelOffset': new Cesium['Cartesian2'](0x1,0x1), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aW7); + aJH['viewer']['scene']['requestRender'](); + } catch (aW8) { + b7H('错' + doo(0x4a1) + ':' + aW8); + } + }, + 'distance': function(aW9, aWa, aWb) { + try { + if (!aJH['viewer']['scene']['_context']['_webgl2']) { + aWb = ![]; + } + b85(aJH); + var aWc = undefined; + var aWd = !![]; + aJH[dol(0xab3)]['event']('R' + doo(0x4a2) + 'N', function() { + aWd = ![]; + b8c(); + }); + aJH['Public']['event']('R' + doo(0x4a3) + 'P', function() { + aWd = !![]; + }); + aJH['Public']['event']('L' + doo(0x4a4) + 'N', function() { + aWd = ![]; + }); + aJH['Public']['event']('L' + doo(0x4a5) + 'P', function() { + aWd = !![]; + }); + aJH['Public']['event']('W' + doo(0x4a6) + 'L', function() { + b8c(); + }); + aJH['Public']['event']('M' + doo(0x4a7) + 'E', function(aWe) { + if (aWd) { + var aWf = b8y(aWe[dol(0xab4)], aJH, aWb); + var aWg = aWf['position']; + if (aWf['isAdsorbed']) { + aWc = aWf['position']; + var aWh = aJH['viewer']['scene']['cartesianToCanvasCoordinates'](aWc); + b8f(aWh); + } else { + b8c(); + } + if (aWk['length'] == 0x2) + aWk['pop'](); + if (aWk['length'] == 0x1 && aWg) + aWk['push'](aWg['clone']()); + aJH['viewer']['scene']['requestRender'](); + return; + var aWi = aJH['funcPublic']['pickPosition'](aWe['endPosition'], aJH['viewer']); + if (Cesium['defined'](aWi['type']) && aWi['type'] == 0x1) { + aWc = aJH['funcPublic']['calculateVertex'](aWe['endPosition'], aWi['position'], aJH); + if (Cesium['defined'](aWc)) { + aJH['viewer']['container']['style']['cursor'] = 'c' + doo(0x4a8) + 'r'; + } else { + aJH['viewer']['container'][dol(0xab5)]['cursor'] = 'm' + doo(0x4a9) + 'e'; + } + } else { + aJH['viewer']['container']['style']['cursor'] = 'm' + doo(0x4aa) + 'e'; + } + } + }); + aR7[dol(0xab6)] = function() { + if (aWk['length'] = aWj['length'] + 0x1) { + aWk['pop'](); + } + b8c(); + aJH['viewer']['scene']['requestRender'](); + } + ; + b7X(aJH['viewer']['canvas'], 'm' + doo(0x4ab) + 't', aR7['mouseoutEvent']); + aR7['mouseoverEvent'] = function() { + if (aWl) { + aWl['show'] = !![]; + } + aJH['viewer']['scene']['requestRender'](); + } + ; + b7X(aJH['viewer']['canvas'], 'm' + doo(0x4ac) + 'r', aR7['mouseoverEvent']); + var aWj = []; + var aWk = []; + var aWl = undefined; + var aWm; + aJH['Public']['event']('L' + doo(0x4ad) + 'K', function(aWn) { + aJH[dol(0xab7)]['style']['display'] = 'n' + doo(0x4ae) + 'e'; + var aWo = aJH['funcPublic']['pickPosition'](aWn['position'], aJH['viewer']); + var aWp = b8y(aWn[dol(0xab8)], aJH, aWb); + if (!aWp['position']) + return; + aWj['push'](aWp['position']); + aWk['push'](aWp['position']['clone']()); + if (aWj['length'] == 0x2) { + var aWq = aWK(aWj)['toFixed'](0x2); + if (aWq < 0.001) { + aWj['pop'](); + return; + } + aWm = aJH['viewer']['entities']['add']({ + 'position': aWj[0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aWm); + var aWr = Cesium['Cartographic']['fromCartesian'](aWj[0x0]); + var aWs = Cesium['Cartographic']['fromCartesian'](aWj[0x1]); + var aWt, aWu, aWv, aWw; + if (aWr['height'] > aWs['height']) { + aWu = aWj[0x1]; + aWt = aWj[0x0]; + aWv = aWr['height'] - aWs['height']; + aWw = aWs['latitude']; + } else { + aWu = aWj[0x0]; + aWt = aWj[0x1]; + aWv = aWs['height'] - aWr['height']; + aWw = aWr['latitude']; + } + var aWx = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['normalize'](aWt, aWx); + Cesium['Cartesian3']['multiplyByScalar'](aWx, aWv, aWx); + var aWy = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['subtract'](aWt, aWx, aWy); + var aWz = aWK([aWt, aWy])['toFixed'](0x2); + var aWA = Cesium['Cartographic']['fromCartesian'](aWy); + var aWB = aJH['funcPublic']['cartographicToCartesian3'](new Cesium['Cartographic'](aWA['longitude'],aWw,aWA['height']), aJH['viewer']); + var aWC = aWK([aWB, aWy])['toFixed'](0x2); + var aWD = aWK([aWB, aWu])['toFixed'](0x2); + var aWE = aJH['viewer']['scene']['primitives']['add'](aJH['funcPublic']['drawLine'](aWj, aJH['viewer'], Cesium['Color']['ORANGE'])); + aR7['tempPrimitives']['push'](aWE); + if (aWa) { + var aWF = aJH['funcPublic']['getCenter'](aWt, aWu); + var aWG = b8m(aWF, aWq + (aJH['EditViewMode'] == doh(0x6d) ? '' : 'm'), aJI); + aR7['tempCustomLabelIds']['push'](aWG); + } + if (!b7V(aW9)) { + aW9({ + 'points': aJH['funcPublic']['outCartesian3ToRadianArr'](aWj, aJH[dol(0xab9)]), + 'dis': aWq, + 'X': aWD, + 'Y': aWC, + 'Z': aWz + }); + } + aWj = []; + if (aWl) { + aJH['viewer']['entities']['remove'](aWl); + aWl = null; + aWk = []; + } + } else { + aWm = aJH['viewer'][dol(0xaba)]['add']({ + 'position': aWj[aWj['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aWm); + if (aWl == null) { + aWO(aJH); + } + } + aJH['viewer']['scene']['requestRender'](); + }); + aJH['Public']['event']('R' + doo(0x4af) + 'K', function(aWH) { + if (aWj['length'] > 0x0) { + for (var aWI = 0x0; aWI < aWj['length']; aWI++) { + var aWJ = aR7[dol(0xabb)][dol(0xabc)](); + aJH['viewer']['entities']['remove'](aWJ); + } + aWj = []; + if (aWl) { + aJH[dol(0xabd)]['entities']['remove'](aWl); + aWl = null; + aWk = []; + } + } + }); + function aWK(aWj) { + var aWM = 0x0; + for (var aWN = 0x1; aWN < aWj['length']; ++aWN) { + aWM += Cesium['Cartesian3']['distance'](aWj[aWN - 0x1], aWj[aWN]); + } + return aWM; + } + function aWO(aJH) { + aWl = aJH['viewer'][dol(0xabe)]['add']({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function() { + return aWk; + } + ,![]), + 'width': 0x2, + 'material': Cesium['Color']['ORANGE'], + 'show': !![] + } + }); + } + } catch (aWQ) { + b7H('错' + doo(0x4b0) + ':' + aWQ); + } + }, + 'angle': function(aWR, aWS, aWT) { + try { + if (!aJH['viewer']['scene']['_context']['_webgl2']) { + aWT = ![]; + } + b85(aJH); + var aWU = undefined; + var aWV = !![]; + aJH['Public']['event']('R' + doo(0x4b1) + 'N', function() { + aWV = ![]; + b8c(); + }); + aJH['Public']['event']('R' + doo(0x4b2) + 'P', function() { + aWV = !![]; + }); + aJH['Public']['event']('L' + doo(0x4b3) + 'N', function() { + aWV = ![]; + }); + aJH['Public']['event']('L' + doo(0x4b4) + 'P', function() { + aWV = !![]; + }); + aJH['Public']['event']('W' + doo(0x4b5) + 'L', function() { + b8c(); + }); + aJH['Public']['event']('M' + doo(0x4b6) + 'E', function(aWW) { + if (aWV) { + var aWX = b8y(aWW['endPosition'], aJH, aWT); + var aWY = aWX['position']; + if (aWX['isAdsorbed']) { + aWU = aWX['position']; + var aWZ = aJH['viewer']['scene'][dol(0xabf)](aWU); + b8f(aWZ); + } else { + b8c(); + } + if (aWY) { + if (aX1['length'] = aX0['length'] + 0x1) + aX1['pop'](); + if (aX1['length'] >= 0x1) + aX1['push'](aWY['clone']()); + } + aJH['viewer']['scene']['requestRender'](); + return; + } + }); + var aX0 = []; + var aX1 = []; + var aX2 = undefined; + aR7['mouseoutEvent'] = function() { + if (aX1['length'] = aX0['length'] + 0x1) { + aX1[dol(0xac0)](); + } + b8c(); + aJH['viewer']['scene']['requestRender'](); + } + ; + b7X(aJH['viewer']['canvas'], 'm' + doo(0x4b7) + 't', aR7['mouseoutEvent']); + aR7['mouseoverEvent'] = function() { + if (aX2) { + aX2['show'] = !![]; + } + aJH['viewer'][dol(0xac1)]['requestRender'](); + } + ; + b7X(aJH['viewer']['canvas'], 'm' + doo(0x4b8) + 'r', aR7['mouseoverEvent']); + var aX3 = 0x0; + var aX4 = null; + var aX5 = undefined; + aJH[dol(0xac2)]['event']('L' + doo(0x4b9) + 'K', function(aX6) { + aJH['nameOverlay']['style']['display'] = 'n' + doo(0x4ba) + 'e'; + var aX7 = b8y(aX6['position'], aJH, aWT); + if (!aX7['position']) + return; + aX0['push'](aX7['position']); + aX1[dol(0xac3)](aX7['position']['clone']()); + if (aX0['length'] == 0x3) { + var aX8 = Cesium['Cartesian3']['subtract'](aX0[0x0], aX0[0x1], new Cesium['Cartesian3']()); + var aX9 = Cesium['Cartesian3']['subtract'](aX0[0x2], aX0[0x1], new Cesium['Cartesian3']()); + var aXa = Cesium['Cartesian3']['angleBetween'](aX8, aX9); + aX3 = aJH['funcPublic']['round'](Cesium['Math'][dol(0xac4)](aXa), 0x2); + var aXb = aJH['viewer']['entities']['add']({ + 'position': aX0[aX0['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aXb); + var aXc = aJH['viewer']['scene']['primitives']['add'](aJH['funcPublic'][dol(0xac5)](aX0, aJH['viewer'])); + aR7['tempPrimitives'][dol(0xac6)](aXc); + var aXd = aXl(aX0); + if (aWS) { + var aXe = aXd[Math['ceil'](aXd['length'] / 0x2)]; + var aXf = b8m(aXe, aX3 + '°', aJI); + aR7['tempCustomLabelIds']['push'](aXf); + } + var aXc = aJH['viewer']['scene'][dol(0xac7)]['add'](aJH['funcPublic'][dol(0xac8)](aXd, aJH['viewer'])); + aR7['tempPrimitives']['push'](aXc); + if (!b7V(aWR)) { + aWR({ + 'points': aJH['funcPublic']['outCartesian3ToRadianArr'](aX0, aJH[dol(0xac9)]), + 'angle': aX3 + }); + } + aX0 = []; + if (aX2) { + aJH['viewer']['entities']['remove'](aX2); + aX2 = null; + aX1 = []; + } + } else { + var aXb = aJH[dol(0xaca)]['entities']['add']({ + 'position': aX0[aX0['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aXb); + if (aX2 == null) { + aXI(aJH); + } + } + aJH['viewer']['scene']['requestRender'](); + }); + aJH['Public']['event']('R' + doo(0x4bb) + 'K', function(aXi) { + if (aX0['length'] > 0x0) { + for (var aXj = 0x0; aXj < aX0['length']; aXj++) { + var aXk = aR7['tempEntities']['pop'](); + aJH['viewer']['entities']['remove'](aXk); + } + aX0 = []; + if (aX2) { + aJH['viewer']['entities']['remove'](aX2); + aX2 = null; + aX1 = []; + } + } + }); + function aXl(aX0) { + var aXn = aX0[0x0]; + var aXo = Cesium['clone'](aX0[0x1], !![]); + var aXp = aX0[0x2]; + aXn = Cesium['Cartesian3']['subtract'](aXn, aXo, new Cesium['Cartesian3']()); + aXp = Cesium['Cartesian3']['subtract'](aXp, aXo, new Cesium[(dol(0xacb))]()); + aXo['x'] = 0x0; + aXo['y'] = 0x0; + aXo['z'] = 0x0; + var aXq = Cesium['Cartesian3']['distance'](aXo, aXn); + var aXr = Cesium['Cartesian3']['distance'](aXo, aXp); + var aXs = []; + if (aXq < aXr) { + aXs = aXv(aXn, aXo, aXp); + } else { + aXs = aXv(aXp, aXo, aXn); + } + var aXt = []; + for (var aXu = 0x0; aXu < aXs['length']; aXu++) { + aXt['push'](Cesium['Cartesian3']['add'](aXs[aXu], aX0[0x1], new Cesium['Cartesian3']())); + } + return aXt; + } + function aXv(aXw, aXx, aXy) { + var aXz = Cesium['Cartesian3']['subtract'](aXw, aXx, new Cesium[(dol(0xacc))]()); + var aXA = Cesium['Cartesian3']['subtract'](aXy, aXx, new Cesium['Cartesian3']()); + var aXB = Cesium['Cartesian3']['lerp'](aXx, aXw, 0.5, new Cesium['Cartesian3']()); + var aXC = Cesium['Cartesian3']['cross'](aXz, aXA, new Cesium['Cartesian3']()); + var aXD = []; + var aX3 = Cesium['Cartesian3']['angleBetween'](aXz, aXA); + for (var aXF = 0x0; aXF < aX3; aXF = aXF + 0.01) { + var aXG = Cesium['Matrix4']['fromTranslationQuaternionRotationScale'](new Cesium['Cartesian3'](), Cesium['Quaternion']['fromAxisAngle'](aXC, aXF), new Cesium['Cartesian3'](0x1,0x1,0x1)); + var aXH = Cesium['Matrix4']['multiplyByPointAsVector'](aXG, aXB, new Cesium['Cartesian3']()); + aXD['push'](aXH); + } + return aXD; + } + function aXI(aJH) { + aX2 = aJH[dol(0xacd)][dol(0xace)]['add']({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function() { + return aX1; + } + ,![]), + 'width': 0x2, + 'material': Cesium[dol(0xacf)]['ORANGE'], + 'show': !![] + } + }); + } + } catch (aXK) { + b7H('错' + doo(0x4bc) + ':' + aXK); + } + }, + 'area': function(aXL, aXM, aXN) { + try { + if (!aJH['viewer']['scene']['_context']['_webgl2']) { + aXN = ![]; + } + b85(aJH); + var aXO = undefined; + var aXP = undefined; + var aXQ = ![]; + var aXR = []; + var aXS = undefined; + var aXT = '右' + doo(0x4bd) + '量'; + if (aJH['defaults']['language'][dol(0xad0)]() == doh(0x6e)) + aXT = doj(0x12e); + if (aJH[dol(0xad1)]['language']['toLowerCase']() == 'z' + doo(0x4be) + 'w') + aXT = '右' + doo(0x4bf) + '測'; + var aXU = !![]; + aJH['Public']['event']('R' + doo(0x4c0) + 'N', function() { + aXU = ![]; + b8c(); + }); + aJH['Public']['event']('R' + doo(0x4c1) + 'P', function() { + aXU = !![]; + }); + aJH[dol(0xad2)]['event']('L' + doo(0x4c2) + 'N', function() { + aXU = ![]; + }); + aJH['Public']['event']('L' + doo(0x4c3) + 'P', function() { + aXU = !![]; + }); + aJH['Public']['event']('W' + doo(0x4c4) + 'L', function() { + b8c(); + }); + aJH['Public']['event']('M' + doo(0x4c5) + 'E', function(aXV) { + if (aXU) { + var aXW = b8y(aXV['endPosition'], aJH, aXN); + var aXX = aXW['position']; + if (aXW['isAdsorbed']) { + aXS = aXW['position']; + var aXY = aJH['viewer'][dol(0xad3)]['cartesianToCanvasCoordinates'](aXS); + b8f(aXY); + } else { + b8c(); + } + if (aXX) { + if (aXZ['length'] = aXR['length'] + 0x1) + aXZ['pop'](); + if (aXZ[dol(0xad4)] >= 0x1) + aXZ['push'](aXX['clone']()); + } + aJH['viewer']['scene']['requestRender'](); + } + aJH['nameOverlay']['style']['display'] = 'b' + doo(0x4c6) + 'k'; + aJH['nameOverlay'][dol(0xad5)]['bottom'] = aJH['viewer']['canvas']['clientHeight'] - aXV['endPosition']['y'] + doh(0x6f); + aJH['nameOverlay']['style']['left'] = aXV['endPosition']['x'] + doh(0x70); + if (aXR['length'] > 0x2) { + aJH['nameOverlay']['textContent'] = aXT; + } + }); + var aXZ = []; + var aY0 = undefined; + aR7['mouseoutEvent'] = function() { + if (aXZ['length'] = aXR['length'] + 0x1) { + aXZ['pop'](); + } + b8c(); + aJH['viewer']['scene']['requestRender'](); + } + ; + b7X(aJH['viewer']['canvas'], 'm' + doo(0x4c7) + 't', aR7['mouseoutEvent']); + aR7['mouseoverEvent'] = function() { + if (aY0) { + aY0[dol(0xad6)] = !![]; + } + aJH['viewer']['scene']['requestRender'](); + } + ; + b7X(aJH['viewer']['canvas'], 'm' + doo(0x4c8) + 'r', aR7['mouseoverEvent']); + aJH[dol(0xad7)]['event']('L' + doo(0x4c9) + 'K', function(aY1) { + aJH['nameOverlay']['style']['display'] = 'n' + doo(0x4ca) + 'e'; + var aY2 = b8y(aY1['position'], aJH, aXN); + if (!aY2['position']) + return; + aXR['push'](aY2['position']); + aXZ[dol(0xad8)](aY2['position']['clone']()); + if (!aXQ) { + aXQ = !![]; + } + var aY3 = aJH['viewer']['entities']['add']({ + 'position': aXR[aXR['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities']['push'](aY3); + if (aY0 == null) { + aYh(aJH); + } + aJH['viewer']['scene']['requestRender'](); + }); + aJH['Public']['event']('R' + doo(0x4cb) + 'K', function(aY4) { + aY8(); + }); + aJH['Public']['event']('P' + doo(0x4cc) + 'T', function(aY5) { + aY8(); + }); + aJH['Public']['event']('P' + doo(0x4cd) + 'E', function(aY6) { + aY8(); + }); + aJH['Public']['event']('P' + doo(0x4ce) + 'D', function(aY7) { + aY8(); + }); + function aY8() { + if (aXR['length'] > 0x2) { + aXR['push'](aXR[0x0]); + var aY9 = aJH['viewer']['scene']['primitives']['add'](aJH['funcPublic']['drawLine'](aXR, aJH['viewer'])); + aR7['tempPrimitives']['push'](aY9); + var aYa = aJH['viewer']['entities']['add']({ + 'position': aXR[aXR['length'] - 0x1], + 'point': { + 'color': Cesium['Color']['YELLOW'], + 'pixelSize': 0x5, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + aR7['tempEntities'][dol(0xad9)](aYa); + var aYb = ''; + var aYc = aJH['funcPublic']['calcArea3D'](aXR); + if (aYc < 0x0) + aYc *= -0x1; + aYc = aJH[dol(0xada)]['round'](aYc, 0x2); + aYb = aYc + (aJH['EditViewMode'] == doh(0x71) ? '' : doh(0x72)); + if (aXM) { + var aYd; + var aYe = aJH['funcPublic']['getCartesian3ListCenter'](aXR); + var aYf = aJH['viewer'][dol(0xadb)]['globe']['ellipsoid']['cartesianToCartographic'](aYe); + if (aJH['viewer']['scene']['globe'] && aXO != 'O' + doo(0x4cf) + 'l') { + aYd = Cesium[dol(0xadc)]['fromDegrees'](Cesium['Math']['toDegrees'](aYf['longitude']), Cesium['Math']['toDegrees'](aYf['latitude']), aYf[dol(0xadd)] + 0.1); + } else { + aYd = Cesium['Cartesian3']['fromDegrees'](Cesium[dol(0xade)]['toDegrees'](aYf['longitude']), Cesium['Math']['toDegrees'](aYf['latitude']), aYf['height']); + } + var aYg = b8m(aYe, aYb, aJI); + aR7['tempCustomLabelIds']['push'](aYg); + } + if (!b7V(aXL)) { + aXL({ + 'points': aJH['funcPublic']['outCartesian3ToRadianArr'](aXR, aJH['viewer']), + 'area': aYc + }); + } + aXR = []; + aJH['nameOverlay']['textContent'] = ''; + aJH['nameOverlay']['style']['display'] = 'n' + doo(0x4d0) + 'e'; + aXQ = ![]; + aXP = undefined; + if (aY0) { + aJH['viewer'][dol(0xadf)]['remove'](aY0); + aY0 = null; + aXZ = []; + } + aJH['viewer']['scene']['requestRender'](); + } + } + function aYh(aJH) { + aY0 = aJH['viewer']['entities'][dol(0xae0)]({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function() { + return aXZ; + } + ,![]), + 'width': 0x2, + 'material': Cesium['Color']['ORANGE'], + 'show': !![] + } + }); + } + } catch (aYj) { + b7H('错' + doo(0x4d1) + ':' + aYj); + } + }, + 'clearAllTrace': function() { + try { + for (var aYk = 0x0; aYk < aR7['tempEntities'][dol(0xae1)]; aYk++) { + aJH['viewer']['entities']['remove'](aR7['tempEntities'][aYk]); + } + for (var aYk = 0x0; aYk < aR7['tempPrimitives']['length']; aYk++) { + aJH[dol(0xae2)]['scene']['primitives']['remove'](aR7[dol(0xae3)][aYk]); + } + for (var aYk = 0x0; aYk < aR7['tempCustomLabelIds']['length']; aYk++) { + var aYn = aR7['tempCustomLabelIds'][aYk]; + aJI[dol(0xae4)]['removeCustomHtml'](aYn); + } + aJH['funcPublic']['ClearMeasuringline']('o' + doo(0x4d2) + 's', aJH[dol(0xae5)]); + aJH['viewer']['entities']['removeById']('o' + doo(0x4d3) + 's'); + aJI['Feature']['clearSelectColor'](); + aR7['tempEntities'] = []; + aR7['tempPrimitives'] = []; + aR7['tempCustomLabelIds'] = []; + aJH['funcPublic']['clearBOX23line'](aJH['viewer']); + aJH[dol(0xae6)]['scene']['CAD_measure_lines'] && aJH['viewer']['scene']['primitives']['remove'](aJH['viewer'][dol(0xae7)][dol(0xae8)]); + aJH['viewer'][dol(0xae9)]['CAD_measure_lines'] = undefined; + aJH[dol(0xaea)]['scene']['requestRender'](); + } catch (aYo) { + b7H('错' + doo(0x4d4) + ':' + aYo); + } + }, + 'exit': function() { + try { + aJH['Public']['clearHandler'](); + if (aR7['mouseoutEvent']) + b81(aJH['viewer']['canvas'], 'm' + doo(0x4d5) + 't', aR7['mouseoutEvent']); + if (aR7['mouseoverEvent']) + b81(aJH['viewer'][dol(0xaeb)], 'm' + doo(0x4d6) + 'r', aR7['mouseoverEvent']); + b8k(aJH); + } catch (aYp) { + b7H('错' + doo(0x4d7) + ':' + aYp); + } + } + }; + aJI['Label'] = { + 'getLableByEvent': function(aYq, aYr) { + try { + var aYs = aJH['viewer']['camera']['pickEllipsoid'](aYq, aJH['viewer']['scene']['globe']['ellipsoid']); + if (aYs) { + var aYt = aJH['viewer']['scene']['pick'](aYq); + var aYq = aJH['viewer'][dol(0xaec)]['pickEllipsoid'](aYq); + if (Cesium[dol(0xaed)](aYt) && Cesium['defined'](aYt['id']) && aYt['id'][dol(0xaee)] != 'C' + doo(0x4d8) + 'G') { + if (!b7V(aJH['labels'])) { + var aYv = aJH['labels']['length']; + for (var aYw = 0x0; aYw < aYv; ++aYw) { + var aYx = aJH['labels']['get'](aYw); + if (aYx['id'] == aYt['id']) { + break; + } + } + } + if (!b7V(aJH['billboards'])) { + var aYy = aJH['billboards']['length']; + for (var aYw = 0x0; aYw < aYy; ++aYw) { + var aYx = aJH['billboards']['get'](aYw); + if (aYx['id'] == aYt[dol(0xaef)]) { + break; + } + } + } + } else + return; + } + aYr(aYt); + } catch (aYB) { + b7H('错' + doo(0x4d9) + ':' + aYB); + } + }, + 'addCustomHtml': function(aYC) { + if (!Cesium['defined'](aJH['CustomLabel'])) { + aJH['CustomLabel'] = new GLECustomLabel(aJH['viewer'],aJH); + } + aJH['CustomLabel'][dol(0xaf0)](aYC); + aJH['viewer'][dol(0xaf1)]['requestRender'](); + }, + 'updateCustomHtml': function(aYD) { + if (!Cesium['defined'](aJH['CustomLabel'])) { + aJH['CustomLabel'] = new GLECustomLabel(aJH['viewer'],aJH); + } + aJH['CustomLabel']['updateLable'](aYD); + aJH['viewer']['scene']['requestRender'](); + }, + 'removeCustomHtml': function(aYE) { + if (!Cesium['defined'](aJH['CustomLabel'])) { + aJH['CustomLabel'] = new GLECustomLabel(aJH['viewer'],aJH); + } + aJH['CustomLabel']['deleteLable'](aYE); + aJH['viewer']['scene']['requestRender'](); + }, + 'removeAllCustomHtml': function() { + if (!Cesium['defined'](aJH['CustomLabel'])) { + aJH['CustomLabel'] = new GLECustomLabel(aJH['viewer'],aJH); + } + aJH['CustomLabel']['deleteAll'](); + aJH['viewer']['scene']['requestRender'](); + } + }; + var aYF = undefined; + aJI['Feature'] = { + 'getById': function(aYG, aYH) { + try { + if (!b7V(aYH)) { + if (aJH[dol(0xaf2)][dol(0xaf3)](aYH['toString']()) === undefined) { + throw doj(0x12f); + } + aJH['tileset'] = aJH['m_model']['get'](aYH['toString']()); + } + var aYI = aJH['funcPublic']['disposeFeatureId'](aYG); + if (aYI['length'] > 0x1) + aYG = aYI[0x1]; + else + aYG = aYI[0x0]; + var aYJ = []; + for (var aYK = 0x0; aYK < aJH['tileset']['_selectedTiles']['length']; ++aYK) { + var aYL = aJH['tileset']['_selectedTiles'][aYK]['_content']; + var aYM = aJH['funcPublic']['GetFeatureFromContent'](aYL, aYG); + if (aYM == -0x1) { + continue; + } + var aYN = aYL['getFeature'](aYM); + aYJ[dol(0xaf4)](aYN); + } + return aYJ; + } catch (aYO) { + b7H('错' + doo(0x4da) + ':' + aYO); + } + }, + 'cancelBoxSelect': function() { + aJH['Public'][dol(0xaf5)](); + aJH['boxRegionElement']['style']['display'] = 'n' + doo(0x4db) + 'e'; + aJH['viewer']['scene']['requestRender'](); + }, + 'boxSelect': function(aYP, aYQ, aYR, aYS) { + try { + var aYT = {}; + if (aJH['m_model']['size'] == 0x0) + return; + if (b7V(aYS)) + aYS = 0x0; + if (!b7V(aYQ) && !b7V(aYR)) { + aJH['m_model']['forEach'](function(aYU, aYV) { + if (aYU['show']) + aYT[aYV] = new Set(); + }); + aZl(aYQ, aYR); + if (!b7V(aYP)) { + var aYW = []; + aJH['m_model']['forEach'](function(aYX, aYY) { + if (aYX['show']) { + if (aYT[aYY]['size'] > 0x0) { + aYW['push'](Array['from'](aYT[aYY])); + } + } + }); + aYT = {}; + aYP(aYW); + aJH['viewer']['scene']['requestRender'](); + } + } else { + var aYZ; + var aZ0; + aJH['Public']['event']('L' + doo(0x4dc) + 'K', function(aZ1) { + if (!Cesium['defined'](aYZ)) { + aYZ = Cesium['Cartesian2']['clone'](aZ1['position'], new Cesium['Cartesian2']()); + return; + } + if (Cesium['defined'](aYZ)) { + aJH['m_model']['forEach'](function(aZ2, aZ3) { + if (aZ2['show']) + aYT[aZ3] = new Set(); + }); + aZ0 = Cesium['Cartesian2']['clone'](aZ1['position'], new Cesium[(dol(0xaf6))]()); + aZl(aYZ, aZ0); + aYZ = undefined; + aZ0 = undefined; + aJH['boxRegionElement']['style'][dol(0xaf7)] = 'n' + doo(0x4dd) + 'e'; + aJH['boxRegionElement']['style']['width'] = '0' + doo(0x4de) + 'x'; + aJH['boxRegionElement']['style']['height'] = '0' + doo(0x4df) + 'x'; + if (!b7V(aYP)) { + var aYW = []; + aJH[dol(0xaf8)]['forEach'](function(aZ5, aZ6) { + if (aZ5[dol(0xaf9)]) { + if (aYT[aZ6]['size'] > 0x0) { + aYW['push'](Array['from'](aYT[aZ6])); + } + } + }); + aYT = {}; + aYP(aYW); + aJH['viewer']['scene']['requestRender'](); + } + } + }); + aJH['Public']['event']('M' + doo(0x4e0) + 'E', function(aZ7) { + if (Cesium['defined'](aYZ)) { + var aZ0 = aZ7['endPosition']; + var aZ9 = aZa(aYZ, aZ0); + aJH['boxRegionElement']['style']['display'] = 'b' + doo(0x4e1) + 'k'; + aJH['boxRegionElement']['style']['left'] = aZ9['x'] + doh(0x73); + aJH['boxRegionElement']['style']['top'] = aZ9['y'] + doh(0x74); + aJH['boxRegionElement']['style']['width'] = aZ9['width'] + doh(0x75); + aJH['boxRegionElement']['style']['height'] = aZ9['height'] + doh(0x76); + aJH['viewer']['scene']['requestRender'](); + } + }); + } + function aZa(aYZ, aZ0) { + var aZd = Math['min'](aYZ['x'], aZ0['x']); + var aZe = Math['max'](aYZ['x'], aZ0['x']); + var aZf = Math['min'](aYZ['y'], aZ0['y']); + var aZg = Math['max'](aYZ['y'], aZ0['y']); + var aZh = aZe - aZd; + var aZi = aZg - aZf; + return new Cesium['BoundingRectangle'](aZd,aZf,aZh,aZi); + } + function aZj(aZk) { + return new Cesium['Cartesian2'](aZk['x'] + aZk[dol(0xafa)] / 0x2,aZk['y'] + aZk['height'] / 0x2); + } + function aZl(aYZ, aZ0) { + aYZ = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](aJH['viewer']['scene'], aYZ, aYZ); + aZ0 = Cesium['SceneTransforms'][dol(0xafb)](aJH['viewer']['scene'], aZ0, aZ0); + var aZo = aZa(aYZ, aZ0); + var aZp = aZj(aZo); + var aZq = b0v(aZp, aZo['width'], aZo['height']); + aJH['m_model']['forEach'](function(aZr, aZs) { + if (aZr['show']) { + var aZt = []; + var aZu = !![]; + if (Cesium['defined'](aZr['otherFeatureVisible'])) { + aZu = aZr['otherFeatureVisible']; + } + b0j(aZr[dol(0xafc)], aZq, aZt); + if (aZt['length'] > 0x0) { + for (var aZv = 0x0; aZv < aZt['length']; ++aZv) { + aZw(aZt[aZv], aZq, aYT[aZs], aZo, aZu); + } + } + } + }); + } + function aZw(aZx, aZy, aZz, aZA, aZB) { + var aZC = !b7V(aZx[dol(0xafd)]['modelMatrix']) ? new Cesium['Matrix4']['clone'](aZx[dol(0xafe)]['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var aZD = aZx['children']; + var aZE = aZD['length']; + for (var aZF = 0x0; aZF < aZE; ++aZF) { + if (Cesium['defined'](aZD[aZF]['_content']) && Cesium['defined'](aZD[aZF]['_content']['_batchTable'])) { + var aZG = aZD[aZF]['_content']['_batchTable']['_properties']; + var aZH = aZD[aZF]['_content']['featuresLength']; + for (var aZI = 0x0; aZI < aZH; aZI++) { + var aZJ = aZD[aZF]['_content']['_batchTable']['_properties']['name'][aZI]; + if (!aZz['has'](aZx['tileset']['id'] + '^' + aZJ)) { + var aZK = new Cesium['Cartesian3'](); + var aZL = new Cesium['Cartesian3'](); + if (Cesium['defined'](aZG['newMaxPoint']) && aZG['newMaxPoint']['length'] > 0x0) { + aZK = new Cesium[(dol(0xaff))](aZG['newMaxPoint'][aZI][0x0],aZG['newMaxPoint'][aZI][0x1],aZG['newMaxPoint'][aZI][0x2]); + aZL = new Cesium['Cartesian3'](aZG['newMaxPoint'][aZI][0x0],aZG['newMaxPoint'][aZI][0x1],aZG['newMaxPoint'][aZI][0x2]); + } else { + aZK = new Cesium['Cartesian3'](aZG['maxPoint'][aZI][0x0],aZG['maxPoint'][aZI][0x1],aZG[dol(0xb00)][aZI][0x2]); + aZL = new Cesium['Cartesian3'](aZG['minPoint'][aZI][0x0],aZG[dol(0xb01)][aZI][0x1],aZG['minPoint'][aZI][0x2]); + } + var aZM = aZD[aZF]['_content']['_model']; + if (aZM['isInstanced']) { + let aZN = new Cesium['Matrix4'](); + aZM[dol(0xb02)](aZI)['clone'](aZN); + Cesium[dol(0xb03)]['multiplyByPoint'](aZN, aZK, aZK); + Cesium['Matrix4']['multiplyByPoint'](aZN, aZL, aZL); + } + Cesium['Matrix4'][dol(0xb04)](aZx['tileset']['root'][dol(0xb05)], aZK, aZK); + Cesium['Matrix4'][dol(0xb06)](aZC, aZK, aZK); + Cesium['Matrix4']['multiplyByPoint'](aZx['tileset']['root']['transform'], aZL, aZL); + Cesium['Matrix4'][dol(0xb07)](aZC, aZL, aZL); + var aZO = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](aJH['viewer']['scene'], aZK, new Cesium['Cartesian2']()); + if (Cesium['defined'](aZO)) { + var aZP = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](aJH['viewer']['scene'], aZO, new Cesium['Cartesian2']()); + var aZQ = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](aJH['viewer']['scene'], aZL, new Cesium['Cartesian2']()); + if (Cesium['defined'](aZQ)) { + var aZR = Cesium['SceneTransforms']['transformWindowToDrawingBuffer'](aJH['viewer']['scene'], aZQ, new Cesium[(dol(0xb08))]()); + if (Cesium[dol(0xb09)](aZP) && Cesium[dol(0xb0a)](aZR)) { + var aZS = aZa(aZP, aZR); + if (aYS == 0x1) { + var aZT = b0c(aZA, aZS); + if (Cesium['Intersect']['INSIDE'] === aZT) { + var aZU = aZx['tileset']['id'] + '^' + aZJ; + var aZV = aJH[dol(0xb0b)]['get'](aZx['tileset']['id']['toString']()); + if (aZV['size'] > 0x0) { + if (aZV['has'](aZJ)) { + var aZW = aZV['get'](aZJ); + if (aZW['show']) + aZz['add'](aZU); + } else { + if (aZB) + aZz['add'](aZU); + } + } else { + aZz['add'](aZU); + } + } + } else { + var aZT = aZA['intersect'](aZS); + if (Cesium['Intersect']['OUTSIDE'] !== aZT) { + var aZU = aZx['tileset']['id'] + '^' + aZJ; + var aZV = aJH['modelShowMap']['get'](aZx['tileset']['id']['toString']()); + if (aZV['size'] > 0x0) { + if (aZV['has'](aZJ)) { + var aZW = aZV['get'](aZJ); + if (aZW[dol(0xb0c)]) + aZz['add'](aZU); + } else { + if (aZB) + aZz['add'](aZU); + } + } else { + aZz[dol(0xb0d)](aZU); + } + } + } + } + } + } + } + } + } else { + aZw(aZD[aZF], aZy, aZz, aZA); + } + } + } + function b01(b02) { + var b03 = aJH['viewer']['scene']['canvas'], b04 = aJH['viewer']['scene']['camera'], b05 = b04[dol(0xb0e)], b06 = b04['viewMatrix'], b07 = Cesium['Matrix4']['IDENTITY'], b08, b09 = b05['projectionMatrix'], b0a, b0b; + b08 = Cesium['Matrix4']['multiply'](b06, b07, new Cesium['Matrix4']()); + b0a = Cesium['Matrix4']['multiply'](b09, b08, new Cesium['Matrix4']()); + b0b = Cesium['Matrix4']['computeViewportTransformation']({ + 'x': 0x0, + 'y': 0x0, + 'width': b03['clientWidth'], + 'height': b03['clientHeight'] + }, 0x0, 0x1, new Cesium['Matrix4']()); + return Cesium['Transforms']['pointToWindowCoordinates'](b0a, b0b, b02); + } + ;function b0c(b0d, b0e) { + var b0f = b0d['x']; + var b0g = b0d['y']; + var b0h = b0e['x']; + var b0i = b0e['y']; + if (b0f <= b0h && b0g <= b0i && b0f + b0d['width'] >= b0h + b0e['width'] && b0g + b0d['height'] >= b0i + b0e['height']) { + return Cesium['Intersect']['INSIDE']; + } + return Cesium['Intersect'][dol(0xb0f)]; + } + ;function b0j(b0k, b0l, b0m) { + var b0n = b0k['_boundingVolume']; + var b0o = b0k['_contentBoundingVolume']; + if (!b0s(b0l, b0n)) { + return; + } + if (!Cesium['defined'](b0o) || b0s(b0l, b0o)) { + b0m['push'](b0k); + } + var b0p = b0k['children']; + var b0q = b0p['length']; + for (var b0r = 0x0; b0r < b0q; ++b0r) { + b0j(b0p[b0r], b0l, b0m); + } + } + function b0s(b0t, b0u) { + return b0t['computeVisibility'](b0u) !== Cesium['Intersect']['OUTSIDE']; + } + function b0v(b0w, b0x, b0y) { + var b0z = aJH['viewer']['scene']['drawingBufferWidth']; + var b0A = aJH['viewer']['scene']['drawingBufferHeight']; + var b0B = aJH['viewer']['scene'][dol(0xb10)]['frustum']; + var b0C = b0B['near']; + var b0D = b0B['far']; + var b0E = Math['tan'](b0B['fovy'] * 0.5); + var b0F = b0B['aspectRatio'] * b0E; + var b0G = 0x2 * b0w['x'] / b0z - 0x1; + var b0H = 0x2 * (b0A - b0w['y']) / b0A - 0x1; + var b0I = b0G * b0C * b0F; + var b0J = b0H * b0C * b0E; + var b0K = new Cesium['Cartesian2'](); + b0K = b0B['getPixelDimensions'](b0z, b0A, b0C, aJH[dol(0xb11)]['scene']['pixelRatio'], new Cesium['Cartesian2']()); + var b0L = b0K['x'] * b0x * 0.5; + var b0M = b0K['y'] * b0y * 0.5; + var b0N; + if (b0B instanceof Cesium['PerspectiveFrustum']) { + b0N = new Cesium['PerspectiveOffCenterFrustum'](); + } else if (b0B instanceof Cesium['OrthographicFrustum']) { + b0N = new Cesium['OrthographicOffCenterFrustum'](); + } + b0N['top'] = b0J + b0M; + b0N['bottom'] = b0J - b0M; + b0N[dol(0xb12)] = b0I + b0L; + b0N['left'] = b0I - b0L; + b0N['near'] = b0C; + b0N['far'] = b0D; + var b0O = b0N['computeCullingVolume'](aJH['viewer']['scene']['camera']['positionWC'], aJH[dol(0xb13)]['scene']['camera']['directionWC'], aJH[dol(0xb14)]['scene']['camera']['upWC']); + return b0O; + } + } catch (b0P) { + throw b0P; + } + }, + 'getByEvent': function(b0Q, b0R, b0S, b0T) { + try { + if (!Cesium['defined'](b0S)) + b0S = !![]; + if (!Cesium['defined'](b0T)) + b0T = ![]; + var b0U = ''; + var b0V = undefined; + var b0W = aJH['viewer']['scene']['drillPick'](b0Q, 0x14, 0x14); + if (b0W['length'] > 0x0) { + for (var b0X = 0x0; b0X < b0W['length']; b0X++) { + var b0Y = b0W[b0X]; + if (b0Y instanceof Cesium['Cesium3DTileFeature']) { + b0V = b0Y; + break; + } + } + } + if (b0V && Cesium['defined'](b0V) && b0V instanceof Cesium['Cesium3DTileFeature']) { + var b0Z = b0V['getProperty']('n' + doo(0x4e2) + 'e'); + if (!Cesium['defined'](b0Z)) { + b0Z = b0V['getProperty'](doh(0x77)); + } + if (!b0T) { + aJI['Feature']['clearSelectColor'](); + } + aJH['m_model']['forEach'](function(b10, b11) { + if (b10['id'] === b0V['tileset']['id']) { + aJH['tileset'] = b10; + b0U = b11; + } + }); + if (b0S) { + var b12 = aJH['defaults']['selectedcolor']instanceof Cesium['Color'] ? aJH['defaults']['selectedcolor']['toCssColorString']() : Cesium['Color']['fromCssColorString'](aJH['defaults']['selectedcolor'])['toCssColorString'](); + var b13 = aJH['modelStyleMap']['get'](b0U['toString']()); + var b14 = { + 'featureId': b0Z, + 'color': b12, + 'original': 'r' + doo(0x4e3) + ')' + }; + if (!b13[dol(0xb15)](b0Z)) { + b13['set'](b0Z, b14); + } else { + var b15 = b13['get'](b0Z); + b15['original'] = Cesium['clone'](b15['color']); + b15[dol(0xb16)] = Cesium['clone'](b14[dol(0xb17)]); + } + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], b13); + } + b0R({ + 'id': b0U + '^' + b0Z, + 'batchId': b0V['_batchId'] + }); + } else if (b0V && Cesium[dol(0xb18)](b0V) && b0V instanceof Object) { + var b13 = aJH['modelStyleMap']['get'](aJH[dol(0xb19)]['id']); + var b17 = ''; + if (b13['size'] > 0x0) { + b13['forEach'](function(b18, b19) { + if (b18['isParam'] || b18['isPolylineFlowMaterialProperty']) { + b17 += '#' + b18['featureId']; + } + }); + } + var b1a = aJH['tileset']['getParamObject']() == undefined ? [] : [aJH['tileset']['getParamObject']()]; + if (aJH['tileset']['stylecolor'] != undefined) { + var b1b = Cesium[dol(0xb1a)]['fromCssColorString'](aJH['tileset'][dol(0xb1b)])['alpha']; + aJH['funcPublic']['updateEntityAlpha'](b1a, b1b, b17); + } + if (!b0T) { + aJI[dol(0xb1c)][dol(0xb1d)](); + } + if (b0V['id']instanceof Cesium['Entity']) { + var b1c = b0V['id']['entityCollection']['_owner']['_name']; + if (b0S) { + var b12 = aJH['defaults']['selectedcolor']instanceof Cesium['Color'] ? aJH['defaults']['selectedcolor']['toCssColorString']() : Cesium['Color']['fromCssColorString'](aJH['defaults']['selectedcolor'])['toCssColorString'](); + b12 = Cesium['Color']['fromCssColorString'](b12); + var b1e = Cesium['Color'][dol(0xb1e)]({ + 'red': b12['red'], + 'green': b12['green'], + 'blue': b12['blue'], + 'alpha': b12['alpha'] + }); + aJH['m_model']['forEach'](function(b1f, b1g) { + if (b1f['id'] === b1c) { + aJH['tileset'] = b1f; + b0U = b1g; + } + }); + var b13 = aJH['modelStyleMap']['get'](aJH['tileset']['id']); + var b0Z = b0V['id']['name']; + var b14 = { + 'featureId': b0Z, + 'color': b1e, + 'original': 'r' + doo(0x4e4) + ')' + }; + if (!b13[dol(0xb1f)](b0Z)) { + b13['set'](b0Z, b14); + } else { + var b15 = b13['get'](b0Z); + b15['original'] = Cesium['clone'](b15['color']); + b15['color'] = Cesium['clone'](b14['color']); + } + if (!(b15 && b15['isPolylineFlowMaterialProperty'] && b0T)) { + var b1l = aJH['tileset']['getParamObject'](); + aJH['funcPublic']['updateEntityFeatureColor'](b0V[dol(0xb20)]['name'], b1e, aJH['viewer'], b1l); + } + } + if (b0V['id'] != undefined) { + b0R({ + 'id': b1c + '^' + b0V['id']['name'], + 'batchId': 0x0 + }); + } + } + } else { + b0R(undefined); + } + } catch (b1m) { + throw b1m; + } + }, + 'zoomTo': function(b1n, b1o, b1p, b1q, b1r, b1s, b1t, b1u, b1v, b1w) { + try { + if (b7V(b1w)) { + b1w = 0.5; + } + if (b1v == undefined) + b1v = !![]; + if (!b7V(b1o)) { + if (aJH['m_model']['get'](b1o['toString']()) === undefined) { + throw doj(0x130); + } + aJH['tileset'] = aJH['m_model']['get'](b1o['toString']()); + } + var b1x; + var b1y = []; + if (!Array['isArray'](b1n)) { + b1n = [b1n]; + } + for (var b1z = 0x0; b1z < b1n['length']; b1z++) { + b1x = aJH['funcPublic']['disposeFeatureId'](b1n[b1z]); + if (b1x['length'] > 0x1) + b1y['push'](b1x[0x1]); + else + b1y['push'](b1x[0x0]); + } + aJI['Feature']['clearSelectColor'](); + var b1A = !b7V(aJH['tileset']['modelMatrix']) ? new Cesium[(dol(0xb21))]['clone'](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var b1B = ![]; + var b1C = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b1D = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var b1E = Cesium['Color']['fromCssColorString'](aJH['tileset']['stylecolor']); + if (!b7V(b1q)) { + aJH['tileset']['stylecolor'] = b1E['withAlpha'](b1q)['toCssColorString'](); + } else { + aJH['tileset']['stylecolor'] = b1E['withAlpha'](0.2)['toCssColorString'](); + } + for (var b1z = 0x0; b1z < b1y['length']; b1z++) { + var b1G = aJI['Feature']['getVertex'](b1y[b1z], b1o); + var b1H = GetMaxMinPoint(b1G); + var b1I = b1H[0x0]; + var b1J = b1H[0x1]; + b1C = Cesium['Cartesian3']['maximumByComponent'](b1C, b1I, new Cesium['Cartesian3']()); + b1D = Cesium['Cartesian3']['minimumByComponent'](b1D, b1J, new Cesium['Cartesian3']()); + b1B = !![]; + } + if (b1B) { + var b1E = Cesium['Color']['fromCssColorString'](aJH['tileset']['stylecolor']); + if (!b7V(b1q)) { + aJH['tileset']['stylecolor'] = b1E['withAlpha'](b1q)['toCssColorString'](); + } + var b1L = aJH['defaults']['selectedcolor']instanceof Cesium['Color'] ? aJH['defaults']['selectedcolor'] : Cesium['Color']['fromCssColorString'](aJH['defaults'][dol(0xb22)]); + var b1M = aJH['modelStyleMap']['get'](b1o['toString']()); + for (var b1N = 0x0; b1N < b1y[dol(0xb23)]; b1N++) { + var b1O = { + 'featureId': b1y[b1N], + 'color': b1L['toCssColorString'](), + 'original': 'r' + doo(0x4e5) + ')' + }; + if (!b1M[dol(0xb24)](b1y[b1N])) { + b1M['set'](b1y[b1N], b1O); + } else { + var b1P = b1M['get'](b1y[b1N]); + b1P[dol(0xb25)] = Cesium[dol(0xb26)](b1P['color']); + b1P['color'] = Cesium['clone'](b1O['color']); + } + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], b1M); + } + aJH['viewer']['scene']['requestRender'](); + } + var b1Q = Cesium['Cartesian3']['equals'](b1C, new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE'])); + if (b1Q) { + if (!b7V(b1r)) + b1r(-0x1); + return -0x1; + } + var b1R = Cesium['Cartesian3']['subtract'](b1C, b1D, new Cesium['Cartesian3']()); + var b1S = Cesium['Cartesian3']['midpoint'](b1C, b1D, new Cesium['Cartesian3']()); + if (b1v) { + aJH['funcPublic']['drawBox23Lines'](b1S, b1R, aJH); + } + if (b1p) { + var b1T = Cesium['Matrix4']['multiplyByPoint'](aJH[dol(0xb27)]['root']['transform'], b1S, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](b1A, b1T, b1T); + if (aJH['viewer'][dol(0xb28)]['mode'] === Cesium['SceneMode']['SCENE2D']) { + var b1U = aJH['Public']['cartesian3ToRadians']([b1T['x'], b1T['y'], b1T['z']]); + b1T = aJH['Public']['radiansToCartesian3'](b1U[0x1], b1U[0x0], b1U[0x2]); + } + var b1V = Cesium['Cartesian3']['magnitude'](b1R); + zoomSphere = new Cesium['BoundingSphere'](b1T,b1V * 0x3); + if (b7V(b1s)) + b1s = 0x5a; + if (b7V(b1t)) + b1t = 0x3c; + if (b7V(b1u)) + b1u = b1V * 2.5; + aJH['viewer']['camera']['flyToBoundingSphere'](zoomSphere, { + 'duration': b1w, + 'offset': new Cesium['HeadingPitchRange'](Cesium['Math']['toRadians'](Number(b1s)),Cesium['Math']['toRadians'](Number(b1t)),Number(b1u)), + 'complete': function() { + if (!b7V(b1r)) + b1r(0x0); + } + }); + } + return 0x0; + } catch (b1W) { + console['log'](b1y, b1o, b1p, b1q, b1r, b1s, b1t, b1u, b1W); + } + }, + 'getVertex': function(b1X, b1Y) { + try { + var b1Z = aJH[dol(0xb29)]['disposeFeatureId'](b1X); + if (!b7V(b1Y)) { + if (aJH['m_model']['get'](b1Y['toString']()) === undefined) { + throw doj(0x131); + } + aJH['tileset'] = aJH['m_model']['get'](b1Y['toString']()); + } else { + b1Y = b1Z[0x0]['toString'](); + if (aJH[dol(0xb2a)]['get'](b1Y) === undefined) { + throw doj(0x132); + } + aJH['tileset'] = aJH['m_model']['get'](b1Y); + } + if (b1Z['length'] > 0x1) + b1X = b1Z[0x1]; + else + b1X = b1Z[0x0]; + var b20 = []; + aJH['funcPublic']['GetVertexByFeatureId'](aJH['tileset'], aJH['tileset']['root'], b1X, b20, -0x1); + return b20; + } catch (b21) { + b7H(b21); + return []; + } + }, + 'original': function(b22, b23) { + try { + var b24 = aJH['funcPublic']['disposeFeatureId'](b22); + if (!b7V(b23)) { + if (aJH['m_model']['get'](b23['toString']()) === undefined) { + throw doj(0x133); + } + aJH[dol(0xb2b)] = aJH['m_model']['get'](b23['toString']()); + } else { + b23 = b24[0x0]['toString'](); + if (aJH['m_model']['get'](b23) === undefined) { + throw doj(0x134); + } + aJH['tileset'] = aJH['m_model']['get'](b23); + } + aJH['tileset']['stylecolor'] = 'r' + doo(0x4e6) + ')'; + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], new Map()); + return 0x0; + } catch (b25) { + b7H('错' + doo(0x4e7) + ':' + b25); + } + }, + 'clearSelectColor': function(b26) { + var b27 = 0x1; + if (aJH['tileset']['stylecolor'] != undefined) { + var b28 = Cesium['Color'][dol(0xb2c)](aJH['tileset']['stylecolor'])['alpha']; + b27 = b28; + } + aJH['m_model']['forEach'](function(b29, b2a) { + var b2b = aJH[dol(0xb2d)][dol(0xb2e)](b2a['toString']()); + if (b2b['size'] > 0x0) { + b2b['forEach'](function(b2c, b2d) { + if (b26 && b26['indexOf']('#' + b2c['featureId']) > -0x1) { + return; + } + if (!b7V(b2c['original'])) { + if ('r' + doo(0x4e8) + ')' === b2c['original']) { + b2b[dol(0xb2f)](b2d); + } else { + b2c['color'] = b2c['original']; + } + } + }); + aJH['funcPublic']['updateModelStyle'](b29, b2b); + } + }); + aJH['funcPublic']['clearBOX23line'](aJH['viewer']); + }, + 'showFeatures': function(b2e, b2f, b2g) { + try { + var b2h = aJH['funcPublic']['splitFeatureId'](b2e); + if (!b7V(b2f)) { + if (aJH['m_model']['get'](b2f['toString']()) === undefined) { + throw doj(0x135); + } + aJH['tileset'] = aJH['m_model']['get'](b2f['toString']()); + } else { + var b2i = aJH['funcPublic']['disposeFeatureId'](b2h[0x0]); + b2f = b2i[0x0]['toString'](); + if (aJH[dol(0xb30)]['get'](b2f) === undefined) { + throw doj(0x136); + } + aJH['tileset'] = aJH['m_model']['get'](b2f); + } + var b2j = aJH['modelShowMap']['get'](b2f['toString']()); + var b2k = ''; + b2j['clear'](); + for (var b2l = 0x0; b2l < b2h['length']; b2l++) { + var b2m = b2h[b2l]; + if (b2m[dol(0xb31)] > 0x0) { + var b2n = aJH[dol(0xb32)]['disposeFeatureId'](b2m); + if (b2n['length'] > 0x1) + b2m = b2n[0x1]; + else + b2m = b2n[0x0]; + var b2o = { + 'featureId': b2m, + 'show': !![] + }; + b2j['set'](b2m, b2o); + b2k += b2m + '#'; + } + } + var b2p = ![]; + if (b7V(b2e)) + b2p = !![]; + if (!b7V(b2f)) { + var b2j = aJH['modelShowMap']['get'](b2f[dol(0xb33)]()); + aJH[dol(0xb34)]['updateModelShowStyle'](aJH['tileset'], b2j, b2p, b2g); + } else { + aJH['m_model'][dol(0xb35)](function(b2r, b2s) { + var b2j = aJH['modelShowMap']['get'](b2s['toString']()); + aJH['funcPublic']['updateModelShowStyle'](b2r, b2j, b2p, b2g); + }); + } + return 0x0; + } catch (b2u) { + b7H('错' + doo(0x4e9) + ':' + b2u); + } + }, + 'setVisible': function(b2v, b2w, b2x, b2y) { + try { + var b2z = aJH[dol(0xb36)]['splitFeatureId'](b2v); + if (!b7V(b2x)) { + if (aJH['m_model']['get'](b2x['toString']()) === undefined) { + throw doj(0x137); + } + aJH['tileset'] = aJH['m_model']['get'](b2x[dol(0xb37)]()); + } else { + var b2A = aJH['funcPublic']['disposeFeatureId'](b2z[0x0]); + b2x = b2A[0x0]['toString'](); + if (aJH[dol(0xb38)]['get'](b2x) === undefined) { + throw doj(0x138); + } + aJH['tileset'] = aJH['m_model']['get'](b2x); + } + var b2B = aJH['modelShowMap']['get'](b2x['toString']()); + var b2C = ''; + for (var b2D = 0x0; b2D < b2z['length']; b2D++) { + var b2E = b2z[b2D]; + if (b2E['length'] > 0x0) { + var b2F = aJH['funcPublic'][dol(0xb39)](b2E); + if (b2F['length'] > 0x1) + b2E = b2F[0x1]; + else + b2E = b2F[0x0]; + var b2G = { + 'featureId': b2E, + 'show': b2w + }; + b2B['set'](b2E, b2G); + b2C += b2E + '#'; + } + } + if (!b7V(b2x)) { + var b2B = aJH[dol(0xb3a)]['get'](b2x['toString']()); + aJH['funcPublic']['updateModelShowStyle'](aJH['tileset'], b2B, b2y); + } else { + aJH['m_model']['forEach'](function(b2I, b2J) { + var b2B = aJH[dol(0xb3b)][dol(0xb3c)](b2J['toString']()); + aJH['funcPublic']['updateModelShowStyle'](b2I, b2B, b2y); + }); + } + return 0x0; + } catch (b2L) { + b7H('错' + doo(0x4ea) + ':' + b2L); + } + }, + 'setColor': function(b2M, b2N, b2O, b2P, b2Q, b2R) { + try { + if (b7V(b2Q)) + b2Q = 0x1; + var b2S = 'r' + doo(0x4eb) + '(' + b2N + ',' + b2O + ',' + b2P + ',' + b2Q + ')'; + var b2T = aJH['funcPublic']['splitFeatureId'](b2M); + if (!b7V(b2R)) { + if (aJH['m_model']['get'](b2R['toString']()) === undefined) { + throw doj(0x139); + } + aJH['tileset'] = aJH['m_model'][dol(0xb3d)](b2R['toString']()); + } else { + var b2U = aJH['funcPublic']['disposeFeatureId'](b2T[0x0]); + b2R = b2U[0x0]['toString'](); + if (aJH['m_model'][dol(0xb3e)](b2R) === undefined) { + throw doj(0x13a); + } + aJH['tileset'] = aJH['m_model']['get'](b2R); + } + var b2V = aJH['modelStyleMap']['get'](b2R['toString']()); + for (var b2W = 0x0; b2W < b2T['length']; b2W++) { + var b2X = b2T[b2W]; + if (!b7V(b2X)) { + var b2Y = aJH['funcPublic']['disposeFeatureId'](b2X); + if (b2Y['length'] > 0x1) + b2X = b2Y[0x1]; + else + b2X = b2Y[0x0]; + var b2Z = { + 'featureId': b2X, + 'color': b2S + }; + b2V['set'](b2X, b2Z); + } + } + if (!b7V(b2R)) { + var b30 = aJH['modelStyleMap'][dol(0xb3f)](b2R['toString']()); + aJH['funcPublic']['updateModelStyle'](aJH['tileset'], b30); + } else { + aJH[dol(0xb40)]['forEach'](function(b31, b32) { + var b30 = aJH['modelStyleMap']['get'](b32['toString']()); + aJH['funcPublic']['updateModelStyle'](b31, b30); + }); + } + return 0x0; + } catch (b34) { + b7H('错' + doo(0x4ec) + ':' + b34); + } + }, + 'setAlpha': function(b35, b36, b37) { + try { + if (b7V(b36)) + b36 = 0x1; + var b38 = 'r' + doo(0x4ed) + ',' + b36 + ')'; + var b39 = aJH['funcPublic']['splitFeatureId'](b35); + if (!b7V(b37)) { + if (aJH['m_model']['get'](b37['toString']()) === undefined) { + throw doj(0x13b); + } + aJH['tileset'] = aJH[dol(0xb41)][dol(0xb42)](b37['toString']()); + } else { + var b3a = aJH['funcPublic']['disposeFeatureId'](b39[0x0]); + b37 = b3a[0x0][dol(0xb43)](); + if (aJH['m_model']['get'](b37) === undefined) { + throw doj(0x13c); + } + aJH['tileset'] = aJH['m_model']['get'](b37); + } + var b3b = aJH[dol(0xb44)]['get'](b37['toString']()); + var b3c = ''; + var b3b = aJH['modelStyleMap']['get'](b37['toString']()); + if (b3b['size'] > 0x0) { + b3b['forEach'](function(b3e, b3f) { + if (b3e['isParam']) { + isParamAlpha = !![]; + b3c += '#' + b3e['featureId']; + } else { + b3c += '#' + b3e['featureId']; + } + }); + } + for (var b3g = 0x0; b3g < b39['length']; b3g++) { + var b3h = b39[b3g]; + if (b3h['length'] > 0x0) { + var b3i = aJH['funcPublic']['disposeFeatureId'](b3h); + if (b3i['length'] > 0x1) + b3h = b3i[0x1]; + else + b3h = b3i[0x0]; + var b3i = aJH['funcPublic']['disposeFeatureId'](b3h); + if (b3i['length'] > 0x1) + b3h = b3i[0x1]; + else + b3h = b3i[0x0]; + var b3k = { + 'featureId': b3h, + 'color': b38 + }; + b3b['set'](b3h, b3k); + } + } + if (!b7V(b37)) { + var b3l = aJH['modelStyleMap'][dol(0xb45)](b37['toString']()); + aJH[dol(0xb46)]['updateModelStyle'](aJH['tileset'], b3l); + } else { + aJH['m_model'][dol(0xb47)](function(b3m, b3n) { + var b3l = aJH['modelStyleMap']['get'](b3n['toString']()); + aJH['funcPublic']['updateModelStyle'](b3m, b3l); + }); + } + return 0x0; + } catch (b3p) { + b7H('错' + doo(0x4ee) + ':' + b3p); + } + }, + 'getStatus': function(b3q, b3r) { + try { + var b3s = []; + var b3t = aJH['funcPublic'][dol(0xb48)](b3q); + if (!b7V(b3r)) { + if (aJH['m_model']['get'](b3r['toString']()) === undefined) { + throw doj(0x13d); + } + aJH['tileset'] = aJH['m_model']['get'](b3r['toString']()); + } else { + var b3u = aJH['funcPublic']['disposeFeatureId'](b3t[0x0]); + b3r = b3u[0x0]['toString'](); + if (aJH['m_model']['get'](b3r) === undefined) { + throw doj(0x13e); + } + aJH['tileset'] = aJH['m_model']['get'](b3r); + } + var b3v = aJH['modelStyleMap']['get'](b3r['toString']()); + for (var b3w = 0x0; b3w < b3t['length']; b3w++) { + var b3x = b3t[b3w]; + var b3y = aJH['funcPublic']['disposeFeatureId'](b3x); + if (b3y['length'] > 0x1) + b3x = b3y[0x1]; + else + b3x = b3y[0x0]; + b3s['push'](b3v[dol(0xb49)](b3x)); + } + return b3s; + } catch (b3z) { + b7H('错' + doo(0x4ef) + ':' + b3z); + } + }, + 'getCenterById': function(b3A, b3B, b3C) { + try { + var b3D = aJH['funcPublic']['disposeFeatureId'](b3A); + if (!b7V(b3B)) { + if (aJH[dol(0xb4a)]['get'](b3B[dol(0xb4b)]()) === undefined) { + throw doj(0x13f); + } + aJH['tileset'] = aJH['m_model']['get'](b3B['toString']()); + } else { + b3B = b3D[0x0]['toString'](); + if (aJH[dol(0xb4c)]['get'](b3B) === undefined) { + throw doj(0x140); + } + aJH['tileset'] = aJH[dol(0xb4d)][dol(0xb4e)](b3B); + } + var b3E = !b7V(aJH['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4'][dol(0xb4f)]); + if (b3D['length'] > 0x1) + b3A = b3D[0x1]; + else + b3A = b3D[0x0]; + var b3F = new Cesium['Cartesian3'](); + var b3G = new Cesium[(dol(0xb50))](-Number[dol(0xb51)],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b3H = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + aJH['funcPublic']['GetPositionByFeatureId'](aJH['tileset'], aJH['tileset']['root'], b3A, b3F, b3G, b3H); + if (!b7V(b3F)) { + Cesium['Matrix4']['multiplyByPoint'](b3E, b3F, b3F); + if (b3C == undefined || b3C == 0x0) + return aJH['funcPublic'][dol(0xb52)](b3F, aJH['viewer']); + else + return b3F; + } else + return undefined; + } catch (b3I) { + b7H('错' + doo(0x4f0) + ':' + b3I); + } + }, + 'getBoundingBox': function(b3J, b3K, b3L, b3M) { + try { + if (!b7V(b3K)) { + if (aJH['m_model']['get'](b3K['toString']()) === undefined) { + throw doj(0x141); + } + aJH['tileset'] = aJH['m_model']['get'](b3K['toString']()); + } else { + throw doj(0x142); + } + if (!Cesium[dol(0xb53)](b3M)) + b3M = !![]; + var b3N = b3J['split']('#'); + var b3O = function(b3P) { + var b3Q = aJH['funcPublic']['disposeFeatureId'](b3P); + if (b3Q['length'] > 0x1) + b3P = b3Q[0x1]; + else + b3P = b3Q[0x0]; + return b3P; + }; + var b3R = new Array(); + var b3S = new Array(); + var b3T = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b3U = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var b3V = !b7V(aJH['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var b3W = ![]; + var b3X = deepCopy(featureIdList); + for (var b3Y = 0x0; b3Y < aJH['tileset'][dol(0xb54)]['length']; ++b3Y) { + var b3Z = aJH['tileset']['_selectedTiles'][b3Y]['_content']; + var b40 = aJH['funcPublic']['GetFeaturesFromContent'](b3Z, b3N['join']('#')); + let b41 = []; + if (b40['size'] == 0x0) { + continue; + } + b40['forEach'](function(b42, b43) { + b41['push'](b42); + let b44 = b42; + var b45 = GetFeatureMaxMinPoint(b3Z, b44); + b3T = Cesium['Cartesian3']['maximumByComponent'](b3T, b45[0x0], new Cesium['Cartesian3']()); + b3T = Cesium['Cartesian3']['maximumByComponent'](b3T, b45[0x1], new Cesium['Cartesian3']()); + b3U = Cesium['Cartesian3']['minimumByComponent'](b3U, b45[0x0], new Cesium['Cartesian3']()); + b3U = Cesium['Cartesian3']['minimumByComponent'](b3U, b45[0x1], new Cesium['Cartesian3']()); + b3R['push'](b3T); + b3S['push'](b3U); + b3W = !![]; + b3X['splice'](b3X['indexOf'](b43), 0x1); + }); + } + if (b3X['length'] > 0x0) { + var b46 = new Cesium['Cartesian3'](); + var b47 = new Cesium[(dol(0xb55))](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b48 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + for (var b49 = 0x0; b49 < b3X['length']; b49++) { + var b4a = b3X[b49]; + var b46 = new Cesium['Cartesian3'](); + aJH['funcPublic']['GetPositionByFeatureId'](aJH['tileset'], aJH['tileset']['root'], b3O(b4a), b46, b47, b48); + b3T = Cesium['Cartesian3']['maximumByComponent'](b3T, b47, new Cesium['Cartesian3']()); + b3U = Cesium['Cartesian3']['minimumByComponent'](b3U, b48, new Cesium[(dol(0xb56))]()); + b3R['push'](b3T); + b3S['push'](b3U); + } + if (b46['x'] != 0x0) { + b3W = !![]; + } + } + if (b3R[dol(0xb57)] > 0x0 && b3S['length'] > 0x0) { + var b4c = Cesium['Cartesian3']['subtract'](b3T, b3U, new Cesium[(dol(0xb58))]()); + var b4d = Cesium['Cartesian3']['midpoint'](b3T, b3U, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['abs'](b4c, b4c); + var b4e = Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], b4d, new Cesium[(dol(0xb59))]()); + Cesium['Matrix4']['multiplyByPoint'](b3V, b4e, b4e); + if (b3M) { + aJH['viewer']['entities']['removeById']('o' + doo(0x4f1) + 's'); + aJH[dol(0xb5a)]['entities']['add']({ + 'id': 'o' + doo(0x4f2) + 's', + 'name': doh(0x78) + b3K, + 'position': b4e, + 'box': { + 'dimensions': b4c, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + aJH['funcPublic']['ClearMeasuringline']('o' + doo(0x4f3) + 's', aJH[dol(0xb5b)]); + aJH['funcPublic']['CreateMeasuringline']('o' + doo(0x4f4) + 's', b4d, b4c, aJH['tileset']['root']['transform'], b3V, aJH['viewer'], b3L); + aJH['viewer']['scene']['requestRender'](); + } + return { + 'min': b3U, + 'max': b3T, + 'center': b4e, + 'size': b4c + }; + } + } catch (b4f) { + b7H('错' + doo(0x4f5) + ':' + b4f); + } + }, + 'getGeometrySizeById': function(b4g, b4h, b4i, b4j) { + try { + if (!b7V(b4h)) { + if (aJH['m_model']['get'](b4h['toString']()) === undefined) { + throw doj(0x143); + } + aJH['tileset'] = aJH['m_model']['get'](b4h['toString']()); + } + if (!aJH['viewer']['scene']['_context']['_webgl2']) { + b7H('w' + doo(0x4f6) + '!'); + return; + } + if (!Cesium['defined'](b4j)) + b4j = !![]; + var b4k = new Array(); + var b4l = new Array(); + var b4m = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b4n = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var b4o = !b7V(aJH['tileset'][dol(0xb5c)]) ? new Cesium['Matrix4'][(dol(0xb5d))](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var b4p = ![]; + var b4q = aJI['Feature']['getVertex'](b4g); + var b4r = GetMaxMinPoint(b4q); + b4m = b4r[0x0]; + b4n = b4r[0x1]; + b4k['push'](b4r[0x0]); + b4l['push'](b4r[0x1]); + b4p = !![]; + if (b4k['length'] > 0x0 && b4l['length'] > 0x0) { + var b4s = Cesium['Cartesian3']['subtract'](b4m, b4n, new Cesium['Cartesian3']()); + var b4t = Cesium['Cartesian3']['midpoint'](b4m, b4n, new Cesium[(dol(0xb5e))]()); + Cesium['Cartesian3']['abs'](b4s, b4s); + var b4u = Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], b4t, new Cesium['Cartesian3']()); + Cesium[dol(0xb5f)]['multiplyByPoint'](b4o, b4u, b4u); + if (b4j) { + aJH['viewer']['entities']['removeById']('o' + doo(0x4f7) + 's'); + aJH[dol(0xb60)]['entities']['add']({ + 'id': 'o' + doo(0x4f8) + 's', + 'name': doh(0x79) + b4g, + 'position': b4u, + 'box': { + 'dimensions': b4s, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + aJH['funcPublic']['ClearMeasuringline']('o' + doo(0x4f9) + 's', aJH[dol(0xb61)]); + aJH['funcPublic']['CreateMeasuringline']('o' + doo(0x4fa) + 's', b4t, b4s, aJH[dol(0xb62)]['root']['transform'], b4o, aJH['viewer']); + aJH['viewer']['scene']['requestRender'](); + } + if (!b7V(b4i)) { + b4i({ + 'x': b4s['x']['toFixed'](0x2)['toString'](), + 'y': b4s['y']['toFixed'](0x2)['toString'](), + 'z': b4s['z']['toFixed'](0x2)['toString'](), + 'center': b4u, + 'min': b4n, + 'max': b4m + }); + } + } + } catch (b4v) { + b7H('错' + doo(0x4fb) + ':' + b4v); + } + }, + 'getFeaturesBoundingBox': function(b4w, b4x, b4y, b4z) { + try { + if (!b7V(b4x)) { + if (aJH['m_model']['get'](b4x['toString']()) === undefined) { + throw doj(0x144); + } + aJH['tileset'] = aJH['m_model']['get'](b4x['toString']()); + } + if (!Cesium['defined'](b4z)) + b4z = !![]; + var b4A = !b7V(aJH['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + if (!Array['isArray'](b4w)) { + b4w = b4w['split']('#'); + } + if (Array[dol(0xb63)](b4w)) { + var b4B = new Cesium['Cartesian3'](-Number[dol(0xb64)],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b4C = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var b4D = 0x0; + var b4E = function(b4F) { + var b4G = aJH['funcPublic']['disposeFeatureId'](b4F); + if (b4G['length'] > 0x1) + b4F = b4G[0x1]; + else + b4F = b4G[0x0]; + aJH['funcPublic'][dol(0xb65)](aJH['tileset'], function(b4H) { + for (var b4I = 0x0; b4I < b4H['length']; ++b4I) { + var b4J = b4H[b4I]['_content']; + if (!Cesium['defined'](b4J)) + continue; + var b4K = aJH['funcPublic']['GetFeatureFromContent'](b4J, b4F); + if (!Cesium['defined'](b4K) || b4K == -0x1) + continue; + b4D++; + var b4L = GetFeatureMaxMinPoint(b4J, b4K); + var b4M = b4L[0x0]; + var b4N = b4L[0x1]; + b4B = Cesium['Cartesian3'][dol(0xb66)](b4B, b4M, new Cesium[(dol(0xb67))]()); + b4C = Cesium['Cartesian3']['minimumByComponent'](b4C, b4N, new Cesium['Cartesian3']()); + } + }); + }; + for (var b4O = 0x0; b4O < b4w['length']; b4O++) { + var b4P = b4w[b4O]; + b4E(b4P); + } + if (b4D == 0x0) { + return; + } + var b4Q = Cesium['Cartesian3']['midpoint'](b4B, b4C, new Cesium['Cartesian3']()); + var b4R = Cesium['Cartesian3']['subtract'](b4B, b4C, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['abs'](b4R, b4R); + var b4S = Cesium[dol(0xb68)]['multiplyByPoint'](aJH[dol(0xb69)]['root']['transform'], b4Q, new Cesium['Cartesian3']()); + Cesium[dol(0xb6a)]['multiplyByPoint'](b4A, b4S, b4S); + if (b4z) { + aJH[dol(0xb6b)][dol(0xb6c)]['removeById']('o' + doo(0x4fc) + 's'); + aJH['viewer']['entities']['add']({ + 'id': 'o' + doo(0x4fd) + 's', + 'name': doh(0x7a) + b4P, + 'position': b4S, + 'box': { + 'dimensions': b4R, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + aJH['funcPublic']['ClearMeasuringline']('o' + doo(0x4fe) + 's', aJH['viewer']); + var b4T = new Cesium['Matrix4'](); + Cesium['Matrix4']['clone'](aJH['tileset']['root']['transform'], b4T); + aJH['funcPublic']['CreateMeasuringline']('o' + doo(0x4ff) + 's', b4Q, b4R, b4T, aJH['viewer'], b4y); + aJH['viewer']['scene']['requestRender'](); + } + var b4U = new Cesium['Cartesian3']() + , b4V = new Cesium['Cartesian3'](); + var b4W = new Cesium['Cartesian3'](); + Cesium['Cartesian3'][dol(0xb6d)](b4R, 0.5, b4W); + Cesium['Cartesian3']['add'](b4Q, b4W, b4V); + Cesium['Cartesian3']['subtract'](b4Q, b4W, b4U); + Cesium['Matrix4']['multiplyByPoint'](aJH['tileset'][dol(0xb6e)]['transform'], b4U, b4U); + Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], b4V, b4V); + return { + 'min': b4C, + 'max': b4B, + 'minWC': b4U, + 'maxWC': b4V, + 'center': b4S, + 'size': b4R + }; + } + } catch (b4X) { + console['log']('错' + doo(0x500) + ':' + b4X); + } + }, + 'getGeometrySizeByBatchId': function(b4Y, b4Z, b50, b51, b52) { + try { + if (!b7V(b4Z)) { + if (aJH['m_model']['get'](b4Z['toString']()) === undefined) { + throw doj(0x145); + } + aJH['tileset'] = aJH['m_model']['get'](b4Z['toString']()); + } + if (!Cesium['defined'](b52)) + b52 = !![]; + var b53 = aJH['funcPublic']['disposeFeatureId'](b4Y); + if (b53['length'] > 0x1) + b4Y = b53[0x1]; + else + b4Y = b53[0x0]; + var b54 = new Array(); + var b55 = new Array(); + var b56 = new Cesium['Cartesian3'](-Number[dol(0xb6f)],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b57 = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var b58 = !b7V(aJH['tileset']['modelMatrix']) ? new Cesium['Matrix4'][(dol(0xb70))](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var b59 = ![]; + for (var b5a = 0x0; b5a < aJH['tileset']['_selectedTiles']['length']; ++b5a) { + var b5b = aJH['tileset']['_selectedTiles'][b5a]['_content']; + var b5c = aJH[dol(0xb71)]['GetFeatureFromContent'](b5b, b4Y); + if (b5c == -0x1 && b5c != b50) { + continue; + } + var b5d = GetFeatureMaxMinPoint(b5b, b5c); + b56 = Cesium[dol(0xb72)]['maximumByComponent'](b56, b5d[0x0], new Cesium['Cartesian3']()); + b56 = Cesium[dol(0xb73)]['maximumByComponent'](b56, b5d[0x1], new Cesium['Cartesian3']()); + b57 = Cesium[dol(0xb74)]['minimumByComponent'](b57, b5d[0x0], new Cesium[(dol(0xb75))]()); + b57 = Cesium['Cartesian3']['minimumByComponent'](b57, b5d[0x1], new Cesium['Cartesian3']()); + b54['push'](b56); + b55['push'](b57); + b59 = !![]; + } + if (!b59) { + var b5e = new Cesium['Cartesian3'](); + var b5f = new Cesium['Cartesian3'](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b5g = new Cesium[(dol(0xb76))](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + aJH['funcPublic'][dol(0xb77)](aJH['tileset'], aJH['tileset']['root'], b4Y, b5e, b5f, b5g); + b56 = Cesium['Cartesian3']['maximumByComponent'](b56, b5f, new Cesium['Cartesian3']()); + b57 = Cesium['Cartesian3']['minimumByComponent'](b57, b5g, new Cesium['Cartesian3']()); + b54[dol(0xb78)](b56); + b55['push'](b57); + if (b5e['x'] != 0x0) { + b59 = !![]; + } + return; + } + if (b54[dol(0xb79)] > 0x0 && b55['length'] > 0x0) { + var b5h = Cesium['Cartesian3']['subtract'](b56, b57, new Cesium['Cartesian3']()); + var b5i = Cesium['Cartesian3']['midpoint'](b56, b57, new Cesium['Cartesian3']()); + Cesium[dol(0xb7a)]['abs'](b5h, b5h); + var b5j = Cesium['Matrix4']['multiplyByPoint'](aJH[dol(0xb7b)][dol(0xb7c)]['transform'], b5i, new Cesium['Cartesian3']()); + Cesium['Matrix4']['multiplyByPoint'](b58, b5j, b5j); + if (b52) { + aJH['viewer'][dol(0xb7d)][dol(0xb7e)]('o' + doo(0x501) + 's'); + aJH['viewer'][dol(0xb7f)]['add']({ + 'id': 'o' + doo(0x502) + 's', + 'name': doh(0x7b) + b4Y, + 'position': b5j, + 'box': { + 'dimensions': b5h, + 'fill': ![], + 'outline': !![], + 'outlineColor': Cesium['Color']['BLUE'], + 'outlineWidth': 0x14 + } + }); + aJH['funcPublic']['ClearMeasuringline']('o' + doo(0x503) + 's', aJH['viewer']); + aJH['funcPublic']['CreateMeasuringline']('o' + doo(0x504) + 's', b5i, b5h, aJH['tileset']['root']['transform'], b58, aJH['viewer'], b51); + aJH['viewer']['scene']['requestRender'](); + } + var b5k = new Cesium['Cartesian3']() + , b5l = new Cesium['Cartesian3'](); + var b5m = new Cesium['Cartesian3'](); + Cesium['Cartesian3']['multiplyByScalar'](b5h, 0.5, b5m); + Cesium['Cartesian3']['add'](b5i, b5m, b5l); + Cesium['Cartesian3']['subtract'](b5i, b5m, b5k); + Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], b5k, b5k); + Cesium['Matrix4']['multiplyByPoint'](aJH['tileset']['root']['transform'], b5l, b5l); + return { + 'min': b5k, + 'max': b5l, + 'center': b5j, + 'size': b5h + }; + } + } catch (b5n) { + b7H('错' + doo(0x505) + ':' + b5n); + } + }, + 'offset': function(b5o, b5p, b5q, b5r, b5s) { + try { + if (aJH['isMobile']()) { + b7H('手' + doo(0x506) + '!'); + return; + } + if (!b7V(b5s)) { + if (aJH[dol(0xb80)]['get'](b5s['toString']()) === undefined) { + throw doj(0x146); + } + aJH['tileset'] = aJH['m_model']['get'](b5s['toString']()); + } + var b5t = aJH['funcPublic']['disposeFeatureId'](b5r); + if (b5t['length'] > 0x1) + b5r = b5t[0x1]; + else + b5r = b5t[0x0]; + for (var b5u = 0x0; b5u < aJH['tileset']['_selectedTiles']['length']; ++b5u) { + var b5v = aJH['tileset']['_selectedTiles'][b5u]['_content']; + var b5w = aJH['funcPublic']['GetFeatureFromContent'](b5v, b5r); + if (b5w == -0x1) { + continue; + } + var b5x = aJH['tileset']['_selectedTiles'][b5u]; + model = b5v['_model']; + var b5y = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](b5o,b5p,b5q), new Cesium['Matrix4']()); + var b5z = Cesium['Cartesian3']['fromArray'](b5v['_batchTable']['_properties']['maxPoint'][b5w]); + var b5A = Cesium['Cartesian3']['fromArray'](b5v[dol(0xb81)]['_properties']['minPoint'][b5w]); + var b5B = b5v['_batchTable'][dol(0xb82)](b5w); + b5y = Cesium[dol(0xb83)]['multiplyTransformation'](b5y, b5B, new Cesium['Matrix4']()); + b5v['_batchTable']['setBatchIdMatrix'](b5w, b5y); + let b5C = new Cesium[(dol(0xb84))](); + model['getObjectMatrix'](b5w)['clone'](b5C); + Cesium['Matrix4']['multiplyByPoint'](b5C, b5z, b5z); + Cesium['Matrix4']['multiplyByPoint'](b5C, b5A, b5A); + var b5D = Cesium['Matrix4']['multiplyByPoint'](b5y, b5z, new Cesium['Cartesian3']()); + var b5E = Cesium['Matrix4']['multiplyByPoint'](b5y, b5A, new Cesium['Cartesian3']()); + var b5F = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([b5D, b5E], b5F); + Cesium['BoundingSphere']['transform'](b5F, b5v[dol(0xb85)], b5F); + var b5G = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], b5G); + Cesium['BoundingSphere']['union'](b5F, b5G, model[dol(0xb86)][0x0][dol(0xb87)]['_boundingVolume']); + model['_nodeCommands'][0x0]['dirty'] = !![]; + var b5H = [b5D, b5E]; + b5v['_batchTable']['_properties']['newMaxPoint'] = copyArr(b5v['_batchTable']['_properties']['maxPoint']); + b5v['_batchTable']['_properties']['newMinPoint'] = copyArr(b5v['_batchTable']['_properties']['minPoint']); + Cesium['Cartesian3'][dol(0xb88)](b5H[0x0], b5v['_batchTable']['_properties']['newMaxPoint'][b5w]); + Cesium[dol(0xb89)]['pack'](b5H[0x1], b5v['_batchTable']['_properties']['newMinPoint'][b5w]); + var b5I = Cesium['Matrix4']['multiplyByPoint'](b5v['_contentModelMatrix'], b5H[0x0], new Cesium['Cartesian3']()); + var b5J = Cesium['Matrix4']['multiplyByPoint'](b5v['_contentModelMatrix'], b5H[0x1], new Cesium['Cartesian3']()); + b5x['updateBoundingVolume'](b5J, b5I); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + aJH['viewer']['scene'][dol(0xb8a)](); + } catch (b5K) { + b7H('错' + doo(0x507) + ':' + b5K); + } + }, + 'offsetBatchId': function(b5L, b5M, b5N, b5O, b5P, b5Q) { + try { + if (aJH['isMobile']()) { + b7H('手' + doo(0x508) + '!'); + return; + } + if (!b7V(b5P)) { + if (aJH['m_model']['get'](b5P[dol(0xb8b)]()) === undefined) { + throw doj(0x147); + } + aJH['tileset'] = aJH['m_model']['get'](b5P['toString']()); + } + var b5R = aJH['funcPublic']['disposeFeatureId'](b5O); + if (b5R['length'] > 0x1) + b5O = b5R[0x1]; + else + b5O = b5R[0x0]; + for (var b5S = 0x0; b5S < aJH[dol(0xb8c)]['_selectedTiles']['length']; ++b5S) { + var b5T = aJH['tileset']['_selectedTiles'][b5S]['_content']; + var b5U = aJH['funcPublic']['GetFeatureFromContent'](b5T, b5O); + if (b5U == -0x1 && b5U != b5Q) { + continue; + } + var b5V = aJH['tileset']['_selectedTiles'][b5S]; + model = b5T['_model']; + var b5W = Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](b5L,b5M,b5N), new Cesium['Matrix4']()); + var b5X = Cesium['Cartesian3']['fromArray'](b5T['_batchTable']['_properties']['maxPoint'][b5U]); + var b5Y = Cesium['Cartesian3']['fromArray'](b5T['_batchTable']['_properties']['minPoint'][b5U]); + var b5Z = b5T['_batchTable']['getBatchIdMatrix'](b5U); + b5W = Cesium['Matrix4']['multiplyTransformation'](b5W, b5Z, new Cesium['Matrix4']()); + b5T['_batchTable']['setBatchIdMatrix'](b5U, b5W); + let b60 = new Cesium['Matrix4'](); + model['getObjectMatrix'](b5U)['clone'](b60); + Cesium['Matrix4']['multiplyByPoint'](b60, b5X, b5X); + Cesium['Matrix4']['multiplyByPoint'](b60, b5Y, b5Y); + var b61 = Cesium['Matrix4']['multiplyByPoint'](b5W, b5X, new Cesium['Cartesian3']()); + var b62 = Cesium['Matrix4']['multiplyByPoint'](b5W, b5Y, new Cesium['Cartesian3']()); + var b63 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([b61, b62], b63); + Cesium['BoundingSphere']['transform'](b63, b5T['_contentModelMatrix'], b63); + var b64 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere'][dol(0xb8d)](model['_nodeCommands'][0x0]['command']['_boundingVolume'], b64); + Cesium['BoundingSphere']['union'](b63, b64, model['_nodeCommands'][0x0]['command']['_boundingVolume']); + model['_nodeCommands'][0x0][dol(0xb8e)] = !![]; + var b65 = [b61, b62]; + b5T['_batchTable']['_properties']['newMaxPoint'] = copyArr(b5T['_batchTable'][dol(0xb8f)][dol(0xb90)]); + b5T['_batchTable']['_properties']['newMinPoint'] = copyArr(b5T[dol(0xb91)]['_properties'][dol(0xb92)]); + Cesium['Cartesian3']['pack'](b65[0x0], b5T['_batchTable']['_properties'][dol(0xb93)][b5U]); + Cesium[dol(0xb94)]['pack'](b65[0x1], b5T['_batchTable']['_properties']['newMinPoint'][b5U]); + var b66 = Cesium['Matrix4']['multiplyByPoint'](b5T['_contentModelMatrix'], b65[0x0], new Cesium['Cartesian3']()); + var b67 = Cesium['Matrix4']['multiplyByPoint'](b5T['_contentModelMatrix'], b65[0x1], new Cesium['Cartesian3']()); + b5V[dol(0xb95)](b67, b66); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + aJH['viewer']['scene']['requestRender'](); + } catch (b68) { + b7H('错' + doo(0x509) + ':' + b68); + } + }, + 'clearRotate': function(b69, b6a) { + try { + if (aJH['isMobile']()) { + b7H('手' + doo(0x50a) + '!'); + return; + } + if (!b7V(b6a)) { + if (aJH['m_model']['get'](b6a['toString']()) === undefined) { + throw doj(0x148); + } + aJH['tileset'] = aJH[dol(0xb96)]['get'](b6a['toString']()); + } + var b6b = aJH[dol(0xb97)]['disposeFeatureId'](b69); + if (b6b['length'] > 0x1) { + b6a = b6b[0x0]; + b69 = b6b[0x1]; + } else + b69 = b6b[0x0]; + aJH['AutoRotateList']['some'](function(b6c, b6d) { + if (b6c['FeatureID'] == b69 && b6c['Tag'] == b6a) { + aJH['AutoRotateList']['splice'](b6d, 0x1); + return !![]; + } + }); + for (var b6e = 0x0; b6e < aJH[dol(0xb98)]['_selectedTiles']['length']; ++b6e) { + var b6f = aJH['tileset']['_selectedTiles'][b6e]['_content']; + var b6g = aJH[dol(0xb99)]['_selectedTiles'][b6e]; + var b6h = aJH['funcPublic']['GetFeatureFromContent'](b6f, b69); + if (b6h == -0x1) { + continue; + } + model = b6f['_model']; + b6f['_batchTable'][dol(0xb9a)](b6h, Cesium['Matrix4']['IDENTITY']); + var b6i = GetFeatureMaxMinPoint(b6f, b6h, aJH, !![]); + var b6j = new Cesium[(dol(0xb9b))](-Infinity,-Infinity,-Infinity) + , b6k = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + b6j = Cesium['Cartesian3']['maximumByComponent'](b6j, b6i[0x0], new Cesium['Cartesian3']()); + b6k = Cesium['Cartesian3']['minimumByComponent'](b6k, b6i[0x1], new Cesium['Cartesian3']()); + var b6l = new Cesium['BoundingSphere'](); + Cesium[dol(0xb9c)]['fromPoints']([b6j, b6k], b6l); + Cesium['BoundingSphere']['transform'](b6l, b6f['_contentModelMatrix'], b6l); + var b6m = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], b6m); + Cesium['BoundingSphere']['union'](b6l, b6m, model[dol(0xb9d)][0x0]['command']['_boundingVolume']); + model['_nodeCommands'][0x0]['dirty'] = !![]; + var b6n = [b6j, b6k]; + var b6o = Cesium['Matrix4']['multiplyByPoint'](b6f['_contentModelMatrix'], b6n[0x0], new Cesium['Cartesian3']()); + var b6p = Cesium[dol(0xb9e)]['multiplyByPoint'](b6f['_contentModelMatrix'], b6n[0x1], new Cesium['Cartesian3']()); + b6g['updateBoundingVolume'](b6p, b6o); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + aJH['viewer']['scene']['requestRender'](); + } catch (b6q) { + b7H('错' + doo(0x50b) + ':' + b6q); + } + }, + 'rotate': function(b6r, b6s, b6t, b6u, b6v, b6w, b6x) { + try { + if (aJH['isMobile']()) { + b7H('手' + doo(0x50c) + '!'); + return; + } + if (!b7V(b6w)) { + if (aJH['m_model']['get'](b6w['toString']()) === undefined) { + throw doj(0x149); + } + aJH['tileset'] = aJH['m_model']['get'](b6w['toString']()); + } + if (!Array['isArray'](b6r)) { + b6r = [b6r]; + } + var b6y; + var b6z = []; + for (var b6A = 0x0; b6A < b6r[dol(0xb9f)]; b6A++) { + b6y = aJH['funcPublic']['disposeFeatureId'](b6r[b6A]); + if (b6y['length'] > 0x1) + b6z['push'](b6y[0x1]); + else + b6z['push'](b6y[0x0]); + } + var b6B = new Cesium[(dol(0xba0))](-Number['MAX_VALUE'],-Number['MAX_VALUE'],-Number['MAX_VALUE']); + var b6C = new Cesium['Cartesian3'](Number['MAX_VALUE'],Number['MAX_VALUE'],Number['MAX_VALUE']); + var b6D = { + 'models': [], + 'batchids': [] + }; + var b6E = new Cesium['Matrix4'](); + for (var b6F = 0x0; b6F < aJH['tileset']['_selectedTiles']['length']; ++b6F) { + let b6G = aJH['tileset']['_selectedTiles'][b6F]['_content']; + let b6H = aJH['tileset']['_selectedTiles'][b6F]; + var b6I = aJH['funcPublic']['GetFeaturesFromContent'](b6G, b6z['join']('#')); + let b6J = []; + if (b6I['size'] == 0x0) { + continue; + } + b6I['forEach'](function(b6K, b6L) { + let b6M = b6K; + var b6N = GetFeatureMaxMinPoint(b6G, b6M); + b6B = Cesium['Cartesian3']['maximumByComponent'](b6B, b6N[0x0], new Cesium['Cartesian3']()); + b6B = Cesium['Cartesian3']['maximumByComponent'](b6B, b6N[0x1], new Cesium['Cartesian3']()); + b6C = Cesium['Cartesian3']['minimumByComponent'](b6C, b6N[0x0], new Cesium['Cartesian3']()); + b6C = Cesium['Cartesian3']['minimumByComponent'](b6C, b6N[0x1], new Cesium['Cartesian3']()); + b6D['models']['push'](b6H); + b6D['batchids'][dol(0xba1)](b6M); + isFindFeature = !![]; + }); + } + if (b6D['models']['length'] > 0x0) { + var b6O = Cesium['Cartesian3'][dol(0xba2)](b6B, b6C, new Cesium['Cartesian3']()); + var b6P = undefined; + if (b6s == 0x1 && b6t == 0x0 && b6u == 0x0) { + b6P = Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](b6v)); + } else if (b6s == 0x0 && b6t == 0x1 && b6u == 0x0) { + b6P = Cesium['Matrix3'][dol(0xba3)](Cesium['Math']['toRadians'](b6v)); + } else if (b6s == 0x0 && b6t == 0x0 && b6u == 0x1) { + b6P = Cesium['Matrix3']['fromRotationZ'](Cesium[dol(0xba4)]['toRadians'](b6v)); + } + for (let b6Q = 0x0; b6Q < b6D['models']['length']; ++b6Q) { + let b6R = b6D['models'][b6Q]['_content'][dol(0xba5)]; + let b6S = b6D['models'][b6Q][dol(0xba6)]; + let b6T = b6D['models'][b6Q]; + let b6U = b6D['batchids'][b6Q]; + let b6V = new Cesium['Matrix4'](); + b6S['_batchTable']['getBatchIdMatrix'](b6U)['clone'](b6V); + let b6W = b6O; + let b6X = Cesium['Cartesian3']['subtract'](new Cesium['Cartesian3'](0x0,0x0,0x0), b6W, new Cesium['Cartesian3']()); + let b6Y = Cesium['Matrix4']['multiply'](Cesium['Matrix4']['fromRotationTranslation'](b6P), Cesium['Matrix4']['fromTranslation'](b6X), new Cesium['Matrix4']()); + b6Y = Cesium[dol(0xba7)]['multiply'](Cesium['Matrix4']['fromTranslation'](b6W), b6Y, new Cesium['Matrix4']()); + Cesium['Matrix4'][dol(0xba8)](b6Y, b6E); + m1 = Cesium['Matrix4']['multiplyTransformation'](b6Y, b6V, new Cesium['Matrix4']()); + b6S['_batchTable']['setBatchIdMatrix'](b6U, m1); + b6R['getObjectMatrix'](b6U)['clone'](b6V); + Cesium[dol(0xba9)]['multiplyByPoint'](b6V, b6B, b6B); + Cesium['Matrix4']['multiplyByPoint'](b6V, b6C, b6C); + var b6Z = Cesium['Matrix4']['multiplyByPoint'](m1, b6B, new Cesium['Cartesian3']()); + var b70 = Cesium['Matrix4']['multiplyByPoint'](m1, b6C, new Cesium[(dol(0xbaa))]()); + var b71 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([b6Z, b70], b71); + Cesium['BoundingSphere']['transform'](b71, b6S['_contentModelMatrix'], b71); + var b72 = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](b6R['_nodeCommands'][0x0]['command']['_boundingVolume'], b72); + Cesium['BoundingSphere']['union'](b71, b72, b6R['_nodeCommands'][0x0]['command']['_boundingVolume']); + b6R['_nodeCommands'][0x0]['dirty'] = !![]; + var b73 = [b6Z, b70]; + b6S['_batchTable']['_properties']['newMaxPoint'] = copyArr(b6S['_batchTable']['_properties']['maxPoint']); + b6S['_batchTable']['_properties']['newMinPoint'] = copyArr(b6S['_batchTable'][dol(0xbab)]['minPoint']); + Cesium['Cartesian3']['pack'](b73[0x0], b6S[dol(0xbac)][dol(0xbad)]['newMaxPoint'][b6U]); + Cesium['Cartesian3']['pack'](b73[0x1], b6S['_batchTable'][dol(0xbae)]['newMinPoint'][b6U]); + var b74 = Cesium['Matrix4'][dol(0xbaf)](b6S['_contentModelMatrix'], b73[0x0], new Cesium['Cartesian3']()); + var b75 = Cesium['Matrix4']['multiplyByPoint'](b6S['_contentModelMatrix'], b73[0x1], new Cesium['Cartesian3']()); + b6T['updateBoundingVolume'](b75, b74); + b6R['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + b6R['_nodeCommands'][0x0]['command']['dirty'] = !![]; + } + } + if (b6x != undefined) { + b6x(b6E); + } + aJH['viewer']['scene']['requestRender'](); + } catch (b76) { + b7H('错' + doo(0x50d) + ':' + b76); + } + }, + 'clearOffset': function(b77, b78) { + try { + if (!b7V(b78)) { + if (aJH['m_model']['get'](b78['toString']()) === undefined) { + throw doj(0x14a); + } + aJH['tileset'] = aJH['m_model']['get'](b78['toString']()); + } + var b79 = aJH['funcPublic']['disposeFeatureId'](b77); + if (b79['length'] > 0x1) + b77 = b79[0x1]; + else + b77 = b79[0x0]; + for (var b7a = 0x0; b7a < aJH['tileset']['_selectedTiles'][dol(0xbb0)]; ++b7a) { + var b7b = aJH['tileset']['_selectedTiles'][b7a]['_content']; + var b7c = aJH[dol(0xbb1)]['GetFeatureFromContent'](b7b, b77); + if (b7c == -0x1) { + continue; + } + model = b7b['_model']; + var b7d = aJH['tileset']['_selectedTiles'][b7a]; + b7b['_batchTable'][dol(0xbb2)](b7c, Cesium[dol(0xbb3)]['IDENTITY']); + var b7e = GetFeatureMaxMinPoint(b7b, b7c, aJH); + var b7f = new Cesium['Cartesian3'](-Infinity,-Infinity,-Infinity) + , b7g = new Cesium['Cartesian3'](Infinity,Infinity,Infinity); + b7f = Cesium['Cartesian3']['maximumByComponent'](b7f, b7e[0x0], new Cesium['Cartesian3']()); + b7g = Cesium['Cartesian3']['minimumByComponent'](b7g, b7e[0x1], new Cesium['Cartesian3']()); + var b7h = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['fromPoints']([b7f, b7g], b7h); + Cesium['BoundingSphere']['transform'](b7h, b7b['_contentModelMatrix'], b7h); + var b7i = new Cesium['BoundingSphere'](); + Cesium['BoundingSphere']['clone'](model['_nodeCommands'][0x0]['command']['_boundingVolume'], b7i); + Cesium['BoundingSphere']['union'](b7h, b7i, model['_nodeCommands'][0x0]['command']['_boundingVolume']); + model['_nodeCommands'][0x0][dol(0xbb4)] = !![]; + var b7j = [b7f, b7g]; + var b7k = Cesium['Matrix4']['multiplyByPoint'](b7b['_contentModelMatrix'], b7j[0x0], new Cesium['Cartesian3']()); + var b7l = Cesium['Matrix4']['multiplyByPoint'](b7b['_contentModelMatrix'], b7j[0x1], new Cesium['Cartesian3']()); + b7d['updateBoundingVolume'](b7l, b7k); + model['_nodeCommands'][0x0]['command']['_debugShowBoundingVolume'] = ![]; + model[dol(0xbb5)][0x0]['command']['dirty'] = !![]; + } + aJH['viewer']['scene']['requestRender'](); + } catch (b7m) { + b7H('错' + doo(0x50e) + ':' + b7m); + } + }, + 'clearGeometrySize': function() { + try { + aJH['funcPublic']['ClearMeasuringline']('o' + doo(0x50f) + 's', aJH['viewer']); + aJH['viewer']['entities']['removeById']('o' + doo(0x510) + 's'); + } catch (b7n) { + b7H('错' + doo(0x511) + ':' + b7n); + } + }, + 'getAll': function(b7o) { + try { + if (!b7V(b7o)) { + if (aJH['m_model']['get'](b7o['toString']()) === undefined) { + throw doj(0x14b); + } + aJH['tileset'] = aJH['m_model']['get'](b7o['toString']()); + } + let b7p = []; + aJH['funcPublic']['GetAllTilesetFeatureId'](aJH['tileset'], aJH['tileset']['root'], b7o, b7p); + return { + 'features': b7p, + 'length': b7p['length'] + }; + } catch (b7q) { + b7H('错' + doo(0x512) + ':' + b7q); + } + }, + 'getTileByIds': function(b7r, b7s) { + try { + if (!b7V(b7r)) { + if (aJH['m_model']['get'](b7r['toString']()) === undefined) { + throw doj(0x14c); + } + aJH['tileset'] = aJH['m_model']['get'](b7r['toString']()); + } + let b7t = new Map(); + aJH['funcPublic']['GetTileByFeatureId'](aJH['tileset'], aJH['tileset']['root'], b7r, b7s, b7t); + return b7t; + } catch (b7u) { + b7H('错' + doo(0x513) + ':' + b7u); + } + } + }; + aJI['Other'] = { + 'setCenterOfRotation': function(b7v, b7w, b7x, b7y) { + try { + if (b7v) + switch (b7x) { + case 0x0: + if (Array['isArray'](b7w) && b7w['length'] == 0x3) { + var b7z = Cesium['Cartesian3']['fromRadiansArrayHeights'](b7w); + if (b7z && Array[dol(0xbb6)](b7z) && b7z['length'] > 0x0) + aJH['RotationCenterOfScene'] = b7z[0x0]; + } else + throw Error('c' + doo(0x514) + '误'); + break; + case 0x1: + if (Array['isArray'](b7w) && b7w['length'] == 0x3) { + var b7A = Cesium['Cartesian3']['fromArray'](b7w); + var b7B = aJH['Public']['convertModelToWorld'](b7A['x'], b7A['y'], b7A['z'], b7y); + aJH['RotationCenterOfScene'] = aJH['Public']['radiansToCartesian3'](b7B[0x1], b7B[0x0], b7B[0x2]); + } else + throw Error('c' + doo(0x515) + '误'); + break; + case 0x2: + if (b7w instanceof Cesium['Cartesian3']) { + aJH['RotationCenterOfScene'] = b7w; + } else + throw Error('c' + doo(0x516) + '误'); + break; + default: + throw Error('t' + doo(0x517) + '效'); + } + aJH['RotationCenterOfSceneState'] = b7v; + } catch (b7C) { + b7H(b7C); + } + }, + 'setOperationCenterPointState': function(b7D) { + aJH['isShowOperationCenterPoint'] = b7D; + }, + 'addOperationCenterPoint': function(b7E) { + if (!aJH['isShowOperationCenterPoint'] || aJH['defaults']['openearth']) + return; + if (Cesium['defined'](aJH['RotationCenterOfSceneState']) && aJH['RotationCenterOfSceneState']) { + b7E = aJH['RotationCenterOfScene']; + } else { + var b7F = aJH['Model']['getModelsCenter'](); + if (b7F) { + b7E = b7F['center']; + } + } + if (b7E instanceof Cesium['Cartesian2']) { + aJH['Public']['pickupCoordinate'](b7E, function(b7G) { + b7E = Cesium['Cartesian3']['fromRadians'](b7G[0x0], b7G[0x1], b7G[0x2]); + }); + } + aJH['Other']['removeOperationCenterPoint'](); + aJH['OperationCenterPoint'] = aJH['viewer']['entities']['add']({ + 'position': b7E, + 'point': { + 'show': !![], + 'color': Cesium['Color']['SKYBLUE']['withAlpha'](0.5), + 'pixelSize': 0xa, + 'outlineColor': Cesium['Color']['YELLOW']['withAlpha'](0.5), + 'outlineWidth': 0x3, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + }, + 'removeOperationCenterPoint': function() { + if (aJH['OperationCenterPoint']) { + aJH['viewer']['entities']['remove'](aJH['OperationCenterPoint']); + aJH[dol(0xbb7)] = undefined; + aJH['viewer']['scene']['requestRender'](); + } + } + }; + } + function b7H(b7I) { + console['log'](b7I); + } + function b7J(b7K) { + var b7L = 0x1; + var b7M = b7K >> 0x10 & 0xff; + var b7N = b7K >> 0x8 & 0xff; + var b7O = b7K & 0xff; + return 'rgba(' + b7M + ',\x20' + b7N + ',\x20' + b7O + ',\x20' + b7L + ')'; + } + function b7P(b7Q) { + var b7R = b7Q >> 0x18 & 0xff; + var b7S = b7Q >> 0x10 & 0xff; + var b7T = b7Q >> 0x8 & 0xff; + var b7U = b7Q & 0xff; + return 'rgba(' + b7S + ',\x20' + b7T + ',\x20' + b7U + ',\x20' + b7R + ')'; + } + function b7V(b7W) { + if (typeof b7W == 'u' + doo(0x518) + 'd' || b7W == null || b7W === '') { + return !![]; + } else { + return ![]; + } + } + function b7X(b7Y, b7Z, b80) { + if (b7Y['addEventListener']) { + b7Y['addEventListener'](b7Z, b80, ![]); + } else if (b7Y['attachEvent']) { + b7Y['attachEvent']('on' + b7Z, b80); + } else { + b7Y['on' + b7Z] = b80; + } + } + function b81(b82, b83, b84) { + if (b82[dol(0xbb8)]) { + b82['removeEventListener'](b83, b84, ![]); + } else if (b82['detachEvent']) { + b82['detachEvent']('on' + b83, b84); + } else { + b82['on' + b83] = undefined; + } + } + function b85(aJH) { + var b87 = 'm' + doo(0x519) + 'g'; + var b88 = document['getElementById'](b87); + var b89 = aJH[dol(0xbb9)]['canvas']; + if (!b88) { + var b8a = b89['parentElement']; + var b88 = document['createElement']('c' + doo(0x51a) + 's'); + b8a['appendChild'](b88); + b88['id'] = b87; + } + b88['width'] = b89['width']; + b88['height'] = b89['height']; + b88['style']['backgroundColor'] = '#' + doo(0x51b) + '0'; + b88['style']['position'] = 'a' + doo(0x51c) + 'e'; + b88[dol(0xbba)]['top'] = '0'; + b88['style'][dol(0xbbb)] = '0'; + b88['style']['userSelect'] = 'n' + doo(0x51d) + 'e'; + b88['style']['webkitUserSelect'] = 'n' + doo(0x51e) + 'e'; + b88['style']['pointerEvents'] = 'n' + doo(0x51f) + 'e'; + aJH['viewer'][dol(0xbbc)]['style']['cursor'] = doj(0x14d); + return b88; + } + function b8c() { + var b8d = 'm' + doo(0x520) + 'g'; + var b8e = document['getElementById'](b8d); + if (b8e) { + b8e['width'] = b8e['width']; + } + } + function b8f(b8g) { + var b8h = 'm' + doo(0x521) + 'g'; + var b8i = document['getElementById'](b8h); + if (b8i) { + b8i['width'] = b8i['width']; + var b8j = b8i['getContext'](doh(0x7c)); + b8j['lineWidth'] = 0x2; + b8j['strokeStyle'] = 'c' + doo(0x522) + 'e'; + b8j['strokeRect'](b8g['x'] - 0xa, b8g['y'] - 0xa, 0x14, 0x14); + } + } + function b8k(aJH) { + aJH['viewer']['container']['style']['cursor'] = ''; + } + function b8m(b8n, b8o, aJI) { + var b8q = 'M' + doo(0x523) + '_' + (Math['random']() + new Date()[dol(0xbbd)]())[dol(0xbbe)](0x20)['slice'](0x0, 0x8); + aJI['Label']['addCustomHtml']({ + 'id': b8q, + 'axisType': 0x2, + 'position': b8n, + 'attachmentPoint': 0x5, + 'removePoint': !![], + 'html': doj(0x14e) + b8o + ('<' + doo(0x524) + '>'), + 'onClick': function(b8r) {} + }); + return b8q; + } + function b8s(aJH) { + var b8u = []['concat'](aJH['tempEntities']); + var b8v = ['C' + doo(0x525) + 'G']; + b8v['forEach'](function(b8w) { + var b8x = aJH['viewer']['entities']['getById'](b8w); + if (Cesium[dol(0xbbf)](b8x)) { + b8u['push'](b8x); + } + }); + return b8u; + } + function b8y(b8z, aJH, b8B) { + aJH[dol(0xbc0)]['scene']['globe']['depthTestAgainstTerrain'] = !![]; + if (!aJH['viewer'][dol(0xbc1)]['pickPositionSupported']) { + return { + 'position': undefined, + 'isAdsorbed': ![] + }; + } + var b8C = aJH['viewer']['scene']['pickPosition'](b8z); + if (!Cesium[dol(0xbc2)](b8C)) { + return { + 'position': undefined, + 'isAdsorbed': ![] + }; + } + var b8D = aJH[dol(0xbc3)][dol(0xbc4)]([b8C['x'], b8C['y'], b8C['z']]); + var b8E = aJH['Public']['radiansToScreenCoord']([b8D[0x0], b8D[0x1], 0x0]); + var b8F = Cesium[dol(0xbc5)]['fromRadians'](b8D[0x0], b8D[0x1], 0x0); + if (!b8B) { + return { + 'position': b8F, + 'isAdsorbed': ![] + }; + } + var b8G = b8s(aJH); + var b8H = aJH['viewer']['camera']['position']; + var b8I = aJH['viewer']['scene']['pickPosition'](b8z); + var b8J = new Cesium['Cartesian3'](); + if (!b8I) { + return { + 'position': b8F, + 'isAdsorbed': ![] + }; + } + var b8K = aJH[dol(0xbc6)][dol(0xbc7)]([b8I['x'], b8I['y'], b8I['z']]); + b8H = Cesium['Cartesian3']['fromRadians'](b8K[0x0], b8K[0x1], b8K[0x2] + 0xa); + Cesium['Cartesian3']['subtract'](b8I, b8H, b8J); + var b8L = new Cesium['Ray'](b8H,b8J); + var b8M = aJH[dol(0xbc8)]['scene']['drillPick'](b8z, 0x14, 0x14, 0x14); + if (!b8M || b8M['length'] == 0x0) { + return { + 'position': b8F, + 'isAdsorbed': ![] + }; + } + var b8N = []; + for (var b8O = 0x0; b8O < b8M[dol(0xbc9)]; b8O++) { + var b8P = b8M[b8O]; + if (b8P instanceof Cesium['Cesium3DTileFeature']) { + var b8Q = b8P; + var b8R = b8Q[dol(0xbca)]('n' + doo(0x526) + 'e'); + if (!Cesium['defined'](b8R)) { + b8R = b8Q['getProperty'](doh(0x7d)); + } + aJH[dol(0xbcb)]['forEach'](function(b8S, b8T) { + if (b8S['id'] === b8Q['tileset'][dol(0xbcc)]) { + aJH['tileset'] = b8S; + b8R = b8T + '^' + b8R; + return; + } + }); + var b8U = aJH['Feature']['getVertex'](b8R); + b8N = b8N['concat'](b8U); + } + } + var b8V = []; + var b8W = []; + var b8X = !b7V(aJH[dol(0xbcd)]['modelMatrix']) ? new Cesium['Matrix4']['clone'](aJH['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var b8Y = aJH['tileset'][dol(0xbce)]['transform']; + var b8Z = b8F; + var b90 = 0x190; + if (b8N['length'] > 0x0) { + for (var q = 0x0; q < b8N['length'] / 0x3; q++) { + var b92 = new Cesium['Cartesian3'](b8N[q * 0x3],b8N[q * 0x3 + 0x1],0x0); + if (b92) { + Cesium['Matrix4']['multiplyByPoint'](b8Y, b92, b92); + Cesium['Matrix4']['multiplyByPoint'](b8X, b92, b92); + } + var b93 = aJH[dol(0xbcf)]['cartesian3ToRadians']([b92['x'], b92['y'], b92['z']]); + var b94 = aJH['Public']['radiansToScreenCoord']([b93[0x0], b93[0x1], b93[0x2]]); + b8V['push'](b94); + b8W['push'](b92); + } + } + if (b8V['length'] > 0x0) { + for (var b8O = 0x0; b8O < b8V['length']; b8O++) { + var b96 = b8V[b8O]; + var b97 = Cesium['Cartesian2'][dol(0xbd0)](b96, b8E); + if (b97 < b90) { + b90 = b97; + b8Z = b8W[b8O]; + } + } + } + return { + 'position': b8Z, + 'isAdsorbed': b90 < 0x190 + }; + } + function b98(b99) { + let b9a = 0x0; + let b9b = 0x0; + let b9c = 0x0; + for (let b9d = 0x0; b9d < b99['length']; b9d++) { + b9a += b99[b9d]['x']; + b9b += b99[b9d]['y']; + b9c += b99[b9d]['z']; + } + let b9e = b9a / b99['length']; + let b9f = b9b / b99['length']; + let b9g = b9c / b99['length']; + return new Cesium['Cartesian3'](b9e,b9f,b9g); + } + function b9h(b9i, b9j, b9k) { + const b9l = (b9i['x'] - b9j['x']) * (b9k['x'] - b9j['x']) + (b9i['y'] - b9j['y']) * (b9k['y'] - b9j['y']) + (b9i['z'] - b9j['z']) * (b9k['z'] - b9j['z']); + if (b9l === 0x0) { + return Math['sqrt'](Math['pow'](b9i['x'] - b9j['x'], 0x2) + Math['pow'](b9i['y'] - b9j['y'], 0x2) + Math['pow'](b9i['z'] - b9j['z'], 0x2)); + } + const b9m = ((b9i['x'] - b9j['x']) * (b9k['x'] - b9j['x']) + (b9i['y'] - b9j['y']) * (b9k['y'] - b9j['y']) + (b9i['z'] - b9j['z']) * (b9k['z'] - b9j['z'])) / (Math['pow'](b9k['x'] - b9j['x'], 0x2) + Math['pow'](b9k['y'] - b9j['y'], 0x2) + Math['pow'](b9k['z'] - b9j['z'], 0x2)); + const b9n = { + 'x': b9j['x'] + b9m * (b9k['x'] - b9j['x']), + 'y': b9j['y'] + b9m * (b9k['y'] - b9j['y']), + 'z': b9j['z'] + b9m * (b9k['z'] - b9j['z']) + }; + return Math['sqrt'](Math['pow'](b9i['x'] - b9n['x'], 0x2) + Math['pow'](b9i['y'] - b9n['y'], 0x2) + Math['pow'](b9i['z'] - b9n['z'], 0x2)); + } + function b9o(b9p, b9q) { + var b9r = { + 'x': b9q[0x1]['x'] - b9q[0x0]['x'], + 'y': b9q[0x1]['y'] - b9q[0x0]['y'], + 'z': b9q[0x1]['z'] - b9q[0x0]['z'] + }; + var b9s = { + 'x': b9q[0x2]['x'] - b9q[0x0]['x'], + 'y': b9q[0x2]['y'] - b9q[0x0]['y'], + 'z': b9q[0x2]['z'] - b9q[0x0]['z'] + }; + var b9t = { + 'x': b9r['y'] * b9s['z'] - b9r['z'] * b9s['y'], + 'y': b9r['z'] * b9s['x'] - b9r['x'] * b9s['z'], + 'z': b9r['x'] * b9s['y'] - b9r['y'] * b9s['x'] + }; + var b9u = Math['sqrt'](b9t['x'] * b9t['x'] + b9t['y'] * b9t['y'] + b9t['z'] * b9t['z']); + var b9v = { + 'x': b9p['x'] - b9q[0x0]['x'], + 'y': b9p['y'] - b9q[0x0]['y'], + 'z': b9p['z'] - b9q[0x0]['z'] + }; + var b9w = b9t['x'] * b9v['x'] + b9t['y'] * b9v['y'] + b9t['z'] * b9v['z']; + var b9x = b9w / b9u; + return b9x; + } + function b9y(aJH, b9A, b9B) { + var b9C = {}; + if (b9B) { + if (b9B['SpatialFilterObjHandle']) { + for (var b9D in b9B['SpatialFilterObjHandle']) { + b9C[b9D] = { + 'clippingCenterModel': undefined, + 'clippingPlanes': [], + 'unionClippingRegions': !![] + }; + var b9E = []; + var b9F = b9B['SpatialFilterObjHandle'][b9D][doh(0x7e)]; + for (var b9G = 0x0; b9G < b9F['length']; b9G++) { + var b9H = b9F[b9G]; + b9E['push'](new Cesium['Cartesian3'](b9H['X'],b9H['Y'],b9H['Z'])); + } + var b9I = b98(b9E); + b9C[b9D][dol(0xbd1)] = b9I; + var b9J = b9B['SpatialFilterObjHandle'][b9D]['I' + doo(0x527) + 'd'] == 0x0; + b9C[b9D]['unionClippingRegions'] = b9J; + for (var b9K = 0x0; b9K < b9E['length']; b9K++) { + var b9H = b9E[b9K]; + var b9M; + if (b9K < b9E[dol(0xbd2)] - 0x1) + b9M = b9E[b9K + 0x1]; + else + b9M = b9E[0x0]; + var b9N; + var b9O = new Cesium['Cartesian3'](); + var b9P = GetFootOfPerpendicular(b9H, b9M, b9I); + Cesium['Cartesian3']['subtract'](b9I, b9P, b9O); + Cesium['Cartesian3']['normalize'](b9O, b9O); + b9N = Cesium['Cartesian3']['distance'](b9P, b9I); + b9N *= 0.001 * (b9J ? 0x1 : -0x1); + var b9Q = new Cesium['ClippingPlane'](b9O,b9N); + b9C[b9D]['clippingPlanes']['push'](b9Q); + } + } + } + } + return b9C; + } + function b9R(aJG, b9T, b9U, b9V) { + var b9W = b9T + '^' + b9U; + var b9X = 'c' + doo(0x528) + '_' + b9W; + var b9Y = []; + var b9Z = b9V['SpatialFilterObjHandle'][b9U]; + for (var ba0 = 0x0; ba0 < b9Z['length']; ba0++) { + var ba1 = b9Z[ba0]; + b9Y['push'](new Cesium['Cartesian3'](ba1['X'],ba1['Y'],ba1['Z'])); + } + var ba2 = b98(b9Y); + var ba3 = aJG['Public']['convertModelToWorld'](ba2['x'], ba2['y'], ba2['z'], b9T); + aJG['Feature'][dol(0xbd3)](b9X, b9W); + var ba4 = Cesium['Cartesian3']['fromRadians'](ba3[0x0], ba3[0x1], ba3[0x2]); + var ba5 = Cesium['Transforms']['eastNorthUpToFixedFrame'](ba4); + var ba6 = Cesium['Matrix4'][dol(0xbd4)](aJG['tileset']['clippingPlanesOriginMatrix'], new Cesium['Matrix4']()); + var ba7 = Cesium['Matrix4']['multiply'](ba6, ba5, new Cesium['Matrix4']()); + var ba8 = aJG['viewer']['scene']['_frameState']; + if (aJG['clippingPlaneMapArray'][b9X] && aJG['clippingPlaneMapArray'][b9X]['length'] > 0x0) { + aJG['clippingPlaneMapArray'][b9X]['forEach'](function(ba9) { + ba9['modelMatrix'] = ba7; + ba9['update'](ba8); + }); + } + for (var baa = 0x0; baa < b9Y['length']; baa++) { + var ba1 = b9Y[baa]; + var bac; + if (baa < b9Y['length'] - 0x1) + bac = b9Y[baa + 0x1]; + else + bac = b9Y[0x0]; + var bad; + var bae = new Cesium['Cartesian3'](); + var baf = GetFootOfPerpendicular(ba1, bac, ba2); + Cesium['Cartesian3']['subtract'](baf, ba2, bae); + Cesium['Cartesian3']['normalize'](bae, bae); + bad = Cesium['Cartesian3']['distance'](baf, ba2); + bad *= 0.001; + if (aJG['clippingPlaneMapArray'][b9X] && aJG[dol(0xbd5)][b9X]['length'] > 0x0) { + for (var bag = 0x0; bag < aJG['clippingPlaneMapArray'][b9X][dol(0xbd6)]; bag++) { + var bah = aJG['clippingPlaneMapArray'][b9X][bag]; + var bai = new Cesium['ClippingPlane'](bae,bad); + bah['add'](bai); + } + } + } + } + var baj = function(aJH, bal, bam, ban, bao, bap, baq, bar) { + var bas = aJH['funcPublic']['disposeFeatureId'](bao); + if (bas['length'] > 0x1) + bao = bas[0x1]; + else + bao = bas[0x0]; + var bat = new Cesium[(dol(0xbd7))](); + baq = Cesium['defaultValue'](baq, !![]); + bar = Cesium['defaultValue'](bar, new Cesium['Color'](0x0,0x0,0x0,0.01)); + if (bar instanceof Cesium['Color']) + Cesium['Color']['clone'](bar, bat); + else + Cesium['Color'][dol(0xbd8)](bar, bat); + var bau = ban['content']['featuresLength']; + var bav = ban['content']['_batchTable']; + if (!bav) + return; + if (!ban['oldbatchId']) + ban['oldbatchId'] = []; + if (!ban['oldbatchId']['indexOf'](bap) > -0x1) + ban['oldbatchId']['push'](bap); + if (bav['setBatchIdsClipState']) { + Array['prototype']['diff'] = function(q) { + return this['filter'](function(bax) { + return q[dol(0xbd9)](bax) < 0x0; + }); + } + ; + bav['setBatchIdsClipState'](bav['_properties']['batchId']['diff'](ban['oldbatchId']), ![]); + } + if (bap < bau) { + var bay; + if (!ban['content']['_model']['_clippingPlanes']) { + bay = new Cesium['ClippingPlaneCollection']({ + 'planes': [], + 'edgeColor': Cesium['Color']['RED'], + 'edgeWidth': 0x0, + 'unionClippingRegions': baq + }); + ban['content']['_model']['_clippingPlanes'] = bay; + } else {} + bay = ban['content']['_model']['_clippingPlanes']; + bay['_owner'] = ban['content']['_model']; + bay['featureId'] = bao; + bay['batchId'] = bap; + bay[dol(0xbda)] = aJH['Feature']['getFeaturesBoundingBox'](bao, bal, function(baz) {}, ![]); + if (!aJH['clippingPlaneMapArray']) + aJH['clippingPlaneMapArray'] = {}; + if (!aJH['clippingPlaneMapArray'][bam]) + aJH['clippingPlaneMapArray'][bam] = []; + aJH['clippingPlaneMapArray'][bam][dol(0xbdb)](bay); + if (bav['setBatchIdClipState']) + bav['setBatchIdClipState'](bap, !![]); + if (bav['setBatchIdClipColor']) + bav['setBatchIdClipColor'](bap, bat); + return bay; + } + }; + function baA(baB) { + const baC = baB['split']('?')[0x0]['split']('#')[0x0]; + const baD = baC[dol(0xbdc)]('/'); + if (baD !== -0x1 && baD !== 0x0) { + return baC['substring'](0x0, baD); + } else { + return null; + } + } + function baE(aJG, baG, baH, baI, baJ, baK, baL) { + var baM = new Cesium['Cartesian3'](); + if (baH instanceof Cesium['Cartesian3']) { + baH['clone'](baM); + } else if (baH['length'] == 0x1 && baH[0x0]instanceof Cesium['Cartesian3']) { + baH[0x0]['clone'](baM); + } else { + baM = Cesium['Cartesian3']['fromRadiansArrayHeights'](baH)[0x0]; + } + var baN = aJG[dol(0xbdd)][dol(0xbde)]['add']({ + 'id': baG, + 'position': baM, + 'point': { + 'color': baI, + 'pixelSize': baK, + 'outlineColor': baJ, + 'outlineWidth': baK / 0x2, + 'show': !![], + 'distanceDisplayCondition': baL, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + return baN; + } + } + ; + globeMultiClip = function(baO) { + var baP, baQ, baR; + var baS = [] + , baT = []; + function baU(baV) { + baP = baV; + baQ = baV['viewer']; + baR = baV['viewer']['scene']; + } + baU['prototype']['add'] = function(baW, baX={}) { + if (baW['length'] >= 0x2) { + let baY = baO['defaultValue'](baX['lineWidth'], 0x1); + let baZ = baO['defaultValue'](baX['lineColor'], baO['Color']['WHITE']); + let bb0 = []; + for (let bb1 = 0x0; bb1 < baW['length']; bb1++) { + bb0['push'](baO['Cartesian3'][dol(0xbdf)](baW[bb1][0x0], baW[bb1][0x1], baW[bb1][0x2])); + } + if (baW['length'] == 0x2) { + var bb2 = baO['Cartesian3']['distance'](bb0[0x0], bb0[0x1]); + let bb3 = bbV(bb0[0x0], bb2); + bb0 = []; + for (let bb4 = 0x0; bb4 < 0x12; ++bb4) { + bb0['push'](bb3[bb4 * 0x14]); + } + } + let bb5 = bbI(bb0); + let bb6 = new baO['ClippingPlaneCollection']({ + 'planes': bb5 + }); + baS['push'](bb6); + let bb7 = baO['defaultValue'](baX['fill'], ![]); + if (bb7) { + let bb8 = baO['defaultValue'](baX[dol(0xbe0)], baO['Color']['WHITE']); + let bb9 = baO['defaultValue'](baX[dol(0xbe1)], baO['Color']['WHITE']); + let bba = baO['defaultValue'](baX['bottomImgUrl'], ''); + let bbb = baO['defaultValue'](baX[dol(0xbe2)], ''); + let bbc = baO['defaultValue'](baX['height'], 0x0); + let bbd = 0x32; + let bbe = 0x270f; + bb0['forEach'](bbf => { + const bbg = baO['Cartographic']['fromCartesian'](bbf); + if (bbg['height'] < bbe) { + bbe = bbg['height']; + } + } + ); + let bbh = bbe - bbc; + const bbi = new baO['ImageMaterialProperty']({ + 'image': bba, + 'repeat': new baO['Cartesian2'](0x1,0x1), + 'color': baO['Color']['WHITE'], + 'transparent': ![] + }); + let bbj = new baO['Entity']({ + 'polygon': { + 'hierarchy': new baO['PolygonHierarchy'](bb0), + 'height': bbh, + 'material': bba == '' ? bb8 : bbi + } + }); + baQ['entities']['add'](bbj); + baT['push'](bbj); + let bbk = bb0['length'] + , bbl = []; + for (let bbm = 0x0; bbm < bbk; bbm++) { + let bbn = (bbm + 0x1) % bbk; + let bbo = baO['Cartographic']['fromCartesian'](bb0[bbm]); + let bbp = baO['Cartographic']['fromCartesian'](bb0[bbn]); + let bbq = [bbo['longitude'], bbo['latitude'], bbo['height']]; + let bbr = [bbp['longitude'], bbp['latitude'], bbp['height']]; + for (let bbs = 0x0; bbs < bbd; bbs++) { + let bbt = baO['Math']['lerp'](bbq[0x0], bbr[0x0], bbs / bbd) + , bbu = baO['Math'][dol(0xbe3)](bbq[0x1], bbr[0x1], bbs / bbd) + , bbc = baO['Math']['lerp'](bbq[0x2], bbr[0x2], bbs / bbd); + bbl['push'](new baO['Cartographic'](bbt,bbu,bbc)); + } + } + bbl['push'](bbl[0x0]['clone']()); + let bbw = [] + , bbx = [] + , bby = []; + if (Boolean(baQ['terrainProvider']['_layers'])) { + let bbz = baO['sampleTerrainMostDetailed'](baQ['terrainProvider'], bbl); + baO['when'](bbz, function(bbz) { + bbz['forEach'](bbz => { + const {longitude, latitude, height} = bbz; + bbw[dol(0xbe4)](baO['Cartesian3']['fromRadians'](longitude, latitude, bbc)); + bbx['push'](bbc); + bby['push'](bbh); + } + ); + const bbC = new baO['ImageMaterialProperty']({ + 'image': bbb, + 'repeat': new baO['Cartesian2'](0x1,0x1), + 'color': baO['Color']['WHITE'], + 'transparent': ![] + }); + let bbD = new baO['Entity']({ + 'wall': new baO['WallGraphics']({ + 'positions': bbw, + 'maximumHeights': bbx, + 'minimumHeights': bby, + 'material': bbb == '' ? bb9 : bbC + }) + }); + baQ['entities']['add'](bbD); + baT['push'](bbD); + }); + } else { + for (let bbE = 0x0; bbE < bbl['length']; bbE++) { + const {longitude, latitude, height} = bbl[bbE]; + bbw['push'](baO[dol(0xbe5)]['fromRadians'](longitude, latitude, bbc)); + bbx['push'](bbl[bbE]['height']); + bby['push'](bbh); + } + const bbF = new baO['ImageMaterialProperty']({ + 'image': bbb, + 'repeat': new baO['Cartesian2'](0x1,0x1), + 'color': baO['Color']['WHITE'], + 'transparent': ![] + }); + let bbG = new baO['Entity']({ + 'wall': new baO['WallGraphics']({ + 'positions': bbw, + 'maximumHeights': bbx, + 'minimumHeights': bby, + 'material': bbb == '' ? bb9 : bbF + }) + }); + baQ['entities']['add'](bbG); + baT['push'](bbG); + } + } + baR['globe']['multiClippingPlanes'] = new baO['MultiClippingPlaneCollection']({ + 'collections': baS, + 'edgeWidth': baY, + 'edgeColor': baZ + }); + baP['viewer']['scene']['requestRender'](); + } + } + ; + baU['prototype']['close'] = function() { + baS = []; + if (baO['defined'](baR['globe']['multiClippingPlanes'])) { + baR['globe']['multiClippingPlanes']['removeAll'](); + baR['globe']['multiClippingPlanes'] = undefined; + } + if (baT['length'] > 0x0) { + for (let bbH = 0x0; bbH < baT['length']; bbH++) { + baQ['entities']['remove'](baT[bbH]); + } + } + baP['viewer'][dol(0xbe6)]['requestRender'](); + } + ; + function bbI(bbJ) { + let bbK = bcc(bbJ); + let bbL = bbJ['length']; + let bbM = []; + for (let bbN = 0x0; bbN < bbL; ++bbN) { + let bbO = (bbN + 0x1) % bbL; + let bbP = baO[dol(0xbe7)]['add'](bbJ[bbN], bbJ[bbO], new baO['Cartesian3']()); + bbP = baO['Cartesian3']['multiplyByScalar'](bbP, 0.5, bbP); + let bbQ = baO['Cartesian3']['normalize'](bbP, new baO['Cartesian3']()); + let bbR = !bbK ? baO['Cartesian3']['subtract'](bbP, bbJ[bbO], new baO[(dol(0xbe8))]()) : baO['Cartesian3']['subtract'](bbJ[bbO], bbP, new baO['Cartesian3']()); + bbR = baO['Cartesian3']['normalize'](bbR, bbR); + let bbS = baO[dol(0xbe9)]['cross'](bbR, bbQ, new baO['Cartesian3']()); + bbS = baO['Cartesian3']['normalize'](bbS, bbS); + let bbT = new baO['Plane'](bbS,0x0); + let bbU = baO['Plane']['getPointDistance'](bbT, bbP); + bbM['push'](new baO['ClippingPlane'](bbS,bbU)); + } + return bbM; + } + function bbV(bbW, bbX) { + var bbY = []; + var bbZ = baO[dol(0xbea)]['fromCartesian'](bbW); + var bc0 = bc3(bbZ); + for (var bc1 = 0x0; bc1 < 0x168; bc1++) { + var bc2 = new baO['Cartographic'](); + bc2['longitude'] = bbX * Math['cos'](bc1 * Math['PI'] / 0xb4) * bc0[0x0] + bbZ['longitude']; + bc2['latitude'] = bbX * Math[dol(0xbeb)](bc1 * Math[dol(0xbec)] / 0xb4) * bc0[0x1] + bbZ['latitude']; + bc2['height'] = bbZ['height']; + bbY['push'](baO['Cartographic']['toCartesian'](bc2)); + } + return bbY; + } + function bc3(bc4) { + var bc5 = baO['clone'](bc4, !![]); + bc5['latitude'] += 1e-7; + var bc6 = new baO['EllipsoidGeodesic'](); + var bc7 = baO['clone'](bc5, !![]); + bc7['longitude'] += 0.001; + bc6['setEndPoints'](bc5, bc7); + var bc8 = 0.001 / bc6['surfaceDistance']; + var q = new baO['EllipsoidGeodesic'](); + var bca = baO['clone'](bc5, !![]); + bca['latitude'] += 0.001; + q['setEndPoints'](bc5, bca); + var bcb = 0.001 / q['surfaceDistance']; + return [bc8, bcb]; + } + function bcc(bcd) { + let bce = baO['Cartographic']['fromCartesian'](bcd[0x0]); + let bcf = baO['Cartographic']['fromCartesian'](bcd[0x1]); + let bcg = baO['Cartographic']['fromCartesian'](bcd[0x2]); + let bch = bce['longitude'] + , bci = bce['latitude'] + , bcj = bcf['longitude'] + , bck = bcf['latitude'] + , bcl = bcg['longitude'] + , bcm = bcg['latitude'] + , bcn = (bcj - bch) * (bcm - bck) - (bck - bci) * (bcl - bcj); + let bco = bcn > 0x0; + return bco; + } + return baU; + }(window['Cesium'] || {}); + !function(bcp) { + var bcq = {}; + function bcr(bcs) { + if (bcq[bcs]) + return bcq[bcs]['exports']; + var bct = bcq[bcs] = { + 'i': bcs, + 'l': !0x1, + 'exports': {} + }; + return bcp[bcs]['call'](bct['exports'], bct, bct[dol(0xbed)], bcr), + bct['l'] = !0x0, + bct['exports']; + } + bcr['m'] = bcp, + bcr['c'] = bcq, + bcr['d'] = function(bcp, bcq, bcw) { + bcr['o'](bcp, bcq) || Object['defineProperty'](bcp, bcq, { + 'enumerable': !0x0, + 'get': bcw + }); + } + , + bcr['r'] = function(bcp) { + 'u' + doo(0x529) + 'd' != typeof Symbol && Symbol['toStringTag'] && Object['defineProperty'](bcp, Symbol['toStringTag'], { + 'value': 'M' + doo(0x52a) + 'e' + }), + Object['defineProperty'](bcp, '_' + doo(0x52b) + 'e', { + 'value': !0x0 + }); + } + , + bcr['t'] = function(bcp, bcq) { + if (0x1 & bcq && (bcp = bcr(bcp)), + 0x8 & bcq) + return bcp; + if (0x4 & bcq && 'o' + doo(0x52c) + 't' == typeof bcp && bcp && bcp['__esModule']) + return bcp; + var bcA = Object['create'](null); + if (bcr['r'](bcA), + Object['defineProperty'](bcA, 'd' + doo(0x52d) + 't', { + 'enumerable': !0x0, + 'value': bcp + }), + 0x2 & bcq && 's' + doo(0x52e) + 'g' != typeof bcp) + for (var bcB in bcp) + bcr['d'](bcA, bcB, function(bcq) { + return bcp[bcq]; + } + ['bind'](null, bcB)); + return bcA; + } + , + bcr['n'] = function(bcp) { + var bcq = bcp && bcp['__esModule'] ? function() { + return bcp['default']; + } + : function() { + return bcp; + } + ; + return bcr['d'](bcq, 'a', bcq), + bcq; + } + , + bcr['o'] = function(bcp, bcq) { + return Object['prototype']['hasOwnProperty'][dol(0xbee)](bcp, bcq); + } + , + bcr['p'] = '', + bcr(bcr['s'] = 0x5); + }([function(bcH, bcI) { + bcH['exports'] = function(bcH, bcI) { + if (!(bcH instanceof bcI)) + throw new TypeError(doj(0x14f)); + } + , + bcH['exports']['default'] = bcH['exports'], + bcH['exports']['__esModule'] = !0x0; + } + , function(bcL, bcM) { + function bcN(bcM) { + return bcL['exports'] = bcN = Object['setPrototypeOf'] ? Object['getPrototypeOf'] : function(bcL) { + return bcL['__proto__'] || Object['getPrototypeOf'](bcL); + } + , + bcL['exports']['default'] = bcL['exports'], + bcL['exports']['__esModule'] = !0x0, + bcN(bcM); + } + bcL['exports'] = bcN, + bcL[dol(0xbef)]['default'] = bcL['exports'], + bcL['exports']['__esModule'] = !0x0; + } + , function(bcQ, bcR, bcS) { + var bcT = bcS(0x6); + bcQ['exports'] = function(bcQ, bcR) { + if ('f' + doo(0x52f) + 'n' != typeof bcR && null !== bcR) + throw new TypeError(doj(0x150)); + bcQ['prototype'] = Object['create'](bcR && bcR['prototype'], { + 'constructor': { + 'value': bcQ, + 'writable': !0x0, + 'configurable': !0x0 + } + }), + bcR && bcT(bcQ, bcR); + } + , + bcQ['exports']['default'] = bcQ['exports'], + bcQ['exports']['__esModule'] = !0x0; + } + , function(bcW, bcX, bcY) { + var bcZ = bcY(0x7)['default'] + , bd0 = bcY(0x8); + bcW[dol(0xbf0)] = function(bcW, bcX) { + return !bcX || 'o' + doo(0x530) + 't' !== bcZ(bcX) && 'f' + doo(0x531) + 'n' != typeof bcX ? bd0(bcW) : bcX; + } + , + bcW['exports']['default'] = bcW['exports'], + bcW['exports']['__esModule'] = !0x0; + } + , function(bd3, bd4) { + function bd5(bd3, bd4) { + for (var bd5 = 0x0; bd5 < bd4['length']; bd5++) { + var bd9 = bd4[bd5]; + bd9['enumerable'] = bd9['enumerable'] || !0x1, + bd9[dol(0xbf1)] = !0x0, + 'v' + doo(0x532) + 'e'in bd9 && (bd9['writable'] = !0x0), + Object['defineProperty'](bd3, bd9['key'], bd9); + } + } + bd3['exports'] = function(bd3, bd4, bdc) { + return bd4 && bd5(bd3['prototype'], bd4), + bdc && bd5(bd3, bdc), + bd3; + } + , + bd3['exports']['default'] = bd3[dol(0xbf2)], + bd3['exports'][dol(0xbf3)] = !0x0; + } + , function(bdd, bde, bdf) { + bdd['exports'] = bdf(0x9); + } + , function(bdg, bdh) { + function bdi(bdh, bdk) { + return bdg[dol(0xbf4)] = bdi = Object['setPrototypeOf'] || function(bdg, bdh) { + return bdg[dol(0xbf5)] = bdh, + bdg; + } + , + bdg['exports']['default'] = bdg['exports'], + bdg['exports']['__esModule'] = !0x0, + bdi(bdh, bdk); + } + bdg['exports'] = bdi, + bdg['exports']['default'] = bdg['exports'], + bdg['exports']['__esModule'] = !0x0; + } + , function(bdn, bdo) { + function bdp(bdo) { + return 'f' + doo(0x533) + 'n' == typeof Symbol && 's' + doo(0x534) + 'l' == typeof Symbol['iterator'] ? (bdn['exports'] = bdp = function(bdn) { + return typeof bdn; + } + , + bdn['exports']['default'] = bdn['exports'], + bdn['exports']['__esModule'] = !0x0) : (bdn['exports'] = bdp = function(bdn) { + return bdn && 'f' + doo(0x535) + 'n' == typeof Symbol && bdn['constructor'] === Symbol && bdn !== Symbol['prototype'] ? 's' + doo(0x536) + 'l' : typeof bdn; + } + , + bdn['exports']['default'] = bdn[dol(0xbf6)], + bdn['exports']['__esModule'] = !0x0), + bdp(bdo); + } + bdn['exports'] = bdp, + bdn['exports']['default'] = bdn['exports'], + bdn['exports']['__esModule'] = !0x0; + } + , function(bdt, bdu) { + bdt['exports'] = function(bdt) { + if (void 0x0 === bdt) + throw new ReferenceError(doj(0x151)); + return bdt; + } + , + bdt[dol(0xbf7)]['default'] = bdt['exports'], + bdt['exports']['__esModule'] = !0x0; + } + , function(bdw, bdx, bdy) { + 'u' + doo(0x537) + 't'; + bdy['r'](bdx); + var bdz = bdy(0x0) + , bdA = bdy['n'](bdz) + , bdB = bdy(0x4) + , q = bdy['n'](bdB) + , bdD = bdy(0x2) + , bdE = bdy['n'](bdD) + , bdF = bdy(0x3) + , bdG = bdy['n'](bdF) + , bdH = bdy(0x1) + , bdI = bdy['n'](bdH) + , bdJ = [12890594.86, 8362377.87, 0x554fed, 3481989.83, 1678043.12, 0x0] + , bdK = [0x4b, 0x3c, 0x2d, 0x1e, 0xf, 0x0] + , bdL = [[1.410526172116255e-8, 0.00000898305509648872, -1.9939833816331, 200.9824383106796, -187.2403703815547, 91.6087516669843, -23.38765649603339, 2.57121317296198, -0.03801003308653, 17337981.2], [-7.435856389565537e-9, 0.000008983055097726239, -0.78625201886289, 96.32687599759846, -1.85204757529826, -59.36935905485877, 47.40033549296737, -16.50741931063887, 2.28786674699375, 10260144.86], [-3.030883460898826e-8, 0.00000898305509983578, 0.30071316287616, 59.74293618442277, 7.357984074871, -25.38371002664745, 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37], [-1.981981304930552e-8, 0.000008983055099779535, 0.03278182852591, 40.31678527705744, 0.65659298677277, -4.44255534477492, 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06], [3.09191371068437e-9, 0.000008983055096812155, 0.00006995724062, 23.10934304144901, -0.00023663490511, -0.6321817810242, -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4], [2.890871144776878e-9, 0.000008983055095805407, -3.068298e-8, 7.47137025468032, -0.00000353937994, -0.02145144861037, -0.00001234426596, 0.00010322952773, -0.00000323890364, 826088.5]] + , bdM = [[-0.0015702102444, 111320.7020616939, 0x60e374c3105a3, -0x24bb4115e2e164, 0x5cc55543bb0ae8, -0x7ce070193f3784, 0x5e7ca61ddf8150, -0x261a578d8b24d0, 0x665d60f3742ca, 82.5], [0.0008277824516172526, 111320.7020463578, 647795574.6671607, -4082003173.641316, 10774905663.51142, -15171875531.51559, 12053065338.62167, -5124939663.577472, 913311935.9512032, 67.5], [0.00337398766765, 111320.7020202162, 4481351.045890365, -23393751.19931662, 79682215.47186455, -115964993.2797253, 97236711.15602145, -43661946.33752821, 8477230.501135234, 52.5], [0.00220636496208, 111320.7020209128, 51751.86112841131, 3796837.749470245, 992013.7397791013, -1221952.21711287, 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5], [-0.0003441963504368392, 111320.7020576856, 278.2353980772752, 2485758.690035394, 6070.750963243378, 54821.18345352118, 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5], [-0.0003218135878613132, 111320.7020701615, 0.00369383431289, 823725.6402795718, 0.46104986909093, 2351.343141331292, 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45]] + , bdN = function() { + function bdw() { + bdA()(this, bdw), + this['isWgs84'] = !0x1; + } + return q()(bdw, [{ + 'key': 'g' + doo(0x538) + 'C', + 'value': function(bdw, bdx) { + if (!bdw || !bdx) + return 0x0; + if (!(bdw = this['convertMC2LL'](bdw))) + return 0x0; + var bdy = this['toRadians'](bdw['lng']) + , bdz = this['toRadians'](bdw['lat']); + if (!(bdx = this['convertMC2LL'](bdx))) + return 0x0; + var bdA = this['toRadians'](bdx['lng']) + , bdB = this['toRadians'](bdx['lat']); + return this['getDistance'](bdy, bdA, bdz, bdB); + } + }, { + 'key': 'g' + doo(0x539) + 'L', + 'value': function(bdw, bdx) { + if (!bdw || !bdx) + return 0x0; + bdw['lng'] = this['getLoop'](bdw['lng'], -0xb4, 0xb4), + bdw['lat'] = this['getRange'](bdw['lat'], -0x4a, 0x4a), + bdx['lng'] = this['getLoop'](bdx['lng'], -0xb4, 0xb4), + bdx['lat'] = this['getRange'](bdx[dol(0xbf8)], -0x4a, 0x4a); + var bdy = this['toRadians'](bdw[dol(0xbf9)]) + , bdz = this['toRadians'](bdw['lat']) + , bdA = this['toRadians'](bdx['lng']) + , bdB = this['toRadians'](bdx['lat']); + return this['getDistance'](bdy, bdA, bdz, bdB); + } + }, { + 'key': 'c' + doo(0x53a) + 'L', + 'value': function(bdw) { + if (!bdw) + return { + 'lng': 0x0, + 'lat': 0x0 + }; + var bdx = {}; + if (this['isWgs84']) { + bdx['lng'] = bdw['lng'] / 20037508.34 * 0xb4; + var bdy = bdw['lat'] / 20037508.34 * 0xb4; + return bdx[dol(0xbfa)] = 0xb4 / Math[dol(0xbfb)] * (0x2 * Math['atan'](Math['exp'](bdy * Math['PI'] / 0xb4)) - Math['PI'] / 0x2), + { + 'lng': bdx['lng']['toFixed'](0x6), + 'lat': bdx['lat']['toFixed'](0x6) + }; + } + Math[dol(0xbfc)](bdw['lng']); + for (var bdz = Math['abs'](bdw['lat']), bdA = void 0x0, bdB = 0x0; bdB < bdJ['length']; bdB++) + if (bdz >= bdJ[bdB]) { + bdA = bdL[bdB]; + break; + } + return { + 'lng': (bdx = this['convertor'](bdw, bdA))['lng']['toFixed'](0x6), + 'lat': bdx['lat']['toFixed'](0x6) + }; + } + }, { + 'key': 'c' + doo(0x53b) + 'C', + 'value': function(bdw) { + if (!bdw) + return { + 'lng': 0x0, + 'lat': 0x0 + }; + if (bdw['lng'] > 0xb4 || bdw[dol(0xbfd)] < -0xb4 || bdw['lat'] > 0x5a || bdw['lat'] < -0x5a) + return bdw; + if (this['isWgs84']) { + var bdx = {}; + bdx['lng'] = bdw[dol(0xbfe)] * Math['PI'] / 0xb4 * 0x615299; + var bdy = bdw['lat'] * Math['PI'] / 0xb4; + return bdx['lat'] = 3189068.5 * Math['log']((0x1 + Math['sin'](bdy)) / (0x1 - Math['sin'](bdy))), + { + 'lng': parseFloat(bdx['lng'][dol(0xbff)](0x2)), + 'lat': parseFloat(bdx['lat']['toFixed'](0x2)) + }; + } + bdw['lng'] = this['getLoop'](bdw['lng'], -0xb4, 0xb4), + bdw[dol(0xc00)] = this['getRange'](bdw['lat'], -0x4a, 0x4a); + bdw['lng']; + for (var bdz = bdw['lat'], bdA = void 0x0, bdB = 0x0; bdB < bdK['length']; bdB++) + if (bdz >= bdK[bdB]) { + bdA = bdM[bdB]; + break; + } + if (!bdA) + for (var q = 0x0; q < bdK['length']; q++) + if (bdz <= -bdK[q]) { + bdA = bdM[q]; + break; + } + var bdD = this['convertor'](bdw, bdA); + return { + 'lng': parseFloat(bdD['lng']['toFixed'](0x2)), + 'lat': parseFloat(bdD['lat']['toFixed'](0x2)) + }; + } + }, { + 'key': 'c' + doo(0x53c) + 'r', + 'value': function(bdw, bdx) { + if (!bdw || !bdx) + return { + 'lng': 0x0, + 'lat': 0x0 + }; + var bdy = bdx[0x0] + bdx[0x1] * Math['abs'](bdw['lng']) + , bdz = Math['abs'](bdw['lat']) / bdx[0x9] + , bdA = bdx[0x2] + bdx[0x3] * bdz + bdx[0x4] * bdz * bdz + bdx[0x5] * bdz * bdz * bdz + bdx[0x6] * bdz * bdz * bdz * bdz + bdx[0x7] * bdz * bdz * bdz * bdz * bdz + bdx[0x8] * bdz * bdz * bdz * bdz * bdz * bdz; + return { + 'lng': bdy *= bdw['lng'] < 0x0 ? -0x1 : 0x1, + 'lat': bdA *= bdw['lat'] < 0x0 ? -0x1 : 0x1 + }; + } + }, { + 'key': 'g' + doo(0x53d) + 'e', + 'value': function(bdw, bdx, bdy, bdz) { + return 6370996.81 * Math['acos'](Math['sin'](bdy) * Math['sin'](bdz) + Math['cos'](bdy) * Math[dol(0xc01)](bdz) * Math['cos'](bdx - bdw)); + } + }, { + 'key': 't' + doo(0x53e) + 's', + 'value': function(bdw) { + return Math['PI'] * bdw / 0xb4; + } + }, { + 'key': 't' + doo(0x53f) + 's', + 'value': function(bdw) { + return 0xb4 * bdw / Math['PI']; + } + }, { + 'key': 'g' + doo(0x540) + 'e', + 'value': function(bdw, bdx, bdy) { + return null != bdx && (bdw = Math['max'](bdw, bdx)), + null != bdy && (bdw = Math['min'](bdw, bdy)), + bdw; + } + }, { + 'key': 'g' + doo(0x541) + 'p', + 'value': function(bdw, bdx, bdy) { + for (; bdw > bdy; ) + bdw -= bdy - bdx; + for (; bdw < bdx; ) + bdw += bdy - bdx; + return bdw; + } + }, { + 'key': 'l' + doo(0x542) + 'r', + 'value': function(bdw) { + return this['convertLL2MC'](bdw); + } + }, { + 'key': 'l' + doo(0x543) + 't', + 'value': function(bdw) { + var bdx = this['convertLL2MC'](bdw); + return { + 'x': bdx['lng'], + 'y': bdx['lat'] + }; + } + }, { + 'key': 'm' + doo(0x544) + 't', + 'value': function(bdw) { + return this['convertMC2LL'](bdw); + } + }, { + 'key': 'p' + doo(0x545) + 't', + 'value': function(bdw) { + var bdx = { + 'lng': bdw['x'], + 'lat': bdw['y'] + }; + return this['convertMC2LL'](bdx); + } + }, { + 'key': 'p' + doo(0x546) + 'l', + 'value': function(bdw, bdx, bdy, bdz) { + if (bdw) { + bdw = this['lngLatToMercator'](bdw); + var bdA = this['getZoomUnits'](bdx); + return { + 'x': Math['round']((bdw['lng'] - bdy['lng']) / bdA + bdz['width'] / 0x2), + 'y': Math['round']((bdy['lat'] - bdw['lat']) / bdA + bdz['height'] / 0x2) + }; + } + } + }, { + 'key': 'p' + doo(0x547) + 't', + 'value': function(bdw, bdx, bdy, bdz) { + if (bdw) { + var bdA = this['getZoomUnits'](bdx) + , bdB = { + 'lng': bdy['lng'] + bdA * (bdw['x'] - bdz['width'] / 0x2), + 'lat': bdy[dol(0xc02)] - bdA * (bdw['y'] - bdz['height'] / 0x2) + }; + return this['mercatorToLngLat'](bdB); + } + } + }, { + 'key': 'g' + doo(0x548) + 's', + 'value': function(bdw) { + return Math['pow'](0x2, 0x12 - bdw); + } + }]), + bdw; + }() + , bdO = 52.35987755982988 + , bdP = 3.141592653589793 + , bdQ = 0.006693421622965943 + , bdR = function() { + function bdw() { + bdA()(this, bdw); + } + return q()(bdw, null, [{ + 'key': 'B' + doo(0x549) + '2', + 'value': function(bdw, bdx) { + var bdy = +bdw - 0.0065 + , bdz = +bdx - 0.006 + , bdA = Math['sqrt'](bdy * bdy + bdz * bdz) - 0.00002 * Math['sin'](bdz * bdO) + , bdB = Math['atan2'](bdz, bdy) - 0.000003 * Math['cos'](bdy * bdO); + return [bdA * Math['cos'](bdB), bdA * Math['sin'](bdB)]; + } + }, { + 'key': 'G' + doo(0x54a) + '9', + 'value': function(bdw, bdx) { + bdx = +bdx, + bdw = +bdw; + var bdy = Math['sqrt'](bdw * bdw + bdx * bdx) + 0.00002 * Math['sin'](bdx * bdO) + , bdz = Math['atan2'](bdx, bdw) + 0.000003 * Math['cos'](bdw * bdO); + return [bdy * Math['cos'](bdz) + 0.0065, bdy * Math['sin'](bdz) + 0.006]; + } + }, { + 'key': 'W' + doo(0x54b) + '2', + 'value': function(bdw, bdx) { + if (bdx = +bdx, + bdw = +bdw, + this['out_of_china'](bdw, bdx)) + return [bdw, bdx]; + var bdy = this['delta'](bdw, bdx); + return [bdw + bdy[0x0], bdx + bdy[0x1]]; + } + }, { + 'key': 'G' + doo(0x54c) + '4', + 'value': function(bdw, bdx) { + if (bdx = +bdx, + bdw = +bdw, + this['out_of_china'](bdw, bdx)) + return [bdw, bdx]; + var bdy = this['delta'](bdw, bdx); + return [0x2 * bdw - (bdw + bdy[0x0]), 0x2 * bdx - (bdx + bdy[0x1])]; + } + }, { + 'key': 'd' + doo(0x54d) + 'a', + 'value': function(bdw, bdx) { + var bdy = this['transformLng'](bdw - 0x69, bdx - 0x23) + , bdz = this['transformLat'](bdw - 0x69, bdx - 0x23) + , bdA = bdx / 0xb4 * bdP + , bdB = Math['sin'](bdA); + bdB = 0x1 - bdQ * bdB * bdB; + var q = Math['sqrt'](bdB); + return [bdy = 0xb4 * bdy / (0x615305 / q * Math['cos'](bdA) * bdP), bdz = 0xb4 * bdz / (0x615305 * (0x1 - bdQ) / (bdB * q) * bdP)]; + } + }, { + 'key': 't' + doo(0x54e) + 'g', + 'value': function(bdw, bdx) { + var bdy = 0x12c + (bdw = +bdw) + 0x2 * (bdx = +bdx) + 0.1 * bdw * bdw + 0.1 * bdw * bdx + 0.1 * Math[dol(0xc03)](Math['abs'](bdw)); + return bdy += 0x2 * (0x14 * Math['sin'](0x6 * bdw * bdP) + 0x14 * Math['sin'](0x2 * bdw * bdP)) / 0x3, + bdy += 0x2 * (0x14 * Math['sin'](bdw * bdP) + 0x28 * Math['sin'](bdw / 0x3 * bdP)) / 0x3, + bdy += 0x2 * (0x96 * Math['sin'](bdw / 0xc * bdP) + 0x12c * Math['sin'](bdw / 0x1e * bdP)) / 0x3; + } + }, { + 'key': 't' + doo(0x54f) + 't', + 'value': function(bdw, bdx) { + var bdy = 0x2 * (bdw = +bdw) - 0x64 + 0x3 * (bdx = +bdx) + 0.2 * bdx * bdx + 0.1 * bdw * bdx + 0.2 * Math['sqrt'](Math['abs'](bdw)); + return bdy += 0x2 * (0x14 * Math['sin'](0x6 * bdw * bdP) + 0x14 * Math['sin'](0x2 * bdw * bdP)) / 0x3, + bdy += 0x2 * (0x14 * Math['sin'](bdx * bdP) + 0x28 * Math['sin'](bdx / 0x3 * bdP)) / 0x3, + bdy += 0x2 * (0xa0 * Math['sin'](bdx / 0xc * bdP) + 0x140 * Math['sin'](bdx * bdP / 0x1e)) / 0x3; + } + }, { + 'key': 'o' + doo(0x550) + 'a', + 'value': function(bdw, bdx) { + return bdx = +bdx, + !((bdw = +bdw) > 73.66 && bdw < 135.05 && bdx > 3.86 && bdx < 53.55); + } + }]), + bdw; + }(); + function bfo(bdw) { + var bdx = function() { + if ('u' + doo(0x551) + 'd' == typeof Reflect || !Reflect['construct']) + return !0x1; + if (Reflect['construct']['sham']) + return !0x1; + if ('f' + doo(0x552) + 'n' == typeof Proxy) + return !0x0; + try { + return Boolean['prototype']['valueOf']['call'](Reflect['construct'](Boolean, [], function() {})), + !0x0; + } catch (bfr) { + return !0x1; + } + }(); + return function() { + var bdy, bdz = bdI()(bdw); + if (bdx) { + var bdA = bdI()(this)['constructor']; + bdy = Reflect['construct'](bdz, arguments, bdA); + } else + bdy = bdz['apply'](this, arguments); + return bdG()(this, bdy); + } + ; + } + var bfv = function(bdw) { + bdE()(bdy, bdw); + var bdx = bfo(bdy); + function bdy(bdw) { + var bdz; + bdA()(this, bdy), + bdz = bdx['call'](this, bdw); + var bdB = new bdN(); + return bdz['_projection']['project'] = function(bdw, bdx) { + return bdx = bdx || {}, + bdx = bdR['WGS84ToGCJ02'](Cesium['Math']['toDegrees'](bdw['longitude']), Cesium['Math']['toDegrees'](bdw['latitude'])), + (bdx = bdR[dol(0xc04)](bdx[0x0], bdx[0x1]))[0x0] = Math['min'](bdx[0x0], 0xb4), + bdx[0x0] = Math['max'](bdx[0x0], -0xb4), + bdx[0x1] = Math['min'](bdx[0x1], 74.000022), + bdx[0x1] = Math['max'](bdx[0x1], -71.988531), + bdx = bdB['lngLatToPoint']({ + 'lng': bdx[0x0], + 'lat': bdx[0x1] + }), + new Cesium['Cartesian2'](bdx['x'],bdx['y']); + } + , + bdz['_projection'][dol(0xc05)] = function(bdw, bdx) { + return bdx = bdx || {}, + bdx = bdB['mercatorToLngLat']({ + 'lng': bdw['x'], + 'lat': bdw['y'] + }), + bdx = bdR['BD09ToGCJ02'](bdx['lng'], bdx['lat']), + bdx = bdR['GCJ02ToWGS84'](bdx[0x0], bdx[0x1]), + new Cesium['Cartographic'](Cesium['Math']['toRadians'](bdx[0x0]),Cesium['Math']['toRadians'](bdx[0x1])); + } + , + bdz['resolutions'] = bdw['resolutions'] || [], + bdz; + } + return q()(bdy, [{ + 'key': doj(0x152), + 'value': function(bdw, bdx, bdy, bdz) { + var bdA = this['resolutions'][bdy] + , bdB = bdw * bdA + , q = (bdw + 0x1) * bdA + , bdD = (0x1 + (bdx = -bdx)) * bdA + , bdE = bdx * bdA; + return Cesium['defined'](bdz) ? (bdz['west'] = bdB, + bdz['south'] = bdE, + bdz['east'] = q, + bdz['north'] = bdD, + bdz) : new Cesium['Rectangle'](bdB,bdE,q,bdD); + } + }, { + 'key': 'p' + doo(0x553) + 'Y', + 'value': function(bdw, bdx, bdy) { + var bdz = this['_rectangle']; + if (Cesium['Rectangle']['contains'](bdz, bdw)) { + var bdA = this['_projection']['project'](bdw); + if (Cesium['defined'](bdA)) { + var bdB = this['resolutions'][bdx] + , q = Math['floor'](bdA['x'] / bdB) + , bdD = -Math[dol(0xc06)](bdA['y'] / bdB); + return Cesium['defined'](bdy) ? (bdy['x'] = q, + bdy['y'] = bdD, + bdy) : new Cesium['Cartesian2'](q,bdD); + } + } + } + }]), + bdy; + }(Cesium[dol(0xc07)]) + , bfw = doj(0x153) + , bfx = doj(0x154) + , bfy = doj(0x155) + , bfz = function() { + function bdw() { + var bdx = arguments['length'] > 0x0 && void 0x0 !== arguments[0x0] ? arguments[0x0] : {}; + if (bdA()(this, bdw), + this['_url'] = doh(0x7f) === bdx['style'] ? bfw : doh(0x80) === bdx['style'] ? bfx : bfy, + this['_tileWidth'] = 0x100, + this['_tileHeight'] = 0x100, + this['_maximumLevel'] = 0x12, + this['_crs'] = bdx[dol(0xc08)] || 'B' + doo(0x554) + '9', + 'W' + doo(0x555) + '4' === bdx['crs']) { + for (var bdy = [], bdz = 0x0; bdz < 0x13; bdz++) + bdy[bdz] = 0x100 * Math['pow'](0x2, 0x12 - bdz); + this['_tilingScheme'] = new bfv({ + 'resolutions': bdy, + 'rectangleSouthwestInMeters': new Cesium['Cartesian2'](-20037726.37,-12474104.17), + 'rectangleNortheastInMeters': new Cesium['Cartesian2'](20037726.37,12474104.17) + }); + } else + this['_tilingScheme'] = new Cesium['WebMercatorTilingScheme']({ + 'rectangleSouthwestInMeters': new Cesium['Cartesian2'](-0x1fffe86,-0x202ef88), + 'rectangleNortheastInMeters': new Cesium[(dol(0xc09))](0x1fffe86,0x202ef88) + }); + this['_rectangle'] = this['_tilingScheme']['rectangle'], + this['_credit'] = void 0x0, + this['_style'] = bdx[dol(0xc0a)] || 'n' + doo(0x556) + 'l'; + } + return q()(bdw, [{ + 'key': doh(0x81), + 'get': function() { + return this['_url']; + } + }, { + 'key': 't' + doo(0x557) + 'n', + 'get': function() { + return this['_token']; + } + }, { + 'key': 't' + doo(0x558) + 'h', + 'get': function() { + if (!this['ready']) + throw new Cesium['DeveloperError'](doj(0x156)); + return this['_tileWidth']; + } + }, { + 'key': 't' + doo(0x559) + 't', + 'get': function() { + if (!this['ready']) + throw new Cesium['DeveloperError'](doj(0x157)); + return this['_tileHeight']; + } + }, { + 'key': 'm' + doo(0x55a) + 'l', + 'get': function() { + if (!this['ready']) + throw new Cesium['DeveloperError'](doj(0x158)); + return this['_maximumLevel']; + } + }, { + 'key': 'm' + doo(0x55b) + 'l', + 'get': function() { + if (!this['ready']) + throw new Cesium['DeveloperError'](doj(0x159)); + return 0x0; + } + }, { + 'key': 't' + doo(0x55c) + 'e', + 'get': function() { + if (!this['ready']) + throw new Cesium['DeveloperError'](doj(0x15a)); + return this['_tilingScheme']; + } + }, { + 'key': 'r' + doo(0x55d) + 'e', + 'get': function() { + if (!this['ready']) + throw new Cesium['DeveloperError'](doj(0x15b)); + return this['_rectangle']; + } + }, { + 'key': 'r' + doo(0x55e) + 'y', + 'get': function() { + return !!this['_url']; + } + }, { + 'key': 'c' + doo(0x55f) + 't', + 'get': function() { + return this['_credit']; + } + }, { + 'key': 'h' + doo(0x560) + 'l', + 'get': function() { + return !0x0; + } + }, { + 'key': 'g' + doo(0x561) + 's', + 'value': function(bdw, bdx, bdy) {} + }, { + 'key': 'r' + doo(0x562) + 'e', + 'value': function(bdw, bdx, bdy) { + if (!this['ready']) + throw new Cesium[(dol(0xc0b))](doj(0x15c)); + var bdz = this['_tilingScheme']['getNumberOfXTilesAtLevel'](bdy) + , bdA = this['_tilingScheme']['getNumberOfYTilesAtLevel'](bdy) + , bdB = this['_url']['replace'](doh(0x82), bdy)[dol(0xc0c)](doh(0x83), String(0x1))['replace']('{' + doo(0x563) + '}', this['_style']); + return bdB = 'W' + doo(0x564) + '4' === this['_crs'] ? bdB[dol(0xc0d)](doh(0x84), String(bdw))['replace'](doh(0x85), String(-bdx)) : bdB['replace'](doh(0x86), String(bdw - bdz / 0x2))['replace'](doh(0x87), String(bdA / 0x2 - bdx - 0x1)), + Cesium[dol(0xc0e)]['loadImage'](this, bdB); + } + }]), + bdw; + }(); + function bge(bdw) { + var bdx = function() { + if ('u' + doo(0x565) + 'd' == typeof Reflect || !Reflect[dol(0xc0f)]) + return !0x1; + if (Reflect['construct'][dol(0xc10)]) + return !0x1; + if ('f' + doo(0x566) + 'n' == typeof Proxy) + return !0x0; + try { + return Boolean['prototype'][dol(0xc11)]['call'](Reflect['construct'](Boolean, [], function() {})), + !0x0; + } catch (bgh) { + return !0x1; + } + }(); + return function() { + var bdy, bdz = bdI()(bdw); + if (bdx) { + var bdA = bdI()(this)['constructor']; + bdy = Reflect['construct'](bdz, arguments, bdA); + } else + bdy = bdz['apply'](this, arguments); + return bdG()(this, bdy); + } + ; + } + var bgl = function(bdw) { + bdE()(bdy, bdw); + var bdx = bge(bdy); + function bdy(bdw) { + var bdz; + bdA()(this, bdy), + bdz = bdx['call'](this, bdw); + var bdB = new Cesium['WebMercatorProjection'](); + return bdz['_projection']['project'] = function(bdw, bdx) { + return bdx = bdR[dol(0xc12)](Cesium['Math']['toDegrees'](bdw['longitude']), Cesium['Math'][dol(0xc13)](bdw['latitude'])), + bdx = bdB['project'](new Cesium['Cartographic'](Cesium['Math']['toRadians'](bdx[0x0]),Cesium['Math']['toRadians'](bdx[0x1]))), + new Cesium['Cartesian2'](bdx['x'],bdx['y']); + } + , + bdz['_projection']['unproject'] = function(bdw, bdx) { + var bdy = bdB['unproject'](bdw); + return bdx = bdR['GCJ02ToWGS84'](Cesium['Math']['toDegrees'](bdy['longitude']), Cesium['Math']['toDegrees'](bdy['latitude'])), + new Cesium['Cartographic'](Cesium[dol(0xc14)]['toRadians'](bdx[0x0]),Cesium[dol(0xc15)]['toRadians'](bdx[0x1])); + } + , + bdz; + } + return bdy; + }(Cesium['WebMercatorTilingScheme']); + function bgx(bdw) { + var bdx = function() { + if ('u' + doo(0x567) + 'd' == typeof Reflect || !Reflect['construct']) + return !0x1; + if (Reflect[dol(0xc16)][dol(0xc17)]) + return !0x1; + if ('f' + doo(0x568) + 'n' == typeof Proxy) + return !0x0; + try { + return Boolean['prototype']['valueOf']['call'](Reflect['construct'](Boolean, [], function() {})), + !0x0; + } catch (bgA) { + return !0x1; + } + }(); + return function() { + var bdy, bdz = bdI()(bdw); + if (bdx) { + var bdA = bdI()(this)['constructor']; + bdy = Reflect['construct'](bdz, arguments, bdA); + } else + bdy = bdz['apply'](this, arguments); + return bdG()(this, bdy); + } + ; + } + var bgE = doj(0x15d) + , bgF = doj(0x15e) + , bgG = function(bdw) { + bdE()(bdy, bdw); + var bdx = bgx(bdy); + function bdy() { + var bdw = arguments['length'] > 0x0 && void 0x0 !== arguments[0x0] ? arguments[0x0] : {}; + return bdA()(this, bdy), + bdw['url'] = doh(0x88) === bdw['style'] ? doj(0x15f) : doh(0x89) === bdw[dol(0xc18)] ? bgF : bgE, + bdw['subdomains'] && bdw['subdomains']['length'] || (bdw['subdomains'] = [doh(0x8a), doh(0x8b), doh(0x8c), doh(0x8d)]), + 'W' + doo(0x569) + '4' === bdw['crs'] && (bdw['tilingScheme'] = new bgl()), + bdx['call'](this, bdw); + } + return bdy; + }(Cesium['UrlTemplateImageryProvider']); + function bgL(bdw) { + var bdx = function() { + if ('u' + doo(0x56a) + 'd' == typeof Reflect || !Reflect['construct']) + return !0x1; + if (Reflect['construct']['sham']) + return !0x1; + if ('f' + doo(0x56b) + 'n' == typeof Proxy) + return !0x0; + try { + return Boolean['prototype']['valueOf']['call'](Reflect['construct'](Boolean, [], function() {})), + !0x0; + } catch (bgO) { + return !0x1; + } + }(); + return function() { + var bdy, bdz = bdI()(bdw); + if (bdx) { + var bdA = bdI()(this)['constructor']; + bdy = Reflect['construct'](bdz, arguments, bdA); + } else + bdy = bdz['apply'](this, arguments); + return bdG()(this, bdy); + } + ; + } + var bgS = function(bdw) { + bdE()(bdy, bdw); + var bdx = bgL(bdy); + function bdy() { + var bdw = arguments['length'] > 0x0 && void 0x0 !== arguments[0x0] ? arguments[0x0] : {}; + bdA()(this, bdy); + var bdz = doh(0x8e) === bdw['style'] ? doj(0x160) : doj(0x161); + return bdw['url'] = bdz['replace']('{' + doo(0x56c) + '}', bdw['style'] || 0x1), + bdw['subdomains'] && bdw['subdomains']['length'] || (bdw['subdomains'] = ['0', '1', '2']), + doh(0x8f) === bdw['style'] && (bdw['customTags'] = { + 'sx': function(bdw, bdx, bdy, bdz) { + return bdx >> 0x4; + }, + 'sy': function(bdw, bdx, bdy, bdz) { + return (0x1 << bdz) - bdy >> 0x4; + } + }), + bdx['call'](this, bdw); + } + return bdy; + }(Cesium['UrlTemplateImageryProvider']); + function bh6(bdw) { + var bdx = function() { + if ('u' + doo(0x56d) + 'd' == typeof Reflect || !Reflect['construct']) + return !0x1; + if (Reflect['construct']['sham']) + return !0x1; + if ('f' + doo(0x56e) + 'n' == typeof Proxy) + return !0x0; + try { + return Boolean[dol(0xc19)]['valueOf'][dol(0xc1a)](Reflect['construct'](Boolean, [], function() {})), + !0x0; + } catch (bh9) { + return !0x1; + } + }(); + return function() { + var bdy, bdz = bdI()(bdw); + if (bdx) { + var bdA = bdI()(this)['constructor']; + bdy = Reflect['construct'](bdz, arguments, bdA); + } else + bdy = bdz['apply'](this, arguments); + return bdG()(this, bdy); + } + ; + } + var bhd = doj(0x162) + , bhe = function(bdw) { + bdE()(bdy, bdw); + var bdx = bh6(bdy); + function bdy() { + var bdw = arguments['length'] > 0x0 && void 0x0 !== arguments[0x0] ? arguments[0x0] : {}; + return bdA()(this, bdy), + bdx['call'](this, { + 'url': bhd['replace'](/\{style\}/g, bdw['style'] || doh(0x90))['replace'](/\{key\}/g, bdw[dol(0xc1b)] || ''), + 'subdomains': ['0', '1', '2', '3', '4', '5', '6', '7'], + 'tilingScheme': new Cesium['WebMercatorTilingScheme'](), + 'maximumLevel': 0x12 + }); + } + return bdy; + }(Cesium['UrlTemplateImageryProvider']); + function bhj(bdw) { + var bdx = function() { + if ('u' + doo(0x56f) + 'd' == typeof Reflect || !Reflect['construct']) + return !0x1; + if (Reflect[dol(0xc1c)][dol(0xc1d)]) + return !0x1; + if ('f' + doo(0x570) + 'n' == typeof Proxy) + return !0x0; + try { + return Boolean['prototype']['valueOf']['call'](Reflect['construct'](Boolean, [], function() {})), + !0x0; + } catch (bhm) { + return !0x1; + } + }(); + return function() { + var bdy, bdz = bdI()(bdw); + if (bdx) { + var bdA = bdI()(this)['constructor']; + bdy = Reflect['construct'](bdz, arguments, bdA); + } else + bdy = bdz['apply'](this, arguments); + return bdG()(this, bdy); + } + ; + } + var bhq = doj(0x163) + , bhr = doj(0x164) + , bhs = function(bdw) { + bdE()(bdy, bdw); + var bdx = bhj(bdy); + function bdy() { + var bdw = arguments['length'] > 0x0 && void 0x0 !== arguments[0x0] ? arguments[0x0] : {}; + return bdA()(this, bdy), + bdw['url'] = doh(0x91) === bdw['style'] ? doj(0x165) : doh(0x92) === bdw[dol(0xc1e)] ? bhr : bhq, + bdw['subdomains'] && bdw['subdomains']['length'] || (bdw['subdomains'] = ['1', '2', '3']), + bdx['call'](this, bdw); + } + return bdy; + }(Cesium[dol(0xc1f)]); + Cesium['AmapImageryProvider'] = bgG, + Cesium['BaiduImageryProvider'] = bfz, + Cesium['TencentImageryProvider'] = bgS, + Cesium['TdtImageryProvider'] = bhe, + Cesium['GoogleImageryProvider'] = bhs; + } + ]); + (function webpackUniversalModuleDefinition(bhx, bhy) { + if (typeof exports === 'o' + doo(0x571) + 't' && typeof module === 'o' + doo(0x572) + 't') + module['exports'] = bhy(require('C' + doo(0x573) + 'm')); + else if (typeof define === 'f' + doo(0x574) + 'n' && define['amd']) + define(['C' + doo(0x575) + 'm'], bhy); + else if (typeof exports === 'o' + doo(0x576) + 't') + exports['C' + doo(0x577) + 'y'] = bhy(require('C' + doo(0x578) + 'm')); + else + bhx['C' + doo(0x579) + 'y'] = bhy(bhx['C' + doo(0x57a) + 'm']); + }(typeof self !== 'u' + doo(0x57b) + 'd' ? self : this, function(bhz) { + return function(bhA) { + var bhB = {}; + function bhC(bhD) { + if (bhB[bhD]) { + return bhB[bhD]['exports']; + } + var bhE = bhB[bhD] = { + 'i': bhD, + 'l': ![], + 'exports': {} + }; + bhA[bhD]['call'](bhE['exports'], bhE, bhE['exports'], bhC); + bhE['l'] = !![]; + return bhE['exports']; + } + bhC['m'] = bhA; + bhC['c'] = bhB; + bhC['d'] = function(bhF, bhG, bhH) { + if (!bhC['o'](bhF, bhG)) { + Object['defineProperty'](bhF, bhG, { + 'configurable': ![], + 'enumerable': !![], + 'get': bhH + }); + } + } + ; + bhC['n'] = function(bhI) { + var bhJ = bhI && bhI['__esModule'] ? function getDefault() { + return bhI['d' + doo(0x57c) + 't']; + } + : function getModuleExports() { + return bhI; + } + ; + bhC['d'](bhJ, 'a', bhJ); + return bhJ; + } + ; + bhC['o'] = function(bhK, bhL) { + return Object['prototype']['hasOwnProperty']['call'](bhK, bhL); + } + ; + bhC['p'] = ''; + return bhC(bhC['s'] = 0x6); + }([function(bhM, bhN) { + bhM['exports'] = bhz; + } + , function(bhO, bhP, bhQ) { + 'u' + doo(0x57d) + 't'; + Object['defineProperty'](bhP, '_' + doo(0x57e) + 'e', { + 'value': !![] + }); + var bhR = {}; + (function() { + var bhS = /((?:.*\/)|^)Cesium[\w-]*\.js(?:\W|$)/i; + function bhT() { + var bhU = document['getElementsByTagName']('s' + doo(0x57f) + 't'); + for (var bhV = 0x0, bhW = bhU['length']; bhV < bhW; ++bhV) { + var bhX = bhU[bhV][dol(0xc20)](doh(0x93)); + var bhY = bhS['exec'](bhX); + if (bhY !== null) { + return bhY[0x1]; + } + } + return undefined; + } + var bhZ = undefined; + bhR['getBaseUrl'] = function() { + if (bhZ === undefined) { + bhZ = bhT(); + } + return bhZ; + } + ; + }()); + bhP['util'] = bhR; + } + , function(bi0, bi1, bi2) { + 'u' + doo(0x580) + 't'; + Object['defineProperty'](bi1, '_' + doo(0x581) + 'e', { + 'value': !![] + }); + bi1[dol(0xc21)] = undefined; + var bi3 = bi2(0x0); + var bi4 = bid(bi3); + var bi5 = bi2(0x8); + var bi6 = bid(bi5); + var bi7 = bi2(0x9); + var bi8 = bid(bi7); + var bi9 = bi2(0xa); + var bia = bid(bi9); + var bib = bi2(0xb); + var bic = bid(bib); + function bid(bie) { + return { + 'default': bie + }; + } + var bif = bi4['default']['BoundingSphere']; + var big = bi4['default']['Cartesian3']; + var bih = bi4['default']['Color']; + var bii = bi4['default']['combine']; + var bij = bi4['default']['ComponentDatatype']; + var bik = bi4['default']['defaultValue']; + var bil = bi4[dol(0xc22)]['defined']; + var bim = bi4['default']['defineProperties']; + var bin = bi4['default']['destroyObject']; + var bio = bi4['default']['DeveloperError']; + var bip = bi4['default'][dol(0xc23)]; + var biq = bi4['default']['PrimitiveType']; + var bir = bi4['default']['Buffer']; + var bis = bi4[dol(0xc24)]['BufferUsage']; + var bit = bi4['default']['DrawCommand']; + var biu = bi4['default']['Pass']; + var biv = bi4['default']['RenderState']; + var biw = bi4['default']['ShaderProgram']; + var bix = bi4['default']['ShaderSource']; + var biy = bi4['default']['VertexArray']; + var biz = bi4['default']['BlendingState']; + var biA = bi4['default']['CullFace']; + var biB = bi4['default']['Material']; + var biC = bi4['default']['SceneMode']; + var biD = bi4['default']['VertexFormat']; + var biE = bi4['default']['Math']; + var biF = bi4['default']['Matrix3']; + var bip = bi4['default']['Matrix4']; + var biH = bi4['default'][dol(0xc25)]; + var biI = bi4['default']['BoxGeometry']; + var biJ = bi4['default']['EllipsoidGeometry']; + var biK = Math['sin']; + var biL = Math['cos']; + var biM = Math['tan']; + var biN = Math['atan']; + var biO = Math['asin']; + var biP = { + 'position': 0x0, + 'normal': 0x1 + }; + function biQ(biR) { + var biS = this; + biR = bik(biR, bik['EMPTY_OBJECT']); + this['show'] = bik(biR['show'], !![]); + this['slice'] = bik(biR['slice'], 0x20); + this['modelMatrix'] = bip['clone'](biR['modelMatrix'], new bip()); + this['_modelMatrix'] = new bip(); + this['_computedModelMatrix'] = new bip(); + this['_computedScanPlaneModelMatrix'] = new bip(); + this['radius'] = bik(biR['radius'], Number['POSITIVE_INFINITY']); + this['_radius'] = undefined; + this['xHalfAngle'] = bik(biR['xHalfAngle'], 0x0); + this['_xHalfAngle'] = undefined; + this['yHalfAngle'] = bik(biR['yHalfAngle'], 0x0); + this['_yHalfAngle'] = undefined; + this['lineColor'] = bik(biR['lineColor'], bih['WHITE']); + this['showSectorLines'] = bik(biR['showSectorLines'], !![]); + this['showSectorSegmentLines'] = bik(biR['showSectorSegmentLines'], !![]); + this['showLateralSurfaces'] = bik(biR['showLateralSurfaces'], !![]); + this['material'] = bil(biR['material']) ? biR['material'] : biB['fromType'](biB['ColorType']); + this['_material'] = undefined; + this['_translucent'] = undefined; + this['lateralSurfaceMaterial'] = bil(biR['lateralSurfaceMaterial']) ? biR['lateralSurfaceMaterial'] : biB['fromType'](biB['ColorType']); + this['_lateralSurfaceMaterial'] = undefined; + this['_lateralSurfaceTranslucent'] = undefined; + this['showDomeSurfaces'] = bik(biR['showDomeSurfaces'], !![]); + this['domeSurfaceMaterial'] = bil(biR[dol(0xc26)]) ? biR['domeSurfaceMaterial'] : biB['fromType'](biB['ColorType']); + this['_domeSurfaceMaterial'] = undefined; + this['showDomeLines'] = bik(biR['showDomeLines'], !![]); + this['showIntersection'] = bik(biR['showIntersection'], !![]); + this['intersectionColor'] = bik(biR['intersectionColor'], bih['WHITE']); + this['intersectionWidth'] = bik(biR['intersectionWidth'], 0x5); + this['showThroughEllipsoid'] = bik(biR['showThroughEllipsoid'], ![]); + this['_showThroughEllipsoid'] = undefined; + this['showScanPlane'] = bik(biR[dol(0xc27)], !![]); + this['scanPlaneColor'] = bik(biR['scanPlaneColor'], bih['WHITE']); + this['scanPlaneMode'] = bik(biR[dol(0xc28)], 'h' + doo(0x582) + 'l'); + this['scanPlaneRate'] = bik(biR['scanPlaneRate'], 0xa); + this['_scanePlaneXHalfAngle'] = 0x0; + this['_scanePlaneYHalfAngle'] = 0x0; + this['_time'] = biH['now'](); + this['_boundingSphere'] = new bif(); + this['_boundingSphereWC'] = new bif(); + this['_sectorFrontCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['TRIANGLES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_sectorBackCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['TRIANGLES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_sectorVA'] = undefined; + this['_sectorLineCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['LINES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_sectorLineVA'] = undefined; + this['_sectorSegmentLineCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['LINES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_sectorSegmentLineVA'] = undefined; + this['_domeFrontCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['TRIANGLES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_domeBackCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['TRIANGLES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_domeVA'] = undefined; + this['_domeLineCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['LINES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_domeLineVA'] = undefined; + this['_scanPlaneFrontCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['TRIANGLES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_scanPlaneBackCommand'] = new bit({ + 'owner': this, + 'primitiveType': biq['TRIANGLES'], + 'boundingVolume': this['_boundingSphereWC'] + }); + this['_scanRadialCommand'] = undefined; + this['_colorCommands'] = []; + this['_frontFaceRS'] = undefined; + this['_backFaceRS'] = undefined; + this['_sp'] = undefined; + this['_uniforms'] = { + 'u_type': function u_type() { + return 0x0; + }, + 'u_xHalfAngle': function u_xHalfAngle() { + return biS['xHalfAngle']; + }, + 'u_yHalfAngle': function u_yHalfAngle() { + return biS['yHalfAngle']; + }, + 'u_radius': function u_radius() { + return biS['radius']; + }, + 'u_showThroughEllipsoid': function u_showThroughEllipsoid() { + return biS['showThroughEllipsoid']; + }, + 'u_showIntersection': function u_showIntersection() { + return biS['showIntersection']; + }, + 'u_intersectionColor': function u_intersectionColor() { + return biS['intersectionColor']; + }, + 'u_intersectionWidth': function u_intersectionWidth() { + return biS['intersectionWidth']; + }, + 'u_normalDirection': function u_normalDirection() { + return 0x1; + }, + 'u_lineColor': function u_lineColor() { + return biS['lineColor']; + } + }; + this['_scanUniforms'] = { + 'u_xHalfAngle': function u_xHalfAngle() { + return biS['_scanePlaneXHalfAngle']; + }, + 'u_yHalfAngle': function u_yHalfAngle() { + return biS['_scanePlaneYHalfAngle']; + }, + 'u_radius': function u_radius() { + return biS['radius']; + }, + 'u_color': function u_color() { + return biS['scanPlaneColor']; + }, + 'u_showThroughEllipsoid': function u_showThroughEllipsoid() { + return biS['showThroughEllipsoid']; + }, + 'u_showIntersection': function u_showIntersection() { + return biS['showIntersection']; + }, + 'u_intersectionColor': function u_intersectionColor() { + return biS['intersectionColor']; + }, + 'u_intersectionWidth': function u_intersectionWidth() { + return biS['intersectionWidth']; + }, + 'u_normalDirection': function u_normalDirection() { + return 0x1; + }, + 'u_lineColor': function u_lineColor() { + return biS['lineColor']; + } + }; + } + biQ['prototype']['update'] = function(biT) { + var biU = biT['mode']; + if (!this['show'] || biU !== biC['SCENE3D']) { + return; + } + var biV = ![]; + var biW = ![]; + var biX = ![]; + var biY = this['xHalfAngle']; + var biZ = this['yHalfAngle']; + if (biY < 0x0 || biZ < 0x0) { + throw new bio(doj(0x166)); + } + if (biY == 0x0 || biZ == 0x0) { + return; + } + if (this['_xHalfAngle'] !== biY || this['_yHalfAngle'] !== biZ) { + this['_xHalfAngle'] = biY; + this['_yHalfAngle'] = biZ; + biV = !![]; + } + var bj0 = this['radius']; + if (bj0 < 0x0) { + throw new bio(doj(0x167)); + } + var bj1 = ![]; + if (this['_radius'] !== bj0) { + bj1 = !![]; + this['_radius'] = bj0; + this['_boundingSphere'] = new bif(big['ZERO'],this['radius']); + } + var bj2 = !bip['equals'](this['modelMatrix'], this['_modelMatrix']); + if (bj2 || bj1) { + bip['clone'](this['modelMatrix'], this['_modelMatrix']); + bip['multiplyByUniformScale'](this['modelMatrix'], this['radius'], this['_computedModelMatrix']); + bif['transform'](this['_boundingSphere'], this['modelMatrix'], this['_boundingSphereWC']); + } + var bj3 = this['showThroughEllipsoid']; + if (this['_showThroughEllipsoid'] !== this['showThroughEllipsoid']) { + this['_showThroughEllipsoid'] = bj3; + biW = !![]; + } + var bj4 = this['material']; + if (this['_material'] !== bj4) { + this['_material'] = bj4; + biW = !![]; + biX = !![]; + } + var bj5 = bj4['isTranslucent'](); + if (this['_translucent'] !== bj5) { + this['_translucent'] = bj5; + biW = !![]; + } + if (this['showScanPlane']) { + var bj6 = biT['time']; + var bj7 = biH['secondsDifference'](bj6, this['_time']); + if (bj7 < 0x0) { + this['_time'] = biH['clone'](bj6, this['_time']); + } + var bj8 = Math['max'](bj7 % this['scanPlaneRate'] / this['scanPlaneRate'], 0x0); + var bj9; + if (this['scanPlaneMode'] == 'h' + doo(0x583) + 'l') { + bj9 = 0x2 * biZ * bj8 - biZ; + var bja = biL(bj9); + var bjb = biM(biY); + var bjc = biN(bja * bjb); + this['_scanePlaneXHalfAngle'] = bjc; + this['_scanePlaneYHalfAngle'] = bj9; + bi4['default']['Matrix3']['fromRotationX'](this['_scanePlaneYHalfAngle'], bjm); + } else { + bj9 = 0x2 * biY * bj8 - biY; + var bjd = biM(biZ); + var bje = biL(bj9); + var bjf = biN(bje * bjd); + this['_scanePlaneXHalfAngle'] = bj9; + this['_scanePlaneYHalfAngle'] = bjf; + bi4['default']['Matrix3']['fromRotationY'](this['_scanePlaneXHalfAngle'], bjm); + } + bi4['default']['Matrix4']['multiplyByMatrix3'](this['modelMatrix'], bjm, this['_computedScanPlaneModelMatrix']); + bip['multiplyByUniformScale'](this['_computedScanPlaneModelMatrix'], this['radius'], this['_computedScanPlaneModelMatrix']); + } + if (biV) { + bkS(this, biT); + } + if (biW) { + blj(this, bj3, bj5); + } + if (biX) { + blf(this, biT, bj4); + } + if (biW || biX) { + blA(this, bj5); + } + var bjg = biT[dol(0xc29)]; + var bjh = biT['passes']; + var bji = this['_colorCommands']; + if (bjh['render']) { + for (var bjj = 0x0, bjk = bji['length']; bjj < bjk; bjj++) { + var bjl = bji[bjj]; + bjg['push'](bjl); + } + } + } + ; + var bjm = new biF(); + var bjn = new big(); + function bjo(bjp, bjq, bjr) { + var bjs = bjp['slice']; + var bjt = biL(bjr); + var bju = biM(bjr); + var bjv = biL(bjq); + var bjw = biM(bjq); + var bjx = biN(bjv * bju); + var bjy = biN(bjt * bjw); + var bjz = []; + for (var bjA = 0x0; bjA < bjs; bjA++) { + var bjB = 0x2 * bjx * bjA / (bjs - 0x1) - bjx; + bjz[dol(0xc2a)](new big(0x0,biK(bjB),biL(bjB))); + } + var bjC = []; + for (var bjA = 0x0; bjA < bjs; bjA++) { + var bjB = 0x2 * bjy * bjA / (bjs - 0x1) - bjy; + bjC['push'](new big(biK(bjB),0x0,biL(bjB))); + } + return { + 'zoy': bjz, + 'zox': bjC + }; + } + function bjF(bjG, bjH) { + var bjI = bjG['xHalfAngle'] + , bjJ = bjG['yHalfAngle'] + , bjK = bjH['zoy'] + , bjL = bjH['zox']; + var bjM = []; + var bjN = biF['fromRotationY'](bjI, bjm); + bjM['push'](bjK['map'](function(bjO) { + return biF['multiplyByVector'](bjN, bjO, new bi4['default']['Cartesian3']()); + })); + var bjN = biF['fromRotationX'](-bjJ, bjm); + bjM['push'](bjL['map'](function(bjQ) { + return biF['multiplyByVector'](bjN, bjQ, new bi4['default']['Cartesian3']()); + })['reverse']()); + var bjN = biF['fromRotationY'](-bjI, bjm); + bjM['push'](bjK['map'](function(bjS) { + return biF['multiplyByVector'](bjN, bjS, new bi4['default']['Cartesian3']()); + })['reverse']()); + var bjN = biF['fromRotationX'](bjJ, bjm); + bjM['push'](bjL['map'](function(bjU) { + return biF[dol(0xc2b)](bjN, bjU, new bi4['default']['Cartesian3']()); + })); + return bjM; + } + function bjV(bjW, bjX) { + var bjY = Array['prototype']['concat']['apply']([], bjX)['length'] - bjX['length']; + var bjZ = new Float32Array(0x2 * 0x3 * 0x3 * bjY); + var bk0 = 0x0; + for (var bk1 = 0x0, bk2 = bjX['length']; bk1 < bk2; bk1++) { + var bk3 = bjX[bk1]; + var bk4 = big['normalize'](big['cross'](bk3[0x0], bk3[bk3['length'] - 0x1], bjn), bjn); + for (var bk5 = 0x0, bjY = bk3['length'] - 0x1; bk5 < bjY; bk5++) { + bjZ[bk0++] = 0x0; + bjZ[bk0++] = 0x0; + bjZ[bk0++] = 0x0; + bjZ[bk0++] = -bk4['x']; + bjZ[bk0++] = -bk4['y']; + bjZ[bk0++] = -bk4['z']; + bjZ[bk0++] = bk3[bk5]['x']; + bjZ[bk0++] = bk3[bk5]['y']; + bjZ[bk0++] = bk3[bk5]['z']; + bjZ[bk0++] = -bk4['x']; + bjZ[bk0++] = -bk4['y']; + bjZ[bk0++] = -bk4['z']; + bjZ[bk0++] = bk3[bk5 + 0x1]['x']; + bjZ[bk0++] = bk3[bk5 + 0x1]['y']; + bjZ[bk0++] = bk3[bk5 + 0x1]['z']; + bjZ[bk0++] = -bk4['x']; + bjZ[bk0++] = -bk4['y']; + bjZ[bk0++] = -bk4['z']; + } + } + var bk7 = bir['createVertexBuffer']({ + 'context': bjW, + 'typedArray': bjZ, + 'usage': bis['STATIC_DRAW'] + }); + var bk8 = 0x2 * 0x3 * Float32Array['BYTES_PER_ELEMENT']; + var bk9 = [{ + 'index': biP['position'], + 'vertexBuffer': bk7, + 'componentsPerAttribute': 0x3, + 'componentDatatype': bij['FLOAT'], + 'offsetInBytes': 0x0, + 'strideInBytes': bk8 + }, { + 'index': biP['normal'], + 'vertexBuffer': bk7, + 'componentsPerAttribute': 0x3, + 'componentDatatype': bij['FLOAT'], + 'offsetInBytes': 0x3 * Float32Array['BYTES_PER_ELEMENT'], + 'strideInBytes': bk8 + }]; + return new biy({ + 'context': bjW, + 'attributes': bk9 + }); + } + function bka(bkb, bkc) { + var bkd = bkc['length']; + var bke = new Float32Array(0x3 * 0x3 * bkd); + var bkf = 0x0; + for (var bkg = 0x0, bkh = bkc['length']; bkg < bkh; bkg++) { + var bki = bkc[bkg]; + bke[bkf++] = 0x0; + bke[bkf++] = 0x0; + bke[bkf++] = 0x0; + bke[bkf++] = bki[0x0]['x']; + bke[bkf++] = bki[0x0]['y']; + bke[bkf++] = bki[0x0]['z']; + } + var bkj = bir[dol(0xc2c)]({ + 'context': bkb, + 'typedArray': bke, + 'usage': bis['STATIC_DRAW'] + }); + var bkk = 0x3 * Float32Array['BYTES_PER_ELEMENT']; + var bkl = [{ + 'index': biP['position'], + 'vertexBuffer': bkj, + 'componentsPerAttribute': 0x3, + 'componentDatatype': bij['FLOAT'], + 'offsetInBytes': 0x0, + 'strideInBytes': bkk + }]; + return new biy({ + 'context': bkb, + 'attributes': bkl + }); + } + function bkm(bkn, bko) { + var bkp = Array['prototype']['concat']['apply']([], bko)['length'] - bko['length']; + var bkq = new Float32Array(0x3 * 0x3 * bkp); + var bkr = 0x0; + for (var bks = 0x0, bkt = bko['length']; bks < bkt; bks++) { + var bku = bko[bks]; + for (var bkv = 0x0, bkp = bku['length'] - 0x1; bkv < bkp; bkv++) { + bkq[bkr++] = bku[bkv]['x']; + bkq[bkr++] = bku[bkv]['y']; + bkq[bkr++] = bku[bkv]['z']; + bkq[bkr++] = bku[bkv + 0x1]['x']; + bkq[bkr++] = bku[bkv + 0x1]['y']; + bkq[bkr++] = bku[bkv + 0x1]['z']; + } + } + var bkx = bir['createVertexBuffer']({ + 'context': bkn, + 'typedArray': bkq, + 'usage': bis['STATIC_DRAW'] + }); + var bky = 0x3 * Float32Array['BYTES_PER_ELEMENT']; + var bkz = [{ + 'index': biP['position'], + 'vertexBuffer': bkx, + 'componentsPerAttribute': 0x3, + 'componentDatatype': bij['FLOAT'], + 'offsetInBytes': 0x0, + 'strideInBytes': bky + }]; + return new biy({ + 'context': bkn, + 'attributes': bkz + }); + } + function bkA(bkB) { + var bkC = bi4['default']['EllipsoidGeometry'][dol(0xc2d)](new bi4['default']['EllipsoidGeometry']({ + 'vertexFormat': biD['POSITION_ONLY'], + 'stackPartitions': 0x20, + 'slicePartitions': 0x20 + })); + var bkD = biy['fromGeometry']({ + 'context': bkB, + 'geometry': bkC, + 'attributeLocations': biP, + 'bufferUsage': bis['STATIC_DRAW'], + 'interleave': ![] + }); + return bkD; + } + function bkE(bkF) { + var bkG = bi4['default']['EllipsoidOutlineGeometry']['createGeometry'](new bi4['default']['EllipsoidOutlineGeometry']({ + 'vertexFormat': biD['POSITION_ONLY'], + 'stackPartitions': 0x20, + 'slicePartitions': 0x20 + })); + var bkH = biy['fromGeometry']({ + 'context': bkF, + 'geometry': bkG, + 'attributeLocations': biP, + 'bufferUsage': bis['STATIC_DRAW'], + 'interleave': ![] + }); + return bkH; + } + function bkI(bkJ, bkK) { + var bkL = bkK['length'] - 0x1; + var bkM = new Float32Array(0x3 * 0x3 * bkL); + var bkN = 0x0; + for (var bkO = 0x0; bkO < bkL; bkO++) { + bkM[bkN++] = 0x0; + bkM[bkN++] = 0x0; + bkM[bkN++] = 0x0; + bkM[bkN++] = bkK[bkO]['x']; + bkM[bkN++] = bkK[bkO]['y']; + bkM[bkN++] = bkK[bkO]['z']; + bkM[bkN++] = bkK[bkO + 0x1]['x']; + bkM[bkN++] = bkK[bkO + 0x1]['y']; + bkM[bkN++] = bkK[bkO + 0x1]['z']; + } + var bkP = bir['createVertexBuffer']({ + 'context': bkJ, + 'typedArray': bkM, + 'usage': bis['STATIC_DRAW'] + }); + var bkQ = 0x3 * Float32Array['BYTES_PER_ELEMENT']; + var bkR = [{ + 'index': biP['position'], + 'vertexBuffer': bkP, + 'componentsPerAttribute': 0x3, + 'componentDatatype': bij['FLOAT'], + 'offsetInBytes': 0x0, + 'strideInBytes': bkQ + }]; + return new biy({ + 'context': bkJ, + 'attributes': bkR + }); + } + function bkS(bkT, bkU) { + var bkV = bkU['context']; + var bkW = bjo(bkT, bkT[dol(0xc2e)], bkT['yHalfAngle']); + var bkX = bjF(bkT, bkW); + if (bkT['showLateralSurfaces']) { + bkT['_sectorVA'] = bjV(bkV, bkX); + } + if (bkT['showSectorLines']) { + bkT['_sectorLineVA'] = bka(bkV, bkX); + } + if (bkT[dol(0xc2f)]) { + bkT[dol(0xc30)] = bkm(bkV, bkX); + } + if (bkT[dol(0xc31)]) { + bkT['_domeVA'] = bkA(bkV); + } + if (bkT[dol(0xc32)]) { + bkT['_domeLineVA'] = bkE(bkV); + } + if (bkT['showScanPlane']) { + if (bkT['scanPlaneMode'] == 'h' + doo(0x584) + 'l') { + var bkY = bjo(bkT, biE['PI_OVER_TWO'], 0x0); + bkT['_scanPlaneVA'] = bkI(bkV, bkY['zox']); + } else { + var bkY = bjo(bkT, 0x0, biE['PI_OVER_TWO']); + bkT['_scanPlaneVA'] = bkI(bkV, bkY[dol(0xc33)]); + } + } + } + function bl0(bl1, bl2, bl3) { + var bl4 = bl2['context']; + var bl5 = bi6['default']; + var bl6 = new bix({ + 'sources': [bia['default'], bl3['shaderSource'], bi8['default']] + }); + bl1['_sp'] = biw['replaceCache']({ + 'context': bl4, + 'shaderProgram': bl1['_sp'], + 'vertexShaderSource': bl5, + 'fragmentShaderSource': bl6, + 'attributeLocations': biP + }); + var bl7 = new bix({ + 'sources': [bia[dol(0xc34)], bl3['shaderSource'], bi8['default']], + 'pickColorQualifier': 'u' + doo(0x585) + 'm' + }); + bl1['_pickSP'] = biw['replaceCache']({ + 'context': bl4, + 'shaderProgram': bl1['_pickSP'], + 'vertexShaderSource': bl5, + 'fragmentShaderSource': bl7, + 'attributeLocations': biP + }); + } + function bl8(bl9, bla, blb) { + var blc = bla['context']; + var bld = bi6['default']; + var ble = new bix({ + 'sources': [bia[dol(0xc35)], blb['shaderSource'], bic[dol(0xc36)]] + }); + bl9['_scanePlaneSP'] = biw['replaceCache']({ + 'context': blc, + 'shaderProgram': bl9['_scanePlaneSP'], + 'vertexShaderSource': bld, + 'fragmentShaderSource': ble, + 'attributeLocations': biP + }); + } + function blf(blg, blh, bli) { + bl0(blg, blh, bli); + if (blg['showScanPlane']) { + bl8(blg, blh, bli); + } + } + function blj(blk, bll, blm) { + if (blm) { + blk['_frontFaceRS'] = biv['fromCache']({ + 'depthTest': { + 'enabled': !bll + }, + 'depthMask': ![], + 'blending': biz['ALPHA_BLEND'], + 'cull': { + 'enabled': !![], + 'face': biA['BACK'] + } + }); + blk['_backFaceRS'] = biv['fromCache']({ + 'depthTest': { + 'enabled': !bll + }, + 'depthMask': ![], + 'blending': biz['ALPHA_BLEND'], + 'cull': { + 'enabled': !![], + 'face': biA['FRONT'] + } + }); + blk[dol(0xc37)] = biv['fromCache']({ + 'depthTest': { + 'enabled': !bll + }, + 'depthMask': ![], + 'blending': biz['ALPHA_BLEND'] + }); + } else { + blk['_frontFaceRS'] = biv['fromCache']({ + 'depthTest': { + 'enabled': !bll + }, + 'depthMask': !![] + }); + blk['_pickRS'] = biv['fromCache']({ + 'depthTest': { + 'enabled': !![] + }, + 'depthMask': !![] + }); + } + } + function bln(blo, blp, blq, blr, bls, blt, blu, blv, blw, blx, bly, blz) { + if (blx && blq) { + blq['vertexArray'] = blu; + blq['renderState'] = bls; + blq[dol(0xc38)] = blt; + blq['uniformMap'] = bii(blv, blo['_material']['_uniforms']); + blq[dol(0xc39)][dol(0xc3a)] = function() { + return -0x1; + } + ; + blq['pass'] = bly; + blq['modelMatrix'] = blw; + blo['_colorCommands']['push'](blq); + } + blp['vertexArray'] = blu; + blp['renderState'] = blr; + blp['shaderProgram'] = blt; + blp[dol(0xc3b)] = bii(blv, blo['_material']['_uniforms']); + if (blz) { + blp['uniformMap']['u_type'] = function() { + return 0x1; + } + ; + } + blp['pass'] = bly; + blp['modelMatrix'] = blw; + blo['_colorCommands']['push'](blp); + } + function blA(blB, blC) { + blB['_colorCommands']['length'] = 0x0; + var blD = blC ? biu['TRANSLUCENT'] : biu['OPAQUE']; + if (blB[dol(0xc3c)]) { + bln(blB, blB['_sectorFrontCommand'], blB['_sectorBackCommand'], blB['_frontFaceRS'], blB['_backFaceRS'], blB['_sp'], blB['_sectorVA'], blB['_uniforms'], blB['_computedModelMatrix'], blC, blD); + } + if (blB['showSectorLines']) { + bln(blB, blB['_sectorLineCommand'], undefined, blB['_frontFaceRS'], blB['_backFaceRS'], blB['_sp'], blB['_sectorLineVA'], blB['_uniforms'], blB['_computedModelMatrix'], blC, blD, !![]); + } + if (blB['showSectorSegmentLines']) { + bln(blB, blB['_sectorSegmentLineCommand'], undefined, blB['_frontFaceRS'], blB['_backFaceRS'], blB['_sp'], blB['_sectorSegmentLineVA'], blB['_uniforms'], blB['_computedModelMatrix'], blC, blD, !![]); + } + if (blB['showDomeSurfaces']) { + bln(blB, blB['_domeFrontCommand'], blB['_domeBackCommand'], blB['_frontFaceRS'], blB['_backFaceRS'], blB['_sp'], blB['_domeVA'], blB['_uniforms'], blB[dol(0xc3d)], blC, blD); + } + if (blB['showDomeLines']) { + bln(blB, blB['_domeLineCommand'], undefined, blB['_frontFaceRS'], blB['_backFaceRS'], blB['_sp'], blB['_domeLineVA'], blB['_uniforms'], blB['_computedModelMatrix'], blC, blD, !![]); + } + if (blB['showScanPlane']) { + bln(blB, blB['_scanPlaneFrontCommand'], blB[dol(0xc3e)], blB[dol(0xc3f)], blB['_backFaceRS'], blB['_scanePlaneSP'], blB['_scanPlaneVA'], blB['_scanUniforms'], blB['_computedScanPlaneModelMatrix'], blC, blD); + } + } + bi1['RectangularSensorPrimitive'] = biQ; + } + , function(blE, blF, blG) { + 'u' + doo(0x586) + 't'; + Object['defineProperty'](blF, '_' + doo(0x587) + 'e', { + 'value': !![] + }); + blF['ConicArcSensorGeometry'] = undefined; + var blH = blG(0x0); + var blI = blJ(blH); + function blJ(blK) { + return { + 'default': blK + }; + } + var blL = blI['default']['BoundingSphere'] + , blM = blI[dol(0xc40)][dol(0xc41)] + , blN = blI[dol(0xc42)]['Check'] + , blO = blI['default']['ComponentDatatype'] + , blP = blI['default']['defaultValue'] + , blQ = blI['default']['defined'] + , blR = blI['default']['Geometry'] + , blS = blI['default']['GeometryAttribute'] + , blT = blI['default']['GeometryAttributes'] + , blU = blI['default']['PrimitiveType'] + , blV = blI['default']['VertexFormat'] + , blW = blI['default']['Math'] + , blX = blI['default']['GeometryPipeline'] + , blY = blI['default']['IndexDatatype'] + , blZ = blI['default']['Ellipsoid']; + var bm0 = Math['cos']; + var bm1 = Math['sin']; + function bm2(bm3) { + bm3 = blP(bm3, blP['EMPTY_OBJECT']); + var bm4 = bm3['angle']; + var bm5 = bm3[dol(0xc43)]; + var bm6 = Math['round'](blP(bm3['stackPartitions'], 0xc)); + var bm7 = Math['round'](blP(bm3['slicePartitions'], 0x40)); + blN['typeOf']['number']('a' + doo(0x588) + 'e', bm4); + blN['typeOf']['number']('r' + doo(0x589) + 's', bm5); + var bm8 = blP(bm3['vertexFormat'], blV[dol(0xc44)]); + this['_angle'] = bm4; + this['_radius'] = bm5; + this['_stackPartitions'] = bm6; + this['_slicePartitions'] = bm7; + this['_vertexFormat'] = bm8; + } + bm2['fromDimensions'] = function(bm9) { + bm9 = blP(bm9, blP['EMPTY_OBJECT']); + var bma = bm9['angle']; + var bmb = bm9['radius']; + var bmc = bm9['stackPartitions']; + var bmd = bm9['slicePartitions']; + blN['typeOf']['number']('a' + doo(0x58a) + 'e', bma); + blN['typeOf']['number']('r' + doo(0x58b) + 's', bmb); + blN['typeOf']['number']['greaterThanOrEquals']('a' + doo(0x58c) + 'e', bma, 0x0); + blN['typeOf']['number']['greaterThanOrEquals']('h' + doo(0x58d) + 't', height, 0x0); + return new bm2({ + 'angle': bma, + 'radius': bmb, + 'stackPartitions': bmc, + 'slicePartitions': bmd, + 'vertexFormat': bm9['vertexFormat'] + }); + } + ; + bm2['createGeometry'] = function(bme) { + console['time']('c' + doo(0x58e) + 'y'); + var bmf = bme['_angle']; + var bmg = bme['_radius']; + var bmh = bme['_stackPartitions'] + 0x1; + var bmi = bme['_slicePartitions'] + 0x1; + var bmj = bme['_vertexFormat']; + var bmk = new blT(); + var bml; + var bmm = 0x3 * (bmi - 0x1) + 0x6 * (bmi - 0x1) * (bmh - 0x2) + (bmi - 0x1) * 0x1 * 0x3; + var bmn = bmh * bmi; + var bmo = blY['createTypedArray'](bmn, bmm); + var bmp = new Float64Array(bmn * 0x3 + (bmi - 0x1) * 0x3 * 0x3); + if (bmj['position']) { + var bmq = 0x0; + var bmr = new Array(bmi); + var bms = new Array(bmi); + for (var bmt = 0x0; bmt < bmi; bmt++) { + var bmu = blW['TWO_PI'] * bmt / (bmi - 0x1); + bmr[bmt] = bm0(bmu); + bms[bmt] = bm1(bmu); + bmp[bmq++] = 0x0; + bmp[bmq++] = 0x0; + bmp[bmq++] = -bmg; + } + for (var bmt = 0x1; bmt < bmh; bmt++) { + var bmw = bmf * bmt / (bmh - 0x1); + var bmx = bm1(bmw); + var bmy = bmg * bmx; + var bmz = bmg * bmx; + var bmA = bmg * bm0(bmw); + for (var bmB = 0x0; bmB < bmi; bmB++) { + bmp[bmq++] = bmr[bmB] * bmy; + bmp[bmq++] = bms[bmB] * bmz; + bmp[bmq++] = -bmA; + } + } + bml = bmq; + for (var bmt = 0x0; bmt < bmi - 0x1; bmt++) { + bmp[bmq++] = 0x0; + bmp[bmq++] = 0x0; + bmp[bmq++] = 0x0; + bmp[bmq++] = bmp[bml - (bmi - bmt - 0x1) * 0x3]; + bmp[bmq++] = bmp[bml - (bmi - bmt - 0x1) * 0x3 + 0x1]; + bmp[bmq++] = bmp[bml - (bmi - bmt - 0x1) * 0x3 + 0x2]; + bmp[bmq++] = bmp[bml - (bmi - bmt) * 0x3]; + bmp[bmq++] = bmp[bml - (bmi - bmt) * 0x3 + 0x1]; + bmp[bmq++] = bmp[bml - (bmi - bmt) * 0x3 + 0x2]; + } + bmk['position'] = new blS({ + 'componentDatatype': blO['DOUBLE'], + 'componentsPerAttribute': 0x3, + 'values': bmp + }); + } + var bmD = 0x0; + for (var bmB = 0x0; bmB < bmi - 0x1; bmB++) { + bmo[bmD++] = bmi + bmB; + bmo[bmD++] = bmi + bmB + 0x1; + bmo[bmD++] = bmB + 0x1; + } + var bmF; + var bmG; + for (var bmt = 0x1; bmt < bmh - 0x1; bmt++) { + bmF = bmt * bmi; + bmG = (bmt + 0x1) * bmi; + for (bmB = 0x0; bmB < bmi - 0x1; bmB++) { + bmo[bmD++] = bmG + bmB; + bmo[bmD++] = bmG + bmB + 0x1; + bmo[bmD++] = bmF + bmB + 0x1; + bmo[bmD++] = bmG + bmB; + bmo[bmD++] = bmF + bmB + 0x1; + bmo[bmD++] = bmF + bmB; + } + } + for (var bmt = 0x0, bmJ = (bmi - 0x1) * 0x3; bmt < bmJ; bmt++) { + bmo[bmD++] = bmt + bml / 0x3; + } + var bmK = new blR({ + 'attributes': bmk, + 'indices': bmo, + 'primitiveType': blU['TRIANGLES'], + 'boundingSphere': new blL(blM['ZERO'],bmg) + }); + bmK = blX['computeNormal'](bmK); + console[dol(0xc45)]('c' + doo(0x58f) + 'y'); + return bmK; + } + ; + blF['ConicArcSensorGeometry'] = bm2; + } + , function(bmL, bmM, bmN) { + 'u' + doo(0x590) + 't'; + Object['defineProperty'](bmM, '_' + doo(0x591) + 'e', { + 'value': !![] + }); + bmM['ConicArcSensorOutlineGeometry'] = undefined; + var bmO = bmN(0x0); + var bmP = bmQ(bmO); + function bmQ(bmR) { + return { + 'default': bmR + }; + } + var bmS = bmP['default']['BoundingSphere'] + , bmT = bmP['default'][dol(0xc46)] + , bmU = bmP['default']['ComponentDatatype'] + , bmV = bmP['default']['defaultValue'] + , bmW = bmP['default']['defined'] + , bmX = bmP[dol(0xc47)]['DeveloperError'] + , bmY = bmP['default']['Ellipsoid'] + , bmZ = bmP['default']['Geometry'] + , bn0 = bmP['default']['GeometryAttribute'] + , bn1 = bmP['default']['GeometryAttributes'] + , bn2 = bmP[dol(0xc48)]['IndexDatatype'] + , bn3 = bmP['default']['Math'] + , bn4 = bmP['default']['PrimitiveType']; + var bn5 = new bmT(0x1,0x1,0x1); + var bn6 = Math['cos']; + var bn7 = Math['sin']; + function bn8(bn9) { + bn9 = bmV(bn9, bmV['EMPTY_OBJECT']); + var bna = bn9['angle']; + var bnb = bn9['radius']; + var bnc = Math['round'](bmV(bn9[dol(0xc49)], 0xa)); + var bnd = Math['round'](bmV(bn9['slicePartitions'], 0x8)); + var bne = Math['round'](bmV(bn9['subdivisions'], 0x80)); + if (bnc < 0x1) { + throw new bmX(doj(0x168)); + } + if (bnd < 0x0) { + throw new bmX(doj(0x169)); + } + if (bne < 0x0) { + throw new bmX(doj(0x16a)); + } + this['_angle'] = bna; + this['_radius'] = bnb; + this['_stackPartitions'] = bnc; + this['_slicePartitions'] = bnd; + this['_subdivisions'] = bne; + } + bn8[dol(0xc4a)] = function(bnf) { + var bng = bnf[dol(0xc4b)]; + var bnh = bnf['_radius']; + if (bnh <= 0x0 || bng <= 0x0) { + return; + } + var bni = bnf['_stackPartitions']; + var bnj = bnf['_slicePartitions']; + var bnk = bnf['_subdivisions']; + var bnl = bnk * (bni + bnj - 0x1); + var bnm = bnl - bnj + 0x2; + var bnn = new Float64Array(bnm * 0x3); + var bno = bn2['createTypedArray'](bnm, bnl * 0x2); + var bnp; + var bnq; + var bnr; + var bns; + var bnt; + var bnu; + var bnv = 0x0; + var bnw = new Array(bnk); + var bnx = new Array(bnk); + for (var bnp = 0x0; bnp < bnk; bnp++) { + bnr = bn3['TWO_PI'] * bnp / bnk; + bnw[bnp] = bn6(bnr); + bnx[bnp] = bn7(bnr); + } + for (var bnp = 0x1; bnp < bni; bnp++) { + bns = bng * bnp / (bni - 0x1); + bnt = bn6(bns); + bnu = bn7(bns); + for (bnq = 0x0; bnq < bnk; bnq++) { + bnn[bnv++] = bnh * bnw[bnq] * bnu; + bnn[bnv++] = bnh * bnx[bnq] * bnu; + bnn[bnv++] = -bnh * bnt; + } + } + bnw['length'] = bnj; + bnx['length'] = bnj; + for (var bnp = 0x0; bnp < bnj; bnp++) { + bnr = bn3['TWO_PI'] * bnp / bnj; + bnw[bnp] = bn6(bnr); + bnx[bnp] = bn7(bnr); + } + bnn[bnv++] = 0x0; + bnn[bnv++] = 0x0; + bnn[bnv++] = -bnh; + for (var bnp = 0x1; bnp < bnk; bnp++) { + bns = bng * bnp / bnk; + bnt = bn6(bns); + bnu = bn7(bns); + for (bnq = 0x0; bnq < bnj; bnq++) { + bnn[bnv++] = bnh * bnw[bnq] * bnu; + bnn[bnv++] = bnh * bnx[bnq] * bnu; + bnn[bnv++] = -bnh * bnt; + } + } + bnv = 0x0; + for (var bnp = 0x0; bnp < bni - 0x1; ++bnp) { + var bnD = bnp * bnk; + for (bnq = 0x0; bnq < bnk - 0x1; ++bnq) { + bno[bnv++] = bnD + bnq; + bno[bnv++] = bnD + bnq + 0x1; + } + bno[bnv++] = bnD + bnk - 0x1; + bno[bnv++] = bnD; + } + var bnE = bnk * (bni - 0x1); + for (bnq = 0x1; bnq < bnj + 0x1; ++bnq) { + bno[bnv++] = bnE; + bno[bnv++] = bnE + bnq; + } + for (var bnp = 0x0; bnp < bnk - 0x2; ++bnp) { + var bnG = bnp * bnj + 0x1 + bnE; + var bnH = (bnp + 0x1) * bnj + 0x1 + bnE; + for (bnq = 0x0; bnq < bnj - 0x1; ++bnq) { + bno[bnv++] = bnH + bnq; + bno[bnv++] = bnG + bnq; + } + bno[bnv++] = bnH + bnj - 0x1; + bno[bnv++] = bnG + bnj - 0x1; + } + var bnI = new bn1({ + 'position': new bn0({ + 'componentDatatype': bmU['DOUBLE'], + 'componentsPerAttribute': 0x3, + 'values': bnn + }) + }); + return new bmZ({ + 'attributes': bnI, + 'indices': bno, + 'primitiveType': bn4['LINES'], + 'boundingSphere': new bmS(bmT[dol(0xc4c)],bnh) + }); + } + ; + bmM['ConicArcSensorOutlineGeometry'] = bn8; + } + , function(bnJ, bnK, bnL) { + 'u' + doo(0x592) + 't'; + Object['defineProperty'](bnK, '_' + doo(0x593) + 'e', { + 'value': !![] + }); + bnK['ConicArcSensorGraphics'] = undefined; + var bnM = bnL(0x0); + var bnN = bnO(bnM); + function bnO(bnP) { + return { + 'default': bnP + }; + } + var bnQ = bnN['default']['defaultValue'] + , bnR = bnN['default']['defined'] + , bnS = bnN[dol(0xc4d)]['defineProperties'] + , bnT = bnN['default']['DeveloperError'] + , bnU = bnN['default']['Event'] + , bnV = bnN['default']['createMaterialPropertyDescriptor'] + , bnW = bnN['default']['createPropertyDescriptor']; + function bnX(bnY) { + this['_angle'] = undefined; + this['_angleSubscription'] = undefined; + this['_radius'] = undefined; + this['_radiusSubscription'] = undefined; + this['_stack'] = undefined; + this['_stackSubscription'] = undefined; + this['_slice'] = undefined; + this['_sliceSubscription'] = undefined; + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['_show'] = undefined; + this['_showSubscription'] = undefined; + this['_fill'] = undefined; + this['_fillSubscription'] = undefined; + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['_material'] = undefined; + this['_materialSubscription'] = undefined; + this['_outline'] = undefined; + this['_outlineSubscription'] = undefined; + this['_outlineColor'] = undefined; + this['_outlineColorSubscription'] = undefined; + this['_outlineWidth'] = undefined; + this['_outlineWidthSubscription'] = undefined; + this['_shadows'] = undefined; + this['_shadowsSubscription'] = undefined; + this['_distanceDisplayCondition'] = undefined; + this['_distanceDisplayConditionSubscription'] = undefined; + this['_definitionChanged'] = new bnU(); + this['_gaze'] = undefined; + this['_gazeSubscription'] = undefined; + this['merge'](bnQ(bnY, bnQ['EMPTY_OBJECT'])); + } + Object['defineProperties'](bnX['prototype'], { + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'show': bnW('s' + doo(0x594) + 'w'), + 'material': bnV('m' + doo(0x595) + 'l'), + 'fill': bnW('f' + doo(0x596) + 'l'), + 'shadows': bnW('s' + doo(0x597) + 's'), + 'distanceDisplayCondition': bnW(doj(0x16b)) + }); + bnX[dol(0xc4e)]['clone'] = function(bnZ) { + if (!bnR(bnZ)) { + return new bnX(this); + } + bnZ['angle'] = this['angle']; + bnZ['radius'] = this['radius']; + bnZ[dol(0xc4f)] = this['stack']; + bnZ['slice'] = this['slice']; + bnZ['show'] = this['show']; + bnZ['material'] = this['material']; + bnZ['color'] = this['color']; + bnZ['fill'] = this['fill']; + bnZ['outline'] = this['outline']; + bnZ['outlineColor'] = this['outlineColor']; + bnZ['outlineWidth'] = this['outlineWidth']; + bnZ[dol(0xc50)] = this['shadows']; + bnZ['distanceDisplayCondition'] = this['distanceDisplayCondition']; + bnZ['gaze'] = this['gaze']; + return bnZ; + } + ; + bnX['prototype']['merge'] = function(bo0) { + if (!bnR(bo0)) { + throw new bnT('s' + doo(0x598) + '.'); + } + this['angle'] = bnQ(this['angle'], bo0['angle']); + this['radius'] = bnQ(this['radius'], bo0['radius']); + this['stack'] = bnQ(this['stack'], bo0['stack']); + this['slice'] = bnQ(this['slice'], bo0['slice']); + this['show'] = bnQ(this['show'], bo0['show']); + this['color'] = bnQ(this['color'], bo0['color']); + this['material'] = bnQ(this['material'], bo0['material']); + this['fill'] = bnQ(this['fill'], bo0['fill']); + this['outline'] = bnQ(this['outline'], bo0['outline']); + this['outlineColor'] = bnQ(this['outlineColor'], bo0[dol(0xc51)]); + this['outlineWidth'] = bnQ(this['outlineWidth'], bo0[dol(0xc52)]); + this['shadows'] = bnQ(this['shadows'], bo0['shadows']); + this['distanceDisplayCondition'] = bnQ(this['distanceDisplayCondition'], bo0['distanceDisplayCondition']); + this['gaze'] = bnQ(this['gaze'], bo0['gaze']); + } + ; + bnK['ConicArcSensorGraphics'] = bnX; + } + , function(bo1, bo2, bo3) { + 'u' + doo(0x599) + 't'; + Object['defineProperty'](bo2, '_' + doo(0x59a) + 'e', { + 'value': !![] + }); + var bo4 = bo3(0x7); + Object['keys'](bo4)['forEach'](function(bo5) { + if (bo5 === 'd' + doo(0x59b) + 't' || bo5 === '_' + doo(0x59c) + 'e') + return; + Object['defineProperty'](bo2, bo5, { + 'enumerable': !![], + 'get': function get() { + return bo4[bo5]; + } + }); + }); + var bo6 = bo3(0x11); + Object['keys'](bo6)['forEach'](function(bo7) { + if (bo7 === 'd' + doo(0x59d) + 't' || bo7 === '_' + doo(0x59e) + 'e') + return; + Object['defineProperty'](bo2, bo7, { + 'enumerable': !![], + 'get': function get() { + return bo6[bo7]; + } + }); + }); + var bo8 = bo3(0x0); + var bo9 = bob(bo8); + var boa = bo3(0x1d); + function bob(boc) { + return { + 'default': boc + }; + } + bo9['default']['getLinkedPointList'] = boa['getLinkedPointList']; + } + , function(bod, boe, bof) { + 'u' + doo(0x59f) + 't'; + var bog = bof(0x0); + var boh = bot(bog); + var boi = bof(0x2); + var boj = bof(0xc); + var bok = bof(0xd); + var bol = bof(0x3); + var bom = bof(0x4); + var bon = bof(0x5); + var boo = bof(0xf); + var bop = bof(0x1e); + var boq = bof(0x21); + var bor = bof(0x22); + var bos = bof(0x23); + function bot(bou) { + return { + 'default': bou + }; + } + boh['default'][dol(0xc53)] = boi[dol(0xc54)]; + boh['default']['RectangularSensorGraphics'] = boj['RectangularSensorGraphics']; + boh['default']['RectangularSensorVisualizer'] = bok['RectangularSensorVisualizer']; + boh['default']['ConicArcSensorGeometry'] = bol['ConicArcSensorGeometry']; + boh['default']['ConicArcSensorOutlineGeometry'] = bom['ConicArcSensorOutlineGeometry']; + boh['default']['ConicArcSensorGraphics'] = bon['ConicArcSensorGraphics']; + boh['default']['ConicArcSensorCollection'] = boo['ConicArcSensorCollection']; + var bov = boh['default']['DataSourceDisplay']; + var bow = bov['defaultVisualizersCallback']; + bov['defaultVisualizersCallback'] = function(boy, boz, boA) { + var boB = boA['entities']; + var boC = bow(boy, boz, boA); + return boC['concat']([new bok['RectangularSensorVisualizer'](boy,boB)]); + } + ; + boh['default']['TetrahedronPrimitive'] = bop['TetrahedronPrimitive']; + boh['default']['GradientFacePrimitive'] = boq['GradientFacePrimitive']; + boh['default']['GradientFacePrimitiveNew'] = bor['GradientFacePrimitiveNew']; + boh['default'][dol(0xc55)] = bos['PrimitiveTextureProperty']; + } + , function(boD, boE) { + boD['exports'] = doj(0x16c); + } + , function(boF, boG) { + boF['exports'] = doj(0x16d); + } + , function(boH, boI) { + boH['exports'] = doj(0x16e); + } + , function(boJ, boK) { + boJ['exports'] = doj(0x16f); + } + , function(boL, boM, boN) { + 'u' + doo(0x5a0) + 't'; + Object['defineProperty'](boM, '_' + doo(0x5a1) + 'e', { + 'value': !![] + }); + boM['RectangularSensorGraphics'] = undefined; + var boO = boN(0x0); + var boP = boQ(boO); + function boQ(boR) { + return { + 'default': boR + }; + } + var boS = boP['default']['defaultValue']; + var boT = boP['default']['defined']; + var boU = boP['default']['defineProperties']; + var boV = boP['default']['DeveloperError']; + var boW = boP['default'][dol(0xc56)]; + var boX = boP[dol(0xc57)]['createMaterialPropertyDescriptor']; + var boY = boP['default']['createPropertyDescriptor']; + function boZ(bp0) { + this['_show'] = undefined; + this['_radius'] = undefined; + this['_xHalfAngle'] = undefined; + this['_yHalfAngle'] = undefined; + this['_lineColor'] = undefined; + this['_showSectorLines'] = undefined; + this['_showSectorSegmentLines'] = undefined; + this['_showLateralSurfaces'] = undefined; + this['_material'] = undefined; + this['_showDomeSurfaces'] = undefined; + this['_showDomeLines'] = undefined; + this['_showIntersection'] = undefined; + this['_intersectionColor'] = undefined; + this['_intersectionWidth'] = undefined; + this['_showThroughEllipsoid'] = undefined; + this['_gaze'] = undefined; + this['_showScanPlane'] = undefined; + this['_scanPlaneColor'] = undefined; + this['_scanPlaneMode'] = undefined; + this['_scanPlaneRate'] = undefined; + this['_definitionChanged'] = new boW(); + this['merge'](boS(bp0, boS[dol(0xc58)])); + } + Object['defineProperties'](boZ[dol(0xc59)], { + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'show': boY('s' + doo(0x5a2) + 'w'), + 'radius': boY('r' + doo(0x5a3) + 's'), + 'xHalfAngle': boY('x' + doo(0x5a4) + 'e'), + 'yHalfAngle': boY('y' + doo(0x5a5) + 'e'), + 'lineColor': boY('l' + doo(0x5a6) + 'r'), + 'showSectorLines': boY('s' + doo(0x5a7) + 's'), + 'showSectorSegmentLines': boY(doj(0x170)), + 'showLateralSurfaces': boY('s' + doo(0x5a8) + 's'), + 'material': boX('m' + doo(0x5a9) + 'l'), + 'showDomeSurfaces': boY('s' + doo(0x5aa) + 's'), + 'showDomeLines': boY('s' + doo(0x5ab) + '\x20'), + 'showIntersection': boY('s' + doo(0x5ac) + 'n'), + 'intersectionColor': boY('i' + doo(0x5ad) + 'r'), + 'intersectionWidth': boY('i' + doo(0x5ae) + 'h'), + 'showThroughEllipsoid': boY('s' + doo(0x5af) + 'd'), + 'gaze': boY('g' + doo(0x5b0) + 'e'), + 'showScanPlane': boY('s' + doo(0x5b1) + 'e'), + 'scanPlaneColor': boY('s' + doo(0x5b2) + 'r'), + 'scanPlaneMode': boY('s' + doo(0x5b3) + 'e'), + 'scanPlaneRate': boY('s' + doo(0x5b4) + 'e') + }); + boZ['prototype']['clone'] = function(bp1) { + if (!boT(bp1)) { + bp1 = new boZ(); + } + bp1['show'] = this['show']; + bp1['radius'] = this['radius']; + bp1['xHalfAngle'] = this['xHalfAngle']; + bp1['yHalfAngle'] = this['yHalfAngle']; + bp1[dol(0xc5a)] = this['lineColor']; + bp1[dol(0xc5b)] = this['showSectorLines']; + bp1['showSectorSegmentLines'] = this['showSectorSegmentLines']; + bp1['showLateralSurfaces'] = this['showLateralSurfaces']; + bp1['material'] = this['material']; + bp1['showDomeSurfaces'] = this['showDomeSurfaces']; + bp1['showDomeLines'] = this['showDomeLines']; + bp1['showIntersection'] = this['showIntersection']; + bp1['intersectionColor'] = this['intersectionColor']; + bp1['intersectionWidth'] = this['intersectionWidth']; + bp1[dol(0xc5c)] = this['showThroughEllipsoid']; + bp1['gaze'] = this['gaze']; + bp1['showScanPlane'] = this['showScanPlane']; + bp1['scanPlaneColor'] = this['scanPlaneColor']; + bp1['scanPlaneMode'] = this['scanPlaneMode']; + bp1['scanPlaneRate'] = this['scanPlaneRate']; + return bp1; + } + ; + boZ['prototype']['merge'] = function(bp2) { + if (!boT(bp2)) { + throw new boV('s' + doo(0x5b5) + '.'); + } + this['show'] = boS(this['show'], bp2['show']); + this['radius'] = boS(this['radius'], bp2['radius']); + this['xHalfAngle'] = boS(this['xHalfAngle'], bp2['xHalfAngle']); + this['yHalfAngle'] = boS(this['yHalfAngle'], bp2['yHalfAngle']); + this['lineColor'] = boS(this['lineColor'], bp2['lineColor']); + this['showSectorLines'] = boS(this['showSectorLines'], bp2['showSectorLines']); + this['showSectorSegmentLines'] = boS(this['showSectorSegmentLines'], bp2['showSectorSegmentLines']); + this['showLateralSurfaces'] = boS(this['showLateralSurfaces'], bp2['showLateralSurfaces']); + this['material'] = boS(this['material'], bp2['material']); + this['showDomeSurfaces'] = boS(this['showDomeSurfaces'], bp2['showDomeSurfaces']); + this['showDomeLines'] = boS(this['showDomeLines'], bp2['showDomeLines']); + this['showIntersection'] = boS(this['showIntersection'], bp2['showIntersection']); + this['intersectionColor'] = boS(this['intersectionColor'], bp2['intersectionColor']); + this['intersectionWidth'] = boS(this['intersectionWidth'], bp2['intersectionWidth']); + this['showThroughEllipsoid'] = boS(this['showThroughEllipsoid'], bp2['showThroughEllipsoid']); + this['gaze'] = boS(this['gaze'], bp2['gaze']); + this['showScanPlane'] = boS(this['showScanPlane'], bp2['showScanPlane']); + this['scanPlaneColor'] = boS(this['scanPlaneColor'], bp2['scanPlaneColor']); + this['scanPlaneMode'] = boS(this['scanPlaneMode'], bp2['scanPlaneMode']); + this['scanPlaneRate'] = boS(this['scanPlaneRate'], bp2['scanPlaneRate']); + } + ; + boM['RectangularSensorGraphics'] = boZ; + } + , function(bp3, bp4, bp5) { + 'u' + doo(0x5b6) + 't'; + Object['defineProperty'](bp4, '_' + doo(0x5b7) + 'e', { + 'value': !![] + }); + bp4[dol(0xc5d)] = undefined; + var bp6 = bp5(0x0); + var bp7 = bpa(bp6); + var bp8 = bp5(0x2); + var bp9 = bp5(0xe); + function bpa(bpb) { + return { + 'default': bpb + }; + } + var bpc = bp7['default']['AssociativeArray']; + var bpd = bp7['default']['Cartesian3']; + var bpe = bp7['default']['Color']; + var bpf = bp7['default'][dol(0xc5e)]; + var bpg = bp7['default']['destroyObject']; + var bph = bp7['default'][dol(0xc5f)]; + var bpi = bp7['default']['Matrix3']; + var bpj = bp7['default']['Matrix4']; + var bpk = bp7[dol(0xc60)]['Quaternion']; + var bpl = bp7['default']['MaterialProperty']; + var bpm = bp7['default']['Property']; + var bpn = new bpi(); + var bpo = new bpj(); + var bpp = new bpd(); + var bpq = new bpd(); + var bpr = new bpk(); + var bps = new bpd(); + var bpt = new bpk(); + var bpu = function bpu(bpv, bpw) { + if (!bpf(bpv)) { + throw new bph('s' + doo(0x5b8) + '.'); + } + if (!bpf(bpw)) { + throw new bph(doj(0x171)); + } + bpw['collectionChanged']['addEventListener'](bpu['prototype']['_onCollectionChanged'], this); + this['_scene'] = bpv; + this['_primitives'] = bpv['primitives']; + this['_entityCollection'] = bpw; + this['_hash'] = {}; + this['_entitiesToVisualize'] = new bpc(); + this['_onCollectionChanged'](bpw, bpw['values'], [], []); + }; + bpu['prototype']['update'] = function(bpx) { + if (!bpf(bpx)) { + throw new bph('t' + doo(0x5b9) + '.'); + } + var bpy = this['_entitiesToVisualize']['values']; + var bpz = this['_hash']; + var bpA = this['_primitives']; + for (var bpB = 0x0, bpC = bpy['length']; bpB < bpC; bpB++) { + var bpD = bpy[bpB]; + var bpE = bpD['_rectangularSensor']; + var bpF; + var bpG; + var bpH; + var bpI; + var bpJ; + var bpK = bpz[bpD['id']]; + var bpL = bpD['isShowing'] && bpD['isAvailable'](bpx) && bpm['getValueOrDefault'](bpE['_show'], bpx, !![]); + if (bpL) { + bpF = bpm['getValueOrUndefined'](bpD['_position'], bpx, bpp); + bpG = bpm['getValueOrUndefined'](bpD[dol(0xc61)], bpx, bpr); + bpH = bpm['getValueOrUndefined'](bpE['_radius'], bpx); + bpI = bpm['getValueOrUndefined'](bpE['_xHalfAngle'], bpx); + bpJ = bpm['getValueOrUndefined'](bpE['_yHalfAngle'], bpx); + bpL = bpf(bpF) && bpf(bpI) && bpf(bpJ); + } + if (!bpL) { + if (bpf(bpK)) { + bpK['primitive']['show'] = ![]; + } + continue; + } + var bpM = bpf(bpK) ? bpK[dol(0xc62)] : undefined; + if (!bpf(bpM)) { + bpM = new bp8[(dol(0xc63))](); + bpM['id'] = bpD; + bpA['add'](bpM); + bpK = { + 'primitive': bpM, + 'position': undefined, + 'orientation': undefined + }; + bpz[bpD['id']] = bpK; + } + var bpN = bpm['getValueOrUndefined'](bpE['_gaze'], bpx); + if (bpf(bpN)) { + var bpO = bpm['getValueOrUndefined'](bpN['_position'], bpx, bpq); + if (!bpf(bpF) || !bpf(bpO)) { + continue; + } + var bpP = bpd['subtract'](bpF, bpO, bps); + var bpQ = bpd['angleBetween'](bp7['default']['Cartesian3']['UNIT_Z'], bpP); + var bpR = bpd['cross'](bp7['default']['Cartesian3'][dol(0xc64)], bpP, bps); + var bpG = bpk['fromAxisAngle'](bpR, bpQ - Math['PI'], bpt); + bpH = bpd['distance'](bpF, bpO); + bpM['modelMatrix'] = bpj[dol(0xc65)](bpi['fromQuaternion'](bpG, bpn), bpF, bpM['modelMatrix']); + } else { + if (!bpd['equals'](bpF, bpK['position']) || !bpk[dol(0xc66)](bpG, bpK['orientation'])) { + if (bpf(bpG)) { + bpM['modelMatrix'] = bpj['fromRotationTranslation'](bpi['fromQuaternion'](bpG, bpn), bpF, bpM['modelMatrix']); + bpK[dol(0xc67)] = bpd['clone'](bpF, bpK['position']); + bpK['orientation'] = bpk['clone'](bpG, bpK['orientation']); + } else { + bpM['modelMatrix'] = bp7['default']['Transforms']['eastNorthUpToFixedFrame'](bpF); + bpK['position'] = bpd['clone'](bpF, bpK['position']); + } + } + } + bpM['show'] = !![]; + bpM[dol(0xc68)] = bpN; + bpM['radius'] = bpH; + bpM[dol(0xc69)] = bpI; + bpM['yHalfAngle'] = bpJ; + bpM['lineColor'] = bpm['getValueOrDefault'](bpE['_lineColor'], bpx, bpe['WHITE']); + bpM['showSectorLines'] = bpm['getValueOrDefault'](bpE['_showSectorLines'], bpx, !![]); + bpM['showSectorSegmentLines'] = bpm['getValueOrDefault'](bpE['_showSectorSegmentLines'], bpx, !![]); + bpM['showLateralSurfaces'] = bpm['getValueOrDefault'](bpE['_showLateralSurfaces'], bpx, !![]); + bpM['material'] = bpl['getValue'](bpx, bpE['_material'], bpM['material']); + bpM['showDomeSurfaces'] = bpm[dol(0xc6a)](bpE['_showDomeSurfaces'], bpx, !![]); + bpM['showDomeLines'] = bpm['getValueOrDefault'](bpE['_showDomeLines'], bpx, !![]); + bpM['showIntersection'] = bpm['getValueOrDefault'](bpE['_showIntersection'], bpx, !![]); + bpM['intersectionColor'] = bpm[dol(0xc6b)](bpE['_intersectionColor'], bpx, bpe['WHITE']); + bpM['intersectionWidth'] = bpm['getValueOrDefault'](bpE['_intersectionWidth'], bpx, 0x1); + bpM['showThroughEllipsoid'] = bpm['getValueOrDefault'](bpE['_showThroughEllipsoid'], bpx, !![]); + bpM['scanPlaneMode'] = bpm['getValueOrDefault'](bpE['_scanPlaneMode'], bpx); + bpM['scanPlaneColor'] = bpm['getValueOrDefault'](bpE['_scanPlaneColor'], bpx, bpe['WHITE']); + bpM['showScanPlane'] = bpm['getValueOrDefault'](bpE['_showScanPlane'], bpx, !![]); + bpM['scanPlaneRate'] = bpm['getValueOrDefault'](bpE['_scanPlaneRate'], bpx, 0x1); + } + return !![]; + } + ; + bpu[dol(0xc6c)]['isDestroyed'] = function() { + return ![]; + } + ; + bpu['prototype']['destroy'] = function() { + var bpT = this['_entitiesToVisualize']['values']; + var bpU = this['_hash']; + var bpV = this['_primitives']; + for (var bpW = bpT['length'] - 0x1; bpW > -0x1; bpW--) { + (0x0, + bp9['removePrimitive'])(bpT[bpW], bpU, bpV); + } + return bpg(this); + } + ; + bpu['prototype']['_onCollectionChanged'] = function(bpX, bpY, bpZ, bq0) { + var bq1; + var bq2; + var bq3 = this['_entitiesToVisualize']; + var bq4 = this['_hash']; + var bq5 = this['_primitives']; + for (var bq1 = bpY['length'] - 0x1; bq1 > -0x1; bq1--) { + bq2 = bpY[bq1]; + if (bpf(bq2['_rectangularSensor']) && bpf(bq2['_position'])) { + bq3['set'](bq2['id'], bq2); + } + } + for (var bq1 = bq0['length'] - 0x1; bq1 > -0x1; bq1--) { + bq2 = bq0[bq1]; + if (bpf(bq2['_rectangularSensor']) && bpf(bq2['_position'])) { + bq3['set'](bq2['id'], bq2); + } else { + (0x0, + bp9['removePrimitive'])(bq2, bq4, bq5); + bq3['remove'](bq2[dol(0xc6d)]); + } + } + for (var bq1 = bpZ[dol(0xc6e)] - 0x1; bq1 > -0x1; bq1--) { + bq2 = bpZ[bq1]; + (0x0, + bp9['removePrimitive'])(bq2, bq4, bq5); + bq3['remove'](bq2['id']); + } + } + ; + bp4['RectangularSensorVisualizer'] = bpu; + } + , function(bq9, bqa, bqb) { + 'u' + doo(0x5ba) + 't'; + Object[dol(0xc6f)](bqa, '_' + doo(0x5bb) + 'e', { + 'value': !![] + }); + bqa['removePrimitive'] = bqh; + var bqc = bqb(0x0); + var bqd = bqe(bqc); + function bqe(bqf) { + return { + 'default': bqf + }; + } + var bqg = bqd['default']['defined']; + function bqh(bqi, bqj, bqk) { + var bql = bqj[bqi['id']]; + if (bqg(bql)) { + var bqm = bql['primitive']; + bqk[dol(0xc70)](bqm); + if (!bqm['isDestroyed']()) { + bqm['destroy'](); + } + delete bqj[bqi['id']]; + } + } + ; + } + , function(bqn, bqo, bqp) { + 'u' + doo(0x5bc) + 't'; + Object['defineProperty'](bqo, '_' + doo(0x5bd) + 'e', { + 'value': !![] + }); + bqo['ConicArcSensorCollection'] = undefined; + var bqq = bqp(0x0); + var bqr = bqv(bqq); + var bqs = bqp(0x3); + var bqt = bqp(0x4); + var bqu = bqp(0x10); + function bqv(bqw) { + return { + 'default': bqw + }; + } + var bqx = bqr['default'][dol(0xc71)]; + var bqy = bqr['default']['defined']; + var bqz = bqr['default']['Viewer']; + var bqA = bqr['default']['Transforms']; + var bqB = bqr['default']['DeveloperError']; + var bqC = bqr['default']['ColorGeometryInstanceAttribute']; + var bqD = bqr['default']['Color']; + var bqE = bqr['default']['Primitive']; + var bqF = bqr['default'][dol(0xc72)]; + var bqG = bqr['default']['Cartesian3']; + var bqH = bqr['default'][dol(0xc73)]; + var bqI = bqr[dol(0xc74)][dol(0xc75)]; + var bqJ = bqr['default']['Matrix3']; + var bqK = bqr['default']['Matrix4']; + var bqL = bqr['default']['Property']; + var bqM = bqr[dol(0xc76)]['Event']; + var bqN = bqr['default']['DistanceDisplayCondition']; + var bqO = bqr['default']['DistanceDisplayConditionGeometryInstanceAttribute']; + function bqP(bqQ) { + var bqR = this; + if (!bqy(bqQ)) { + throw new bqB('v' + doo(0x5be) + '.'); + } + this['_viewer'] = bqQ; + var bqS = bqQ[dol(0xc77)]; + this['_scene'] = bqS; + var bqT = bqQ['clock']; + this['_clock'] = bqT; + this['_primitives'] = bqS['primitives']; + this['_primitive'] = undefined; + this['_outlinePrimitive'] = undefined; + this['_conicArcSensorCollection'] = []; + bqT['onTick']['addEventListener'](function() { + bqR['update'](); + }); + } + var bqU = new bqJ(); + var bqV = new bqK(); + var bqW = new bqG(); + var bqX = new bqG(); + var bqY = new bqG(); + var bqZ = new bqI(); + bqP['prototype']['add'] = function(br0) { + if (!(br0 instanceof bqu['ConicArcSensor'])) { + br0 = new bqu['ConicArcSensor'](br0); + } + this['_conicArcSensorCollection']['push'](br0); + return br0; + } + ; + bqP['prototype']['remove'] = function(br1) { + var br2 = this['_conicArcSensorCollection']['indexOf'](br1); + if (br2 !== -0x1) { + this['_conicArcSensorCollection'][dol(0xc78)](br2, 0x1); + } + } + ; + bqP['prototype']['removeAll'] = function() { + this['_conicArcSensorCollection'][dol(0xc79)] = 0x0; + } + ; + bqP['prototype']['update'] = function() { + var br3 = this['_clock']['currentTime']; + var br4 = this['_conicArcSensorCollection']; + var br5 = this['_primitives']; + var br6 = this['_primitive']; + var br7 = this['_outlinePrimitive']; + var br8 = []; + var br9 = []; + if (bqy(br6)) { + br5['removeAndDestroy'](br6); + } + if (bqy(br7)) { + br5['removeAndDestroy'](br7); + } + for (var bra = 0x0, brb = br4['length']; bra < brb; bra++) { + var brc = br4[bra]; + var brd = brc['_conicArcSensor']; + if (!bqL['getValueOrDefault'](brd['show'], br3, !![])) { + continue; + } + var bre = brd['angle']; + var brf = brd[dol(0xc7a)]; + var brg = brd['stack']; + var brh = brd['slice']; + if (!bqy(bre)) { + continue; + } + var bri = bqL['getValueOrDefault'](brc['show'], br3, !![]); + if (!bri) { + continue; + } + var brj = bqL['getValueOrUndefined'](brc['position'], br3, bqW); + if (!bqy(brj)) { + continue; + } + var brk; + var brl = brd['gaze']; + if (bqy(brl)) { + var brm = bqL['getValueOrUndefined'](brl['position'], br3, bqX); + if (!bqy(brj) || !bqy(brm)) { + continue; + } + var brn = bqG['subtract'](brj, brm, bqY); + var bro = bqG['angleBetween'](bqr['default']['Cartesian3']['UNIT_Z'], brn); + var brp = bqG['cross'](bqr[dol(0xc7b)]['Cartesian3']['UNIT_Z'], brn, bqY); + var brq = bqI['fromAxisAngle'](brp, bro, bqZ); + var brr = bqG['distance'](brj, brm); + brf = 0x1; + brk = bqK['fromRotationTranslation'](bqr['default']['Matrix3']['multiplyByScalar'](bqJ['fromQuaternion'](brq, bqU), brr, bqU), brj, bqV); + } else { + var brq = bqL['getValueOrUndefined'](brc['orientation'], br3, bqZ); + if (!bqy(brq)) { + brk = bqA[dol(0xc7c)](brj, undefined, bqV); + } else { + brk = bqK['fromRotationTranslation'](bqJ['fromQuaternion'](brq, bqU), brj, bqV); + } + } + if (!bqy(brk)) { + continue; + } + var brt = brc['_geometry']; + if (!bqy(brt)) { + var bru; + bru = new bqs['ConicArcSensorGeometry']({ + 'vertexFormat': bqr['default']['VertexFormat']['POSITION_AND_NORMAL'], + 'angle': bre, + 'radius': brf, + 'stackPartitions': brg, + 'slicePartitions': brh + }); + brc['_geometry'] = bqs['ConicArcSensorGeometry']['createGeometry'](bru); + brt = brc['_geometry']; + } + var brv = brd['color']; + var brw = brd['outline']; + var brx = brd['outlineWidth']; + if (!bqy(brx)) { + brx = 0x1; + } + var bry = brd['outlineColor']; + if (!bqy(bry)) { + bry = bqD['WHITE']; + } + var brz = new bqr['default'][(dol(0xc7d))]({ + 'geometry': brt, + 'modelMatrix': brk, + 'attributes': { + 'color': bqr['default']['ColorGeometryInstanceAttribute']['fromColor'](brv) + } + }); + br8[dol(0xc7e)](brz); + if (brw) { + var brA = brc['_outlineGeometry']; + if (!bqy(brA)) { + var brB; + brB = new bqt['ConicArcSensorOutlineGeometry']({ + 'vertexFormat': bqr['default']['VertexFormat']['POSITION_ONLY'], + 'angle': bre, + 'radius': brf + }); + brc['_outlineGeometry'] = bqt['ConicArcSensorOutlineGeometry']['createGeometry'](brB); + brA = brc['_outlineGeometry']; + } + var brz = new bqr['default']['GeometryInstance']({ + 'geometry': brA, + 'modelMatrix': brk, + 'attributes': { + 'color': bqr['default']['ColorGeometryInstanceAttribute']['fromColor'](bry) + } + }); + br9['push'](brz); + } + } + if (br8['length'] > 0x0) { + this['_primitive'] = this['_primitives']['add'](new bqE({ + 'asynchronous': ![], + 'geometryInstances': br8, + 'appearance': new bqF({ + 'flat': ![], + 'translucent': !![], + 'closed': !![] + }) + })); + } + if (br9['length'] > 0x0) { + this['_outlinePrimitive'] = this['_primitives']['add'](new bqE({ + 'asynchronous': ![], + 'geometryInstances': br9, + 'appearance': new bqF({ + 'flat': !![], + 'translucent': !![], + 'renderState': { + 'lineWidth': this['_scene']['clampLineWidth'](brx) + } + }) + })); + } + } + ; + bqo['ConicArcSensorCollection'] = bqP; + } + , function(brD, brE, brF) { + 'u' + doo(0x5bf) + 't'; + Object['defineProperty'](brE, '_' + doo(0x5c0) + 'e', { + 'value': !![] + }); + brE['ConicArcSensor'] = undefined; + var brG = brF(0x0); + var brH = brJ(brG); + var brI = brF(0x5); + function brJ(brK) { + return { + 'default': brK + }; + } + var brL = brH[dol(0xc7f)]['Entity']; + var brM = brH['default']['Event']; + var brN = brH['default']['ConstantPositionProperty']; + var brO = brH['default']['createPropertyDescriptor']; + var brP = brH['default']['DistanceDisplayCondition']; + var brQ = brH['default']['DistanceDisplayConditionGeometryInstanceAttribute']; + function brR(brS) { + return new brN(brS); + } + function brT(brU) { + return brO(brU, undefined, brR); + } + function brV(brW) { + brW = brW || {}; + this['_position'] = undefined; + this['_orientation'] = undefined; + this['_show'] = undefined; + var brX = brW['conicArcSensor']; + if (!(brX instanceof brI['ConicArcSensorGraphics'])) { + brX = new brI[(dol(0xc80))](brX); + } + this['_conicArcSensor'] = brX; + this['_distanceDisplayCondition'] = new brP(); + this['_geometry'] = undefined; + this['_outlineGeometry'] = undefined; + this['_definitionChanged'] = new brM(); + this['merge'](brW); + } + Object['defineProperties'](brV[dol(0xc81)], { + 'position': brT('p' + doo(0x5c1) + 'n'), + 'orientation': brO('o' + doo(0x5c2) + 'n'), + 'show': brO('s' + doo(0x5c3) + 'w') + }); + brV['prototype']['merge'] = function(brY) { + this['position'] = brY['position']; + this['orientation'] = brY['orientation']; + this['show'] = brY['show']; + } + ; + brV['prototype']['gazeAt'] = function(brZ) { + if (brZ instanceof brL) { + this['_conicArcSensor']['gaze'] = brZ; + } + } + ; + brE['ConicArcSensor'] = brV; + } + , function(bs0, bs1, bs2) { + 'u' + doo(0x5c4) + 't'; + var bs3 = bs2(0x0); + var bs4 = bsr(bs3); + var bs5 = bs2(0x12); + var bs6 = bs2(0x13); + var bs7 = bs2(0x14); + var bs8 = bs2(0x15); + var bs9 = bs2(0x16); + var bsa = bs2(0x17); + var bsb = bs2(0x1f); + var bsc = bs2(0x24); + var bsd = bs2(0x20); + var bse = bsr(bsd); + var bsf = bsr(bsd); + var bsg = bs2(0x18); + var bsh = bsr(bsg); + var bsi = bs2(0x19); + var bsj = bsr(bsi); + var bsk = bs2(0x1a); + var bsl = bsr(bsk); + var bsm = bs2(0x1b); + var bsn = bsr(bsm); + var bso = bs2(0x1c); + var bsp = bsr(bso); + var bsq = bs2(0x1); + function bsr(bss) { + return { + 'default': bss + }; + } + var bst = bs4['default']['Color']; + var bsu = bs4['default']['ShaderSource']; + var bsv = bs4['default']['Material']; + var bsw = bsq['util']['getBaseUrl'](); + bsv['PolylineAttackLinkType'] = 'P' + doo(0x5c5) + 'k'; + bsv['PolylineAttackLinkImage'] = bsw + doj(0x172); + bsv['_materialCache']['addMaterial'](bsv['PolylineAttackLinkType'], { + 'fabric': { + 'type': bsv['PolylineAttackLinkType'], + 'uniforms': { + 'color': new bst(0x1,0x0,0x0,0x1), + 'image': bsv['PolylineAttackLinkImage'], + 'time': 0x0 + }, + 'source': bsh['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv['PolylineArrowLinkType'] = 'P' + doo(0x5c6) + 'k'; + bsv['PolylineArrowLinkImage'] = bsw + doj(0x173); + bsv['_materialCache']['addMaterial'](bsv['PolylineArrowLinkType'], { + 'fabric': { + 'type': bsv['PolylineArrowLinkType'], + 'uniforms': { + 'color': new bst(0x1,0x0,0x0,0x1), + 'image': bsv['PolylineArrowLinkImage'], + 'time': 0x64 + }, + 'source': bsh['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv[dol(0xc82)] = 'P' + doo(0x5c7) + 'k'; + bsv['PolylinePulseLinkImage'] = bsw + doj(0x174); + bsv['_materialCache']['addMaterial'](bsv['PolylinePulseLinkType'], { + 'fabric': { + 'type': bsv['PolylinePulseLinkType'], + 'uniforms': { + 'color': new bst(0x1,0x0,0x0,0x1), + 'image': bsv['PolylinePulseLinkImage'], + 'time': 0x0 + }, + 'source': bsh['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv['PolylineGrowLinkType'] = 'P' + doo(0x5c8) + 'e'; + bsv['_materialCache']['addMaterial'](bsv['PolylineGrowLinkType'], { + 'fabric': { + 'type': bsv['PolylineGrowLinkType'], + 'uniforms': { + 'glowPower': 0.1, + 'color': new bst(0x1,0x0,0x0,0x1) + }, + 'source': bsl['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv['PolylineTrailLinkType'] = doj(0x175); + bsv['PolylineTrailLinkImage'] = bsw + doj(0x176); + bsv[dol(0xc83)]['addMaterial'](bsv['PolylineTrailLinkType'], { + 'fabric': { + 'type': bsv['PolylineTrailLinkType'], + 'uniforms': { + 'image': bsv['PolylineTrailLinkImage'], + 'color': new bst(0x1,0x0,0x0,0x1) + }, + 'source': bsn['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv['EllipsoidFadeType'] = 'E' + doo(0x5c9) + 'e'; + bsv['_materialCache']['addMaterial'](bsv[dol(0xc84)], { + 'fabric': { + 'type': bsv['EllipsoidFadeType'], + 'uniforms': { + 'color': new bst(0x1,0x0,0x0,0x1), + 'time': 0x1 + }, + 'source': bsp['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv['PolylineFlowType'] = 'P' + doo(0x5ca) + 'w'; + Cesium['Material']['PolylineFlowImage'] = bsw + doj(0x177); + bsv['_materialCache']['addMaterial'](bsv['PolylineFlowType'], { + 'fabric': { + 'type': bsv['PolylineFlowType'], + 'uniforms': { + 'color': new bst(0x1,0x0,0x0,0x1), + 'image': bsv['PolylineFlowImage'], + 'time': 0x0, + 'repeat': 0x1 + }, + 'source': bse['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bsv['PolylineFlowType'] = 'P' + doo(0x5cb) + 'w'; + Cesium['Material']['PolylineFlowImage'] = bsw + doj(0x178); + bsv['_materialCache']['addMaterial'](bsv['PolygonFlowType'], { + 'fabric': { + 'type': bsv['PolygonFlowType'], + 'uniforms': { + 'color': new bst(0x1,0x0,0x0,0x1), + 'image': bsv['PolygonFlowImage'], + 'time': 0x0, + 'repeat': 0x1 + }, + 'source': bsf['default'] + }, + 'translucent': function translucent() { + return !![]; + } + }); + bs4['default']['PolylineAttackLinkMaterialProperty'] = bs5['PolylineAttackLinkMaterialProperty']; + bs4['default']['PolylineArrowLinkMaterialProperty'] = bs6['PolylineArrowLinkMaterialProperty']; + bs4['default']['PolylineGlowLinkMaterialProperty'] = bs7['PolylineGlowLinkMaterialProperty']; + bs4['default']['PolylinePulseLinkMaterialProperty'] = bs8['PolylinePulseLinkMaterialProperty']; + bs4['default'][dol(0xc85)] = bs9['PolylineTrailLinkMaterialProperty']; + bs4['default']['ElliposidFadeMaterialProperty'] = bsa['ElliposidFadeMaterialProperty']; + bs4[dol(0xc86)]['PolylineFlowMaterialProperty'] = bsb['PolylineFlowMaterialProperty']; + bs4['default'][dol(0xc87)] = bsc['PolygonFlowMaterialProperty']; + } + , function(bsx, bsy, bsz) { + 'u' + doo(0x5cc) + 't'; + Object['defineProperty'](bsy, '_' + doo(0x5cd) + 'e', { + 'value': !![] + }); + bsy['PolylineAttackLinkMaterialProperty'] = undefined; + var bsA = bsz(0x0); + var bsB = bsD(bsA); + var bsC = bsz(0x1); + function bsD(bsE) { + return { + 'default': bsE + }; + } + var bsF = bsB['default']['Color']; + var bsG = bsB['default']['defaultValue']; + var bsH = bsB['default']['defined']; + var bsI = bsB['default']['defineProperties']; + var bsJ = bsB['default']['Event']; + var bsK = bsB['default']['createPropertyDescriptor']; + var bsL = bsB['default']['Property']; + var bsM = bsB['default']['Material']; + var bsN = bsF['WHITE']; + function bsO(bsP) { + bsP = bsG(bsP, bsG[dol(0xc88)]); + this['_definitionChanged'] = new bsJ(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = bsP['color']; + this['duration'] = bsP[dol(0xc89)] || 0x3e8; + this['_time'] = undefined; + } + Object['defineProperties'](bsO['prototype'], { + 'isConstant': { + 'get': function get() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'color': bsK('c' + doo(0x5ce) + 'r') + }); + bsO['prototype']['getType'] = function(bsQ) { + return bsM['PolylineAttackLinkType']; + } + ; + bsO['prototype']['getValue'] = function(bsR, bsS) { + if (!bsH(bsS)) { + bsS = {}; + } + bsS['color'] = bsL['getValueOrClonedDefault'](this['_color'], bsR, bsN, bsS['color']); + bsS['image'] = bsM['PolylineAttackLinkImage']; + if (this['_time'] === undefined) { + this['_time'] = bsR['secondsOfDay']; + } + bsS['time'] = (bsR[dol(0xc8a)] - this['_time']) / this['duration']; + return bsS; + } + ; + bsO['prototype']['equals'] = function(bsT) { + return this === bsT || bsT instanceof bsO && bsL['equals'](this['_color'], bsT['_color']); + } + ; + bsy['PolylineAttackLinkMaterialProperty'] = bsO; + } + , function(bsU, bsV, bsW) { + 'u' + doo(0x5cf) + 't'; + Object['defineProperty'](bsV, '_' + doo(0x5d0) + 'e', { + 'value': !![] + }); + bsV[dol(0xc8b)] = undefined; + var bsX = bsW(0x0); + var bsY = bt0(bsX); + var bsZ = bsW(0x1); + function bt0(bt1) { + return { + 'default': bt1 + }; + } + var bt2 = bsY['default']['Color']; + var bt3 = bsY['default']['defaultValue']; + var bt4 = bsY['default']['defined']; + var bt5 = bsY['default']['defineProperties']; + var bt6 = bsY[dol(0xc8c)]['Event']; + var bt7 = bsY['default']['createPropertyDescriptor']; + var bt8 = bsY['default']['Property']; + var bt9 = bsY['default']['Material']; + var bta = bt2['WHITE']; + function btb(btc) { + btc = bt3(btc, bt3['EMPTY_OBJECT']); + this['_definitionChanged'] = new bt6(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = btc['color']; + this['duration'] = btc['duration'] || 0x3e8; + this['_time'] = undefined; + } + Object['defineProperties'](btb['prototype'], { + 'isConstant': { + 'get': function get() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'color': bt7('c' + doo(0x5d1) + 'r') + }); + btb['prototype']['getType'] = function(btd) { + return bt9['PolylineArrowLinkType']; + } + ; + btb[dol(0xc8d)]['getValue'] = function(bte, btf) { + if (!bt4(btf)) { + btf = {}; + } + btf['color'] = bt8['getValueOrClonedDefault'](this['_color'], bte, bta, btf['color']); + btf[dol(0xc8e)] = bt9['PolylineArrowLinkImage']; + if (this['_time'] === undefined) { + this['_time'] = bte['secondsOfDay']; + } + btf['time'] = (bte['secondsOfDay'] - this['_time']) * 0x3e8 / this['duration']; + return btf; + } + ; + btb['prototype']['equals'] = function(btg) { + return this === btg || btg instanceof btb && bt8['equals'](this['_color'], btg['_color']); + } + ; + bsV['PolylineArrowLinkMaterialProperty'] = btb; + } + , function(bth, bti, btj) { + 'u' + doo(0x5d2) + 't'; + Object['defineProperty'](bti, '_' + doo(0x5d3) + 'e', { + 'value': !![] + }); + bti['PolylineGlowLinkMaterialProperty'] = undefined; + var btk = btj(0x0); + var btl = btm(btk); + function btm(btn) { + return { + 'default': btn + }; + } + var bto = btl['default'][dol(0xc8f)]; + var btp = btl['default'][dol(0xc90)]; + var btq = btl['default']['defined']; + var btr = btl['default']['defineProperties']; + var bts = btl['default']['Event']; + var btt = btl['default']['createPropertyDescriptor']; + var btu = btl[dol(0xc91)][dol(0xc92)]; + var btv = btl[dol(0xc93)]['Material']; + var btw = bto['WHITE']; + function btx(bty) { + bty = btp(bty, btp['EMPTY_OBJECT']); + this['_definitionChanged'] = new bts(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = bty['color']; + } + Object['defineProperties'](btx['prototype'], { + 'isConstant': { + 'get': function get() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'color': btt('c' + doo(0x5d4) + 'r') + }); + btx['prototype']['getType'] = function(btz) { + return btv['PolylineGrowLinkType']; + } + ; + btx['prototype']['getValue'] = function(btA, btB) { + if (!btq(btB)) { + btB = {}; + } + btB['color'] = btu['getValueOrClonedDefault'](this['_color'], btA, btw, btB['color']); + return btB; + } + ; + btx['prototype']['equals'] = function(btC) { + return this === btC || btC instanceof btx && btu['equals'](this['_color'], btC['_color']); + } + ; + bti['PolylineGlowLinkMaterialProperty'] = btx; + } + , function(btD, btE, btF) { + 'u' + doo(0x5d5) + 't'; + Object['defineProperty'](btE, '_' + doo(0x5d6) + 'e', { + 'value': !![] + }); + btE['PolylinePulseLinkMaterialProperty'] = undefined; + var btG = btF(0x0); + var btH = btJ(btG); + var btI = btF(0x1); + function btJ(btK) { + return { + 'default': btK + }; + } + var btL = btH['default']['Color']; + var btM = btH['default']['defaultValue']; + var btN = btH['default']['defined']; + var btO = btH['default']['defineProperties']; + var btP = btH['default']['Event']; + var btQ = btH['default']['createPropertyDescriptor']; + var btR = btH['default']['Property']; + var btS = btH['default']['Material']; + var btT = btL['WHITE']; + function btU(btV) { + btV = btM(btV, btM['EMPTY_OBJECT']); + this['_definitionChanged'] = new btP(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = btV['color']; + this['duration'] = btV['duration'] || 0x3e8; + this['_time'] = undefined; + } + Object['defineProperties'](btU['prototype'], { + 'isConstant': { + 'get': function get() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'color': btQ('c' + doo(0x5d7) + 'r') + }); + btU['prototype']['getType'] = function(btW) { + return btS[dol(0xc94)]; + } + ; + btU['prototype']['getValue'] = function(btX, btY) { + if (!btN(btY)) { + btY = {}; + } + btY['color'] = btR[dol(0xc95)](this['_color'], btX, btT, btY['color']); + btY['image'] = btS['PolylinePulseLinkImage']; + if (this['_time'] === undefined) { + this['_time'] = btX['secondsOfDay']; + } + btY['time'] = (btX['secondsOfDay'] - this['_time']) * 0x3e8 / this['duration']; + return btY; + } + ; + btU['prototype'][dol(0xc96)] = function(btZ) { + return this === btZ || btZ instanceof btU && btR['equals'](this['_color'], btZ['_color']); + } + ; + btE['PolylinePulseLinkMaterialProperty'] = btU; + } + , function(bu0, bu1, bu2) { + 'u' + doo(0x5d8) + 't'; + Object['defineProperty'](bu1, '_' + doo(0x5d9) + 'e', { + 'value': !![] + }); + bu1['PolylineTrailLinkMaterialProperty'] = undefined; + var bu3 = bu2(0x0); + var bu4 = bu6(bu3); + var bu5 = bu2(0x1); + function bu6(bu7) { + return { + 'default': bu7 + }; + } + var bu8 = bu4['default']['Color']; + var bu9 = bu4['default']['defaultValue']; + var bua = bu4[dol(0xc97)]['defined']; + var bub = bu4['default']['defineProperties']; + var buc = bu4['default']['Event']; + var bud = bu4['default']['createPropertyDescriptor']; + var bue = bu4['default']['Property']; + var buf = bu4[dol(0xc98)]['Material']; + var bug = bu8['WHITE']; + function buh(bui) { + bui = bu9(bui, bu9['EMPTY_OBJECT']); + this['_definitionChanged'] = new buc(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = bui['color']; + this['_time'] = undefined; + } + Object['defineProperties'](buh['prototype'], { + 'isConstant': { + 'get': function get() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'color': bud('c' + doo(0x5da) + 'r') + }); + buh['prototype'][dol(0xc99)] = function(buj) { + return buf['PolylineTrailLinkType']; + } + ; + buh['prototype']['getValue'] = function(buk, bul) { + if (!bua(bul)) { + bul = {}; + } + bul[dol(0xc9a)] = bue['getValueOrClonedDefault'](this['_color'], buk, bug, bul['color']); + bul['image'] = buf['PolylineTrailLinkImage']; + return bul; + } + ; + buh[dol(0xc9b)]['equals'] = function(bum) { + return this === bum || bum instanceof buh && bue['equals'](this['_color'], bum['_color']); + } + ; + bu1['PolylineTrailLinkMaterialProperty'] = buh; + } + , function(bun, buo, bup) { + 'u' + doo(0x5db) + 't'; + Object['defineProperty'](buo, '_' + doo(0x5dc) + 'e', { + 'value': !![] + }); + buo['ElliposidFadeMaterialProperty'] = undefined; + var buq = bup(0x0); + var bur = but(buq); + var bus = bup(0x1); + function but(buu) { + return { + 'default': buu + }; + } + var buv = bur['default']['Color']; + var buw = bur['default']['defaultValue']; + var bux = bur['default']['defined']; + var buy = bur['default']['defineProperties']; + var buz = bur['default']['Event']; + var buA = bur['default']['createPropertyDescriptor']; + var buB = bur['default']['Property']; + var buC = bur['default']['Material']; + var buD = buv['WHITE']; + function buE(buF) { + buF = buw(buF, buw['EMPTY_OBJECT']); + this['_definitionChanged'] = new buz(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = buF['color']; + this['_time'] = undefined; + } + Object['defineProperties'](buE['prototype'], { + 'isConstant': { + 'get': function get() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function get() { + return this['_definitionChanged']; + } + }, + 'color': buA('c' + doo(0x5dd) + 'r') + }); + buE['prototype']['getType'] = function(buG) { + return buC['EllipsoidFadeType']; + } + ; + buE['prototype']['getValue'] = function(buH, buI) { + if (!bux(buI)) { + buI = {}; + } + buI['color'] = buB['getValueOrClonedDefault'](this['_color'], buH, buD, buI['color']); + if (this['_time'] === undefined) { + this['_time'] = buH['secondsOfDay']; + } + buI[dol(0xc9c)] = buH['secondsOfDay'] - this['_time']; + return buI; + } + ; + buE['prototype'][dol(0xc9d)] = function(buJ) { + return this === buJ || buJ instanceof buE && buB['equals'](this['_color'], buJ['_color']); + } + ; + buo['ElliposidFadeMaterialProperty'] = buE; + } + , function(buK, buL) { + buK['exports'] = doj(0x179); + } + , function(buM, buN) { + buM['exports'] = doj(0x17a); + } + , function(buO, buP) { + buO['exports'] = doj(0x17b); + } + , function(buQ, buR) { + buQ['exports'] = doj(0x17c); + } + , function(buS, buT) { + buS['exports'] = doj(0x17d); + } + , function(buU, buV, buW) { + 'u' + doo(0x5de) + 't'; + Object['defineProperty'](buV, '_' + doo(0x5df) + 'e', { + 'value': !![] + }); + buV['getLinkedPointList'] = bv1; + var buX = buW(0x0); + var buY = buZ(buX); + function buZ(bv0) { + return { + 'default': bv0 + }; + } + function bv1(bv2, bv3, bv4, bv5) { + var bv6 = []; + var bv7 = buY['default']['Cartographic'][dol(0xc9e)](bv2); + var bv8 = buY['default']['Cartographic']['fromCartesian'](bv3); + var bv9 = bv7['longitude'] * 0xb4 / Math['PI']; + var bva = bv7['latitude'] * 0xb4 / Math['PI']; + var bvb = bv8['longitude'] * 0xb4 / Math['PI']; + var bvc = bv8['latitude'] * 0xb4 / Math[dol(0xc9f)]; + var bvd = Math['sqrt']((bv9 - bvb) * (bv9 - bvb) + (bva - bvc) * (bva - bvc)); + var bve = bvd * bv4; + var bvf = buY['default']['Cartesian3']['clone'](bv2); + var bvg = buY['default']['Cartesian3']['clone'](bv3); + var bvh = buY['default']['Cartesian3']['distance'](bvf, buY[dol(0xca0)]['Cartesian3']['ZERO']); + var bvi = buY['default']['Cartesian3']['distance'](bvg, buY['default']['Cartesian3']['ZERO']); + buY['default']['Cartesian3']['normalize'](bvf, bvf); + buY['default']['Cartesian3']['normalize'](bvg, bvg); + if (buY['default']['Cartesian3']['distance'](bvf, bvg) == 0x0) { + return bv6; + } + var bvj = buY[dol(0xca1)]['Cartesian3']['angleBetween'](bvf, bvg); + bv6['push'](bv2); + for (var bvk = 0x1; bvk < bv5 - 0x1; bvk++) { + var bvl = bvk * 0x1 / (bv5 - 0x1); + var bvm = 0x1 - bvl; + var bvn = Math['sin'](bvm * bvj) / Math['sin'](bvj); + var bvo = Math['sin'](bvl * bvj) / Math['sin'](bvj); + var bvp = buY['default']['Cartesian3']['multiplyByScalar'](bvf, bvn, new buY[(dol(0xca2))]['Cartesian3']()); + var bvq = buY['default']['Cartesian3']['multiplyByScalar'](bvg, bvo, new buY['default']['Cartesian3']()); + var bvr = buY['default']['Cartesian3']['add'](bvp, bvq, new buY['default']['Cartesian3']()); + var bvs = bvl * Math['PI']; + var bvt = bvh * bvm + bvi * bvl + Math['sin'](bvs) * bve; + bvr = buY['default'][dol(0xca3)]['multiplyByScalar'](bvr, bvt, bvr); + bv6['push'](bvr); + } + bv6['push'](bv3); + return bv6; + } + } + , function(bvu, bvv, bvw) { + 'u' + doo(0x5e0) + 't'; + Object[dol(0xca4)](bvv, '_' + doo(0x5e1) + 'e', { + 'value': !![] + }); + bvv['TetrahedronPrimitive'] = undefined; + var bvx = bvw(0x0); + var bvy = bvA(bvx); + var bvz = bvw(0x1); + function bvA(bvB) { + return { + 'default': bvB + }; + } + var bvC = bvy['default']['Color']; + var bvD = bvy[dol(0xca5)][dol(0xca6)]; + var bvE = bvy['default'][dol(0xca7)]; + var bvF = bvy['default']['defineProperties']; + var bvG = bvy['default']['Event']; + var bvH = bvy['default']['createPropertyDescriptor']; + var bvI = bvy['default'][dol(0xca8)]; + var bvJ = bvy['default']['Material']; + var bvK = bvC['WHITE']; + var bvL = bvz['util']['getBaseUrl'](); + function bvM(bvN) { + this['show'] = !![]; + this['_command'] = undefined; + this['_enuMatrix'] = undefined; + this['_scaleMatrix'] = undefined; + this['_localPosition'] = bvN['position']; + this['_createCommand'] = bvT; + this['_angle'] = 0x0; + this['_distance'] = bvN['distance'] || 0x1; + this['_setInterval'] = undefined; + this['_viewer'] = bvN['viewer']; + this['_speed'] = bvN['speed'] || 0x1; + this['_color'] = bvN['color'] || new Cesium['Color'](0x1,0x0,0x0,0x1); + this['_scale'] = bvN['scale'] || new Cesium['Cartesian3'](0xa,0xa,0xf); + this['_texture'] = undefined; + this['_imageUrl'] = bvL + doj(0x17e); + this['_modelMatrix'] = bwr(this); + this['_height'] = bww(this); + bwm(this); + } + bvM['prototype']['update'] = function(bvO) { + if (!this['show']) { + return; + } + if (!Cesium['defined'](this['_command'])) { + this['_command'] = this['_createCommand'](bvO['context'], this); + this['_command']['pickId'] = 'v' + doo(0x5e2) + 'r'; + } + if (Cesium['defined'](this['_command'])) { + bvO['commandList']['push'](this['_command']); + } + } + ; + bvM[dol(0xca9)]['isDestroyed'] = function() { + return ![]; + } + ; + bvM['prototype']['destroy'] = function() { + if (Cesium['defined'](this['_command'])) { + this['_command']['shaderProgram'] = this['_command']['shaderProgram'] && this['_command']['shaderProgram'][dol(0xcaa)](); + } + return destroyObject(this); + } + ; + bvM[dol(0xcab)]['startAnimate'] = function() { + let bvP = this; + this['_setInterval'] = setInterval(bvQ, 0x5); + function bvQ() { + bvP['_angle'] = bvP['_angle'] + 0.01; + Math['sin'](bvP['_angle']) > 0x0 ? bvP['_height'] = 0.001 : bvP['_height'] = -0.001; + let bvR = new Cesium['Cartesian3'](0x0,0x0,bvP['_height']); + Cesium[dol(0xcac)]['multiplyByTranslation'](bvP['_modelMatrix'], bvR, bvP['_modelMatrix']); + let bvS = Cesium['Matrix4']['fromRotationTranslation'](Cesium['Matrix3'][dol(0xcad)](Cesium['Math']['toRadians'](bvP['_speed']))); + Cesium['Matrix4']['multiply'](bvP['_modelMatrix'], bvS, bvP['_modelMatrix']); + } + } + ; + bvM['prototype']['closeAnimate'] = function() { + clearInterval(this['_setInterval']); + } + ; + function bvT(bvU, bvV) { + var bvW = ![]; + var bvX = !![]; + var bvY = bwi(); + var bvZ = bwk(); + var bw0 = Cesium['Appearance']['getDefaultRenderState'](bvW, bvX, undefined); + var bw1 = Cesium['RenderState']['fromCache'](bw0); + var bw2 = new Cesium['ShaderSource']({ + 'sources': [bvY] + }); + var bw3 = new Cesium['ShaderSource']({ + 'sources': [bvZ] + }); + var bw4 = { + 'color': function() { + return bvV['_color']; + }, + 'myImage': function() { + if (Cesium['defined'](bvV['_texture'])) { + return bvV['_texture']; + } else { + return bvV['_viewer']['scene']['context']['defaultTexture']; + } + } + }; + let bw5 = { + 'position': 0x0, + 'textureCoordinates': 0x1 + }; + var bw6 = Cesium['ShaderProgram']['fromCache']({ + 'context': bvU, + 'vertexShaderSource': bw2, + 'fragmentShaderSource': bw3, + 'attributeLocations': bw5 + }); + return new Cesium['DrawCommand']({ + 'vertexArray': bw7(bvU), + 'primitiveType': Cesium['PrimitiveType']['TRIANGLES'], + 'renderState': bw1, + 'shaderProgram': bw6, + 'uniformMap': bw4, + 'owner': this, + 'pass': Cesium[dol(0xcae)]['TRANSLUCENT'], + 'modelMatrix': bvV['_modelMatrix'] + }); + } + function bw7(bw8) { + let bw9 = { + 'position': 0x0, + 'textureCoordinates': 0x1 + }; + var bwa = bwe(); + var bwb = new Cesium['Geometry']({ + 'attributes': { + 'position': new Cesium[(dol(0xcaf))]({ + 'componentDatatype': Cesium['ComponentDatatype']['FLOAT'], + 'componentsPerAttribute': 0x3, + 'values': bwa['positions'] + }), + 'textureCoordinates': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['FLOAT'], + 'componentsPerAttribute': 0x2, + 'values': bwa['sts'] + }) + }, + 'indices': bwa['indices'], + 'primitiveType': Cesium['PrimitiveType']['TRIANGLES'], + 'boundingSphere': Cesium['BoundingSphere']['fromVertices'](bwa['positions']) + }); + var bwc = Cesium['GeometryPipeline']['computeNormal'](bwb); + var bwd = Cesium['VertexArray']['fromGeometry']({ + 'context': bw8, + 'geometry': bwc, + 'attributeLocations': bw9, + 'bufferUsage': Cesium['BufferUsage']['STATIC_DRAW'] + }); + return bwd; + } + function bwe() { + var bwf = new Float64Array(0x5 * 0x3); + bwf[0x0] = 0x0; + bwf[0x1] = 0x1; + bwf[0x2] = 0x0; + bwf[0x3] = -0x1; + bwf[0x4] = 0x0; + bwf[0x5] = 0x0; + bwf[0x6] = 0x0; + bwf[0x7] = -0x1; + bwf[0x8] = 0x0; + bwf[0x9] = 0x1; + bwf[0xa] = 0x0; + bwf[0xb] = 0x0; + bwf[0xc] = 0x0; + bwf[0xd] = 0x0; + bwf[0xe] = -0x1; + var bwg = new Uint16Array(0x6 * 0x3); + bwg[0x0] = 0x4; + bwg[0x1] = 0x2; + bwg[0x2] = 0x3; + bwg[0x3] = 0x4; + bwg[0x4] = 0x3; + bwg[0x5] = 0x0; + bwg[0x6] = 0x4; + bwg[0x7] = 0x0; + bwg[0x8] = 0x1; + bwg[0x9] = 0x4; + bwg[0xa] = 0x1; + bwg[0xb] = 0x2; + bwg[0xc] = 0x1; + bwg[0xd] = 0x2; + bwg[0xe] = 0x3; + bwg[0xf] = 0x1; + bwg[0x10] = 0x3; + bwg[0x11] = 0x0; + var bwh = new Float32Array([0x0, 0x0, 0x1, 0x0, 0x1, 0x1, 0x0, 0x1, 0.5, 0.5]); + return { + 'indices': bwg, + 'positions': bwf, + 'sts': bwh + }; + } + function bwi() { + var bwj = '\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20position;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20normal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20float\x20batchId;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_positionEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_normalEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec2\x20v_st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec4\x20v_pickColor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_positionEC\x20=\x20(czm_modelView\x20*\x20vec4(position,\x201.0)).xyz;\x20\x20\x20\x20\x20\x20\x20//\x20position\x20in\x20eye\x20coordinates\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_normalEC\x20=\x20czm_normal\x20*\x20normal;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20normal\x20in\x20eye\x20coordinates\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_st\x20=\x20st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//v_pickColor\x20=\x20czm_batchTable_pickColor(batchId);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20czm_modelViewProjection\x20*\x20vec4(position,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'; + return bwj; + } + function bwk() { + var bwl = '\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_positionEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_normalEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec2\x20v_st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uniform\x20vec4\x20color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec4\x20v_pickColor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20myImage;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20positionToEyeEC\x20=\x20-v_positionEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20normalEC\x20=\x20normalize(v_normalEC);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#ifdef\x20FACE_FORWARD\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20normalEC\x20=\x20faceforward(normalEC,\x20vec3(0.0,\x200.0,\x201.0),\x20-normalEC);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#endif\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_materialInput\x20materialInput;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20materialInput.normalEC\x20=\x20normalEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20materialInput.positionToEyeEC\x20=\x20positionToEyeEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20materialInput.st\x20=\x20v_st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20st\x20=\x20materialInput.st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20dt_a11\x20=\x20fract(czm_frameNumber\x20/\x20100.0)\x20*\x203.14159265\x20*\x202.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20dt_a12\x20=\x20sin(dt_a11);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20vst=smoothstep(0.7,\x201.0,\x20dt_a12)+0.4;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20colorImage\x20=\x20texture2D(myImage,\x20vec2(fract(st.s-\x20czm_frameNumber*0.003),\x20st.t));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.alpha\x20=mix(0.1,1.0,clamp((1.0-st.t)\x20*\x20color.a,0.0,1.0))\x20+(1.0-sign(st.t-czm_frameNumber*0.001))*0.2*(1.0-colorImage.r)+0.4\x20;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.diffuse\x20=(1.0-colorImage.a)*vec3(1.0,0.0,0.0)+colorImage.rgb*vec3(1.0,1.0,0.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#ifdef\x20FLAT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(material.diffuse\x20+\x20material.emission,\x20material.alpha);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#else\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20czm_phong(normalize(positionToEyeEC),\x20material,\x20czm_lightDirectionEC);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#endif\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.r\x20=\x20color.r;\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'; + return bwl; + } + function bwm(bwn) { + Cesium['Resource']['createIfNeeded'](bwn['_imageUrl'])['fetchImage']()['then'](function(bwo) { + var bwp; + var bwq = bwn['_viewer']['scene']['context']; + if (Cesium['defined'](bwo['internalFormat'])) { + bwp = new Texture({ + 'context': bwq, + 'pixelFormat': bwo['internalFormat'], + 'width': bwo['naturalWidth'], + 'height': bwo['naturalHeight'], + 'source': { + 'arrayBufferView': bwo['bufferView'] + } + }); + } else { + bwp = new Texture({ + 'context': bwq, + 'source': bwo + }); + } + bwn['_texture'] = bwp; + }); + } + function bwr(bws) { + let bwt = Cesium['Transforms']['eastNorthUpToFixedFrame'](bws['_localPosition']); + let bwu = Cesium['Matrix4']['fromScale'](bws['_scale']); + let bwv = Cesium['Matrix4']['multiply'](bwt, bwu, new Cesium['Matrix4']()); + bws['_scaleMatrix'] = bwu; + bws['_enuMatrix'] = bwt; + return bwv; + } + function bww(bwx) { + let bwy = Cesium['Cartesian3']['fromElements'](0x0, 0x0, bwx['_distance'], new Cesium['Cartesian3']()); + let bwz = Cesium['Matrix4']['multiplyByPoint'](bwx[dol(0xcb0)], bwy, new Cesium['Cartesian3']()); + let bwA = Cesium['Matrix4'][dol(0xcb1)](bwx['_viewer']['scene']['camera']['_viewMatrix'], bwz, new Cesium[(dol(0xcb2))]()); + let bwB = Cesium['Matrix4']['multiplyByPoint'](bwx['_viewer']['scene'][dol(0xcb3)]['frustum']['projectionMatrix'], bwA, new Cesium['Cartesian3']()); + return Cesium['Cartesian3']['normalize'](bwB, new Cesium['Cartesian3']())['z']; + } + bvv['TetrahedronPrimitive'] = bvM; + } + , function(bwC, bwD, bwE) { + 'u' + doo(0x5e3) + 't'; + Object['defineProperty'](bwD, '_' + doo(0x5e4) + 'e', { + 'value': !![] + }); + bwD['PolylineFlowMaterialProperty'] = undefined; + var bwF = bwE(0x0); + var bwG = bwJ(bwF); + var bwH = bwE(0x1); + var bwI = bwH['util']['getBaseUrl'](); + function bwJ(bwK) { + return { + 'default': bwK + }; + } + var bwL = bwG['default']['Color']; + var bwM = bwG['default']['defaultValue']; + var bwN = bwG['default']['defined']; + var bwO = bwG['default']['defineProperties']; + var bwP = bwG['default']['Event']; + var bwQ = bwG['default']['createPropertyDescriptor']; + var bwR = bwG['default']['Property']; + var bwS = bwG['default'][dol(0xcb4)]; + var bwT = bwL['WHITE']; + function bwU(bwV) { + bwV = bwM(bwV, bwM['EMPTY_OBJECT']); + this['_definitionChanged'] = new bwP(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = bwV['color']; + this['image'] = bwV['image']; + this['speed'] = bwV['speed'] || 0x1; + this['duration'] = bwV['duration'] || 0x3e8; + this['repeat'] = bwV['repeat'] || 0x1; + this['_time'] = new Date()['getTime'](); + } + Object['defineProperties'](bwU['prototype'], { + 'isConstant': { + 'get': function() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function() { + return this['_definitionChanged']; + } + }, + 'color': Cesium['createPropertyDescriptor']('c' + doo(0x5e5) + 'r') + }); + bwU['prototype']['getType'] = function(bwW) { + return bwS['PolylineFlowType']; + } + ; + bwU['prototype']['getValue'] = function(bwX, bwY) { + if (!Cesium['defined'](bwY)) { + bwY = {}; + } + bwY['color'] = Cesium['Property']['getValueOrClonedDefault'](this['_color'], bwX, Cesium['Color']['WHITE'], bwY['color']); + bwY['image'] = Cesium['defined'](this['image']) ? this['image'] : Cesium['Material']['PolylineFlowImage']; + bwY['time'] = (new Date()['getTime']() - this['_time']) % this['duration'] / this['duration'] * this['speed']; + bwY['repeat'] = this['repeat']; + return bwY; + } + ; + bwU['prototype']['equals'] = function(bwZ) { + return this === bwZ || bwZ instanceof bwU && Cesium['Property']['equals'](this['_color'], bwZ['_color']); + } + ; + bwD['PolylineFlowMaterialProperty'] = bwU; + } + , function(bx0, bx1) { + bx0['exports'] = doj(0x17f); + } + , function(bx2, bx3, bx4) { + 'u' + doo(0x5e6) + 't'; + Object[dol(0xcb5)](bx3, '_' + doo(0x5e7) + 'e', { + 'value': !![] + }); + bx3['GradientFacePrimitive'] = undefined; + var bx5 = bx4(0x0); + var bx6 = bx9(bx5); + var bx7 = bx4(0x1); + var bx8 = bx7['util']['getBaseUrl'](); + function bx9(bxa) { + return { + 'default': bxa + }; + } + var bxb = bx6['default']['Color']; + var bxc = bx6['default']['defaultValue']; + var bxd = bx6['default']['defined']; + var bxe = bx6['default']['defineProperties']; + var bxf = bx6['default']['Event']; + var bxg = bx6['default']['createPropertyDescriptor']; + var bxh = bx6['default']['Property']; + var bxi = bx6[dol(0xcb6)]['Material']; + var bxj = bxb['WHITE']; + function bxk(bxl, bxm, bxn, bxo, bxp) { + var bxq = []; + for (var bxr = 0x0; bxr < bxm['length']; bxr++) { + var bxs = []; + for (var bxt = 0x0; bxt < bxm[bxr]['length']; bxt++) { + var bxu = bxm[bxr][bxt]; + var bxv = bxp[bxr][bxt]; + var bxw = new bxx({ + 'vertexFormat': Cesium['VertexFormat']['POSITION_AND_NORMAL'], + 'position': new Cesium['Cartesian3'](bxl[bxu * 0x3],bxl[bxu * 0x3 + 0x1],bxl[bxu * 0x3 + 0x2]), + 'color': Cesium['Color']['fromRandom']({ + 'red': bxn[bxu * 0x4], + 'green': bxn[bxu * 0x4 + 0x1], + 'blue': bxn[bxu * 0x4 + 0x2], + 'alpha': bxn[bxu * 0x4 + 0x3] + }), + 'normal': new Cesium[(dol(0xcb7))](bxo[bxv * 0x3],bxo[bxv * 0x3 + 0x1],bxo[bxv * 0x3 + 0x2]) + }); + bxs['push'](bxw); + } + bxq['push'](new bxz({ + 'vertices': bxs + })); + } + return new Cesium['Primitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'geometry': bxZ['createGeometry'](new bxZ({ + 'triangles': bxq + })) + }), + 'asynchronous': ![], + 'appearance': new byr({ + 'translucent': ![] + }) + }); + } + function bxx(bxy) { + this['_vertexFormat'] = Cesium['VertexFormat'][dol(0xcb8)](Cesium[dol(0xcb9)](bxy[dol(0xcba)], Cesium['VertexFormat'][dol(0xcbb)])); + if (!Cesium['defined'](bxy)) { + throw new Cesium['DeveloperError']('o' + doo(0x5e8) + '.'); + } + if (!Cesium['defined'](bxy['position']) && this['_vertexFormat']['position']) { + throw new Cesium['DeveloperError'](doj(0x180)); + } + if (!Cesium[dol(0xcbc)](bxy['normal']) && this['_vertexFormat']['normal']) { + throw new Cesium['DeveloperError'](doj(0x181)); + } + if (!Cesium['defined'](bxy['st']) && this['_vertexFormat']['st']) { + throw new Cesium['DeveloperError'](doj(0x182)); + } + if (!Cesium['defined'](bxy['binormal']) && this['_vertexFormat'][dol(0xcbd)]) { + throw new Cesium['DeveloperError'](doj(0x183)); + } + if (!Cesium['defined'](bxy['tangent']) && this['_vertexFormat']['tangent']) { + throw new Cesium['DeveloperError'](doj(0x184)); + } + if (!Cesium[dol(0xcbe)](bxy['color']) && this['_vertexFormat']['color']) { + throw new Cesium[(dol(0xcbf))](doj(0x185)); + } + this['id'] = bxy[dol(0xcc0)]; + this['position'] = Cesium['defined'](bxy['position']) ? bxy['position'] : undefined; + this['normal'] = Cesium['defined'](bxy['normal']) ? bxy[dol(0xcc1)] : undefined; + this['st'] = Cesium['defined'](bxy['st']) ? bxy['st'] : undefined; + this['binormal'] = Cesium['defined'](bxy['binormal']) ? bxy['binormal'] : undefined; + this['tangent'] = Cesium['defined'](bxy[dol(0xcc2)]) ? bxy['tangent'] : undefined; + this['color'] = Cesium['defined'](bxy['color']) ? bxy['color'] : undefined; + } + ;var bxz = function(bxA) { + if (!Cesium[dol(0xcc3)](bxA)) { + throw new Cesium['DeveloperError']('o' + doo(0x5e9) + '.'); + } + if (!Cesium['defined'](bxA[dol(0xcc4)]) || bxA['vertices'][dol(0xcc5)] !== 0x3) { + throw new Cesium[(dol(0xcc6))](doj(0x186)); + } + this['id'] = bxA['id']; + this['vertices'] = Cesium['defined'](bxA['vertices']) ? bxA['vertices'] : undefined; + this['_vertexFormat'] = Cesium['VertexFormat']['clone'](Cesium['defaultValue'](bxA['vertexFormat'], Cesium['VertexFormat']['POSITION_AND_NORMAL'])); + }; + var bxB = []; + function bxC(bxD, bxE, bxF, bxG) { + var bxH = Cesium['EllipsoidTangentPlane']['fromPoints'](bxE, bxD); + var bxI = bxH['projectPointsOntoPlane'](bxE, bxB); + var bxJ = Cesium['PolygonPipeline'][dol(0xcc7)](bxI); + if (bxJ === Cesium['WindingOrder']['CLOCKWISE']) { + bxI['reverse'](); + bxE['reverse'](); + bxF['reverse'](); + } + var bxK = Cesium['PolygonPipeline']['triangulate'](bxI); + if (bxK['length'] < 0x3) { + bxK = [0x0, 0x1, 0x2]; + } + var bxL; + var bxM = bxE['length']; + var bxN = new Array(bxM * 0x3); + var bxO = new Uint8Array(bxM * 0x4); + var bxP = new Array(bxM * 0x3); + var bxQ = 0x0; + var bxR = 0x0; + for (var bxS = 0x0; bxS < bxM; bxS++) { + var bxT = bxE[bxS]; + var bxU = bxF[bxS]; + var bxV = bxG[bxS]; + var bxW = bxQ++; + var bxX = bxQ++; + var bxY = bxQ++; + bxN[bxW] = bxT['x']; + bxN[bxX] = bxT['y']; + bxN[bxY] = bxT['z']; + bxP[bxW] = bxV['x']; + bxP[bxX] = bxV['y']; + bxP[bxY] = bxV['z']; + bxO[bxR++] = Cesium['Color']['floatToByte'](bxU['red']); + bxO[bxR++] = Cesium['Color'][dol(0xcc8)](bxU['green']); + bxO[bxR++] = Cesium['Color']['floatToByte'](bxU['blue']); + bxO[bxR++] = Cesium['Color']['floatToByte'](bxU[dol(0xcc9)]); + } + bxL = new Cesium['Geometry']({ + 'attributes': { + 'position': new Cesium[(dol(0xcca))]({ + 'componentDatatype': Cesium['ComponentDatatype']['DOUBLE'], + 'componentsPerAttribute': 0x3, + 'values': bxN + }), + 'color': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['UNSIGNED_BYTE'], + 'componentsPerAttribute': 0x4, + 'values': bxO, + 'normalize': !![] + }), + 'normal': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['FLOAT'], + 'componentsPerAttribute': 0x3, + 'values': bxP + }) + }, + 'indices': bxK, + 'primitiveType': Cesium['PrimitiveType']['TRIANGLES'] + }); + return new Cesium['GeometryInstance']({ + 'geometry': bxL + }); + } + var bxZ = function(by0) { + if (!Cesium['defined'](by0)) { + throw new Cesium['DeveloperError']('o' + doo(0x5ea) + '.'); + } + if (!Cesium['defined'](by0['positions']) && !Cesium['defined'](by0['triangles'])) { + throw new Cesium['DeveloperError'](doj(0x187)); + } + if (Cesium['defined'](by0['positions']) && (by0['positions']['length'] <= 0x3 || by0['positions']['length'] % 0x3 === 0x0)) { + throw new Cesium['DeveloperError'](doj(0x188)); + } + if (Cesium['defined'](by0['colors']) && by0['colors']['length'] === by0['positions']['length']) { + throw new Cesium['DeveloperError'](doj(0x189)); + } + var by1 = Cesium['defaultValue'](by0['ellipsoid'], Cesium['Ellipsoid']['WGS84']); + var by2 = Cesium['VertexFormat']['clone'](Cesium['defaultValue'](by0['vertexFormat'], Cesium['VertexFormat']['POSITION_AND_NORMAL'])); + var by3 = Cesium['defined'](by0['positions']) ? by0['positions'] : []; + var by4 = Cesium['defined'](by0['colors']) ? by0['colors'] : []; + var by5 = Cesium['defined'](by0['normals']) ? by0['normals'] : []; + var by6 = Cesium['defined'](by0['triangles']) ? by0['triangles'] : []; + var by7; + var by8 = []; + for (var by7 = 0x0; by7 < by3['length']; by7 += 0x3) { + by8['push']({ + 'positions': [by3[by7], by3[by7 + 0x1], by3[by7 + 0x2]], + 'colors': [by4[by7], by4[by7 + 0x1], by4[by7 + 0x2]] + }); + } + for (var by7 = 0x0; by7 < by6['length']; by7++) { + by3 = []; + by4 = []; + by5 = []; + for (var byb = 0x0; byb < 0x3; byb++) { + by3['push'](by6[by7]['vertices'][byb]['position']); + by4['push'](by6[by7][dol(0xccb)][byb]['color']); + by5['push'](by6[by7]['vertices'][byb]['normal']); + } + by8['push']({ + 'positions': by3, + 'colors': by4, + 'normals': by5 + }); + } + this['_positions'] = by3; + this['_colors'] = by4; + this['_normals'] = by5; + this['_ellipsoid'] = by1; + this['_vertexFormat'] = by2; + this['_triangles'] = by8; + this['_granularity'] = Cesium['defaultValue'](by0['granularity'], Cesium['Math']['RADIANS_PER_DEGREE']); + }; + bxZ['createGeometry'] = function(bxZ) { + var byd = bxZ['_vertexFormat']; + var bye = bxZ['_ellipsoid']; + var byf = bxZ['_triangles']; + var byg = []; + var byh = ![]; + var byi; + var byj; + for (var byj = 0x0; byj < byf['length']; byj++) { + byi = bxC(bye, byf[byj]['positions'], byf[byj]['colors'], byf[byj]['normals']); + byi['geometry'] = Cesium['PolygonPipeline']['scaleToGeodeticHeight'](byi['geometry'], 0x0, bye, !byh); + byg['push'](byi); + } + byi = Cesium['GeometryPipeline']['combineInstances'](byg)[0x0]; + byi['attributes'][dol(0xccc)]['values'] = new Float64Array(byi['attributes']['position']['values']); + byi['indices'] = Cesium['IndexDatatype']['createTypedArray'](byi['attributes']['position']['values']['length'] / 0x3, byi['indices']); + var byl = byi['attributes']; + var bym = Cesium['BoundingSphere']['fromVertices'](byl[dol(0xccd)]['values']); + if (!byd['position']) { + delete byl['position']; + } + return new Cesium['Geometry']({ + 'attributes': byl, + 'indices': byi['indices'], + 'primitiveType': byi['primitiveType'], + 'boundingSphere': bym + }); + } + ; + var byn = '\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20position3DHigh;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20position3DLow;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20normal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec4\x20color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20float\x20batchId;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_positionEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_normalEC;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec4\x20v_color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20p\x20=\x20czm_computePosition();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_positionEC\x20=\x20(czm_modelViewRelativeToEye\x20*\x20p).xyz;\x20\x20\x20\x20\x20\x20//\x20position\x20in\x20eye\x20coordinates\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_normalEC\x20=\x20czm_normal\x20*\x20normal;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20normal\x20in\x20eye\x20coordinates\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_color\x20=\x20color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'; + var byo = '\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec3\x20v_positionEC;\x0avarying\x20vec3\x20v_normalEC;\x0avarying\x20vec4\x20v_color;\x0avoid\x20main()\x0a{\x0a\x20\x20\x20\x20vec3\x20positionToEyeEC\x20=\x20-v_positionEC;\x0a\x20\x20\x20\x20vec3\x20normalEC\x20=\x20normalize(v_normalEC);\x0a#ifdef\x20FACE_FORWARD\x0a\x20\x20\x20\x20normalEC\x20=\x20faceforward(normalEC,\x20vec3(0.0,\x200.0,\x201.0),\x20-normalEC);\x0a#endif\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20czm_gammaCorrect(v_color);\x0a\x20\x20\x20\x20czm_materialInput\x20materialInput;\x0a\x20\x20\x20\x20materialInput.normalEC\x20=\x20normalEC;\x0a\x20\x20\x20\x20materialInput.positionToEyeEC\x20=\x20positionToEyeEC;\x0a\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x0a\x20\x20\x20\x20material.diffuse\x20=\x20color.rgb;\x0a\x20\x20\x20\x20material.alpha\x20=\x20color.a;\x0a\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20czm_phong(normalize(positionToEyeEC),\x20material,\x20czm_lightDirectionEC);\x0a}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'; + var byp = byn; + var byq = byo; + var byr = function(bys) { + bys = Cesium['defaultValue'](bys, Cesium['defaultValue']['EMPTY_OBJECT']); + var byt = Cesium['defaultValue'](bys['translucent'], !![]); + var byu = ![]; + var byv = byr['VERTEX_FORMAT']; + this['material'] = undefined; + this['translucent'] = byt; + this['_vertexShaderSource'] = Cesium['defaultValue'](bys[dol(0xcce)], byp); + this['_fragmentShaderSource'] = Cesium['defaultValue'](bys['fragmentShaderSource'], byq); + this['_renderState'] = Cesium['Appearance']['getDefaultRenderState'](byt, byu, bys['renderState']); + this['_closed'] = byu; + this['_vertexFormat'] = byv; + }; + Object['defineProperties'](byr['prototype'], { + 'vertexShaderSource': { + 'get': function() { + return this['_vertexShaderSource']; + } + }, + 'fragmentShaderSource': { + 'get': function() { + return this['_fragmentShaderSource']; + } + }, + 'renderState': { + 'get': function() { + return this['_renderState']; + } + }, + 'closed': { + 'get': function() { + return this['_closed']; + } + }, + 'vertexFormat': { + 'get': function() { + return this['_vertexFormat']; + } + } + }); + byr['VERTEX_FORMAT'] = Cesium['VertexFormat']['POSITION_AND_NORMAL']; + byr['prototype']['getFragmentShaderSource'] = Cesium['Appearance']['prototype']['getFragmentShaderSource']; + byr['prototype']['isTranslucent'] = Cesium['Appearance']['prototype']['isTranslucent']; + byr['prototype']['getRenderState'] = Cesium['Appearance'][dol(0xccf)]['getRenderState']; + bx3['GradientFacePrimitive'] = bxk; + } + , function(byw, byx, byy) { + 'u' + doo(0x5eb) + 't'; + Object['defineProperty'](byx, '_' + doo(0x5ec) + 'e', { + 'value': !![] + }); + byx['GradientFacePrimitiveNew'] = undefined; + var byz = byy(0x0); + var byA = byD(byz); + var byB = byy(0x1); + var byC = byB['util']['getBaseUrl'](); + function byD(byE) { + return { + 'default': byE + }; + } + var byF = byA[dol(0xcd0)]['Color']; + var byG = byA['default']['defaultValue']; + var byH = byA[dol(0xcd1)]['defined']; + var byI = byA['default']['defineProperties']; + var byJ = byA['default']['Event']; + var byK = byA['default'][dol(0xcd2)]; + var byL = byA['default'][dol(0xcd3)]; + var byM = byA['default']['Material']; + var byN = byF['WHITE']; + function byO(byP, byQ, byR) { + var byS = []; + for (var byT = 0x0; byT < byQ['length']; byT++) { + var byU = []; + for (var byV = 0x0; byV < byQ[byT]['length']; byV++) { + var byW = byQ[byT][byV]; + var byX = new byY({ + 'vertexFormat': Cesium['VertexFormat']['POSITION_AND_COLOR'], + 'position': new Cesium['Cartesian3'](byP[byW * 0x3],byP[byW * 0x3 + 0x1],byP[byW * 0x3 + 0x2]), + 'color': Cesium[dol(0xcd4)]['fromRandom']({ + 'red': byR[byW * 0x4], + 'green': byR[byW * 0x4 + 0x1], + 'blue': byR[byW * 0x4 + 0x2], + 'alpha': byR[byW * 0x4 + 0x3] + }) + }); + byU['push'](byX); + } + byS['push'](new bz0({ + 'vertices': byU + })); + } + return new Cesium['Primitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'geometry': bzk['createGeometry'](new bzk({ + 'triangles': byS + })) + }), + 'asynchronous': ![], + 'appearance': new bzL({ + 'translucent': ![] + }) + }); + } + function byY(byZ) { + this['_vertexFormat'] = Cesium[dol(0xcd5)]['clone'](Cesium['defaultValue'](byZ['vertexFormat'], Cesium['VertexFormat']['DEFAULT'])); + if (!Cesium['defined'](byZ)) { + throw new Cesium['DeveloperError']('o' + doo(0x5ed) + '.'); + } + if (!Cesium['defined'](byZ['position']) && this['_vertexFormat']['position']) { + throw new Cesium['DeveloperError'](doj(0x18a)); + } + if (!Cesium['defined'](byZ['normal']) && this['_vertexFormat']['normal']) { + throw new Cesium['DeveloperError'](doj(0x18b)); + } + if (!Cesium['defined'](byZ['st']) && this['_vertexFormat']['st']) { + throw new Cesium['DeveloperError'](doj(0x18c)); + } + if (!Cesium['defined'](byZ['binormal']) && this['_vertexFormat']['binormal']) { + throw new Cesium['DeveloperError'](doj(0x18d)); + } + if (!Cesium['defined'](byZ['tangent']) && this['_vertexFormat']['tangent']) { + throw new Cesium['DeveloperError'](doj(0x18e)); + } + if (!Cesium['defined'](byZ['color']) && this['_vertexFormat']['color']) { + throw new Cesium['DeveloperError'](doj(0x18f)); + } + this['id'] = byZ['id']; + this['position'] = Cesium['defined'](byZ['position']) ? byZ['position'] : undefined; + this['normal'] = Cesium['defined'](byZ['normal']) ? byZ['normal'] : undefined; + this['st'] = Cesium['defined'](byZ['st']) ? byZ['st'] : undefined; + this['binormal'] = Cesium['defined'](byZ['binormal']) ? byZ['binormal'] : undefined; + this['tangent'] = Cesium['defined'](byZ['tangent']) ? byZ['tangent'] : undefined; + this['color'] = Cesium['defined'](byZ['color']) ? byZ[dol(0xcd6)] : undefined; + } + ;var bz0 = function(bz1) { + if (!Cesium['defined'](bz1)) { + throw new Cesium['DeveloperError']('o' + doo(0x5ee) + '.'); + } + if (!Cesium['defined'](bz1['vertices']) || bz1[dol(0xcd7)]['length'] !== 0x3) { + throw new Cesium[(dol(0xcd8))](doj(0x190)); + } + this['id'] = bz1['id']; + this['vertices'] = Cesium['defined'](bz1['vertices']) ? bz1['vertices'] : undefined; + this['_vertexFormat'] = Cesium[dol(0xcd9)]['clone'](Cesium['defaultValue'](bz1['vertexFormat'], Cesium['VertexFormat']['POSITION_AND_COLOR'])); + }; + var bz2 = []; + function bz3(bz4, bz5, bz6) { + var bz7 = Cesium['EllipsoidTangentPlane']['fromPoints'](bz5, bz4); + var bz8 = bz7['projectPointsOntoPlane'](bz5, bz2); + var bz9 = Cesium['PolygonPipeline']['computeWindingOrder2D'](bz8); + if (bz9 === Cesium['WindingOrder'][dol(0xcda)]) { + bz8['reverse'](); + bz5['reverse'](); + bz6['reverse'](); + } + var bza = Cesium['PolygonPipeline']['triangulate'](bz8); + if (bza[dol(0xcdb)] < 0x3) { + bza = [0x0, 0x1, 0x2]; + } + var bzb; + var bzc = bz5['length']; + var bzd = new Array(bzc * 0x3); + var bze = new Uint8Array(bzc * 0x4); + var bzf = 0x0; + var bzg = 0x0; + for (var bzh = 0x0; bzh < bzc; bzh++) { + var bzi = bz5[bzh]; + var bzj = bz6[bzh]; + bzd[bzf++] = bzi['x']; + bzd[bzf++] = bzi['y']; + bzd[bzf++] = bzi['z']; + bze[bzg++] = Cesium['Color']['floatToByte'](bzj['red']); + bze[bzg++] = Cesium['Color']['floatToByte'](bzj['green']); + bze[bzg++] = Cesium['Color']['floatToByte'](bzj['blue']); + bze[bzg++] = Cesium['Color']['floatToByte'](bzj['alpha']); + } + bzb = new Cesium['Geometry']({ + 'attributes': { + 'position': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['DOUBLE'], + 'componentsPerAttribute': 0x3, + 'values': bzd + }), + 'color': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['UNSIGNED_BYTE'], + 'componentsPerAttribute': 0x4, + 'values': bze, + 'normalize': !![] + }) + }, + 'indices': bza, + 'primitiveType': Cesium['PrimitiveType']['TRIANGLES'] + }); + return new Cesium['GeometryInstance']({ + 'geometry': bzb + }); + } + var bzk = function(bzl) { + if (!Cesium['defined'](bzl)) { + throw new Cesium['DeveloperError']('o' + doo(0x5ef) + '.'); + } + if (!Cesium['defined'](bzl['positions']) && !Cesium['defined'](bzl['triangles'])) { + throw new Cesium['DeveloperError'](doj(0x191)); + } + if (Cesium['defined'](bzl['positions']) && (bzl['positions']['length'] <= 0x3 || bzl[dol(0xcdc)]['length'] % 0x3 === 0x0)) { + throw new Cesium['DeveloperError'](doj(0x192)); + } + if (Cesium['defined'](bzl['colors']) && bzl[dol(0xcdd)]['length'] === bzl['positions'][dol(0xcde)]) { + throw new Cesium['DeveloperError'](doj(0x193)); + } + var bzm = Cesium['defaultValue'](bzl['ellipsoid'], Cesium['Ellipsoid']['WGS84']); + var bzn = Cesium[dol(0xcdf)]['clone'](Cesium['defaultValue'](bzl['vertexFormat'], Cesium['VertexFormat'][dol(0xce0)])); + var bzo = Cesium['defined'](bzl['positions']) ? bzl['positions'] : []; + var bzp = Cesium['defined'](bzl['colors']) ? bzl['colors'] : []; + var bzq = Cesium['defined'](bzl['triangles']) ? bzl['triangles'] : []; + var bzr; + var bzs = []; + for (var bzr = 0x0; bzr < bzo['length']; bzr += 0x3) { + bzs[dol(0xce1)]({ + 'positions': [bzo[bzr], bzo[bzr + 0x1], bzo[bzr + 0x2]], + 'colors': [bzp[bzr], bzp[bzr + 0x1], bzp[bzr + 0x2]] + }); + } + for (var bzr = 0x0; bzr < bzq['length']; bzr++) { + bzo = []; + bzp = []; + for (var bzv = 0x0; bzv < 0x3; bzv++) { + bzo['push'](bzq[bzr]['vertices'][bzv]['position']); + bzp['push'](bzq[bzr]['vertices'][bzv]['color']); + } + bzs['push']({ + 'positions': bzo, + 'colors': bzp + }); + } + this['_positions'] = bzo; + this['_colors'] = bzp; + this['_ellipsoid'] = bzm; + this['_vertexFormat'] = bzn; + this['_triangles'] = bzs; + this['_granularity'] = Cesium['defaultValue'](bzl['granularity'], Cesium['Math']['RADIANS_PER_DEGREE']); + }; + bzk['createGeometry'] = function(bzk) { + var bzx = bzk['_vertexFormat']; + var bzy = bzk[dol(0xce2)]; + var bzz = bzk[dol(0xce3)]; + var bzA = []; + var bzB = ![]; + var bzC; + var bzD; + for (var bzD = 0x0; bzD < bzz['length']; bzD++) { + bzC = bz3(bzy, bzz[bzD]['positions'], bzz[bzD]['colors']); + bzC['geometry'] = Cesium[dol(0xce4)]['scaleToGeodeticHeight'](bzC['geometry'], 0x0, bzy, !bzB); + bzA['push'](bzC); + } + bzC = Cesium['GeometryPipeline']['combineInstances'](bzA)[0x0]; + bzC['attributes']['position'][dol(0xce5)] = new Float64Array(bzC['attributes']['position']['values']); + bzC['indices'] = Cesium['IndexDatatype'][dol(0xce6)](bzC['attributes']['position']['values']['length'] / 0x3, bzC['indices']); + var bzF = bzC['attributes']; + var bzG = Cesium['BoundingSphere']['fromVertices'](bzF['position']['values']); + if (!bzx['position']) { + delete bzF['position']; + } + return new Cesium[(dol(0xce7))]({ + 'attributes': bzF, + 'indices': bzC['indices'], + 'primitiveType': bzC['primitiveType'], + 'boundingSphere': bzG + }); + } + ; + var bzH = doj(0x194); + var bzI = doj(0x195); + var bzJ = bzH; + var bzK = bzI; + var bzL = function(bzM) { + bzM = Cesium['defaultValue'](bzM, Cesium['defaultValue']['EMPTY_OBJECT']); + var bzN = Cesium['defaultValue'](bzM['translucent'], !![]); + var bzO = ![]; + var bzP = bzL['VERTEX_FORMAT']; + this['material'] = undefined; + this['translucent'] = bzN; + this['_vertexShaderSource'] = Cesium['defaultValue'](bzM['vertexShaderSource'], bzJ); + this['_fragmentShaderSource'] = Cesium[dol(0xce8)](bzM['fragmentShaderSource'], bzK); + this['_renderState'] = Cesium['Appearance']['getDefaultRenderState'](bzN, bzO, bzM['renderState']); + this['_closed'] = bzO; + this['_vertexFormat'] = bzP; + }; + Object['defineProperties'](bzL['prototype'], { + 'vertexShaderSource': { + 'get': function() { + return this['_vertexShaderSource']; + } + }, + 'fragmentShaderSource': { + 'get': function() { + return this['_fragmentShaderSource']; + } + }, + 'renderState': { + 'get': function() { + return this['_renderState']; + } + }, + 'closed': { + 'get': function() { + return this['_closed']; + } + }, + 'vertexFormat': { + 'get': function() { + return this['_vertexFormat']; + } + } + }); + bzL['VERTEX_FORMAT'] = Cesium['VertexFormat'][dol(0xce9)]; + bzL['prototype']['getFragmentShaderSource'] = Cesium['Appearance']['prototype']['getFragmentShaderSource']; + bzL['prototype']['isTranslucent'] = Cesium['Appearance']['prototype']['isTranslucent']; + bzL['prototype'][dol(0xcea)] = Cesium['Appearance']['prototype']['getRenderState']; + byx['GradientFacePrimitiveNew'] = byO; + } + , function(bzQ, bzR, bzS) { + 'u' + doo(0x5f0) + 't'; + Object['defineProperty'](bzR, '_' + doo(0x5f1) + 'e', { + 'value': !![] + }); + bzR['PrimitiveTextureProperty'] = undefined; + var bzT = bzS(0x0); + var bzU = bzX(bzT); + var bzV = bzS(0x1); + var bzW = bzV[dol(0xceb)]['getBaseUrl'](); + function bzX(bzY) { + return { + 'default': bzY + }; + } + var bzZ; + var bA0; + var bA1; + var bA2; + var bA3 = []; + var bA4 = new Date()['getTime'](); + var bA5 = 0x2710; + function bA6(bA7) { + bA2 = bA7['viewer']; + bzZ = bAr(); + bA0 = bAs(); + bA1 = bAt(); + this['url'] = bA7['url'] ? bA7['url'] : bzW + doj(0x196); + this['speed'] = bA7['speed'] ? bA7['speed'] : 0x1; + this['repeat'] = bA7['repeat'] ? bA7['repeat'] : 0x1; + bA3 = []; + if (bA7['cartesians']['length'] == 0x4) { + bA3['push'](bA7['cartesians'][0x3]); + bA3['push'](bA7['cartesians'][0x2]); + bA3['push'](bA7['cartesians'][0x1]); + bA3['push'](bA7[dol(0xcec)][0x1]); + bA3['push'](bA7['cartesians'][0x0]); + bA3['push'](bA7['cartesians'][0x3]); + var bA8 = Cesium['Cartesian3']['distance'](bA3[0x4], bA3[0x0]); + this['repeat'] = bA8 / 0xa; + } + if (bA3 && bA3['length'] >= 0x3) { + var bA9 = []; + var bAa = []; + var bAb = []; + for (var bAc = 0x0; bAc < bA3['length']; bAc++) { + bA9['push'](bA3[bAc]['x']); + bA9['push'](bA3[bAc]['y']); + bA9['push'](bA3[bAc]['z']); + } + for (var bAc = 0x0; bAc < bA3['length']; bAc += 0x3) { + bAb['push'](bAc); + bAb['push'](bAc + 0x1); + bAb['push'](bAc + 0x2); + } + bAa = [0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x1, 0x0, 0x1]; + this['positionArr'] = new Float64Array(bA9); + this['sts'] = new Uint8Array(bAa); + this['indiceArr'] = new Uint16Array(bAb); + } + this['geometry'] = bAg(this['positionArr'], this['sts'], this['indiceArr']); + this['appearance'] = bAk(bA0, bzZ, bA1, this['url'], this['repeat']); + var bAe = new Cesium['Primitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'geometry': this['geometry'], + 'id': bA7['id'] + }), + 'appearance': this['appearance'], + 'asynchronous': ![] + }); + this['primitive'] = bA2['scene']['primitives']['add'](bAe); + var bAf = this; + setInterval(function() { + bAe['appearance']['material']['uniforms']['image'] = bAf['url']; + bAe['appearance']['material']['uniforms']['repeat'] = bAf['repeat']; + bAe['appearance'][dol(0xced)][dol(0xcee)]['time'] = (new Date()['getTime']() - bA4) % bA5 / bA5 * bAf[dol(0xcef)]; + }, 0xa); + } + function bAg(bAh, bAi, bAj) { + return new Cesium['Geometry']({ + 'attributes': { + 'position': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['DOUBLE'], + 'componentsPerAttribute': 0x3, + 'values': bAh + }), + 'st': new Cesium['GeometryAttribute']({ + 'componentDatatype': Cesium['ComponentDatatype']['FLOAT'], + 'componentsPerAttribute': 0x2, + 'values': bAi + }) + }, + 'indices': bAj, + 'primitiveType': Cesium['PrimitiveType']['TRIANGLES'], + 'boundingSphere': Cesium['BoundingSphere']['fromVertices'](bAh) + }); + } + function bAk(bAl, bAm, bAn, bAo, bAp) { + var bAq = new Cesium['Appearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'uniforms': { + 'image': bAo, + 'repeat': bAp, + 'time': 0x0 + }, + 'source': bAn + } + }), + 'aboveGround': ![], + 'faceForward': !![], + 'flat': !![], + 'translucent': ![], + 'renderState': { + 'blending': Cesium['BlendingState']['PRE_MULTIPLIED_ALPHA_BLEND'], + 'depthTest': { + 'enabled': !![] + }, + 'depthMask': !![] + }, + 'fragmentShaderSource': bAl, + 'vertexShaderSource': bAm + }); + return bAq; + } + function bAr() { + return 'attribute\x20vec3\x20position3DHigh;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20position3DLow;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20float\x20batchId;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec2\x20v_st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20p\x20=\x20czm_computePosition();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_st\x20=\x20st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20p;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}'; + } + ;function bAs() { + return 'varying\x20vec2\x20v_st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_materialInput\x20materialInput;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getMaterial(materialInput,\x20v_st);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color\x20=\x20vec4(material.diffuse\x20+\x20material.emission,\x20material.alpha);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(color.x\x20==\x201.0\x20&&\x20color.y\x20==\x201.0\x20&&\x20color.z\x20==\x201.0\x20&&\x20color.w\x20==\x201.0)\x20color\x20=\x20vec4(vec3(0.0,\x200.0,\x200.0),\x200.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20color;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20'; + } + ;function bAt() { + return 'czm_material\x20czm_getMaterial(czm_materialInput\x20materialInput,vec2\x20v_st)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20st\x20=\x20\x20v_st;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20colorImage\x20=\x20texture2D(image,\x20vec2(fract(st.s*repeat-time),\x20st.t));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.alpha\x20=\x20colorImage.a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.diffuse\x20=\x20colorImage.rgb;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20material;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}'; + } + ;bA6['prototype']['remove'] = function() { + if (this['primitive'] != null) { + bA2['scene']['primitives']['remove'](this['primitive']); + this['positionArr'] = null; + this['colorArr'] = null; + this['indiceArr'] = null; + this['geometry'] = null; + this['appearance'] = null; + this['primitive'] = null; + } + } + ; + bzR['PrimitiveTextureProperty'] = bA6; + } + , function(bAu, bAv, bAw) { + 'u' + doo(0x5f2) + 't'; + Object['defineProperty'](bAv, '_' + doo(0x5f3) + 'e', { + 'value': !![] + }); + bAv['PolygonFlowMaterialProperty'] = undefined; + var bAx = bAw(0x0); + var bAy = bAB(bAx); + var bAz = bAw(0x1); + var bAA = bAz['util'][dol(0xcf0)](); + function bAB(bAC) { + return { + 'default': bAC + }; + } + var bAD = bAy['default']['Color']; + var bAE = bAy['default']['defaultValue']; + var bAF = bAy[dol(0xcf1)]['defined']; + var bAG = bAy['default'][dol(0xcf2)]; + var bAH = bAy['default']['Event']; + var bAI = bAy['default']['createPropertyDescriptor']; + var bAJ = bAy['default'][dol(0xcf3)]; + var bAK = bAy['default']['Material']; + var bAL = bAD['WHITE']; + function bAM(bAN) { + bAN = bAE(bAN, bAE[dol(0xcf4)]); + this['_definitionChanged'] = new bAH(); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = bAN['color']; + this['image'] = bAN['image']; + this['speed'] = bAN['speed'] || 0x1; + this['duration'] = bAN['duration'] || 0x3e8; + this['repeat'] = bAN['repeat'] || 0x1; + this['_time'] = new Date()['getTime'](); + } + Object['defineProperties'](bAM['prototype'], { + 'isConstant': { + 'get': function() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function() { + return this['_definitionChanged']; + } + }, + 'color': Cesium['createPropertyDescriptor']('c' + doo(0x5f4) + 'r') + }); + bAM[dol(0xcf5)]['getType'] = function(bAO) { + return bAK['PolylineFlowType']; + } + ; + bAM['prototype']['getValue'] = function(bAP, bAQ) { + if (!Cesium['defined'](bAQ)) { + bAQ = {}; + } + bAQ['color'] = Cesium[dol(0xcf6)]['getValueOrClonedDefault'](this['_color'], bAP, Cesium['Color'][dol(0xcf7)], bAQ['color']); + bAQ['image'] = Cesium['defined'](this['image']) ? this['image'] : Cesium['Material']['PolygonFlowImage']; + bAQ['time'] = (new Date()['getTime']() - this['_time']) % this['duration'] / this['duration'] * this['speed']; + bAQ['repeat'] = this['repeat']; + return bAQ; + } + ; + bAM['prototype'][dol(0xcf8)] = function(bAR) { + return this === bAR || bAR instanceof bAM && Cesium['Property'][dol(0xcf9)](this['_color'], bAR[dol(0xcfa)]); + } + ; + bAv['PolygonFlowMaterialProperty'] = bAM; + } + ]); + })); + (function(bAS) { + 'u' + doo(0x5f5) + 't'; + function bAT() { + var bAU = { + 'defaults': { + 'useEntitiesIfAvailable': !![], + 'minCanvasSize': 0x2bc, + 'maxCanvasSize': 0x7d0, + 'radiusFactor': 0x14, + 'spacingFactor': 0.01, + 'maxOpacity': 0.99, + 'minOpacity': 0.1, + 'blur': 0.85, + 'gradient': getTemperatureGradientColors() + } + }; + bAU[dol(0xcfb)] = function(bAV, bAW, bAX) { + var bAY = new CHInstance(bAV,bAW,bAX); + return bAY; + } + ; + bAU['_getContainer'] = function(bAZ, bB0, bB1) { + var bB2 = document['createElement'](doh(0x94)); + if (bB1) { + bB2['setAttribute'](doh(0x95), bB1); + } + bB2['setAttribute']('s' + doo(0x5f6) + 'e', 'w' + doo(0x5f7) + '\x20' + bAZ + ('p' + doo(0x5f8) + '\x20') + bB0 + doj(0x197)); + document['body']['appendChild'](bB2); + return bB2; + } + ; + bAU['_getImageryProvider'] = function(bB3) { + var bB4 = bB3['_heatmap']['getDataURL'](); + var bB5 = new Cesium['SingleTileImageryProvider']({ + 'url': bB4, + 'rectangle': bB3['_rectangle'] + }); + bB5['_tilingScheme'] = new Cesium['WebMercatorTilingScheme']({ + 'rectangleSouthwestInMeters': new Cesium['Cartesian2'](bB3['_mbounds']['west'],bB3['_mbounds']['south']), + 'rectangleNortheastInMeters': new Cesium['Cartesian2'](bB3['_mbounds']['east'],bB3[dol(0xcfc)]['north']) + }); + return bB5; + } + ; + bAU['_getID'] = function(bB6) { + var bB7 = ''; + var bB8 = doj(0x198); + for (var bB9 = 0x0; bB9 < (bB6 ? bB6 : 0x8); bB9++) + bB7 += bB8['charAt'](Math[dol(0xcfd)](Math['random']() * bB8['length'])); + return bB7; + } + ; + var bBa = new Cesium['WebMercatorProjection'](); + bAU['wgs84ToMercator'] = function(bBb) { + var bBc = bBa['project'](Cesium[dol(0xcfe)]['fromDegrees'](bBb['x'], bBb['y'])); + return { + 'x': bBc['x'], + 'y': bBc['y'] + }; + } + ; + bAU['wgs84ToMercatorXYZ'] = function(bBd) { + var bBe = bBa[dol(0xcff)](Cesium['Cartographic'][dol(0xd00)](bBd['x'], bBd['y'], bBd['z'])); + return { + 'x': bBe['x'], + 'y': bBe['z'] + }; + } + ; + bAU['wgs84ToMercatorBB'] = function(bBf) { + var bBg = bBa['project'](Cesium['Cartographic']['fromDegrees'](bBf['west'], bBf['south'])); + var bBh = bBa['project'](Cesium['Cartographic']['fromDegrees'](bBf['east'], bBf['north'])); + return { + 'north': bBh['y'], + 'east': bBh['x'], + 'south': bBg['y'], + 'west': bBg['x'] + }; + } + ; + bAU['wgs84ToMercatorPointBB'] = function(bBi) { + var bBj = bBa['project'](Cesium['Cartographic']['fromDegrees'](bBi[0x1]['x'], bBi[0x1]['y'])); + var bBk = bBa[dol(0xd01)](Cesium['Cartographic']['fromDegrees'](bBi[0x0]['x'], bBi[0x0]['y'])); + var bBl = Cesium[dol(0xd02)]['subtract'](bBj, bBk, new Cesium['Cartesian3']()); + if (Math['abs'](bBl['x']) > Math['abs'](bBl['y'])) { + return Math['abs'](bBl['x']); + } else { + return Math['abs'](bBl['y']); + } + } + ; + bAU['mercatorToWgs84'] = function(bBm) { + var bBn = bBa['unproject'](new Cesium['Cartesian3'](bBm['x'],bBm['y'])); + return { + 'x': bBn['longitude'], + 'y': bBn['latitude'] + }; + } + ; + bAU['mercatorToWgs84BB'] = function(bBo) { + var bBp = bBa['unproject'](new Cesium['Cartesian3'](bBo[dol(0xd03)],bBo['south'])); + var bBq = bBa[dol(0xd04)](new Cesium['Cartesian3'](bBo['east'],bBo['north'])); + return { + 'north': this['rad2deg'](bBq['latitude']), + 'east': this['rad2deg'](bBq['longitude']), + 'south': this['rad2deg'](bBp['latitude']), + 'west': this['rad2deg'](bBp['longitude']) + }; + } + ; + bAU['deg2rad'] = function(bBr) { + var bBs = bBr * (Math['PI'] / 0xb4); + return bBs; + } + ; + bAU['rad2deg'] = function(bBt) { + var bBu = bBt / (Math[dol(0xd05)] / 0xb4); + return bBu; + } + ; + return bAU; + } + if (typeof CesiumHeatmap === 'u' + doo(0x5f9) + 'd') { + bAS['CesiumHeatmap'] = bAT(); + } else { + console['log'](doj(0x199)); + } + }(window)); + CHInstance['prototype']['remove'] = function(bBv) { + this['_cesium']['entities']['removeById'](bBv); + } + ; + CHInstance['prototype']['wgs84PointToHeatmapPoint'] = function(bBw) { + return this['mercatorPointToHeatmapPoint'](CesiumHeatmap['wgs84ToMercator'](bBw)); + } + ; + CHInstance['prototype']['mercatorPointToHeatmapPoint'] = function(bBx) { + var bBy = {}; + bBy['x'] = Math['round']((bBx['x'] - this['_xoffset']) / this['_factor'] + this['_spacing']); + bBy['y'] = Math['round']((bBx['y'] - this['_yoffset']) / this['_factor'] + this['_spacing']); + bBy['y'] = this['height'] - bBy['y']; + return bBy; + } + ; + CHInstance['prototype'][dol(0xd06)] = function(bBz) { + var bBA = {}; + bBA['x'] = Math['round']((bBz['x'] - this['_xoffset']) / this['_factor'] + this['_spacing']); + bBA['y'] = Math['round'](bBz['y'] / this['_factor'] + this['_spacing']); + return bBA; + } + ; + CHInstance['prototype']['_setWidthAndHeight'] = function(bBB) { + this['width'] = bBB['east'] > 0x0 && bBB['west'] < 0x0 ? bBB['east'] + Math['abs'](bBB['west']) : Math['abs'](bBB['east'] - bBB['west']); + this['height'] = bBB['north'] > 0x0 && bBB['south'] < 0x0 ? bBB['north'] + Math['abs'](bBB[dol(0xd07)]) : Math['abs'](bBB['north'] - bBB['south']); + this['_factor'] = 0x1; + if (this['width'] > this['height'] && this['width'] > CesiumHeatmap['defaults']['maxCanvasSize']) { + this['_factor'] = this['width'] / CesiumHeatmap['defaults']['maxCanvasSize']; + if (this['height'] / this['_factor'] < CesiumHeatmap['defaults']['minCanvasSize']) { + this['_factor'] = this['height'] / CesiumHeatmap['defaults']['minCanvasSize']; + } + } else if (this['height'] > this['width'] && this['height'] > CesiumHeatmap['defaults']['maxCanvasSize']) { + this['_factor'] = this['height'] / CesiumHeatmap['defaults']['maxCanvasSize']; + if (this['width'] / this['_factor'] < CesiumHeatmap[dol(0xd08)][dol(0xd09)]) { + this['_factor'] = this['width'] / CesiumHeatmap['defaults']['minCanvasSize']; + } + } else if (this['width'] < this['height'] && this['width'] < CesiumHeatmap['defaults']['minCanvasSize']) { + this['_factor'] = this['width'] / CesiumHeatmap['defaults']['minCanvasSize']; + if (this['height'] / this['_factor'] > CesiumHeatmap['defaults']['maxCanvasSize']) { + this['_factor'] = this['height'] / CesiumHeatmap['defaults']['maxCanvasSize']; + } + } else if (this['height'] < this['width'] && this['height'] < CesiumHeatmap['defaults']['minCanvasSize']) { + this['_factor'] = this['height'] / CesiumHeatmap['defaults']['minCanvasSize']; + if (this['width'] / this['_factor'] > CesiumHeatmap['defaults'][dol(0xd0a)]) { + this['_factor'] = this['width'] / CesiumHeatmap['defaults']['maxCanvasSize']; + } + } + this['width'] = this['width'] / this['_factor']; + this['height'] = this['height'] / this['_factor']; + } + ; + CHInstance['prototype']['setData'] = function(bBC, bBD, bBE) { + if (bBE && bBE['length'] > 0x0 && bBC !== null && bBC !== ![] && bBD !== null && bBD !== ![]) { + this['_heatmap']['setData']({ + 'min': bBC, + 'max': bBD, + 'data': bBE + }); + this['updateLayer'](); + return !![]; + } + return ![]; + } + ; + CHInstance['prototype']['setWGS84Data'] = function(bBF, bBG, bBH) { + if (bBH && bBH['length'] > 0x0 && bBF !== null && bBF !== ![] && bBG !== null && bBG !== ![]) { + var bBI = []; + for (var bBJ = 0x0; bBJ < bBH['length']; bBJ++) { + var bBK = bBH[bBJ]; + var bBL = this['wgs84PointToHeatmapPoint'](bBK); + if (bBK['value'] || bBK['value'] === 0x0) { + bBL[dol(0xd0b)] = Calculation(bBK['value'], bBF, bBG); + } + bBI['push'](bBL); + } + bBF = 0.001; + bBG = 0x1; + return this['setData'](bBF, bBG, bBI); + } + return ![]; + } + ; + CHInstance['prototype']['show'] = function(bBM) { + if (this['_layer']) { + this['_layer']['show'] = bBM; + } + } + ; + CHInstance['prototype']['updateLayer'] = function() { + if (CesiumHeatmap['defaults']['useEntitiesIfAvailable'] && this['_cesium']['entities']) { + if (this['_layer']) { + this['_cesium']['entities']['remove'](this['_layer']); + } + material = new Cesium['ImageMaterialProperty']({ + 'image': this['_heatmap']['_renderer']['canvas'] + }); + if (Cesium['VERSION'] >= '1' + doo(0x5fa) + '1') { + material['transparent'] = !![]; + } else if (Cesium['VERSION'] >= '1' + doo(0x5fb) + '6') { + material['alpha'] = 0.99; + } + this['_layer'] = this['_cesium']['entities']['add']({ + 'id': this['_id'], + 'show': !![], + 'polygon': { + 'hierarchy': { + 'positions': this['polygonbounds'] + }, + 'height': this['polygonheight'], + 'material': material, + 'classificationType': this['classificationType'] + } + }); + } else { + if (this['_layer']) { + this['_cesium']['scene']['imageryLayers']['remove'](this['_layer']); + } + this['_layer'] = this['_cesium']['scene'][dol(0xd0c)]['addImageryProvider'](CesiumHeatmap['_getImageryProvider'](this)); + } + } + ; + CHInstance['prototype']['createColorPalette'] = function(bBN, bBO, bBP, bBQ, bBR, bBS, bBT, bBU) { + var bBV = ''; + var bBW = bBU < bBQ ? bBU : bBQ; + var bBX = bBQ; + var bBY = bBP; + var bBZ = bBW; + var bC0 = bBY; + var bC1 = 0x5; + bBR = (bBZ - bC0) / bC1; + var bC2 = 0xc6 / bC1; + for (let bC3 = bC1; bC3 >= 0x0; bC3--) { + var bC4 = (bBZ - bC3 * bBR)['toFixed'](0x2); + if (bC3 == 0x0) { + bBV += '<' + doo(0x5fc) + ':' + bC2 * bC3 + ('p' + doo(0x5fd) + '\x20') + bC4 + ('\x20' + doo(0x5fe) + ':') + bBQ + (')' + doo(0x5ff) + '>'); + } else if (bC3 == 0x5) { + bBV += '<' + doo(0x600) + ':' + bC2 * bC3 + ('p' + doo(0x601) + '\x20') + bC4 + ('\x20' + doo(0x602) + ':') + bBP + (')' + doo(0x603) + '>'); + } else { + bBV += '<' + doo(0x604) + ':' + bC2 * bC3 + ('p' + doo(0x605) + '\x20') + bC4 + ('<' + doo(0x606) + '>'); + } + } + var bC5 = '#' + doo(0x607) + '0'; + var bC6 = '#' + doo(0x608) + '0'; + var bC7 = getTemperatureGradientColors(); + bBS = bBS ? bBS : bC7; + var bC8 = bBT ? bBT : doj(0x19a); + var bC9 = doj(0x19b) + bBN + doh(0x96) + bC8 + doj(0x19c) + bC5 + doj(0x19d) + bC6 + doj(0x19e) + bBN + doj(0x19f) + bBO + doj(0x1a0) + bBN + doj(0x1a1) + bBV + ('<' + doo(0x609) + '\x20'); + var bCa = 'c' + doo(0x60a) + '_' + bBN; + var bCb = document['getElementById'](bCa); + if (!bCb) { + bCb = document['createElement'](doh(0x97)); + bCb['id'] = bCa; + bCb['className'] = 'l' + doo(0x60b) + 'e'; + document['getElementById'](api['defaults']['container'])['appendChild'](bCb); + } + bCb['innerHTML'] = bC9; + var bCc = document['getElementById']('g' + doo(0x60c) + 's'); + if (!bCc) { + bCc = document['createElement']('c' + doo(0x60d) + 's'); + bCc['id'] = 'g' + doo(0x60e) + 's'; + bCc[dol(0xd0d)] = 0x14; + bCc['height'] = 0xc8; + } + var bCd = bCc[dol(0xd0e)](doh(0x98)); + var bCe = bCd['createLinearGradient'](0x0, 0x0, 0x0, 0xc8); + var bCf = []; + for (var bCg in bBS) { + bCf[dol(0xd0f)](bCg); + } + bCf['sort']()['reverse'](); + for (let bCh = 0x0; bCh < bCf['length']; bCh++) { + var bCg = bCf[bCh]; + bCe[dol(0xd10)](bCf[bCf['length'] - bCh - 0x1], bBS[bCg]); + } + bCd['fillStyle'] = bCe; + bCd['fillRect'](0x0, 0x0, 0x14, 0xc8); + var bCj = document['getElementById']('g' + doo(0x60f) + 'r' + bBN); + if (bCj) + bCj['src'] = bCc['toDataURL'](); + return bC9; + } + ; + CHInstance['prototype']['temperature2ColorLast'] = function(bCk, bCl, bCm) { + if (!bCk || !bCl || !bCm) + return; + if (bCl <= bCm) + return; + if (bCk >= bCl) + return [0x1, 0x0, 0x0]; + if (bCk <= bCm) + return [0x0, 0x0, 0x1]; + var bCn = bCl - bCm; + var bCo = (bCk - bCm) / bCn; + var bCp = 0x0; + var bCq = 0x1 / 0x4; + if (bCo < bCq) { + bCp = (bCo - 0x0 * bCq) / bCq; + return [0x0, bCp, 0x1]; + } else if (bCq <= bCo && bCo < 0x2 * bCq) { + bCp = (bCo - 0x1 * bCq) / bCq; + return [0x0, 0x1, 0x1 - bCp]; + } else if (0x2 * bCq <= bCo && bCo < 0x3 * bCq) { + bCp = (bCo - 0x2 * bCq) / bCq; + return [bCp, 0x1, 0x0]; + } else if (0x3 * bCq <= bCo) { + bCp = (bCo - 0x3 * bCq) / bCq; + return [0x1, 0x1 - bCp, 0x0]; + } + } + ; + !function(bCr, bCs) { + 'o' + doo(0x610) + 't' == typeof exports && 'o' + doo(0x611) + 't' == typeof module ? module['exports'] = bCs(require('C' + doo(0x612) + 'm')) : 'f' + doo(0x613) + 'n' == typeof define && define[dol(0xd11)] ? define(['C' + doo(0x614) + 'm'], bCs) : 'o' + doo(0x615) + 't' == typeof exports ? exports['CesiumNavigation'] = bCs(require('C' + doo(0x616) + 'm')) : bCr['CesiumNavigation'] = bCs(bCr['Cesium']); + }(self, function(bCt) { + return ( () => { + var bCu = { + 705: bCt => { + 'u' + doo(0x617) + 't'; + bCt[dol(0xd12)] = function(bCt) { + var bCu = []; + return bCu['toString'] = function() { + return this['map'](function(bCu) { + var bCv = '' + , bCB = void 0x0 !== bCu[0x5]; + return bCu[0x4] && (bCv += ('@' + doo(0x618) + '(')['concat'](bCu[0x4], doh(0x99))), + bCu[0x2] && (bCv += ('@' + doo(0x619) + '\x20')['concat'](bCu[0x2], doh(0x9a))), + bCB && (bCv += ('@' + doo(0x61a) + 'r')['concat'](bCu[0x5]['length'] > 0x0 ? '\x20'['concat'](bCu[0x5]) : '', doh(0x9b))), + bCv += bCt(bCu), + bCB && (bCv += '}'), + bCu[0x2] && (bCv += '}'), + bCu[0x4] && (bCv += '}'), + bCv; + })['join'](''); + } + , + bCu['i'] = function(bCt, bCv, bCE, bCF, bCG) { + 's' + doo(0x61b) + 'g' == typeof bCt && (bCt = [[null, bCt, void 0x0]]); + var q = {}; + if (bCE) + for (var bCI = 0x0; bCI < this['length']; bCI++) { + var bCJ = this[bCI][0x0]; + null != bCJ && (q[bCJ] = !0x0); + } + for (var bCK = 0x0; bCK < bCt['length']; bCK++) { + var bCL = []['concat'](bCt[bCK]); + bCE && q[bCL[0x0]] || (void 0x0 !== bCG && (void 0x0 === bCL[0x5] || (bCL[0x1] = ('@' + doo(0x61c) + 'r')['concat'](bCL[0x5]['length'] > 0x0 ? '\x20'['concat'](bCL[0x5]) : '', doh(0x9c))['concat'](bCL[0x1], '}')), + bCL[0x5] = bCG), + bCv && (bCL[0x2] ? (bCL[0x1] = ('@' + doo(0x61d) + '\x20')['concat'](bCL[0x2], doh(0x9d))['concat'](bCL[0x1], '}'), + bCL[0x2] = bCv) : bCL[0x2] = bCv), + bCF && (bCL[0x4] ? (bCL[0x1] = ('@' + doo(0x61e) + '(')['concat'](bCL[0x4], doh(0x9e))['concat'](bCL[0x1], '}'), + bCL[0x4] = bCF) : bCL[0x4] = ''['concat'](bCF)), + bCu['push'](bCL)); + } + } + , + bCu; + } + ; + } + , + 738: bCt => { + 'u' + doo(0x61f) + 't'; + bCt['exports'] = function(bCt) { + return bCt[0x1]; + } + ; + } + , + 314: (bCt, bCu, bCv) => { + 'u' + doo(0x620) + 't'; + bCv['r'](bCu), + bCv['d'](bCu, { + 'default': () => bCV + }); + var bCR = bCv(0x2e2) + , bCS = bCv['n'](bCR) + , bCT = bCv(0x2c1) + , q = bCv['n'](bCT)()(bCS()); + q[dol(0xd13)]([bCt[dol(0xd14)], doj(0x1a2), '']); + const bCV = q; + } + , + 984: (bCt, bCu, bCv) => { + var bCZ = bCv(0x17b) + , bD0 = bCv(0x13a); + 's' + doo(0x621) + 'g' == typeof (bD0 = bD0['__esModule'] ? bD0[dol(0xd15)] : bD0) && (bD0 = [[bCt['id'], bD0, '']]); + var bD1 = { + 'insert': 'h' + doo(0x622) + 'd', + 'singleton': !0x1 + }; + bCZ(bD0, bD1); + bCt[dol(0xd16)] = bD0[dol(0xd17)] || {}; + } + , + 379: (bCt, bCu, bCv) => { + 'u' + doo(0x623) + 't'; + var bD5, bD6 = function() { + return void 0x0 === bD5 && (bD5 = Boolean(window && document && document[dol(0xd18)] && !window['atob'])), + bD5; + }, bD7 = function() { + var bCt = {}; + return function(bCu) { + if (void 0x0 === bCt[bCu]) { + var bCv = document[dol(0xd19)](bCu); + if (window['HTMLIFrameElement'] && bCv instanceof window['HTMLIFrameElement']) + try { + bCv = bCv['contentDocument']['head']; + } catch (bDc) { + bCv = null; + } + bCt[bCu] = bCv; + } + return bCt[bCu]; + } + ; + }(), q = []; + function bDd(bCt) { + for (var bCu = -0x1, bCv = 0x0; bCv < q['length']; bCv++) + if (q[bCv]['identifier'] === bCt) { + bCu = bCv; + break; + } + return bCu; + } + function bDh(bCt, bCu) { + for (var bCv = {}, bD5 = [], bD6 = 0x0; bD6 < bCt['length']; bD6++) { + var bD7 = bCt[bD6] + , bDh = bCu['base'] ? bD7[0x0] + bCu['base'] : bD7[0x0] + , bDp = bCv[bDh] || 0x0 + , bDq = ''['concat'](bDh, '\x20')['concat'](bDp); + bCv[bDh] = bDp + 0x1; + var bDr = bDd(bDq) + , bDs = { + 'css': bD7[0x1], + 'media': bD7[0x2], + 'sourceMap': bD7[0x3] + }; + -0x1 !== bDr ? (q[bDr]['references']++, + q[bDr]['updater'](bDs)) : q['push']({ + 'identifier': bDq, + 'updater': bDV(bDs, bCu), + 'references': 0x1 + }), + bD5['push'](bDq); + } + return bD5; + } + function bDt(bCt) { + var bCu = document['createElement']('s' + doo(0x624) + 'e') + , bD5 = bCt['attributes'] || {}; + if (void 0x0 === bD5['nonce']) { + var bD6 = bCv['nc']; + bD6 && (bD5['nonce'] = bD6); + } + if (Object['keys'](bD5)['forEach'](function(bCt) { + bCu['setAttribute'](bCt, bD5[bCt]); + }), + 'f' + doo(0x625) + 'n' == typeof bCt['insert']) + bCt['insert'](bCu); + else { + var q = bD7(bCt['insert'] || 'h' + doo(0x626) + 'd'); + if (!q) + throw new Error(doj(0x1a3)); + q[dol(0xd1a)](bCu); + } + return bCu; + } + var bDA, bDB = (bDA = [], + function(bCt, bCu) { + return bDA[bCt] = bCu, + bDA['filter'](Boolean)[dol(0xd1b)]('\x0a'); + } + ); + function bDE(bCt, bCu, bCv, bD5) { + var bD6 = bCv ? '' : bD5[dol(0xd1c)] ? ('@' + doo(0x627) + '\x20')['concat'](bD5['media'], doh(0x9f))['concat'](bD5[dol(0xd1d)], '}') : bD5['css']; + if (bCt['styleSheet']) + bCt[dol(0xd1e)]['cssText'] = bDB(bCu, bD6); + else { + var bD7 = document[dol(0xd1f)](bD6) + , q = bCt['childNodes']; + q[bCu] && bCt['removeChild'](q[bCu]), + q['length'] ? bCt['insertBefore'](bD7, q[bCu]) : bCt['appendChild'](bD7); + } + } + function bDM(bCt, bCu, bCv) { + var bD5 = bCv['css'] + , bD6 = bCv['media'] + , bD7 = bCv['sourceMap']; + if (bD6 ? bCt['setAttribute']('m' + doo(0x628) + 'a', bD6) : bCt['removeAttribute']('m' + doo(0x629) + 'a'), + bD7 && 'u' + doo(0x62a) + 'd' != typeof btoa && (bD5 += doj(0x1a4)['concat'](btoa(unescape(encodeURIComponent(JSON['stringify'](bD7)))), doh(0xa0))), + bCt['styleSheet']) + bCt[dol(0xd20)]['cssText'] = bD5; + else { + for (; bCt['firstChild']; ) + bCt['removeChild'](bCt['firstChild']); + bCt['appendChild'](document[dol(0xd21)](bD5)); + } + } + var bDT = null + , bDU = 0x0; + function bDV(bCt, bCu) { + var bCv, bD5, bD6; + if (bCu['singleton']) { + var bD7 = bDU++; + bCv = bDT || (bDT = bDt(bCu)), + bD5 = bDE['bind'](null, bCv, bD7, !0x1), + bD6 = bDE['bind'](null, bCv, bD7, !0x0); + } else + bCv = bDt(bCu), + bD5 = bDM['bind'](null, bCv, bCu), + bD6 = function() { + !function(bCt) { + if (null === bCt['parentNode']) + return !0x1; + bCt[dol(0xd22)]['removeChild'](bCt); + }(bCv); + } + ; + return bD5(bCt), + function(bCu) { + if (bCu) { + if (bCu['css'] === bCt['css'] && bCu['media'] === bCt[dol(0xd23)] && bCu['sourceMap'] === bCt['sourceMap']) + return; + bD5(bCt = bCu); + } else + bD6(); + } + ; + } + bCt['exports'] = function(bCt, bCu) { + (bCu = bCu || {})['singleton'] || 'b' + doo(0x62b) + 'n' == typeof bCu['singleton'] || (bCu[dol(0xd24)] = bD6()); + var bCv = bDh(bCt = bCt || [], bCu); + return function(bCt) { + if (bCt = bCt || [], + '[' + doo(0x62c) + ']' === Object[dol(0xd25)]['toString'][dol(0xd26)](bCt)) { + for (var bD5 = 0x0; bD5 < bCv['length']; bD5++) { + var bD6 = bDd(bCv[bD5]); + q[bD6][dol(0xd27)]--; + } + for (var bD7 = bDh(bCt, bCu), bDt = 0x0; bDt < bCv['length']; bDt++) { + var bDA = bDd(bCv[bDt]); + 0x0 === q[bDA]['references'] && (q[bDA]['updater'](), + q['splice'](bDA, 0x1)); + } + bCv = bD7; + } + } + ; + } + ; + } + , + 89: bCu => { + 'u' + doo(0x62d) + 't'; + bCu['exports'] = bCt; + } + } + , bCv = {}; + function bEe(bCt) { + var bEg = bCv[bCt]; + if (void 0x0 !== bEg) + return bEg['exports']; + var bEh = bCv[bCt] = { + 'id': bCt, + 'exports': {} + }; + return bCu[bCt](bEh, bEh[dol(0xd28)], bEe), + bEh['exports']; + } + bEe['n'] = bCt => { + var bCu = bCt && bCt['__esModule'] ? () => bCt['default'] : () => bCt; + return bEe['d'](bCu, { + 'a': bCu + }), + bCu; + } + , + bEe['d'] = (bCt, bCu) => { + for (var bCv in bCu) + bEe['o'](bCu, bCv) && !bEe['o'](bCt, bCv) && Object['defineProperty'](bCt, bCv, { + 'enumerable': !0x0, + 'get': bCu[bCv] + }); + } + , + bEe['o'] = (bCt, bCu) => Object['prototype']['hasOwnProperty']['call'](bCt, bCu), + bEe['r'] = bCt => { + 'u' + doo(0x62e) + 'd' != typeof Symbol && Symbol['toStringTag'] && Object['defineProperty'](bCt, Symbol['toStringTag'], { + 'value': 'M' + doo(0x62f) + 'e' + }), + Object['defineProperty'](bCt, '_' + doo(0x630) + 'e', { + 'value': !0x0 + }); + } + ; + var bEq = {}; + return ( () => { + 'u' + doo(0x631) + 't'; + bEe['d'](bEq, { + 'default': () => bHM + }); + bEe(0x3d8); + var bCt = bEe(0x59); + const bCu = function(bCt) { + var bCu = document['createElement'](doh(0xa1)); + bCu['innerHTML'] = bCt; + for (var bCv = document['createDocumentFragment'](); bCu['firstChild']; ) + bCv['appendChild'](bCu['firstChild']); + return bCv; + }; + var bCv = bCt['knockout']; + const bEx = function(bEe, bEq, bEx) { + bEq = (0x0, + bCt['getElement'])(bEq); + var q, bEC = bCu(bEe), bED = []; + for (q = 0x0; q < bEC['childNodes']['length']; ++q) + bED['push'](bEC['childNodes'][q]); + for (bEq['appendChild'](bEC), + q = 0x0; q < bED['length']; ++q) { + var bEE = bED[q]; + 0x1 !== bEE['nodeType'] && 0x8 !== bEE['nodeType'] || bCv['applyBindings'](bEx, bEE); + } + return bED; + }; + var q = bCt[dol(0xd29)] + , bEG = function(bCu) { + if (!(0x0, + bCt['defined'])(bCu) || !(0x0, + bCt['defined'])(bCu['terria'])) + throw new bCt['DeveloperError'](doj(0x1a5)); + this['terria'] = bCu['terria'], + this['_removeSubscription'] = void 0x0, + this['_lastLegendUpdate'] = void 0x0, + this['eventHelper'] = new bCt['EventHelper'](), + this['distanceLabel'] = void 0x0, + this['barWidth'] = void 0x0, + this['enableDistanceLegend'] = !(0x0, + bCt[dol(0xd2a)])(bCu['enableDistanceLegend']) || bCu['enableDistanceLegend'], + q['track'](this, ['d' + doo(0x632) + 'l', 'b' + doo(0x633) + 'h']), + this['eventHelper']['add'](this['terria']['afterWidgetChanged'], function() { + (0x0, + bCt['defined'])(this['_removeSubscription']) && (this['_removeSubscription'](), + this['_removeSubscription'] = void 0x0); + }, this); + var bCv = this; + function bEe() { + if ((0x0, + bCt['defined'])(bCv['terria'])) { + var bCu = bCv['terria'][dol(0xd2b)]; + bCv['_removeSubscription'] = bCu['postRender']['addEventListener'](function() { + !function(bCu, bCv) { + if (!bCu['enableDistanceLegend']) + return bCu['barWidth'] = void 0x0, + void (bCu[dol(0xd2c)] = void 0x0); + var bEe = (0x0, + bCt['getTimestamp'])(); + if (bEe < bCu['_lastLegendUpdate'] + 0xfa) + return; + bCu['_lastLegendUpdate'] = bEe; + var bEq = bCv[dol(0xd2d)]['clientWidth'] + , bEx = bCv['canvas'][dol(0xd2e)] + , q = bCv['camera']['getPickRay'](new bCt['Cartesian2'](bEq / 0x2 | 0x0,bEx - 0x1)) + , bEG = bCv['camera'][dol(0xd2f)](new bCt[(dol(0xd30))](0x1 + bEq / 0x2 | 0x0,bEx - 0x1)) + , bES = bCv['globe'] + , bET = bES['pick'](q, bCv) + , bEU = bES['pick'](bEG, bCv); + if (!(0x0, + bCt['defined'])(bET) || !(0x0, + bCt['defined'])(bEU)) + return bCu['barWidth'] = void 0x0, + void (bCu['distanceLabel'] = void 0x0); + var bEV = bES['ellipsoid']['cartesianToCartographic'](bET) + , bEW = bES['ellipsoid']['cartesianToCartographic'](bEU); + bF6['setEndPoints'](bEV, bEW); + for (var bEX, bEY = bF6['surfaceDistance'], bEZ = 0x64, bF0 = bF7['length'] - 0x1; !(0x0, + bCt['defined'])(bEX) && bF0 >= 0x0; --bF0) + bF7[bF0] / bEY < bEZ && (bEX = bF7[bF0]); + if ((0x0, + bCt['defined'])(bEX)) { + var bF1; + bF1 = bEX >= 0x3e8 ? (bEX / 0x3e8)['toString']() + doh(0xa2) : bEX['toString']() + doh(0xa3), + bCu['barWidth'] = bEX / bEY | 0x0, + bCu['distanceLabel'] = bF1; + } else + bCu['barWidth'] = void 0x0, + bCu[dol(0xd31)] = void 0x0; + }(this, bCu); + }, bCv); + } + } + bEe(), + this['eventHelper']['add'](this['terria']['afterWidgetChanged'], function() { + bEe(); + }, this); + }; + bEG['prototype']['destroy'] = function() { + this['eventHelper']['removeAll'](); + } + , + bEG['prototype']['show'] = function(bCt) { + var bCu; + bCu = this['enableDistanceLegend'] ? doj(0x1a6) : doj(0x1a7), + bEx(bCu, bCt, this); + } + , + bEG['create'] = function(bCt) { + var bCu = new bEG(bCt); + return bCu[dol(0xd32)](bCt['container']), + bCu; + } + ; + var bF6 = new bCt[(dol(0xd33))]() + , bF7 = [0x1, 0x2, 0x3, 0x5, 0xa, 0x14, 0x1e, 0x32, 0x64, 0xc8, 0x12c, 0x1f4, 0x3e8, 0x7d0, 0xbb8, 0x1388, 0x2710, 0x4e20, 0x7530, 0xc350, 0x186a0, 0x30d40, 0x493e0, 0x7a120, 0xf4240, 0x1e8480, 0x2dc6c0, 0x4c4b40, 0x989680, 0x1312d00, 0x1c9c380, 0x2faf080]; + const bF8 = bEG; + const bF9 = doj(0x1a8); + var bFa = bCt['knockout'] + , bFb = function(bCu) { + if (!(0x0, + bCt['defined'])(bCu)) + throw new bCt['DeveloperError']('t' + doo(0x634) + 'd'); + this['_terria'] = bCu, + this['name'] = 'U' + doo(0x635) + 'l', + this['text'] = void 0x0, + this['svgIcon'] = void 0x0, + this['svgHeight'] = void 0x0, + this['svgWidth'] = void 0x0, + this['cssClass'] = void 0x0, + this['isActive'] = !0x1, + bFa['track'](this, ['n' + doo(0x636) + 'e', 's' + doo(0x637) + 'n', 's' + doo(0x638) + 't', 's' + doo(0x639) + 'h', 'c' + doo(0x63a) + 's', 'i' + doo(0x63b) + 'e']); + }; + Object['defineProperties'](bFb['prototype'], { + 'terria': { + 'get': function() { + return this['_terria']; + } + }, + 'hasText': { + 'get': function() { + return (0x0, + bCt['defined'])(this['text']) && 's' + doo(0x63c) + 'g' == typeof this['text']; + } + } + }), + bFb['prototype']['activate'] = function() { + throw new bCt['DeveloperError'](doj(0x1a9)); + } + ; + const bFd = bFb; + var bFe = function(bCt) { + bFd['apply'](this, arguments); + }; + bFe['prototype'] = Object['create'](bFd['prototype']); + const bFg = bFe; + var bFh = function(bCt) { + bFg['apply'](this, arguments), + this['name'] = bCt['options']['resetTooltip'] ? bCt['options']['resetTooltip'] : '重' + doo(0x63d) + '图', + this['navigationLocked'] = !0x1, + this['svgIcon'] = bCt['options']['resetSvg'] ? '' : bF9, + this['resetSvg'] = bCt['options']['resetSvg'], + this['svgHeight'] = 0xf, + this['svgWidth'] = 0xf, + this['cssClass'] = doj(0x1aa); + }; + (bFh['prototype'] = Object['create'](bFg['prototype']))['setNavigationLocked'] = function(bCt) { + this['navigationLocked'] = bCt; + } + , + bFh['prototype']['resetView'] = function() { + if (!this['navigationLocked']) { + var bCu = this['terria']['scene']; + if (bCu['screenSpaceCameraController']['enableInputs']) { + this['isActive'] = !0x0; + var bCv = bCu['camera']; + if ((0x0, + bCt['defined'])(this['terria']['trackedEntity'])) { + var bEe = this['terria']['trackedEntity']; + this['terria']['trackedEntity'] = void 0x0, + this['terria']['trackedEntity'] = bEe; + } else { + const bEe = this['terria']['options']['duration'] ? this['terria']['options']['duration'] : 0x3; + if (this['terria']['options']['defaultResetView']) { + const bEq = this['terria']['options']['orientation'] ? this['terria']['options']['orientation'] : { + 'heading': bCt[dol(0xd34)]['toRadians'](5.729578) + }; + if (this['terria'][dol(0xd35)]['defaultResetView'] && this['terria'][dol(0xd36)]['defaultResetView']instanceof bCt['Cartographic']) + bCv['flyTo']({ + 'destination': bCu[dol(0xd37)]['ellipsoid']['cartographicToCartesian'](this['terria']['options']['defaultResetView']), + 'orientation': bEq, + 'duration': bEe + }); + else if (this['terria']['options']['defaultResetView'] && this['terria']['options']['defaultResetView']instanceof bCt['Rectangle']) + try { + bCt['Rectangle']['validate'](this['terria']['options'][dol(0xd38)]), + bCv['flyTo']({ + 'destination': this['terria'][dol(0xd39)]['defaultResetView'], + 'orientation': bEq, + 'duration': bEe + }); + } catch (bFp) { + console['log'](doj(0x1ab)); + } + } else + 'f' + doo(0x63e) + 'n' == typeof bCv['flyHome'] ? bCv['flyHome'](0x1) : bCv[dol(0xd3a)]({ + 'destination': bCt['Camera']['DEFAULT_VIEW_RECTANGLE'], + 'duration': bEe + }); + } + this['isActive'] = !0x1; + } + } + } + , + bFh['prototype']['activate'] = function() { + this['resetView'](); + } + ; + const bFq = bFh; + var bFr = {} + , bFs = new bCt['Cartographic']() + , bFt = new bCt['Ray'](); + bFr[dol(0xd3b)] = function(bCu, bCv, bEe) { + var bEq = bCu['scene'] + , bEx = bEq['camera']; + if (bEq['mode'] !== bCt['SceneMode'][dol(0xd3c)] && ((0x0, + bCt['defined'])(bEe) || (bEe = new bCt['Cartesian3']()), + (0x0, + bCt[dol(0xd3d)])(bCu['trackedEntity']) ? bEe = bCu['trackedEntity']['position'][dol(0xd3e)](bCu['clock']['currentTime'], bEe) : (bFt['origin'] = bEx[dol(0xd3f)], + bFt['direction'] = bEx['directionWC'], + bEe = bEq['globe']['pick'](bFt, bEq, bEe)), + (0x0, + bCt['defined'])(bEe))) + return bEq['mode'] === bCt['SceneMode']['SCENE2D'] || bEq['mode'] === bCt['SceneMode'][dol(0xd40)] ? (bEe = bEx['worldToCameraCoordinatesPoint'](bEe, bEe), + bCv && (bEe = bEq['globe']['ellipsoid']['cartographicToCartesian'](bEq['mapProjection']['unproject'](bEe, bFs), bEe))) : bCv || (bEe = bEx[dol(0xd41)](bEe, bEe)), + bEe; + } + ; + const bFz = bFr; + var bFA = function(bCt, bCu) { + bFg[dol(0xd42)](this, arguments), + this['name'] = bCu ? bCt['options'][dol(0xd43)] ? bCt['options']['zoomInTooltip'] : doh(0xa4) : bCt['options']['zoomOutTooltip'] ? bCt['options']['zoomOutTooltip'] : doh(0xa5), + bCu ? bCt['options']['zoomInSvg'] ? this['zoomInSvg'] = bCt['options']['zoomInSvg'] : this['text'] = '+' : bCt['options']['zoomOutSvg'] ? this['zoomOutSvg'] = bCt['options'][dol(0xd44)] : this['text'] = '-', + this['cssClass'] = doj(0x1ac) + (bCu ? doh(0xa6) : doh(0xa7)), + this['relativeAmount'] = 0x2, + bCu && (this['relativeAmount'] = 0x1 / this['relativeAmount']); + }; + bFA['prototype']['relativeAmount'] = 0x1, + (bFA['prototype'] = Object['create'](bFg['prototype']))['activate'] = function() { + this['zoom'](this['relativeAmount']); + } + ; + var bFD = new bCt['Cartesian3'](); + bFA['prototype']['zoom'] = function(bCu) { + if (this['isActive'] = !0x0, + (0x0, + bCt['defined'])(this['terria'])) { + var bCv = this['terria']['scene'] + , bEe = bCv['screenSpaceCameraController']; + if (!bEe['enableInputs'] || !bEe['enableZoom']) + return; + var bEq, bEx = bCv['camera']; + switch (bCv['mode']) { + case bCt[dol(0xd45)]['MORPHING']: + break; + case bCt['SceneMode']['SCENE2D']: + bEx['zoomIn'](bEx['positionCartographic']['height'] * (0x1 - this['relativeAmount'])); + break; + default: + var q; + if (q = (0x0, + bCt['defined'])(this['terria']['trackedEntity']) ? new bCt['Cartesian3']() : bFz['getCameraFocus'](this['terria'], !0x1), + (0x0, + bCt['defined'])(q)) + bEq = { + 'direction': bEx['direction'], + 'up': bEx['up'] + }; + else { + var bEG = new bCt['Ray'](bEx['worldToCameraCoordinatesPoint'](bCv['globe']['ellipsoid'][dol(0xd46)](bEx['positionCartographic'])),bEx['directionWC']); + q = bCt['IntersectionTests']['grazingAltitudeLocation'](bEG, bCv['globe']['ellipsoid']), + bEq = { + 'heading': bEx['heading'], + 'pitch': bEx['pitch'], + 'roll': bEx['roll'] + }; + } + if (bEx['position']['z'] >= 406944828719368.56) + return; + var bF6 = bCt['Cartesian3']['subtract'](bEx[dol(0xd47)], q, bFD) + , bF7 = bCt['Cartesian3']['multiplyByScalar'](bF6, bCu, bF6) + , bF8 = bCt['Cartesian3']['add'](q, bF7, q); + (0x0, + bCt['defined'])(this['terria']['trackedEntity']) || bCv['mode'] === bCt['SceneMode']['COLUMBUS_VIEW'] ? bEx['position'] = bF8 : bEx['flyTo']({ + 'destination': bF8, + 'orientation': bEq, + 'duration': 0.5, + 'convert': !0x1 + }); + } + } + this['isActive'] = !0x1; + } + ; + const bFO = bFA; + var bFP = bCt['knockout'] + , bFQ = function(bCu) { + this['terria'] = bCu['terria'], + this['eventHelper'] = new bCt['EventHelper'](), + this['enableZoomControls'] = !(0x0, + bCt['defined'])(bCu['enableZoomControls']) || bCu[dol(0xd48)], + this['enableCompass'] = !(0x0, + bCt['defined'])(bCu['enableCompass']) || bCu[dol(0xd49)], + this['navigationLocked'] = !0x1, + this['controls'] = bCu['controls'], + (0x0, + bCt['defined'])(this['controls']) || (this['controls'] = [new bFO(this['terria'],!0x0), new bFq(this['terria']), new bFO(this['terria'],!0x1)]), + this['svgCompassOuterRing'] = doj(0x1ad), + this['svgCompassGyro'] = doj(0x1ae), + this['svgCompassRotationMarker'] = doj(0x1af), + this['showCompass'] = (0x0, + bCt['defined'])(this['terria']) && this['enableCompass'], + this['heading'] = this['showCompass'] ? this['terria']['scene']['camera']['heading'] : 0x0, + this['isOrbiting'] = !0x1, + this['orbitCursorAngle'] = 0x0, + this['orbitCursorOpacity'] = 0x0, + this['orbitLastTimestamp'] = 0x0, + this['orbitFrame'] = void 0x0, + this['orbitIsLook'] = !0x1, + this['orbitMouseMoveFunction'] = void 0x0, + this['orbitMouseUpFunction'] = void 0x0, + this['isRotating'] = !0x1, + this['rotateInitialCursorAngle'] = void 0x0, + this['rotateFrame'] = void 0x0, + this['rotateIsLook'] = !0x1, + this['rotateMouseMoveFunction'] = void 0x0, + this['rotateMouseUpFunction'] = void 0x0, + this['_unsubcribeFromPostRender'] = void 0x0, + bFP['track'](this, ['c' + doo(0x63f) + 's', 's' + doo(0x640) + 's', 'h' + doo(0x641) + 'g', 'i' + doo(0x642) + 'g', 'o' + doo(0x643) + 'e', 'i' + doo(0x644) + 'g']); + var bCv = this; + function bEe() { + (0x0, + bCt['defined'])(bCv[dol(0xd4a)]) ? (bCv['_unsubcribeFromPostRender'] && (bCv['_unsubcribeFromPostRender'](), + bCv['_unsubcribeFromPostRender'] = void 0x0), + bCv['showCompass'] = bCv['enableCompass'], + bCv['_unsubcribeFromPostRender'] = bCv[dol(0xd4b)]['scene']['postRender'][dol(0xd4c)](function() { + bCv[dol(0xd4d)] = bCv['terria'][dol(0xd4e)]['camera']['heading']; + })) : (bCv['_unsubcribeFromPostRender'] && (bCv['_unsubcribeFromPostRender'](), + bCv['_unsubcribeFromPostRender'] = void 0x0), + bCv[dol(0xd4f)] = !0x1); + } + bFQ['prototype']['setNavigationLocked'] = function(bCt) { + this['navigationLocked'] = bCt, + this['controls'] && this['controls']['length'] > 0x1 && this['controls'][0x1]['setNavigationLocked'](this['navigationLocked']); + } + , + this['eventHelper']['add'](this['terria']['afterWidgetChanged'], bEe, this), + bEe(); + }; + bFQ['prototype']['destroy'] = function() { + this['eventHelper']['removeAll'](); + } + , + bFQ['prototype']['show'] = function(bCt) { + const bCu = '<' + doo(0x645) + '>' + , bCv = '>' + , bEe = doj(0x1b0) + , bEq = '<' + doo(0x646) + '\x22' + , q = doj(0x1b1) + , bEG = q + '\x22' + bCv + this['terria']['options']['compassRotationMarkerSvg'] + , bF6 = (this['terria']['options']['compassRotationMarkerSvg'] ? bEG : doj(0x1b2)) + bCu + , bF7 = doj(0x1b3) + , bF8 = bF7 + '\x22' + bCv + this['terria']['options']['compassOuterRingSvg'] + , bF9 = (this['terria']['options']['compassOuterRingSvg'] ? bF8 : doj(0x1b4)) + bCu + , bFa = doj(0x1b5) + , bFb = bFa + '\x22' + bCv + this['terria']['options']['compassGyroSvg'] + , bFd = doj(0x1b6) + bF6 + bF9 + doj(0x1b7) + ((this['terria']['options']['compassGyroSvg'] ? bFb : doj(0x1b8)) + bCu) + bCu + , bFe = bEq + bFd + , bFg = bEq + bEe + bFd + , bFh = doj(0x1b9) + , bFq = doj(0x1ba) + this['terria']['options']['resetSvg'] + doj(0x1bb) + this['terria']['options']['zoomInSvg'] + doj(0x1bc) + this['terria']['options']['zoomOutSvg'] + doj(0x1bd) + bCu + , bFr = bFh + bFq + , bFs = bFh + bEe + bCv + bFq + , bFt = (this['enableCompass'] ? bFe : bFg) + (this['enableZoomControls'] ? bFr : bFs); + bEx(bFt, bCt, this); + } + , + bFQ['prototype']['add'] = function(bCt) { + this['controls']['push'](bCt); + } + , + bFQ['prototype']['remove'] = function(bCt) { + this['controls']['remove'](bCt); + } + , + bFQ['prototype']['isLastControl'] = function(bCt) { + return bCt === this['controls'][this['controls']['length'] - 0x1]; + } + ; + var bGj = new bCt['Cartesian2'](); + const bGk = bCt => { + let bCu; + bCu = bCt['touches'] ? bCt['touches'][0x0] : bCt; + const {clientX: bCv, clientY: bEe} = bCu; + return { + 'clientX': bCv, + 'clientY': bEe + }; + } + ; + bFQ['prototype']['handleMouseDown'] = function(bCu, bCv) { + const {clientX: bEe, clientY: bEq} = bGk(bCv); + if (this['terria']['scene']['mode'] === bCt['SceneMode'][dol(0xd50)]) + return !0x0; + if (bCu['navigationLocked']) + return !0x0; + var bEx = bCv['currentTarget'] + , q = bCv['currentTarget']['getBoundingClientRect']() + , bEG = q['width'] / 0x2 + , bF6 = new bCt['Cartesian2']((q['right'] - q[dol(0xd51)]) / 0x2,(q[dol(0xd52)] - q['top']) / 0x2) + , bF7 = new bCt['Cartesian2'](bEe - q['left'],bEq - q['top']) + , bF8 = bCt['Cartesian2'][dol(0xd53)](bF7, bF6, bGj) + , bF9 = bCt['Cartesian2'][dol(0xd54)](bF8) / bEG; + if (bF9 < 0x32 / 0x91) + !function(bCu, bCv, bEe) { + var bEq = bCu['terria']['scene'] + , bEx = bEq['screenSpaceCameraController']; + if (bEq['mode'] === bCt['SceneMode']['MORPHING'] || !bEx[dol(0xd55)]) + return; + if (bCu['navigationLocked']) + return !0x0; + switch (bEq['mode']) { + case bCt['SceneMode']['COLUMBUS_VIEW']: + if (bEx['enableLook']) + break; + if (!bEx['enableTranslate'] || !bEx['enableTilt']) + return; + break; + case bCt['SceneMode']['SCENE3D']: + if (bEx['enableLook']) + break; + if (!bEx['enableTilt'] || !bEx['enableRotate']) + return; + break; + case bCt['SceneMode']['SCENE2D']: + if (!bEx['enableTranslate']) + return; + } + bHw(bCu), + (0x0, + bCt['defined'])(bCu['orbitTickFunction']) && bCu['terria']['clock']['onTick']['removeEventListener'](bCu['orbitTickFunction']); + bCu['orbitMouseMoveFunction'] = void 0x0, + bCu['orbitMouseUpFunction'] = void 0x0, + bCu['orbitTickFunction'] = void 0x0, + bCu['isOrbiting'] = !0x0, + bCu['orbitLastTimestamp'] = (0x0, + bCt['getTimestamp'])(); + var q = bEq['camera']; + if ((0x0, + bCt['defined'])(bCu['terria']['trackedEntity'])) + bCu['orbitFrame'] = void 0x0, + bCu['orbitIsLook'] = !0x1; + else { + var bEG = bFz['getCameraFocus'](bCu[dol(0xd56)], !0x0, bHk); + (0x0, + bCt['defined'])(bEG) ? (bCu['orbitFrame'] = bCt['Transforms']['eastNorthUpToFixedFrame'](bEG, bEq['globe']['ellipsoid'], bHj), + bCu['orbitIsLook'] = !0x1) : (bCu['orbitFrame'] = bCt['Transforms']['eastNorthUpToFixedFrame'](q['positionWC'], bEq['globe']['ellipsoid'], bHj), + bCu['orbitIsLook'] = !0x0); + } + function bF6(bCv, bEe) { + var bEq = Math[dol(0xd57)](-bCv['y'], bCv['x']); + bCu['orbitCursorAngle'] = bCt['Math']['zeroToTwoPi'](bEq - bCt['Math']['PI_OVER_TWO']); + var bEx = bCt['Cartesian2']['magnitude'](bCv) + , q = bEe / 0x2 + , bEG = Math[dol(0xd58)](bEx / q, 0x1) + , bF6 = 0.5 * bEG * bEG + 0.5; + bCu['orbitCursorOpacity'] = bF6; + } + bCu['orbitTickFunction'] = function(bCv) { + var bEe, bEx = (0x0, + bCt['getTimestamp'])(), bEG = (bEx - bCu['orbitLastTimestamp']) * (2.5 * (bCu['orbitCursorOpacity'] - 0.5) / 0x3e8), bF6 = bCu['orbitCursorAngle'] + bCt['Math']['PI_OVER_TWO'], bF7 = Math['cos'](bF6) * bEG, bF8 = Math['sin'](bF6) * bEG; + if (bCu['navigationLocked']) + return !0x0; + (0x0, + bCt['defined'])(bCu['orbitFrame']) && (bEe = bCt['Matrix4']['clone'](q['transform'], bHi), + q['lookAtTransform'](bCu[dol(0xd59)])), + bEq['mode'] === bCt['SceneMode']['SCENE2D'] ? q[dol(0xd5a)](new bCt['Cartesian3'](bF7,bF8,0x0), Math['max'](bEq['canvas']['clientWidth'], bEq['canvas'][dol(0xd5b)]) / 0x64 * q['positionCartographic']['height'] * bEG) : bCu['orbitIsLook'] ? (q['look'](bCt['Cartesian3']['UNIT_Z'], -bF7), + q['look'](q['right'], -bF8)) : (q['rotateLeft'](bF7), + q['rotateUp'](bF8)), + (0x0, + bCt['defined'])(bCu['orbitFrame']) && q['lookAtTransform'](bEe), + bCu['orbitLastTimestamp'] = bEx; + } + , + bCu['orbitMouseMoveFunction'] = function(bCu) { + const {clientX: bEe, clientY: bEq} = bGk(bCu); + var bEx = bCv['getBoundingClientRect']() + , q = new bCt['Cartesian2']((bEx['right'] - bEx['left']) / 0x2,(bEx['bottom'] - bEx['top']) / 0x2) + , bEG = new bCt['Cartesian2'](bEe - bEx[dol(0xd5c)],bEq - bEx['top']); + bF6(bCt['Cartesian2']['subtract'](bEG, q, bGj), bEx['width']); + } + , + bCu['orbitMouseUpFunction'] = function(bCv) { + bCu['isOrbiting'] = !0x1, + bHw(bCu), + (0x0, + bCt['defined'])(bCu['orbitTickFunction']) && bCu['terria']['clock']['onTick']['removeEventListener'](bCu['orbitTickFunction']), + bCu['orbitMouseMoveFunction'] = void 0x0, + bCu['orbitMouseUpFunction'] = void 0x0, + bCu[dol(0xd5d)] = void 0x0; + } + , + (bCt => { + document['addEventListener']('m' + doo(0x647) + 'e', bCt['orbitMouseMoveFunction'], !0x1), + document['addEventListener']('t' + doo(0x648) + 'e', bCt['orbitMouseMoveFunction'], !0x1), + document['addEventListener']('m' + doo(0x649) + 'p', bCt['orbitMouseUpFunction'], !0x1), + document[dol(0xd5e)]('t' + doo(0x64a) + 'd', bCt['orbitMouseUpFunction'], !0x1); + } + )(bCu), + bCu['terria']['clock']['onTick']['addEventListener'](bCu['orbitTickFunction']), + bF6(bEe, bCv['getBoundingClientRect']()['width']); + }(this, bEx, bF8); + else { + if (!(bF9 < 0x1)) + return !0x0; + !function(bCu, bCv, bEe) { + var bEq, bEx = bCu['terria']['scene'], q = bEx['camera'], bEG = bEx['screenSpaceCameraController']; + if (bEx['mode'] === bCt['SceneMode']['MORPHING'] || bEx['mode'] === bCt[dol(0xd5f)]['SCENE2D'] || !bEG[dol(0xd60)]) + return; + if (bCu['navigationLocked']) + return !0x0; + if (!bEG['enableLook'] && (bEx['mode'] === bCt[dol(0xd61)]['COLUMBUS_VIEW'] || bEx['mode'] === bCt['SceneMode'][dol(0xd62)] && !bEG['enableRotate'])) + return; + if (bHx(bCu), + bCu['rotateMouseMoveFunction'] = void 0x0, + bCu['rotateMouseUpFunction'] = void 0x0, + bCu['isRotating'] = !0x0, + bCu['rotateInitialCursorAngle'] = Math['atan2'](-bEe['y'], bEe['x']), + (0x0, + bCt[dol(0xd63)])(bCu['terria']['trackedEntity'])) + bCu['rotateFrame'] = void 0x0, + bCu['rotateIsLook'] = !0x1; + else { + var bF6 = bFz['getCameraFocus'](bCu['terria'], !0x0, bHk); + (0x0, + bCt['defined'])(bF6) && (bEx['mode'] !== bCt['SceneMode']['COLUMBUS_VIEW'] || bEG['enableLook'] || bEG['enableTranslate']) ? (bCu['rotateFrame'] = bCt['Transforms']['eastNorthUpToFixedFrame'](bF6, bEx['globe']['ellipsoid'], bHj), + bCu['rotateIsLook'] = !0x1) : (bCu['rotateFrame'] = bCt['Transforms']['eastNorthUpToFixedFrame'](q['positionWC'], bEx['globe'][dol(0xd64)], bHj), + bCu['rotateIsLook'] = !0x0); + } + (0x0, + bCt['defined'])(bCu['rotateFrame']) && (bEq = bCt['Matrix4']['clone'](q['transform'], bHi), + q['lookAtTransform'](bCu['rotateFrame'])); + bCu[dol(0xd65)] = -q['heading'], + (0x0, + bCt['defined'])(bCu['rotateFrame']) && q['lookAtTransform'](bEq); + bCu['rotateMouseMoveFunction'] = function(bEe) { + const {clientX: bEq, clientY: bEx} = bGk(bEe); + var q, bEG = bCv[dol(0xd66)](), bF6 = new bCt['Cartesian2']((bEG['right'] - bEG['left']) / 0x2,(bEG['bottom'] - bEG['top']) / 0x2), bF7 = new bCt['Cartesian2'](bEq - bEG['left'],bEx - bEG['top']), bF8 = bCt['Cartesian2']['subtract'](bF7, bF6, bGj), bF9 = Math['atan2'](-bF8['y'], bF8['x']) - bCu['rotateInitialCursorAngle'], bFa = bCt[dol(0xd67)]['zeroToTwoPi'](bCu['rotateInitialCameraAngle'] - bF9), bFb = bCu['terria']['scene']['camera']; + (0x0, + bCt['defined'])(bCu['rotateFrame']) && (q = bCt['Matrix4']['clone'](bFb['transform'], bHi), + bFb['lookAtTransform'](bCu['rotateFrame'])); + var bFd = -bFb['heading']; + bFb['rotateRight'](bFa - bFd), + (0x0, + bCt['defined'])(bCu['rotateFrame']) && bFb['lookAtTransform'](q); + } + , + bCu['rotateMouseUpFunction'] = function(bCt) { + bCu['isRotating'] = !0x1, + bHx(bCu), + bCu['rotateMouseMoveFunction'] = void 0x0, + bCu['rotateMouseUpFunction'] = void 0x0; + } + , + (bCt => { + document['addEventListener']('m' + doo(0x64b) + 'e', bCt['rotateMouseMoveFunction'], !0x1), + document['addEventListener']('t' + doo(0x64c) + 'e', bCt['rotateMouseMoveFunction'], !0x1), + document['addEventListener']('m' + doo(0x64d) + 'p', bCt['rotateMouseUpFunction'], !0x1), + document[dol(0xd68)]('t' + doo(0x64e) + 'd', bCt['rotateMouseUpFunction'], !0x1); + } + )(bCu); + }(this, bEx, bF8); + } + } + ; + var bHi = new bCt['Matrix4']() + , bHj = new bCt['Matrix4']() + , bHk = new bCt['Cartesian3'](); + bFQ['prototype']['handleDoubleClick'] = function(bCu, bCv) { + var bEe = bCu['terria']['scene'] + , bEq = bEe['camera'] + , bEx = bEe['screenSpaceCameraController']; + if (bEe[dol(0xd69)] === bCt['SceneMode']['MORPHING'] || !bEx['enableInputs']) + return !0x0; + if (bCu[dol(0xd6a)]) + return !0x0; + if (bEe['mode'] !== bCt['SceneMode']['COLUMBUS_VIEW'] || bEx['enableTranslate']) { + if (bEe['mode'] === bCt['SceneMode']['SCENE3D'] || bEe['mode'] === bCt['SceneMode']['COLUMBUS_VIEW']) { + if (!bEx[dol(0xd6b)]) + return; + if (bEe['mode'] === bCt['SceneMode']['SCENE3D'] && !bEx['enableRotate']) + return; + } + var q = bFz['getCameraFocus'](bCu['terria'], !0x0, bHk); + if ((0x0, + bCt['defined'])(q)) { + var bEG = bEe['globe']['ellipsoid']['cartographicToCartesian'](bEq['positionCartographic'], new bCt['Cartesian3']()) + , bF6 = bEe['globe']['ellipsoid']['geodeticSurfaceNormal'](q) + , bF7 = new bCt['BoundingSphere'](q,0x0); + bEq['flyToBoundingSphere'](bF7, { + 'offset': new bCt['HeadingPitchRange'](0x0,bCt[dol(0xd6c)]['PI_OVER_TWO'] - bCt['Cartesian3']['angleBetween'](bF6, bEq['directionWC']),bCt['Cartesian3']['distance'](bEG, q)), + 'duration': 1.5 + }); + } else + this['controls'][0x1][dol(0xd6d)](); + } + } + , + bFQ['create'] = function(bCt) { + var bCu = new bFQ(bCt); + return bCu[dol(0xd6e)](bCt['container']), + bCu; + } + ; + const bHw = bCt => { + document['removeEventListener']('m' + doo(0x64f) + 'e', bCt['orbitMouseMoveFunction'], !0x1), + document['removeEventListener']('t' + doo(0x650) + 'e', bCt['orbitMouseMoveFunction'], !0x1), + document['removeEventListener']('m' + doo(0x651) + 'p', bCt['orbitMouseUpFunction'], !0x1), + document['removeEventListener']('t' + doo(0x652) + 'd', bCt['orbitMouseUpFunction'], !0x1); + } + , bHx = bCt => { + document['removeEventListener']('m' + doo(0x653) + 'e', bCt['rotateMouseMoveFunction'], !0x1), + document['removeEventListener']('t' + doo(0x654) + 'e', bCt['rotateMouseMoveFunction'], !0x1), + document['removeEventListener']('m' + doo(0x655) + 'p', bCt['rotateMouseUpFunction'], !0x1), + document['removeEventListener']('t' + doo(0x656) + 'd', bCt['rotateMouseUpFunction'], !0x1); + } + ; + const bHA = bFQ; + var bHB = bCt['Event'] + , bHC = function(bCt) { + bHE['apply'](this, arguments), + this['_onDestroyListeners'] = []; + }; + function bHE(bCu, bCv) { + if (!(0x0, + bCt['defined'])(bCu)) + throw new bCt['DeveloperError'](doj(0x1be)); + var bEe = (0x0, + bCt['defined'])(bCu['cesiumWidget']) ? bCu['cesiumWidget'] : bCu + , bEq = document['createElement'](doh(0xa8)); + bEq['className'] = doj(0x1bf), + bEe[dol(0xd6f)]['appendChild'](bEq), + this['terria'] = bCu, + this['terria']['options'] = (0x0, + bCt['defined'])(bCv) ? bCv : {}, + this['terria']['afterWidgetChanged'] = new bHB(), + this['terria']['beforeWidgetChanged'] = new bHB(), + this['container'] = bEq, + (0x0, + bCt['defined'])(this['terria']['options']['enableDistanceLegend']) && !this['terria']['options']['enableDistanceLegend'] || (this['distanceLegendDiv'] = document['createElement'](doh(0xa9)), + bEq['appendChild'](this['distanceLegendDiv']), + this['distanceLegendDiv']['setAttribute'](doh(0xaa), 'd' + doo(0x657) + 'v'), + this['distanceLegendViewModel'] = bF8['create']({ + 'container': this['distanceLegendDiv'], + 'terria': this['terria'], + 'mapElement': bEq, + 'enableDistanceLegend': !0x0 + })), + (0x0, + bCt[dol(0xd70)])(this['terria']['options']['enableZoomControls']) && !this['terria']['options']['enableZoomControls'] || (0x0, + bCt['defined'])(this['terria']['options']['enableCompass']) && !this['terria']['options']['enableCompass'] ? !(0x0, + bCt[dol(0xd71)])(this['terria']['options']['enableZoomControls']) || this['terria'][dol(0xd72)]['enableZoomControls'] || (0x0, + bCt['defined'])(this['terria']['options']['enableCompass']) && !this['terria']['options']['enableCompass'] ? (0x0, + bCt['defined'])(this['terria'][dol(0xd73)]['enableZoomControls']) && !this['terria']['options']['enableZoomControls'] || !(0x0, + bCt['defined'])(this['terria']['options']['enableCompass']) || this['terria']['options']['enableCompass'] ? (0x0, + bCt['defined'])(this['terria']['options']['enableZoomControls']) && !this['terria'][dol(0xd74)]['enableZoomControls'] && (0x0, + bCt['defined'])(this['terria']['options']['enableCompass']) && this['terria']['options']['enableCompass'] : (this['navigationDiv'] = document['createElement'](doh(0xab)), + this['navigationDiv']['setAttribute'](doh(0xac), 'n' + doo(0x658) + 'v'), + bEq['appendChild'](this['navigationDiv']), + this['navigationViewModel'] = bHA['create']({ + 'container': this['navigationDiv'], + 'terria': this['terria'], + 'enableZoomControls': !0x0, + 'enableCompass': !0x1 + })) : (this['navigationDiv'] = document['createElement'](doh(0xad)), + this['navigationDiv']['setAttribute'](doh(0xae), 'n' + doo(0x659) + 'v'), + bEq['appendChild'](this['navigationDiv']), + this['navigationViewModel'] = bHA['create']({ + 'container': this['navigationDiv'], + 'terria': this['terria'], + 'enableZoomControls': !0x1, + 'enableCompass': !0x0 + })) : (this['navigationDiv'] = document['createElement'](doh(0xaf)), + this['navigationDiv']['setAttribute'](doh(0xb0), 'n' + doo(0x65a) + 'v'), + bEq['appendChild'](this['navigationDiv']), + this['navigationViewModel'] = bHA['create']({ + 'container': this['navigationDiv'], + 'terria': this['terria'], + 'enableZoomControls': !0x0, + 'enableCompass': !0x0 + })); + } + bHC['prototype'][dol(0xd75)] = void 0x0, + bHC['prototype']['navigationViewModel'] = void 0x0, + bHC['prototype']['navigationDiv'] = void 0x0, + bHC['prototype']['distanceLegendDiv'] = void 0x0, + bHC[dol(0xd76)]['terria'] = void 0x0, + bHC['prototype']['container'] = void 0x0, + bHC[dol(0xd77)]['_onDestroyListeners'] = void 0x0, + bHC['prototype']['_navigationLocked'] = !0x1, + bHC['prototype'][dol(0xd78)] = function(bCt) { + this['_navigationLocked'] = bCt, + this['navigationViewModel']['setNavigationLocked'](this['_navigationLocked']); + } + , + bHC['prototype']['getNavigationLocked'] = function() { + return this['_navigationLocked']; + } + , + bHC['prototype']['destroy'] = function() { + (0x0, + bCt['defined'])(this['navigationViewModel']) && this['navigationViewModel']['destroy'](), + (0x0, + bCt['defined'])(this['distanceLegendViewModel']) && this['distanceLegendViewModel']['destroy'](), + (0x0, + bCt['defined'])(this['navigationDiv']) && this['navigationDiv']['parentNode']['removeChild'](this['navigationDiv']), + delete this['navigationDiv'], + (0x0, + bCt['defined'])(this['distanceLegendDiv']) && this['distanceLegendDiv']['parentNode']['removeChild'](this['distanceLegendDiv']), + delete this['distanceLegendDiv'], + (0x0, + bCt['defined'])(this['container']) && this['container']['parentNode']['removeChild'](this['container']), + delete this['container']; + for (var bCu = 0x0; bCu < this['_onDestroyListeners']['length']; bCu++) + this['_onDestroyListeners'][bCu](); + } + , + bHC[dol(0xd79)]['addOnDestroyListener'] = function(bCt) { + 'f' + doo(0x65b) + 'n' == typeof bCt && this['_onDestroyListeners']['push'](bCt); + } + ; + const bHM = bHC; + } + )(), + bEq = bEq['default']; + } + )(); + }); + (function() { + CutFillAnalysis = function(bHN, bHO, bHP, bHQ) { + if (!bHN) + throw new Error('n' + doo(0x65c) + '!'); + this['viewer'] = bHN; + if (!bHO) + throw new Error('n' + doo(0x65d) + '!'); + this['positions'] = bHO; + this['height'] = bHP; + this['precision'] = bHQ || 0x100; + this['minHeight'] = 0xf4240; + this['maxHeight'] = -0xf4240; + this['createPolygonGeo'] = function(bHR) { + let bHS = Math['PI'] / Math['pow'](0x2, 0xb); + bHS = bHS / this['precision']; + let bHT = new Cesium['PolygonGeometry']['fromPositions']({ + 'positions': bHR, + 'vertexFormat': Cesium['PerInstanceColorAppearance']['FLAT_VERTEX_FORMAT'], + 'granularity': bHS + }); + this['geom'] = new Cesium['PolygonGeometry']['createGeometry'](bHT); + } + ; + this['VolumeAnalysis'] = function() { + const bHU = this; + bHU['createPolygonGeo'](bHU[dol(0xd7a)]); + let bHV = []; + let bHW = []; + for (var bHX = 0x0; bHX < bHU['positions']['length']; bHX++) { + let bHY = Cesium['Cartographic']['fromCartesian'](Cesium['clone'](bHU['positions'][bHX])); + let bHZ = this['viewer']['scene']['sampleHeightSupported'] ? this['viewer'][dol(0xd7b)]['sampleHeight'](bHY) : this['viewer']['scene']['globe']['getHeight'](bHY); + bHW['push'](bHZ); + bHV['push'](Cesium['Cartesian3']['fromRadians'](bHY['longitude'], bHY['latitude'], bHZ)); + } + let bI0 = 0x0 + , bI1 = 0x0 + , bI2 = 0x0 + , bI3 = 0x0 + , bI4 = 0x0; + const bI5 = this['geom']['indices']; + const bHO = this['geom']['attributes']['position']['values']; + const bI7 = []; + for (let bI8 = 0x0; bI8 < bI5['length']; bI8++) { + bI7['push'](this['returnPosition'](bHO, bI5[bI8])); + } + if (this['height'] < this['minHeight']) + this['height'] = this['minHeight']; + if (this['height'] > this['maxHeight']) + this['height'] = this['maxHeight']; + for (let bI9 = 0x0; bI9 < bI7['length']; bI9 += 0x3) { + const bIa = bI7[bI9]; + const bIb = bI7[bI9 + 0x1]; + const bIc = bI7[bI9 + 0x2]; + const bId = this['computeArea4Triangle'](bIa[dol(0xd7c)], bIb['noHeightPos'], bIc['noHeightPos']); + const bHP = (bIa['height'] + bIb['height'] + bIc['height']) / 0x3; + if (bHP < this['height']) { + bI2 += bId; + const bIf = bId * (this['height'] - bHP); + bI3 += bIf; + } else if (bHP == this['height']) { + bI4 += bId; + } else { + bI0 += bId; + const bIg = bId * (bHP - this['height']); + bI1 += bIg; + } + } + const bIh = bI0 + bI2 + bI4; + this['result'] = { + 'height': this['height'], + 'minHeight': this['minHeight'], + 'maxHeight': this['maxHeight'], + 'allArea': bIh, + 'cutArea': bI0, + 'cutVolume': bI1, + 'fillArea': bI2, + 'fillVolume': bI3, + 'noArea': bI4, + 'tdHeights': bHW, + 'tdposs': bHV + }; + return this['result']; + } + ; + this['computeCentroid4Polygon'] = function(bHO) { + let bIj = [] + , bIk = []; + let bIl = 0x0 + , bIm = 0x0; + for (let bIn = 0x0; bIn < bHO['length']; bIn++) { + let bIo = Cesium['Cartographic']['fromCartesian'](bHO[bIn]); + bIl += bIo['longitude']; + bIm += bIo['latitude']; + bIj['push'](bIo['longitude']); + bIk['push'](bIo[dol(0xd7d)]); + } + let bIp = bIl / bHO['length']; + let bIq = bIm / bHO['length']; + const bIr = new Cesium['Cartographic'](bIp,bIq); + return Cesium['Cartesian3']['fromRadians'](bIr['longitude'], bIr['latitude'], this['maxHeigh'] + 0x1e); + } + ; + this['computeArea4Triangle'] = function(bIs, bIt, bIu) { + let q = Cesium['Cartesian3']['distance'](bIs, bIt); + let bIw = Cesium['Cartesian3']['distance'](bIt, bIu); + let bIx = Cesium['Cartesian3']['distance'](bIu, bIs); + let bIy = (q + bIw + bIx) / 0x2; + return Math['sqrt'](bIy * (bIy - q) * (bIy - bIw) * (bIy - bIx)); + } + ; + this['returnPosition'] = function(bHO, bIA) { + let bIB = new Cesium[(dol(0xd7e))](bHO[bIA * 0x3],bHO[bIA * 0x3 + 0x1],bHO[bIA * 0x3 + 0x2]); + let bIC = Cesium['Cartographic']['fromCartesian'](bIB); + let bHP = this['viewer']['scene'][dol(0xd7f)] ? this['viewer']['scene']['sampleHeight'](bIC) : this['viewer']['scene'][dol(0xd80)]['getHeight'](bIC); + if (bHP < this['minHeight']) { + this['minHeight'] = bHP; + } + if (bHP > this['maxHeight']) { + this['maxHeight'] = bHP; + } + if (!Cesium['defined'](bHP)) + bHP = 0x0; + return { + 'heightPos': Cesium['Cartesian3']['fromRadians'](bIC['longitude'], bIC['latitude'], bHP), + 'noHeightPos': Cesium['Cartesian3']['fromRadians'](bIC['longitude'], bIC['latitude'], 0x0), + 'height': bHP + }; + } + ; + } + ; + }()); + !function(bIE, bIF) { + 'o' + doo(0x65e) + 't' == typeof exports && 'u' + doo(0x65f) + 'd' != typeof module ? bIF(exports) : 'f' + doo(0x660) + 'n' == typeof define && define['amd'] ? define(['e' + doo(0x661) + 's'], bIF) : bIF(bIE['gcoord'] = {}); + }(this, function(bIG) { + 'u' + doo(0x662) + 't'; + var bIH = 'W' + doo(0x663) + '4' + , bII = bIH + , bIJ = bIH + , bIK = 'G' + doo(0x664) + '2' + , q = bIK + , bIM = 'B' + doo(0x665) + '9' + , bIN = bIM + , bIO = bIM + , bIP = bIM + , bIQ = 'B' + doo(0x666) + 'C' + , bIR = bIQ + , bIS = 'E' + doo(0x667) + '7' + , bIT = bIS + , bIU = bIS + , bIV = bIS + , bIW = bIS; + function bIX(bIG) { + throw new Error(bIG); + } + function bIZ(bIG) { + return !isNaN(bIG) && null !== bIG && !bJ1(bIG); + } + function bJ1(bIG) { + return !!bIG && '[' + doo(0x668) + ']' === Object['prototype'][dol(0xd81)]['call'](bIG); + } + function bJ3() { + for (var bIK = [], bIG = 0x0; bIG < arguments['length']; bIG++) + bIK[bIG] = arguments[bIG]; + var q = bIK['length'] - 0x1; + return function() { + for (var bIG = [], bIH = 0x0; bIH < arguments['length']; bIH++) + bIG[bIH] = arguments[bIH]; + for (var bII = q, bIJ = bIK[q]['apply'](null, bIG); bII--; ) + bIJ = bIK[bII]['call'](null, bIJ); + return bIJ; + } + ; + } + var bJb = Math['sin'] + , bJc = Math['cos'] + , bJd = Math['sqrt'] + , bJe = Math['abs'] + , bJf = Math['PI'] + , bJg = 0x615305 + , bJh = 0.006693421622965823; + function bJi(bIG) { + var bIH = bIG[0x0] + , bII = bIG[0x1]; + if (!bJK(bIH, bII)) + return [bIH, bII]; + for (var bIJ = [bIH, bII], bIK = bIJ[0x0], q = bIJ[0x1], bIM = bJs([bIK, q]), bIN = bIM[0x0] - bIH, bIO = bIM[0x1] - bII; 0.000001 < bJe(bIN) || 0.000001 < bJe(bIO); ) + bIN = (bIM = bJs([bIK -= bIN, q -= bIO]))[0x0] - bIH, + bIO = bIM[0x1] - bII; + return [bIK, q]; + } + function bJs(bIG) { + var bIH = bIG[0x0] + , bII = bIG[0x1]; + if (!bJK(bIH, bII)) + return [bIH, bII]; + var bIJ = function(bIG, bIH) { + var bII = function(bIG, bIH) { + var bII = 0x12c + bIG + 0x2 * bIH + 0.1 * bIG * bIG + 0.1 * bIG * bIH + 0.1 * bJd(bJe(bIG)); + return bII += 0x2 * (0x14 * bJb(0x6 * bIG * bJf) + 0x14 * bJb(0x2 * bIG * bJf)) / 0x3, + bII += 0x2 * (0x14 * bJb(bIG * bJf) + 0x28 * bJb(bIG / 0x3 * bJf)) / 0x3, + bII += 0x2 * (0x96 * bJb(bIG / 0xc * bJf) + 0x12c * bJb(bIG / 0x1e * bJf)) / 0x3; + }(bIG - 0x69, bIH - 0x23) + , bIJ = function(bIG, bIH) { + var bII = 0x2 * bIG - 0x64 + 0x3 * bIH + 0.2 * bIH * bIH + 0.1 * bIG * bIH + 0.2 * bJd(bJe(bIG)); + return bII += 0x2 * (0x14 * bJb(0x6 * bIG * bJf) + 0x14 * bJb(0x2 * bIG * bJf)) / 0x3, + bII += 0x2 * (0x14 * bJb(bIH * bJf) + 0x28 * bJb(bIH / 0x3 * bJf)) / 0x3, + bII += 0x2 * (0xa0 * bJb(bIH / 0xc * bJf) + 0x140 * bJb(bIH * bJf / 0x1e)) / 0x3; + }(bIG - 0x69, bIH - 0x23) + , bIK = bIH / 0xb4 * bJf + , q = bJb(bIK) + , bIM = bJd(q = 0x1 - bJh * q * q); + return [bII = 0xb4 * bII / (bJg / bIM * bJc(bIK) * bJf), bIJ = 0xb4 * bIJ / (bJg * (0x1 - bJh) / (q * bIM) * bJf)]; + }(bIH, bII); + return [bIH + bIJ[0x0], bII + bIJ[0x1]]; + } + function bJK(bIG, bIH) { + return 72.004 <= bIG && bIG <= 137.8347 && 0.8293 <= bIH && bIH <= 55.8271; + } + var bJN = Math['sin'] + , bJO = Math[dol(0xd82)] + , bJP = Math['atan2'] + , bJQ = Math['sqrt'] + , bIL = 0xbb8 * Math[dol(0xd83)] / 0xb4; + function bJS(bIG) { + var bIH = bIG[0x0] - 0.0065 + , bII = bIG[0x1] - 0.006 + , bIJ = bJQ(bIH * bIH + bII * bII) - 0.00002 * bJN(bII * bIL) + , bIK = bJP(bII, bIH) - 0.000003 * bJO(bIH * bIL); + return [bIJ * bJO(bIK), bIJ * bJN(bIK)]; + } + function bJY(bIG) { + var bIH = bIG[0x0] + , bII = bIG[0x1] + , bIJ = bJQ(bIH * bIH + bII * bII) + 0.00002 * bJN(bII * bIL) + , bIK = bJP(bII, bIH) + 0.000003 * bJO(bIH * bIL); + return [bIJ * bJO(bIK) + 0.0065, bIJ * bJN(bIK) + 0.006]; + } + var bK4 = 0xb4 / Math['PI'] + , bK5 = Math['PI'] / 0xb4 + , bK6 = 0x615299 + , bK7 = 20037508.342789244; + function bK8(bIG) { + return [bIG[0x0] * bK4 / bK6, (0.5 * Math['PI'] - 0x2 * Math['atan'](Math['exp'](-bIG[0x1] / bK6))) * bK4]; + } + function bKa(bIG) { + var bIH = Math['abs'](bIG[0x0]) <= 0xb4 ? bIG[0x0] : bIG[0x0] - 0x168 * (bIG[0x0] < 0x0 ? -0x1 : 0x1) + , bII = [bK6 * bIH * bK5, bK6 * Math['log'](Math['tan'](0.25 * Math['PI'] + 0.5 * bIG[0x1] * bK5))]; + return bII[0x0] > bK7 && (bII[0x0] = bK7), + bII[0x0] < -bK7 && (bII[0x0] = -bK7), + bII[0x1] > bK7 && (bII[0x1] = bK7), + bII[0x1] < -bK7 && (bII[0x1] = -bK7), + bII; + } + var bKe = Math['abs'] + , bKf = Math['pow'] + , bKg = [12890594.86, 8362377.87, 0x554fed, 3481989.83, 1678043.12, 0x0] + , bKh = [0x4b, 0x3c, 0x2d, 0x1e, 0xf, 0x0] + , bKi = [[1.410526172116255e-8, 0.00000898305509648872, -1.9939833816331, 200.9824383106796, -187.2403703815547, 91.6087516669843, -23.38765649603339, 2.57121317296198, -0.03801003308653, 17337981.2], [-7.435856389565537e-9, 0.000008983055097726239, -0.78625201886289, 96.32687599759846, -1.85204757529826, -59.36935905485877, 47.40033549296737, -16.50741931063887, 2.28786674699375, 10260144.86], [-3.030883460898826e-8, 0.00000898305509983578, 0.30071316287616, 59.74293618442277, 7.357984074871, -25.38371002664745, 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37], [-1.981981304930552e-8, 0.000008983055099779535, 0.03278182852591, 40.31678527705744, 0.65659298677277, -4.44255534477492, 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06], [3.09191371068437e-9, 0.000008983055096812155, 0.00006995724062, 23.10934304144901, -0.00023663490511, -0.6321817810242, -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4], [2.890871144776878e-9, 0.000008983055095805407, -3.068298e-8, 7.47137025468032, -0.00000353937994, -0.02145144861037, -0.00001234426596, 0.00010322952773, -0.00000323890364, 826088.5]] + , bKj = [[-0.0015702102444, 111320.7020616939, 0x60e374c3105a3, -0x24bb4115e2e164, 0x5cc55543bb0ae8, -0x7ce070193f3784, 0x5e7ca61ddf8150, -0x261a578d8b24d0, 0x665d60f3742ca, 82.5], [0.0008277824516172526, 111320.7020463578, 647795574.6671607, -4082003173.641316, 10774905663.51142, -15171875531.51559, 12053065338.62167, -5124939663.577472, 913311935.9512032, 67.5], [0.00337398766765, 111320.7020202162, 4481351.045890365, -23393751.19931662, 79682215.47186455, -115964993.2797253, 97236711.15602145, -43661946.33752821, 8477230.501135234, 52.5], [0.00220636496208, 111320.7020209128, 51751.86112841131, 3796837.749470245, 992013.7397791013, -1221952.21711287, 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5], [-0.0003441963504368392, 111320.7020576856, 278.2353980772752, 2485758.690035394, 6070.750963243378, 54821.18345352118, 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5], [-0.0003218135878613132, 111320.7020701615, 0.00369383431289, 823725.6402795718, 0.46104986909093, 2351.343141331292, 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45]]; + function bKk(bIG, bIH, bII) { + var bIJ = bKe(bIH) / bII[0x9] + , bIK = bII[0x0] + bII[0x1] * bKe(bIG) + , q = bII[0x2] + bII[0x3] * bIJ + bII[0x4] * bKf(bIJ, 0x2) + bII[0x5] * bKf(bIJ, 0x3) + bII[0x6] * bKf(bIJ, 0x4) + bII[0x7] * bKf(bIJ, 0x5) + bII[0x8] * bKf(bIJ, 0x6); + return [bIK *= bIG < 0x0 ? -0x1 : 0x1, q *= bIH < 0x0 ? -0x1 : 0x1]; + } + function bKr(bIG) { + for (var bIH = bIG[0x0], bII = bIG[0x1], bIJ = [], bIK = 0x0; bIK < bKh['length']; bIK++) + if (bKe(bII) > bKh[bIK]) { + bIJ = bKj[bIK]; + break; + } + return bKk(bIH, bII, bIJ); + } + function bKx(bIG) { + for (var bIH = bIG[0x0], bII = bIG[0x1], bIJ = [], bIK = 0x0; bIK < bKg['length']; bIK++) + if (bKg[bIK] <= bII) { + bIJ = bKi[bIK]; + break; + } + return bKk(bIH, bII, bIJ); + } + var bKD = { + 'to': { + 'GCJ02': bJs, + 'BD09': bJ3(bJY, bJs), + 'BD09MC': bJ3(bKr, bJY, bJs), + 'EPSG3857': bKa + } + } + , bKE = { + 'to': { + 'WGS84': bJi, + 'BD09': bJY, + 'BD09MC': bJ3(bKr, bJY), + 'EPSG3857': bJ3(bKa, bJi) + } + } + , bKF = { + 'to': { + 'WGS84': bJ3(bJi, bJS), + 'GCJ02': bJS, + 'EPSG3857': bJ3(bKa, bJi, bJS), + 'BD09MC': bKr + } + } + , bKG = { + 'to': { + 'WGS84': bK8, + 'GCJ02': bJ3(bJs, bK8), + 'BD09': bJ3(bJY, bJs, bK8), + 'BD09MC': bJ3(bKr, bJY, bJs, bK8) + } + } + , bKH = { + 'to': { + 'WGS84': bJ3(bJi, bJS, bKx), + 'GCJ02': bJ3(bJS, bKx), + 'EPSG3857': bJ3(bKa, bJi, bJS, bKx), + 'BD09': bKx + } + } + , bKI = Object['freeze']({ + 'WGS84': bKD, + 'GCJ02': bKE, + 'BD09': bKF, + 'EPSG3857': bKG, + 'BD09MC': bKH + }); + function bKJ(bIG, bIH, bII) { + bIG || bIX(doj(0x1c0)), + bIH || bIX(doj(0x1c1)), + bII || bIX(doj(0x1c2)); + var bIJ = bKI[bIH]; + if (bIJ || bIX(doj(0x1c3)), + bIH === bII) + return bIG; + var bIK = bIJ['to'][bII]; + bIK || bIX(doj(0x1c4)); + var q = typeof bIG; + if ('s' + doo(0x669) + 'g' != q && 'o' + doo(0x66a) + 't' != q && bIX(doj(0x1c5)), + 's' + doo(0x66b) + 'g' == q) + try { + bIG = JSON['parse'](bIG); + } catch (bKQ) { + bIX(doj(0x1c6)); + } + var bIM = !0x1; + bJ1(bIG) && (bIG['length'] < 0x2 && bIX(doj(0x1c7)), + bIZ(bIG[0x0]) && bIZ(bIG[0x1]) || bIX(doj(0x1c8)), + bIG = bIG[dol(0xd84)](Number), + bIM = !0x0); + var bIN = bIK; + return bIM ? bIN(bIG) : (function bIG(bIH, bII, bIJ) { + if (void 0x0 === bIJ && (bIJ = !0x1), + null !== bIH) + for (var bIK, q, bIM, bIN, bIO, bIP, bIQ, bIR, bIS = 0x0, bIT = 0x0, bIU = bIH['type'], bIV = 'F' + doo(0x66c) + 'n' === bIU, bIW = 'F' + doo(0x66d) + 'e' === bIU, bIZ = bIV ? bIH['features']['length'] : 0x1, bJ1 = 0x0; bJ1 < bIZ; bJ1++) { + bIO = (bIR = !!(bIQ = bIV ? bIH['features'][bJ1]['geometry'] : bIW ? bIH['geometry'] : bIH) && 'G' + doo(0x66e) + 'n' === bIQ['type']) ? bIQ['geometries']['length'] : 0x1; + for (var bJ3 = 0x0; bJ3 < bIO; bJ3++) { + var bJb = 0x0 + , bJc = 0x0; + if (null !== (bIN = bIR ? bIQ['geometries'][bJ3] : bIQ)) { + var bJd = bIN['type']; + switch (bIS = !bIJ || 'P' + doo(0x66f) + 'n' !== bJd && 'M' + doo(0x670) + 'n' !== bJd ? 0x0 : 0x1, + bJd) { + case null: + break; + case 'P' + doo(0x671) + 't': + if (!0x1 === bII(bIP = bIN['coordinates'], bIT, bJ1, bJb, bJc)) + return !0x1; + bIT++, + bJb++; + break; + case 'L' + doo(0x672) + 'g': + case 'M' + doo(0x673) + 't': + for (bIP = bIN['coordinates'], + bIK = 0x0; bIK < bIP['length']; bIK++) { + if (!0x1 === bII(bIP[bIK], bIT, bJ1, bJb, bJc)) + return !0x1; + bIT++, + 'M' + doo(0x674) + 't' === bJd && bJb++; + } + 'L' + doo(0x675) + 'g' === bJd && bJb++; + break; + case 'P' + doo(0x676) + 'n': + case 'M' + doo(0x677) + 'g': + for (bIP = bIN['coordinates'], + bIK = 0x0; bIK < bIP['length']; bIK++) { + for (q = 0x0; q < bIP[bIK]['length'] - bIS; q++) { + if (!0x1 === bII(bIP[bIK][q], bIT, bJ1, bJb, bJc)) + return !0x1; + bIT++; + } + 'M' + doo(0x678) + 'g' === bJd && bJb++, + 'P' + doo(0x679) + 'n' === bJd && bJc++; + } + 'P' + doo(0x67a) + 'n' === bJd && bJb++; + break; + case 'M' + doo(0x67b) + 'n': + for (bIP = bIN['coordinates'], + bIK = 0x0; bIK < bIP['length']; bIK++) { + for (q = bJc = 0x0; q < bIP[bIK]['length']; q++) { + for (bIM = 0x0; bIM < bIP[bIK][q]['length'] - bIS; bIM++) { + if (!0x1 === bII(bIP[bIK][q][bIM], bIT, bJ1, bJb, bJc)) + return !0x1; + bIT++; + } + bJc++; + } + bJb++; + } + break; + case 'G' + doo(0x67c) + 'n': + for (bIK = 0x0; bIK < bIN['geometries']['length']; bIK++) + if (!0x1 === bIG(bIN['geometries'][bIK], bII, bIJ)) + return !0x1; + break; + default: + bIX(doj(0x1c9)); + } + } + } + } + }(bIG, function(bIG) { + var bIH; + bIH = bIN(bIG), + bIG[0x0] = bIH[0x0], + bIG[0x1] = bIH[0x1]; + }), + bIG); + } + var bLh = { + 'WGS84': bIH, + 'WGS1984': bII, + 'EPSG4326': bIJ, + 'GCJ02': bIK, + 'AMap': q, + 'BD09': bIM, + 'BD09LL': bIN, + 'Baidu': bIO, + 'BMap': bIP, + 'BD09MC': bIQ, + 'BD09Meter': bIR, + 'EPSG3857': bIS, + 'EPSG900913': bIT, + 'EPSG102100': bIU, + 'WebMercator': bIV, + 'WM': bIW, + 'transform': bKJ + }; + bIG['WGS84'] = bIH, + bIG['WGS1984'] = bII, + bIG['EPSG4326'] = bIJ, + bIG['GCJ02'] = bIK, + bIG['AMap'] = q, + bIG['BD09'] = bIM, + bIG['BD09LL'] = bIN, + bIG['Baidu'] = bIO, + bIG['BMap'] = bIP, + bIG[dol(0xd85)] = bIQ, + bIG['BD09Meter'] = bIR, + bIG['EPSG3857'] = bIS, + bIG['EPSG900913'] = bIT, + bIG['EPSG102100'] = bIU, + bIG['WebMercator'] = bIV, + bIG['WM'] = bIW, + bIG['transform'] = bKJ, + bIG['default'] = bLh, + Object[dol(0xd86)](bIG, '_' + doo(0x67d) + 'e', { + 'value': !0x0 + }); + }); + ;GLEAxisHelper = function(bLi) { + var bLj, bLk, bLl, bLm; + var bLn = []; + var bLo; + function bLp(bLq) { + bLo = bLq; + bLj = bLq['viewer']; + this['_viewer'] = bLj; + bLk = bLj['scene']; + bLl = bLj['canvas']; + bLm = bLj['camera']; + } + function bLr(bLs) { + bLk['primitives']['add'](new bLi['DebugModelMatrixPrimitive']({ + 'modelMatrix': bLs, + 'length': 0x1e, + 'width': 0x2 + })); + } + function bLt(bLu) { + var bLv = new bLi['Cartesian3'](bLu['x'],bLu['y'],bLu['z']); + var bLw = bLi['Cartographic']['fromCartesian'](bLv); + var bLx = bLi[dol(0xd87)]['toDegrees'](bLw[dol(0xd88)]); + var bLy = bLi[dol(0xd89)]['toDegrees'](bLw['longitude']); + var bLz = bLw['height']; + return [bLx, bLy, bLz]; + } + function bLA(bLB, bLC, bLD, bLE, bLF) { + if (!bLi['defined'](bLj)) { + console[dol(0xd8a)](doj(0x1ca)); + return; + } + if (!bLi['defined'](bLD)) { + console['error'](doj(0x1cb)); + return; + } + if (!bLF) + bLF = 0x64; + var bLG = new bLi['Cartesian3'](); + var bLH = []; + var bLI = bLt(bLD); + bLH[dol(0xd8b)](bLI[0x0], bLI[0x1], bLI[0x2]); + bLC == 'X' ? bLH['push'](bLI[0x0] + bLF * 0.00001, bLI[0x1], bLI[0x2]) : null; + bLC == 'Y' ? bLH['push'](bLI[0x0], bLI[0x1] + bLF * 0.00001, bLI[0x2]) : null; + bLC == 'Z' ? bLH['push'](bLI[0x0], bLI[0x1], bLI[0x2] + bLF) : null; + var bLJ = bLj['entities']['getById']('a' + doo(0x67e) + 'r'); + if (!bLJ) { + var bLK = bLj['entities']['add']({ + 'id': 'a' + doo(0x67f) + '-' + bLC + '-' + bLB, + 'description': 'a' + doo(0x680) + '-' + bLC + '-' + bLB, + 'name': 'a' + doo(0x681) + '-' + bLC + '-' + bLB, + 'polyline': { + 'positions': bLi['Cartesian3']['fromDegreesArrayHeights'](bLH), + 'width': 0xa, + 'arcType': bLi['ArcType']['NONE'], + 'material': new bLi['PolylineArrowMaterialProperty'](bLi['defined'](bLE) ? bLE : bLi['Color']['PURPLE']) + } + }); + bLn['push'](bLK); + } + bLo['viewer']['scene']['requestRender'](); + } + bLp['prototype']['setOriginAndShow'] = function(bLL, bLM) { + try { + var bLN = bLo['Model']['getCenter'](bLL); + if (!bLN || !bLN['position']) + throw doj(0x1cc); + var bLO = bLi['Cartographic']['toCartesian'](new bLi['Cartographic'](bLN['position'][0x0],bLN['position'][0x1],0x0)); + bLA(bLL, 'X', bLO, bLi['Color']['RED'], bLM); + bLA(bLL, 'Y', bLO, bLi['Color']['GREEN'], bLM); + bLA(bLL, 'Z', bLO, bLi['Color'][dol(0xd8c)], bLM); + } catch (bLP) { + console['log']('错' + doo(0x682) + ':' + bLP); + } + } + ; + bLp['prototype'][dol(0xd8d)] = function(bLQ, bLR) { + if (bLn && bLn['length'] > 0x0) { + for (let bLS = 0x0; bLS < bLn['length']; bLS++) { + let bLT = bLn[bLS]; + var bLU = bLT['name']['split']('-'); + if (bLT && bLU[bLU['length'] - 0x1] == bLQ) { + bLT['show'] = bLR ? !![] : ![]; + } + } + bLo['viewer'][dol(0xd8e)]['requestRender'](); + } + } + ; + return bLp; + }(window['Cesium'] || {}); + ;GLE23D = function(bLV) { + var bLW; + function bLX(bLY, bLZ) { + bLW = this; + bM0(bLY, bLZ); + } + function bM0(bM1, bM2) { + bLW['_api'] = bM1; + bLW['_data'] = bM2; + bLW['_view_2d'] = undefined; + bLW['_view_3d'] = undefined; + bLW['_tileset'] = bM1['m_model']['get'](bM2['modelId']['toString']()); + bLW[dol(0xd8f)] = bM2['modelId']; + bLW['_topRendering'] = bLV['defaultValue'](bM2['isTopRendering'], !![]); + bLW['OnCadSelectionRevitId'] = bLV['defaultValue'](bM2['onCadSelectionRevitId'], undefined); + bLW['_lastRevitId'] = undefined; + bLW['_featureId'] = undefined; + bLW['_cad'] = undefined; + bM3(); + } + bLX[dol(0xd90)]['reset'] = bM0; + function bM3() { + var bM4 = bLW['_data']['div_2d']; + var bM5 = bLW['_data']['div_3d']; + if (!bLV['defined'](bM4) || !bLV['defined'](bM5)) { + console['error']('二' + doo(0x683) + '空'); + return; + } + var bM6 = 0x1; + if (bLV['defined'](bLW['_data']['zoomScalar'])) { + bM6 = Number(bLW['_data']['zoomScalar']); + } + bLW['_view_2d'] = document['getElementById'](bM4); + bLW[dol(0xd91)] = document['getElementById'](bM5); + if (!isEmpty(bLW['_view_2d']) && !isEmpty(bLW['_view_3d'])) { + if (bLW['_data']['styleType'] != undefined && bLW['_data']['styleType'] == 'W' + doo(0x684) + 'e') { + bLW['_view_3d']['parentElement']['setAttribute']('s' + doo(0x685) + 'e', doj(0x1cd)); + bLW['_view_2d']['setAttribute']('s' + doo(0x686) + 'e', doj(0x1ce)); + bLW['_view_3d']['setAttribute']('s' + doo(0x687) + 'e', doj(0x1cf)); + } else if (bLW[dol(0xd92)]['styleType'] != undefined && bLW['_data']['styleType'] == 'M' + doo(0x688) + 'e') { + bLW['_view_2d'][dol(0xd93)]('s' + doo(0x689) + 'e', doj(0x1d0)); + bLW[dol(0xd94)]['setAttribute']('s' + doo(0x68a) + 'e', doj(0x1d1)); + } else { + bLW['_view_2d']['setAttribute']('s' + doo(0x68b) + 'e', bLW['_data'][dol(0xd95)] != undefined && bLW[dol(0xd96)]['styleType'][dol(0xd97)] != undefined ? bLW['_data']['styleType']['Webpage'] : doj(0x1d2)); + bLW['_view_3d']['setAttribute']('s' + doo(0x68c) + 'e', bLW['_data']['styleType'] != undefined && bLW['_data']['styleType']['Mobile'] != undefined ? bLW['_data']['styleType']['Mobile'] : doj(0x1d3)); + if (bLW['_data']['styleType'] == undefined || bLW['_data']['styleType']['Webpage'] == undefined && bLW['_data']['styleType']['Mobile'] == undefined) { + bLW['_view_3d']['parentElement'][dol(0xd98)]('s' + doo(0x68d) + 'e', doj(0x1d4)); + } + } + bLW['_view_2d']['innerHTML'] = null; + var bM7 = new API(bLW[dol(0xd99)]['cadOptions']); + bLW['_cad'] = bM7['Cad']; + bLW['_api']['viewer']['scene'][dol(0xd9a)](); + } else { + console['error']('容' + doo(0x68e) + '在'); + return; + } + } + bLX['prototype']['openDrawing'] = function(bM8, bM9) { + var bMa = bLW['_data']['fileName']; + var bMb = bLW[dol(0xd9b)]; + var bMc = bLW['_featureId']; + var bMd = ![]; + if (bLV['defined'](bLW['_data']['notZoomTo'])) { + bMd = bLW['_data']['notZoomTo']; + } + var bMe = 0.2; + if (!isEmpty(bLW['_data']['modelAlpha'])) { + bMe = bLW['_data']['modelAlpha']; + } + bLW['_cad']['Scene']['clearScene'](); + bLW['_cad']['Drawing']['load'](bM8, bMb, { + 'flyto': !![], + 'initView': [0x0, -0x5a, 0x0], + 'visualRange': 0x186a0, + 'readyFunc': function(bMf) {}, + 'loadedFunc': function(bMg, bMh) { + if (!isEmpty(bMc)) { + var bMi = bMc['replace'](bMb + '^', ''); + if (bLW['_lastRevitId'] != undefined) { + bLW['_cad']['Entity'][dol(0xd9c)](bMb, bLW['_lastRevitId']); + } + bLW['_cad'][dol(0xd9d)]['setRevitColor'](bMb, bMi + '', 0xff0000); + bLW['_cad'][dol(0xd9e)]['zoomToRevit'](bMb, bMi + '', { + 'modelAlpha': 0x1, + 'flyTime': 0x1, + 'callback': function() {} + }); + bLW['_api']['Feature']['ZoomToFeature'](bMc, bMb, ![], bMe); + bLW['_lastRevitId'] = bMi; + bMc = undefined; + } + if (bM9) + bM9(bMg, bMh); + } + }); + bLW['_cad']['Event'][dol(0xd9f)](function(bMj) { + if (isEmpty(bMj)) + return; + if (bLW['_lastRevitId'] != undefined) { + bLW['_cad']['Entity']['resetRevitColor'](bMb, bLW['_lastRevitId']); + } + bLW['_cad'][dol(0xda0)][dol(0xda1)](bMb, bMj, 0xff0000); + bLW['_cad'][dol(0xda2)]['zoomToRevit'](bMb, bMj, { + 'modelAlpha': 0x1, + 'flyTime': 0x1, + 'callback': function() {} + }); + bLW['_api']['Feature']['ZoomToFeature'](bMj, bMb, !![], bMe); + if (bLW['_topRendering']) { + var bMk = new Map(); + for (var bMl = 0x0; bMl < bLW['_api']['tileset']['_selectedTiles']['length']; ++bMl) { + var bMm = bLW['_api']['tileset']['_selectedTiles'][bMl]['_content']; + var bMn = bLW['_api']['funcPublic']['GetFeaturesFromContent'](bMm, bMj); + if (bMn['size'] > 0x0) + bMk[dol(0xda3)](bMb + '^' + bMj, bMn['get'](bMj)); + } + var bMo = { + 'featureIds': bMk, + 'tagName': bMb, + 'isMultiple': ![] + }; + bLW['_api']['Feature']['topRendering'](bMo); + } + bLW['_lastRevitId'] = bMj; + if (bLV['defined'](bLW['OnCadSelectionRevitId'])) { + bLW[dol(0xda4)](bMj); + } + }); + bLW['_api']['viewer']['scene']['requestRender'](); + } + ; + bLX['prototype']['exit'] = function() { + bLW[dol(0xda5)]['Scene'][dol(0xda6)](); + bLW['_cad'] = undefined; + bLW['_api']['mGLE23D'] = undefined; + if (!isEmpty(bLW['_view_2d']) && !isEmpty(bLW['_view_3d'])) { + bLW['_view_2d']['setAttribute']('s' + doo(0x68f) + 'e', ''); + bLW[dol(0xda7)]['setAttribute']('s' + doo(0x690) + 'e', ''); + document['body']['setAttribute']('s' + doo(0x691) + 'e', 'o' + doo(0x692) + ';'); + bLW['_view_2d']['innerHTML'] = null; + bLW[dol(0xda8)]['Model']['original'](bLW['_tilesetId']); + bLW[dol(0xda9)]['Model']['location'](bLW['_tilesetId']); + bLW['_api']['Feature']['clearSelectColor'](); + bLW[dol(0xdaa)]['Feature']['clearTopRenderSelectColor'](); + bLW['_api']['Public']['clearHandler'](); + bLW['_api']['funcPublic']['clearBOX23line'](bLW['_api']['viewer']); + bLW['_api']['viewer']['scene']['requestRender'](); + } + } + ; + return bLX; + }(window['Cesium'] || {}); + GLECircleScan = function(bMp) { + var bMq; + var bMr, bMs, bMt, bMu, bMv; + var bMw; + var bMx = this; + var bMy = 0x100; + function bMz(bMA) { + bMq = bMA; + if (!bMp['defined'](bMA['viewer'])) + throw doj(0x1d5); + bMr = bMA['viewer']; + this['_viewer'] = bMA['viewer']; + bMs = bMr['scene']; + bMt = bMr['canvas']; + bMu = bMr['camera']; + bMv = bMr['scene']['globe']; + var bMB = bMq['defaults'][dol(0xdab)]; + bMw = document['getElementById'](bMB); + } + bMz['prototype']['addCircleScan'] = function(bMC, bMD, bME, bMF) { + function bMG(bME, bMI) { + this['_definitionChanged'] = new bMp['Event'](); + this['_color'] = undefined; + this['_colorSubscription'] = undefined; + this['color'] = bME; + this['duration'] = bMI; + this['_time'] = new Date()['getTime'](); + } + Object[dol(0xdac)](bMG['prototype'], { + 'isConstant': { + 'get': function() { + return ![]; + } + }, + 'definitionChanged': { + 'get': function() { + return this['_definitionChanged']; + } + }, + 'color': bMp['createPropertyDescriptor']('c' + doo(0x693) + 'r') + }); + bMG['prototype']['getType'] = function(bMJ) { + return 'E' + doo(0x694) + 'e'; + } + ; + bMG['prototype']['getValue'] = function(bMK, bML) { + if (!bMp['defined'](bML)) { + bML = {}; + } + bML['color'] = bMp['Property']['getValueOrClonedDefault'](this['_color'], bMK, bMp['Color']['WHITE'], bML['color']); + bML['time'] = (new Date()['getTime']() - this['_time']) % this['duration'] / this['duration']; + return bML; + } + ; + bMG['prototype']['equals'] = function(bMM) { + return this === bMM || bMM instanceof bMG && Property['equals'](this['_color'], bMM['_color']); + } + ; + bMp['EllipsoidFadeMaterialProperty'] = bMG; + bMp['Material']['EllipsoidFadeType'] = 'E' + doo(0x695) + 'e'; + bMp['Material']['EllipsoidFadeSource'] = doj(0x1d6) + doh(0xb1) + doj(0x1d7) + doj(0x1d8) + doj(0x1d9) + doj(0x1da) + doj(0x1db) + doj(0x1dc) + doj(0x1dd) + ('d' + doo(0x696) + '\x0a') + ('}' + doo(0x697) + '\x0a') + doj(0x1de) + doh(0xb2) + ('r' + doo(0x698) + '\x0a') + '}'; + bMp['Material']['_materialCache']['addMaterial'](bMp['Material']['EllipsoidFadeType'], { + 'fabric': { + 'type': bMp['Material']['EllipsoidFadeType'], + 'uniforms': { + 'color': new bMp['Color'](0x1,0x0,0x0,0x1), + 'time': 0x0 + }, + 'source': bMp['Material']['EllipsoidFadeSource'] + }, + 'translucent': function(bMN) { + return !![]; + } + }); + if (!(bME instanceof bMp['Color'])) { + bME = bMp['Color']['fromCssColorString'](bME); + } + bMr['entities']['add']({ + 'id': bMC + ('_' + doo(0x699) + 'n'), + 'name': 'E' + doo(0x69a) + 'e', + 'position': bMp['Cartesian3']['fromRadians'](bMD[0x0], bMD[0x1]), + 'ellipse': { + 'height': bMD[0x2], + 'semiMinorAxis': bMF, + 'semiMajorAxis': bMF, + 'material': new bMp['EllipsoidFadeMaterialProperty'](bME,0x2710) + } + }); + } + ; + bMz['prototype']['removeCircleScan'] = function(bMO) { + bMr['entities']['removeById'](bMO + ('_' + doo(0x69b) + 'n')); + } + ; + return bMz; + }(window['Cesium'] || {}); + ;GLEClippingSystem = function(bMP) { + var bMQ = 'C' + doo(0x69c) + '_'; + var bMR = 'G' + doo(0x69d) + 'X'; + var bMS = ['M' + doo(0x69e) + 'X', 'M' + doo(0x69f) + 'X', 'M' + doo(0x6a0) + 'Y', 'M' + doo(0x6a1) + 'Y', 'M' + doo(0x6a2) + 'Z', 'M' + doo(0x6a3) + 'Z']; + var bMT = { + 'tags': [], + 'plateLineColor': bMP['Color']['RED'], + 'isShowClipLine': ![], + 'ClipSpeed': 0x1, + 'RotateSpeed': 0x1, + 'box': { + 'outline': !![], + 'outlineColor': bMP['Color']['WHITE'], + 'planeColor': bMP['Color']['WHITE']['withAlpha'](0.1), + 'scalar': [0x0, 0x0, 0x0], + 'planesNames': bMS + }, + 'HelperLineWidth': 0xa, + 'helperSizeScale': 0x1, + 'RotationAngleRange': 0x5a, + 'selfVestPrefix': bMQ, + 'longClickTime': 0x3e8, + 'isStrict': !![] + }; + var bMU = {}; + var bMV = {}; + var bMW = 0x3e8; + var bMX = { + 'Helpers': !![], + 'ClippingPlaneEntities': !![] + }; + var bMY = { + 'PAN': 0x0, + 'ROTATE': 0x1, + 'ZOOM': 0x2 + }; + var bMZ; + var bN0 = -0x1; + function bN1(bN2) { + this['_API'] = bN2; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + } + bN1['prototype']['addByBoundary'] = function(bN3) { + var bN4 = { + 'id': '', + 'tags': [], + 'pointType': 0x0, + 'boundary': [], + 'radians': [], + 'height': 0x0, + 'extrudedHeight': 0xa, + 'plateLineColor': bMP['Color']['RED'], + 'isShowClipLine': ![], + 'ClipSpeed': 0x1, + 'RotateSpeed': 0x1, + 'box': { + 'outline': !![], + 'outlineColor': bMP['Color']['WHITE'], + 'planeColor': bMP['Color']['WHITE']['withAlpha'](0.1) + }, + 'helperSizeScale': 0x1, + 'selfVestPrefix': bMQ, + 'unionClippingRegions': !![] + }; + _that = this; + if (!bMP['defined'](bN3) || !bMP['defined'](bN3[dol(0xdad)]) || !bMP['defined'](bN3['tags']) || bN3['tags']['length'] < 0x1) { + console['log']('创' + doo(0x6a4) + '置'); + return; + } + var bN5 = bN3[dol(0xdae)]; + if (!Array['isArray'](bN3[dol(0xdaf)])) { + bN3['tags'] = [bN3['tags']]; + } + bMU[bN5] = {}; + bYj(bMU[bN5], bN4); + bYj(bMU[bN5], bN3); + bMU[bN5]['isFreeMode'] = !![]; + if (!bMU[bN5]['boundary'] || bMU[bN5]['boundary']['length'] < 0x9 || bMU[bN5]['boundary']['length'] % 0x3 != 0x0) { + console['log'](doj(0x1df)); + return; + } + bMU[bN5]['radians'] = []; + bMU[bN5]['radiansClipPositions'] = []; + bMU[bN5]['radiansClipPositionsTB'] = []; + var bN6 = _that['_API']['Model'][dol(0xdb0)](bMU[bN5]['tags'][0x0]); + bMU[bN5]['radiansClipPositionsTB']['push'](bN6['position'][0x0], bN6['position'][0x1], bMU[bN5]['height'], bN6['position'][0x0], bN6[dol(0xdb1)][0x1], bMU[bN5]['height'] + bMU[bN5]['extrudedHeight']); + var bN7 = bMU[bN5]['height'] + bMU[bN5]['extrudedHeight'] * 0.5; + switch (bMU[bN5]['pointType']) { + default: + case 0x0: + for (var bN8 = 0x0; bN8 < bMU[bN5]['boundary']['length']; bN8 += 0x3) { + bMU[bN5]['radians']['push'](bMU[bN5]['boundary'][bN8 + 0x0], bMU[bN5][dol(0xdb2)][bN8 + 0x1]); + if (bN8 < bMU[bN5]['boundary'][dol(0xdb3)] - 0x3) { + bMU[bN5]['radiansClipPositions']['push'](0.5 * (bMU[bN5]['boundary'][bN8 + 0x0] + bMU[bN5]['boundary'][bN8 + 0x3]), 0.5 * (bMU[bN5]['boundary'][bN8 + 0x1] + bMU[bN5]['boundary'][bN8 + 0x4]), bN7); + } else { + bMU[bN5][dol(0xdb4)]['push'](0.5 * (bMU[bN5]['boundary'][bN8 + 0x0] + bMU[bN5]['boundary'][0x0]), 0.5 * (bMU[bN5]['boundary'][bN8 + 0x1] + bMU[bN5][dol(0xdb5)][0x1]), bN7); + } + } + break; + case 0x1: + for (var bN8 = 0x0; bN8 < bMU[bN5]['boundary']['length']; bN8 += 0x3) { + bMU[bN5]['radians']['push'](bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x0]), bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x1])); + if (bN8 < bMU[bN5]['boundary']['length'] - 0x3) { + bMU[bN5]['radiansClipPositions']['push'](0.5 * (bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x0]) + bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x3])), 0.5 * (bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x1]) + bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x4])), bN7); + } else { + bMU[bN5][dol(0xdb6)]['push'](0.5 * (bMP[dol(0xdb7)]['toRadians'](bMU[bN5]['boundary'][bN8 + 0x0]) + bMP['Math']['toRadians'](bMU[bN5][dol(0xdb8)][0x0])), 0.5 * (bMP['Math']['toRadians'](bMU[bN5]['boundary'][bN8 + 0x1]) + bMP['Math']['toRadians'](bMU[bN5]['boundary'][0x1])), bN7); + } + } + break; + case 0x2: + for (var bN8 = 0x0; bN8 < bMU[bN5]['boundary']['length']; bN8 += 0x3) { + var bNb = _that['_API']['Public']['convertModelToWorld'](bMU[bN5]['boundary'][bN8 + 0x0], bMU[bN5]['boundary'][bN8 + 0x1], bMU[bN5]['boundary'][bN8 + 0x2], bMU[bN5]['tags'][0x0]); + bMU[bN5]['radians']['push'](bMP['Math']['toRadians'](bNb[0x0]), bMP['Math'][dol(0xdb9)](bNb[0x1])); + var bNc; + if (bN8 < bMU[bN5]['boundary']['length'] - 0x3) { + bNc = _that[dol(0xdba)]['Public']['convertModelToWorld'](bMU[bN5]['boundary'][bN8 + 0x3], bMU[bN5]['boundary'][bN8 + 0x4], bMU[bN5]['boundary'][bN8 + 0x5], bMU[bN5]['tags'][0x0]); + } else { + bNc = _that[dol(0xdbb)]['Public']['convertModelToWorld'](bMU[bN5]['boundary'][0x0], bMU[bN5]['boundary'][0x1], bMU[bN5][dol(0xdbc)][0x2], bMU[bN5]['tags'][0x0]); + } + bMU[bN5]['radiansClipPositions']['push'](0.5 * (bMP['Math']['toRadians'](bNb[0x0]) + bMP['Math']['toRadians'](bNc[0x0])), 0.5 * (bMP['Math']['toRadians'](bNb[0x1]) + bMP['Math']['toRadians'](bNc[0x1])), bN7); + } + break; + case 0x3: + for (var bN8 = 0x0; bN8 < bMU[bN5]['boundary']['length']; bN8 += 0x3) { + var bNb = _that[dol(0xdbd)]['Public']['cartesian3ToRadians']([bMU[bN5]['boundary'][bN8 + 0x0], bMU[bN5][dol(0xdbe)][bN8 + 0x1], bMU[bN5]['boundary'][bN8 + 0x2]]); + bMU[bN5]['radians']['push'](bMP['Math']['toRadians'](bNb[0x0]), bMP['Math']['toRadians'](bNb[0x1])); + var bNc; + if (bN8 < bMU[bN5]['boundary']['length'] - 0x3) { + bNc = _that['_API'][dol(0xdbf)]['cartesian3ToRadians']([bMU[bN5]['boundary'][bN8 + 0x3], bMU[bN5]['boundary'][bN8 + 0x4], bMU[bN5][dol(0xdc0)][bN8 + 0x5]]); + } else { + bNc = _that['_API']['Public'][dol(0xdc1)]([bMU[bN5]['boundary'][0x0], bMU[bN5]['boundary'][0x1], bMU[bN5]['boundary'][0x2]]); + } + bMU[bN5]['radiansClipPositions']['push'](0.5 * (bMP['Math']['toRadians'](bNb[0x0]) + bMP['Math']['toRadians'](bNc[0x0])), 0.5 * (bMP['Math']['toRadians'](bNb[0x1]) + bMP['Math']['toRadians'](bNc[0x1])), bN7); + } + break; + } + bMX = { + 'Helpers': ![], + 'ClippingPlaneEntities': !![] + }; + if (!isNaN(bMU[bN5][dol(0xdc2)]) && bMU[bN5]['longClickTime'] >= 0x0) { + bMW = bMU[bN5]['longClickTime']; + } + bNg(bN5); + _that['_viewer']['scene']['requestRender'](); + } + ; + function bNg(bNh) { + var bNi = new bMP[(dol(0xdc3))](bMR); + var bNj = !bMP['defined'](bMU[bNh]['box']) ? bMP['Color']['WHITE'] : bMU[bNh]['box']['planeColor']instanceof bMP['Color'] ? bMU[bNh]['box']['planeColor'] : bMP['defaultValue'](bMP['Color']['fromCssColorString'](bMU[bNh]['box']['planeColor']), bMP['Color'][dol(0xdc4)]); + var bNk = !bMP['defined'](bMU[bNh]['box']) ? bMP['Color']['WHITE'] : bMU[bNh]['box']['outlineColor']instanceof bMP['Color'] ? bMU[bNh]['box']['outlineColor'] : bMP['defaultValue'](bMP['Color']['fromCssColorString'](bMU[bNh]['box']['outlineColor']), bMP['Color']['WHITE']); + bNi[dol(0xdc5)]['add']({ + 'name': bMU[bNh]['selfVestPrefix'] + bNh, + 'polygon': { + 'hierarchy': bMP['Cartesian3']['fromRadiansArray'](bMU[bNh]['radians']), + 'extrudedHeight': bMU[bNh]['height'] + bMU[bNh][dol(0xdc6)], + 'height': bMU[bNh]['height'], + 'material': bNj['withAlpha'](0.1), + 'outline': bMU[bNh]['box']['outline'], + 'outlineColor': bNk['withAlpha'](0.5), + 'show': bMP['defaultValue'](bMU[bNh]['box'][dol(0xdc7)], !![]) + } + }); + bMU[bNh]['clippingPlaneEntitiesDataSources'] = bNi; + _that['_viewer']['dataSources']['add'](bNi); + var bNl = bMP['defaultValue'](bMU[bNh]['unionClippingRegions'], !![]); + var bNm = bMU[bNh]['plateLineColor']instanceof bMP['Color'] ? bMU[bNh][dol(0xdc8)] : bMP['defaultValue'](bMP[dol(0xdc9)]['fromCssColorString'](bMU[bNh]['plateLineColor']), bMP['Color']['RED']); + var bNn = new bMP['ClippingPlaneCollection']({ + 'planes': [], + 'edgeColor': bNm, + 'edgeWidth': bMU[bNh]['isShowClipLine'] ? 0x2 : 0x0, + 'unionClippingRegions': bNl + }); + bMU[bNh]['ClippingPlanes'] = bNn; + var bNo = _that['_API']['Model']['getCenter']()['center']; + var bNp = bMP['Transforms']['eastNorthUpToFixedFrame'](bNo); + var bNq = _that['_API']['tileset']['clippingPlanesOriginMatrix']['clone'](); + var bNr = bMP['Matrix4'][dol(0xdca)](bNq, new bMP['Matrix4']()); + var bNs = bMP['Matrix4']['multiply'](bNr, bNp, new bMP['Matrix4']()); + bNn['modelMatrix'] = bMP['defined'](bNs) ? bNs : bMP['Matrix4']['IDENTITY'][dol(0xdcb)](); + bMU[bNh]['Models'] = []; + for (var bNt = 0x0; bNt < bMU[bNh]['tags']['length']; bNt++) { + var bNu = bMU[bNh]['tags'][bNt]; + var bNv = _that[dol(0xdcc)]['Model']['get'](bNu); + bMU[bNh]['Models']['push'](bNv); + if (bNv['_clippingPlanes']) { + bNv['_clippingPlanes']['removeAll'](); + bNv['_clippingPlanes']['destroy'](); + bNv['_clippingPlanes'] = undefined; + } + bNv['_clippingPlanes'] = bNn; + } + var bNw = function(bNx, bNy, bNz) { + var bNA = _that['_API'][dol(0xdcd)]['radiansToModelCartesian3'](bNx[0x1], bNx[0x0], bNx[0x2], bMU[bNh]['tags'][0x0]); + var bNB = _that['_API']['Public'][dol(0xdce)](bNy[0x0], bNy[0x1], bNy[0x2], bMU[bNh]['tags'][0x0]); + var bNC = _that['_API']['Public']['radiansToModelCartesian3'](bNz[0x0], bNz[0x1], bNz[0x2], bMU[bNh]['tags'][0x0]); + bNH[dol(0xdcf)](bNB); + bNG['push']({ + 'pCenter': bNA, + 'p1st': bNB, + 'p2nd': bNC + }); + }; + var bND = _that[dol(0xdd0)]['Public']['cartesian3ToRadians']([bNo['x'], bNo['y'], bNo['z']]); + var bNE = new bMP['ClippingPlane'](bNl ? new bMP['Cartesian3'](0x0,0x0,0x1) : new bMP['Cartesian3'](0x0,0x0,-0x1),(bNl ? 0x1 : -0x1) * (bND[0x2] - bMU[bNh][dol(0xdd1)])); + if (bNE) { + bNn['add'](bNE); + } + var bNF = new bMP['ClippingPlane'](bNl ? new bMP['Cartesian3'](0x0,0x0,-0x1) : new bMP[(dol(0xdd2))](0x0,0x0,0x1),(bNl ? 0x1 : -0x1) * (bMU[bNh]['height'] + bMU[bNh]['extrudedHeight'] - bND[0x2])); + if (bNF) { + bNn['add'](bNF); + } + var bNG = []; + var bNH = []; + for (var bNI = 0x0; bNI < bMU[bNh]['radiansClipPositions']['length'] / 0x3; bNI++) { + var bNJ = [bMU[bNh]['radiansClipPositions'][bNI * 0x3 + 0x0], bMU[bNh]['radiansClipPositions'][bNI * 0x3 + 0x1], bMU[bNh]['radiansClipPositions'][bNI * 0x3 + 0x2]]; + var bNK = bMU[bNh]['height']; + var bNL = [bMU[bNh]['radians'][bNI * 0x2 + 0x1], bMU[bNh]['radians'][bNI * 0x2 + 0x0], bNK]; + var bNM; + if (bNI < bMU[bNh]['radiansClipPositions']['length'] / 0x3 - 0x1) { + bNM = [bMU[bNh]['radians'][bNI * 0x2 + 0x3], bMU[bNh]['radians'][bNI * 0x2 + 0x2], bNK]; + } else { + bNM = [bMU[bNh]['radians'][0x1], bMU[bNh]['radians'][0x0], bNK]; + } + bNw(bNJ, bNL, bNM); + } + var bNN = function(bNO, bNP, bNQ) { + var bNR, bNS, bNT; + bNR = bNO; + bNS = bNP; + bNT = bNQ; + return (bNS['x'] - bNR['x']) * (bNT['y'] - bNR['y']) - (bNS['y'] - bNR['y']) * (bNT['x'] - bNR['x']); + }; + var bNU = function(bNJ, bNL, bNM, bNY) { + var bNZ = new bMP['Cartesian3'](); + var bO0 = 0x0; + var bO1 = bOk(bNJ, bNL, bNM); + bO0 = bOs(new bMP['Cartesian3'](), bO1['a'], bO1['b'], bO1['c'], bO1['d']); + bNZ = bOy(bNJ, bNL, bNM); + bMP['Cartesian3']['normalize'](bNZ, bNZ); + if (bNN(bNL, bNM, new bMP['Cartesian3']()) > 0x0) { + bO0 *= bNY ? 0x1 : -0x1; + } else if (bNN(bNL, bNM, new bMP['Cartesian3']()) < 0x0) { + bO0 *= bNY ? -0x1 : 0x1; + } else { + bO0 = 0x0; + } + return { + 'nornal': bNZ, + 'distance': bO0 + }; + }; + var bO2 = function(bO3, bO4) { + var bO5 = new bMP['Cartesian3'](); + bMP['Cartesian3']['negate'](bO3, bO5); + var bO6 = new bMP['ClippingPlane'](bNl ? bO5 : bO3,(bNl ? 0x1 : -0x1) * bO4); + if (bO6) { + bNn['add'](bO6); + } + }; + var bO7 = bOP(bNH); + if (bO7 < 0x0) { + for (var bNt = 0x0; bNt < bNG['length']; bNt++) { + var bO9 = bNG[bNt]; + var bOa = bNU(bO9[dol(0xdd3)], bO9[dol(0xdd4)], bO9['p2nd'], ![]); + var bOb = new bMP['Cartesian3'](); + bMP['Cartesian3']['negate'](bOa['nornal'], bOb); + bO2(bOb, bOa['distance']); + } + } else { + for (var bNt = 0x0; bNt < bNG['length']; bNt++) { + var bO9 = bNG[bNt]; + var bOa = bNU(bO9['pCenter'], bO9['p1st'], bO9['p2nd'], !![]); + bO2(bOa['nornal'], bOa['distance']); + } + } + } + bN1['prototype']['updateUnionClippingRegions'] = function(bOf, bOg) { + _that = this; + if (!bMP['defined'](bOf) || !bMP['defined'](bMU[bOf])) { + console['log']('无' + doo(0x6a5) + 'd'); + return; + } + if (bMU[bOf]['ClippingPlanes']) { + for (var bOh = 0x0; bOh < bMU[bOf]['ClippingPlanes']['_planes']['length']; bOh++) { + var bOi = bMU[bOf]['ClippingPlanes']['_planes'][bOh]; + if (bMU[bOf]['ClippingPlanes']['unionClippingRegions'] != bOg) { + bOi['distance'] *= -0x1; + var bOj = new bMP['Cartesian3'](); + bMP['Cartesian3']['negate'](bOi['normal'], bOj); + bOi['normal'] = bOj; + } + } + bMU[bOf]['ClippingPlanes']['unionClippingRegions'] = bOg; + } + _that['_viewer']['scene']['requestRender'](); + } + ; + function bOk(bOl, bOm, bOn) { + var q = (bOm['y'] - bOl['y']) * (bOn['z'] - bOl['z']) - (bOm['z'] - bOl['z']) * (bOn['y'] - bOl['y']); + var bOp = (bOm['z'] - bOl['z']) * (bOn['x'] - bOl['x']) - (bOm['x'] - bOl['x']) * (bOn['z'] - bOl['z']); + var bOq = (bOm['x'] - bOl['x']) * (bOn['y'] - bOl['y']) - (bOm['y'] - bOl['y']) * (bOn['x'] - bOl['x']); + var bOr = 0x0 - (q * bOl['x'] + bOp * bOl['y'] + bOq * bOl['z']); + return { + 'a': q, + 'b': bOp, + 'c': bOq, + 'd': bOr + }; + } + function bOs(bOt, q, bOv, bOw, bOx) { + return Math['abs'](q * bOt['x'] + bOv * bOt['y'] + bOw * bOt['z'] + bOx) / Math['sqrt'](q * q + bOv * bOv + bOw * bOw); + } + function bOy(bOz, bOA, bOB) { + var bOC = (bOA['y'] - bOz['y']) * (bOB['z'] - bOz['z']) - (bOA['z'] - bOz['z']) * (bOB['y'] - bOz['y']); + var bOD = (bOA['z'] - bOz['z']) * (bOB['x'] - bOz['x']) - (bOA['x'] - bOz['x']) * (bOB['z'] - bOz['z']); + var bOE = (bOA['x'] - bOz['x']) * (bOB['y'] - bOz['y']) - (bOA['y'] - bOz['y']) * (bOB['x'] - bOz['x']); + return new bMP['Cartesian3'](bOC,bOD,bOE); + } + function bOF(bOG) { + var bOH = bOG['length']; + var bOI = 0x0; + for (var bOJ = 0x0; bOJ < bOH; bOJ++) { + var bOK = new bMP['Cartesian3']() + , bOL = new bMP[(dol(0xdd5))](); + if (bOJ == 0x0) { + bMP['Cartesian3']['subtract'](bOG[bOH - 0x1] - bOG[bOJ], bOK); + } else { + bMP['Cartesian3']['subtract'](bOG[bOJ - 0x1] - bOG[bOJ], bOK); + } + if (bOJ == bOH - 0x1) { + bMP['Cartesian3']['subtract'](bOG[0x0] - bOG[bOJ], bOL); + } else { + bMP['Cartesian3']['subtract'](bOG[bOJ + 0x1] - bOG[bOJ], bOL); + } + bMP['Cartesian3']['normalize'](bOK, bOK); + bMP['Cartesian3']['normalize'](bOL, bOL); + var bOM = bMP['Cartesian3']['dot'](bOK, bOL); + var bON = Math['acos'](bOM); + bOI += bON; + } + var bOO = (bOH - 0x2) * Math['PI']; + return bOI < bOO - bOH * 0.00001; + } + function bOP(bOQ) { + var bOR = 0x0; + if (bOQ['length'] > 0x2) { + for (var bOS = 0x0; bOS < bOQ[dol(0xdd6)]; bOS++) { + var bOT = bOQ[bOS]; + var bOU = bOS < bOQ['length'] - 0x1 ? bOQ[bOS + 0x1] : bOQ[0x0]; + bOR += bOT['x'] * bOU['y'] - bOU['x'] * bOT['y']; + } + } + return bOR * 0.5; + } + bN1['prototype']['add'] = function(bOV) { + _that = this; + if (!bMP['defined'](bOV) || !bMP['defined'](bOV['id']) || !bMP['defined'](bOV['tags']) || bOV['tags'][dol(0xdd7)] < 0x1) { + console['log']('创' + doo(0x6a6) + '置'); + return; + } + var bOW = bOV['id']; + if (!Array['isArray'](bOV['tags'])) { + bOV['tags'] = [bOV['tags']]; + } + bYh(bOV); + bMX = { + 'Helpers': !![], + 'ClippingPlaneEntities': !![] + }; + if (!isNaN(bMU[bOW]['longClickTime']) && bMU[bOW]['longClickTime'] >= 0x0) { + bMW = bMU[bOW]['longClickTime']; + } + bMU[bOW]['unionClippingRegions'] = !![]; + bMU[bOW]['selfVestPrefix'] += bOW + '_'; + bMU[bOW][dol(0xdd8)] = { + 'AxesHelper': { + 'translation': bMP['Matrix4'][dol(0xdd9)]['clone']() + }, + 'RotateHelper': { + 'X': 0x0, + 'Y': 0x0, + 'Z': 0x0, + 'rotation': bMP['Matrix4']['IDENTITY']['clone']() + }, + 'PlaneDistance': { + 'xMin': -Infinity, + 'xMax': Infinity, + 'yMin': -Infinity, + 'yMax': Infinity, + 'zMin': -Infinity, + 'zMax': Infinity + } + }; + bMU[bOW]['tags'] = bMP['defined'](bMU[bOW]['tags']) ? bMU[bOW]['tags'] : [_that[dol(0xdda)]['tileset']['id']]; + if (!bMP['defined'](bMU[bOW]['tags']) || bMU[bOW]['tags']['length'] == 0x0) { + delete bMU[bOW]; + console[dol(0xddb)]('请' + doo(0x6a7) + '型'); + return; + } + var bOX = ![]; + for (var bOY = 0x0; bOY < bMU[bOW]['tags']['length']; bOY++) { + var bOZ = bMU[bOW]['tags'][bOY]; + var bP0 = _that['_API']['Model']['get'](bOZ); + if (!bMP['defined'](bP0)) { + bOX = !![]; + console['log'](doh(0xb3) + bOZ + ('未' + doo(0x6a8) + '。')); + return; + } + if (!bP0['isBimModel']) { + delete bMU[bOW]; + console['log'](doj(0x1e0)); + return; + } + } + if (bOX) { + delete bMU[bOW]; + return; + } + var bP1 = _that['_API']['Model']['getModelsCenter'](bMU[bOW]['tags']); + bMU[bOW][dol(0xddc)] = {}; + bMU[bOW]['ModelCenter'] = bYn(bP1); + if (bMU[bOW]['tags']['length'] == 0x1) { + var bOZ = bMU[bOW]['tags'][0x0]; + _that['_API']['tileset'] = _that['_API']['m_model']['get'](bOZ['toString']()); + } else { + var bP3 = bMP['Matrix4']['IDENTITY']['clone'](); + for (var bOY = 0x0; bOY < bMU[bOW]['tags']['length']; bOY++) { + var bOZ = bMU[bOW]['tags'][bOY]; + var bP0 = _that[dol(0xddd)][dol(0xdde)]['get'](bOZ['toString']()); + if (!bP3['equals'](bP0['modelMatrix'])) { + bMU[bOW]['multiModelDifferentMatrix'] = !![]; + break; + } + } + _that['_API']['tileset'] = _that['_API']['m_model']['get'](bMU[bOW]['tags'][0x0]['toString']()); + } + if (_that['_API']['tileset']['restoreMCS'] && _that['_API']['tileset']['_newTransform']) { + bMU[bOW][dol(0xddf)] = bMP['Matrix4']['IDENTITY'][dol(0xde0)](); + bMP['Matrix4']['clone'](_that['_API']['tileset'][dol(0xde1)], bMU[bOW]['_newTransform']); + } + if (bMU[bOW]['isStrict'] && bMU[bOW]['tags']['length'] == 0x1) { + var bOZ = bMU[bOW]['tags'][0x0]; + var bP0 = _that['_API']['Model']['get'](bOZ); + var bP9 = bP0['clippingPlanes']; + if (bMP[dol(0xde2)](bP9) && bMV[bOZ]) { + bMU[bOW] = bMU[bMV[bOZ]['id']]; + bMU[bOW]['alias'] = bMV[bOZ]['id']; + var bPa = bMV[bOZ]['center']; + var bPb = bMV[bOZ]['size']; + if (bMP['defined'](bMU[bOW]['ClippingPlanes']) && bMP['defined'](bMU[bOW]['Models']) && bMU[bOW]['Models']['length'] > 0x0) { + bMU[bOW]['ClippingPlanes']['removeAll'](); + bXt(_that, bMU[bOW]['alias']); + bTt(_that, bMU[bOW]['alias']); + this['setVisible'](bMU[bOW]['alias'], { + 'Helpers': !![], + 'ClippingPlaneEntities': !![] + }); + this['repairEvent'](); + bR0(_that, bMU[bOW]['alias'], bPa, bPb, !![]); + bPF(bOW); + return; + } + } + } + var bP9 = bXr(bOW); + bMU[bOW]['ClippingPlanes'] = bP9; + bMU[bOW]['Models'] = []; + var bPd = []; + for (var bOY = 0x0; bOY < bMU[bOW]['tags']['length']; bOY++) { + var bOZ = bMU[bOW]['tags'][bOY]; + var bP0 = _that['_API']['Model'][dol(0xde3)](bOZ); + bPd['push'](bP0['tilesetoutline']); + if (bOV['isInitModelClipBox']) { + bP0['root']['_header']['initClipBox'] = bOV['initClipBox']; + bP0['root']['_header']['initStrictClip'] = bMU[bOW]['isStrict']; + } + var bPh = bY4(bP0); + if (bMU[bOW]['isStrict'] && bMP['defined'](bPh) && bPh['length'] == 0x2) { + var bPa = new bMP['Cartesian3'](); + var bPb = new bMP['Cartesian3'](); + var bPk = new bMP[(dol(0xde4))](bP0['root']['_header']['offset'][0x0] / 0x3e8,bP0['root']['_header']['offset'][0x1] / 0x3e8,bP0['root']['_header'][dol(0xde5)][0x2] / 0x3e8); + var bPl = new bMP['Cartesian3'](bPh[0x0]['x'],bPh[0x0]['y'],bPh[0x0]['z']); + var bPm = new bMP['Cartesian3'](bPh[0x1]['x'],bPh[0x1]['y'],bPh[0x1]['z']); + var bPn = bMP['Matrix4']['IDENTITY']['clone'](); + if (bMU[bOW]['_newTransform']) { + bMP['Matrix4']['clone'](bMU[bOW]['_newTransform'], bPn); + } else { + bMP['Matrix4']['clone'](bP0['root']['_header']['transform'], bPn); + } + bMP['Cartesian3']['subtract'](bPm, bPl, bPb); + bMP['Cartesian3']['subtract'](bPl, bPk, bPl); + bMP['Cartesian3']['subtract'](bPm, bPk, bPm); + bMP['Matrix4']['multiplyByPoint'](bPn, bPl, bPl); + bMP['Matrix4']['multiplyByPoint'](bPn, bPm, bPm); + bMP['Cartesian3']['midpoint'](bPm, bPl, bPa); + bMP['Cartesian3']['abs'](bPb, bPb); + if (bMU[bOW]['tags']['length'] == 0x1) { + bMV[bOZ] = { + 'id': bOW, + 'clippingPlanes': bP0['_clippingPlanes'], + 'center': bPa, + 'size': bPb + }; + bMU[bOW]['ClippingPlanes']['initSize'] = bPb; + if (!bMP['defined'](bMU[bOW][dol(0xde6)])) { + bMU[bOW]['clipBox'] = {}; + bMU[bOW]['clipBox']['center'] = bPa['clone'](); + bMU[bOW]['clipBox'][dol(0xde7)] = bPb['clone'](); + } + bMU[bOW]['selfClipBox'] = { + 'center': bPa, + 'size': bPb + }; + } + } + bP0['_clippingPlanes'] = bP9; + if (bOV['isInitModelClipBox']) { + if (bMV[bOZ]) { + bMV[bOZ]['clippingPlanes'] = bP9; + } else { + bMV[bOZ] = { + 'clippingPlanes': bP9 + }; + } + } + bMU[bOW]['Models']['push'](bP0); + } + if (bPd['length'] > 0x1) + bPU(_that, bOW, bPd); + bQ5(_that, bOW); + var bPa = new bMP['Cartesian3'](); + var bPb = new bMP['Cartesian3'](); + bMP['Cartesian3']['midpoint'](bMU[bOW]['ModelCenter']['maxpos'], bMU[bOW]['ModelCenter']['minpos'], bPa); + bMP['Cartesian3']['subtract'](bMU[bOW]['ModelCenter']['maxpos'], bMU[bOW]['ModelCenter']['minpos'], bPb); + bMP['Cartesian3']['abs'](bPb, bPb); + var bPq = new bMP['Cartesian3'](); + bMP['Cartesian3']['unpack'](bMU[bOW]['box']['scalar'], 0x0, bPq); + if (isNaN(bPq['x'])) + bPq['x'] = 0x0; + if (isNaN(bPq['y'])) + bPq['y'] = 0x0; + if (isNaN(bPq['z'])) + bPq['z'] = 0x0; + bMP['Cartesian3']['add'](bPb, bPq, bPb); + bMU[bOW]['ModelCenter'][dol(0xde8)] = bPb; + bMU[bOW]['ModelCenter']['initSize'] = bPb['clone'](); + bMU[bOW]['ModelCenter']['initCenter'] = bMU[bOW]['ModelCenter']['center']['clone'](); + var bPr = bPa['clone'](); + var bPs = bMP['Transforms']['eastNorthUpToFixedFrame'](bPr); + var bPt = _that['_API']['tileset']['clippingPlanesOriginMatrix'][dol(0xde9)](); + var bPu = bMP['Matrix4']['inverse'](bPt, new bMP['Matrix4']()); + var bP3 = bMP['Matrix4']['multiply'](bPu, bPs, new bMP['Matrix4']()); + bMU[bOW]['ClippingPlanes']['modelMatrix'] = bMP['defined'](bP3) ? bP3 : bMP['Matrix4']['IDENTITY']['clone'](); + var bPw = []; + bMP['Matrix4']['pack'](bMU[bOW][dol(0xdea)][dol(0xdeb)], bPw); + bMU[bOW]['ClippingPlanes']['initModelMatrix'] = bPw; + bXt(_that, bOW); + bTt(_that, bOW); + bWm(_that); + _that['setClipByMinimaxPoints'](bOW, bMU[bOW]['ModelCenter']['minpos'], bMU[bOW]['ModelCenter']['maxpos'], 0x1, !![]); + bMP['Cartesian3']['add'](bMU[bOW]['ModelCenter']['size'], bPq, bMU[bOW]['ModelCenter']['size']); + _that['setClipByCenterAndSize'](bOW, bMU[bOW]['ModelCenter']['center'], bMU[bOW]['ModelCenter'][dol(0xdec)], 0x0, !![]); + if (bMU[bOW]['isStrict'] && bMU[bOW]['tags']['length'] == 0x1) { + var bOZ = bMU[bOW]['tags'][0x0]; + var bP0 = _that['_API']['Model']['get'](bOZ); + var bPh = bY4(bP0); + if (bMP['defined'](bPh) && bPh['length'] == 0x2 && bMP['defined'](bMV[bOZ])) { + var bPa = bMV[bOZ]['center']; + var bPb = bMV[bOZ]['size']; + bR0(_that, bOW, bPa, bPb, !![]); + } + } + var bPw = []; + bMP[dol(0xded)]['pack'](bMU[bOW]['ClippingPlanes']['modelMatrix'], bPw); + bMU[bOW]['ClippingPlanes']['initModelMatrix'] = bPw; + bMU[bOW]['ClippingPlanes']['initSize'] = bPb; + bMP['Cartesian3']['clone'](bMU[bOW]['clippingBoxCenter'], bMU[bOW]['initClipingBoxCenter']); + bMP['Cartesian3']['clone'](bMU[bOW][dol(0xdee)], bMU[bOW]['initClippingBoxSize']); + bMU[bOW]['parametricConfiguration'] = { + 'translation': new bMP['Cartesian3'](), + 'rotate': new bMP['Cartesian3'](), + 'range': { + 'MAX-X': 0x1, + 'MIN-X': -0x1, + 'MAX-Y': 0x1, + 'MIN-Y': -0x1, + 'MAX-Z': 0x1, + 'MIN-Z': -0x1 + }, + 'distance': { + 'MAX-X': bMU[bOW]['initClippingBoxSize']['x'] * 0.5, + 'MIN-X': -bMU[bOW]['initClippingBoxSize']['x'] * 0.5, + 'MAX-Y': bMU[bOW]['initClippingBoxSize']['y'] * 0.5, + 'MIN-Y': -bMU[bOW]['initClippingBoxSize']['y'] * 0.5, + 'MAX-Z': bMU[bOW]['initClippingBoxSize']['z'] * 0.5, + 'MIN-Z': -bMU[bOW]['initClippingBoxSize']['z'] * 0.5 + }, + 'modelMatrix': bMU[bOW]['ClippingPlanes']['modelMatrix'], + 'helperModelMatrix': bMP['Matrix4']['IDENTITY']['clone']() + }; + if (!bMU[bOW]['ClippingPlanes']['unionClippingRegions']) { + for (var bOY = 0x0; bOY < bMU[bOW]['ClippingPlanes']['_planes']['length']; bOY++) { + var bPE = bMU[bOW]['ClippingPlanes']['_planes'][bOY]; + bPE['distance'] *= -0x1; + } + } + bPF(bOW); + _that['_viewer']['scene']['requestRender'](); + } + ; + function bPF(bPG) { + var bPH = _that['_API']['Model']['getModelsCenter'](bMU[bPG][dol(0xdef)]); + var bPI = new bMP['Cartesian3'](); + var bPJ = _that['_API']['Public']['cartesian3ToRadians']([bPH['maxpos']['x'], bPH['maxpos']['y'], bPH['maxpos']['z']]); + var bPK = _that['_API']['Public']['radiansToModelCartesian3'](bPJ[0x1], bPJ[0x0], bPJ[0x2], bMU[bPG]['tags'][0x0]); + var bPL = _that['_API']['Public']['cartesian3ToRadians']([bPH[dol(0xdf0)]['x'], bPH['minpos']['y'], bPH['minpos']['z']]); + var bPM = _that['_API']['Public']['radiansToModelCartesian3'](bPL[0x1], bPL[0x0], bPL[0x2], bMU[bPG]['tags'][0x0]); + bMP['Cartesian3']['clone'](bPH['center'], bMU[bPG]['ModelCenter']['center']); + bMP['Cartesian3']['subtract'](bPK, bPM, bMU[bPG]['ModelCenter']['size']); + var bPN = new bMP['Cartesian3'](); + bMP['Cartesian3'][dol(0xdf1)](bMU[bPG]['box'][dol(0xdf2)], 0x0, bPN); + if (isNaN(bPN['x'])) + bPN['x'] = 0x0; + if (isNaN(bPN['y'])) + bPN['y'] = 0x0; + if (isNaN(bPN['z'])) + bPN['z'] = 0x0; + bMP['Cartesian3'][dol(0xdf3)](bMU[bPG]['ModelCenter']['size'], bPN, bMU[bPG]['ModelCenter']['size']); + if (bMU[bPG]['isStrict'] && bMU[bPG]['tags']['length'] == 0x1) { + var bPO = bMU[bPG][dol(0xdf4)][0x0]; + var bPP = _that['_API']['Model']['get'](bPO); + var bPQ = bY4(bPP); + if (bMP['defined'](bPQ) && bPQ['length'] == 0x2 && bMP['defined'](bMU[bPG]['selfClipBox'])) { + var bPR = bMU[bPG][dol(0xdf5)]['center']; + var bPI = bMU[bPG]['selfClipBox']['size']; + bMP['Cartesian3']['clone'](bPR, bMU[bPG]['ModelCenter']['center']); + bMP['Cartesian3']['clone'](bPI, bMU[bPG][dol(0xdf6)]['size']); + } + } + bMU[bPG]['ModelCenter']['initSize'] = bMU[bPG]['ModelCenter']['size']['clone'](); + bMU[bPG]['ModelCenter'][dol(0xdf7)] = bMU[bPG]['ModelCenter']['center']['clone'](); + _that['setClipByCenterAndSize'](bPG, bMU[bPG]['ModelCenter']['center'], bMU[bPG]['ModelCenter']['size'], 0x0, !![]); + bW4(bPG); + } + var bPT = bMP['Matrix4']['IDENTITY']['clone'](); + function bPU(bPV, bPW, bPX) { + if (bPX['length'] > 0x1) { + var bPY = []; + for (var bPZ = 0x0; bPZ < bPX[dol(0xdf8)]; bPZ++) { + var bQ0 = bPX[bPZ]; + if (bQ0['positions']instanceof Float64Array) { + var bQ1 = []['slice']['call'](bQ0['positions']); + bPY = bPY['concat'](bQ1); + } + } + var bQ2 = new bYu()['setFromArray'](bPY); + var bQ3 = new bMP['Cartesian3'](); + var bQ4 = new bMP['Cartesian3'](); + bQ2['getCenter'](bQ3); + bQ2['getSize'](bQ4); + bMU[bPW]['ModelCenter'][dol(0xdf9)]['positions'] = bPY; + bMU[bPW]['ModelCenter'][dol(0xdfa)][dol(0xdfb)]['center'] = bMU[bPW]['ModelCenter']['oldsphere']['boundingVolume']['_orientedBoundingBox']['center'] = bQ3; + } + } + function bQ5(bQ6, bQ7) { + var bQ8 = bMU[bQ7]['tags']; + bPT = bMP[dol(0xdfc)]['IDENTITY']['clone'](); + var bQ9 = []; + bQ6['_API']['m_model']['forEach'](function(bQa, bQb) { + if (bMP['defined'](bQ8) && Array[dol(0xdfd)](bQ8) && bQ8['indexOf'](bQa['id']) > -0x1 || !bMP['defined'](bQ8)) { + if (bQa['tilesetoutline']['boundingsphere'] != undefined) { + bQ9['push'](bQa); + } + } + }); + if (bQ9[dol(0xdfe)] < 0x1) + return; + var bQc = !isEmpty(bQ9[0x0]['modelMatrix']) ? new bMP['Matrix4']['clone'](bQ9[0x0]['modelMatrix']) : new bMP['Matrix4'][(dol(0xdff))](bMP['Matrix4'][dol(0xe00)]); + bQc['clone'](bPT); + var bQd = []; + var bQe = bMU[bQ7]['ModelCenter']['oldsphere']['positions']; + for (var bQf = 0x0; bQf < bQe[dol(0xe01)]; bQf += 0x3) { + var bQg = new bMP['Cartesian3'](bQe[bQf],bQe[bQf + 0x1],bQe[bQf + 0x2]); + bMP['Matrix4']['multiplyByPoint'](bPT, bQg, bQg); + bMP['Cartesian3'][dol(0xe02)](bQg, bQd, bQf); + } + bMU[bQ7]['ModelCenter']['oldsphere'][dol(0xe03)] = bQd; + bMP['Matrix4']['multiplyByPoint'](bPT, bMU[bQ7]['ModelCenter']['oldsphere']['boundingsphere']['center'], bMU[bQ7]['ModelCenter'][dol(0xe04)]['boundingsphere']['center']); + bMP['Matrix4']['multiplyByPoint'](bPT, bMU[bQ7][dol(0xe05)]['oldsphere']['boundingVolume']['_orientedBoundingBox']['center'], bMU[bQ7]['ModelCenter']['oldsphere'][dol(0xe06)]['_orientedBoundingBox']['center']); + } + bN1['prototype']['setVisible'] = function(bQh, bQi) { + _that = this; + if (!bMP['defined'](bQh) || !bMP['defined'](bMU[bQh]) || !bMP[dol(0xe07)](bQi)) { + console['log']('无' + doo(0x6a9) + '置'); + return; + } + if (bMP[dol(0xe08)](bQi['Helpers'])) { + bUz(_that, bQh, bMU[bQh]['Helpers'], bQi['Helpers']); + bMX['Helpers'] = bQi['Helpers']; + } + if (bMU[bQh]['clippingPlaneEntitiesDataSources']) { + bMU[bQh]['clippingPlaneEntitiesDataSources']['entities']['show'] = bQi['ClippingPlaneEntities']; + bMX[dol(0xe09)] = bQi['ClippingPlaneEntities']; + } + _that['_viewer']['scene']['requestRender'](); + } + ; + bN1['prototype']['setSpeed'] = function(bQj, bQk) { + _that = this; + if (!bMP['defined'](bQj) || !bMP[dol(0xe0a)](bMU[bQj]) || !bMP['defined'](bQk)) { + console['log']('无' + doo(0x6aa) + '置'); + return; + } + bYj(bMU[bQj], bQk); + } + ; + bN1['prototype']['getById'] = function(bQl) { + _that = this; + if (!bMP[dol(0xe0b)](bQl) || !bMP['defined'](bMU[bQl])) { + console['log']('无' + doo(0x6ab) + 'd'); + return; + } + if (bMU[bQl]['isFreeMode']) { + return bMU[bQl]; + } + bMU[bQl][dol(0xe0c)] = []; + bMP['Matrix4']['pack'](bMU[bQl]['ClippingPlanes']['modelMatrix'], bMU[bQl]['snapshotData'], 0x0); + bMP['Matrix4']['pack'](bMU[bQl]['parametricConfiguration']['helperModelMatrix'], bMU[bQl]['snapshotData'], 0x10); + bMP[dol(0xe0d)]['pack'](bMU[bQl]['HelperConfigs']['AxesHelper']['translation'], bMU[bQl]['snapshotData'], 0x20); + bMP['Matrix4']['pack'](bMU[bQl]['HelperConfigs']['RotateHelper']['rotation'], bMU[bQl]['snapshotData'], 0x30); + bMP['Cartesian3']['pack'](bMU[bQl]['parametricConfiguration']['rotate'], bMU[bQl]['snapshotData'], 0x40); + bMP['Cartesian3']['pack'](bMU[bQl]['parametricConfiguration']['translation'], bMU[bQl]['snapshotData'], 0x43); + bMU[bQl]['snapshotData']['push'](bMU[bQl]['parametricConfiguration']['distance']['M' + doo(0x6ac) + 'X'], bMU[bQl]['parametricConfiguration']['distance']['M' + doo(0x6ad) + 'X'], bMU[bQl]['parametricConfiguration']['distance']['M' + doo(0x6ae) + 'Y'], bMU[bQl]['parametricConfiguration']['distance']['M' + doo(0x6af) + 'Y'], bMU[bQl]['parametricConfiguration']['distance']['M' + doo(0x6b0) + 'Z'], bMU[bQl][dol(0xe0e)]['distance']['M' + doo(0x6b1) + 'Z']); + bMU[bQl]['snapshotData']['push'](bMU[bQl]['parametricConfiguration']['range']['M' + doo(0x6b2) + 'X'], bMU[bQl]['parametricConfiguration']['range']['M' + doo(0x6b3) + 'X'], bMU[bQl]['parametricConfiguration']['range']['M' + doo(0x6b4) + 'Y'], bMU[bQl]['parametricConfiguration']['range']['M' + doo(0x6b5) + 'Y'], bMU[bQl]['parametricConfiguration']['range']['M' + doo(0x6b6) + 'Z'], bMU[bQl]['parametricConfiguration']['range']['M' + doo(0x6b7) + 'Z']); + bMP['Matrix4']['pack'](bMU[bQl]['CurrentCPBoxModelMatrix'], bMU[bQl]['snapshotData'], 0x52); + bMP['Matrix4']['pack'](bMU[bQl][dol(0xe0f)], bMU[bQl]['snapshotData'], 0x62); + bMP['Cartesian3']['pack'](bMU[bQl]['clippingBoxCenter'], bMU[bQl]['snapshotData'], 0x72); + bMP['Cartesian3']['pack'](bMU[bQl]['clippingBoxSize'], bMU[bQl]['snapshotData'], 0x75); + bMP['Cartesian3']['pack'](bMU[bQl]['initClipingBoxCenter'], bMU[bQl]['snapshotData'], 0x78); + bMP['Cartesian3']['pack'](bMU[bQl]['initClippingBoxSize'], bMU[bQl]['snapshotData'], 0x7b); + bMP['Cartesian3']['pack'](bMU[bQl]['clippingPlaneEntities'][0x0]['position']['_value'], bMU[bQl][dol(0xe10)], 0x7e); + bMP['Quaternion']['pack'](bMU[bQl]['clippingPlaneEntities'][0x0]['orientation']['_value'], bMU[bQl]['snapshotData'], 0x81); + return bMU[bQl]; + } + ; + function bQm(bQn, bQo, bQp, bQq) { + var bQr = function(bQs) { + if (bQs instanceof bMP[dol(0xe11)]) { + if (bQs['_primitives']['length'] > 0x0) { + for (var bQt = 0x0; bQt < bQs['_primitives']['length']; bQt++) { + var bQu = bQs['_primitives'][bQt]; + bQr(bQu); + } + } + } else if (bQs instanceof bMP[dol(0xe12)]) { + if (bQs['isAxesHelper']) { + bMP['Matrix4']['clone'](bQs['initModelMatrix'], bQs['modelMatrix']); + } + if (bQs['isRotateHelper']) { + bMP['Matrix4']['clone'](bQs['initModelMatrix'], bQs['modelMatrix']); + } + } + }; + if (bMU[bQo]['Helpers'] && bMU[bQo]['Helpers']['length'] > 0x0) { + bQr(bMU[bQo]['Helpers']); + } + var bQv = function(bQw) { + var bQx = bQp; + var bQy = 0x0; + var bQz = 0x0; + var bQA = 0x0; + var bQB = bMP['Transforms'][dol(0xe13)](bQx, new bMP['HeadingPitchRoll'](bQy,bQz,bQA)); + for (var bQC = 0x0; bQC < bQw['length']; bQC++) { + var bQD = bQw[bQC]; + if (bQD instanceof bMP['Entity']) { + bMP[dol(0xe14)]['clone'](bQB, bQD['orientation']['_value']); + bMP[dol(0xe15)]['clone'](bQx, bQD['position']['_value']); + var bQE = new bMP['Cartesian2'](); + switch (bQD['name']) { + case 'C' + doo(0x6b8) + '_' + bQo + ('_' + doo(0x6b9) + 'X'): + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bQq['y'],bQq['z']), bQE); + break; + case 'C' + doo(0x6ba) + '_' + bQo + ('_' + doo(0x6bb) + 'Y'): + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bQq['x'],bQq['z']), bQE); + break; + case 'C' + doo(0x6bc) + '_' + bQo + ('_' + doo(0x6bd) + 'Z'): + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bQq['x'],bQq['y']), bQE); + break; + case 'C' + doo(0x6be) + '_' + bQo + ('_' + doo(0x6bf) + 'X'): + bMP[dol(0xe16)]['clone'](new bMP['Cartesian2'](bQq['y'],bQq['z']), bQE); + break; + case 'C' + doo(0x6c0) + '_' + bQo + ('_' + doo(0x6c1) + 'Y'): + bMP[dol(0xe17)]['clone'](new bMP['Cartesian2'](bQq['x'],bQq['z']), bQE); + break; + case 'C' + doo(0x6c2) + '_' + bQo + ('_' + doo(0x6c3) + 'Z'): + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bQq['x'],bQq['y']), bQE); + break; + default: + break; + } + bMP['Cartesian2']['clone'](bQE, bQD['plane'][dol(0xe18)]['_value']); + } + } + }; + if (bMU[bQo]['clippingPlaneEntities'] && bMU[bQo]['clippingPlaneEntities']['length'] > 0x0) { + bQv(bMU[bQo]['clippingPlaneEntities']); + } + if (bMU[bQo]['HelperConfigs']) { + bMU[bQo]['HelperConfigs']['AxesHelper']['translation'] = bMP['Matrix4']['IDENTITY']['clone'](); + bMU[bQo][dol(0xe19)]['RotateHelper']['X'] = 0x0; + bMU[bQo]['HelperConfigs']['RotateHelper']['Y'] = 0x0; + bMU[bQo]['HelperConfigs']['RotateHelper']['Z'] = 0x0; + bMU[bQo]['HelperConfigs']['RotateHelper'][dol(0xe1a)] = bMP['Matrix4']['IDENTITY']['clone'](); + bMU[bQo]['HelperConfigs']['PlaneDistance']['xMax'] = bQq['x'] * 0.5; + bMU[bQo]['HelperConfigs']['PlaneDistance']['xMin'] = bQq['x'] * 0.5; + bMU[bQo]['HelperConfigs'][dol(0xe1b)]['yMax'] = bQq['y'] * 0.5; + bMU[bQo]['HelperConfigs']['PlaneDistance']['yMin'] = bQq['y'] * 0.5; + bMU[bQo]['HelperConfigs'][dol(0xe1c)]['zMax'] = bQq['z'] * 0.5; + bMU[bQo]['HelperConfigs']['PlaneDistance']['zMin'] = bQq['z'] * 0.5; + } + } + bN1['prototype']['remove'] = function(bQF, bQG) { + _that = this; + if (!bMP['defined'](bQF) || !bMP['defined'](bMU[bQF])) { + return; + } + var bQH = function(bQI, bQJ, bQK) { + if (bMP['defined'](bMU[bQI]['ClippingPlanes'])) { + if (bMP['defined'](bMU[bQI]['ClippingPlanes']['initModelMatrix'])) { + var bQL = bMU[bQI]['ClippingPlanes']['initModelMatrix']; + bMU[bQI]['ClippingPlanes'][dol(0xe1d)] = bMP['Matrix4']['unpack'](bQL); + } + if (bMP['defined'](bMU[bQI]['ClippingPlanes']['initSize'])) { + var bQK = bMU[bQI]['ClippingPlanes'][dol(0xe1e)]; + if (bMU[bQI]['ClippingPlanes']['_planes']['length'] > 0x0) { + for (var bQN = 0x0; bQN < bMU[bQI]['ClippingPlanes'][dol(0xe1f)]['length']; bQN++) { + var bQO = bMU[bQI]['ClippingPlanes']['_planes'][bQN]; + switch (bQO['name']) { + case 'C' + doo(0x6c4) + '_' + bQI + ('_' + doo(0x6c5) + 'X'): + bQO[dol(0xe20)] = bQK['x'] * 0.5; + break; + case 'C' + doo(0x6c6) + '_' + bQI + ('_' + doo(0x6c7) + 'Y'): + bQO['distance'] = bQK['y'] * 0.5; + break; + case 'C' + doo(0x6c8) + '_' + bQI + ('_' + doo(0x6c9) + 'Z'): + bQO['distance'] = bQK['z'] * 0.5; + break; + case 'C' + doo(0x6ca) + '_' + bQI + ('_' + doo(0x6cb) + 'X'): + bQO['distance'] = bQK['x'] * 0.5; + break; + case 'C' + doo(0x6cc) + '_' + bQI + ('_' + doo(0x6cd) + 'Y'): + bQO['distance'] = bQK['y'] * 0.5; + break; + case 'C' + doo(0x6ce) + '_' + bQI + ('_' + doo(0x6cf) + 'Z'): + bQO['distance'] = bQK['z'] * 0.5; + break; + default: + break; + } + } + } + } + bQm(_that, bQI, bQJ, bQK); + } + }; + if (bMP['defined'](bMU[bQF]['Models'])) { + if (bMU[bQF]['Models']['length'] == 0x1) { + var bQP = bMU[bQF]['Models'][0x0]; + var bQQ = bQP['id']; + var bQR = bY4(bQP); + if (!bQG && bMP['defined'](bQR) && bQR['length'] == 0x2 && bMP[dol(0xe21)](bMV[bQQ])) { + var bQS = bMU[bQF]['alias'] ? bMU[bQF]['alias'] : bQF; + var bQT = bMV[bQQ]['center']; + var bQU = bMV[bQQ]['size']; + bQH(bQS, bQT, bQU); + _that['SetVisible'](bQS, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + _that['_viewer'][dol(0xe22)]['requestRender'](); + } + if (!bQG && bMP['defined'](bMV[bQQ])) { + bQP['_clippingPlanes'] = bMV[bQQ]['clippingPlanes']; + bPF(bQS); + } else { + bQP['_clippingPlanes'] && bQP['_clippingPlanes'][dol(0xe23)](); + } + } else if (bMU[bQF]['Models']['length'] > 0x1) { + for (var bQV = 0x0; bQV < bMU[bQF]['Models']['length']; bQV++) { + var bQP = bMU[bQF]['Models'][bQV]; + bQP['_clippingPlanes']['removeAll'](); + var bQQ = bQP['id']; + var bQR = bY4(bQP); + if (!bQG && bMP['defined'](bQR) && bQR[dol(0xe24)] == 0x2) { + var bQZ = 'c' + doo(0x6d0) + '_' + bQQ; + _that['Create']({ + 'id': bQZ, + 'tags': bQQ, + 'initClipBox': bQR, + 'isInitModelClipBox': !![], + 'isStrict': !![] + }); + _that['SetVisible'](bQZ, { + 'Helpers': ![], + 'ClippingPlaneEntities': ![] + }); + } + } + } + } + bUO(_that, bQF, bMU[bQF]['Helpers']); + if (bMP['defined'](bMU[bQF]['clippingPlaneEntitiesDataSources'])) { + _that['_viewer']['dataSources']['remove'](bMU[bQF]['clippingPlaneEntitiesDataSources'], !![]); + bMU[bQF]['clippingPlaneEntitiesDataSources'] = undefined; + } + if (bMP['defined'](bMU[bQF]['ModelCenter'])) { + bMU[bQF]['ModelCenter']['size'] = bMU[bQF]['ModelCenter']['initSize']['clone'](); + bMU[bQF]['ModelCenter']['center'] = bMU[bQF]['ModelCenter']['initCenter']['clone'](); + } + _that['_API']['Public']['clearHandler']('L' + doo(0x6d1) + 'N'); + _that['_API']['Public']['clearHandler']('L' + doo(0x6d2) + 'P'); + _that['_API']['Public']['clearHandler']('M' + doo(0x6d3) + 'N'); + _that['_API']['Public']['clearHandler']('M' + doo(0x6d4) + 'P'); + _that['_API']['Public']['clearHandler']('M' + doo(0x6d5) + 'E'); + _that['_viewer']['scene']['requestRender'](); + } + ; + bN1['prototype']['repairEvent'] = function() { + _that = this; + bWm(_that); + } + ; + function bR0(bR1, bR2, bR3, bR4, bR5) { + if (!bMP['defined'](bR2) || !bMP['defined'](bMU[bR2])) { + console['log']('无' + doo(0x6d6) + 'd'); + return; + } + var bR6 = bR4; + var bR7 = bR2; + var bR8 = ![]; + var bR9 = { + 'x': 0x0, + 'y': 0x0, + 'z': 0x0 + }; + var bRa = bMP['Matrix4']['IDENTITY']['clone']() + , bRb = bMP['Matrix4']['IDENTITY']['clone'](); + var bRc = bMU[bR7]['box']['planesNames']; + bRc['forEach'](bRd => { + var bRe = 0xa; + var bRf; + var bRg = bMU[bR7]['selfVestPrefix'] + bRd; + var bRh = bMU[bR7][dol(0xe25)] + bRd; + switch (bRd) { + case 'M' + doo(0x6d7) + 'X': + bRh = bMU[bR7]['selfVestPrefix'] + ('M' + doo(0x6d8) + 'X'); + bRe = bR6['x'] * 0.5; + bRf = new bMP['Cartesian2'](bR6['y'],bR6['z']); + break; + case 'M' + doo(0x6d9) + 'X': + bRh = bMU[bR7]['selfVestPrefix'] + ('M' + doo(0x6da) + 'X'); + bRe = bR6['x'] * 0.5; + bRf = new bMP['Cartesian2'](bR6['y'],bR6['z']); + break; + case 'M' + doo(0x6db) + 'Y': + bRh = bMU[bR7]['selfVestPrefix'] + ('M' + doo(0x6dc) + 'Y'); + bRe = bR6['y'] * 0.5; + bRf = new bMP['Cartesian2'](bR6['x'],bR6['z']); + break; + case 'M' + doo(0x6dd) + 'Y': + bRh = bMU[bR7]['selfVestPrefix'] + ('M' + doo(0x6de) + 'Y'); + bRe = bR6['y'] * 0.5; + bRf = new bMP['Cartesian2'](bR6['x'],bR6['z']); + break; + case 'M' + doo(0x6df) + 'Z': + bRh = bMU[bR7]['selfVestPrefix'] + ('M' + doo(0x6e0) + 'Z'); + bRe = bR6['z'] * 0.5; + bRf = new bMP['Cartesian2'](bR6['x'],bR6['y']); + break; + case 'M' + doo(0x6e1) + 'Z': + bRh = bMU[bR7]['selfVestPrefix'] + ('M' + doo(0x6e2) + 'Z'); + bRe = bR6['z'] * 0.5; + bRf = new bMP['Cartesian2'](bR6['x'],bR6['y']); + break; + default: + return; + } + var bRi = bMU[bR7]['ClippingPlanesMap'][bRg]; + var bRj = bMU[bR7][dol(0xe26)][bRg]; + if (bMP['defined'](bRi)) { + bMU[bR7]['ClippingPlanesMap'][bRg]['distance'] = bRe; + bMU[bR7]['ClippingPlanesMap'][bRh]['distance'] = bRe; + } + if (bMP['defined'](bRj) && bMP['defined'](bRf)) { + bMP['Cartesian2']['clone'](bRf, bMU[bR7]['clippingPlaneEntitiyMap'][bRg]['plane'][dol(0xe27)]['_value']); + bMP['Cartesian2']['clone'](bRf, bMU[bR7]['clippingPlaneEntitiyMap'][bRh]['plane']['dimensions']['_value']); + } + } + ); + var bRk = bMU[bR7]['InitCPBoxModelMatrix']['clone'](); + var bRl = new bMP[(dol(0xe28))](); + var bRm = bMP['Matrix3']['IDENTITY']['clone'](); + bMP['Matrix4']['getTranslation'](bRk, bRl); + bMP['Matrix4']['getMatrix3'](bRk, bRm); + var bRn = bMP['Matrix4']['fromRotationTranslation'](bRm); + var bRo = bMP['Cartesian3'][dol(0xe29)](bR3, bRl); + var bRp = new bMP['Cartesian3'](); + bMP['Cartesian3']['subtract'](bR3, bRl, bRp); + if (bRo !== 0x0) { + bMP['Cartesian3']['normalize'](bRp, bRp); + bMP[dol(0xe2a)]['multiplyByScalar'](bRp, bRo, bRp); + } + bMP['Matrix4']['fromTranslation'](bRp['clone'](), bRa); + var bRq = bR3['clone'](); + var bRr = bMP['Transforms']['eastNorthUpToFixedFrame'](bRq); + var bRs = bR1['_API'][dol(0xe2b)]['clippingPlanesOriginMatrix'][dol(0xe2c)](); + var bRt = bMP['Matrix4']['inverse'](bRs, new bMP[(dol(0xe2d))]()); + var bRu = bMP['Matrix4']['multiply'](bRt, bRr, new bMP['Matrix4']()); + bMU[bR7]['ClippingPlanes']['modelMatrix'] = bMP['defined'](bRu) ? bRu : bMP['Matrix4']['IDENTITY']['clone'](); + bMP['Cartesian3']['clone'](bMU[bR7]['initClipingBoxCenter'], bMU[bR7]['clippingBoxCenter']); + bVA(bR1, bR2, bRa, undefined, undefined, bR8, bR9, !![]); + bVt(bR1, bR2, bRa, bR8, !![]); + for (var bRv in bMU[bR7]['ClippingPlanesMap']) { + if (Object['hasOwnProperty']['call'](bMU[bR7]['ClippingPlanesMap'], bRv)) { + if (bRv['includes']('M' + doo(0x6e3) + 'X')) + bMU[bR7]['HelperConfigs']['PlaneDistance']['xMin'] = bMU[bR7][dol(0xe2e)][bRv]['distance']; + if (bRv['includes']('M' + doo(0x6e4) + 'Y')) + bMU[bR7]['HelperConfigs']['PlaneDistance']['yMin'] = bMU[bR7]['ClippingPlanesMap'][bRv]['distance']; + if (bRv['includes']('M' + doo(0x6e5) + 'Z')) + bMU[bR7]['HelperConfigs']['PlaneDistance']['zMin'] = bMU[bR7]['ClippingPlanesMap'][bRv]['distance']; + if (bRv['includes']('M' + doo(0x6e6) + 'X')) + bMU[bR7]['HelperConfigs']['PlaneDistance']['xMax'] = bMU[bR7]['ClippingPlanesMap'][bRv]['distance']; + if (bRv['includes']('M' + doo(0x6e7) + 'Y')) + bMU[bR7]['HelperConfigs']['PlaneDistance']['yMax'] = bMU[bR7]['ClippingPlanesMap'][bRv]['distance']; + if (bRv['includes']('M' + doo(0x6e8) + 'Z')) + bMU[bR7]['HelperConfigs'][dol(0xe2f)]['zMax'] = bMU[bR7][dol(0xe30)][bRv]['distance']; + } + } + if (bR5) { + bMU[bR7]['MaxClipPlanDistance'] = { + 'min': new bMP['Cartesian3'](bMU[bR7]['HelperConfigs']['PlaneDistance'][dol(0xe31)],bMU[bR7]['HelperConfigs']['PlaneDistance']['yMin'],bMU[bR7]['HelperConfigs']['PlaneDistance']['zMin']), + 'max': new bMP[(dol(0xe32))](bMU[bR7]['HelperConfigs']['PlaneDistance']['xMax'],bMU[bR7]['HelperConfigs']['PlaneDistance']['yMax'],bMU[bR7]['HelperConfigs'][dol(0xe33)]['zMax']) + }; + } + bMP['Matrix4']['multiplyByPoint'](bRa, bMU[bR7]['clippingBoxCenter'], bMU[bR7]['clippingBoxCenter']); + bMU[bR7]['clippingBoxSize']['x'] = bMU[bR7]['HelperConfigs']['PlaneDistance']['xMin'] + bMU[bR7][dol(0xe34)]['PlaneDistance'][dol(0xe35)]; + bMU[bR7]['clippingBoxSize']['y'] = bMU[bR7]['HelperConfigs']['PlaneDistance']['yMin'] + bMU[bR7]['HelperConfigs']['PlaneDistance']['yMax']; + bMU[bR7]['clippingBoxSize']['z'] = bMU[bR7]['HelperConfigs']['PlaneDistance']['zMin'] + bMU[bR7]['HelperConfigs'][dol(0xe36)][dol(0xe37)]; + if (bMP['defined'](bMU[bR7]['parametricConfiguration'])) { + bMU[bR7]['parametricConfiguration']['modelMatrix'] = bMU[bR7]['ClippingPlanes']['modelMatrix']; + bMU[bR7]['parametricConfiguration']['helperModelMatrix'] = bRa['clone'](); + bMU[bR7]['parametricConfiguration']['rotate'] = new bMP['Cartesian3'](); + bMU[bR7][dol(0xe38)]['distance'] = { + 'MAX-X': bMU[bR7]['HelperConfigs']['PlaneDistance']['xMax'], + 'MAX-Y': bMU[bR7][dol(0xe39)]['PlaneDistance']['yMax'], + 'MAX-Z': bMU[bR7]['HelperConfigs']['PlaneDistance']['zMax'], + 'MIN-X': bMU[bR7]['HelperConfigs']['PlaneDistance']['xMin'], + 'MIN-Y': bMU[bR7]['HelperConfigs']['PlaneDistance']['yMin'], + 'MIN-Z': bMU[bR7]['HelperConfigs']['PlaneDistance']['zMin'] + }; + bMU[bR7]['parametricConfiguration']['range'] = { + 'MAX-X': bMU[bR7]['HelperConfigs']['PlaneDistance'][dol(0xe3a)] / (bMU[bR7]['initClippingBoxSize']['x'] * 0.5), + 'MAX-Y': bMU[bR7]['HelperConfigs']['PlaneDistance']['yMax'] / (bMU[bR7]['initClippingBoxSize']['y'] * 0.5), + 'MAX-Z': bMU[bR7]['HelperConfigs']['PlaneDistance']['zMax'] / (bMU[bR7]['initClippingBoxSize']['z'] * 0.5), + 'MIN-X': -bMU[bR7]['HelperConfigs']['PlaneDistance']['xMin'] / (bMU[bR7]['initClippingBoxSize']['x'] * 0.5), + 'MIN-Y': -bMU[bR7]['HelperConfigs'][dol(0xe3b)]['yMin'] / (bMU[bR7]['initClippingBoxSize']['y'] * 0.5), + 'MIN-Z': -bMU[bR7]['HelperConfigs'][dol(0xe3c)]['zMin'] / (bMU[bR7]['initClippingBoxSize']['z'] * 0.5) + }; + bMU[bR7]['parametricConfiguration']['translation'] = new bMP['Cartesian3'](); + } + bR1['_viewer']['scene']['requestRender'](); + } + bN1['prototype'][dol(0xe3d)] = function(bRw, bRx, bRy, bRz, bRA) { + _that = this; + try { + var bRB = new bMP[(dol(0xe3e))]() + , bRC = new bMP['Cartesian3'](); + if (bRx instanceof bMP[dol(0xe3f)]) + bMP[dol(0xe40)]['clone'](bRx, bRB); + else if (Array['isArray'](bRx)) + bRB = bMP['Cartesian3']['fromRadiansArrayHeights'](bRx)[0x0]; + if (bRy instanceof bMP['Cartesian3']) + bMP['Cartesian3']['clone'](bRy, bRC); + else if (Array['isArray'](bRy)) + bRC = bMP['Cartesian3']['fromArray'](bRy); + if (bMP[dol(0xe41)](bRz)) { + if (Array['isArray'](bRz) && bRz[dol(0xe42)] === 0x3) { + bMP['Cartesian3']['add'](bRC, bMP[dol(0xe43)][dol(0xe44)](bRz), bRC); + } else if (!isNaN(bRz)) { + bRz = Number(bRz); + bMP['Cartesian3'][dol(0xe45)](bRC, new bMP[(dol(0xe46))](bRz,bRz,bRz), bRC); + } + } + bR0(_that, bRw, bRB, bRC); + if (!bRA) + bW4(bRw); + } catch (bRD) { + console['log'](bRD); + } + } + ; + bN1['prototype']['setClipByMinimaxPoints'] = function(bRE, bRF, bRG, bRH, bRI) { + _that = this; + try { + var bRJ = new bMP['Cartesian3']() + , bRK = new bMP['Cartesian3'](); + var bRL = new bMP['Cartesian3'](); + var bRM = new bMP['Cartesian3'](); + var bRN = new bMP['Cartesian3']() + , bRO = new bMP['Cartesian3']() + , bRP = new bMP['Cartesian3'](); + if (Array['isArray'](bRF) && Array['isArray'](bRG)) { + bRJ = bMP[dol(0xe47)]['fromRadiansArrayHeights'](bRF)[0x0]; + bRK = bMP['Cartesian3']['fromRadiansArrayHeights'](bRG)[0x0]; + bRL = bMP['Cartesian3']['fromRadians']((bRF[0x0] + bRG[0x0]) * 0.5, (bRF[0x1] + bRG[0x1]) * 0.5, (bRF[0x2] + bRG[0x2]) * 0.5); + bRN = bMP['Cartesian3']['fromRadians'](bRF[0x0], bRF[0x1]); + bRO = bMP['Cartesian3']['fromRadians'](bRF[0x0], bRG[0x1]); + bRP = bMP['Cartesian3']['fromRadians'](bRG[0x0], bRF[0x1]); + bRM['x'] = bMP['Cartesian3'][dol(0xe48)](bRN, bRP); + bRM['y'] = bMP['Cartesian3']['distance'](bRN, bRO); + bRM['z'] = Math['abs'](bRF[0x2] - bRG[0x2]); + } else if (bRF instanceof bMP['Cartesian3'] && bRG instanceof bMP['Cartesian3']) { + bRJ = bRF; + bRK = bRG; + bMP['Cartesian3']['midpoint'](bRJ, bRK, bRL); + var bRQ = _that['_API']['Public']['cartesian3ToRadians']([bRJ['x'], bRJ['y'], bRJ['z']]); + var bRR = _that['_API']['Public']['cartesian3ToRadians']([bRK['x'], bRK['y'], bRK['z']]); + bRN = bMP['Cartesian3']['fromRadians'](bRQ[0x0], bRQ[0x1]); + bRO = bMP['Cartesian3']['fromRadians'](bRQ[0x0], bRR[0x1]); + bRP = bMP['Cartesian3'][dol(0xe49)](bRR[0x0], bRQ[0x1]); + bRM['x'] = bMP['Cartesian3'][dol(0xe4a)](bRN, bRP); + bRM['y'] = bMP['Cartesian3'][dol(0xe4b)](bRN, bRO); + bRM['z'] = Math['abs'](bRQ[0x2] - bRR[0x2]); + } else { + throw 'm' + doo(0x6e9) + '。'; + } + bMP['Cartesian3']['abs'](bRM, bRM); + if (bMP['defined'](bRH)) { + if (Array['isArray'](bRH) && bRH['length'] === 0x3) { + bMP['Cartesian3']['add'](bRM, bMP['Cartesian3']['fromArray'](bRH), bRM); + } else if (!isNaN(bRH)) { + bRH = Number(bRH); + bMP['Cartesian3']['add'](bRM, new bMP[(dol(0xe4c))](bRH,bRH,bRH), bRM); + } + } + bR0(_that, bRE, bRL, bRM); + if (!bRI) + bW4(bRE); + } catch (bRS) { + console['log'](bRS); + } + } + ; + bN1['prototype']['setClipMatrix'] = function(bRT, bRU) { + _that = this; + try { + var bRV = bRT; + if (!bMU[bRV]) + throw '无' + doo(0x6ea) + '。'; + if (!bMP['defined'](bRU) || !bMP['defined'](bRU[dol(0xe4d)])) + throw '无' + doo(0x6eb) + '。'; + var bRW = bRU['snapshot']; + if (typeof bRU['snapshot'] == 's' + doo(0x6ec) + 'g' && bRU['snapshot']['constructor'] == String) { + bRW = bRU['snapshot']['split'](',')['map'](function(bRX, bRY, bRZ) { + return bRX * 0x1; + }); + } + var bS0 = 0x0; + var bS1 = bMP['Matrix4']['unpack'](bRW, bS0); + bS0 += 0x10; + var bS2 = bMP['Matrix4'][dol(0xe4e)](bRW, bS0); + bS0 += 0x10; + var bS3 = bMP['Matrix4']['unpack'](bRW, bS0); + bS0 += 0x10; + var bS4 = bMP[dol(0xe4f)]['unpack'](bRW, bS0); + bS0 += 0x10; + var bS5 = bMP['Cartesian3']['unpack'](bRW, bS0); + bS0 += 0x3; + var bS6 = bMP['Cartesian3'][dol(0xe50)](bRW, bS0); + bS0 += 0x3; + var bS7 = { + 'MAX-X': bRW[bS0++], + 'MIN-X': -bRW[bS0++], + 'MAX-Y': bRW[bS0++], + 'MIN-Y': -bRW[bS0++], + 'MAX-Z': bRW[bS0++], + 'MIN-Z': -bRW[bS0++] + }; + var bS8 = { + 'MAX-X': bRW[bS0++], + 'MIN-X': bRW[bS0++], + 'MAX-Y': bRW[bS0++], + 'MIN-Y': bRW[bS0++], + 'MAX-Z': bRW[bS0++], + 'MIN-Z': bRW[bS0++] + }; + var bS9 = bMP['Matrix4']['unpack'](bRW, bS0); + bS0 += 0x10; + var bSa = bMP['Matrix4']['unpack'](bRW, bS0); + bS0 += 0x10; + var bSb = bMP[dol(0xe51)]['unpack'](bRW, bS0); + bS0 += 0x3; + var bSc = bMP[dol(0xe52)]['unpack'](bRW, bS0); + bS0 += 0x3; + var bSd = bMP['Cartesian3']['unpack'](bRW, bS0); + bS0 += 0x3; + var bSe = bMP['Cartesian3']['unpack'](bRW, bS0); + bS0 += 0x3; + var bSf = bMP['Cartesian3']['unpack'](bRW, bS0); + bS0 += 0x3; + var bSg = bMP[dol(0xe53)]['unpack'](bRW, bS0); + bS0 += 0x4; + bPF(bRV); + bMP['Cartesian3']['clone'](bSb, bMU[bRV]['clippingBoxCenter']); + bMP[dol(0xe54)][dol(0xe55)](bSc, bMU[bRV][dol(0xe56)]); + bMP['Matrix4']['clone'](bS9, bMU[bRV]['CurrentCPBoxModelMatrix']); + bMP['Matrix4']['clone'](bSa, bMU[bRV]['InitCPBoxModelMatrix']); + bMP['Cartesian3']['clone'](bSd, bMU[bRV]['initClipingBoxCenter']); + bMP['Cartesian3']['clone'](bSe, bMU[bRV]['initClippingBoxSize']); + bMP['Matrix4']['clone'](bS1, bMU[bRV]['ClippingPlanes']['modelMatrix']); + var bSh = bMP[dol(0xe57)]['IDENTITY']['clone'](); + var bSi = new bMP[(dol(0xe58))](); + bMP['Matrix4']['getMatrix3'](bS2, bSh); + bMP['Matrix4']['getTranslation'](bS2, bSi); + bVA(_that, bRT, bMP['Matrix4']['fromTranslation'](bSi), undefined, bS7, ![], new bMP['Cartesian3'](), !![]); + bVA(_that, bRT, bMP['Matrix4']['fromRotationTranslation'](bSh), undefined, undefined, !![], bS5, ![]); + bVt(_that, bRT, bMP['Matrix4']['fromTranslation'](bSi), ![], !![]); + bVt(_that, bRT, bMP['Matrix4']['fromRotationTranslation'](bSh), !![], ![]); + bMU[bRV]['clippingPlaneEntities']['forEach'](function(bSj) { + bMP['Cartesian3']['clone'](bSf, bSj['position']['_value']); + }); + bMP['Matrix4']['clone'](bS2, bMU[bRV]['parametricConfiguration']['helperModelMatrix']); + bMP['Matrix4']['clone'](bS3, bMU[bRV]['HelperConfigs'][dol(0xe59)]['translation']); + bMP['Matrix4']['clone'](bS4, bMU[bRV]['HelperConfigs']['RotateHelper']['rotation']); + bMP['Cartesian3']['clone'](bS5, bMU[bRV]['parametricConfiguration']['rotate']); + bMU[bRV]['HelperConfigs']['RotateHelper']['X'] = bS5['x']; + bMU[bRV]['HelperConfigs']['RotateHelper']['Y'] = bS5['y']; + bMU[bRV]['HelperConfigs']['RotateHelper']['Z'] = bS5['z']; + bMP['Cartesian3']['clone'](bS6, bMU[bRV]['parametricConfiguration']['translation']); + var bRU = {}; + bRU['command'] = 't' + doo(0x6ed) + 'n'; + bRU['parameter'] = new bMP['Cartesian3'](); + bRU['isInner'] = !![]; + _that['setClipVariance'](bRT, bRU); + bRU['command'] = 'r' + doo(0x6ee) + 'e'; + bRU['parameter'] = { + 'x': 0x0, + 'y': 0x0, + 'z': 0x0 + }; + _that['setClipVariance'](bRT, bRU); + bMP[dol(0xe5a)]['clone'](bSb, bMU[bRV]['clippingBoxCenter']); + bMP['Cartesian3']['clone'](bSc, bMU[bRV]['clippingBoxSize']); + _that['setClipByCenterAndSize'](bRV, bMU[bRV]['ModelCenter']['center'], bMU[bRV]['ModelCenter']['size'], 0x0, !![]); + bW4(bRT); + _that['_viewer']['scene']['requestRender'](); + } catch (bSl) { + console['log'](bSl); + } + } + ; + bN1[dol(0xe5b)]['setClipVariance'] = function(bSm, bSn) { + var bSo = this; + try { + var bSp = bSm; + if (!bMU[bSp]) + throw '无' + doo(0x6ef) + '。'; + if (!bMP['defined'](bSn)) + throw '无' + doo(0x6f0) + '。'; + var bSq = bSn[dol(0xe5c)]; + var bSr = bSn['parameter']; + var bSs = bSn['isBaseOnInit'] || ![]; + if (!bMP['defined'](bSq) || !bMP['defined'](bSr)) + throw '无' + doo(0x6f1) + '。'; + var bSt = bMP['Matrix4']['IDENTITY']['clone'](); + var bSu = bMP['Matrix4']['IDENTITY']['clone'](); + var bSv = ![]; + var bSw = {}; + var bSx = { + 'x': 0x0, + 'y': 0x0, + 'z': 0x0 + }; + var bSy = bMU[bSp]['CurrentCPBoxModelMatrix']['clone'](); + var bSz = new bMP[(dol(0xe5d))](); + var bSA = bMP['Matrix3']['IDENTITY']['clone'](); + bMP['Matrix4']['getTranslation'](bSy, bSz); + bMP['Matrix4']['getMatrix3'](bSy, bSA); + var bSB = bMP['SceneTransforms']['wgs84ToWindowCoordinates'](bSo['_scene'], bSz); + var bSC = bMP['Matrix4']['fromRotationTranslation'](bSA); + var bSD = bMU[bSp]['HelperConfigs']['RotateHelper']['X'] % (Math['PI'] * 0x2); + var bSE = bMU[bSp]['HelperConfigs'][dol(0xe5e)]['Y'] % (Math['PI'] * 0x2); + var bSF = bMU[bSp][dol(0xe5f)]['RotateHelper']['Z'] % (Math['PI'] * 0x2); + var bSG = function(bSH, bSI) { + var bSJ = bMP['Matrix3']['fromRotationX'](bSI[0x0]); + var bSK = bMP['Matrix3']['fromRotationY'](bSI[0x1]); + var bSL = bMP['Matrix3']['fromRotationZ'](bSI[0x2]); + var bSM = bMP['Matrix4'][dol(0xe60)](bSJ); + var bSN = bMP['Matrix4']['fromRotationTranslation'](bSK); + var bSO = bMP['Matrix4']['fromRotationTranslation'](bSL); + bMP['Matrix4'][dol(0xe61)](bSy, bSO, bSy); + bMP['Matrix4']['multiply'](bSy, bSN, bSy); + bMP['Matrix4']['multiply'](bSy, bSM, bSy); + bMP['Matrix4']['multiplyByPoint'](bSO, bSH, bSH); + bMP['Matrix4']['multiplyByPoint'](bSN, bSH, bSH); + bMP['Matrix4']['multiplyByPoint'](bSM, bSH, bSH); + }; + switch (bSq) { + case 't' + doo(0x6f2) + 'n': + { + var bSP = new bMP['Cartesian3'](); + if (Array['isArray'](bSr)) + bMP['Cartesian3']['unpack'](bSr, 0x0, bSP); + else if (bSr instanceof bMP['Cartesian3']) + bMP['Cartesian3'][dol(0xe62)](bSr, bSP); + else { + bMP[dol(0xe63)]['clone'](new bMP['Cartesian3'](Number(bSr['x']) || 0x0,Number(bSr['y']) || 0x0,Number(bSr['z']) || 0x0), bSP); + } + bMP['Cartesian3']['add'](bSP, bMU[bSp]['parametricConfiguration']['translation'], bMU[bSp]['parametricConfiguration']['translation']); + bMP[dol(0xe64)]['fromTranslation'](bSP['clone'](), bSu); + bSG(bSP, [bSD, bSE, bSF]); + bSP = bXS(bSP, bSC); + bMP['Matrix4']['fromTranslation'](bSP, bSt); + } + break; + case 'r' + doo(0x6f3) + 'e': + { + bSv = !![]; + var bSQ = new bMP['Cartesian3'](); + if (Array['isArray'](bSr)) + bMP[dol(0xe65)]['unpack'](bSr, 0x0, bSQ); + else if (bSr instanceof bMP['Cartesian3']) { + bMP['Cartesian3']['clone'](bSr, bSQ); + } else { + bMP['Cartesian3']['clone'](new bMP['Cartesian3'](Number(bSr['x']) || 0x0,Number(bSr['y']) || 0x0,Number(bSr['z']) || 0x0), bSQ); + } + bSQ['z'] = -bSQ['z']; + Object['keys'](bSQ)[dol(0xe66)](function(bSR, bSS, bST) { + if (Object['hasOwnProperty']['call'](bSQ, bSR)) { + var bSU = bSQ[bSR]; + var bSV = bMP['Cartesian3']['UNIT_Z']['clone'](); + if (bSR == 'x') { + bSV = bMP['Cartesian3']['UNIT_X']['clone'](); + bSx['x'] = bSU = -bSU; + bMU[bSp]['parametricConfiguration']['rotate']['x'] += bSU; + } else if (bSR == 'y') { + bSV = bMP['Cartesian3']['UNIT_Y']['clone'](); + bSx['y'] = bSU = -bSU; + bMU[bSp]['parametricConfiguration']['rotate']['y'] += bSU; + } else if (bSR == 'z') { + bSV = bMP['Cartesian3']['UNIT_Z']['clone'](); + bSx['z'] = bSU; + bMU[bSp]['parametricConfiguration']['rotate']['z'] += bSU; + } + bMU[bSp][dol(0xe67)]['RotateHelper'][bSR['toUpperCase']()] += bSU; + var bSW = bSV[dol(0xe68)](); + bSV = bXS(bSV, bSC); + bSV = bXS(bSV, bMU[bSp]['HelperConfigs'][dol(0xe69)]['rotation']); + bMP[dol(0xe6a)]['normalize'](bSV, bSV); + var bSX = new bMP['Matrix3'](); + var bSY = new bMP['Matrix3'](); + bY0(bSV, bSU, bSX); + bY0(bSW, bSU, bSY); + var bSZ = bMP['Matrix4']['fromRotationTranslation'](bSX); + var bT0 = bMP['Matrix4']['fromRotationTranslation'](bSY); + bMP['Matrix4']['multiply'](bSt, bSZ, bSt); + bMP['Matrix4']['multiply'](bSu, bT0, bSu); + } + }); + } + break; + case 'd' + doo(0x6f4) + 'e': + { + var bT1 = bSw['M' + doo(0x6f5) + 'X'] = Number(bSr['M' + doo(0x6f6) + 'X']) || 0x0; + var bT2 = bSw['M' + doo(0x6f7) + 'Y'] = Number(bSr['M' + doo(0x6f8) + 'Y']) || 0x0; + var bT3 = bSw['M' + doo(0x6f9) + 'Z'] = Number(bSr['M' + doo(0x6fa) + 'Z']) || 0x0; + var bT4 = bSw['M' + doo(0x6fb) + 'X'] = Number(bSr['M' + doo(0x6fc) + 'X']) || 0x0; + var bT5 = bSw['M' + doo(0x6fd) + 'Y'] = Number(bSr['M' + doo(0x6fe) + 'Y']) || 0x0; + var bT6 = bSw['M' + doo(0x6ff) + 'Z'] = Number(bSr['M' + doo(0x700) + 'Z']) || 0x0; + var bT7 = ![]; + bMS['forEach'](bT8 => { + if (bT7) + return; + var bT9 = bSw[bT8]; + bMU[bSp]['parametricConfiguration']['distance'][bT8] += bT9; + switch (bT8) { + case 'M' + doo(0x701) + 'X': + if (bMU[bSp]['isStrict'] && bMU[bSp]['HelperConfigs'][dol(0xe6b)]['xMax'] + bT9 > bMU[bSp]['MaxClipPlanDistance']['max']['x']) { + bT7 = !![]; + return; + } + if (bMU[bSp]['HelperConfigs']['PlaneDistance']['xMax'] + bT9 < -bMU[bSp]['HelperConfigs']['PlaneDistance'][dol(0xe6c)]) { + bT7 = !![]; + return; + } + bMU[bSp]['HelperConfigs']['PlaneDistance']['xMax'] += bT9; + bMU[bSp]['parametricConfiguration']['range'][bT8] = bMU[bSp]['parametricConfiguration']['distance'][bT8] / (bMU[bSp]['initClippingBoxSize']['x'] * 0.5); + break; + case 'M' + doo(0x702) + 'X': + if (bMU[bSp]['isStrict'] && bMU[bSp]['HelperConfigs']['PlaneDistance']['xMin'] - bT9 > bMU[bSp]['MaxClipPlanDistance']['min']['x']) { + bT7 = !![]; + return; + } + if (bMU[bSp]['HelperConfigs'][dol(0xe6d)]['xMin'] - bT9 < -bMU[bSp][dol(0xe6e)]['PlaneDistance']['xMax']) { + bT7 = !![]; + return; + } + bMU[bSp]['HelperConfigs']['PlaneDistance']['xMin'] -= bT9; + bMU[bSp][dol(0xe6f)]['range'][bT8] = bMU[bSp]['parametricConfiguration']['distance'][bT8] / (bMU[bSp][dol(0xe70)]['x'] * 0.5); + break; + case 'M' + doo(0x703) + 'Y': + if (bMU[bSp]['isStrict'] && bMU[bSp]['HelperConfigs']['PlaneDistance']['yMax'] + bT9 > bMU[bSp]['MaxClipPlanDistance']['max']['y']) { + bT7 = !![]; + return; + } + if (bMU[bSp][dol(0xe71)]['PlaneDistance']['yMax'] + bT9 < -bMU[bSp]['HelperConfigs']['PlaneDistance']['yMin']) { + bT7 = !![]; + return; + } + bMU[bSp]['HelperConfigs']['PlaneDistance']['yMax'] += bT9; + bMU[bSp]['parametricConfiguration']['range'][bT8] = bMU[bSp]['parametricConfiguration']['distance'][bT8] / (bMU[bSp][dol(0xe72)]['y'] * 0.5); + break; + case 'M' + doo(0x704) + 'Y': + if (bMU[bSp][dol(0xe73)] && bMU[bSp]['HelperConfigs']['PlaneDistance']['yMin'] - bT9 > bMU[bSp]['MaxClipPlanDistance']['min']['y']) { + bT7 = !![]; + return; + } + if (bMU[bSp]['HelperConfigs']['PlaneDistance']['yMin'] - bT9 < -bMU[bSp]['HelperConfigs']['PlaneDistance']['yMax']) { + bT7 = !![]; + return; + } + bMU[bSp]['HelperConfigs']['PlaneDistance']['yMin'] -= bT9; + bMU[bSp]['parametricConfiguration']['range'][bT8] = bMU[bSp]['parametricConfiguration']['distance'][bT8] / (bMU[bSp]['initClippingBoxSize']['y'] * 0.5); + break; + case 'M' + doo(0x705) + 'Z': + if (bMU[bSp]['isStrict'] && bMU[bSp]['HelperConfigs']['PlaneDistance']['zMax'] + bT9 > bMU[bSp]['MaxClipPlanDistance']['max']['z']) { + bT7 = !![]; + return; + } + if (bMU[bSp][dol(0xe74)]['PlaneDistance']['zMax'] + bT9 < -bMU[bSp]['HelperConfigs']['PlaneDistance']['zMin']) { + bT7 = !![]; + return; + } + bMU[bSp][dol(0xe75)]['PlaneDistance']['zMax'] += bT9; + bMU[bSp]['parametricConfiguration']['range'][bT8] = bMU[bSp]['parametricConfiguration']['distance'][bT8] / (bMU[bSp][dol(0xe76)]['z'] * 0.5); + break; + case 'M' + doo(0x706) + 'Z': + if (bMU[bSp]['isStrict'] && bMU[bSp]['HelperConfigs'][dol(0xe77)]['zMin'] - bT9 > bMU[bSp]['MaxClipPlanDistance']['min']['z']) { + bT7 = !![]; + return; + } + if (bMU[bSp]['HelperConfigs']['PlaneDistance']['zMin'] - bT9 < -bMU[bSp]['HelperConfigs']['PlaneDistance']['zMax']) { + bT7 = !![]; + return; + } + bMU[bSp]['HelperConfigs']['PlaneDistance']['zMin'] -= bT9; + bMU[bSp]['parametricConfiguration']['range'][bT8] = bMU[bSp]['parametricConfiguration']['distance'][bT8] / (bMU[bSp]['initClippingBoxSize']['z'] * 0.5); + break; + default: + break; + } + } + ); + if (bT7) + return; + var bSP = new bMP['Cartesian3']((bT1 + bT4) * 0.5,(bT2 + bT5) * 0.5,(bT3 + bT6) * 0.5); + bMP['Matrix4']['fromTranslation'](bSP['clone'](), bSu); + bSG(bSP, [bSD, bSE, bSF]); + bSP = bXS(bSP, bSC); + bMP['Matrix4']['fromTranslation'](bSP, bSt); + } + break; + default: + break; + } + bMP['Matrix4']['multiplyByPoint'](bSt, bMU[bSp]['clippingBoxCenter'], bMU[bSp]['clippingBoxCenter']); + bMU[bSp]['clippingBoxSize']['x'] = bMU[bSp]['HelperConfigs']['PlaneDistance']['xMin'] + bMU[bSp]['HelperConfigs']['PlaneDistance']['xMax']; + bMU[bSp]['clippingBoxSize']['y'] = bMU[bSp][dol(0xe78)]['PlaneDistance']['yMin'] + bMU[bSp]['HelperConfigs']['PlaneDistance']['yMax']; + bMU[bSp]['clippingBoxSize']['z'] = bMU[bSp]['HelperConfigs']['PlaneDistance']['zMin'] + bMU[bSp]['HelperConfigs']['PlaneDistance']['zMax']; + bTc(bSp, bSt, bSu); + bVA(bSo, bSm, bSt, bSu, bSw, bSv, bSx, bSs); + bVt(bSo, bSm, bSt, bSv, bSs); + if (!bSn['isInner']) + bW4(bSm); + bSo['_viewer']['scene']['requestRender'](); + } catch (bTb) { + console['log'](bTb); + } + } + ; + function bTc(bTd, bTe, bTf) { + if (bMP['defined'](bTe)) { + if (!bMP['defined'](bMU[bTd]['parametricConfiguration']['helperModelMatrix'])) { + bMU[bTd]['parametricConfiguration']['helperModelMatrix'] = bMP['Matrix4']['IDENTITY']['clone'](); + } + bMP['Matrix4']['multiply'](bMU[bTd]['parametricConfiguration']['helperModelMatrix'], bTe, bMU[bTd][dol(0xe79)]['helperModelMatrix']); + } + } + function bTg(bTh, bTi) { + var bTj = bMP['Transforms']['eastNorthUpToFixedFrame'](bMU[bTi]['ModelCenter']['oldsphere']['boundingsphere']['center']); + var bTk = bTh['_scene']['primitives']['add'](new bMP['DebugModelMatrixPrimitive']({ + 'modelMatrix': bTj, + 'length': 0x19 + })); + var bTl = bMP['Cartesian3']['unpackArray'](bMU[bTi]['ModelCenter'][dol(0xe7a)]['positions']); + for (var bTm = 0x0; bTm < bTl['length']; bTm++) { + bYT(bTh, 'p' + doo(0x707) + '-' + bTm, bTl[bTm], bMP['Color']['RED'], bMP['Color']['YELLOW'], 0xa, 0x3e8); + } + var bTn = bMU[bTi][dol(0xe7b)]['oldsphere']['boundingVolume']['_orientedBoundingBox']; + var bTo = bMP['Matrix4'][dol(0xe7c)](bTn['halfAxes'], bTn['center'], new bMP['Matrix4']()); + var bTp = new bMP['GeometryInstance']({ + 'geometry': bMP[dol(0xe7d)]['fromDimensions']({ + 'dimensions': new bMP['Cartesian3'](0x2,0x2,0x2) + }), + 'modelMatrix': bTo, + 'attributes': { + 'color': bMP['ColorGeometryInstanceAttribute'][dol(0xe7e)](bMP['Color']['YELLOW'][dol(0xe7f)](0.3)) + } + }); + var bTq = new bMP[(dol(0xe80))]({ + 'geometry': bMP['BoxOutlineGeometry']['fromDimensions']({ + 'dimensions': new bMP['Cartesian3'](0x2,0x2,0x2) + }), + 'modelMatrix': bTo, + 'attributes': { + 'color': bMP['ColorGeometryInstanceAttribute']['fromColor'](bMP['Color']['BLACK']['withAlpha'](0.3)) + } + }); + var bTr = new bMP['Primitive']({ + 'geometryInstances': bTp, + 'appearance': new bMP['PerInstanceColorAppearance']({ + 'translucent': !![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + var bTs = new bMP['Primitive']({ + 'geometryInstances': bTq, + 'appearance': new bMP['PerInstanceColorAppearance']({ + 'translucent': !![], + 'flat': !![] + }), + 'asynchronous': ![] + }); + bTh['_scene']['primitives']['add'](bTr); + bTh[dol(0xe81)]['primitives']['add'](bTs); + } + function bTt(bTu, bTv) { + var bTw = bTu['_viewer']['scene']['primitives']['add'](new bMP['PrimitiveCollection']()); + bTw['name'] = bMU[bTv][dol(0xe82)] + ('H' + doo(0x708) + 's'); + bMU[bTv]['Helpers'] = bTw; + bTx(bTu, bTv, bTw); + bTZ(bTu, bTv, bTw); + } + function bTx(bTy, bTz, bTA) { + var bTB = bMU[bTz]['ModelCenter'][dol(0xe83)]; + var bTC = new bMP['Cartesian3'](); + bMP[dol(0xe84)]['negate'](bTB, bTC); + var bTD = bMU[bTz]['ModelCenter'][dol(0xe85)]['boundingsphere'][dol(0xe86)]; + var bTE = function(bTF, bTG) { + return bMP['Cartesian3']['add'](bTF, bTG, new bMP['Cartesian3']()); + }; + var bTH = function(bTI) { + var bTJ = bMP[dol(0xe87)]['multiplyByTranslation'](bMP['Transforms']['eastNorthUpToFixedFrame'](bTB), bTI, new bMP['Matrix4']()); + var bTK = bMP['Matrix4']['getTranslation'](bTJ, new bMP['Cartesian3']()); + return bTK; + }; + var bTL = function(bTM, bTN, bTO, bTP) { + bMU[bTz]['HelperConfigs']['AxesHelper'][bTN] = { + 'positions': bTO, + 'modelMatrix': bMP['Matrix4']['IDENTITY'] + }; + var bTQ = new bMP['Primitive']({ + 'geometryInstances': new bMP['GeometryInstance']({ + 'id': bTN, + 'geometry': new bMP['PolylineGeometry']({ + 'positions': bMU[bTz]['HelperConfigs'][dol(0xe88)][bTN]['positions'], + 'width': bMU[bTz]['HelperLineWidth'] * (bTy['_API'][dol(0xe89)]() ? 0x5 : 0x3) + }) + }), + 'releaseGeometryInstances': ![], + 'appearance': new bMP[(dol(0xe8a))]({ + 'material': new bMP['Material']({ + 'fabric': { + 'type': 'P' + doo(0x709) + 'w', + 'uniforms': { + 'color': bTP + } + } + }), + 'renderState': new bMP[(dol(0xe8b))]({ + 'depthTest': { + 'enabled': ![] + } + }) + }), + 'modelMatrix': bMP['Matrix4']['IDENTITY'], + 'show': bMX['Helpers'] + }); + bTQ['_positions'] = bTO; + bTQ['isAxesHelper'] = !![]; + bTQ['clippingId'] = bTz; + bTQ['_name'] = bTN; + bTQ['initModelMatrix'] = bMP['Matrix4']['IDENTITY']; + bTM['add'](bTQ); + }; + var bTR = new bMP['PrimitiveCollection'](); + bTR['name'] = bMU[bTz]['selfVestPrefix'] + ('A' + doo(0x70a) + 'r'); + bTA['add'](bTR); + var bTS = 0.5; + var bTT = bTD * bMU[bTz]['helperSizeScale']; + var bTU = new bMP['Cartesian3'](0x0,0x0,0x0); + var bTV = bTH(bTU); + var bTW = bTH(bTE(bTU, new bMP['Cartesian3'](bTT,0x0,0x0))); + bTL(bTR, bMU[bTz][dol(0xe8c)] + ('A' + doo(0x70b) + 'X'), [bTV, bTW], bMP['Color']['RED']['withAlpha'](bTS)); + var bTX = bTH(bTE(bTU, new bMP['Cartesian3'](0x0,bTT,0x0))); + bTL(bTR, bMU[bTz]['selfVestPrefix'] + ('A' + doo(0x70c) + 'Y'), [bTV, bTX], bMP['Color']['GREEN']['withAlpha'](bTS)); + var bTY = bTH(bTE(bTU, new bMP['Cartesian3'](0x0,0x0,bTT))); + bTL(bTR, bMU[bTz]['selfVestPrefix'] + ('A' + doo(0x70d) + 'Z'), [bTV, bTY], bMP['Color']['BLUE'][dol(0xe8d)](bTS)); + } + function bTZ(bU0, bU1, bU2) { + var bU3 = bMU[bU1]['ModelCenter']['center']; + var bU4 = bMU[bU1]['ModelCenter']['oldsphere']['boundingsphere']['radius']; + bU4 *= bMU[bU1]['helperSizeScale']; + var bU5 = bMP['Transforms'][dol(0xe8e)](bU3); + var bU6 = bMP['Matrix4'][dol(0xe8f)](bU5, bMP['Matrix4']['IDENTITY'], new bMP['Matrix4']()); + var bU7 = []; + for (let bU8 = 0x0; bU8 <= bMU[bU1]['RotationAngleRange']; bU8 += 0x2) { + var bU9 = Math['sin'](bMP['Math']['toRadians'](bU8)); + var bUa = Math['cos'](bMP[dol(0xe90)]['toRadians'](bU8)); + var bUb = bU4 / 0x2 * bUa; + var bUc = bU4 / 0x2 * bU9; + bU7['push'](new bMP['Cartesian3'](bUb,bUc,0x0)); + } + var bUd = function(bUe, bUf, bUg) { + var bU5 = bUe['modelMatrix']; + var bUi = bMP['Matrix3']['fromRotationX'](bMP['Math'][dol(0xe91)](bUf[0x0])); + var bUj = bMP['Matrix3']['fromRotationY'](bMP['Math']['toRadians'](bUf[0x1])); + var bUk = bMP['Matrix3']['fromRotationZ'](bMP['Math']['toRadians'](bUf[0x2])); + var bUl = bMP['Matrix4'][dol(0xe92)](bUi); + var bUm = bMP['Matrix4']['fromRotationTranslation'](bUj); + var bUn = bMP['Matrix4']['fromRotationTranslation'](bUk); + var bUo = bMP['Matrix4']['fromTranslation'](new bMP['Cartesian3'](bUg[0x0],bUg[0x1],bUg[0x2])); + bMP['Matrix4'][dol(0xe93)](bU5, bUo, bU5); + bMP['Matrix4']['multiply'](bU5, bUn, bU5); + bMP['Matrix4'][dol(0xe94)](bU5, bUm, bU5); + bMP['Matrix4'][dol(0xe95)](bU5, bUl, bU5); + bUe['initModelMatrix'] = bU5['clone'](); + }; + var bUp = function(bUq, bUr, bUs, bUt, bUu) { + var bUv = new bMP['GeometryInstance']({ + 'id': bUr, + 'geometry': new bMP['PolylineGeometry']({ + 'positions': bU7, + 'width': bMU[bU1]['HelperLineWidth'] + }) + }); + var bUw = new bMP[(dol(0xe96))]({ + 'geometryInstances': bUv, + 'modelMatrix': bU6, + 'appearance': new bMP['PolylineMaterialAppearance']({ + 'material': new bMP['Material']({ + 'fabric': { + 'type': 'C' + doo(0x70e) + 'r', + 'uniforms': { + 'color': bUs + } + } + }), + 'renderState': new bMP[(dol(0xe97))]({ + 'depthTest': { + 'enabled': ![] + } + }) + }), + 'show': bMX['Helpers'] + }); + bUd(bUw, bUt, bUu); + bUw['initModelMatrix'] = bUw['modelMatrix'][dol(0xe98)](); + bUw['isRotateHelper'] = !![]; + bUw['clippingId'] = bU1; + bUw[dol(0xe99)] = bUr; + bUq['add'](bUw); + }; + var bUx = new bMP['PrimitiveCollection'](); + bUx[dol(0xe9a)] = bMU[bU1][dol(0xe9b)] + ('R' + doo(0x70f) + 'r'); + bU2['add'](bUx); + var bUy = 0.5; + bUp(bUx, bMU[bU1]['selfVestPrefix'] + ('R' + doo(0x710) + 'X'), bMP['Color']['RED']['withAlpha'](bUy), [0x0, -0x5a, 0x0], [0x0, 0x0, 0x0]); + bUp(bUx, bMU[bU1]['selfVestPrefix'] + ('R' + doo(0x711) + 'Y'), bMP['Color']['GREEN']['withAlpha'](bUy), [0x5a, 0x0, 0x0], [0x0, 0x0, 0x0]); + bUp(bUx, bMU[bU1]['selfVestPrefix'] + ('R' + doo(0x712) + 'Z'), bMP[dol(0xe9c)]['BLUE'][dol(0xe9d)](bUy), [0x0, 0x0, 0x0], [0x0, 0x0, 0x0]); + } + function bUz(bUA, bUB, bUC, bUD) { + var bUE = bUC; + if (bMP['defined'](bUE) && bUE instanceof bMP['PrimitiveCollection'] && bUE['name'] == bMU[bUB]['selfVestPrefix'] + ('H' + doo(0x713) + 's')) { + bUE['show'] = bUD; + var bUF = function(bUG) { + for (var bUH = 0x0; bUH < bUG['length']; bUH++) { + var bUI = bUG[bUH]; + if (bMP['defined'](bUI)) { + bUI['show'] = bUD; + if (bUI['_primitives'] && bUI['_primitives']['length'] > 0x0) { + bUF(bUI['_primitives']); + } + } + } + }; + if (bUE['_primitives'] && bUE['_primitives']['length'] > 0x0) { + bUF(bUE['_primitives']); + } + } + } + function bUJ(bUK, bUL) { + if (bMP['defined'](bUL) && bUL['_primitives'][dol(0xe9e)] > 0x0) { + for (var bUM = 0x0; bUM < bUL['_primitives']['length']; bUM++) { + var bUN = bUL['_primitives'][bUM]; + if (bMP['defined'](bUN)) { + if (bUN instanceof bMP['PrimitiveCollection']) { + bUJ(bUK, bUN); + bUL['remove'](bUN); + } else if (bUN instanceof bMP['Primitive']) { + bUL['remove'](bUN); + } + } + } + } + } + function bUO(bUP, bUQ, bUR) { + var bUS = bUR; + if (bMP['defined'](bUS) && bUS instanceof bMP['PrimitiveCollection'] && bUS['name'] == bMU[bUQ]['selfVestPrefix'] + ('H' + doo(0x714) + 's')) { + bUJ(bUP, bUS); + bUP['_viewer']['scene']['primitives']['remove'](bUS); + } + } + function bUT(bUU, bUV, bUW, bUX, bUY, bUZ) { + if (bMP['defined'](bUW) && bUW['_primitives']['length'] > 0x0) { + for (var bV0 = 0x0; bV0 < bUW['_primitives']['length']; bV0++) { + var bV1 = bUW['_primitives'][bV0]; + if (bMP['defined'](bV1)) { + if (bV1 instanceof bMP['PrimitiveCollection']) { + bUT(bUU, bUV, bV1, bUX, bUY, bUZ); + } else if (bV1 instanceof bMP['Primitive']) { + bV1[dol(0xe9f)] = bMX['Helpers']; + var bV2 = bMU[bUV]['CurrentCPBoxModelMatrix']['clone'](); + var bV3 = new bMP['Cartesian3'](); + var bV4 = new bMP['Cartesian3'](); + bMP['Matrix4']['getTranslation'](bV2, bV3); + var bV5 = new bMP['Matrix3'](); + bMP['Matrix4']['getMatrix3'](bV2, bV5); + bMP['Cartesian3']['negate'](bV3, bV4); + var bV6 = bMP['Matrix4']['fromTranslation'](bV3); + var bV7 = bMP[dol(0xea0)]['fromTranslation'](bV4); + var bV8 = bMP['Matrix4']['fromRotationTranslation'](bV5); + var bV9 = bMP['Matrix4']['IDENTITY']['clone'](); + bMU[bUV][dol(0xea1)]['RotateHelper']['rotation']['clone'](bV9); + if (bUX instanceof bMP['Matrix4']) { + if (bUY) { + if (bV1['isAxesHelper']) { + var bVa = bMP['Matrix4']['multiply'](bUX, bV9, new bMP['Matrix4']()); + var bVb = bMP['Matrix4']['multiply'](bVa, bV7, new bMP['Matrix4']()); + bMP['Matrix4'][dol(0xea2)](bMU[bUV]['HelperConfigs']['AxesHelper']['translation'], bVb, bVb); + bV1['modelMatrix'] = bMP['Matrix4']['multiply'](bV6, bVb, new bMP['Matrix4']()); + } else if (bV1['isRotateHelper']) { + var bVc = bV1['_name'][bV1['_name']['length'] - 0x1]; + var bVd = [0x0, 0x0, 0x0]; + switch (bVc) { + case 'X': + bVd = [0x0, -0x5a, 0x0]; + break; + case 'Y': + bVd = [0x5a, 0x0, 0x0]; + break; + case 'Z': + bVd = [0x0, 0x0, 0x0]; + break; + default: + break; + } + var bVe = function(bVf, bV8) { + var bVh = bVf['modelMatrix']; + var bVi = bMP['Matrix3']['fromRotationX'](bMP['Math']['toRadians'](bV8[0x0])); + var bVj = bMP['Matrix3']['fromRotationY'](bMP['Math']['toRadians'](bV8[0x1])); + var bVk = bMP['Matrix3']['fromRotationZ'](bMP['Math'][dol(0xea3)](bV8[0x2])); + var bVl = bMP['Matrix4']['fromRotationTranslation'](bVi); + var bVm = bMP['Matrix4']['fromRotationTranslation'](bVj); + var bVn = bMP['Matrix4']['fromRotationTranslation'](bVk); + bMP['Matrix4']['multiply'](bVh, bVn, bVh); + bMP['Matrix4']['multiply'](bVh, bVm, bVh); + bMP['Matrix4']['multiply'](bVh, bVl, bVh); + }; + var bVa = bMP['Matrix4']['multiply'](bUX, bV9, new bMP['Matrix4']()); + var bVb = bMP['Matrix4']['multiply'](bVa, bV8, new bMP['Matrix4']()); + bMP['Matrix4']['multiply'](bMU[bUV]['HelperConfigs']['AxesHelper']['translation'], bVb, bVb); + bV1['modelMatrix'] = bMP['Matrix4'][dol(0xea4)](bV6, bVb, new bMP['Matrix4']()); + bVe(bV1, bVd); + } + } else { + if (bV1['isAxesHelper']) { + var bV9 = bMP['Matrix4']['IDENTITY']['clone'](); + bMU[bUV]['HelperConfigs']['RotateHelper']['rotation']['clone'](bV9); + var bVa = bMP['Matrix4']['multiply'](bUX, bV9, new bMP['Matrix4']()); + var bVb = bMP[dol(0xea5)]['multiply'](bVa, bV7, new bMP['Matrix4']()); + bMP['Matrix4'][dol(0xea6)](bMU[bUV]['HelperConfigs'][dol(0xea7)]['translation'], bVb, bVb); + bMP['Matrix4']['multiply'](bV6, bVb, bV1['modelMatrix']); + } else if (bV1['isRotateHelper']) { + bMP[dol(0xea8)]['multiply'](bUX, bUZ ? bV1['initModelMatrix']['clone']() : bV1['modelMatrix'], bV1[dol(0xea9)]); + } + } + } + } + } + } + } + } + function bVt(bVu, bVv, bVw, bVx, bVy) { + var bVz = bMU[bVv]['Helpers']; + if (bMP['defined'](bVz) && bVz instanceof bMP['PrimitiveCollection'] && bVz['name'] == bMU[bVv]['selfVestPrefix'] + ('H' + doo(0x715) + 's')) { + if (bVy) { + bMU[bVv]['HelperConfigs']['AxesHelper']['translation'] = bMP['Matrix4']['IDENTITY']['clone'](); + bMU[bVv]['HelperConfigs']['RotateHelper']['X'] = 0x0; + bMU[bVv]['HelperConfigs']['RotateHelper']['Y'] = 0x0; + bMU[bVv]['HelperConfigs']['RotateHelper']['Z'] = 0x0; + bMU[bVv]['HelperConfigs']['RotateHelper']['rotation'] = bMP[dol(0xeaa)]['IDENTITY']['clone'](); + } + bUT(bVu, bVv, bVz, bVw, bVx, bVy); + if (bVx) { + bMP['Matrix4']['multiply'](bVw, bMU[bVv]['HelperConfigs'][dol(0xeab)]['rotation'], bMU[bVv]['HelperConfigs']['RotateHelper']['rotation']); + } else { + bMP['Matrix4']['multiply'](bVw, bMU[bVv]['HelperConfigs']['AxesHelper']['translation'], bMU[bVv]['HelperConfigs']['AxesHelper']['translation']); + } + bVu['_viewer']['scene']['requestRender'](); + } + } + function bVA(bVB, bVC, bVD, bVE, bVF, bVG, bVH, bVI) { + if (!bMP[dol(0xeac)](bVC)) + return; + if (bMP['defined'](bMU[bVC][dol(0xead)])) { + function bVJ(bVK, bVL) { + var bVM = bMP['Matrix3']['fromRotationX'](bVL['x']); + var bVN = bMP['Matrix3']['fromRotationY'](bVL['y']); + var bVO = bMP['Matrix3']['fromRotationZ'](bVL['z']); + bVK = bMP['Matrix4']['multiplyByMatrix3'](bVK, bVM, bVK); + bVK = bMP['Matrix4']['multiplyByMatrix3'](bVK, bVN, bVK); + bVK = bMP['Matrix4']['multiplyByMatrix3'](bVK, bVO, bVK); + return bVK; + } + if (bVD instanceof bMP['Matrix4']) { + var bVP = bMU[bVC]['clippingBoxEntitiy']; + bVP['show'] = bMX['ClippingPlaneEntities']; + if (bVI) { + bVP[dol(0xeae)] = bXS(bVP['initPosition']['clone'](), bVD); + var bVQ = bVP[dol(0xeaf)]['clone'](); + var bVR = 0x0; + var bVS = 0x0; + var bVT = 0x0; + var bVU = bMP['Transforms'][dol(0xeb0)](bVQ, new bMP['HeadingPitchRoll'](bVR,bVS,bVT)); + var bVV = bMP[dol(0xeb1)]['fromTranslationQuaternionRotationScale'](bVQ, bVU, new bMP['Cartesian3'](0x1,0x1,0x1), new bMP['Matrix4']()); + bVV = bVJ(bVV, bVH); + var bVW = new bMP['Quaternion'](); + var bVX = bMP['Matrix4']['getRotation'](bVV, new bMP['Matrix3']()); + bMP['Quaternion']['fromRotationMatrix'](bVX, bVW); + bVP['orientation']['setValue'](bVW); + } else { + if (!bVG) { + bVP['position'] = bXS(bVP['position']['_value'], bVD); + } else { + var bVQ = bVP['position']['getValue'](bMP['JulianDate']['now']()); + var bVU = bVP['orientation']['getValue'](bMP['JulianDate']['now']()); + var bVV = bMP['Matrix4']['fromTranslationQuaternionRotationScale'](bVQ, bVU, new bMP['Cartesian3'](0x1,0x1,0x1), new bMP['Matrix4']()); + bVV = bVJ(bVV, bVH); + var bVW = new bMP['Quaternion'](); + var bVX = bMP['Matrix4'][dol(0xeb2)](bVV, new bMP['Matrix3']()); + bMP['Quaternion']['fromRotationMatrix'](bVX, bVW); + bVP['orientation']['setValue'](bVW); + } + } + } + } + if (bMP['defined'](bMU[bVC]['ClippingPlanes']) && bVE instanceof bMP['Matrix4']) { + bMP['Matrix4']['multiply'](bW3, bVE, bW3); + } + if (bMP['defined'](bVF)) { + bVF['M' + doo(0x716) + 'X'] = Number(bVF['M' + doo(0x717) + 'X']) || 0x0; + bVF['M' + doo(0x718) + 'Y'] = Number(bVF['M' + doo(0x719) + 'Y']) || 0x0; + bVF['M' + doo(0x71a) + 'Z'] = Number(bVF['M' + doo(0x71b) + 'Z']) || 0x0; + bVF['M' + doo(0x71c) + 'X'] = Number(bVF['M' + doo(0x71d) + 'X']) || 0x0; + bVF['M' + doo(0x71e) + 'Y'] = Number(bVF['M' + doo(0x71f) + 'Y']) || 0x0; + bVF['M' + doo(0x720) + 'Z'] = Number(bVF['M' + doo(0x721) + 'Z']) || 0x0; + } + bVB['_viewer']['scene']['requestRender'](); + } + var bW3 = bMP[dol(0xeb3)]['IDENTITY']['clone'](); + function bW4(bW5) { + if (bMP['defined'](bMU[bW5]['clippingPlaneEntities']) && bMU[bW5]['clippingPlaneEntities']['length'] > 0x0) { + for (var bW6 = 0x0; bW6 < bMU[bW5]['clippingPlaneEntities']['length']; bW6++) { + var bW7 = bMU[bW5][dol(0xeb4)][bW6]; + bW7['show'] = bMX[dol(0xeb5)]; + bW7['position'] = bMU[bW5]['clippingBoxEntitiy']['position']['_value']['clone'](); + bW7['orientation']['setValue'](bMU[bW5]['clippingBoxEntitiy']['orientation']['_value']['clone']()); + } + } + bMP[dol(0xeb6)]['multiply'](bMU[bW5]['ClippingPlanes']['modelMatrix'], bW3, bMU[bW5]['ClippingPlanes']['modelMatrix']); + bW3 = bMP['Matrix4']['IDENTITY']['clone'](); + bMS['forEach'](bW8 => { + var bW7 = bMU[bW5]['clippingPlaneEntitiyMap'][bMU[bW5]['selfVestPrefix'] + bW8]; + if (!bMP['defined'](bW7) || !bMP['defined'](bW7[dol(0xeb7)])) + return; + var bWa = bMU[bW5]['ClippingPlanesMap'][bMU[bW5]['selfVestPrefix'] + bW8]; + if (!bMP['defined'](bWa)) + return; + var bWb = bMU[bW5]['ClippingPlanes']['_unionClippingRegions']; + switch (bW8) { + case 'M' + doo(0x722) + 'X': + case 'M' + doo(0x723) + 'X': + bW7['plane']['_distance'] = (bWb ? 0x1 : -0x1) * bMU[bW5]['clippingBoxSize']['x'] * 0.5; + bWa['distance'] = (bWb ? 0x1 : -0x1) * bMU[bW5]['clippingBoxSize']['x'] * 0.5; + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bMU[bW5]['clippingBoxSize']['y'],bMU[bW5]['clippingBoxSize']['z']), bW7[dol(0xeb8)]['dimensions']['_value']); + break; + case 'M' + doo(0x724) + 'Y': + case 'M' + doo(0x725) + 'Y': + bW7['plane']['_distance'] = (bWb ? 0x1 : -0x1) * bMU[bW5]['clippingBoxSize']['y'] * 0.5; + bWa[dol(0xeb9)] = (bWb ? 0x1 : -0x1) * bMU[bW5]['clippingBoxSize']['y'] * 0.5; + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bMU[bW5]['clippingBoxSize']['x'],bMU[bW5]['clippingBoxSize']['z']), bW7['plane']['dimensions']['_value']); + break; + case 'M' + doo(0x726) + 'Z': + case 'M' + doo(0x727) + 'Z': + bW7['plane']['_distance'] == (bWb ? 0x1 : -0x1) * bMU[bW5]['clippingBoxSize']['z'] * 0.5; + bWa['distance'] = (bWb ? 0x1 : -0x1) * bMU[bW5]['clippingBoxSize']['z'] * 0.5; + bMP['Cartesian2']['clone'](new bMP['Cartesian2'](bMU[bW5]['clippingBoxSize']['x'],bMU[bW5]['clippingBoxSize']['y']), bW7['plane']['dimensions']['_value']); + break; + default: + break; + } + } + ); + var bWc = function(bWd) { + if (!bWd) { + bMU[bW5]['Models']['forEach'](function(bWe, bWf) { + _that['_API'][dol(0xeba)][dol(0xebb)](bWe, function(bWg) { + bWg[dol(0xebc)](function(bWh, bWi) { + if (bWh && bWh['content'] && bWh['content']['_model']) + bWh['content']['_model']['_shouldRegenerateShaders'] = !![]; + }); + }); + }); + } + }; + bWc(!![]); + _that['_viewer']['scene']['requestRender'](); + } + var bWj = ![]; + var bWk; + var bWl = 0x0; + function bWm(bWn) { + bWn['_API'][dol(0xebd)]['event']('M' + doo(0x728) + 'N', function(bWo) { + if (!bMX['ClippingPlaneEntities']) + return; + var bWp = bWn['_scene']['drillPick'](bWo['position']); + if (bWp['length'] > 0x0) { + for (var bWq = 0x0; bWq < bWp['length']; bWq++) { + var bWr = bWp[bWq]; + if (bMP[dol(0xebe)](bWr) && bMP['defined'](bWr['id']) && bWr['id']['isPlaneHelper']) { + bN0 = bMY['ZOOM']; + bMZ = bWr['id']; + var bWs = bMZ['_name'][bMZ['_name']['length'] - 0x1]; + var bWt = 0.3; + if (bWs == 'X') { + bMZ[dol(0xebf)][dol(0xec0)]['color'] = bMP[dol(0xec1)]['RED']['withAlpha'](bWt); + } else if (bWs == 'Y') { + bMZ['plane']['material']['color'] = bMP['Color']['GREEN']['withAlpha'](bWt); + } else if (bWs == 'Z') { + bMZ['plane']['material']['color'] = bMP['Color']['BLUE']['withAlpha'](bWt); + } + bWn['_scene']['screenSpaceCameraController']['enableInputs'] = ![]; + break; + } + } + } + }); + bWn['_API']['Public']['event']('M' + doo(0x729) + 'P', function(bWu) { + if (bMP['defined'](bMZ)) { + var bWv = bMZ['clippingId']; + bW4(bWv); + if (bMZ instanceof bMP['Entity']) { + bMZ['plane']['material'][dol(0xec2)] = bMP['defined'](bMU[bWv]['box'][dol(0xec3)]) ? (bMU[bWv]['box']['planeColor']instanceof bMP['Color'] ? bMU[bWv]['box']['planeColor'] : bMP['Color']['fromCssColorString'](bMU[bWv]['box']['planeColor']))[dol(0xec4)](0.1) : bMP['Color']['WHITE']['withAlpha'](0.1); + } else if (bMZ instanceof bMP['Primitive']) { + bMZ['appearance']['material']['uniforms']['color']['alpha'] = 0.5; + } + bMZ = undefined; + bN0 = -0x1; + bWn['_scene']['screenSpaceCameraController']['enableInputs'] = !![]; + } + }); + bWn['_API']['Public'][dol(0xec5)]('L' + doo(0x72a) + 'N', function(bWw) { + if (bWn['_API']['isMobile']()) { + if (!bMX['Helpers'] && !bMX['ClippingPlaneEntities']) + return; + } else if (!bMX['Helpers']) + return; + var bWx = bWn['_scene']['drillPick'](bWw['position']); + if (bWx['length'] > 0x0) { + if (bWn['_API']['isMobile']()) { + bWj = !![]; + bWk = bWw['position']; + bWl = setTimeout(function() { + if (bWj) { + var bWy; + var bWz = ![]; + for (var bWA = 0x0; bWA < bWx[dol(0xec6)]; bWA++) { + var bWB = bWx[bWA]; + if (bMP['defined'](bWB)) { + if (bMP['defined'](bWB['primitive']) && (bWB[dol(0xec7)][dol(0xec8)] || bWB['primitive']['isRotateHelper'])) { + if (bWB['primitive']['isAxesHelper']) + bN0 = bMY[dol(0xec9)]; + if (bWB['primitive']['isRotateHelper']) + bN0 = bMY[dol(0xeca)]; + bMZ = bWB['primitive']; + bMZ['appearance']['material']['uniforms']['color']['alpha'] = 0x1; + bWn['_scene']['screenSpaceCameraController']['enableInputs'] = ![]; + bWz = !![]; + break; + } else if (bMP['defined'](bWB[dol(0xecb)]) && bWB['id']['isPlaneHelper']) { + if (!bMP[dol(0xecc)](bWy)) { + bWy = bWB; + } + } + } + } + if (!bWz && bMP['defined'](bWy)) { + bN0 = bMY['ZOOM']; + bMZ = bWy['id']; + var bWC = bMZ['_name'][bMZ['_name']['length'] - 0x1]; + if (bWC == 'X') { + bMZ['plane']['material']['color'] = bMP['Color']['RED']['withAlpha'](0.1); + } else if (bWC == 'Y') { + bMZ['plane']['material']['color'] = bMP['Color']['GREEN']['withAlpha'](0.1); + } else if (bWC == 'Z') { + bMZ['plane']['material']['color'] = bMP['Color']['BLUE']['withAlpha'](0.1); + } + bWn['_scene']['screenSpaceCameraController']['enableInputs'] = ![]; + } + } + }, bMW); + } else { + for (var bWD = 0x0; bWD < bWx['length']; bWD++) { + var bWE = bWx[bWD]; + if (bMP[dol(0xecd)](bWE) && bMP['defined'](bWE['primitive']) && (bWE['primitive']['isAxesHelper'] || bWE['primitive']['isRotateHelper'])) { + if (bWE['primitive']['isAxesHelper']) + bN0 = bMY['PAN']; + if (bWE['primitive'][dol(0xece)]) + bN0 = bMY['ROTATE']; + bMZ = bWE['primitive']; + bMZ['appearance']['material']['uniforms']['color']['alpha'] = 0x1; + bWn['_scene']['screenSpaceCameraController']['enableInputs'] = ![]; + break; + } + } + } + } + }); + bWn['_API']['Public']['event']('L' + doo(0x72b) + 'P', function(bWF) { + bWj = ![]; + bWk = undefined; + clearTimeout(bWl); + bWl = 0x0; + if (bMP['defined'](bMZ)) { + var bWG = bMZ['clippingId']; + bW4(bWG); + if (bMZ instanceof bMP['Entity']) { + bMZ['plane']['material']['color'] = bMP['defined'](bMU[bWG]['box']['planeColor']) ? (bMU[bWG][dol(0xecf)]['planeColor']instanceof bMP['Color'] ? bMU[bWG]['box']['planeColor'] : bMP['Color']['fromCssColorString'](bMU[bWG]['box']['planeColor']))['withAlpha'](0.1) : bMP['Color']['WHITE']['withAlpha'](0.1); + } else if (bMZ instanceof bMP['Primitive']) { + bMZ[dol(0xed0)]['material']['uniforms']['color']['alpha'] = 0.5; + } + bMZ = undefined; + bN0 = -0x1; + bWn['_scene']['screenSpaceCameraController']['enableInputs'] = !![]; + } + }); + bWn['_API']['Public']['event']('M' + doo(0x72c) + 'E', function(bWH) { + if (bWj && bMP['defined'](bWk)) { + var bWI = new bMP[(dol(0xed1))](); + bMP[dol(0xed2)]['subtract'](bWH[dol(0xed3)], bWk, bWI); + var bWJ = bMP['Cartesian2']['magnitude'](bWI); + if (bWJ > 0x14) { + bWj = ![]; + return; + } + } + if (bWj) + return; + if (bMP['defined'](bMZ)) { + var bWK = bMZ['_name'][bMZ[dol(0xed4)]['length'] - 0x1]; + var bWL = bMZ['_name']; + var bWM = bMZ['clippingId']; + var bWN = bWM; + var bWO = bMU[bWN]['CurrentCPBoxModelMatrix']['clone'](); + var bWP = new bMP['Cartesian3'](); + var bWQ = bMP['Matrix3']['IDENTITY'][dol(0xed5)](); + bMP['Matrix4']['getTranslation'](bWO, bWP); + bMP['Matrix4']['getMatrix3'](bWO, bWQ); + var bWR = bMP['SceneTransforms']['wgs84ToWindowCoordinates'](bWn[dol(0xed6)], bWP); + var bWS = bMP['Matrix4']['fromRotationTranslation'](bWQ); + var bWT = 0x1; + var bWU = bMU[bWN]['HelperConfigs']['RotateHelper']['X'] % (Math[dol(0xed7)] * 0x2); + var bWV = bMU[bWN]['HelperConfigs']['RotateHelper']['Y'] % (Math['PI'] * 0x2); + var bWW = bMU[bWN]['HelperConfigs']['RotateHelper']['Z'] % (Math[dol(0xed8)] * 0x2); + var bWX = function(bWY, bWZ) { + var bX0 = bMP['Matrix3']['fromRotationX'](bWZ[0x0]); + var bX1 = bMP['Matrix3']['fromRotationY'](bWZ[0x1]); + var bX2 = bMP['Matrix3']['fromRotationZ'](bWZ[0x2]); + var bX3 = bMP['Matrix4']['fromRotationTranslation'](bX0); + var bX4 = bMP['Matrix4']['fromRotationTranslation'](bX1); + var bX5 = bMP['Matrix4']['fromRotationTranslation'](bX2); + bMP['Matrix4']['multiply'](bWO, bX5, bWO); + bMP['Matrix4']['multiply'](bWO, bX4, bWO); + bMP['Matrix4']['multiply'](bWO, bX3, bWO); + bMP['Matrix4']['multiplyByPoint'](bX5, bWY, bWY); + bMP['Matrix4']['multiplyByPoint'](bX4, bWY, bWY); + bMP[dol(0xed9)]['multiplyByPoint'](bX3, bWY, bWY); + }; + if (bN0 == bMY['PAN'] || bN0 == bMY['ZOOM']) { + var bX6 = new bMP['Cartesian3'](); + switch (bMZ['_name']) { + case bMU[bWN]['selfVestPrefix'] + ('A' + doo(0x72d) + 'X'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x72e) + 'X'): + bX6['x'] = 0x1; + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x72f) + 'X'): + bX6['x'] = 0x1; + break; + case bMU[bWN][dol(0xeda)] + ('A' + doo(0x730) + 'Y'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x731) + 'Y'): + bX6['y'] = 0x1; + break; + case bMU[bWN][dol(0xedb)] + ('M' + doo(0x732) + 'Y'): + bX6['y'] = 0x1; + break; + case bMU[bWN]['selfVestPrefix'] + ('A' + doo(0x733) + 'Z'): + bX6['z'] = -0x1; + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x734) + 'Z'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x735) + 'Z'): + bX6['z'] = 0x1; + break; + default: + break; + } + bWX(bX6, [bWU, bWV, bWW]); + bX6 = bXS(bX6, bWS); + var bX7 = bY8(bWP, bX6, 0x1); + if (bMP['defined'](bX7)) { + var bX8 = bMP['SceneTransforms'][dol(0xedc)](bWn['_scene'], bX7); + if (bMP['defined'](bX8)) { + var bX9 = new bMP['Cartesian2'](); + bMP['Cartesian2'][dol(0xedd)](bX8, bWR, bX9); + var bXa = new bMP['Cartesian2'](); + bMP['Cartesian2']['subtract'](bWH['endPosition'], bWH['startPosition'], bXa); + if (bMP['Cartesian2']['equals'](bX9, bMP['Cartesian2']['ZERO']) || bMP['Cartesian2']['equals'](bXa, bMP['Cartesian2']['ZERO'])) { + return; + } + if (bMP['defined'](bX9)) { + var bXb = bMP['Cartesian2']['angleBetween'](bX9, bXa); + if (bXb > Math[dol(0xede)] * 0.5) + bWT *= -0x1; + } + } + } + } + var bXc = bMU[bWN]['ClipSpeed'] * bMP[dol(0xedf)]['distance'](bWH['startPosition'], bWH['endPosition']) / 0x7 * bWT; + if (bN0 == bMY['ZOOM'] && bMU[bWN]['box']['planesNames']['length'] == 0x1) { + bN0 = bMY['PAN']; + } + var bXd = { + 'command': '', + 'parameter': {} + }; + switch (bN0) { + case bMY['PAN']: + { + var bXe = new bMP['Cartesian3'](bWK == 'X' ? 0x1 : 0x0,bWK == 'Y' ? 0x1 : 0x0,bWK == 'Z' ? -0x1 : 0x0); + if (bMU[bWN]['box']['planesNames']['length'] == 0x1) { + switch (bMZ['_name']) { + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x736) + 'X'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x737) + 'X'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x738) + 'Y'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x739) + 'Y'): + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x73a) + 'Z'): + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x73b) + 'Z'): + bXe['z'] *= -0x1; + break; + default: + break; + } + } + bMP['Cartesian3']['normalize'](bXe, bXe); + bMP[dol(0xee0)]['multiplyByScalar'](bXe, bXc, bXe); + bXd['command'] = 't' + doo(0x73c) + 'n'; + bXd['parameter'] = bXe; + } + break; + case bMY['ZOOM']: + { + bXd['command'] = 'd' + doo(0x73d) + 'e'; + bXd['parameter'] = { + 'MAX-X': 0x0, + 'MIN-X': 0x0, + 'MAX-Y': 0x0, + 'MIN-Y': 0x0, + 'MAX-Z': 0x0, + 'MIN-Z': 0x0 + }; + switch (bMZ['_name']) { + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x73e) + 'X'): + bXd['parameter']['M' + doo(0x73f) + 'X'] = bXc; + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x740) + 'X'): + bXd[dol(0xee1)]['M' + doo(0x741) + 'X'] = bXc; + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x742) + 'Y'): + bXd[dol(0xee2)]['M' + doo(0x743) + 'Y'] = bXc; + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x744) + 'Y'): + bXd['parameter']['M' + doo(0x745) + 'Y'] = bXc; + break; + case bMU[bWN][dol(0xee3)] + ('M' + doo(0x746) + 'Z'): + bXd['parameter']['M' + doo(0x747) + 'Z'] = bXc; + break; + case bMU[bWN]['selfVestPrefix'] + ('M' + doo(0x748) + 'Z'): + bXd['parameter']['M' + doo(0x749) + 'Z'] = bXc; + break; + default: + break; + } + } + break; + case bMY['ROTATE']: + { + var bXf = bMP['SceneTransforms']['wgs84ToWindowCoordinates'](bWn['_scene'], bWP); + var bXg = function(bXh) { + var bXi = bXh['x'] - bXf['x'] + , bXj = bXh['y'] - bXf['y']; + var bXk = 0x168 * Math['atan2'](bXj, bXi) / (0x2 * Math[dol(0xee4)]); + return bXk; + }; + var bXl = bXg(bWH['startPosition']); + var bXm = bXg(bWH['endPosition']); + var bXb = bMU[bWN]['RotateSpeed'] * bMP['Math']['toRadians'](bXl - bXm); + var bXo = bMP[dol(0xee5)]['UNIT_Z']['clone'](); + if (bWK == 'X') { + bXo = bMP['Cartesian3']['UNIT_X']['clone'](); + } else if (bWK == 'Y') { + bXo = bMP['Cartesian3']['UNIT_Y']['clone'](); + } else if (bWK == 'Z') { + bXo = bMP['Cartesian3']['UNIT_Z']['clone'](); + } + var bXp = new bMP['Cartesian3'](); + bMP['Cartesian3'][dol(0xee6)](bWn['_camera']['position'], bWP, bXp); + bMP['Cartesian3']['normalize'](bXp, bXp); + var bXq = bMP['Cartesian3']['angleBetween'](bXo, bXp); + if (bXq > Math['PI'] * 0.5) { + bXb *= -0x1; + } + bXd['command'] = 'r' + doo(0x74a) + 'e'; + if (bWK == 'X') { + bXd['parameter'] = { + 'x': bXb + }; + } else if (bWK == 'Y') { + bXd['parameter'] = { + 'y': bXb + }; + } else if (bWK == 'Z') { + bXd['parameter'] = { + 'z': -bXb + }; + } + } + break; + default: + break; + } + bXd['isInner'] = !![]; + bWn['setClipVariance'](bWM, bXd); + bWn[dol(0xee7)]['scene']['requestRender'](); + } + }); + } + function bXr(bXs) { + return new bMP['ClippingPlaneCollection']({ + 'planes': [], + 'edgeColor': bMP['defined'](bMU[bXs]['plateLineColor']) ? bMU[bXs]['plateLineColor']instanceof bMP['Color'] ? bMU[bXs]['plateLineColor'] : bMP['Color']['fromCssColorString'](bMU[bXs]['plateLineColor']) : bMP['Color']['RED'], + 'edgeWidth': bMP['defined'](bMU[bXs]['isShowClipLine']) && bMU[bXs]['isShowClipLine'] ? 0x2 : 0x0, + 'unionClippingRegions': bMP['defaultValue'](bMU[bXs]['unionClippingRegions'], !![]) + }); + } + function bXt(bXu, bXv) { + if (!bMP['defined'](bMU[bXv]['ModelCenter']['size'])) { + var bXw = new bYu()['setFromArray'](bMU[bXv]['ModelCenter']['oldsphere']['positions']); + var bXx = new bMP['Cartesian3'](); + var bXy = new bMP['Cartesian3'](); + bXw['getCenter'](bXx); + bXw['getSize'](bXy); + bMP['Cartesian3']['multiplyComponents'](bXy, bMP[dol(0xee8)]['unpack'](bMU[bXv]['box']['scalar']), bXy); + bMU[bXv]['ModelCenter']['size'] = bXy; + } + var bXx = bMU[bXv]['ModelCenter']['center']; + var bXy = bMU[bXv]['ModelCenter']['size']; + bMU[bXv]['MaxClipPlanDistance'] = { + 'min': new bMP['Cartesian3'](+Infinity,+Infinity,+Infinity), + 'max': new bMP[(dol(0xee9))](+Infinity,+Infinity,+Infinity) + }; + if (bMP['defined'](bMU[bXv]['clipBox'])) { + bMP['Cartesian3']['clone'](bMU[bXv]['clipBox']['center'], bXx); + bMP['Cartesian3']['clone'](bMU[bXv]['clipBox']['size'], bXy); + } + bMU[bXv][dol(0xeea)] = bXx; + bMU[bXv]['clippingBoxSize'] = bXy; + bMU[bXv]['initClipingBoxCenter'] = bXx['clone'](); + bMU[bXv]['initClippingBoxSize'] = bXy[dol(0xeeb)](); + bMU[bXv]['HelperConfigs']['PlaneDistance']['xMin'] = bMU[bXv]['HelperConfigs']['PlaneDistance']['xMax'] = bXy['x'] * 0.5; + bMU[bXv]['HelperConfigs'][dol(0xeec)]['yMin'] = bMU[bXv]['HelperConfigs']['PlaneDistance']['yMax'] = bXy['y'] * 0.5; + bMU[bXv]['HelperConfigs']['PlaneDistance']['zMin'] = bMU[bXv]['HelperConfigs']['PlaneDistance']['zMax'] = bXy['z'] * 0.5; + if (!bMP['defined'](bMU[bXv]['CurrentCPBoxModelMatrix'])) { + bMU[bXv]['CurrentCPBoxModelMatrix'] = bMP['Matrix4']['IDENTITY']['clone'](); + bMU[bXv]['InitCPBoxModelMatrix'] = bMP['Matrix4']['IDENTITY'][dol(0xeed)](); + } + var bXB = bMP['Transforms']['eastNorthUpToFixedFrame'](bXx); + bXB['clone'](bMU[bXv]['CurrentCPBoxModelMatrix']); + bXB['clone'](bMU[bXv]['InitCPBoxModelMatrix']); + var bXC = bXx; + var bXD = 0x0; + var bXE = 0x0; + var bXF = 0x0; + var bXG = bMP['Transforms']['headingPitchRollQuaternion'](bXC, new bMP['HeadingPitchRoll'](bXD,bXE,bXF)); + var bXH = new bMP['CustomDataSource'](bMR); + var bXI = 0.1; + var bXJ = bMU[bXv]['box']['planesNames']; + var bXK = bXH['entities'][dol(0xeee)]({ + 'position': new bMP['CallbackProperty'](function() { + return bMU[bXv]['clippingBoxCenter']; + } + ,![]), + 'orientation': bXG, + 'box': { + 'dimensions': new bMP[(dol(0xeef))](function() { + return bMU[bXv]['clippingBoxSize']; + } + ,![]), + 'fill': ![], + 'outline': !![], + 'outlineColor': bMP['Color']['YELLOW'] + } + }); + bXK['initPosition'] = bXx[dol(0xef0)](); + bMU[bXv]['clippingBoxEntitiy'] = bXK; + bXJ['forEach'](bXL => { + var bXM = 0xa; + var bXN; + var bXO; + switch (bXL) { + case 'M' + doo(0x74b) + 'X': + bXM = bXy['x'] * 0.5; + bXN = new bMP['Cartesian3'](-0x1,0x0,0x0); + bXO = new bMP['Cartesian2'](bXy['y'],bXy['z']); + break; + case 'M' + doo(0x74c) + 'X': + bXM = bXy['x'] * 0.5; + bXN = new bMP['Cartesian3'](0x1,0x0,0x0); + bXO = new bMP['Cartesian2'](bXy['y'],bXy['z']); + break; + case 'M' + doo(0x74d) + 'Y': + bXM = bXy['y'] * 0.5; + bXN = new bMP['Cartesian3'](0x0,-0x1,0x0); + bXO = new bMP['Cartesian2'](bXy['x'],bXy['z']); + break; + case 'M' + doo(0x74e) + 'Y': + bXM = bXy['y'] * 0.5; + bXN = new bMP['Cartesian3'](0x0,0x1,0x0); + bXO = new bMP['Cartesian2'](bXy['x'],bXy['z']); + break; + case 'M' + doo(0x74f) + 'Z': + bXM = bXy['z'] * 0.5; + bXN = new bMP['Cartesian3'](0x0,0x0,-0x1); + bXO = new bMP['Cartesian2'](bXy['x'],bXy['y']); + break; + case 'M' + doo(0x750) + 'Z': + bXM = bXy['z'] * 0.5; + bXN = new bMP['Cartesian3'](0x0,0x0,0x1); + bXO = new bMP['Cartesian2'](bXy['x'],bXy['y']); + break; + default: + return; + } + if (bXJ['length'] == 0x1) + bXM = 0x0; + bXL = bMU[bXv]['selfVestPrefix'] + bXL; + var bXP = new bMP[(dol(0xef1))](); + bMP['Cartesian3']['negate'](bXN, bXP); + var bXQ = new bMP['ClippingPlane'](bMU[bXv]['unionClippingRegions'] ? bXN : bXP,(bMU[bXv]['unionClippingRegions'] ? 0x1 : -0x1) * bXM); + if (bXQ) { + bXQ['name'] = bXL; + bMU[bXv]['ClippingPlanes']['add'](bXQ); + if (!bMP['defined'](bMU[bXv]['ClippingPlanesMap'])) + bMU[bXv]['ClippingPlanesMap'] = {}; + bMU[bXv]['ClippingPlanesMap'][bXL] = bXQ; + var bXR = bXH[dol(0xef2)]['add']({ + 'id': bXL, + 'position': bXx, + 'orientation': bXG, + 'plane': { + 'name': bXL, + 'dimensions': bXO, + 'material': bMP['defined'](bMU[bXv]['box']['planeColor']) ? (bMU[bXv]['box']['planeColor']instanceof bMP['Color'] ? bMU[bXv][dol(0xef3)]['planeColor']['withAlpha'](bXI) : bMP['Color']['fromCssColorString'](bMU[bXv]['box']['planeColor']))['withAlpha'](bXI) : bMP['Color']['WHITE']['withAlpha'](bXI), + 'plane': bXQ, + 'outline': !![], + 'outlineColor': bMP['defined'](bMU[bXv]['box'][dol(0xef4)]) ? bMU[bXv]['box']['outlineColor']instanceof bMP['Color'] ? bMU[bXv]['box'][dol(0xef5)] : bMP['Color']['fromCssColorString'](bMU[bXv]['box']['outlineColor']) : bMP['Color']['WHITE'], + 'show': bMX['ClippingPlaneEntities'] + } + }); + bXR['name'] = bXL; + bXR['clippingId'] = bXv; + bXR['isClippingBox'] = !![]; + bXR['isPlaneHelper'] = !![]; + bXR['initPosition'] = bXx['clone'](); + if (!bMP['defined'](bMU[bXv]['clippingPlaneEntities'])) + bMU[bXv]['clippingPlaneEntities'] = []; + bMU[bXv]['clippingPlaneEntities']['push'](bXR); + if (!bMP['defined'](bMU[bXv]['clippingPlaneEntitiyMap'])) + bMU[bXv]['clippingPlaneEntitiyMap'] = {}; + bMU[bXv]['clippingPlaneEntitiyMap'][bXL] = bXR; + } + } + ); + bMU[bXv]['clippingPlaneEntitiesDataSources'] = bXH; + bXu[dol(0xef6)]['dataSources']['add'](bXH); + } + function bXS(bXT, bXU) { + var bXV = bXT['x'] + , bXW = bXT['y'] + , bXX = bXT['z']; + var bXY = bXU; + var bXZ = 0x1 / (bXY[0x3] * bXV + bXY[0x7] * bXW + bXY[0xb] * bXX + bXY[0xf]); + bXT['x'] = (bXY[0x0] * bXV + bXY[0x4] * bXW + bXY[0x8] * bXX + bXY[0xc]) * bXZ; + bXT['y'] = (bXY[0x1] * bXV + bXY[0x5] * bXW + bXY[0x9] * bXX + bXY[0xd]) * bXZ; + bXT['z'] = (bXY[0x2] * bXV + bXY[0x6] * bXW + bXY[0xa] * bXX + bXY[0xe]) * bXZ; + return bXT; + } + var bY0 = function(bY1, bY2, bY3) { + bY3[0x0] = bY1['x'] * bY1['x'] * (0x1 - Math['cos'](bY2)) + Math['cos'](bY2); + bY3[0x1] = bY1['x'] * bY1['y'] * (0x1 - Math[dol(0xef7)](bY2)) + bY1['z'] * Math[dol(0xef8)](bY2); + bY3[0x2] = bY1['x'] * bY1['z'] * (0x1 - Math['cos'](bY2)) - bY1['y'] * Math['sin'](bY2); + bY3[0x3] = bY1['x'] * bY1['y'] * (0x1 - Math['cos'](bY2)) - bY1['z'] * Math['sin'](bY2); + bY3[0x4] = bY1['y'] * bY1['y'] * (0x1 - Math[dol(0xef9)](bY2)) + Math['cos'](bY2); + bY3[0x5] = bY1['y'] * bY1['z'] * (0x1 - Math['cos'](bY2)) + bY1['x'] * Math['sin'](bY2); + bY3[0x6] = bY1['x'] * bY1['z'] * (0x1 - Math['cos'](bY2)) + bY1['y'] * Math['sin'](bY2); + bY3[0x7] = bY1['y'] * bY1['z'] * (0x1 - Math['cos'](bY2)) - bY1['x'] * Math['sin'](bY2); + bY3[0x8] = bY1['z'] * bY1['z'] * (0x1 - Math['cos'](bY2)) + Math['cos'](bY2); + }; + function bY4(bY5) { + var bY6 = bMP['defined'](bY5['root']) && bMP['defined'](bY5['root']['_header']) && bMP['defined'](bY5['root']['_header']['clipBox']) ? bY5['root']['_header']['clipBox'] : undefined; + var bY7 = bMP['defined'](bY5['root']) && bMP['defined'](bY5['root']['_header']) && bMP['defined'](bY5['root']['_header']['initClipBox']) ? bY5['root']['_header']['initClipBox'] : bY6; + return bY7; + } + function bY8(bY9, bYa, bYb) { + var bYc = new bMP['Cartesian3'](); + bMP['Cartesian3']['normalize'](bYa, bYc); + function bYd(bYe, bYf, bYg) { + if (!bMP['defined'](bYe)) + bYe = new bMP['Cartesian3'](); + bYe['x'] += bYf['x'] * bYg; + bYe['y'] += bYf['y'] * bYg; + bYe['z'] += bYf['z'] * bYg; + return bYe; + } + return bYd(bY9['clone'](), bYc, bYb); + } + function bYh(bYi) { + bMU[bYi['id']] = {}; + bYj(bMU[bYi['id']], bMT); + bYj(bMU[bYi['id']], bYi); + } + function bYj(bYk, bYl) { + for (var bYm in bYl) + if (bYl['hasOwnProperty'](bYm)) { + if (Array['isArray'](bYl[bYm])) { + bYk[bYm] = []; + bYk[bYm] = bYk[bYm]['concat'](bYl[bYm]); + } else if (bYs(bYl[bYm])) { + bYk[bYm] = bYl[bYm]; + } else if (bYl[bYm]instanceof bMP['Color'] || bYl[bYm]instanceof bMP['Cartesian2'] || bYl[bYm]instanceof bMP['Cartesian3'] || bYl[bYm]instanceof bMP['Cartesian4']) { + bYk[bYm] = bYl[bYm]; + } else { + if (!bMP['defined'](bYk[bYm])) + bYk[bYm] = {}; + bYk[bYm] = bYj(bYk[bYm], bYl[bYm]); + } + } + return bYk; + } + function bYn(bYo, bYp) { + if (!bYo || typeof bYo !== 'o' + doo(0x751) + 't') { + throw new Error('e' + doo(0x752) + 'r'); + } + var bYq = bYo['constructor'] === Array ? [] : {}; + for (var bYr in bYo) { + if (bYp && bYp['indexOf'](bYr) != -0x1) + continue; + if (bYo['hasOwnProperty'](bYr)) { + if (bYo[bYr]) { + if (bYo[bYr]instanceof bMP['Cartesian2'] || bYo[bYr]instanceof bMP['Cartesian3'] || bYo[bYr]instanceof bMP['Cartesian4'] || bYo[bYr]instanceof bMP['Color'] || bYo[bYr]instanceof bMP['Matrix3'] || bYo[bYr]instanceof bMP['Matrix4']) { + bYq[bYr] = bYo[bYr]['clone'](); + } else if (bYo[bYr]instanceof Float64Array || bYo[bYr]instanceof Float32Array) { + bYq[bYr] = []['slice']['call'](bYo[bYr]); + } else if (typeof bYo[bYr] === 'o' + doo(0x753) + 't') { + bYq[bYr] = bYo[bYr]['constructor'] === Array ? [] : {}; + bYq[bYr] = bYn(bYo[bYr]); + } else { + bYq[bYr] = bYo[bYr]; + } + } + } + } + return bYq; + } + ;function bYs(bYt) { + return typeof bYt === 's' + doo(0x754) + 'g' || typeof bYt === 'n' + doo(0x755) + 'r' || typeof bYt === 'b' + doo(0x756) + 'n' || typeof bYt === 'u' + doo(0x757) + 'd' || bYt === null; + } + var bYu = function() { + this['min'] = new bMP['Cartesian3'](Infinity,Infinity,Infinity); + this['max'] = new bMP['Cartesian3'](-Infinity,-Infinity,-Infinity); + this['set'] = function(bYv, bYw) { + bYv[dol(0xefa)](this['min']); + bYw['clone'](this['max']); + return this; + } + ; + this['setFromArray'] = function(bYx) { + var bYy = +Infinity; + var bYz = +Infinity; + var bYA = +Infinity; + var bYB = -Infinity; + var bYC = -Infinity; + var bYD = -Infinity; + for (var bYE = 0x0, bYF = bYx['length']; bYE < bYF; bYE += 0x3) { + var bYG = bYx[bYE]; + var bYH = bYx[bYE + 0x1]; + var bYI = bYx[bYE + 0x2]; + if (bYG < bYy) + bYy = bYG; + if (bYH < bYz) + bYz = bYH; + if (bYI < bYA) + bYA = bYI; + if (bYG > bYB) + bYB = bYG; + if (bYH > bYC) + bYC = bYH; + if (bYI > bYD) + bYD = bYI; + } + bMP['Cartesian3']['fromElements'](bYy, bYz, bYA, this['min']); + bMP['Cartesian3']['fromElements'](bYB, bYC, bYD, this['max']); + return this; + } + ; + this['makeEmpty'] = function() { + this['min']['x'] = this['min']['y'] = this['min']['z'] = +Infinity; + this['max']['x'] = this['max']['y'] = this['max']['z'] = -Infinity; + return this; + } + ; + this['isEmpty'] = function() { + return this['max']['x'] < this['min']['x'] || this['max']['y'] < this['min']['y'] || this['max']['z'] < this['min']['z']; + } + ; + this['getCenter'] = function(bYJ) { + return this['isEmpty']() ? new bMP['Cartesian3']()['clone'](bYJ) : new bMP['Cartesian3']((this['min']['x'] + this['max']['x']) * 0.5,(this['min']['y'] + this['max']['y']) * 0.5,(this['min']['z'] + this['max']['z']) * 0.5)['clone'](bYJ); + } + ; + this['getSize'] = function(bYK) { + return this['isEmpty']() ? new bMP['Cartesian3']()['clone'](bYK) : new bMP['Cartesian3'](Math['abs'](this['min']['x'] - this['max']['x']),Math['abs'](this['min']['y'] - this['max']['y']),Math['abs'](this['min']['z'] - this['max']['z']))['clone'](bYK); + } + ; + this['setFromPoints'] = function(bYL) { + this['makeEmpty'](); + for (let bYM = 0x0, bYN = bYL[dol(0xefb)]; bYM < bYN; bYM++) { + this['expandByPoint'](bYL[bYM]); + } + return this; + } + ; + this['expandByPoint'] = function(bYO) { + this['min']['x'] = Math['min'](this['min']['x'], bYO['x']); + this['min']['y'] = Math['min'](this['min']['y'], bYO['y']); + this['min']['z'] = Math[dol(0xefc)](this['min']['z'], bYO['z']); + this['max']['x'] = Math['max'](this['max']['x'], bYO['x']); + this['max']['y'] = Math['max'](this['max']['y'], bYO['y']); + this['max']['z'] = Math[dol(0xefd)](this['max']['z'], bYO['z']); + return this; + } + ; + this['applyMatrix4'] = function(bYP) { + if (this['isEmpty']()) + return this; + var bYQ = [bMP['Cartesian3']['fromElements'](this['min']['x'], this['min']['y'], this['min']['z']), bMP['Cartesian3']['fromElements'](this['min']['x'], this['min']['y'], this['max']['z']), bMP['Cartesian3']['fromElements'](this['min']['x'], this['max']['y'], this['min']['z']), bMP['Cartesian3']['fromElements'](this['min']['x'], this['max']['y'], this['max']['z']), bMP['Cartesian3']['fromElements'](this['max']['x'], this['min']['y'], this['min']['z']), bMP['Cartesian3']['fromElements'](this['max']['x'], this['min']['y'], this['max']['z']), bMP['Cartesian3'][dol(0xefe)](this['max']['x'], this['max']['y'], this['min']['z']), bMP['Cartesian3']['fromElements'](this['max']['x'], this['max']['y'], this['max']['z'])]; + for (var bYR = 0x0; bYR < bYQ['length']; bYR++) { + var bYS = bYQ[bYR]; + bXS(bYS, bYP); + } + this['setFromPoints'](bYQ); + return this; + } + ; + }; + function bYT(bYU, bYV, bYW, bYX, bYY, bYZ, bZ0) { + var bZ1 = new bMP['Cartesian3'](); + if (bYW instanceof bMP['Cartesian3']) { + bYW['clone'](bZ1); + } else if (bYW['length'] == 0x1 && bYW[0x0]instanceof bMP[dol(0xeff)]) { + bYW[0x0]['clone'](bZ1); + } else { + bZ1 = bMP['Cartesian3']['fromRadiansArrayHeights'](bYW)[0x0]; + } + var bZ2 = bYU['_viewer'][dol(0xf00)]['add']({ + 'id': bYV, + 'position': bZ1, + 'point': { + 'color': bYX, + 'pixelSize': bYZ, + 'outlineColor': bYY, + 'outlineWidth': bYZ / 0x2, + 'show': !![], + 'distanceDisplayCondition': bZ0, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + return bZ2; + } + bN1[dol(0xf01)]['Create'] = bN1['prototype']['add']; + bN1['prototype'][dol(0xf02)] = bN1['prototype']['setVisible']; + bN1['prototype'][dol(0xf03)] = bN1['prototype']['setSpeed']; + bN1['prototype']['GetById'] = bN1['prototype']['getById']; + bN1[dol(0xf04)]['Destroy'] = bN1['prototype']['remove']; + bN1['prototype'][dol(0xf05)] = bN1['prototype']['repairEvent']; + bN1['prototype']['SetClipOrientedBoundingBox'] = bN1['prototype']['setClipByCenterAndSize']; + bN1['prototype']['SetClipMinimaxBoundingBox'] = bN1['prototype']['setClipByMinimaxPoints']; + return bN1; + }(window['Cesium'] || {}); + ;GLENavigationCube = function(bZ3) { + var bZ4 = 0x100; + var bZ5 = { + 'imgs': { + 'top': '', + 'bottom': '', + 'east': '', + 'south': '', + 'west': '', + 'north': '' + }, + 'offset': { + 'corner': 0x1, + 'x': 0x1e, + 'y': 0x1e + }, + 'zoomRatios': 0x1, + 'show': !![], + 'showAxes': !![], + 'cube': { + 'hoverColor': '#' + doo(0x758) + '0', + 'size': 0x32, + 'hotPointSize': 0x7, + 'cubeTextColor': '#' + doo(0x759) + 'c', + 'cubeStrokeColor': '#' + doo(0x75a) + 'd', + 'cubeFillColor': '#' + doo(0x75b) + '9' + } + }; + function bZ6(bZ7, bZ8) { + this['_API'] = bZ7; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + var bZ9 = this; + bZ9['cesiumPluginCubeDivID'] = bZ9['cesiumPluginCubeDivClaccName'] = 'c' + doo(0x75c) + 'e'; + c1c(bZ9, bZ8); + c1j(bZ9); + bZf(bZ9); + } + bZ6['LeftTop'] = 0x0; + bZ6[dol(0xf06)] = 0x1; + bZ6['RightBottom'] = 0x2; + bZ6['LeftBottom'] = 0x3; + bZ6['prototype']['update'] = function(bZa) { + var bZb = this; + c1c(bZb, bZa); + c1j(bZb); + bZf(bZb); + } + ; + bZ6['prototype']['setVisible'] = function(bZc) { + var bZd = this; + var bZe = document['getElementById'](bZd['cesiumPluginCubeDivID']); + if (bZe) { + bZe['style']['display'] = bZc ? 'b' + doo(0x75d) + 'k' : 'n' + doo(0x75e) + 'e'; + } + } + ; + function bZf(bZg) { + bZi(bZg); + c02(bZg, doh(0xb4), '#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x75f) + 't'), 0x0, -0x5a); + c02(bZg, 'w', '#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x760) + 'w'), 0x5a, 0x0); + c02(bZg, 's', '#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x761) + 's'), 0x0, 0x0); + c02(bZg, 'e', '#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x762) + 'e'), -0x5a, 0x0); + c02(bZg, 'n', '#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x763) + 'n'), 0xb4, 0x0); + c02(bZg, 'b' + doo(0x764) + 'm', '#' + bZg[dol(0xf07)] + ('\x20' + doo(0x765) + 'b'), 0x0, 0x5a); + c0r(bZg, ['#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x766) + 't')], !![]); + c0r(bZg, ['#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x767) + 'w')], !![]); + c0r(bZg, ['#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x768) + 's')], !![]); + c0r(bZg, ['#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x769) + 'e')], !![]); + c0r(bZg, ['#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x76a) + 'n')], !![]); + c0r(bZg, ['#' + bZg['cesiumPluginCubeDivID'] + ('\x20' + doo(0x76b) + 'b')], !![]); + c02(bZg, doh(0xb5), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e1), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e2), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e3)], 0x87, -0x2d); + c02(bZg, doh(0xb6), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e4), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e5), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e6)], 0x87, 0x2d); + c02(bZg, doh(0xb7), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e7), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e8), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1e9)], 0xe1, -0x2d); + c02(bZg, doh(0xb8), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1ea), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1eb), '#' + bZg[dol(0xf08)] + doj(0x1ec)], 0xe1, 0x2d); + c02(bZg, doh(0xb9), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1ed), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1ee), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1ef)], 0x13b, -0x2d); + c02(bZg, doh(0xba), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f0), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f1), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f2)], 0x13b, 0x2d); + c02(bZg, doh(0xbb), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f3), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f4), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f5)], 0x2d, -0x2d); + c02(bZg, doh(0xbc), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f6), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f7), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f8)], 0x2d, 0x2d); + c02(bZg, doh(0xbd), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1f9), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1fa)], -0x2d, 0x0); + c02(bZg, doh(0xbe), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1fb), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1fc)], 0x2d, 0x0); + c02(bZg, doh(0xbf), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1fd), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x1fe)], 0x87, 0x0); + c02(bZg, doh(0xc0), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x1ff), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x200)], 0xe1, 0x0); + c02(bZg, doh(0xc1), ['#' + bZg[dol(0xf09)] + doj(0x201), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x202)], -0x5a, -0x2d); + c02(bZg, doh(0xc2), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x203), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x204)], 0x0, -0x2d); + c02(bZg, doh(0xc3), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x205), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x206)], 0x5a, -0x2d); + c02(bZg, doh(0xc4), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x207), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x208)], 0xb4, -0x2d); + c02(bZg, doh(0xc5), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x209), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x20a)], -0x5a, 0x2d); + c02(bZg, doh(0xc6), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x20b), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x20c)], 0x0, 0x2d); + c02(bZg, doh(0xc7), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x20d), '#' + bZg['cesiumPluginCubeDivID'] + doj(0x20e)], 0x5a, 0x2d); + c02(bZg, doh(0xc8), ['#' + bZg['cesiumPluginCubeDivID'] + doj(0x20f), '#' + bZg[dol(0xf0a)] + doj(0x210)], 0xb4, 0x2d); + if (bZg['_scene'] && !bZg['unlistenPostRender']) { + setTimeout(function() { + function bZh() { + c0P(bZg); + } + bZg['unlistenPostRender'] = bZg['_scene']['postRender']['addEventListener'](bZh); + }, 0x3e8); + } + } + function bZi(bZj, bZk) { + if (bZj['cesiumPluginCubeDiv']) { + bZj['cesiumPluginCubeDiv']['onmousedown'] = function(bZl) { + c00 = 0x1; + var bZm = [] + , bZn = []; + bZm[0x0] = bZl['clientX'] / 0x2; + bZn[0x0] = bZl['clientY'] / 0x2; + bZj['cesiumPluginCubeDiv']['onmousemove'] = function(bZl) { + if (c00 != 0x1 && c00 != 0x2) + return; + if (c00 == 0x1) { + var bZp = new bZ3['Cartesian2'](bZl['screenX'],bZl['screenY']); + if (bZ3['Cartesian2']['distance'](c01, bZp) > 0x5) { + c00 = 0x2; + } + } + bZm[0x1] = bZl['clientX'] / 0x2; + bZn[0x1] = bZl['clientY'] / 0x2; + var bZq = bZj['_camera']['heading']; + var bZr = bZj['_camera'][dol(0xf0b)]; + var bZs = (bZm[0x1] - bZm[0x0]) * 0x3; + var bZt = (bZn[0x1] - bZn[0x0]) * 0x3; + if (bZs !== 0x0) + bZq += bZ3['Math']['toRadians'](bZs); + if (bZt !== 0x0) + bZr -= bZ3['Math']['toRadians'](bZt); + bZr = Math[dol(0xf0c)](-Math['PI'] / 0x2 + 0.1, Math['min'](Math['PI'] / 0x2 - 0.1, bZr)); + var bZu = bZj['_API'][dol(0xf0d)][dol(0xf0e)](); + if (bZu) { + var bZv = bZu['center']; + var bZw = bZu['maxpos']; + var bZx = bZu['minpos']; + var bZy = bZu['radius']; + var bZz = bZ3['Cartesian3']['distance'](bZj[dol(0xf0f)]['position'], bZv); + var bZA = new bZ3['Cartesian3'](); + var bZB = c1U(bZq, bZr, bZz); + var bZC = bZ3['Transforms'][dol(0xf10)](bZv); + bZ3['Matrix4']['multiplyByPoint'](bZC, bZB, bZA); + bZj['_camera']['setView']({ + 'destination': bZA, + 'orientation': { + 'heading': bZq, + 'pitch': bZr, + 'roll': 0x0 + } + }); + } + bZm[0x0] = bZl['clientX'] / 0x2; + bZn[0x0] = bZl['clientY'] / 0x2; + } + ; + } + ; + bZj['cesiumPluginCubeDiv'][dol(0xf11)] = function() { + c00 = 0x0; + bZj['cesiumPluginCubeDiv']['onmousemove'] = null; + } + ; + bZj['cesiumPluginCubeDiv']['ontouchstart'] = function(bZD) { + c00 = 0x1; + var bZE = bZD['touches'][0x0]; + var bZF = bZE['clientX']; + var bZG = bZE['clientY']; + var bZH = [] + , bZI = []; + bZH[0x0] = bZF / 0x2; + bZI[0x0] = bZG / 0x2; + bZj['cesiumPluginCubeDiv']['ontouchmove'] = function(bZJ) { + if (c00 != 0x1 && c00 != 0x2) + return; + c00 = 0x2; + var bZE = bZJ['touches'][0x0]; + var bZL = bZE['clientX']; + var bZM = bZE['clientY']; + bZH[0x1] = bZL / 0x2; + bZI[0x1] = bZM / 0x2; + var bZN = bZj['_camera']['heading']; + var bZO = bZj['_camera']['pitch']; + var bZP = (bZH[0x1] - bZH[0x0]) * 0x3; + var bZQ = (bZI[0x1] - bZI[0x0]) * 0x3; + if (bZP !== 0x0) + bZN += bZ3['Math']['toRadians'](bZP); + if (bZQ !== 0x0) + bZO -= bZ3['Math']['toRadians'](bZQ); + bZO = Math['max'](-Math['PI'] / 0x2, Math[dol(0xf12)](Math[dol(0xf13)] / 0x2, bZO)); + var bZR = bZj['_API']['Model']['getModelsCenter'](); + if (bZR) { + var bZS = bZR['center']; + var bZT = bZR['maxpos']; + var bZU = bZR['minpos']; + var bZV = bZR['radius']; + var bZW = bZ3['Cartesian3']['distance'](bZj['_camera']['position'], bZS); + var bZX = new bZ3['Cartesian3'](); + var bZY = c1U(bZN, bZO, bZW); + var bZZ = bZ3['Transforms']['eastNorthUpToFixedFrame'](bZS); + bZ3['Matrix4']['multiplyByPoint'](bZZ, bZY, bZX); + bZj['_camera']['setView']({ + 'destination': bZX, + 'orientation': { + 'heading': bZN, + 'pitch': bZO, + 'roll': 0x0 + } + }); + } + bZH[0x0] = bZL / 0x2; + bZI[0x0] = bZM / 0x2; + } + ; + } + ; + bZj['cesiumPluginCubeDiv']['ontouchup'] = function() { + c00 = 0x0; + bZj['cesiumPluginCubeDiv']['ontouchmove'] = null; + } + ; + } + } + var c00 = 0x0; + var c01 = undefined; + function c02(c03, c04, c05, c06, c07) { + if (Array['isArray'](c05)) { + c05['forEach'](c08 => { + c02(c03, c04, c08, c06, c07); + } + ); + c0r(c03, c05); + return; + } + var c09 = document['querySelector'](c05); + c09['addEventListener']('m' + doo(0x76c) + 'n', function(c0a) { + c00 = 0x1; + c01 = new bZ3[(dol(0xf14))](c0a['screenX'],c0a['screenY']); + }); + c09['addEventListener']('m' + doo(0x76d) + 'e', function(c0b) { + if (c00 == 0x1) { + var c0c = new bZ3['Cartesian2'](c0b['screenX'],c0b['screenY']); + if (bZ3['Cartesian2']['distance'](c01, c0c) > 0x5) { + c00 = 0x2; + } + } + }); + c09['addEventListener']('t' + doo(0x76e) + 't', function(c0d) { + c00 = 0x1; + }); + c09['addEventListener']('t' + doo(0x76f) + 'e', function(c0e) { + if (c00 == 0x1) + c00 = 0x2; + }); + var c0f = function(c0g) { + if (c00 == 0x2) { + return; + } + if (c0q && (c06 % 0x5a == 0x0 && c07 % 0x5a == 0x0)) { + return; + } + c00 = 0x0; + var c0h = new bZ3['Cartesian3'](); + var c0i = c03['_API']['Model']['getModelsCenter'](); + var c0j = 0x0; + if (c0i) { + var c0k = c0i['center']; + var c0l = c0i['maxpos']; + var c0m = c0i['minpos']; + c0j = c0i['radius']; + var c0n = c1U(bZ3['Math']['toRadians'](c06), bZ3['Math']['toRadians'](c07), c0j * c03['configure']['zoomRatios']); + var c0o = bZ3['Transforms']['eastNorthUpToFixedFrame'](c0k); + bZ3['Matrix4']['multiplyByPoint'](c0o, c0n, c0h); + } + var c0p = new bZ3['BoundingSphere'](c0h,c0j); + c03['_viewer']['camera']['flyToBoundingSphere'](c0p, { + 'duration': 0x0, + 'offset': new bZ3['HeadingPitchRange'](bZ3['Math']['toRadians'](c06),bZ3[dol(0xf15)]['toRadians'](c07),c0j) + }); + return ![]; + }; + c09['addEventListener']('t' + doo(0x770) + 'd', c0f); + c09['addEventListener']('m' + doo(0x771) + 'p', c0f); + } + var c0q = ![]; + function c0r(c0s, c0t, c0u) { + if (Array['isArray'](c0t)) { + var c0v = []; + c0t['forEach'](c0w => { + var c0x = document[dol(0xf16)](c0w); + c0v['push'](c0x); + } + ); + c0v['forEach'](c0y => { + c0y['addEventListener']('m' + doo(0x772) + 'r', function(c0z) { + c0v[dol(0xf17)](c0A => { + if (!c0u) + c0A['style']['backgroundColor'] = c0s['configure'][dol(0xf18)]['hoverColor']; + else + c0A['style']['boxShadow'] = '0' + doo(0x773) + '\x20' + c0s['configure']['cube']['hoverColor'] + ('\x20' + doo(0x774) + 't'); + } + ); + c0z['stopPropagation'](); + if (c0z['target']['className']['indexOf']('c' + doo(0x775) + 'r') > -0x1 || c0z['target']['className']['indexOf']('e' + doo(0x776) + '-') > -0x1) + c0q = !![]; + }); + c0y['addEventListener']('m' + doo(0x777) + 't', function(c0B) { + c0v['forEach'](c0C => { + if (!c0u) + c0C['style']['backgroundColor'] = 't' + doo(0x778) + 't'; + else + c0C['style']['boxShadow'] = doj(0x211); + } + ); + c0B['stopPropagation'](); + c0q = ![]; + }); + } + ); + } + } + bZ6['prototype']['initScreenshot'] = function() { + var c0D = this; + c11(c0D, 'b', -0x1); + c11(c0D, 't', -0x1); + c11(c0D, 'e', -0x1); + c11(c0D, 's', -0x1); + c11(c0D, 'w', -0x1); + c11(c0D, 'n', -0x1); + if (c0D['_camera'][dol(0xf19)] > 0x0) { + c11(c0D, 'b', 0x1); + } else if (c0D['_camera']['pitch'] < 0x0) { + c11(c0D, 't', 0x1); + } + var c0E = c0D['_camera']['heading']; + if (c0X(c0E, -Math['PI']) || c0X(c0E, Math['PI'])) { + c11(c0D, 'n', 0x1); + } else if (c0X(c0E, Math['PI'], 0x3 * Math[dol(0xf1a)] / 0x2)) { + c11(c0D, 'n', 0x1); + c11(c0D, 'e', 0x1); + } else if (c0X(c0E, 0x3 * Math['PI'] / 0x2)) { + c11(c0D, 'e', 0x1); + } else if (c0X(c0E, 0x3 * Math['PI'] / 0x2, Math['PI'] * 0x2)) { + c11(c0D, 'e', 0x1); + c11(c0D, 's', 0x1); + } else if (c0X(c0E, 0x0) || c0X(c0E, Math['PI'] * 0x2)) { + c11(c0D, 's', 0x1); + } else if (c0X(c0E, 0x0, Math['PI'] / 0x2)) { + c11(c0D, 's', 0x1); + c11(c0D, 'w', 0x1); + } else if (c0X(c0E, Math['PI'] / 0x2)) { + c11(c0D, 'w', 0x1); + } else if (c0X(c0E, Math['PI'] / 0x2, Math['PI'])) { + c11(c0D, 'w', 0x1); + c11(c0D, 'n', 0x1); + } + } + ; + bZ6['toScreenshot'] = function(c0F) { + var c0G = this; + if (!c0G['_camera']) + return; + c11(c0G, 'b', -0x1); + c11(c0G, 't', -0x1); + c11(c0G, 'e', -0x1); + c11(c0G, 's', -0x1); + c11(c0G, 'w', -0x1); + c11(c0G, 'n', -0x1); + if (!c0F) { + return; + } + if (c0G[dol(0xf1b)]['pitch'] > 0x0) { + c11(c0G, 'b', 0x1); + } else if (c0G['_camera']['pitch'] < 0x0) { + c11(c0G, 't', 0x1); + } + var c0H = c0G['_camera']['heading']; + if (c0X(c0H, -Math['PI']) || c0X(c0H, Math['PI'])) { + c11(c0G, 'n', 0x1); + } else if (c0X(c0H, Math['PI'], 0x3 * Math['PI'] / 0x2)) { + c11(c0G, 'n', 0x1); + c11(c0G, 'e', 0x1); + } else if (c0X(c0H, 0x3 * Math['PI'] / 0x2)) { + c11(c0G, 'e', 0x1); + } else if (c0X(c0H, 0x3 * Math['PI'] / 0x2, Math['PI'] * 0x2)) { + c11(c0G, 'e', 0x1); + c11(c0G, 's', 0x1); + } else if (c0X(c0H, 0x0) || c0X(c0H, Math['PI'] * 0x2)) { + c11(c0G, 's', 0x1); + } else if (c0X(c0H, 0x0, Math['PI'] / 0x2)) { + c11(c0G, 's', 0x1); + c11(c0G, 'w', 0x1); + } else if (c0X(c0H, Math['PI'] / 0x2)) { + c11(c0G, 'w', 0x1); + } else if (c0X(c0H, Math[dol(0xf1c)] / 0x2, Math['PI'])) { + c11(c0G, 'w', 0x1); + c11(c0G, 'n', 0x1); + } + } + ; + function c0I(c0J, c0K) { + var c0L = ['t' + doo(0x779) + 'm', 'w' + doo(0x77a) + 'm', 'M' + doo(0x77b) + 'm']; + var c0M = c0J['style'], c0N = c0L, c0O; + for (c0O = 0x0; c0O < c0N['length']; ++c0O) { + if (typeof c0M[c0N[c0O]] !== 'u' + doo(0x77c) + 'd') { + c0M[c0N[c0O]] = c0K; + } + } + } + function c0P(c0Q) { + if (c0Q['cubeElement'] && c0Q['_camera'] && !isNaN(c0Q['_camera'][dol(0xf1d)]) && !isNaN(c0Q['_camera']['heading'])) { + var c0R = bZ3['Matrix3']['IDENTITY']['clone'](); + var c0S = bZ3['Matrix3']['IDENTITY']['clone'](); + var c0T = bZ3['Matrix3'][dol(0xf1e)]['clone'](); + bZ3[dol(0xf1f)]['fromRotationX'](c0Q['_camera']['pitch'], c0R); + bZ3['Matrix3']['fromRotationY'](c0Q['_camera']['heading'], c0S); + bZ3[dol(0xf20)]['fromScale'](new bZ3['Cartesian3'](c0Q['configure']['zoomRatios'],c0Q['configure']['zoomRatios'],c0Q['configure']['zoomRatios']), c0T); + var c0U = bZ3['Matrix3']['IDENTITY'][dol(0xf21)](); + bZ3['Matrix3']['multiply'](c0R, c0S, c0U); + bZ3['Matrix3']['multiply'](c0U, c0T, c0U); + var c0V = bZ3['Matrix4']['fromRotationTranslation'](c0U); + var c0W = []; + bZ3[dol(0xf22)]['pack'](c0V, c0W); + c0I(c0Q['cubeElement'], doj(0x212) + c0W['join']() + ')'); + } + } + function c0X(c0Y, c0Z, c10) { + if (!c10) { + return Math['abs'](c0Y - c0Z) < 1e-11; + } else { + return c0Y > c0Z && c0Y < c10; + } + } + function c11(c12, c13, c14) { + var c15 = document['querySelector']('#' + c12['cesiumPluginCubeDivID'] + ('\x20' + doo(0x77d) + '_') + c13); + if (c15) { + if (c14 > 0x0) { + c15['style']['zIndex'] = c14 * 0x2710; + } else { + c15['style']['removeProperty']('z' + doo(0x77e) + 'x'); + } + } + } + function c16(c17, c18, c19) { + var c1a = document['querySelector']('#' + c17['cesiumPluginCubeDivID'] + ('\x20' + doo(0x77f) + '_') + c18); + if (c1a) { + c1a['style'][dol(0xf23)] = c19; + var c1b = document['querySelector']('#' + c17['cesiumPluginCubeDivID'] + ('\x20' + doo(0x780) + '_') + c18 + ('>' + doo(0x781) + 'l')); + if (c1b) + c1b[dol(0xf24)]['removeChild'](c1b); + } + } + function c1c(c1d, c1e) { + c1d['configure'] = {}; + c1d['configure'] = c1d['_API']['funcPublic']['deepCopy'](bZ5); + c1f(c1d['configure'], c1e); + } + function c1f(c1g, c1h) { + for (var c1i in c1h) + if (c1h['hasOwnProperty'](c1i)) { + if (Array['isArray'](c1h[c1i])) { + c1g[c1i] = []; + c1g[c1i] = c1g[c1i]['concat'](c1h[c1i]); + } else if (c23(c1h[c1i])) { + c1g[c1i] = c1h[c1i]; + } else { + c1g[c1i] = c1f(c1g[c1i], c1h[c1i]); + } + } + return c1g; + } + function c1j(c1k) { + var c1l = document['getElementById'](c1k['_API']['defaults']['container']); + var c1m = c1l['getElementsByClassName']('c' + doo(0x782) + 'r')[0x0]; + c1k['cesiumPluginCubeDivID'] += '_' + c1k['_API']['defaults'][dol(0xf25)]; + var c1n = document['getElementById'](c1k['cesiumPluginCubeDivID']); + if (c1n) { + c1m['removeChild'](c1n); + } + c1n = document['createElement'](doh(0xc9)); + c1n['id'] = c1k['cesiumPluginCubeDivID']; + c1n['className'] = c1k['cesiumPluginCubeDivClaccName']; + c1m['appendChild'](c1n); + c1k['cesiumPluginCubeDiv'] = c1n; + var c1o = Number(c1k['configure']['offset']['x']); + var c1p = Number(c1k['configure']['offset']['y']); + var c1q = doj(0x213); + switch (c1k['configure']['offset']['corner']) { + case bZ6['LeftTop']: + c1q = 'l' + doo(0x783) + '\x20' + c1o + ('p' + doo(0x784) + '\x20') + c1p + doh(0xca); + break; + case bZ6['RightTop']: + c1q = 'r' + doo(0x785) + '\x20' + c1o + ('p' + doo(0x786) + '\x20') + c1p + doh(0xcb); + break; + case bZ6['RightBottom']: + c1q = 'r' + doo(0x787) + '\x20' + c1o + ('p' + doo(0x788) + '\x20') + c1p + doh(0xcc); + break; + case bZ6['LeftBottom']: + c1q = 'l' + doo(0x789) + '\x20' + c1o + ('p' + doo(0x78a) + '\x20') + c1p + doh(0xcd); + break; + default: + break; + } + var c1r = c1k['configure']['showAxes']; + var c1s = c1k['configure']['cube']['size']; + var c1t = c1k['configure']['cube']['hotPointSize']; + var c1u = c1k['configure'][dol(0xf26)]['cubeTextColor']; + var c1v = c1k['configure']['cube'][dol(0xf27)]; + var c1w = c1k['configure']['cube']['cubeFillColor']; + var c1x = ['#' + c1k['cesiumPluginCubeDivID'] + doh(0xce), '\x20' + doo(0x78b) + '\x20' + 0x2 * c1s + doh(0xcf), '\x20' + doo(0x78c) + '\x20' + 0x1 * c1s + doh(0xd0), doj(0x214), doj(0x215), doj(0x216), c1q, doj(0x217), doj(0x218), doj(0x219) + c1u + ';', doj(0x21a) + c1v + ';', doj(0x21b) + c1w + ';', doj(0x21c) + c1s + doh(0xd1), doj(0x21d) + c1s / 0x2 + doh(0xd2), doj(0x21e) + c1t + doh(0xd3), doj(0x21f) + (c1s - 0x2 * c1t) + doh(0xd4), doj(0x220), doj(0x221), '}', '#' + c1k['cesiumPluginCubeDivID'] + ('\x20' + doo(0x78d) + '{'), doj(0x222), doj(0x223), '\x20' + doo(0x78e) + ';', doj(0x224), '\x20' + doo(0x78f) + ';', doj(0x225), doj(0x226), doj(0x227), doj(0x228), doj(0x229), '}', '#' + c1k['cesiumPluginCubeDivID'] + ('\x20' + doo(0x790) + '{'), '\x20' + doo(0x791) + ';', doj(0x22a), doj(0x22b), doj(0x22c), doj(0x22d), doj(0x22e), doj(0x22f), doj(0x230), doj(0x231), doj(0x232), doj(0x233), doj(0x234), '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x235) + c1A(c1k, c1k['configure']['imgs'][dol(0xf28)], 't') + '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x236) + (c1r ? doj(0x237) : '') + c1A(c1k, c1k['configure']['imgs']['west'], 'w') + '}', '#' + c1k['cesiumPluginCubeDivID'] + ('\x20' + doo(0x792) + '{') + (c1r ? doj(0x238) : '') + doj(0x239) + c1A(c1k, c1k[dol(0xf29)]['imgs']['south'], 's') + '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x23a) + c1A(c1k, c1k['configure']['imgs']['east'], 'e') + '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x23b) + c1A(c1k, c1k['configure']['imgs']['north'], 'n') + '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x23c) + (c1r ? doj(0x23d) : '') + c1A(c1k, c1k[dol(0xf2a)]['imgs']['bottom'], 'b') + '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x23e), '#' + c1k[dol(0xf2b)] + ('\x20' + doo(0x793) + '{'), doj(0x23f), doj(0x240), '}', '#' + c1k['cesiumPluginCubeDivID'] + doj(0x241), '#' + c1k[dol(0xf2c)] + doj(0x242), '#' + c1k[dol(0xf2d)] + doj(0x243), '#' + c1k[dol(0xf2e)] + doj(0x244), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x245), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x246), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x247), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x248), '#' + c1k[dol(0xf2f)] + doj(0x249), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x24a), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x24b), '#' + c1k['cesiumPluginCubeDivID'] + doj(0x24c)]['join'](''); + var c1y = '<' + doo(0x794) + '>' + c1x + ('<' + doo(0x795) + '>'); + var c1z = [doj(0x24d), doj(0x24e), doj(0x24f), doj(0x250), doj(0x251), doj(0x252), doj(0x253), doj(0x254)]['join']('\x0a'); + c1n[dol(0xf30)] = c1y + ['<' + doo(0x796) + '>', doj(0x255) + (c1A(c1k, c1k['configure']['imgs']['top'])['length'] > 0x0 ? '' : '<' + doo(0x797) + '>') + c1z + ('<' + doo(0x798) + '>'), doj(0x256) + (c1A(c1k, c1k[dol(0xf31)]['imgs']['west'])[dol(0xf32)] > 0x0 ? '' : '<' + doo(0x799) + '>') + c1z + ('<' + doo(0x79a) + '>'), doj(0x257) + (c1A(c1k, c1k['configure']['imgs'][dol(0xf33)])['length'] > 0x0 ? '' : '<' + doo(0x79b) + '>') + c1z + ('<' + doo(0x79c) + '>'), doj(0x258) + (c1A(c1k, c1k['configure']['imgs']['east'])['length'] > 0x0 ? '' : '<' + doo(0x79d) + '>') + c1z + ('<' + doo(0x79e) + '>'), doj(0x259) + (c1A(c1k, c1k['configure']['imgs']['north'])['length'] > 0x0 ? '' : '<' + doo(0x79f) + '>') + c1z + ('<' + doo(0x7a0) + '>'), doj(0x25a) + (c1A(c1k, c1k['configure']['imgs']['bottom'])['length'] > 0x0 ? '' : doj(0x25b)) + c1z + ('<' + doo(0x7a1) + '>'), '<' + doo(0x7a2) + '>']['join']('\x0a'); + c1k['cubeElementParent'] = document['querySelector']('#' + c1k['cesiumPluginCubeDivID']); + c1k['cubeElement'] = document['querySelector']('#' + c1k['cesiumPluginCubeDivID'] + ('\x20' + doo(0x7a3) + 'e')); + if (!c1k['configure']['show']) { + c1n[dol(0xf34)]['display'] = 'n' + doo(0x7a4) + 'e'; + } + c0P(c1k); + } + function c1A(c1B, c1C, c1D) { + if (!c1C || c1C['lenght'] === 0x0) + return ''; + if (c1C['indexOf']('d' + doo(0x7a5) + '/') === 0x0) {} else { + if (c1D) { + c1F(c1C)['then'](function(c1E) { + c16(c1B, c1D, 'u' + doo(0x7a6) + '(' + c1E + ')'); + }); + } + } + return 'b' + doo(0x7a7) + '(' + c1C + doj(0x25c); + } + function c1F(c1G) { + return new Promise(function(c1H, c1I) { + window['URL'] = window['URL'] || window['webkitURL']; + var c1J = new XMLHttpRequest(); + c1J['open'](doh(0xd5), c1G, !![]); + c1J['responseType'] = 'b' + doo(0x7a8) + 'b'; + c1J['onload'] = function() { + if (this['status'] == 0xc8) { + var c1K = this['response']; + var c1L = new FileReader(); + c1L['onloadend'] = function(c1M) { + var c1N = c1M['target']['result']; + c1H(c1N); + } + ; + c1L['readAsDataURL'](c1K); + } + } + ; + c1J['send'](); + } + ); + } + function c1O(c1P, c1Q, c1R) { + var c1S = bZ3['Transforms']['eastNorthUpToFixedFrame'](c1P); + var c1T = new bZ3['Cartesian3'](); + bZ3['Cartesian3']['multiplyByScalar'](c1Q, c1R, c1T); + return bZ3['Matrix4']['multiplyByPoint'](c1S, c1T, new bZ3['Cartesian3']()); + } + function c1U(c1V, c1W, c1X) { + c1W = bZ3['Math']['clamp'](c1W, -bZ3['Math']['PI_OVER_TWO'], bZ3['Math']['PI_OVER_TWO']); + c1V = bZ3['Math']['zeroToTwoPi'](c1V) - bZ3['Math']['PI_OVER_TWO']; + var c1Y = bZ3['Quaternion']['fromAxisAngle'](bZ3['Cartesian3']['UNIT_Y'], -c1W); + var c1Z = bZ3['Quaternion']['fromAxisAngle'](bZ3['Cartesian3']['UNIT_Z'], -c1V); + var c20 = bZ3['Quaternion']['multiply'](c1Z, c1Y, c1Z); + var c21 = bZ3['Matrix3']['fromQuaternion'](c20); + var c22 = bZ3['Cartesian3'][dol(0xf35)](bZ3['Cartesian3']['UNIT_X']); + bZ3['Matrix3']['multiplyByVector'](c21, c22, c22); + bZ3['Cartesian3']['negate'](c22, c22); + bZ3[dol(0xf36)]['multiplyByScalar'](c22, c1X, c22); + return c22; + } + function c23(c24) { + return typeof c24 === 's' + doo(0x7a9) + 'g' || typeof c24 === 'n' + doo(0x7aa) + 'r' || typeof c24 === 'b' + doo(0x7ab) + 'n' || typeof c24 === 'u' + doo(0x7ac) + 'd' || c24 === null; + } + return bZ6; + }(window['Cesium'] || {}); + ;GLECustomLabel = function(c25) { + function c26(c27, c28) { + if (!c25[dol(0xf37)](c27)) + throw doj(0x25d); + this['_API'] = c28; + this['_viewer'] = c27; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + var c29 = this['_API']['defaults']['container']; + this['_containerDiv'] = document['getElementById'](c29); + this['domParentId'] = 'C' + doo(0x7ad) + '_' + c29; + this['_lables'] = new Map(); + this['editLabelID'] = ''; + this['editStart'] = ![]; + this['preRender'](); + } + var c2a = { + 'theme': 'f' + doo(0x7ae) + 'g', + 'themeColor': '#' + doo(0x7af) + '0', + 'textColor': '#' + doo(0x7b0) + '0' + }; + function c2b(c2c) { + if (!c25['defined'](c2c[dol(0xf38)])) + throw doj(0x25e); + if (c25['defined'](c2c['theme'])) + c2a['theme'] = c2c['theme']; + if (c25['defined'](c2c['color'])) { + c2a['textColor'] = c2c['color']; + } else { + if (c25['defined'](c2c['themeColor'])) { + c2a['themeColor'] = c2c['themeColor']; + } + c2a['textColor'] = c2c['themeColor']; + } + switch (c2a[dol(0xf39)]) { + case 'b' + doo(0x7b1) + 'e': + { + c2c['offset'] = { + 'x': -0x10, + 'y': -0xf + }; + return doj(0x25f) + c2c['id'] + doj(0x260) + c2a['themeColor'] + doj(0x261) + c2a[dol(0xf3a)] + doj(0x262) + c2c['id'] + doj(0x263) + c2a['themeColor'] + doj(0x264) + c2c['id'] + doh(0xd6) + c2c['text'] + ('<' + doo(0x7b2) + '>'); + } + case 'f' + doo(0x7b3) + 'g': + { + c2c['offset'] = { + 'x': -0x0, + 'y': -0xf + }; + return '<' + doo(0x7b4) + '>' + ('.' + doo(0x7b5) + '-') + c2c['id'] + doj(0x265) + ('.' + doo(0x7b6) + '-') + c2c['id'] + ('\x20' + doo(0x7b7) + '-') + c2c['id'] + doj(0x266) + c2a['themeColor'] + doh(0xd7) + ('.' + doo(0x7b8) + '-') + c2c['id'] + doj(0x267) + c2a['textColor'] + doj(0x268) + ('.' + doo(0x7b9) + '-') + c2c['id'] + ('\x20' + doo(0x7ba) + '-') + c2c[dol(0xf3b)] + doj(0x269) + doj(0x26a) + doj(0x26b) + '}' + ('.' + doo(0x7bb) + '-') + c2c['id'] + doj(0x26c) + doj(0x26d) + '}' + ('.' + doo(0x7bc) + '-') + c2c['id'] + doj(0x26e) + doj(0x26f) + c2a['themeColor'] + doj(0x270) + doj(0x271) + '}' + ('<' + doo(0x7bd) + '>') + ('<' + doo(0x7be) + '-') + c2c['id'] + doh(0xd8) + doj(0x272) + c2c['text'] + ('<' + doo(0x7bf) + '>') + doj(0x273) + doj(0x274) + ('<' + doo(0x7c0) + '>'); + } + default: + throw doj(0x275); + } + } + c26['prototype']['addLable'] = function(c2d, c2e) { + if (!c25['defined'](c2d)) + throw doj(0x276); + if (!c25[dol(0xf3c)](c2d['id'])) { + throw doj(0x277); + } + c2d['id'] = c2d['id']['toString'](); + var c2f = this; + if (!c25['defined'](c2d['position']) || !c25['defined'](c2d['axisType'])) { + throw doj(0x278); + } else { + if (!c2e) { + c2d['positionWC'] = c3i(c2f['_API'], c2d['axisType'], c2d['position']); + if (c2d['linkFeature'] && c25['defined'](c2d['featureId'])) { + var c2g = c2f['_API'][dol(0xf3d)]['getCenterById'](c2d['featureId']); + if (c25['defined'](c2g) && c2g['length'] == 0x3) { + var c2h = c25['Cartesian3']['fromRadiansArrayHeights'](c2g)[0x0]; + var c2i = c25['Cartesian3']['subtract'](c2h, c2d[dol(0xf3e)], new c25['Cartesian3']()); + c2d['feature'] = { + 'id': c2d['featureId'], + 'offset': c2i + }; + } + } else if (c2d['linkModel']) { + if (c25['defined'](c2d['modelId'])) { + var c2j = c2f['_API']['Model']['get'](c2d['modelId']); + if (c2j) { + var c2i = c25['Cartesian3']['subtract'](c2j['root'][dol(0xf3f)]['center'], c2d['positionWC'], new c25['Cartesian3']()); + c2d['model'] = { + 'id': c2j['id'], + 'offset': c2i + }; + } + } else { + c2f['_API']['Model']['getByScreenCoord'](new c25['Cartesian2'](c2d[dol(0xf40)][0x0],c2d['position'][0x1]), function(c2j) { + if (c2j) { + var c2i = c25['Cartesian3']['subtract'](c2j[dol(0xf41)][dol(0xf42)]['center'], c2d[dol(0xf43)], new c25['Cartesian3']()); + c2d['model'] = { + 'id': c2j['id'], + 'offset': c2i + }; + } + }); + } + } + } + } + if (c25['Cartesian3']['equals'](c2d['positionWC'], new c25['Cartesian3']())) { + return; + } + c2d['positionRadian'] = c2f['_API']['funcPublic']['outCartesian3ToRadian'](c2d['positionWC'], c2f['_viewer']); + if (!c25['defined'](c2d['html'])) { + throw doj(0x279); + } + var c2n = '#' + doo(0x7c1) + '0'; + if (c25['defined'](c2d['color'])) { + c2n = c2d['color']; + } + c2d['htmlText'] = c2d['html']; + var c2o = document['getElementById'](this['domParentId']); + if (!c25['defined'](c2o)) { + c2o = document[dol(0xf44)](doh(0xd9)); + c2o['id'] = this['domParentId']; + c2o['style']['zIndex'] = 0x63; + c2f['_containerDiv'][dol(0xf45)](c2o); + } + var c2p = document['getElementById']('d' + doo(0x7c2) + '_' + c2d['id']); + if (c25['defined'](c2p)) + c2p['parentNode']['removeChild'](c2p); + c2p = document['createElement'](doh(0xda)); + c2p['id'] = 'd' + doo(0x7c3) + '_' + c2d['id']; + c2p['style']['userSelect'] = 'n' + doo(0x7c4) + 'e'; + c2p['style']['cursor'] = 'p' + doo(0x7c5) + 'r'; + c2o[dol(0xf46)](c2p); + c2p['style']['display'] = 'i' + doo(0x7c6) + 'k'; + c2p['style']['color'] = c2n; + c2p['innerHTML'] = c2d['htmlText']; + if (!c25['defined'](c2d['offset'])) { + c2d['offset'] = { + 'x': 0x0, + 'y': 0x0 + }; + } + c2f['_viewer']['entities']['removeById'](c2d['id']); + if (!c25['defined'](c2d['maxDistance'])) + c2d['maxDistance'] = 0x0; + if (!c25['defined'](c2d['displayRange'])) + c2d['displayRange'] = [0x0, 0x3e8]; + if (!c2d['removePoint']) + c2d['point'] = c3w(c2f, c2d['id'], c2d['positionWC'], c2d['maxDistance'], c2d['displayRange'], c2d['pointSize'], c2d['pointColor'], c2d['outlineWidth'], c2d['outlineColor']); + c3q(c2p, c2d); + c2p['style']['width'] = c2d['size']['width'] + doh(0xdb); + c2p['style']['height'] = c2d['size']['height'] + doh(0xdc); + c2p['addEventListener']('c' + doo(0x7c7) + 'u', function(c2q) { + c2q['preventDefault'](); + }); + if (c25[dol(0xf47)](c2d['onClick']) && typeof c2d['onClick'] == 'f' + doo(0x7c8) + 'n') { + var c2r = function(c2s) { + if (c2f['_API']['defaults']['editmode']) { + c2d['offset_edit'] = { + 'x': c2f['_API']['funcPublic']['GetDistance'](c2d['positionWC'], c2f['_API']['BaseContorl']['gridStartX'], 0x1) - c2f['_API']['funcPublic']['GetDistance'](c2f['_API']['BaseContorl']['gridCenter'], c2f['_API']['BaseContorl']['gridStartX'], 0x1), + 'y': c2f['_API']['funcPublic']['GetDistance'](c2d['positionWC'], c2f['_API']['BaseContorl']['gridStartY'], 0x0, 0x1) - c2f['_API']['funcPublic']['GetDistance'](c2f['_API']['BaseContorl']['gridCenter'], c2f['_API']['BaseContorl']['gridStartY'], 0x0, 0x1), + 'z': c2f['_API']['funcPublic']['GetDistance'](c2d['positionWC'], c2f['_API']['BaseContorl']['gridCenter'], 0x0, 0x0, 0x1) + }; + } + c2d['clickType'] = c25['defaultValue'](c2d['clickType'], 'L' + doo(0x7c9) + 'K'); + if (c2s instanceof TouchEvent || c2d['clickType'] == 'L' + doo(0x7ca) + 'K' && c2s['button'] == 0x0 || c2d['clickType'] == 'R' + doo(0x7cb) + 'K' && c2s['button'] == 0x2) { + c2d['onClick'](c2d, c2s['target']); + } + }; + c2p['onmouseup'] = c2r; + c2p['addEventListener']('t' + doo(0x7cc) + 'd', c2r, ![]); + } + var c2t = function(c2u) { + if (c2f['_API']['EditMode'] == 'T' + doo(0x7cd) + 's') + c2f['editLabelID'] = c2d[dol(0xf48)]; + }; + c2p[dol(0xf49)] = c2t; + c2p['addEventListener']('t' + doo(0x7ce) + 't', c2t, ![]); + var c2v = function(c2w) { + if ((c2f['editLabelID'] || '') != '') { + if (c2f['editStart']) { + var c2d = this['_lables']['get'](c2f['editLabelID']); + var c2y = c2w['x'] + , c2z = c2w['y']; + if (c2w['targetTouches'] && c2w['targetTouches']['length'] > 0x0) { + var c2A = c2w['targetTouches'][0x0]; + c2y = c2A['pageX']; + c2z = c2A['pageY']; + } + var c2g = c3i(c2f[dol(0xf4a)], 0x0, [c2y, c2z]); + if (c2g['equals'](c25['Cartesian3']['ZERO'])) + return; + c2d['positionWC'] = c2g; + c2d['positionRadian'] = c2f['_API']['funcPublic']['outCartesian3ToRadian'](c2d['positionWC'], c2f['_viewer']); + c2f['_viewer'][dol(0xf4b)]['requestRender'](); + } else + c2f['editStart'] = !![]; + } + }; + c2f['_containerDiv']['onmousemove'] = c2v; + c2f['_containerDiv']['addEventListener']('t' + doo(0x7cf) + 'e', c2v, ![]); + var c2C = function(c2D) { + if ((c2f['editLabelID'] || '') != '') { + c2f['editLabelID'] = ''; + c2f['editStart'] = ![]; + } + }; + c2f['_containerDiv'][dol(0xf4c)] = c2C; + c2f['_containerDiv']['addEventListener']('t' + doo(0x7d0) + 't', c2C, ![]); + if (c25['defined'](c2d['onComplete']) && typeof c2d['onComplete'] == 'f' + doo(0x7d1) + 'n') { + if (c2f['_API']['defaults']['editmode']) { + c2d['offset_edit'] = { + 'x': c2f['_API']['funcPublic']['GetDistance'](c2d[dol(0xf4d)], c2f['_API']['BaseContorl'][dol(0xf4e)], 0x1) - c2f['_API']['funcPublic']['GetDistance'](c2f['_API']['BaseContorl']['gridCenter'], c2f['_API']['BaseContorl']['gridStartX'], 0x1), + 'y': c2f[dol(0xf4f)]['funcPublic']['GetDistance'](c2d['positionWC'], c2f['_API']['BaseContorl']['gridStartY'], 0x0, 0x1) - c2f['_API']['funcPublic']['GetDistance'](c2f['_API']['BaseContorl']['gridCenter'], c2f['_API']['BaseContorl']['gridStartY'], 0x0, 0x1), + 'z': c2f['_API']['funcPublic']['GetDistance'](c2d['positionWC'], c2f['_API']['BaseContorl']['gridCenter'], 0x0, 0x0, 0x1) + }; + } + c2d['onComplete'](c2d['id'], c2d['positionRadian'], c2d); + } + c2d['isVisible'] = !![]; + this['_lables']['set'](c2d['id'], c2d); + c2f['_scene']['requestRender'](); + } + ; + c26['prototype']['updateLable'] = function(c2E) { + if (!c25['defined'](c2E)) + throw doj(0x27a); + if (!c25['defined'](c2E['id'])) { + throw doj(0x27b); + } + c2E['id'] = c2E['id']['toString'](); + var c2F = this['_lables']['get'](c2E['id']); + if (!c25['defined'](c2F)) + throw doj(0x27c); + for (var c2G in c2E) { + if (c2E['hasOwnProperty'](c2G)) + c2F[c2G] = c2E[c2G]; + } + if (c25['defined'](c2E['position']) && c25['defined'](c2E['axisType'])) { + if (c2E['axisType'] == 0x2) { + c2F['positionWC'] = this['_API']['funcPublic']['getPointByDistance'](this['_API'][dol(0xf50)][dol(0xf51)], c2E['position'][0x0], c2E['position'][0x1], c2E['position'][0x2]); + } else + c2F[dol(0xf52)] = c3i(this['_API'], c2E['axisType'], c2E['position']); + } + this['addLable'](c2F, !![]); + } + ; + c26['prototype']['addLableByTheme'] = function(c2H, c2I) { + if (!c25['defined'](c2H)) + throw doj(0x27d); + if (!c25['defined'](c2H['id'])) { + throw doj(0x27e); + } + c2H['id'] = c2H['id']['toString'](); + if (!c25['defined'](c2H[dol(0xf53)]) || !c25['defined'](c2H['axisType'])) { + throw doj(0x27f); + } else { + if (!c2I) + c2H[dol(0xf54)] = c3i(this['_API'], c2H['axisType'], c2H['position']); + } + c2H['html'] = c2b(c2H); + this['addLable'](c2H, c2I); + } + ; + c26['prototype']['updateLableByTheme'] = function(c2J) { + if (!c25['defined'](c2J)) + throw doj(0x280); + if (!c25['defined'](c2J['id'])) { + throw doj(0x281); + } + c2J['id'] = c2J['id']['toString'](); + var c2K = this['_lables']['get'](c2J['id']); + if (!c25['defined'](c2K)) + throw doj(0x282); + for (var c2L in c2J) { + if (c2J[dol(0xf55)](c2L)) + c2K[c2L] = c2J[c2L]; + } + if (c25['defined'](c2J[dol(0xf56)]) && c25['defined'](c2J['axisType'])) { + c2K['positionWC'] = c3i(this['_API'], c2J['axisType'], c2J['position']); + } + this['addLableByTheme'](c2K, !![]); + } + ; + c26['prototype']['deleteLable'] = function(c2M) { + c2M = c2M['toString'](); + var c2N = document['getElementById']('d' + doo(0x7d2) + '_' + c2M); + if (!c25['defined'](c2N)) + return; + c2N['parentNode']['removeChild'](c2N); + this['_viewer']['entities']['removeById'](c2M); + this['_lables'][dol(0xf57)](c2M); + } + ; + c26['prototype']['deleteAll'] = function() { + var c2O = document['getElementById'](this['domParentId']); + if (!c25['defined'](c2O)) + return; + c2O['parentNode']['removeChild'](c2O); + var c2P = this; + this['_lables']['forEach'](function(c2Q) { + c2P[dol(0xf58)]['entities']['removeById'](c2Q['id']); + }); + this['_lables']['clear'](); + } + ; + c26['prototype']['setVisible'] = function(c2R, c2S) { + c2R = c2R['toString'](); + var c2T = this['_lables']['get'](c2R); + if (!c25['defined'](c2T)) + return; + c2T['isVisible'] = c2S; + c2W(this, c2R, c2S); + } + ; + c26['prototype'][dol(0xf59)] = function(c2U) { + c2U = c2U['toString'](); + var c2V = this['_lables']['get'](c2U); + return c2V; + } + ; + c26['prototype']['getLabelList'] = function() { + return this['_lables']; + } + ; + var c2W = function(c2X, c2Y, c2Z) { + var c30 = document['getElementById']('d' + doo(0x7d3) + '_' + c2Y); + if (!c25['defined'](c30)) + return; + c30['style']['display'] = c2Z ? 'i' + doo(0x7d4) + 'k' : 'n' + doo(0x7d5) + 'e'; + var c31 = c2X['_viewer']['entities']['getById'](c2Y); + if (c25['defined'](c31)) { + c31['show'] = c2Z; + } + }; + c26['prototype']['preRender'] = function() { + var c32 = this; + var c33 = c32[dol(0xf5a)]; + function c34() { + if (c25['defined'](c33) && c33 instanceof Map && c33['size'] > 0x0) { + c33[dol(0xf5b)](function(c35) { + var c36 = document['getElementById']('d' + doo(0x7d6) + '_' + c35['id']); + if (!c25['defined'](c36)) + return; + var c37 = c35['positionWC']; + if (c35['linkFeature'] && c25['defined'](c35['feature'])) { + var c38 = c32['_API']['Feature']['getCenterById'](c35[dol(0xf5c)][dol(0xf5d)]); + if (c25['defined'](c38) && c38['length'] == 0x3) { + var c39 = c25['Cartesian3']['fromRadiansArrayHeights'](c38)[0x0]; + c37 = c25['Cartesian3']['subtract'](c39, c35['feature'][dol(0xf5e)], new c25['Cartesian3']()); + } + } else if (c35['linkModel'] && c25['defined'](c35['model'])) { + var c3a = c32['_API']['m_model']['get'](c35['model']['id'])[dol(0xf5f)]['center']; + c37 = c25['Cartesian3']['subtract'](c3a, c35['model']['offset'], new c25['Cartesian3']()); + } + if (c32['_camera']['frustum']instanceof c25['OrthographicFrustum'] || c35['maxDistance'] === 0x0) { + c3b = !![]; + } else { + var c3b = c35['isVisible'] && c25['Cartesian3']['distance'](c37, c32['_camera']['positionWC']) <= c35['maxDistance']; + if (c35['displayRange']['length'] == 0x2 && c35['isVisible']) { + if (c35['displayRange'][0x0] <= (c35['isVisible'] && c25['Cartesian3']['distance'](c37, c32['_camera']['positionWC'])) && (c35[dol(0xf60)] && c25[dol(0xf61)]['distance'](c37, c32['_camera'][dol(0xf62)])) <= c35[dol(0xf63)][0x1]) { + c3b = !![]; + } else { + c3b = ![]; + } + } + } + c3b = c35['isVisible'] && c3b; + c2W(c32, c35['id'], c3b); + if (!c3b) + return; + if (!c35['removePoint'] && c25['defined'](c35[dol(0xf64)])) { + c25['Cartesian3']['clone'](c37, c35['point']['position']['_value']); + c35['point']['point']['show']['_value'] = !![]; + } + var c3c = c32['_scene']['cartesianToCanvasCoordinates'](c37, new c25['Cartesian2']()); + var c3d = c32['_API']['viewer']['container']['offsetLeft']; + var c3e = c32['_API']['viewer']['container']['offsetTop']; + if (c25['defined'](c3c)) { + c36['style'][dol(0xf65)] = c3d + c3c['x'] - c35['size']['width'] / 0x2 + c3t(c35, 'x') + c35['offset']['x'] + doh(0xdd); + c36['style']['top'] = c3e + c3c['y'] - c35['size']['height'] / 0x2 + c3t(c35, 'y') + c35['offset']['y'] + doh(0xde); + c36['style']['position'] = 'a' + doo(0x7d7) + 'e'; + if (c35['flog'] && c35[dol(0xf66)] == !![]) { + var c3f = c37 + , c3g = c32['_camera']['position'] + , c3h = c32['_scene']['globe']['ellipsoid']['cartesianToCartographic'](c3g)['height']; + if (!(c3h += 0x1 * c32['_scene'][dol(0xf67)]['ellipsoid']['maximumRadius'], + c25[dol(0xf68)]['distance'](c3g, c3f) > c3h)) { + c36['style']['display'] = 'i' + doo(0x7d8) + 'k'; + } else { + c36['style']['display'] = 'n' + doo(0x7d9) + 'e'; + } + } + } else { + c36['style']['left'] = '-' + doo(0x7da) + 'x'; + } + }); + c32['_scene']['requestRender'](); + } + } + ;this['_scene']['preRender']['addEventListener'](c34); + } + ; + function c3i(c3j, c3k, c3l) { + var c3m = new c25['Cartesian3'](); + if (c3k == 0x0 && Array['isArray'](c3l) && c3l['length'] == 0x2) { + c3j['Public']['pickupCoordinate'](new c25['Cartesian2'](c3l[0x0],c3l[0x1]), function(c3n) { + if (c3n && Array['isArray'](c3n) && c3n['length'] > 0x0) { + var c3o = c25['Cartesian3']['fromRadiansArrayHeights'](c3n); + c3o[0x0]['clone'](c3m); + } + }); + } else if (c3k == 0x1 && Array['isArray'](c3l) && c3l['length'] == 0x3) { + var c3l = c25['Cartesian3']['fromRadiansArrayHeights'](c3l); + c3l[0x0]['clone'](c3m); + } else if (c3l instanceof c25['Cartesian3']) { + c3l['clone'](c3m); + } else { + throw doj(0x283); + } + return c3m; + } + function c3q(c3r, c3s) { + c3s['size'] = { + 'width': c3r['offsetWidth'], + 'height': c3r['offsetHeight'] + }; + } + function c3t(c3u, c3v) { + if (!c25['defined'](c3u['attachmentPoint'])) { + c3u['attachmentPoint'] = 0x3; + } + c3v = c3v['toUpperCase'](); + switch (c3u['attachmentPoint']) { + case 0x1: + if ('X' == c3v) + return -c3u['size']['width'] / 0x2; + if ('Y' == c3v) + return -c3u['size']['height'] / 0x2; + break; + case 0x2: + if ('X' == c3v) + return 0x0; + if ('Y' == c3v) + return -c3u['size']['height'] / 0x2; + break; + case 0x3: + if ('X' == c3v) + return c3u['size'][dol(0xf69)] / 0x2; + if ('Y' == c3v) + return -c3u['size']['height'] / 0x2; + break; + case 0x4: + if ('X' == c3v) + return -c3u['size']['width'] / 0x2; + if ('Y' == c3v) + return 0x0; + break; + default: + case 0x5: + if ('X' == c3v) + return 0x0; + if ('Y' == c3v) + return 0x0; + break; + case 0x6: + if ('X' == c3v) + return c3u['size']['width'] / 0x2; + if ('Y' == c3v) + return 0x0; + break; + case 0x7: + if ('X' == c3v) + return -c3u['size'][dol(0xf6a)] / 0x2; + if ('Y' == c3v) + return c3u['size']['height'] / 0x2; + break; + case 0x8: + if ('X' == c3v) + return 0x0; + if ('Y' == c3v) + return c3u['size']['height'] / 0x2; + break; + case 0x9: + if ('X' == c3v) + return c3u['size']['width'] / 0x2; + if ('Y' == c3v) + return c3u['size'][dol(0xf6b)] / 0x2; + break; + } + return 0x0; + } + function c3w(c3x, c3y, c3z, c3A, c3B, c3C, c3D, c3E, c3F) { + var c3G = null; + if (c3A == 0x0) { + c3G = c3x['_viewer']['entities']['add']({ + 'id': c3y, + 'position': c3z['clone'](), + 'point': { + 'color': c3D == undefined ? c25[dol(0xf6c)]['WHITE'] : c25['Color']['fromCssColorString'](c3D), + 'pixelSize': c3C == undefined ? 0x5 : c3C, + 'outlineColor': c3F == undefined ? c25['Color']['RED']['withAlpha'](0.5) : c25[dol(0xf6d)]['fromCssColorString'](c3F)['withAlpha'](0.5), + 'outlineWidth': c3E == undefined ? 0x3 : c3E, + 'show': ![], + 'distanceDisplayCondition': new c25['DistanceDisplayCondition'](c3B) + } + }); + } else { + c3G = c3x['_viewer']['entities']['add']({ + 'id': c3y, + 'position': c3z['clone'](), + 'point': { + 'color': c3D == undefined ? c25['Color'][dol(0xf6e)] : c25['Color']['fromCssColorString'](c3D), + 'pixelSize': c3C == undefined ? 0x5 : c3C, + 'outlineColor': c3F == undefined ? c25['Color']['RED']['withAlpha'](0.5) : c25['Color']['fromCssColorString'](c3F)['withAlpha'](0.5), + 'outlineWidth': c3E == undefined ? 0x3 : c3E, + 'show': ![], + 'disableDepthTestDistance': c3A, + 'distanceDisplayCondition': new c25['DistanceDisplayCondition'](c3B) + } + }); + } + return c3G; + } + return c26; + }(window['Cesium'] || {}); + ;GLEDoInWorker = function(c3H) { + var c3I; + function c3J(c3K, c3L) { + this['_API'] = c3K; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + c3I = this; + } + var c3M = {}; + var c3N = 0x0; + var c3O = Math['max'](c3H['FeatureDetection']['hardwareConcurrency'] - 0x1, 0x1); + c3J['AsynchronousExecution'] = function(c3P, c3Q) { + var c3R = []; + if (c3M[c3P]) + c3R = c3M[c3P]; + else { + for (var c3S = 0x0; c3S < c3O; ++c3S) { + c3R[dol(0xf6f)](new c3H['TaskProcessor'](c3P,Number['POSITIVE_INFINITY'])); + } + c3M[c3P] = c3R; + } + return c3R[c3N++ % c3O]['scheduleTask'](c3Q); + } + ; + return c3J; + }(window['Cesium'] || {}); + ;GLEHawkEyeMap = function(c3T) { + var c3U = doj(0x284); + var c3V = 'i' + doo(0x7db) + 'l'; + var c3W = doh(0xdf); + var c3X; + var c3Y; + var c3Z; + var c40; + var c41; + var c42 = doh(0xe0); + var c43 = { + 'modelId': '', + 'modelFloorJsonPath': '', + 'windowSize': {}, + 'offset': { + 'corner': 0x3, + 'x': 0xa, + 'y': 0xa + }, + 'show': !![], + 'canPan': !![], + 'show2D3DModeSwitching': ![], + 'locationStyle': 0x1, + 'currentFloor': c3W, + 'navigator_userAgent': navigator['userAgent'], + 'clearColor': new c3T['Color'](0x1,0x1,0x1,0x0), + 'customUserData': { + 'center': undefined, + 'radius': undefined + }, + 'passes': [] + }; + function c44(c45, c46) { + this['_API'] = c45; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + this['_viewportScreentshot'] = this['_API']['Plugin']['initViewportScreentshot'](); + c3X = this; + c3X['windowMaxMin'] = 0x1; + switch (c45['defaults']['language']) { + case 'z' + doo(0x7dc) + 'N': + c3W = doh(0xe1); + break; + case 'z' + doo(0x7dd) + 'W': + c3W = doh(0xe2); + break; + case doh(0xe3): + c3W = 'P' + doo(0x7de) + 'w'; + break; + } + c7o(c46); + c47(); + c4i(); + c4x(); + c77(); + c6S(); + } + c44['LeftTop'] = 0x0; + c44['RightTop'] = 0x1; + c44['RightBottom'] = 0x2; + c44['LeftBottom'] = 0x3; + c44['ShowRect'] = 0x0; + c44[dol(0xf70)] = 0x1; + c44['ShowBoth'] = 0x2; + function c47() { + if (typeof c3X['configure']['clearColor'] == 's' + doo(0x7df) + 'g') { + c3X['configure']['clearColor'] = c3T['Color']['fromCssColorString'](c3X[dol(0xf71)]['clearColor']); + } + var c48 = Array['isArray'](c3X['configure']['modelId']) ? c3X['configure']['modelId'] : [c3X['configure']['modelId']]; + for (var c49 = 0x0; c49 < c48['length']; c49++) { + var c4a = c48[c49]; + if (c3X['_API'][dol(0xf72)]['get'](c4a['toString']()) === undefined) { + throw doj(0x285); + } + } + c3X['configure']['modelId'] = c48; + var c4b = c3X['_API']['Model']['getModelsCenter'](c48); + var c4c = c3X['_API']['Public']['cartesian3ToRadians']([c4b['center']['x'], c4b[dol(0xf73)]['y'], c4b[dol(0xf74)]['z']]); + var c4d = new c3T['Cartesian3'](); + c3T['Matrix3']['getScale'](c4b['oldsphere']['boundingVolume']['_orientedBoundingBox']['halfAxes'], c4d); + c3T['Cartesian3']['multiplyByScalar'](c4d, 0x2, c4d); + c3X['configure']['mainScene'] = { + 'size': c4d + }; + var c4e = new c3T['Cartesian3'](); + c3T['Cartesian3']['normalize'](c4b[dol(0xf75)], c4e); + var c4f = c3T['Cartesian3']['add'](c4b['center'], c3T['Cartesian3']['multiplyByScalar'](c4e, c4b['radius'] * 0x1, c4e), new c3T['Cartesian3']()); + if (c3X['configure']['customUserData']['center'] && c3X['configure']['customUserData']['radius'] && c3X['configure']['customUserData']['radius'] > 0x0) { + c4c = c3X['configure']['customUserData']['center']; + var c4g = c3X['_API']['Public'][dol(0xf76)](c4c[0x1], c4c[0x0], c4c[0x2]); + c3T['Cartesian3']['normalize'](c4g, c4e); + c4f = c3T['Cartesian3']['add'](c4g, c3T['Cartesian3']['multiplyByScalar'](c4e, c3X['configure']['customUserData']['radius'] * 0x1, c4e), new c3T['Cartesian3']()); + c4d = new c3T['Cartesian3'](c3X['configure']['customUserData']['radius'] * 0x2,c3X['configure']['customUserData']['radius'] * 0x2,c4d['z']); + c3X['configure']['mainScene'] = { + 'size': c4d + }; + c3X['configure']['init'] = { + 'positionRad': c4c, + 'position': c4g, + 'radius': c3X['configure']['customUserData']['radius'], + 'modelBoxSize': c4d, + 'modelTopViewPosition': c4f, + 'viewport': c3X['_API']['Camera']['getViewPort']() + }; + return; + } + c3X['configure']['init'] = { + 'positionRad': c4c, + 'position': c4b['center'], + 'radius': c4b['radius'], + 'modelBoxSize': c4d, + 'modelTopViewPosition': c4f, + 'viewport': c3X['_API']['Camera']['getViewPort']() + }; + } + c44['prototype']['remove'] = function() { + var c4h = document['getElementById'](c3U); + if (c3T['defined'](c4h)) { + c4h['parentNode']['removeChild'](c4h); + } + c3X['_scene'][dol(0xf77)]['removeEventListener'](c6i); + c3X['_viewportScreentshot']['remove'](c3U); + } + ; + function c4i() { + var c4j = c3X['_API']['viewer']['container']['getElementsByClassName']('c' + doo(0x7e0) + 'r')[0x0]; + var c4k = c4j['clientWidth']; + var c4l = c4j['clientHeight']; + c4k /= window['devicePixelRatio']; + c4l /= window['devicePixelRatio']; + if (c3X['configure']['windowSize']) { + if (!isNaN(c3X['configure']['windowSize']['width'])) { + c4k = c3X['configure']['windowSize'][dol(0xf78)]; + c4l = c4k * c3X['configure']['init']['modelBoxSize']['y'] / c3X['configure']['init']['modelBoxSize']['x']; + } else if (!isNaN(c3X['configure']['windowSize']['height'])) { + c4l = c3X['configure']['windowSize']['height']; + c4k = c4l * c3X['configure']['init']['modelBoxSize']['x'] / c3X['configure']['init']['modelBoxSize']['y']; + } else { + c4k *= 0.25; + c4l = c4k * c3X['configure']['init']['modelBoxSize']['y'] / c3X['configure']['init']['modelBoxSize']['x']; + } + } else { + c4k *= 0.25; + c4l = c4k * c3X['configure']['init']['modelBoxSize']['y'] / c3X[dol(0xf79)]['init']['modelBoxSize']['x']; + } + c3X['configure'][dol(0xf7a)][dol(0xf7b)] = c4k; + c3X['configure']['windowSize'][dol(0xf7c)] = c4l; + c3Y = document['getElementById'](c3U); + if (c3Y) + c3Y['parentNode']['removeChild'](c3Y); + c3Y = document['createElement'](doh(0xe4)); + c3Y['id'] = c3U; + c3Y['classList']['add'](doj(0x286)); + var c4m = window['devicePixelRatio']; + if (c3X[dol(0xf7d)][dol(0xf7e)]()) + c4m /= 0x2; + var c4n = { + 'x': Math[dol(0xf7f)](c4k * c4m), + 'y': Math['ceil'](c4l * c4m) + }; + var c4o = { + 'x': Math['ceil'](c4n['x'] + 0x8 * c4m), + 'y': Math['ceil'](c4n['y'] + 0x20 * c4m) + }; + var c4p = { + 'x': Math['ceil'](c4n['x'] * c4m * 0.15), + 'y': Math['ceil'](c4n['y'] * c4m * 0.15) + }; + var c4q = '#' + doo(0x7e1) + '0'; + var c4r = c3T['Math']['toDegrees'](c3X['_camera']['heading']) - 0x5a; + c3X['configure']['hawkWindow'] = { + 'devicePixelRatio': c4m, + 'windowSize': c4o, + 'size': c4n, + 'rectSize': c4p, + 'offsetX': c4n['x'] * 0.5, + 'offsetY': c4n['y'] * 0.5, + 'offsetXRect': (c4n['x'] - c4p['x']) * 0.5, + 'offsetYRect': (c4n['y'] - c4p['y']) * 0.5, + 'heading': c4r + }; + var c4s = '#' + doo(0x7e2) + '0'; + var c4t = 'p' + doo(0x7e3) + ';' + ('w' + doo(0x7e4) + ':') + Number(c4o['x']) + doh(0xe5) + ('h' + doo(0x7e5) + ':') + Number(c4o['y']) + doh(0xe6) + ('d' + doo(0x7e6) + ':') + (c3X['configure'][dol(0xf80)] ? 'b' + doo(0x7e7) + 'k' : 'n' + doo(0x7e8) + 'e') + ';' + doj(0x287); + var c4u = doj(0x288) + c4t + doj(0x289) + (c3X['configure']['hawkWindow']['size']['x'] - 0x50) + doj(0x28a) + (c3X['configure']['canPan'] ? 0x16 : 0x0) + doj(0x28b) + (c3X['configure']['canPan'] ? 'b' + doo(0x7e9) + 'k' : 'n' + doo(0x7ea) + 'e') + doj(0x28c) + c51({ + 'id': c3U, + 'default': c3W + }) + doj(0x28d) + c3V + ('\x22' + doo(0x7eb) + '\x22') + c4n['x'] + ('\x22' + doo(0x7ec) + '\x22') + c4n['y'] + doj(0x28e) + c3U + ('-' + doo(0x7ed) + '\x22') + c3X['configure']['hawkWindow']['rectSize']['x'] + ('\x22' + doo(0x7ee) + '\x22') + c3X['configure']['hawkWindow']['rectSize']['y'] + doj(0x28f) + c3X['configure']['hawkWindow'][dol(0xf81)] + ',' + c3X['configure'][dol(0xf82)]['offsetYRect'] + doj(0x290) + (c3X['configure']['locationStyle'] == c44['ShowRect'] || c3X['configure']['locationStyle'] == c44['ShowBoth'] ? 'b' + doo(0x7ef) + 'k' : 'n' + doo(0x7f0) + 'e') + doj(0x291) + c4s + (';' + doo(0x7f1) + ':') + c4s + doj(0x292) + c3X['configure']['hawkWindow']['offsetX'] + ',' + c3X['configure']['hawkWindow']['offsetY'] + (')' + doo(0x7f2) + '(') + c4r + (')' + doo(0x7f3) + '\x20') + (c3X['configure']['locationStyle'] == c44['ShowPoint'] || c3X['configure']['locationStyle'] == c44['ShowBoth'] ? 'b' + doo(0x7f4) + 'k' : 'n' + doo(0x7f5) + 'e') + doj(0x293) + c4s + doj(0x294) + c4s + doj(0x295) + c4q + ('\x22' + doo(0x7f6) + '\x22') + c4s + doj(0x296) + (c3X['configure']['show2D3DModeSwitching'] ? 'd' + doo(0x7f7) + ';' : 'd' + doo(0x7f8) + ';') + doj(0x297); + c3Y['innerHTML'] = c4u; + c3Y['style']['display'] = 'n' + doo(0x7f9) + 'e'; + c3X['windowMaxMin'] = 0x1; + c4j['appendChild'](c3Y); + var c4v = Number(c3X['configure']['offset']['x']); + var c4w = Number(c3X['configure']['offset']['y']); + switch (c3X['configure']['offset']['corner']) { + case c44['LeftTop']: + c3Y['style']['left'] = c4v + doh(0xe7); + c3Y['style']['top'] = c4w + doh(0xe8); + break; + case c44['RightTop']: + c3Y['style']['right'] = c4v + doh(0xe9); + c3Y['style']['top'] = c4w + doh(0xea); + break; + case c44['RightBottom']: + c3Y['style'][dol(0xf83)] = c4v + doh(0xeb); + c3Y['style'][dol(0xf84)] = c4w + doh(0xec); + break; + case c44['LeftBottom']: + c3Y['style']['left'] = c4v + doh(0xed); + c3Y['style']['bottom'] = c4w + doh(0xee); + break; + default: + break; + } + c3Z = document['querySelector'](doj(0x298) + c3V); + c40 = document['querySelector'](doj(0x299)); + c41 = document['querySelector'](doj(0x29a) + c3U + ('-' + doo(0x7fa) + 't')); + } + function c4x() { + c3X['_scene']['postRender']['addEventListener'](c6i); + var c4y = ['b' + doo(0x7fb) + 'n', 'b' + doo(0x7fc) + 'e', 's' + doo(0x7fd) + 's', 's' + doo(0x7fe) + 'h', 's' + doo(0x7ff) + 'd', 's' + doo(0x800) + 'd', 's' + doo(0x801) + 'd', 's' + doo(0x802) + 'e', 'c' + doo(0x803) + '_' + c3U]; + c4y['forEach'](c4z => { + var c4A = document['getElementById'](c4z); + if (c4A) { + var c4B = function(c4C) { + switch (c4C[dol(0xf85)]) { + case 'b' + doo(0x804) + 'n': + ++c3X['windowMaxMin']; + c3X['windowMaxMin'] = c3X['windowMaxMin'] % 0x2; + var c4D = document[dol(0xf86)](doj(0x29b)); + var c4E = document['querySelector'](doj(0x29c)); + if (c3X['windowMaxMin']) { + c4C['classList']['remove']('a' + doo(0x805) + 'n'); + c3Y['classList']['remove'](doj(0x29d)); + c4D['style']['display'] = 'b' + doo(0x806) + 'k'; + c4E['style']['display'] = 'b' + doo(0x807) + 'k'; + } else { + c4C['classList'][dol(0xf87)]('a' + doo(0x808) + 'n'); + c3Y['classList']['add'](doj(0x29e)); + c4D['style']['display'] = 'n' + doo(0x809) + 'e'; + c4E['style']['display'] = 'n' + doo(0x80a) + 'e'; + } + c3Y['removeAttribute']('s' + doo(0x80b) + 'e'); + var c4F = Number(c3X[dol(0xf88)]['offset']['x']); + var c4G = Number(c3X['configure']['offset']['y']); + switch (c3X['configure']['offset']['corner']) { + case c44['LeftTop']: + c3Y[dol(0xf89)][dol(0xf8a)] = c4F + doh(0xef); + c3Y['style']['top'] = c4G + doh(0xf0); + break; + case c44[dol(0xf8b)]: + c3Y['style']['right'] = c4F + doh(0xf1); + c3Y['style'][dol(0xf8c)] = c4G + doh(0xf2); + break; + case c44['RightBottom']: + c3Y[dol(0xf8d)]['right'] = c4F + doh(0xf3); + c3Y['style']['bottom'] = c4G + doh(0xf4); + break; + case c44['LeftBottom']: + c3Y['style']['left'] = c4F + doh(0xf5); + c3Y['style'][dol(0xf8e)] = c4G + doh(0xf6); + break; + default: + break; + } + break; + case 'b' + doo(0x80c) + 'e': + c3X['remove'](); + break; + case 's' + doo(0x80d) + 's': + case 's' + doo(0x80e) + 'h': + break; + case 's' + doo(0x80f) + 'd': + case 's' + doo(0x810) + 'e': + break; + case 's' + doo(0x811) + 'd': + c68(doh(0xf7)); + break; + case 's' + doo(0x812) + 'd': + c68(doh(0xf8)); + break; + case 'c' + doo(0x813) + '_' + c3U: + break; + default: + break; + } + }; + c4A['addEventListener']('m' + doo(0x814) + 'n', function(c4H) { + c4H['stopPropagation'](); + c4B(c4H[dol(0xf8f)]); + }); + c4A['addEventListener']('t' + doo(0x815) + 'd', function(c4I) { + c4I['stopPropagation'](); + c4B(c4I[dol(0xf90)]); + }); + } + } + ); + var c4J = document['getElementById']('t' + doo(0x816) + 't'); + if (c4J) { + c4J['addEventListener']('m' + doo(0x817) + 'n', function(c4K) { + var c4L = c6c(c4K); + if (c4L && !isNaN(c4L['x'])) + c6v(c4L); + }); + var c4M = function(c4N) { + var c4O = c6c(c4N); + if (c4O && !isNaN(c4O['x'])) + c6v(c4O); + }; + c4J['addEventListener']('t' + doo(0x818) + 'd', c4M); + } + var c4P = document['getElementById']('d' + doo(0x819) + 'e'); + c4P['onmousedown'] = function() { + document['onmousemove'] = function(c4Q) { + c4Q = c4Q || window['event']; + var c4R = c4Q['clientX'] - 0xd; + var c4S = c4Q['clientY'] - 0xc; + c3Y['style']['left'] = c4R + doh(0xf9); + c3Y['style']['top'] = c4S + doh(0xfa); + document['onmouseup'] = function() { + document['onmousemove'] = null; + document['onmouseup'] = null; + } + ; + } + ; + } + ; + c4P['addEventListener']('t' + doo(0x81a) + 't', function(c4T) { + if (c4T['touches']['length'] > 0x0) { + var c4U = function(c4V) { + if (c4V[dol(0xf91)]['length'] > 0x0) { + var c4W = c4V['touches'][0x0]; + var c4X = c4W['clientX'] - 0xf; + var c4Y = c4W['clientY'] - 0xf; + c3Y['style']['left'] = c4X + doh(0xfb); + c3Y['style']['top'] = c4Y + doh(0xfc); + } + }; + var c4M = function(c4T) { + c4P['removeEventListener']('t' + doo(0x81b) + 'e', c4U); + c4P['removeEventListener']('t' + doo(0x81c) + 'd', c4M); + }; + c4P['addEventListener']('t' + doo(0x81d) + 'e', c4U); + c4P['addEventListener']('t' + doo(0x81e) + 'd', c4M); + } + }); + } + function c51(c52) { + var c53 = c52['id']; + var c54 = c52['default']; + var c55 = doj(0x29f) + c53 + doj(0x2a0) + c53 + doj(0x2a1) + c53 + doj(0x2a2) + c53 + doj(0x2a3) + c3X[dol(0xf92)][dol(0xf93)][dol(0xf94)]['y'] * 0.7 + doj(0x2a4) + c3X['configure'][dol(0xf95)]['size']['x'] + doj(0x2a5) + c53 + doj(0x2a6) + c53 + doj(0x2a7) + c53 + doj(0x2a8) + c53 + doj(0x2a9) + c53 + doj(0x2aa) + (c54 ? c54 : doh(0xfd)) + doj(0x2ab); + return c55; + } + function c56() { + if (c3X['configure']['floorJson'] && c3X['configure']['floorJson']['length'] > 0x0) { + var c57 = c3X['configure']['floorJson']['length'] === 0x1; + var c58 = []; + c58['push']({ + 'name': c3W, + 'value': 0x0, + 'isActive': !![] + }); + var c59 = [c3W]; + c3X['configure'][dol(0xf96)] = new Map(); + c3X['configure']['floorBox'] = new Map(); + for (var c5a = 0x0; c5a < c3X['configure']['floorJson']['length']; c5a++) { + var c5b = c3X['configure']['floorJson'][c5a]; + if (c5b) { + var c5c = c5b['modelId']; + var c5d = c5b[dol(0xf97)]; + for (var c5e = 0x0; c5e < c5d['length']; c5e++) { + if (c5d[c5e]['floor'] == 'U' + doo(0x81f) + 'd') + continue; + var c5f = c5d[c5e]['box']; + if (!c3T['defined'](c3X['configure'][dol(0xf98)])) + c3X['configure']['minFloorMinZ'] = c5f[0x2]; + else + c3X['configure']['minFloorMinZ'] = Math['min'](c3X['configure']['minFloorMinZ'], c5f[0x2]); + var c5g = c5d[c5e]['glids']['split']('#')['map'](c5h => c5c + '^' + c5h); + if (!c3X['configure']['floorGuids']['has'](c5d[c5e]['floor'])) { + var c5i = new Map(); + c5i[dol(0xf99)](c5c, c5g); + c3X['configure']['floorGuids']['set'](c5d[c5e]['floor'], c5i); + } else { + var c5j = c3X['configure'][dol(0xf9a)]['get'](c5d[c5e]['floor']); + c5j['set'](c5c, c5g); + c3X['configure']['floorGuids']['set'](c5d[c5e]['floor'], c5j); + } + if (!c3X['configure']['floorBox']['has'](c5d[c5e]['floor'])) { + c3X['configure'][dol(0xf9b)]['set'](c5d[c5e]['floor'], c5d[c5e]['box']); + } + if (c59['indexOf'](c5d[c5e]['floor']) == -0x1) { + c59['push'](c5d[c5e][dol(0xf9c)]); + c58['push']({ + 'name': c5d[c5e]['floor'], + 'value': c5e + 0x1, + 'isActive': ![] + }); + } + } + } + } + c5k({ + 'id': c3U, + 'data': c58 + }); + } + } + function c5k(c5l) { + var c5m = c5l['id']; + var c5n = c5l['data'] && c5l['data']['length'] > 0x0 ? c5l['data'] : []; + function c5o() { + if (c5r['style'][dol(0xf9d)] == 'n' + doo(0x820) + 'e' || c5r['style']['display'] == '') { + c5r['style'][dol(0xf9e)] = 'b' + doo(0x821) + 'k'; + } else { + c5r['style']['display'] = 'n' + doo(0x822) + 'e'; + } + } + ;var c5p = document['querySelector']('#' + doo(0x823) + '_' + c5m + doj(0x2ac)); + var c5q = document['querySelector']('#' + doo(0x824) + '_' + c5m + doj(0x2ad)); + var c5r = document['querySelector']('#' + doo(0x825) + '_' + c5m + doj(0x2ae)); + if (c3X[dol(0xf9f)]['isMobile']()) { + c5q['ontouchend'] = c5o; + c5p['ontouchend'] = c5o; + } else { + c5q['onclick'] = c5o; + c5p['onclick'] = c5o; + } + var c5s = document['createElement'](doh(0xfe)); + c5r['appendChild'](c5s); + for (var c5t = 0x0; c5t < c5n[dol(0xfa0)]; c5t++) { + var c5u = document['createElement'](doh(0xff)); + c5u['setAttribute']('d' + doo(0x826) + 'e', c5n[c5t]['value']); + if (c5n[c5t]['isActive']) + c5u['setAttribute']('a' + doo(0x827) + 'e', !![]); + c5u['innerText'] = c5n[c5t]['name']; + c5s['appendChild'](c5u); + } + function c5v(c5w) { + var c5x = new c3T['Cartesian2'](); + if (c3X['_API']['isMobile']()) { + c5w['ontouchstart'] = function(c5y) { + if (c5y['touches']['length'] > 0x0) { + var c5z = c5y['touches'][0x0]; + if (c5z) { + c5x['x'] = c5z['clientX']; + c5x['y'] = c5z['clientY']; + } + } + } + ; + c5w['ontouchend'] = function(c5A) { + if (c5A['changedTouches']['length'] > 0x0) { + var c5B = c5A['changedTouches'][0x0]; + if (c5B) { + var c5C = new c3T['Cartesian2'](c5B['clientX'],c5B['clientY']); + if (c3T['Cartesian2']['distance'](c5C, c5x) < 0x5) { + c5p['innerText'] = c5A['target']['innerHTML']; + c5r['style']['display'] = 'n' + doo(0x828) + 'e'; + c5H(c5p[dol(0xfa1)]); + } + } + } + } + ; + } else { + c5w[dol(0xfa2)] = function(c5D) { + c5x['x'] = c5D['clientX']; + c5x['y'] = c5D['clientY']; + } + ; + c5w['onmouseup'] = function(c5E) { + var c5F = new c3T['Cartesian2'](c5E['clientX'],c5E[dol(0xfa3)]); + if (c3T['Cartesian2']['distance'](c5F, c5x) < 0x5) { + c5E['target']['parentNode']['childNodes']['forEach'](function(c5u) { + c5u[dol(0xfa4)]('a' + doo(0x829) + 'e'); + }); + c5E['target']['setAttribute']('a' + doo(0x82a) + 'e', !![]); + c5p[dol(0xfa5)] = c5E['target']['innerHTML']; + c5r['style']['display'] = 'n' + doo(0x82b) + 'e'; + c5H(c5p['innerText']); + } + } + ; + } + } + function c5H(c5I) { + c47(); + c76 = c3X['_scene']['requestRenderMode']; + c3X['_API']['Public']['setSceneRenderState'](!![]); + c3X['configure']['currentFloor'] = c5I; + var c5J = c3X[dol(0xfa6)]['floorGuids']['get'](c3X['configure']['currentFloor']); + var c5K = []; + if (c5J && c5J['size'] > 0x0) { + c5J['forEach'](function(c5L, c5M) { + c5K['push'](c5M); + var c5N = c5L['join']('#'); + c3X['_API']['Feature']['showFeatures'](c5N, c5M, !![]); + }); + } + function c5O(c5P, c5Q) { + var c5R = document['getElementById'](c3V); + var c5S = c5R['getContext'](doh(0x100)); + var c5T = c5Q['width']; + var c5U = c5Q['height']; + c5R[dol(0xfa7)] = c5U; + c5R['width'] = c5T; + var c5V = new Image(); + if (c5P) { + var c5W = c5S['createImageData'](c5T, c5U); + c5W['data']['set'](c5P); + c5S['putImageData'](c5W, 0x0, 0x0); + var c5X = c5R['toDataURL']('i' + doo(0x82c) + 'g'); + c5V['src'] = c5X; + } else { + c5V['src'] = c7w; + } + c5S['clearRect'](0x0, 0x0, c5T, c5U); + c5S['fillStyle'] = 's' + doo(0x82d) + 'e'; + c5S['fillRect'](0x0, 0x0, c5T, c5U); + c5V[dol(0xfa8)] = function() { + c5S['drawImage'](this, 0x0, 0x0, c5T, c5U); + } + ; + } + setTimeout(function() { + if (c3W == c3X['configure']['currentFloor']) { + c3X['_viewportScreentshot'][dol(0xfa9)]({ + 'id': c3U, + 'showFeatureIdOnly': '', + 'outputCanvas': c3V, + 'onBufferRender': function(c5Y) { + c6X(c5Y); + if (!c64(c5Y['buffer'])) { + c3X['configure']['floorScreenshotMap']['set'](c3X['configure']['currentFloor'], c5Y); + } else { + if (c3X['configure']['floorScreenshotMap']['has'](c3X['configure']['currentFloor'])) { + c5Y = c3X[dol(0xfaa)]['floorScreenshotMap']['get'](c3X['configure']['currentFloor']); + c5O(c5Y['buffer'], c5Y['size']); + } else { + c5O(undefined, c5Y['size']); + } + } + c3X['_API']['Public']['setSceneRenderState'](c76); + c3X['_viewer']['scene']['requestRender'](); + } + }); + } else if (c3X['configure']['floorGuids']['has'](c3X['configure']['currentFloor'])) { + c3X['_viewportScreentshot']['update']({ + 'id': c3U, + 'outputCanvas': c3V, + 'onBufferRender': function(c5Z) { + c6X(c5Z); + if (c5K['length'] > 0x0) { + for (var c60 = 0x0; c60 < c5K[dol(0xfab)]; c60++) { + var c61 = c5K[c60]; + c3X['_API']['modelShowMap']['get'](c61)['clear'](); + c3X['_API']['funcPublic']['updateModelShowStyle'](c3X['_API']['m_model']['get'](c61), new Map(), !![]); + } + } + if (!c64(c5Z['buffer'])) { + c3X['configure']['floorScreenshotMap']['set'](c3X['configure']['currentFloor'], c5Z); + } else { + if (c3X['configure']['floorScreenshotMap'][dol(0xfac)](c3X['configure']['currentFloor'])) { + c5Z = c3X['configure']['floorScreenshotMap']['get'](c3X['configure']['currentFloor']); + c5O(c5Z['buffer'], c5Z['size']); + } else { + c5O(undefined, c5Z[dol(0xfad)]); + } + } + c3X['_API']['Public'][dol(0xfae)](c76); + c3X['_viewer']['scene']['requestRender'](); + } + }); + } else { + console['log']('未' + doo(0x82e) + '图'); + } + }, 0x32); + if (c6u) + c6v(c6u); + } + var c62 = c5r['getElementsByTagName'](doh(0x101)); + for (var c5t = 0x0; c5t < c62['length']; c5t++) { + c5v(c62[c5t]); + } + } + function c64(c65) { + for (var c66 = 0x0; c66 < c65['length'] / 0x4; c66++) { + var c67 = c65[c66 * 0x4 + 0x3]; + if (c67 != 0x0) { + return ![]; + } + } + return !![]; + } + function c68(c69) { + var c6a = document['getElementById']('s' + doo(0x82f) + 'd'); + var c6b = document[dol(0xfaf)]('s' + doo(0x830) + 'd'); + if (c69 == doh(0x102)) { + c6b['setAttribute']('f' + doo(0x831) + 'l', '#' + doo(0x832) + 'b'); + c6a['setAttribute']('f' + doo(0x833) + 'l', '#' + doo(0x834) + '5'); + if (c42 == doh(0x103)) + return; + c42 = doh(0x104); + c3X['configure']['recorded'] = { + 'cameraLastPosition': c3X['_camera']['position']['clone'](), + 'cameraLastOrientation': { + 'heading': c3X['_camera']['heading'], + 'pitch': c3X['_camera']['pitch'], + 'roll': c3X['_camera']['roll'] + } + }; + c3X['_camera']['setView']({ + 'destination': c3X['configure']['init']['modelTopViewPosition'], + 'orientation': { + 'heading': 0x0, + 'pitch': c3T['Math']['toRadians'](-0x5a), + 'roll': 0x0 + } + }); + c3X[dol(0xfb0)]['switchToOrthographicFrustum'](); + } else { + c6a['setAttribute']('f' + doo(0x835) + 'l', '#' + doo(0x836) + 'b'); + c6b['setAttribute']('f' + doo(0x837) + 'l', '#' + doo(0x838) + '5'); + if (c42 == doh(0x105)) + return; + c42 = doh(0x106); + if (c3T['defined'](c3X['configure']['recorded']) && c3X['configure']['recorded']['cameraLastOrientation']) { + c3X['_camera']['setView']({ + 'destination': c3X['configure']['recorded']['cameraLastPosition'], + 'orientation': { + 'heading': c3X['configure']['recorded']['cameraLastOrientation']['heading'], + 'pitch': c3X['configure']['recorded']['cameraLastOrientation']['pitch'], + 'roll': c3X['configure']['recorded']['cameraLastOrientation']['roll'] + } + }); + c3X['_camera'][dol(0xfb1)](); + } + } + c3X['_API']['viewer'][dol(0xfb2)]['requestRender'](); + } + function c6c(c6d) { + var c6e = c6d || window['event']; + var c6f = c6e['target'] || c6e[dol(0xfb3)]; + if (c3X['_API']['isMobile']()) { + if (c6e['changedTouches']['length'] > 0x0) { + var c6g = c6e[dol(0xfb4)][0x0]; + return { + 'x': c6g['clientX'] - c3Y['offsetLeft'] - 0x4 * devicePixelRatio * 0.5, + 'y': c6g['clientY'] - c3Y['offsetTop'] - 0x1c * devicePixelRatio * 0.5 + }; + } + } else { + if (c6e[dol(0xfb5)]) { + return { + 'x': c6e['offsetX'], + 'y': c6e['offsetY'] + }; + } else { + var c6h = c6f['getBoundingClientRect'](); + return { + 'x': c6e['clientX'] - c6h['left'], + 'y': c6e['clientY'] - c6h['top'] + }; + } + } + } + ;function c6i() { + var c6j = c6l(); + if (c3T['defined'](c40) && c3X['_camera'] && !isNaN(c3X['_camera']['heading'])) { + var c6k = c3T['Math']['toDegrees'](c3X['_camera']['heading']) - 0x5a; + c3X['configure']['hawkWindow']['heading'] = c6k; + c40['setAttribute']('t' + doo(0x839) + 'm', 't' + doo(0x83a) + '(' + (c3X['configure']['hawkWindow']['offsetX'] + c6j['x']) + ',' + (c3X['configure']['hawkWindow']['offsetY'] + c6j['y']) + (')' + doo(0x83b) + '(') + c3X['configure']['hawkWindow'][dol(0xfb6)] + ')'); + } + if (c3T['defined'](c41)) { + c3X['configure']['hawkWindow']['offsetXRect'] = (c3X['configure']['hawkWindow']['size']['x'] - c3X['configure']['hawkWindow'][dol(0xfb7)]['x']) * 0.5 + c6j['x']; + c3X['configure']['hawkWindow']['offsetYRect'] = (c3X['configure']['hawkWindow'][dol(0xfb8)]['y'] - c3X['configure']['hawkWindow']['rectSize']['y']) * 0.5 + c6j['y']; + c41['setAttribute']('t' + doo(0x83c) + 'm', 't' + doo(0x83d) + '(' + c3X['configure']['hawkWindow']['offsetXRect'] + ',' + c3X['configure']['hawkWindow']['offsetYRect'] + ')'); + } + } + function c6l() { + var c6m = c3X['_camera']['position']; + c3X['configure']['current'] = { + 'positionRad': c3X['_API']['Public']['cartesian3ToRadians']([c6m['x'], c6m['y'], c6m['z']]) + }; + var c6n = c3X['configure'][dol(0xfb9)]['size']['x'] / c3X[dol(0xfba)]['mainScene']['size']['x']; + var c6o = c3X['configure']['hawkWindow']['size']['y'] / c3X['configure']['mainScene']['size']['y']; + c3X['configure']['plottingScale'] = { + 'x': c6n, + 'y': c6o + }; + var c6p = c3T['Cartesian3']['fromRadians'](c3X['configure']['init']['positionRad'][0x0], c3X['configure']['init']['positionRad'][0x1]); + var c6q = c3T['Cartesian3'][dol(0xfbb)](c3X['configure']['current'][dol(0xfbc)][0x0], c3X['configure']['current']['positionRad'][0x1]); + var c6r = c3T['Cartesian3']['fromRadians'](c3X['configure']['current']['positionRad'][0x0], c3X['configure']['init']['positionRad'][0x1]); + var c6s = { + 'x': c3X['configure']['current']['positionRad'][0x0] - c3X['configure']['init']['positionRad'][0x0], + 'y': c3X['configure']['current']['positionRad'][0x1] - c3X['configure']['init']['positionRad'][0x1] + }; + var c6t = { + 'x': c3T['Cartesian3'][dol(0xfbd)](c6p, c6r), + 'y': c3T['Cartesian3']['distance'](c6q, c6r) + }; + if (c6s['x'] != 0x0) + c6t['x'] *= Math['abs'](c6s['x']) / c6s['x']; + if (c6s['y'] != 0x0) + c6t['y'] *= -(Math['abs'](c6s['y']) / c6s['y']); + c6t['x'] = c6O(c6t['x'], c3X['configure']['mainScene']['size']['x'] * 0.5, -c3X['configure']['mainScene']['size']['x'] * 0.5); + c6t['y'] = c6O(c6t['y'], c3X['configure']['mainScene']['size']['y'] * 0.5, -c3X['configure']['mainScene']['size']['y'] * 0.5); + c6t['x'] *= c6n; + c6t['y'] *= c6o; + c6t['y'] += 0xa * 0.5 / c3X['configure']['hawkWindow'][dol(0xfbe)]; + return c6t; + } + var c6u; + function c6v(c6w) { + c47(); + c6u = c6w; + var c6x = { + 'x': c6w['x'] - c3X[dol(0xfbf)]['hawkWindow']['size']['x'] * 0.5, + 'y': -(c6w['y'] - c3X['configure']['hawkWindow'][dol(0xfc0)]['y'] * 0.5) + }; + c6x['y'] += 0xa * 0.5 / c3X['configure']['hawkWindow']['devicePixelRatio']; + var c6y = { + 'x': c6x['x'] / c3X[dol(0xfc1)]['plottingScale']['x'], + 'y': c6x['y'] / c3X['configure']['plottingScale']['y'] + }; + var c6z = new c3T['Cartesian3'](c6y['x'],c6y['y'],0x0); + var c6A = c3T['Cartesian3']['fromRadians'](c3X['configure']['init']['positionRad'][0x0], c3X[dol(0xfc2)]['init']['positionRad'][0x1], c3X[dol(0xfc3)]['positionCartographic']['height']); + var c6B = c3T['Transforms']['eastNorthUpToFixedFrame'](c6A); + var c6C = c3T['Matrix4'][dol(0xfc4)](c6B, c6z, new c3T['Cartesian3']()); + var c6D = c6C; + var c6E = { + 'heading': c3X['_camera']['heading'], + 'pitch': c42 == doh(0x107) ? c3T['Math']['toRadians'](-0x5a) : c3X['_camera']['pitch'], + 'roll': c3X['_camera']['roll'] + }; + if (c3X['configure']['floorBox'] && c3X['configure'][dol(0xfc5)]['has'](c3X['configure']['currentFloor'])) { + var c6F = c3X['configure']['floorBox']['get'](c3X['configure']['currentFloor']); + var c6G = c3T['Cartesian3']['unpackArray'](c6F); + var c6H = new c3T['Cartesian3'](); + c3T['Cartesian3']['midpoint'](c6G[0x0], c6G[0x1], c6H); + var c6I = c6H['z'] - c3X[dol(0xfc6)]['minFloorMinZ']; + var c6J = c3T['Cartographic']['fromCartesian'](c6D); + if (c42 != doh(0x108)) { + var c6K = c3X['_API']['Model']['getModelsCenter'](c3X['configure']['modelId']); + var c6L = c3T['Cartographic']['fromCartesian'](c6K['center']); + var c6M = c6K['oldsphere']['maximumHeight']; + var c6N = c6K['oldsphere']['minimumHeight']; + c6J['height'] = c6I - (c6M - c6N) / 0x2 + c6L['height']; + } + c6D = c3T[dol(0xfc7)]['toCartesian'](c6J); + c6E = { + 'heading': c3X['_camera']['heading'], + 'pitch': c42 == doh(0x109) ? c3T['Math']['toRadians'](-0x5a) : 0x0, + 'roll': c3X['_camera']['roll'] + }; + } + c3X['_camera']['flyTo']({ + 'destination': c6D, + 'duration': 0x1, + 'orientation': c6E, + 'maximumHeight': c3X['_camera']['positionCartographic']['height'] + }); + } + function c6O(c6P, c6Q, c6R) { + c6P = Math['min'](c6P, c6Q); + c6P = Math[dol(0xfc8)](c6P, c6R); + return c6P; + } + function c6S() { + var c6T = []; + var c6U = c7b(c3X['configure']['modelFloorJsonPath']); + if (Array['isArray'](c6U)) { + c6T = c6T['concat'](c6U); + } else { + c6T['push'](c6U); + } + Promise['all'](c6T)['catch'](function(c6V) { + console['error'](c6V); + })['then'](function(c6W) { + c3X['configure']['floorJson'] = c6W; + c56(); + }); + } + function c6X(c6Y) { + var c6Z = c6Y[dol(0xfc9)]['width']; + var c70 = c6Y['size']['height'] + 0x1e; + var c71 = c6Y['size']['x']; + var c72 = c6Y['size']['y']; + c3X['configure']['mainScene']['size']['x'] = c71; + c3X[dol(0xfca)]['mainScene']['size']['y'] = c72; + c3X['configure']['hawkWindow'][dol(0xfcb)]['y'] = c3X['configure']['hawkWindow']['size']['x'] * c72 / c71; + c3X['configure']['hawkWindow']['offsetY'] = c3X['configure']['hawkWindow']['offsetX'] * c72 / c71; + c3Y['style']['width'] = c6Z + doh(0x10a); + c3Y['style']['height'] = c70 + doh(0x10b); + var c73 = document['querySelector']('#' + doo(0x83e) + '_' + c3U + doj(0x2af)); + if (c73) { + c73['style']['maxHeight'] = c3X['configure']['hawkWindow']['size']['y'] * 0.7 + doh(0x10c); + c73['style'][dol(0xfcc)] = c3X['configure'][dol(0xfcd)]['size']['x'] * 0.9 + doh(0x10d); + } + var c71 = Number(c3X['configure']['offset']['x']); + var c72 = Number(c3X['configure']['offset']['y']); + switch (c3X['configure']['offset']['corner']) { + case c44['LeftTop']: + c3Y['style']['left'] = c71 + doh(0x10e); + c3Y['style']['top'] = c72 + doh(0x10f); + break; + case c44['RightTop']: + c3Y['style']['right'] = c71 + doh(0x110); + c3Y['style']['top'] = c72 + doh(0x111); + break; + case c44['RightBottom']: + c3Y['style']['right'] = c71 + doh(0x112); + c3Y['style'][dol(0xfce)] = c72 + doh(0x113); + break; + case c44[dol(0xfcf)]: + c3Y['style'][dol(0xfd0)] = c71 + doh(0x114); + c3Y['style']['bottom'] = c72 + doh(0x115); + break; + default: + break; + } + } + var c76; + function c77() { + var c78 = { + 'id': c3U, + 'modelIds': c3X['configure']['modelId'], + 'camera': {}, + 'width': c3X['configure']['hawkWindow']['windowSize']['x'] / c3X[dol(0xfd1)]['hawkWindow']['devicePixelRatio'], + 'debugCamera': { + 'show': ![], + 'color': c3T['Color']['RED'], + 'updateOnChange': !![] + }, + 'clearColor': c3X['configure']['clearColor'], + 'customUserData': c3X['configure']['customUserData'], + 'passes': c3X['configure']['passes'] + }; + c3X['_viewportScreentshot']['add'](c78); + if (!c3X['configure']['floorScreenshotMap']) + c3X['configure']['floorScreenshotMap'] = new Map(); + c76 = c3X['_scene']['requestRenderMode']; + c3X['_API']['Public']['setSceneRenderState'](![]); + setTimeout(function() { + var c79 = c3X[dol(0xfd2)]['update']({ + 'id': c3U, + 'outputCanvas': c3V, + 'onBufferRender': function(c79) { + c3X['configure']['floorScreenshotMap']['set'](c3X['configure']['currentFloor'], c79); + c6X(c79); + c3X['_API']['viewer'][dol(0xfd3)]['requestRender'](); + c3X[dol(0xfd4)]['Public']['setSceneRenderState'](c76); + c3Y['style'][dol(0xfd5)] = 'b' + doo(0x83f) + 'k'; + } + }); + }, 0x12c); + } + function c7b(c7c) { + if (!c3T['defined'](c7c) || c7c['length'] == 0x0) { + return new Promise( (c7d, c7e) => { + c7d(undefined); + } + ); + } else { + var c7f = []; + for (var c7g = 0x0; c7g < c7c['length']; c7g++) { + var c7h = c7c[c7g]['modelId']; + var c7i = c7c[c7g]['jsonPath']; + c7f['push'](new Promise( (c7j, c7k) => { + if (!c3T['defined'](c7i) || c7i[dol(0xfd6)] == 0x0) { + c7j(undefined); + } else { + fetch(c7i, { + 'method': doh(0x116) + })['catch'](function(c7l) { + console['log']('Error:\x20' + c7l); + })['then'](function(c7m) { + return c7m['json'](); + })['then'](function(c7n) { + c7j({ + 'modelId': c7h, + 'json': c7n + }); + }); + } + } + )); + } + return c7f; + } + } + function c7o(c7p) { + c3X['configure'] = c3X['_API']['funcPublic']['deepCopy'](c43); + c7q(c3X['configure'], c7p); + } + function c7q(c7r, c7s) { + for (var c7t in c7s) + if (c7s['hasOwnProperty'](c7t)) { + if (!c7r['hasOwnProperty'](c7t)) + c7r[c7t] = {}; + if (Array['isArray'](c7s[c7t])) { + c7r[c7t] = []; + c7r[c7t] = c7r[c7t]['concat'](c7s[c7t]); + } else if (c7u(c7s[c7t])) { + c7r[c7t] = c7s[c7t]; + } else { + c7r[c7t] = c7q(c7r[c7t], c7s[c7t]); + } + } + return c7r; + } + function c7u(c7v) { + return typeof c7v === 's' + doo(0x840) + 'g' || typeof c7v === 'n' + doo(0x841) + 'r' || typeof c7v === 'b' + doo(0x842) + 'n' || typeof c7v === 'u' + doo(0x843) + 'd' || c7v === null; + } + var c7w = doj(0x2b0); + return c44; + }(window['Cesium'] || {}); + ;GLERoaming = function(c7x) { + var c7y = ![]; + var c7z = 0x0; + var c7A = undefined; + var c7B = { + 'roamingMode': 0x0, + 'lookFactor': 0x3, + 'moveRate': 0.5, + 'horizontalDistance': 0x1, + 'gravityRate': 9.8, + 'footerHeight': 1.5, + 'bRecordLocus': ![], + 'unitDistance': 0x1, + 'unitAngle': 0xa, + 'canCrossWall': ![], + 'canGravity': !![], + 'dampingEnabled': !![], + 'mouseEnabled': !![], + 'keyboardEnabled': !![], + 'objectsToExclude': [], + 'onIRStart': caK, + 'onIREnd': caL, + 'onIRSuspend': caM, + 'KeyValues': { + 'up': KEY_UP || 0x26, + 'down': KEY_DOWN || 0x28, + 'left': KEY_LEFT || 0x25, + 'right': KEY_RIGHT || 0x27, + 'throughWall': KEY_F || 0x46 + } + }; + var c7C = c7B; + var c7D = ![]; + var c7E = ![]; + var c7F = 0x0; + var c7G = 0x0; + var c7H = ![]; + var c7I = ![]; + var c7J = []; + var c7K = new c7x[(dol(0xfd7))](); + var c7L = new c7x['Cartesian2'](); + var c7M = 0x0; + var c7N = 0x0; + var c7O = { + 'moveForward': ![], + 'moveBackward': ![], + 'lookUp': ![], + 'lookDown': ![], + 'moveUp': ![], + 'moveDown': ![], + 'moveLeft': ![], + 'moveRight': ![], + 'crossHorizontal': ![], + 'rotatePitch': ![] + }; + var c7P = []; + var c7Q = ![]; + var c7R = ![]; + var c7S, c7T; + var c7U = new c7x['Cartesian3'](); + var c7V, c7W, c7X, c7Y; + var c7Z; + var c80; + var c81 = {}; + function c82(c83) { + this['_API'] = c83; + this['_viewer'] = c83['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + this['_globe'] = this['_viewer']['scene']['globe']; + this['_canvas']['onblur'] = caO; + this['_canvas']['onfocus'] = caP; + if (!c7x['defined'](c7V)) { + c7V = new c7x['Ray'](this['_camera']['position']['clone'](),this['_camera']['direction'][dol(0xfd8)]()); + } else { + c7V[dol(0xfd9)] = this['_camera']['position']['clone'](); + c7V['direction'] = this['_camera']['direction']['clone'](); + } + if (!c7x['defined'](c7W)) { + c7W = new c7x['Ray'](cbt(this['_camera'], c7C['footerHeight'] * 0.5),this['_camera']['direction']['clone']()); + } else { + c7W[dol(0xfda)] = cbt(this['_camera'], c7C['footerHeight'] * 0.5); + c7W['direction'] = this['_camera']['direction']['clone'](); + } + c7Z = new c7x['Camera'](this['_scene']); + c7Z['position'] = this['_camera']['position']['clone'](); + c7Z['direction'] = this['_camera']['direction'][dol(0xfdb)](); + c7Z['up'] = this['_camera']['up'][dol(0xfdc)](); + c7Z['frustum']['fov'] = this['_camera']['frustum'][dol(0xfdd)]; + c7Z['frustum']['near'] = this['_camera']['frustum']['near']; + c7Z['frustum'][dol(0xfde)] = this['_camera']['frustum']['far']; + c7Z[dol(0xfdf)]({ + 'orientation': { + 'heading': c7x['Math']['toRadians'](0x5a), + 'pitch': c7x['Math']['toRadians'](0x0), + 'roll': 0x0 + } + }); + if (!c7x['defined'](c7X)) { + c7X = new c7x['Ray'](this['_camera']['position']['clone'](),this['_camera']['direction']['clone']()); + } else { + c7X['origin'] = this['_camera']['position']['clone'](); + c7X['direction'] = c7Z['direction']['clone'](); + } + var c84 = c7x['Cartesian3']['negate'](c7x['Cartesian3']['UNIT_Z'], new c7x['Cartesian3']()); + if (!c7x['defined'](c7Y)) { + c7Y = new c7x['Ray'](this['_camera']['position']['clone'](),c84[dol(0xfe0)]()); + } else { + c7Y[dol(0xfe1)] = this['_camera'][dol(0xfe2)]['clone'](); + c7Y['direction'] = c84[dol(0xfe3)](); + } + c80 = this; + } + c82['RoamingMode'] = { + 'ImmersionRoaming': 0x0, + 'FlightRoaming': 0x1 + }; + c82[dol(0xfe4)]['isIRing'] = function() { + return c7D; + } + ; + function c85(c86) { + for (var c87 in c86) { + if (c86['hasOwnProperty'](c87)) + c7C[c87] = c86[c87]; + } + if (c7x['defined'](c86['objectsToExclude']) && Array['isArray'](c86['objectsToExclude'])) + c7P = []['concat'](c86['objectsToExclude']); + if (c7D) { + c80['_API']['Camera']['setThroughWallState'](c7C['canCrossWall']); + } + caR(c7C['KeyValues']); + } + function c88(c89) { + if (c89) { + c7A = c80['_API']['Camera']['getThroughWallState'](); + c80['_API']['Camera']['setThroughWallState'](c7C['canCrossWall']); + } else { + c80['_API']['Camera']['setThroughWallState'](c7A); + } + } + c82[dol(0xfe5)]['setConfig'] = c85; + c82['prototype']['setObjectsToExclude'] = function(c8a) { + if (c7x['defined'](c8a) && Array['isArray'](c8a) && c8a['length'] > 0x0) { + for (let c8b = 0x0; c8b < c8a['length']; c8b++) { + var c8c = c8a[c8b]; + c7P['push'](c8c); + } + } + } + ; + c82[dol(0xfe6)]['start'] = function() { + cba(); + c80['_API']['Model']['setHandleState'](!![]); + c80[dol(0xfe7)]['Public'][dol(0xfe8)]('L' + doo(0x844) + 'N'); + c80['_API']['Public']['clearHandler']('L' + doo(0x845) + 'P'); + c80['_API']['Public']['clearHandler']('M' + doo(0x846) + 'N'); + c80['_API']['Public']['clearHandler']('M' + doo(0x847) + 'P'); + c80['_API']['Public'][dol(0xfe9)]('W' + doo(0x848) + 'L'); + c80['_API']['Public']['clearHandler']('M' + doo(0x849) + 'E'); + if (caq) { + var c8d = c80[dol(0xfea)]['funcPublic']['cartesian3ToCartographic'](car, c80[dol(0xfeb)]); + if (!c7x['defined'](c8d)) { + caq = ![]; + this['start'](); + return; + } + var c8e = c7x[dol(0xfec)]['fromRadians'](c8d['longitude'], c8d['latitude'], c8d['height'] + c7C['footerHeight'] + 0.5); + c80['_camera']['flyTo']({ + 'destination': c8e, + 'maximumHeight': c8d['height'] + c7C['footerHeight'] + 0.5, + 'orientation': { + 'heading': c80['_camera']['heading'], + 'pitch': c7x['Math']['toRadians'](0x0), + 'roll': 0x0 + }, + 'complete': function() { + c7U = c7x['Cartesian3']['clone'](c80['_camera']['up']); + c7O['moveBackward'] = !![]; + c7R = !![]; + c7Q = !![]; + c7F = new Date()[dol(0xfed)](); + var c8f = new c7x['Cartesian3'](); + c80['_camera']['position']['clone'](c8f); + c7J['push']({ + 'position': c8f, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': 0x0 + }); + } + }); + } else { + ca1(); + } + cbg(![]); + c88(!![]); + caG(); + c8l(); + c7D = !![]; + c7C['onIRStart'](); + } + ; + function c8g() { + if (!c7D) { + return; + } + c7D = ![]; + c7Q = ![]; + c7R = ![]; + caq = ![]; + c7P['length'] = 0x0; + cbg(!![]); + c80['_API']['Camera'][dol(0xfee)](c7A); + c7S = c80[dol(0xfef)]['entities']['getById']('I' + doo(0x84a) + 'd'); + if (c7x['defined'](c7S)) { + c80[dol(0xff0)]['entities']['remove'](c7S); + } + c7T = c80['_viewer']['entities']['getById']('I' + doo(0x84b) + 'e'); + if (c7x['defined'](c7T)) { + c80['_viewer']['entities']['remove'](c7T); + } + c8k(); + c80[dol(0xff1)]['clock']['onTick']['removeEventListener'](c8t); + if (c7x[dol(0xff2)](c81['clock'])) { + c80['_viewer']['clock']['canAnimate'] = c81['clock']['canAnimate']; + c80['_viewer']['clock'][dol(0xff3)] = c81['clock']['shouldAnimate']; + } + c80['_scene']['screenSpaceCameraController']['enableInputs'] = !![]; + c7C['onIREnd']({ + 'records': JSON['stringify'](c7J) + }); + c7F = 0x0; + c7G = 0x0; + c88(![]); + } + c82['prototype']['stop'] = c8g; + var c8h = 0x0; + function c8i(c8j) { + c7E = c7x['defined'](c8j) ? c8j : !c7E; + c7D = !c7E; + if (c7E) { + cbg(!![]); + c8k(); + c80['_viewer']['clock']['onTick']['removeEventListener'](c8t); + if (c7x['defined'](c81['clock'])) { + c80['_viewer']['clock']['canAnimate'] = c81['clock']['canAnimate']; + c80['_viewer']['clock']['shouldAnimate'] = c81['clock'][dol(0xff4)]; + } + c80['_scene']['screenSpaceCameraController']['enableInputs'] = !![]; + c88(![]); + c8h = new Date()['getTime'](); + } else { + c7G += new Date()['getTime']() - c8h; + cbg(![]); + c8l(); + c80['_viewer']['clock']['onTick']['addEventListener'](c8t); + if (c7x['defined'](c81['clock'])) { + c80['_viewer'][dol(0xff5)]['canAnimate'] = ![]; + c80['_viewer']['clock']['shouldAnimate'] = ![]; + } + c80['_scene']['screenSpaceCameraController']['enableInputs'] = ![]; + c88(!![]); + } + c7C['onIRSuspend'](c7E); + } + c82['prototype']['suspend'] = c8i; + function c8k() { + c80[dol(0xff6)]['Public']['clearHandler']('L' + doo(0x84c) + 'N'); + c80['_API']['Public']['clearHandler']('L' + doo(0x84d) + 'P'); + c80['_API']['Public']['clearHandler']('M' + doo(0x84e) + 'N'); + c80['_API']['Public']['clearHandler']('M' + doo(0x84f) + 'P'); + c80['_API'][dol(0xff7)][dol(0xff8)]('W' + doo(0x850) + 'L'); + c80['_API'][dol(0xff9)]['clearHandler']('M' + doo(0x851) + 'E'); + document['removeEventListener']('k' + doo(0x852) + 'n', caV, ![]); + document['removeEventListener']('k' + doo(0x853) + 'p', caZ, ![]); + } + function c8l() { + c8k(); + c80['_canvas']['setAttribute']('t' + doo(0x854) + 'x', '0'); + c80['_canvas']['onclick'] = function() { + c80['_canvas']['focus'](); + } + ; + c80['_scene']['screenSpaceCameraController']['enableInputs'] = ![]; + c80['_API']['Public']['event']('L' + doo(0x855) + 'N', function(c8m) { + if (!c7C['mouseEnabled']) + return; + c7H = !![]; + c8m['position']['clone'](c7K); + c8m['position'][dol(0xffa)](c7L); + }); + c80['_API']['Public']['event']('L' + doo(0x856) + 'P', function(c8n) { + if (!c7C['mouseEnabled']) + return; + c7x['Cartesian2']['multiplyByScalar'](c7K, 0x0, c7K); + c7x['Cartesian2']['multiplyByScalar'](c7L, 0x0, c7L); + c7M = 0x0; + c7N = 0x0; + c7H = ![]; + }); + c80['_API']['Public']['event']('M' + doo(0x857) + 'N', function(c8o) { + if (!c7C[dol(0xffb)]) + return; + c7I = !![]; + c8o[dol(0xffc)]['clone'](c7K); + c8o[dol(0xffd)]['clone'](c7L); + }); + c80['_API']['Public']['event']('M' + doo(0x858) + 'P', function(c8p) { + if (!c7C['mouseEnabled']) + return; + c7I = ![]; + c8p['position']['clone'](c7K); + c8p['position']['clone'](c7L); + }); + c80['_API']['Public']['event']('M' + doo(0x859) + 'E', function(c8q) { + if (!c7C[dol(0xffe)]) + return; + if (c7H || c7I) { + c8q['endPosition']['clone'](c7L); + } + }); + c80['_API']['Public']['event']('W' + doo(0x85a) + 'L', function(c8r) { + if (!c7C['mouseEnabled']) + return; + c7N = c8r; + }); + document['addEventListener']('k' + doo(0x85b) + 'n', caV, ![]); + document['addEventListener']('k' + doo(0x85c) + 'p', caZ, ![]); + c81['clock'] = { + 'canAnimate': c80['_viewer']['clock']['canAnimate'], + 'shouldAnimate': c80['_viewer']['clock']['shouldAnimate'] + }; + c80['_viewer']['clock']['canAnimate'] = ![]; + c80['_viewer']['clock']['shouldAnimate'] = ![]; + c80['_viewer']['clock']['onTick']['addEventListener'](c8t); + } + c82['prototype']['repairEvents'] = c8l; + var c8s = 0x0; + function c8t(c8u) { + if (!c7Q) + return; + var c8v = c80['_camera']['heading']; + var c8w = c80['_camera']['pitch']; + var c8x = c80[dol(0xfff)]['roll']; + var c8y = c7M = c7L['x'] - c7K['x'] || 0x0; + var c8z = -(c7L['y'] - c7K['y']) || 0x0; + var c8A = new c7x['Cartesian3']() + , c8B = new c7x['Cartesian3']() + , c8C = new c7x['Cartesian3'](); + var c8D = 0x0 + , c8E = 0x0; + function c8F(c8y, c8z) { + c8D = c8z * 0.001 * c7C['moveRate']; + c8E = c8y * 0.001 * c7C['moveRate']; + c7X = cbc(c8E >= 0x0, c7X); + c7Y['origin'] = c80['_camera']['position']['clone'](); + var c8I = c80['_camera']['position']['clone'](); + c7x['Cartesian3']['normalize'](c8I, c8I); + if (c8D < 0x0) + c7x[dol(0x1000)]['negate'](c8I, c8I); + c7Y['direction'] = c8I; + var c8J = c80['_scene']['pickFromRay'](c7X, c7P, 0.5); + var c8K = c80['_scene']['pickFromRay'](c7Y, c7P, 0.5); + if (c7x[dol(0x1001)](c8J) && c7x['defined'](c8J['position'])) { + c8A = c8J[dol(0x1002)]['clone'](); + } + if (c7x['defined'](c8K) && c7x['defined'](c8K['position'])) { + c8C = c8K['position']['clone'](); + } + var c8L = new c7x['Cartesian3'](); + c7x['Cartesian3']['negate'](c7X['direction'], c8L); + var c8M = new c7x['Ray'](c7X['origin'],c8L); + c8M = cbc(c8E >= 0x0, c8M); + var c8N = c80['_scene']['pickFromRay'](c8M, c7P, 0.5); + if (c7x['defined'](c8N) && c7x['defined'](c8N['position'])) { + c8B = c8N['position']['clone'](); + } + } + c8F(c8y, c8z); + if (c7O['m' + doo(0x85d) + 't'] || c7O['m' + doo(0x85e) + 't']) { + var c8O = 0x12c * (c7C['roamingMode'] === c82['RoamingMode']['ImmersionRoaming'] ? 0.001 : 0.01) * c7C['moveRate']; + if (c7O['m' + doo(0x85f) + 't']) { + var c8P = 0x0; + c8P = c7x['Cartesian3']['distance'](c80['_camera']['position']['clone'](), c8B); + if (c8P > c7C['horizontalDistance'] + c8E || c7O['c' + doo(0x860) + 'l']) + c80['_camera']['moveLeft'](c8O); + } + if (c7O['m' + doo(0x861) + 't']) { + var c8P = 0x0; + c8P = c7x['Cartesian3']['distance'](c80['_camera']['position'][dol(0x1003)](), c8A); + if (c8P > c7C['horizontalDistance'] + c8E || c7O['c' + doo(0x862) + 'l']) + c80['_camera']['moveRight'](c8O); + } + } + if (c7O['m' + doo(0x863) + 'p'] || c7O['m' + doo(0x864) + 'n']) { + var c8O = 0x12c * (c7C[dol(0x1004)] === c82['RoamingMode']['ImmersionRoaming'] ? 0.001 : 0.01) * c7C['moveRate'] * 0.3; + if (c7O['m' + doo(0x865) + 'p']) + c80['_camera']['moveUp'](c8O); + if (c7O['m' + doo(0x866) + 'n']) + c80['_camera']['moveDown'](c8O); + return; + } + if (c7I) { + if (c7C['roamingMode'] == c82['RoamingMode']['ImmersionRoaming']) { + var c8P = 0x0 + , c8T = 0x0; + c8P = c7x['Cartesian3']['distance'](c80['_camera']['position']['clone'](), c8A); + c8T = c7x['Cartesian3']['distance'](c80['_camera']['position']['clone'](), c8C); + if (c8P > c7C['horizontalDistance'] + c8E || c7O['c' + doo(0x867) + 'l']) + c80['_camera']['moveRight'](c8E); + if (c8T > c7C['footerHeight'] + c8D || c7O['c' + doo(0x868) + 'l']) + c80['_camera']['moveUp'](c8D); + return; + } else if (c7C['roamingMode'] == c82['RoamingMode']['FlightRoaming']) {} + } + var c8U = c7C['roamingMode'] === c82['RoamingMode']['ImmersionRoaming'] ? 0x32 : 0x14 + , c8V = c7C[dol(0x1005)] === c82['RoamingMode']['ImmersionRoaming'] ? 0x1 : 0x14; + if (Math['abs'](c8z) < c8V) + c8z = 0x0; + else + c8z = (Math['abs'](c8z) - c8V) * (c8z > 0x0 ? 0x1 : -0x1); + var c8W = 0x0 + , c8X = 0x0; + if (!c7O['r' + doo(0x869) + 't'] && !c7O['r' + doo(0x86a) + 't']) { + if (Math['abs'](c8y) < c8U) + c8y = 0x0; + else + c8y = (Math[dol(0x1006)](c8y) - c8U) * (c8y > 0x0 ? 0x1 : -0x1); + c8W = c8y * 0.001 * c7x['Math']['toRadians'](0x1) * c7C[dol(0x1007)]; + c8v += c8W; + } else { + c8W = c7x['Math']['toRadians'](c7C[dol(0x1008)] === GLERoaming['RoamingMode']['FlightRoaming'] ? 0.5 : 0x1) * c7C['lookFactor']; + if (c7O['r' + doo(0x86b) + 't']) { + c8v -= c8W; + } else if (c7O['r' + doo(0x86c) + 't']) { + c8v += c8W; + } + } + if (c7O['l' + doo(0x86d) + 'p']) + c7N = 0x14; + if (c7O['l' + doo(0x86e) + 'n']) + c7N = -0x14; + if (c7C['roamingMode'] === GLERoaming['RoamingMode']['ImmersionRoaming']) { + c8X = c7N * 0.01 * c7x['Math']['toRadians'](0x1) * c7C['lookFactor']; + c8w += c8X; + } else if (c7C['roamingMode'] === GLERoaming[dol(0x1009)]['FlightRoaming']) { + if (!c7O['m' + doo(0x86f) + 'd'] && !c7O['m' + doo(0x870) + 'd']) { + c8X = c8z * 0.001 * c7x['Math']['toRadians'](0x1) * c7C['lookFactor']; + c8w += c8X; + } else { + c8X = c7x['Math']['toRadians'](0.5); + if (c7O['m' + doo(0x871) + 'd']) { + c8w -= c8X; + if (c7R) { + c7R = ![]; + c7O['m' + doo(0x872) + 'd'] = ![]; + } + } else if (c7O['m' + doo(0x873) + 'd']) { + c8w += c8X; + } + } + } + c8w = Math[dol(0x100a)](c8w, c7x['Math']['toRadians'](-0x50)); + c8w = Math[dol(0x100b)](c8w, c7x['Math']['toRadians'](0x50)); + if (!isNaN(c8v) && !isNaN(c8w) && !isNaN(c8x)) + c80['_camera']['setView']({ + 'destination': c80['_camera']['position']['clone'](), + 'orientation': { + 'heading': c8v, + 'pitch': c8w, + 'roll': c8x + } + }); + var c8Y = c80['_camera']['direction']['clone'](); + var c8O = 0x0; + var c90 = new c7x['Cartesian3'](); + var c91 = new c7x['Cartesian3'](); + if (c7C['roamingMode'] === c82['RoamingMode'][dol(0x100c)]) { + cbx(c80[dol(0x100d)], c8Y); + if (c7O['m' + doo(0x874) + 'd'] || c7O['m' + doo(0x875) + 'd']) { + if (c7O['m' + doo(0x876) + 'd']) { + c8z = 0x12c; + } else if (c7O['m' + doo(0x877) + 'd']) { + if (c7R) { + c7O['m' + doo(0x878) + 'd'] = ![]; + c7R = ![]; + } else { + c8z = -0x12c; + } + } + } + c8O = c8z * (c7C['roamingMode'] === c82['RoamingMode']['ImmersionRoaming'] ? 0.001 : 0.01) * c7C['moveRate']; + } else if (c7C['roamingMode'] === GLERoaming['RoamingMode']['FlightRoaming']) { + if (c7H || c7I) + c8O = 0.05 * c7C['moveRate']; + } + function c92() { + c7V['origin'] = c80['_camera']['position']['clone'](); + var c93 = new c7x['Cartesian3'](); + c7x['Cartesian3']['negate'](c8Y, c93); + c7V['direction'] = c8z > 0x0 ? c8Y['clone']() : c93; + var c94 = c80[dol(0x100e)]['pickFromRay'](c7V, c7P, 0.5); + c7W['origin'] = cbt(c80['_camera'], c7C['footerHeight'] * 0.25); + var c95 = new c7x['Cartesian3'](); + c7x['Cartesian3']['negate'](c8Y, c95); + c7W[dol(0x100f)] = c8z > 0x0 ? c8Y['clone']() : c95; + var c96 = c80['_scene']['pickFromRay'](c7W, c7P, 0.5); + if (c7x['defined'](c94) && c7x['defined'](c94['position'])) { + c90 = c94['position']['clone'](); + } + if (c7x[dol(0x1010)](c96) && c7x['defined'](c96['position'])) { + c91 = c96['position']['clone'](); + } + } + if (!c7O['c' + doo(0x879) + 'l'] && !c7C['canCrossWall']) { + c92(); + var c97 = 0x0; + if (c7C['dampingEnabled'] && (!c7x['Cartesian3']['equals'](c90, c7x['Cartesian3']['ZERO']) || !c7x['Cartesian3']['equals'](c91, c7x['Cartesian3']['ZERO']))) { + var c98 = c7x[dol(0x1011)]['distance'](c80['_camera']['position'], c90); + var c99 = c7x['Cartesian3']['distance'](c80['_camera']['position'], c91); + c97 = c98 - c99; + if (c7C['roamingMode'] === c82['RoamingMode']['FlightRoaming']) { + if (c98 <= c7C['horizontalDistance'] * 0x1) { + c8O *= 0x0; + } else if (c98 <= c7C['horizontalDistance'] + c8O) { + c8O *= 0.1; + } else if (c98 <= c7C['horizontalDistance'] + c8O * 0x3) { + c8O *= 0.5; + } + } else { + if (c8O > c98 * 0x2) + c8O = c98 * 0.5; + if (c98 <= c7C['horizontalDistance'] * 0x1) { + c8O = 0x0; + } else if (c98 <= c7C['horizontalDistance'] * 1.1) { + c8O *= 0.1; + } else if (c98 <= c7C['horizontalDistance'] * 0x2) { + c8O *= 0.5; + } + } + } + } + c8O = Math['min'](c8O, c7C['roamingMode'] === c82['RoamingMode']['ImmersionRoaming'] ? 0x2 : 0x32); + if (c8O != 0x0) + c80[dol(0x1012)]['move'](c8Y, c8O); + var c9a = new c7x['Cartesian3'](); + var c9b = new c7x['Cartesian3'](); + var c9c = new c7x['Cartesian3'](); + var c9d = c7C['gravityRate']; + var c9e = 0x0; + var c9f = 0x0; + function c9g() { + c7x['Cartesian3']['negate'](c80['_camera']['position']['clone'](), c9b); + c7x['Cartesian3']['normalize'](c9b, c9c); + c7Y['origin'] = c80['_camera']['position']['clone'](); + c7Y['direction'] = c9c; + var c9h = c80['_scene'][dol(0x1013)](c7Y, c7P, 0x1); + if (c7x['defined'](c9h)) { + if (c7x[dol(0x1014)](c9h['position'])) { + c9a = c9h['position']['clone'](); + } else if (c7x['defined'](c9h[dol(0x1015)])) {} + } + if (c7y) { + var c9i = c80['_globe']['pick'](c7Y, c80['_scene']); + if (c7x['defined'](c9i) && c9i instanceof c7x['Cartesian3']) { + var c9j = -Infinity; + var c9k = c7x['Cartesian3']['distance'](c9i, new c7x['Cartesian3']()); + if (c7x['defined'](c9h) && c7x['defined'](c9h[dol(0x1016)])) { + c9j = c7x['Cartesian3']['distance'](c9h['position'], new c7x['Cartesian3']()); + } + if (c9j < c9k) { + pointVerticalCartographic = c80['_API']['funcPublic']['cartesian3ToCartographic'](c9i, c80[dol(0x1017)]); + c9a = c9i; + } + } + } + } + if (c7C['roamingMode'] === c82['RoamingMode']['ImmersionRoaming']) { + c9g(); + if (c7C['canGravity'] && !c7x['Cartesian3']['equals'](c9a, c7x[dol(0x1018)]['ZERO'])) { + c9e = c7x['Cartesian3'][dol(0x1019)](c80['_camera']['position'], c9a); + c9e -= c7C['footerHeight']; + var c9l = 0x1; + if (c9e <= 0x0) + c9l *= 0x0; + if (c9e > 0.2 && c9l > 0x0) { + if (c8s !== 0x0) { + var c9m = (new Date()['getTime']() - c8s) * 0.001; + var c9n = c9d * c9m; + c9f = c9n * 0.017 * c9l; + console[dol(0x101a)](0x1, c9f); + if (c9e - c9f < 0x0) { + c9f = c9e; + } + } else if (c8s === 0x0) { + c8s = new Date()[dol(0x101b)](); + } + } else { + c8s = 0x0; + if (c9e < -0.2) { + c9f = c9e * 0.2; + } else {} + } + c80['_camera']['move'](c9c, c9f); + } else {} + } else {} + if (c7Q && c7C['bRecordLocus']) { + var c9o = new c7x['Cartesian3'](); + c80['_camera']['position']['clone'](c9o); + if (c7J[dol(0x101c)] > 0x0) { + var c9p = c7x['Cartesian3']['distanceSquared'](c7J[c7J['length'] - 0x1]['position'], c9o); + var c9q = Math['abs'](c7J[c7J['length'] - 0x1]['heading'] - c80['_camera']['heading']); + var c9r = Math['abs'](c7J[c7J[dol(0x101d)] - 0x1][dol(0x101e)] - c80['_camera']['pitch']); + var c9s = ![]; + if (c7J['length'] >= 0x2) { + var c9t = function(q, c9v) { + var c9w = q['x'] - c9v['x']; + var c9x = q['y'] - c9v['y']; + var c9y = q['z'] - c9v['z']; + return Math['sqrt'](c9w * c9w + c9x * c9x + c9y * c9y); + }; + var c9z = function(q, c9B, c9C) { + var c9D = c9t(q, c9B); + var c9E = c9t(c9B, c9C); + var c9F = c9t(q, c9C); + var c9G = 0.5 * (c9D + c9E + c9F); + if (c9G * (c9G - c9D) * (c9G - c9E) * (c9G - c9F) > 0x1) + return ![]; + return !![]; + }; + c9s = c9z(c7J[c7J['length'] - 0x2]['position'], c7J[c7J['length'] - 0x1]['position'], c9o); + } + if (c9p >= Math['pow'](c7C['unitDistance'], 0x2) || c9q > c7x[dol(0x101f)]['toRadians'](c7C['unitAngle']) || c9r > c7x['Math']['toRadians'](c7C['unitAngle'])) { + if (c9q < c7x['Math']['toRadians'](c7C['unitAngle']) && c9r < c7x['Math']['toRadians'](c7C['unitAngle']) && c9s && !cb3) { + c7J['pop'](); + } + c7J['push']({ + 'position': c9o, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': new Date()['getTime']() - c7F - c7G + }); + } + } else { + c7J['push']({ + 'position': c9o, + 'heading': c80['_camera']['heading'], + 'pitch': c80[dol(0x1020)]['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': new Date()['getTime']() - c7F - c7G + }); + } + } + if (c7C['roamingMode'] == c82['RoamingMode']['ImmersionRoaming']) {} else if (c7C['roamingMode'] == c82['RoamingMode']['FlightRoaming']) {} + c7M = 0x0; + c7N = 0x0; + } + c82['prototype']['insertKeyFrame'] = function(c9H) { + if (!c7D) { + return; + } + if (c7C['bRecordLocus']) { + var c9I = new c7x['Cartesian3'](); + c80['_camera']['position']['clone'](c9I); + var c9J = c7J['length']; + var c9K = { + 'keyIndex': c9J, + 'position': c9I, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'keyFrame': !![], + 'timeStamp': new Date()['getTime']() - c7F - c7G + }; + c7J['push'](c9K); + if (typeof c9H === 'f' + doo(0x87a) + 'n') + c9H(c9J); + } + } + ; + c82['prototype']['deleteKeyFrame'] = function(c9L) { + if (c7J && c7J['length'] > 0x0) { + for (let c9M = 0x0; c9M < c7J['length']; c9M++) { + var c9N = c7J[c9M]; + if (c9N['keyFrame'] && c9N['keyIndex'] === c9L) { + c7J['splice'](c9M, 0x1); + return; + } + } + } + } + ; + var c9O = []; + c82['prototype']['play'] = function(c9P) { + if (c9P && c9P['records']) { + c9T = 0x0; + c9U = ![]; + c9V = ![]; + c7J['splice'](0x0, c9O['length']); + c7J = JSON['parse'](c9P[dol(0x1021)]); + } + c9O = []; + if (c7J && c7J['length'] > 0x0) { + for (let c9Q = 0x0; c9Q < c7J['length']; c9Q++) { + var c9R = c7J[c9Q]; + c9O[dol(0x1022)]({ + 'destination': c9R['position'], + 'heading': c9R['heading'], + 'pitch': c9R['pitch'], + 'roll': c9R['roll'], + 'timeStamp': c9R['timeStamp'], + 'keyFrame': c9R['keyFrame'], + 'isStepPlay': c9P['isStepPlay'], + 'isLoopPlay': c9P['isLoopPlay'], + 'keyFrameFun': function(c9S) { + if (c7x['defined'](c9P['keyFrameFun'])) { + c9P['keyFrameFun'](c9S); + } + }, + 'duration': c7x['defined'](c9R['timeStamp']) ? c9Q == 0x0 ? 0x0 : (c9R[dol(0x1023)] - c7J[c9Q - 0x1][dol(0x1024)]) * 0.001 / (c9P['duration'] ? c9P['duration'] : 0x1) : c7x['defined'](c9P['duration']) ? c9P['duration'] : 0x1, + 'complete': function() { + if (c7x['defined'](c9P['complete'])) { + c9P['complete'](); + } + }, + 'cancel': function() { + if (c7x['defined'](c9P['cancel'])) { + c9P['cancel'](); + } + }, + 'endTransform': undefined, + 'maximumHeight': undefined, + 'convert': ![], + 'easingFunction': c7x['EasingFunction']['LINEAR_NONE'] + }); + } + c9W(0x0); + } + } + ; + c82['prototype'][dol(0x1025)] = function() { + c9V = !![]; + } + ; + c82['prototype']['continue'] = function() { + c9V = ![]; + c9W(); + } + ; + var c9T = 0x0; + var c9U = ![]; + var c9V = ![]; + function c9W(c9X) { + if (c9V) + return; + if (c9X != 0x0 && !c9X) { + if (c9T) { + c9X = ++c9T; + } + } + if (c9U) { + if (c9O && c9O['length'] > 0x0) { + if (c9O[c9X]['cancel']) { + c9O[c9X]['cancel'](); + } + c9O['splice'](0x0, c9O[dol(0x1026)]); + } + c9T = 0x0; + c9U = ![]; + c9V = ![]; + return; + } + if (c9X <= c9O['length'] - 0x1) { + var c9Y = c9O[c9X]['destination']; + var c9Z = c80['_API']['Public']['cartesian3ToRadians']([c9Y['x'], c9Y['y'], c9Y['z']]); + var ca0 = c9Z[0x2]; + c80['_camera']['flyTo']({ + 'destination': c9O[c9X]['destination'], + 'orientation': { + 'heading': c9O[c9X]['heading'], + 'pitch': c9O[c9X]['pitch'], + 'roll': c9O[c9X]['roll'] + }, + 'duration': c9O[c9X]['duration'], + 'easingFunction': c9O[c9X]['easingFunction'], + 'maximumHeight': ca0, + 'complete': function() { + c9T = c9X; + if (c9O[c9X]['keyFrame']) { + if (c9O[c9X]['keyFrameFun']) { + c9O[c9X][dol(0x1027)](c9X); + } + if (c9O[c9X]['isStepPlay']) { + return; + } + } + if (c9X >= c9O['length'] - 0x1) { + if (c9O[c9X]['complete']) { + c9O[c9X]['complete'](); + } + if (c9O[c9X]['isLoopPlay']) { + c9W(0x0); + } + } else + c9W(++c9X); + }, + 'cancel': function() { + if (c9O[c9X]['cancel']) { + c9O[c9X]['cancel'](); + } + } + }); + } + } + c82['prototype']['doPlay'] = c9W; + c82['prototype']['playCancle'] = function() { + c9U = !![]; + } + ; + function ca1() { + c7J['splice'](0x0, c7J['length']); + if (c7C['roamingMode'] !== c82['RoamingMode']['ImmersionRoaming']) { + c7O['moveBackward'] = !![]; + c7R = !![]; + c7U = c7x['Cartesian3']['clone'](c80['_camera']['up']); + c7Q = !![]; + return; + } + var ca2 = c80['_camera']['position']; + var ca3 = c80['_API']['Model']['getModelsCenter'](); + if (ca3) { + ca2 = ca2['minpos']; + } + c7S = c80['_viewer']['entities']['getById']('I' + doo(0x87b) + 'd'); + if (!c7x['defined'](c7S)) { + c7S = c80['_viewer'][dol(0x1028)]['add']({ + 'position': ca2, + 'id': 'I' + doo(0x87c) + 'd', + 'ellipse': { + 'show': ![], + 'semiMinorAxis': 0xc350, + 'semiMajorAxis': 0xc350, + 'material': c80['_viewer']['scene']['backgroundColor']['withAlpha'](0.1) + } + }); + } + c7y = !(c80['_viewer']['terrainProvider']instanceof c7x['EllipsoidTerrainProvider']); + if (c7y) { + c80['_API']['funcPublic']['getTerrainHeight'](ca2, c80['_viewer'], function(ca4) { + c7z = ca4; + ca5(); + }); + } else { + ca5(); + } + } + function ca5() { + var ca6 = c80['_camera']['position']; + var ca7 = c80['_camera']['heading']; + c7Y['origin'] = ca6['clone'](); + var ca8 = new c7x['Cartesian3'](); + c7x['Cartesian3']['negate'](ca6['clone'](), ca8); + var ca9 = new c7x['Cartesian3'](); + c7x['Cartesian3']['normalize'](ca8, ca9); + c7Y['direction'] = ca9; + var caa = c80['_scene']['pickFromRay'](c7Y, c7P, 0x1); + var cab = c80['_scene']['drillPickFromRay'](c7Y, 0x5, c7P, 0x1); + var cac = undefined; + if (c7x['defined'](caa) && c7x['defined'](caa['position'])) { + cac = caa['position']['clone'](); + } else if (c7x['defined'](cab) && cab['length'] > 0x0 && c7x['defined'](cab[0x0]['position'])) { + cac = cab[0x0]['position']['clone'](); + } + if (c7y) { + var cad = c80['_globe'][dol(0x1029)](c7Y, _scene); + if (c7x['defined'](cad) && cad instanceof c7x['Cartesian3']) { + var cae = c7x['Cartesian3'][dol(0x102a)](cac, new c7x[(dol(0x102b))]()); + var caf = c7x['Cartesian3']['distance'](cad, new c7x['Cartesian3']()); + if (cae < caf) { + cac = cad; + } + } + } + var cag = ca6; + var cah = 0x0; + if (c7x['defined'](cac)) { + var cai = c80['_API'][dol(0x102c)]['cartesian3ToCartographic'](cac, c80[dol(0x102d)]); + cah = cai['height'] < 0x0 ? c7C['footerHeight'] : cai[dol(0x102e)] + c7C['footerHeight']; + cag = c7x['Cartesian3']['fromRadians'](cai[dol(0x102f)], cai['latitude'], cah); + } + cas(0x2, cag); + c80['_camera']['flyTo']({ + 'destination': cag, + 'orientation': { + 'heading': ca7, + 'pitch': c7x[dol(0x1030)]['toRadians'](0x0), + 'roll': 0x0 + }, + 'complete': function() { + c7O['moveBackward'] = !![]; + c7R = !![]; + c7U = c7x['Cartesian3'][dol(0x1031)](c80['_camera']['up']); + c7Q = !![]; + c7F = new Date()['getTime'](); + var caj = new c7x['Cartesian3'](); + c80['_camera']['position']['clone'](caj); + c7J['push']({ + 'position': caj, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': 0x0 + }); + } + }); + } + c82['prototype']['resetCamera'] = function() { + var cak = c80['_camera']['position']; + var cal = c80['_camera']['heading']; + if (c80['_API']) { + var cam = c80['_API']['Model']['getModelsCenter'](); + if (cam) { + var can = new c7x['Camera'](c80['_scene']); + can[dol(0x1032)] = c80['_camera']['position']['clone'](); + can['direction'] = c80['_camera'][dol(0x1033)]['clone'](); + can['up'] = c80['_camera']['up']['clone'](); + can['frustum']['fov'] = c80['_camera']['frustum']['fov']; + can['frustum'][dol(0x1034)] = c80['_camera']['frustum']['near']; + can['frustum'][dol(0x1035)] = c80['_camera']['frustum']['far']; + can['setView']({ + 'orientation': { + 'heading': c7x['Math']['toRadians'](0x0), + 'pitch': c7x['Math']['toRadians'](0x0), + 'roll': 0x0 + } + }); + var cao = can[dol(0x1036)]; + var cap = new c7x['Cartesian3'](); + cap = c7x['Cartesian3']['subtract'](cam['center'], cak, cap); + cal = c7x['Cartesian3']['angleBetween'](cao, cap); + } + } + c80['_camera']['flyTo']({ + 'destination': cak, + 'orientation': { + 'heading': cal, + 'pitch': c7x['Math']['toRadians'](0x0), + 'roll': 0x0 + } + }); + } + ; + var caq = ![]; + var car = new c7x[(dol(0x1037))](); + function cas(cat, cau) { + if (!c7x['defined'](cau)) { + return; + } + if (cat == 0x0) { + var cav = new c7x['Cartesian2'](); + if (Array['isArray'](cau) && cau['length'] === 0x2) { + cav = new c7x['Cartesian2'](cau[0x0],cau[0x1]); + } else if (cau instanceof c7x[dol(0x1038)]) { + cau['clone'](cav); + } + var caw = c80[dol(0x1039)]['funcPublic']['pickPosition'](cav, c80['_viewer']); + if (c7x['defined'](caw)) { + caw['position']['clone'](car); + } + } else if (cat == 0x1) { + var cav = new c7x['Cartesian3'](); + if (Array['isArray'](cau) && cau['length'] == 0x3) { + cav = c7x['Cartesian3']['fromRadiansArrayHeights'](cau)[0x0]; + } else if (cau instanceof c7x['Cartesian3']) { + cau['clone'](cav); + } + cav['clone'](car); + } else if (cat == 0x2) { + var cav = new c7x['Cartesian3'](); + if (Array[dol(0x103a)](cau) && cau['length'] == 0x3) { + cav = c7x['Cartesian3']['fromArray'](cau); + } else if (cau instanceof c7x['Cartesian3']) { + cau['clone'](cav); + } + cav['clone'](car); + } else { + throw doj(0x2b1); + } + c7T = c80['_viewer']['entities'][dol(0x103b)]('I' + doo(0x87d) + 'e'); + if (c7x['defined'](c7T)) { + c80['_viewer'][dol(0x103c)]['remove'](c7T); + } + c7T = c80['_viewer']['entities']['add']({ + 'position': car, + 'id': 'I' + doo(0x87e) + 'e', + 'ellipse': { + 'show': ![], + 'semiMinorAxis': 0x1, + 'semiMajorAxis': 0x1, + 'material': c7x['Color']['RED']['withAlpha'](0.1) + } + }); + var cav = c80['_camera']['position']; + var caA = c80['_API']['Model']['getModelsCenter'](); + if (caA) { + cav = cav['minpos']; + } + c7S = c80['_viewer']['entities']['getById']('I' + doo(0x87f) + 'd'); + if (!c7x['defined'](c7S)) { + c7S = c80['_viewer']['entities'][dol(0x103d)]({ + 'position': cav, + 'id': 'I' + doo(0x880) + 'd', + 'ellipse': { + 'show': ![], + 'semiMinorAxis': 0xc350, + 'semiMajorAxis': 0xc350, + 'material': c80['_viewer']['scene']['backgroundColor']['withAlpha'](0.1) + } + }); + } + caq = !![]; + } + c82['prototype']['setIrBirthplace'] = cas; + c82['prototype'][dol(0x103e)] = function(caB) { + caG(); + c80['_API']['Public']['event']('L' + doo(0x881) + 'P', function(caC) { + c80['_API']['Model']['setHandleState'](!![]); + c80['_API']['Public']['clearHandler']('L' + doo(0x882) + 'P'); + }); + c80['_API']['Public']['event']('L' + doo(0x883) + 'K', function(caD) { + cas(0x0, [caD['position']['x'], caD['position']['y']]); + c80['_API']['Public']['clearHandler']('L' + doo(0x884) + 'K'); + if (c7x['defined'](caB) && typeof caB == 'f' + doo(0x885) + 'n') { + var caE = c80['_API']['funcPublic']['pickPosition'](new c7x['Cartesian2'](caD[dol(0x103f)]['x'],caD['position']['y']), c80['_viewer']); + var caF = c80['_API']['funcPublic']['outCartesian3ToRadian'](caE['position'], c80['_viewer']); + caB(caF); + } + }); + } + ; + function caG() { + var caH = [doj(0x2b2), doj(0x2b3), doj(0x2b4), doj(0x2b5)]; + caH['forEach'](function(caI) { + var caJ = c80['_viewer']['entities']['getById'](caI); + if (c7x[dol(0x1040)](caJ)) { + c7P['push'](caJ); + } + c80['_viewer']['entities']['removeById'](caI); + }); + } + function caK() { + console['log']('漫' + doo(0x886) + '.'); + } + function caL() { + console['log']('漫' + doo(0x887) + '.'); + } + ;function caM(caN) { + console['log']('漫' + doo(0x888) + '?', caN); + } + ;function caO() { + c7O['moveForward'] = ![]; + c7O['moveBackward'] = ![]; + c7O['lookUp'] = ![]; + c7O['lookDown'] = ![]; + c7O['moveUp'] = ![]; + c7O['moveDown'] = ![]; + c7O['moveLeft'] = ![]; + c7O[dol(0x1041)] = ![]; + c7O[dol(0x1042)] = ![]; + c7O['rotateRight'] = ![]; + } + function caP() {} + var caQ = { + 'up': KEY_UP || 0x26, + 'down': KEY_DOWN || 0x28, + 'lookUp': KEY_Q || 0x51, + 'lookDown': KEY_A || 0x41, + 'moveUp': KEY_W || 0x57, + 'moveDown': KEY_S || 0x53, + 'left': KEY_LEFT || 0x25, + 'right': KEY_RIGHT || 0x27, + 'moveLeft': KEY_Z || 0x5a, + 'moveRight': KEY_X || 0x58, + 'throughWall': KEY_F || 0x46 + }; + function caR(caS) { + if (!caS) + return; + if (c7x['defined'](caS['up'])) + caQ['up'] = caS['up']; + if (c7x['defined'](caS['down'])) + caQ['down'] = caS['down']; + if (c7x['defined'](caS['moveUp'])) + caQ['moveUp'] = caS['moveUp']; + if (c7x['defined'](caS['moveDown'])) + caQ['moveDown'] = caS['moveDown']; + if (c7x['defined'](caS['lookUp'])) + caQ['lookUp'] = caS['lookUp']; + if (c7x['defined'](caS['lookDown'])) + caQ['lookDown'] = caS['lookDown']; + if (c7x[dol(0x1043)](caS['left'])) + caQ['left'] = caS['left']; + if (c7x['defined'](caS['right'])) + caQ['right'] = caS['right']; + if (c7x[dol(0x1044)](caS['moveLeft'])) + caQ['moveLeft'] = caS['moveLeft']; + if (c7x['defined'](caS['moveRight'])) + caQ['moveRight'] = caS['moveRight']; + if (c7x['defined'](caS['throughWall'])) + caQ['throughWall'] = caS['throughWall']; + } + c82['prototype']['setKeyValue'] = caR; + c82['prototype']['getKeyValue'] = function() { + return caQ; + } + ; + function caT(caU) { + switch (caU) { + case caQ[dol(0x1045)]: + return 'm' + doo(0x889) + 'd'; + case caQ[dol(0x1046)]: + return 'm' + doo(0x88a) + 'd'; + case caQ[dol(0x1047)]: + return 'm' + doo(0x88b) + 'p'; + case caQ['moveDown']: + return 'm' + doo(0x88c) + 'n'; + case caQ[dol(0x1048)]: + return 'l' + doo(0x88d) + 'p'; + case caQ['lookDown']: + return 'l' + doo(0x88e) + 'n'; + case caQ[dol(0x1049)]: + return 'r' + doo(0x88f) + 't'; + case caQ['right']: + return 'r' + doo(0x890) + 't'; + case caQ['moveLeft']: + return 'm' + doo(0x891) + 't'; + case caQ['moveRight']: + return 'm' + doo(0x892) + 't'; + case caQ['throughWall']: + return 'c' + doo(0x893) + 'l'; + default: + return undefined; + } + } + function caV(caW) { + if (!c7D || !c7C['keyboardEnabled']) { + return; + } + var caX = caT(caW['keyCode']); + if (typeof caX !== 'u' + doo(0x894) + 'd') { + c7O[caX] = !![]; + if (cb3) { + var caY = new c7x['Cartesian3'](); + c80['_camera']['position'][dol(0x104a)](caY); + c7J['push']({ + 'position': caY, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': new Date()['getTime']() - c7F - c7G + }); + } + cb3 = ![]; + } + } + function caZ(cb0) { + if (!c7D || !c7C['keyboardEnabled']) { + return; + } + var cb1 = caT(cb0['keyCode']); + if (typeof cb1 !== 'u' + doo(0x895) + 'd') { + c7O[cb1] = ![]; + var cb2 = new c7x['Cartesian3'](); + c80[dol(0x104b)]['position']['clone'](cb2); + c7J['push']({ + 'position': cb2, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': new Date()[dol(0x104c)]() - c7F - c7G + }); + cb3 = !![]; + } + } + var cb3 = !![]; + c82['prototype']['iRKeyDown'] = function(cb4) { + if (!c7D || !c7C['keyboardEnabled']) { + return; + } + var cb5 = caT(cb4); + if (typeof cb5 !== 'u' + doo(0x896) + 'd') { + c7O[cb5] = !![]; + if (cb3) { + var cb6 = new c7x['Cartesian3'](); + c80['_camera']['position']['clone'](cb6); + c7J['push']({ + 'position': cb6, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': new Date()['getTime']() - c7F - c7G + }); + } + cb3 = ![]; + } + } + ; + c82['prototype']['iRKeyUp'] = function(cb7) { + if (!c7D || !c7C['keyboardEnabled']) { + return; + } + var cb8 = caT(cb7); + if (typeof cb8 !== 'u' + doo(0x897) + 'd') { + c7O[cb8] = ![]; + var cb9 = new c7x['Cartesian3'](); + c80[dol(0x104d)]['position'][dol(0x104e)](cb9); + c7J['push']({ + 'position': cb9, + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'], + 'roll': c80['_camera']['roll'], + 'timeStamp': new Date()['getTime']() - c7F - c7G + }); + cb3 = !![]; + } + } + ; + function cba() { + c7J = []; + } + function cbb() { + return { + 'position': c80[dol(0x104f)]['position'], + 'direction': c80['_camera']['direction'], + 'heading': c80['_camera']['heading'], + 'pitch': c80['_camera']['pitch'] + }; + } + function cbc(cbd, c7X) { + c7Z['position'] = c80['_camera']['position'][dol(0x1050)](); + c7Z[dol(0x1051)] = c80['_camera']['direction']['clone'](); + c7Z['up'] = c80['_camera']['up']['clone'](); + var cbf = c80['_camera']['heading']; + cbf += 0x5a * Math[dol(0x1052)] / 0xb4 * (cbd ? 0x1 : -0x1); + c7Z['setView']({ + 'destination': c80['_camera']['position']['clone'](), + 'orientation': { + 'heading': cbf, + 'pitch': c7x['Math']['toRadians'](0x0), + 'roll': 0x0 + } + }); + if (c7x['defined'](c7X)) { + c7X['origin'] = c80['_camera']['position']['clone'](); + c7Y['direction'] = c7Z['direction']['clone'](); + } else + c7X = new c7x['Ray'](c80['_camera']['position'][dol(0x1053)](),c7Z['direction']['clone']()); + return c7X; + } + function cbg(cbh) { + var cbi = c80[dol(0x1054)]['globe']['ellipsoid']; + var cbj = c80['_scene']['screenSpaceCameraController']; + cbj['enableRotate'] = cbh; + cbj['enableTranslate'] = cbh; + cbj['enableZoom'] = cbh; + cbj['enableTilt'] = cbh; + cbj['enableLook'] = cbh; + } + function cbk(cbl, cbm, cbn) { + var cbo = new c7x[(dol(0x1055))](); + c7x['Cartesian3']['normalize'](cbm, cbo); + function cbp(cbq, cbr, cbs) { + if (!c7x['defined'](cbq)) + cbq = new c7x['Cartesian3'](); + cbq['x'] += cbr['x'] * cbs; + cbq['y'] += cbr['y'] * cbs; + cbq['z'] += cbr['z'] * cbs; + return cbq; + } + return cbp(cbl['clone'](), cbo, cbn); + } + function cbt(cbu, cbv) { + var cbw = new c7x['Cartesian3'](); + c7x['Cartesian3']['negate'](cbu['position'], cbw); + c7x['Cartesian3']['normalize'](cbw, cbw); + return cbk(cbu['position'], cbw, cbv); + } + function cbx(cby, cbz) { + if (!c7x['defined'](cby)) { + console['error'](doj(0x2b6)); + return null; + } + if (!c7x['defined'](cbz)) { + cbz = new c7x['Cartesian3'](); + } + var cbA = cby['direction']['clone'](); + var cbB = cby['position']['clone'](); + var cbC = cby['pitch']; + var cbD = cby['right']['clone'](); + var cbE = new c7x['Quaternion'](); + var cbF = new c7x[(dol(0x1056))](); + var cbG = c7x['defined'](cbC) ? cbC : cby['defaultLookAmount']; + var cbH = c7x['Quaternion']['fromAxisAngle'](cbD, -cbG, cbE); + var cbI = c7x['Matrix3']['fromQuaternion'](cbH, cbF); + c7x['Matrix3']['multiplyByVector'](cbI, cbA, cbz); + c7x['Cartesian3']['normalize'](cbz['clone'](), cbz); + return cbz; + } + c82['AutoRoaming'] = function(cbJ, cbK, cbL, cbM, cbN, cbO) { + try { + cbJ['viewer']['clock']['shouldAnimate'] = !![]; + var cbP = c80['_API']['funcPublic']['inputRadianArrToCartesian3Arr'](cbK, cbJ['viewer']); + var cbQ = []; + var cbR = 0x1; + var cbS = -0x14; + if (!isEmpty(cbL)) + cbS = cbL; + var cbT = 0xa; + if (!isEmpty(cbM)) + cbT = cbM; + if (cbP['length'] > 0x1) { + for (var cbU = 0x0; cbU < cbP['length']; cbU++) { + var cbV = c7x[dol(0x1057)]['fromCartesian'](cbP[cbU]); + var cbW = c7x['Math']['toDegrees'](cbV['longitude']); + var cbX = c7x['Math']['toDegrees'](cbV[dol(0x1058)]); + var cbY = { + 'lng': cbW, + 'lat': cbX, + 'height': Math['ceil'](cbJ['viewer']['camera']['positionCartographic']['height']) + 0x64, + 'flytime': cbT + }; + cbQ['push'](cbY); + if (cbN) { + if (cbU < cbP['length'] - 0x1) { + var cbZ = cbJ[dol(0x1059)]['entities']['add']({ + 'polyline': { + 'positions': [cbP[cbU], cbP[cbU + 0x1]], + 'width': 0x5, + 'material': new c7x['PolylineDashMaterialProperty']({ + 'color': c7x['Color']['YELLOW'], + 'dashLength': 0x14 + }) + } + }); + cbJ['roaming']['push'](cbZ); + } + } + cbJ['viewer'][dol(0x105a)][dol(0x105b)](); + } + cbJ['viewer']['scene']['camera']['flyTo']({ + 'destination': c7x[dol(0x105c)]['fromDegrees'](cbQ[0x0]['lng'], cbQ[0x0]['lat'], cbQ[0x0]['height']), + 'duration': 0x7, + 'orientation': { + 'heading': c7x['Math']['toRadians'](cbJ['viewer']['camera']['heading']), + 'pitch': c7x['Math']['toRadians'](cbS), + 'roll': 0x0 + }, + 'complete': function() {}, + 'cancle': function() {}, + 'pitchAdjustHeight': -0x5a + }); + setTimeout(function() { + cc0(); + }, 0x1b58); + function cc0() { + if (cbR == 0x0) { + c80['_API']['funcPublic']['zoom'](cbJ['tileset'], cbJ['viewer']); + if (!isEmpty(cbO)) { + cbO('l' + doo(0x898) + 'd'); + } + return; + } + var cbL = c7x['Math']['toRadians'](cbS); + ccg(cbQ[cbR]['flytime']); + cbJ[dol(0x105d)] = function TimeExecution() { + var cc2 = cbR - 0x1; + if (cbR == 0x0) { + cc2 = cbQ['length'] - 0x1; + } + var cc3 = bearing(cbQ[cc2]['lat'], cbQ[cc2]['lng'], cbQ[cbR][dol(0x105e)], cbQ[cbR]['lng']); + cc3 = c7x[dol(0x105f)]['toRadians'](cc3); + var cc4 = c7x['JulianDate']['secondsDifference'](cbJ['viewer']['clock']['currentTime'], cbJ['viewer']['clock']['startTime']); + var cc5 = cbR == 0x0 ? cbQ[cbQ['length'] - 0x1]['lat'] : cbQ[cbR - 0x1]['lat']; + var cc6 = cbR == 0x0 ? cbQ[cbQ['length'] - 0x1]['lng'] : cbQ[cbR - 0x1]['lng']; + var cc7 = c7x['Cartesian3'][dol(0x1060)](cc6 + (cbQ[cbR]['lng'] - cc6) / cbQ[cbR][dol(0x1061)] * cc4, cc5 + (cbQ[cbR]['lat'] - cc5) / cbQ[cbR]['flytime'] * cc4, cbQ[cbR][dol(0x1062)]); + cbJ['viewer']['scene']['camera']['setView']({ + 'destination': cc7, + 'orientation': { + 'heading': cc3, + 'pitch': cbL + } + }); + if (c7x[dol(0x1063)]['compare'](cbJ['viewer']['clock']['currentTime'], cbJ['viewer']['clock']['stopTime']) >= 0x0) { + cbJ['viewer']['clock']['onTick']['removeEventListener'](cbJ['timeListener']); + cc8(); + } + } + ; + cbJ['viewer']['clock']['onTick']['addEventListener'](cbJ['timeListener']); + } + function cc8() { + var cc9 = cbR + 0x1; + if (cbR == cbQ['length'] - 0x1) { + cc9 = 0x0; + } + var cca = bearing(cbQ[cbR]['lat'], cbQ[cbR]['lng'], cbQ[cc9]['lat'], cbQ[cc9]['lng']); + var cbL = c7x['Math']['toRadians'](cbS); + var ccc = (cca - c7x['Math']['toDegrees'](cbJ['viewer']['camera']['heading'])) / 0x2; + if (ccc >= 0x5a) + ccc = ccc - 0xb4; + if (ccc <= -0x5a) + ccc = 0xb4 + ccc; + ccg(0x2); + var ccd = cbJ['viewer']['camera']['heading']; + cbJ['timeListener'] = function TimeExecution() { + var cce = c7x['JulianDate']['secondsDifference'](cbJ['viewer']['clock']['currentTime'], cbJ['viewer'][dol(0x1064)]['startTime']); + var cca = c7x['Math'][dol(0x1065)](cce * ccc) + ccd; + cbJ['viewer']['scene']['camera']['setView']({ + 'orientation': { + 'heading': cca, + 'pitch': cbL + } + }); + if (c7x[dol(0x1066)]['compare'](cbJ['viewer']['clock']['currentTime'], cbJ['viewer']['clock']['stopTime']) >= 0x0) { + cbJ['viewer']['clock']['onTick']['removeEventListener'](cbJ['timeListener']); + cbR = ++cbR >= cbQ['length'] ? 0x0 : cbR; + if (cbR == 0x0) { + c80['_API']['funcPublic']['zoom'](cbJ['tileset'], cbJ['viewer']); + if (!isEmpty(cbO)) { + cbO('l' + doo(0x899) + 'd'); + } + } else { + cc0(); + } + } + } + ; + cbJ['viewer']['clock']['onTick']['addEventListener'](cbJ['timeListener']); + } + function ccg(cch) { + var cci = c7x['JulianDate']['fromDate'](new Date()); + var ccj = c7x['JulianDate']['addSeconds'](cci, cch, new c7x['JulianDate']()); + cbJ['viewer']['clock']['startTime'] = cci['clone'](); + cbJ['viewer']['clock']['stopTime'] = ccj['clone'](); + cbJ['viewer']['clock']['currentTime'] = cci[dol(0x1067)](); + cbJ[dol(0x1068)]['clock'][dol(0x1069)] = c7x['ClockRange']['CLAMPED']; + cbJ[dol(0x106a)]['clock']['clockStep'] = c7x['ClockStep']['SYSTEM_CLOCK']; + } + } + } catch (cck) { + console['log']('错' + doo(0x89a) + ':' + cck); + } + } + ; + c82['PauseOrContinueRoaming'] = function(ccl, ccm) { + try { + ccl['viewer']['clock']['shouldAnimate'] = ccm; + ccl['viewer']['scene'][dol(0x106b)](); + } catch (ccn) { + console['log']('错' + doo(0x89b) + ':' + ccn); + } + } + ; + c82[dol(0x106c)] = function(cco) { + try { + if (cco['roaming']['length'] > 0x0) { + cco[dol(0x106d)]['clock']['shouldAnimate'] = ![]; + for (var ccp = 0x0; ccp < cco['roaming'][dol(0x106e)]; ccp++) { + cco['viewer']['entities']['remove'](cco['roaming'][ccp]); + } + cco['viewer']['clock']['onTick']['removeEventListener'](cco['timeListener']); + cco['viewer']['scene']['requestRender'](); + } + } catch (ccq) { + console[dol(0x106f)]('错' + doo(0x89c) + ':' + ccq); + } + } + ; + c82['RouteTrack'] = function(ccr, ccs) { + try { + if (!isEmpty(ccs)) { + ccr['viewer']['clock']['shouldAnimate'] = !![]; + var cct = ccs['id']; + if (isEmpty(cct)) { + cct = c80['_API']['funcPublic']['genID'](0x6); + } + var ccu = c80['_API']['funcPublic']['inputRadianArrToCartesian3Arr'](ccs['postions'], ccr['viewer']); + if (ccu[dol(0x1070)] > 0x1) { + var ccv = c7x['JulianDate']['fromDate'](new Date()); + var ccw = c7x['JulianDate']['addSeconds'](ccv, ccs['flyTime'], new c7x['JulianDate']()); + var ccx = []; + var ccy = Math['round'](ccs['flyTime'] / (ccu['length'] - 0x1)); + var ccz = 0x0; + if (ccu['length'] == 0x2) { + ccx['push'](ccz); + ccx['push'](ccu[0x0]['x']); + ccx['push'](ccu[0x0]['y']); + ccx['push'](ccu[0x0]['z']); + ccx['push'](flyTime); + ccx[dol(0x1071)](ccu[0x1]['x']); + ccx['push'](ccu[0x1]['y']); + ccx['push'](ccu[0x1]['z']); + } else { + for (var ccA = 0x0; ccA < ccu['length']; ccA++) { + ccx['push'](ccz); + ccx['push'](ccu[ccA]['x']); + ccx['push'](ccu[ccA]['y']); + ccx['push'](ccu[ccA]['z']); + ccz += ccy; + } + } + var ccB = ccC(); + function ccC() { + var ccD = [{ + 'id': 'd' + doo(0x89d) + 't', + 'name': 'C' + doo(0x89e) + 'h', + 'version': doh(0x117), + 'clock': { + 'interval': ccv + '/' + ccw, + 'currentTime': '' + ccv + '' + } + }]; + return ccD; + } + ccB[0x1] = ccF(ccx, ccv, ccw, ccs['showLine'], ccs['modelUrl']); + } + console['log'](ccB); + var ccE = new c7x['CzmlDataSource'](); + ccE['load'](ccB); + if (ccr['defaults']['openearth']) { + ccr['viewer']['dataSources']['add'](ccE, { + 'clampToGround': !![] + }); + } else { + ccr[dol(0x1072)]['dataSources']['add'](ccE); + } + ccr['viewer']['scene']['requestRender'](); + function ccF(ccx, ccv, ccw, ccJ, ccK) { + return { + 'id': cct, + 'availability': ccv + '/' + ccw, + 'model': { + 'gltf': ccK, + 'minimumPixelSize': 0x64, + 'maximumScale': 0x32 + }, + 'orientation': { + 'velocityReference': '#' + doo(0x89f) + 'n' + }, + 'path': { + 'material': { + 'solidColor': { + 'color': { + 'interval': ccv + '/' + ccw, + 'rgba': [0xff, 0xff, 0x0, 0xff] + } + } + }, + 'width': [{ + 'interval': ccv + '/' + ccw, + 'number': 0x5 + }], + 'show': [{ + 'interval': ccv + '/' + ccw, + 'boolean': ccJ + }] + }, + 'position': { + 'interpolationAlgorithm': 'L' + doo(0x8a0) + 'E', + 'interpolationDegree': 0x1, + 'epoch': '' + ccv + '', + 'cartesian': ccx + } + }; + } + } + } catch (ccL) { + console['log']('错' + doo(0x8a1) + ':' + ccL); + } + } + ; + c82['EndRouteTrack'] = function(ccM, ccN) { + try { + if (isEmpty(ccN)) { + ccN = 0x0; + } + ccM['routeDataSource']['forEach'](function(ccO, ccP) { + if (ccN == 0x0) { + ccM['routeDataSource']['delete'](ccP); + ccM[dol(0x1073)]['dataSources']['remove'](ccO, !![]); + ccM['viewer']['clock']['onTick'][dol(0x1074)](ccM['timeListener']); + } else { + if (ccN == ccP) { + ccM['viewer']['dataSources']['remove'](ccO, !![]); + ccM['routeDataSource']['delete'](ccP); + } + } + }); + ccM['viewer'][dol(0x1075)]['requestRender'](); + } catch (ccQ) { + console['log']('错' + doo(0x8a2) + ':' + ccQ); + } + } + ; + c82['Camera_ModelRoaming_Stop'] = ![]; + c82['ModelRoaming'] = function(ccR, ccS, ccT) { + try { + c82['Camera_ModelRoaming_Stop'] = ![]; + var ccU = []; + var ccV = 0x0; + ccS = Number(ccS); + if (isNaN(ccS)) { + throw '飞' + doo(0x8a3) + '字'; + } + ccT = Number(ccT); + if (isNaN(ccT)) { + throw '间' + doo(0x8a4) + '字'; + } + ccT = ccT * 0x3e8; + ccR['m_model']['forEach'](function(ccW, ccX) { + ccU['push'](ccW); + }); + ccY(ccV); + function ccY(ccZ) { + var cd0 = ccU[ccZ]; + ccR[dol(0x1076)]['flyTo'](cd0, { + 'duration': ccS, + 'offset': new c7x['HeadingPitchRange'](c7x['Math']['toRadians'](0x0),c7x['Math']['toRadians'](-0x5a),0x12c) + })['then'](function(cd1) { + if (cd1) { + cd3(ccT); + if (ccV == ccU['length'] - 0x1) { + ccV = 0x0; + } else { + ccV++; + } + if (!c82['Camera_ModelRoaming_Stop']) { + ccY(ccV); + } else { + c80['_API']['funcPublic']['zoom'](ccR['tileset'], ccR['viewer']); + } + } + })['otherwise'](function(cd2) { + console['log'](cd2); + }); + } + function cd3(cd4) { + var cd5 = new Date(); + var cd6 = cd5['getTime']() + cd4; + while (!![]) { + cd5 = new Date(); + if (cd5['getTime']() > cd6) + return; + } + } + } catch (cd7) { + if (cd7['message'] != 'E' + doo(0x8a5) + 'h') { + console['log']('错' + doo(0x8a6) + ':' + cd7); + } + } + } + ; + c82['StopModelRoaming'] = function(cd8) { + try { + c82[dol(0x1077)] = !![]; + cd8['viewer']['scene']['requestRender'](); + } catch (cd9) { + console['log']('错' + doo(0x8a7) + ':' + cd9); + } + } + ; + c82['StartCustomRoam'] = function(cda, cdb, cdc, cdd, cde) { + if (cdb['length'] < 0x2) + return; + cda['CustomRoamRun'] = !![]; + cda['CustomViewPoints'] = cdb; + if (Number(cdc) != NaN && Number(cdc) > 0x0) { + cda['CustomRoamSpeed'] = cdc; + cda[dol(0x1078)] = 0xc350 / cda['CustomRoamSpeed']; + } else if (Number(cdd) != NaN && Number(cdd) > 0x0) { + cda['CustomRoamTotalDuration'] = cdd; + cdc = 0xc350 / cdd; + cda['CustomRoamSpeed'] = cdc || 0xa; + } else { + return; + } + var cdf = []; + var cdg = []; + var cdh = [0x0]; + for (var cdi = 0x0; cdi < cdb['length']; cdi++) { + cdf['push'](c7x['Cartesian3']['fromRadians'](cdb[cdi]['position'][0x0], cdb[cdi][dol(0x1079)][0x1], cdb[cdi]['position'][0x2])); + cdg['push'](c7x['Cartesian3']['fromRadians'](cdb[cdi]['heading'], cdb[cdi]['pitch'], 0x0)); + if (cdi > 0x0) + cdh['push'](cdi * 0x1 / (cdb['length'] - 0x1)); + } + var cdj = new c7x['CatmullRomSpline']({ + 'times': cdh, + 'points': cdf + }); + var cdk = new c7x['CatmullRomSpline']({ + 'times': cdh, + 'points': cdg + }); + var cdl = function() { + var cdm = cdj['evaluate'](cda['CustomRoamIndex'] / 0x64); + var cdn = c7x['Cartographic']['fromCartesian'](cdk['evaluate'](cda['CustomRoamIndex'] / 0x64)); + cda['viewer']['camera']['flyTo']({ + 'destination': cdm, + 'orientation': { + 'heading': cdn['longitude'], + 'pitch': cdn['latitude'], + 'roll': 0x0 + }, + 'duration': 0.01, + 'complete': function() { + if (cda[dol(0x107a)]) { + cda['CustomRoamIndex'] += cda['CustomRoamSpeed'] / 0xa; + if (cda['CustomRoamIndex'] <= 0x64) + cdl(); + else { + cda['CustomRoamIndex'] = 0x0; + if (!isEmpty(cde)) { + cde(); + } + } + } + } + }); + }; + cdl(); + } + ; + c82['ReCustomRoam'] = function(cdo, cdp) { + cdo['CustomRoamRun'] = cdp; + if (cdo['CustomRoamRun']) { + c82[dol(0x107b)](cdo, cdo['CustomViewPoints'], cdo['CustomRoamSpeed']); + } + } + ; + c82['StopCustomRoam'] = function(cdq) { + cdq['CustomRoamRun'] = ![]; + cdq['CustomRoamIndex'] = 0x0; + } + ; + return c82; + }(window['Cesium'] || {}); + GLEInspectionTrack = function(cdr) { + var cds = 'I' + doo(0x8a8) + 'k'; + var cdt; + var cdu, cdv, cdw, cdx, cdy; + var cdz; + var cdA = { + 'id': '', + 'maxDistance': 0x14, + 'lineWidth': 0.3, + 'lineColor': [0x0, 0xff, 0x7f, 0.6], + 'pointSize': 0xa, + 'pointColor': [0xff, 0xff, 0xff, 0x1], + 'pointOutLineColor': [0x0, 0xff, 0x7f, 0x1], + 'isThum': !![], + 'points': [] + }; + var cdB = new Map(); + var cdC = this; + var cdD = ![]; + var cdE; + function cdF(cdG, cdH) { + if (!cdr['defined'](cdG)) + throw doj(0x2b7); + cdt = cdH; + cdu = cdG; + this['_viewer'] = cdG; + cdv = cdu['scene']; + cdw = cdu['canvas']; + cdx = cdu['camera']; + cdy = cdu['scene'][dol(0x107c)]; + var cdI = cdt['defaults']['container']; + cdz = document['getElementById'](cdI); + } + function cdJ() { + cdt[dol(0x107d)]['event']('L' + doo(0x8a9) + 'K', function(cdK) { + var cdL; + if (cdr['defined'](cdE) && cdr['defined'](cdB[cdE])) { + cdL = cdE; + } + if (!cdD && cdr['defined'](cdL) && cdr['defined'](cdB[cdL]) && !cdB[cdL]['i' + doo(0x8aa) + 'd']) + cdX(cdK['position'])['then'](function(cdM) { + if (cdM) { + var cdN = new cdr['Cartesian2'](cdK['position']['x'],cdK['position']['y']); + var cdO = cdt['funcPublic']['pickPosition'](cdN, cdu); + if (cdr['defined'](cdO)) { + var cdP = cdt['funcPublic']['outCartesian3ToRadian'](cdO['position'], cdu); + if (cdB[cdL]['isMultiFloorMode']) { + cdB[cdL]['points']['push'](cdP[0x0], cdP[0x1], cdP[0x2]); + cea(cdL); + ceh(cdL); + } else { + ceq(cdL, cdO['position']); + } + if (cdB[cdL]['onPickPosition'] && typeof cdB[cdL]['onPickPosition'] == 'f' + doo(0x8ab) + 'n') { + cdB[cdL]['onPickPosition'](cdP); + } + } + } + }); + }); + } + cdF['prototype']['setConfig'] = function(cdQ) { + if (!cdQ || !cdQ['hasOwnProperty'](doh(0x118))) { + throw doj(0x2b8); + } + cdE = cdQ['id']; + if (!cdB[cdQ['id']]) { + cdB[cdQ['id']] = {}; + for (var cdR in cdA) { + if (cdA['hasOwnProperty'](cdR)) { + if (Array['isArray'](cdA[cdR])) { + cdB[cdQ['id']][cdR] = []; + cdB[cdQ['id']][cdR] = cdB[cdQ['id']][cdR]['concat'](cdA[cdR]); + } else { + if (cdR == 'l' + doo(0x8ac) + 'h' && cdQ['isMultiFloorMode']) { + cdB[cdQ['id']][cdR] = 0x8; + } else { + cdB[cdQ[dol(0x107e)]][cdR] = cdA[cdR]; + } + } + } + } + } + for (var cdR in cdQ) { + if (cdQ[dol(0x107f)](cdR)) { + if (Array['isArray'](cdQ[cdR])) { + cdB[cdQ['id']][cdR] = []; + cdB[cdQ[dol(0x1080)]][cdR] = cdB[cdQ['id']][cdR]['concat'](cdQ[cdR]); + } else { + cdB[cdQ['id']][cdR] = cdQ[cdR]; + } + } + } + } + ; + cdF['prototype'][dol(0x1081)] = function(cdT) { + this['setConfig'](cdT); + cdD = ![]; + cdJ(); + } + ; + cdF['prototype']['suspend'] = function(cdU, cdV) { + try { + if (cdr['defined'](cdV)) { + cdD = ![]; + if (!cdr['defined'](cdB[cdV])) { + throw doj(0x2b9); + } + cdE = cdV; + cdB[cdE]['i' + doo(0x8ad) + 'd'] = cdU; + } else if (cdU === !![] || cdU === ![]) + cdD = cdU; + } catch (cdW) { + console['log'](cdW); + } + } + ; + function cdX(cdY) { + return new Promise(function(cdZ, ce0) { + try { + var ce1 = ''; + var ce2 = cdv['drillPick'](cdY, 0xa); + if (ce2['length'] > 0x0) { + for (var ce3 = 0x0; ce3 < ce2['length']; ce3++) { + var ce4 = ce2[ce3]; + if (ce4 && cdr['defined'](ce4) && ce4 instanceof cdr['Cesium3DTileFeature']) { + var ce5 = ce4['getProperty']('n' + doo(0x8ae) + 'e'); + if (!cdr['defined'](ce5)) { + ce5 = ce4['getProperty'](doh(0x119)); + } + cdt['m_model']['forEach'](function(ce6, ce7) { + if (ce6['id'] === ce4['tileset']['id']) { + ce1 = ce7; + } + }); + if (ce1 && ce5) { + cdZ(ce1 + '^' + ce5); + } + return; + } else if (ce4 && cdr['defined'](ce4) && ce4 instanceof Object) { + if (ce4['id']['entityCollection'] && ce4['id']['entityCollection']['_owner']) { + var ce8 = ce4['id']['entityCollection']['_owner']['_name']; + if (ce4['id'] != undefined) { + if (ce8 && ce4['id']['name']) { + cdZ(ce8 + '^' + ce4[dol(0x1082)]['name']); + return; + } + } + } + } + } + } + cdZ(); + } catch (ce9) { + throw ce9; + } + } + ); + } + function cea(ceb) { + var cec = cdB[ceb]['points'][dol(0x1083)]; + var ced = [cdB[ceb]['points'][cec - 0x3], cdB[ceb]['points'][cec - 0x2], cdB[ceb]['points'][cec - 0x1]]; + var cee = new cdr['Color'](cdB[ceb]['pointColor'][0x0] / 0xff,cdB[ceb]['pointColor'][0x1] / 0xff,cdB[ceb]['pointColor'][0x2] / 0xff,cdB[ceb]['pointColor'][0x3] / 0x1); + var cef = new cdr['Color'](cdB[ceb]['pointOutLineColor'][0x0] / 0xff,cdB[ceb]['pointOutLineColor'][0x1] / 0xff,cdB[ceb]['pointOutLineColor'][0x2] / 0xff,cdB[ceb]['pointOutLineColor'][0x3] / 0x1); + var ceg = 'I' + doo(0x8af) + '_' + ceb + '_' + +new Date(); + cfr(ceg, ced, cee, cef, cdB[ceb]['pointSize'], cdB[ceb]['maxDistance']); + if (!cdB[ceb]['keyPoint']) + cdB[ceb]['keyPoint'] = []; + cdB[ceb][dol(0x1084)]['push'](ceg); + } + function ceh(cei) { + var cej; + if (cdu['scene']['globe']) { + cej = !![]; + } else { + cej = ![]; + } + var cek = 'I' + doo(0x8b0) + '_' + cei; + var cel = new cdr['Color'](cdB[cei]['lineColor'][0x0] / 0xff,cdB[cei]['lineColor'][0x1] / 0xff,cdB[cei]['lineColor'][0x2] / 0xff,cdB[cei]['lineColor'][0x3] / 0x1); + if (cdB[cei]['primitive']) { + cdu['scene']['primitives']['remove'](cdB[cei]['primitive']); + cdB[cei]['primitive'] = undefined; + } + if (cdB[cei]['points']['length'] < 0x6) + return; + if (!cdB[cei]['primitive']) { + var cem = new cdr['PolylineGeometry']({ + 'positions': cdr['Cartesian3'][dol(0x1085)](cdB[cei]['points']), + 'width': cdB[cei]['lineWidth'], + 'followSurface': cej, + 'arcType': cdr['ArcType']['NONE'], + 'vertexFormat': cdr['PolylineMaterialAppearance']['VERTEX_FORMAT'] + }); + var cen = cdr['PolylineGeometry']['createGeometry'](cem); + var ceo = new cdr['Primitive']({ + 'geometryInstances': new cdr['GeometryInstance']({ + 'geometry': cem, + 'id': cek + }), + 'appearance': new cdr['PolylineMaterialAppearance']({ + 'material': new cdr['Material']({ + 'fabric': { + 'type': 'C' + doo(0x8b1) + 'r', + 'uniforms': { + 'color': cel + } + } + }), + 'renderState': new cdr['RenderState']({ + 'polygonOffset': { + 'enabled': !![], + 'factor': -0x1, + 'units': -0x1 + }, + 'depthTest': { + 'enabled': !![], + 'func': cdr['WebGLConstants']['LEQUAL'] + } + }) + }), + 'depthFailAppearance': new cdr['PolylineMaterialAppearance']({ + 'material': new cdr[(dol(0x1086))]({ + 'fabric': { + 'type': 'C' + doo(0x8b2) + 'r', + 'uniforms': { + 'color': cel + } + } + }) + }) + }); + cdu['scene']['primitives'][dol(0x1087)](ceo); + cdB[cei]['primitive'] = ceo; + } else {} + } + ;var cep = ![]; + var ceq = function(cer, ces) { + if (!cdr['defined'](cdB[cer])) + throw doj(0x2ba); + cer = cer['toString'](); + if (!cdr['defined'](ces) || !(ces instanceof cdr['Cartesian3'])) + throw doj(0x2bb); + var cet = cdt['funcPublic']['outCartesian3ToRadian'](ces, cdu); + if (cdB[cer]['points']['length'] == 0x0) { + cdB[cer]['height'] = cet[0x2] + 0.1; + } + cet[0x2] = cdB[cer]['height']; + var ceu = new cdr['Color'](cdB[cer]['pointColor'][0x0] / 0xff,cdB[cer][dol(0x1088)][0x1] / 0xff,cdB[cer]['pointColor'][0x2] / 0xff,cdB[cer]['pointColor'][0x3] / 0x1); + var cev = new cdr['Color'](cdB[cer]['pointOutLineColor'][0x0] / 0xff,cdB[cer]['pointOutLineColor'][0x1] / 0xff,cdB[cer]['pointOutLineColor'][0x2] / 0xff,cdB[cer]['pointOutLineColor'][0x3] / 0x1); + var cew = new cdr['Color'](cdB[cer]['lineColor'][0x0] / 0xff,cdB[cer]['lineColor'][0x1] / 0xff,cdB[cer]['lineColor'][0x2] / 0xff,cdB[cer]['lineColor'][0x3] / 0x1); + var cex = 'I' + doo(0x8b3) + '_' + cer + '_' + +new Date(); + cfr(cex, cet, ceu, cev, cdB[cer]['pointSize'], cdB[cer]['maxDistance']); + if (!cdr['defined'](cdB[cer]['keyPoint'])) { + cdB[cer]['keyPoint'] = []; + } + cdB[cer]['keyPoint']['push'](cex); + console['log'](cdB); + if (cdB[cer]['isThum'] && cdB[cer]['points']['length'] >= 0x2) { + var cey = 0.4; + var cez = undefined; + if (cdB[cer]['points'][dol(0x1089)] >= 0x4) { + cez = cdr[dol(0x108a)]['fromRadiansArrayHeights']([cdB[cer]['points'][cdB[cer]['points']['length'] - 0x4], cdB[cer]['points'][cdB[cer]['points'][dol(0x108b)] - 0x3], cdB[cer]['height'] + cey])[0x0]; + } + var ceA = cdr['Cartesian3']['fromRadiansArrayHeights']([cdB[cer]['points'][cdB[cer]['points']['length'] - 0x2], cdB[cer]['points'][cdB[cer]['points']['length'] - 0x1], cdB[cer]['height'] + cey])[0x0]; + var ceB = cdr['Cartesian3']['fromRadiansArrayHeights']([cet[0x0], cet[0x1], cdB[cer]['height'] + cey])[0x0]; + var ceC = cdr['Cartesian3']['fromRadiansArrayHeights']([cdB[cer]['points'][cdB[cer]['points']['length'] - 0x2], cet[0x1], cdB[cer]['height'] + cey])[0x0]; + var ceD = cdr['Cartesian3']['fromRadiansArrayHeights']([cet[0x0], cdB[cer]['points'][cdB[cer]['points']['length'] - 0x1], cdB[cer]['height'] + cey])[0x0]; + var ceE = cfA(ceC, ceB); + var ceF = cfA(ceC, ceA); + var ceG = cfA(ceD, ceB); + var ceH = cfA(ceD, ceA); + console['log'](ceE, ceF, ceG, ceH); + ceX(ceC, ceB, ceE); + ceX(ceC, ceA, ceF); + ceX(ceD, ceB, ceG); + ceX(ceD, ceA, ceH); + var ceI = ![]; + if (cdr['defined'](cez)) { + var ceJ = new cdr['Cartesian3']() + , ceK = new cdr['Cartesian3']() + , ceL = new cdr['Cartesian3'](); + cdr['Cartesian3']['subtract'](cez, ceA, ceJ); + cdr['Cartesian3']['subtract'](ceC, ceA, ceK); + cdr['Cartesian3']['subtract'](ceD, ceA, ceL); + var ceM = cdr['Cartesian3']['angleBetween'](ceJ, ceK); + var ceN = cdr['Cartesian3']['angleBetween'](ceJ, ceL); + if (ceM > 3.14) { + cdB[cer]['points']['push'](cdB[cer]['points'][cdB[cer]['points']['length'] - 0x2], cet[0x1]); + ceI = !![]; + } else if (ceN > 3.14) { + cdB[cer]['points']['push'](cet[0x0], cdB[cer]['points'][cdB[cer]['points']['length'] - 0x1]); + ceI = !![]; + } + } else { + if (ceE['length'] == 0x0 && ceF['length'] == 0x0) { + cdB[cer]['points']['push'](cdB[cer][dol(0x108c)][cdB[cer][dol(0x108d)]['length'] - 0x2], cet[0x1]); + ceI = !![]; + } else if (ceG['length'] == 0x0 && ceH['length'] == 0x0) { + cdB[cer]['points']['push'](cet[0x0], cdB[cer]['points'][cdB[cer]['points']['length'] - 0x1]); + ceI = !![]; + } + } + if (!ceI) { + if (ceE['length'] == 0x0 || ceF[dol(0x108e)] == 0x0) { + cdB[cer]['points'][dol(0x108f)](cdB[cer]['points'][cdB[cer]['points']['length'] - 0x2], cet[0x1]); + } else if (ceG['length'] == 0x0 || ceH['length'] == 0x0) { + cdB[cer][dol(0x1090)]['push'](cet[0x0], cdB[cer]['points'][cdB[cer]['points']['length'] - 0x1]); + } else { + cdB[cer]['points'][dol(0x1091)](cdB[cer]['points'][cdB[cer]['points']['length'] - 0x2], cet[0x1]); + ceI = !![]; + } + } + } + cdB[cer]['points']['push'](cet[0x0], cet[0x1]); + if (cdB[cer]['points']['length'] >= 0x4) { + { + var ceO = function() { + return cdr['Cartesian3']['fromRadiansArray'](cdB[cer]['points']); + }; + var ceP = 'I' + doo(0x8b4) + '_' + cer; + var ceQ = cdu['entities']['getById'](ceP); + if (!cdr['defined'](ceQ)) { + ceQ = cdu['entities']['add']({ + 'name': ceP, + 'id': ceP, + 'corridor': { + 'positions': new cdr['CallbackProperty'](ceO,cep), + 'width': cdB[cer]['lineWidth'], + 'height': cdB[cer]['height'], + 'heightReference': cdr['HeightReference']['NONE'], + 'classificationType': cdr['ClassificationType']['CESIUM_3D_TILE'], + 'material': cew, + 'disableDepthTestDistance': cdB[cer]['maxDistance'], + 'distanceDisplayCondition': cdB[cer]['maxDistance'], + 'scale': new cdr['ConstantProperty'](0x2) + } + }); + } + cep = ![]; + ceQ[dol(0x1092)]['positions']['setCallback'](ceO, cep); + } + } + }; + cdF['prototype']['undo'] = function(ceR) { + if (cdB[ceR]) { + if (cdr['defined'](cdB[ceR]['keyPoint'])) { + var ceS = cdB[ceR]['keyPoint']['pop'](); + cdu['entities']['removeById'](ceS); + } + var ceT = 'I' + doo(0x8b5) + '_' + ceR; + if (cdB[ceR]['isMultiFloorMode']) { + if (cdB[ceR]['points']['length'] >= 0x3) { + cdB[ceR]['points']['splice'](cdB[ceR]['points']['length'] - 0x3, 0x3); + } + ceh(ceR); + } else { + if (cdB[ceR]['points']['length'] >= 0x2) { + cdB[ceR]['points']['splice'](cdB[ceR]['points']['length'] - 0x2, 0x2); + } + if (cdB[ceR]['points'][dol(0x1093)] >= 0x4) { + var ceU = function() { + return cdr['Cartesian3']['fromRadiansArray'](cdB[ceR][dol(0x1094)]); + }; + var ceV = cdu['entities']['getById'](ceT); + if (cdr[dol(0x1095)](ceV)) { + cep = ![]; + ceV['corridor']['positions']['setCallback'](ceU, cep); + } + } else { + cdu['entities']['removeById'](ceT); + } + } + cdu['scene']['requestRender'](); + } + } + ; + cdF['prototype']['getById'] = function(ceW) { + return cdt['funcPublic']['deepCopy'](cdB[ceW], ['o' + doo(0x8b6) + 'n', 'p' + doo(0x8b7) + 'e']); + } + ; + function ceX(ceY, ceZ, cf0) { + var cf1 = []; + if (cf0[dol(0x1096)] > 0x0) { + for (let cf2 = 0x0; cf2 < cf0['length']; cf2++) { + var cf3 = cf0[cf2]; + var cf4 = cf3['position']; + if (ceY['x'] > ceZ['x'] && cf4['x'] > ceZ['x'] && cf4['x'] < ceY['x']) { + if (ceY['y'] > ceZ['y'] && cf4['y'] > ceZ['y'] && cf4['y'] < ceY['y']) { + cf1['push'](cf3); + } else if (ceY['y'] < ceZ['y'] && cf4['y'] < ceZ['y'] && cf4['y'] > ceY['y']) { + cf1['push'](cf3); + } + } else if (ceY['x'] < ceZ['x'] && cf4['x'] < ceZ['x'] && cf4['x'] > ceY['x']) { + if (ceY['y'] > ceZ['y'] && cf4['y'] > ceZ['y'] && cf4['y'] < ceY['y']) { + cf1['push'](cf3); + } else if (ceY['y'] < ceZ['y'] && cf4['y'] < ceZ['y'] && cf4['y'] > ceY['y']) { + cf1['push'](cf3); + } + } + } + } + cf0 = cf1; + } + cdF['prototype']['load'] = function(cf5, cf6) { + this['setConfig'](cf5); + var cf7 = cf5['id']; + cdB[cf7]['i' + doo(0x8b8) + 'd'] = !![]; + var cf8 = new cdr['Color'](cdB[cf7]['pointColor'][0x0] / 0xff,cdB[cf7]['pointColor'][0x1] / 0xff,cdB[cf7]['pointColor'][0x2] / 0xff,cdB[cf7]['pointColor'][0x3] / 0x1); + var cf9 = new cdr['Color'](cdB[cf7]['pointOutLineColor'][0x0] / 0xff,cdB[cf7][dol(0x1097)][0x1] / 0xff,cdB[cf7]['pointOutLineColor'][0x2] / 0xff,cdB[cf7]['pointOutLineColor'][0x3] / 0x1); + var cfa = new cdr['Color'](cdB[cf7]['lineColor'][0x0] / 0xff,cdB[cf7]['lineColor'][0x1] / 0xff,cdB[cf7]['lineColor'][0x2] / 0xff,cdB[cf7]['lineColor'][0x3] / 0x1); + if (cdB[cf7]['isMultiFloorMode']) { + if (cdr['defined'](cf6) && cf6) { + if (cdB[cf7]['points']['length'] > 0x0 && cdB[cf7]['points']['length'] % 0x3 == 0x0) { + for (let cfb = 0x0; cfb < cdB[cf7]['points'][dol(0x1098)] - 0x1; cfb += 0x3) { + var cfc = [cdB[cf7]['points'][cfb], cdB[cf7]['points'][cfb + 0x1], cdB[cf7][dol(0x1099)][cfb + 0x2]]; + var cfd = 'I' + doo(0x8b9) + '_' + cf7 + '_' + +new Date() + '_' + cfb; + cfr(cfd, cfc, cf8, cf9, cdB[cf7]['pointSize'], cdB[cf7]['maxDistance']); + if (!cdr['defined'](cdB[cf7]['keyPoint'])) { + cdB[cf7]['keyPoint'] = []; + } + cdB[cf7]['keyPoint']['push'](cfd); + } + } + } + ceh(cf7); + } else { + var cfe = function() { + return cdr['Cartesian3']['fromRadiansArray'](cdB[cf7]['points']); + }; + if (cdr['defined'](cf6) && cf6) { + if (cdB[cf7]['points']['length'] > 0x0 && cdB[cf7]['points']['length'] % 0x2 == 0x0) { + for (let cff = 0x0; cff < cdB[cf7]['points'][dol(0x109a)] - 0x1; cff += 0x2) { + var cfc = [cdB[cf7]['points'][cff], cdB[cf7]['points'][cff + 0x1], cdB[cf7][dol(0x109b)]]; + var cfd = 'I' + doo(0x8ba) + '_' + cf7 + '_' + +new Date() + '_' + cff; + cfr(cfd, cfc, cf8, cf9, cdB[cf7][dol(0x109c)], cdB[cf7]['maxDistance']); + if (!cdr['defined'](cdB[cf7]['keyPoint'])) { + cdB[cf7][dol(0x109d)] = []; + } + cdB[cf7]['keyPoint']['push'](cfd); + } + } + } else { + if (cdB[cf7][dol(0x109e)]['length'] > 0x0 && cdB[cf7][dol(0x109f)]['length'] % 0x2 == 0x0) { + for (let cfi = 0x0; cfi < cdB[cf7]['points']['length'] - 0x1; cfi += 0x4) { + var cfc = [cdB[cf7]['points'][cfi], cdB[cf7]['points'][cfi + 0x1], cdB[cf7]['height']]; + var cfd = 'I' + doo(0x8bb) + '_' + cf7 + '_' + +new Date() + '_' + cfi; + cfr(cfd, cfc, cf8, cf9, cdB[cf7]['pointSize'], cdB[cf7][dol(0x10a0)]); + if (!cdr['defined'](cdB[cf7]['keyPoint'])) { + cdB[cf7]['keyPoint'] = []; + } + cdB[cf7]['keyPoint'][dol(0x10a1)](cfd); + } + } + } + if (cdB[cf7]['points']['length'] >= 0x4) { + var cfl = 'I' + doo(0x8bc) + '_' + cf7; + var cfm = cdu['entities']['getById'](cfl); + if (!cdr['defined'](cfm)) { + cfm = cdu['entities']['add']({ + 'name': cfl, + 'id': cfl, + 'corridor': { + 'positions': new cdr['CallbackProperty'](cfe,cep), + 'width': cdB[cf7]['lineWidth'], + 'height': cdB[cf7]['height'], + 'heightReference': cdr['HeightReference']['NONE'], + 'classificationType': cdr['ClassificationType']['CESIUM_3D_TILE'], + 'material': cfa, + 'disableDepthTestDistance': cdB[cf7]['maxDistance'], + 'distanceDisplayCondition': cdB[cf7]['maxDistance'] + } + }); + } + } else { + throw doj(0x2bc); + } + } + cdu['scene']['requestRender'](); + } + ; + cdF['prototype']['delete'] = function(cfn) { + if (cdB[cfn]) { + if (cdr['defined'](cdB[cfn]['keyPoint'])) { + for (let cfo = 0x0; cfo < cdB[cfn]['keyPoint']['length']; cfo++) { + var cfp = cdB[cfn]['keyPoint'][cfo]; + cdu['entities']['removeById'](cfp); + } + } + var cfq = 'I' + doo(0x8bd) + '_' + cfn; + if (cdB[cfn]['isMultiFloorMode']) { + if (cdB[cfn][dol(0x10a2)]) { + cdu['scene'][dol(0x10a3)]['remove'](cdB[cfn]['primitive']); + cdB[cfn]['primitive'] = undefined; + } + } else { + cdu['entities']['removeById'](cfq); + } + delete cdB[cfn]; + cdu['scene']['requestRender'](); + } + } + ; + function cfr(cfs, cft, cfu, cfv, cfw, cfx) { + var cfy = new cdr['Cartesian3'](); + if (cft['length'] == 0x1 && cft[0x0]instanceof cdr['Cartesian3']) { + cft[0x0]['clone'](cfy); + } else { + cfy = cdr['Cartesian3']['fromRadiansArrayHeights'](cft)[0x0]; + } + var cfz = cdu['entities']['add']({ + 'id': cfs, + 'position': cfy, + 'point': { + 'color': cfu, + 'pixelSize': cfw, + 'outlineColor': cfv, + 'outlineWidth': cfw / 0x2, + 'show': !![], + 'distanceDisplayCondition': cfx, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + return cfz; + } + function cfA(cfB, cfC) { + var cfD = cdr[dol(0x10a4)]['normalize'](cdr['Cartesian3'][dol(0x10a5)](cfC, cfB, new cdr['Cartesian3']()), new cdr['Cartesian3']()); + var cfE = new cdr['Ray'](cfB,cfD); + var cfF = cdu['entities']['_entities']['_array']; + var cfG = []; + var cfH = ![]; + if (cfH) { + cfG = cdv['drillPickFromRay'](cfE, 0x1, cfF); + } else { + var cfI = cdv['pickFromRay'](cfE, cfF); + if (cdr['defined'](cfI)) { + cfG = [cfI]; + } + } + return cfG; + } + return cdF; + }(window[dol(0x10a6)] || {}); + GLEInundationAnalysis = function(cfJ) { + var cfK; + var cfL, cfM, cfN, cfO, cfP; + var cfQ; + var cfR = new Map(); + var cfS = this; + var cfT; + function cfU(cfV) { + cfK = cfV; + if (!cfJ['defined'](cfV['viewer'])) + throw doj(0x2bd); + cfL = cfV['viewer']; + this['_viewer'] = cfV[dol(0x10a7)]; + cfM = cfL['scene']; + cfN = cfL['canvas']; + cfO = cfL['camera']; + cfP = cfL['scene']['globe']; + var cfW = cfK['defaults']['container']; + cfQ = document['getElementById'](cfW); + } + cfU['prototype']['addInundationAnalysis'] = function(cfX, cfY) { + var cfZ = cfX['id']; + var cg0 = cfX['floodedArea']; + var cg1 = cfX['initHeight']; + var cg2 = cfX['maxHeight']; + var cg3 = cg1; + var cg4 = cfX['inundationSpeed']; + var cg5 = []; + var cg6 = []; + for (var cg7 = 0x0; cg7 < cg0['length']; cg7++) { + cg5['push'](cfK['Public']['radiansToCartesian3'](cg0[cg7][0x1], cg0[cg7][0x0], cg0[cg7][0x2])); + cg6['push'](cfJ['Math']['toDegrees'](cg0[cg7][0x0]), cfJ['Math']['toDegrees'](cg0[cg7][0x1])); + } + var cg8 = cgc(cg5); + cfT = cg8; + cgU(cg2); + let cg9 = new cfJ['CallbackProperty'](function() { + cg3 += cg4; + if (cg3 > cg2) { + cg3 = cg2; + } + return cg3; + } + ,![]); + let cga = document[dol(0x10a8)]('v' + doo(0x8be) + 'o'); + cga['src'] = cfK['defaults']['sitepath'] + doj(0x2be); + cga['autoplay'] = !![]; + cga['loop'] = !![]; + let cgb = new cfJ['ImageMaterialProperty']({ + 'image': cga, + 'repeat': new cfJ['Cartesian2'](0x1,0x1), + 'transparent': !![], + 'color': cfJ['Color']['fromCssColorString']('#' + doo(0x8bf) + '7') + }); + cfL['entities']['add']({ + 'id': cfZ, + 'name': cfZ, + 'polygon': { + 'hierarchy': cfJ['Cartesian3'][dol(0x10a9)](cg6), + 'perPositionHeight': ![], + 'extrudedHeight': cg9, + 'height': cg1, + 'material': cgb + } + }); + cfL['scene']['requestRender'](); + function cgc(cgd) { + for (var cge = [], cg7 = 0x0; cg7 < cgd['length']; cg7++) + cge['push'](cgd[cg7]['clone']()); + for (var cgg = 0x3a98, cgh = [], cgi = [], cg7 = 0x0; cg7 < cge['length']; cg7++) { + var cgk = cfJ['Cartographic']['fromCartesian'](cge[cg7]) + , cgl = cfK[dol(0x10aa)]['scene']['globe']['getHeight'](cgk); + cgh['push'](cgl), + cgi['push'](cfJ['Cartesian3']['fromRadians'](cgk['longitude'], cgk['latitude'], cgl)), + cgg > cgl && (cgg = cgl); + } + var cgm = Math['PI'] / Math['pow'](0x2, 0xb); + cgm /= 0x40; + for (var cgn, cgo, cgp, cgq, cgr, cgs, cgt, cgu, cgv, cfU, cgk, cgy, cgz = new cfJ['PolygonGeometry']['fromPositions']({ + 'positions': cge, + 'vertexFormat': cfJ['PerInstanceColorAppearance']['FLAT_VERTEX_FORMAT'], + 'granularity': cgm + }), cgA = new cfJ['PolygonGeometry']['createGeometry'](cgz), cgB = 0x0, cgC = 0x0, cgD = 0x0, cgE = [], cgF = [], cg7 = 0x0; cg7 < cgA['indices']['length']; cg7 += 0x3) { + cgn = cgA['indices'][cg7], + cgo = cgA['indices'][cg7 + 0x1], + cgp = cgA['indices'][cg7 + 0x2], + cfU = new cfJ['Cartesian3'](cgA['attributes'][dol(0x10ab)]['values'][0x3 * cgn],cgA['attributes']['position']['values'][0x3 * cgn + 0x1],cgA[dol(0x10ac)]['position']['values'][0x3 * cgn + 0x2]), + cgk = cfJ['Cartographic']['fromCartesian'](cfU), + cgq = cfL['scene']['globe']['getHeight'](cgk), + cgt = cfJ['Cartesian3']['fromRadians'](cgk['longitude'], cgk['latitude'], 0x0), + cgC < cgq && (cgC = cgq), + cgg > cgq && (cgg = cgq), + cfU = new cfJ['Cartesian3'](cgA['attributes'][dol(0x10ad)]['values'][0x3 * cgo],cgA['attributes']['position']['values'][0x3 * cgo + 0x1],cgA['attributes']['position']['values'][0x3 * cgo + 0x2]), + cgk = cfJ[dol(0x10ae)]['fromCartesian'](cfU), + cgr = cfL['scene']['globe']['getHeight'](cgk); + var cgu = cfJ['Cartesian3']['fromRadians'](cgk['longitude'], cgk['latitude'], 0x0); + cgC < cgr && (cgC = cgr), + cgg > cgr && (cgg = cgr), + cfU = new cfJ['Cartesian3'](cgA['attributes']['position']['values'][0x3 * cgp],cgA['attributes']['position']['values'][0x3 * cgp + 0x1],cgA['attributes']['position']['values'][0x3 * cgp + 0x2]), + cgk = cfJ['Cartographic']['fromCartesian'](cfU), + cgs = cfL['scene']['globe']['getHeight'](cgk), + cgv = cfJ['Cartesian3']['fromRadians'](cgk['longitude'], cgk['latitude'], 0x0), + cgC < cgs && (cgC = cgs), + cgg > cgs && (cgg = cgs); + } + for (var cg7 = 0x0; cg7 < cgA[dol(0x10af)]['length']; cg7 += 0x3) { + cgn = cgA['indices'][cg7], + cgo = cgA[dol(0x10b0)][cg7 + 0x1], + cgp = cgA['indices'][cg7 + 0x2], + cfU = new cfJ['Cartesian3'](cgA['attributes'][dol(0x10b1)]['values'][0x3 * cgn],cgA['attributes']['position']['values'][0x3 * cgn + 0x1],cgA[dol(0x10b2)]['position']['values'][0x3 * cgn + 0x2]), + cgk = cfJ['Cartographic']['fromCartesian'](cfU), + cgq = cfL['scene']['globe'][dol(0x10b3)](cgk), + cgt = cfJ['Cartesian3']['fromRadians'](cgk['longitude'], cgk['latitude'], 0x0), + cgC < cgq && (cgC = cgq), + cgg > cgq && (cgg = cgq), + cfU = new cfJ[(dol(0x10b4))](cgA['attributes']['position']['values'][0x3 * cgo],cgA['attributes']['position']['values'][0x3 * cgo + 0x1],cgA[dol(0x10b5)][dol(0x10b6)]['values'][0x3 * cgo + 0x2]), + cgk = cfJ['Cartographic']['fromCartesian'](cfU), + cgr = cfL['scene']['globe']['getHeight'](cgk); + var cgu = cfJ[dol(0x10b7)]['fromRadians'](cgk['longitude'], cgk['latitude'], 0x0); + cgC < cgr && (cgC = cgr), + cgg > cgr && (cgg = cgr), + cfU = new cfJ['Cartesian3'](cgA['attributes']['position']['values'][0x3 * cgp],cgA['attributes']['position']['values'][0x3 * cgp + 0x1],cgA['attributes'][dol(0x10b8)]['values'][0x3 * cgp + 0x2]), + cgk = cfJ['Cartographic'][dol(0x10b9)](cfU), + cgs = cfL['scene']['globe']['getHeight'](cgk), + cgv = cfJ['Cartesian3']['fromRadians'](cgk['longitude'], cgk['latitude'], 0x0), + cgC < cgs && (cgC = cgs), + cgg > cgs && (cgg = cgs), + cgy = cgK(cgt, cgu, cgv), + cgE['push'](cgy), + cgD += cgy, + cgB += cgy * (cgq - cgg + cgr - cgg + cgs - cgg) / 0x3, + cgF[dol(0x10ba)]([cgq, cgr, cgs]); + } + return { + 'positions': cge, + 'minHeight': cgg, + 'maxHeight': cgC, + 'totalCutVolume': cgB, + 'sjareas': cgE, + 'heightArr': cgF, + 'tdHeights': cgh, + 'tdposs': cgi, + 'totalBottomArea': cgD + }; + } + function cgK(cgL, cgM, cg7) { + var cgO = cfJ['Cartesian3']['distance'](cgL, cgM) + , cgP = cfJ[dol(0x10bb)]['distance'](cgM, cg7) + , cgQ = cfJ['Cartesian3']['distance'](cg7, cgL) + , cgR = (cgO + cgP + cgQ) / 0x2; + return Math['sqrt'](cgR * (cgR - cgO) * (cgR - cgP) * (cgR - cgQ)); + } + function cgS(cgT) { + return cgT > 0x2710 ? (cgT / 0x2710)['toFixed'](0x2) + '万' : cgT['toFixed'](0x2); + } + function cgU(cgV) { + var cgW = cgX(cgV); + if (cgW) { + cfY(cgS(cgW['fill'])); + } + } + function cgX(cgY) { + if (cfT) { + for (var cgZ = 0x0, cg7 = 0x0, ch1 = cfT['sjareas'], ch2 = cfT['heightArr'], ch3 = ch1['length'], q = cfT['minHeight'], ch5 = 0x0; ch5 < ch3; ch5++) { + var ch6 = ch2[ch5][0x0] + , ch7 = ch2[ch5][0x1] + , ch8 = ch2[ch5][0x2]; + ch6 > cgY && (ch6 = cgY), + ch7 > cgY && (ch7 = cgY), + ch8 > cgY && (ch8 = cgY), + !ch6 && 0x0 != ch6 || !ch7 && 0x0 != ch7 || !ch8 && 0x0 != ch8 || (cgZ += ch1[ch5] * (ch6 - q + ch7 - q + ch8 - q) / 0x3, + cg7 += ch1[ch5] * (cgY - q)); + } + if (cgY < q) + var ch9 = 0x0; + else + var ch9 = cg7 - cgZ; + return { + 'fill': ch9, + 'dig': cfT['totalCutVolume'] - cgZ + }; + } + } + } + ; + cfU['prototype']['removeInundationAnalysis'] = function(chb) { + cfL['entities']['removeById'](chb); + cfL[dol(0x10bc)]['requestRender'](); + } + ; + return cfU; + }(window['Cesium'] || {}); + ;GLELabelingSystem = function(chc) { + var chd = 'L' + doo(0x8c0) + 'm'; + var che = { + 'tag': chd, + 'continuable': ![], + 'onDraw': function(chf) {}, + 'onUndo': function(chg) {}, + 'onRedo': function(chh) {} + }; + var chi; + var chj = []; + var chk = []; + var chl = 0x0; + var chm; + var chn; + var cho = []; + function chp(chq, chr) { + this['_API'] = chq; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + chi = this; + ciu(chi, chr); + chs(); + } + chp['DrawMode'] = chp['prototype']['DrawMode'] = { + 'DrawArrow': 0x101, + 'DrawCircular': 0x102, + 'DrawEllipse': 0x103, + 'DrawLine': 0x104, + 'DrawPolygon': 0x105, + 'DrawRect': 0x106, + 'DrawWords': 0x107 + }; + function chs() { + chi['dataSource'] = new chc['CustomDataSource'](chi['configure']['tag'] || chd); + chi['_viewer']['dataSources']['add'](chi[dol(0x10bd)]); + } + chp['prototype']['updateDrawConfigures'] = function(cht, chu) { + this['getTaskById'](cht, function(chv) { + if (chv && chv['length'] > 0x0) { + var chw = chv[0x0]; + if (!chw) + return; + chw['updateConfigures'](chu); + if (chw['isTmp']) + ciz(chm['options'], chu); + } + }); + } + ; + chp['prototype']['zoomTo'] = function(chx, chy) { + var chi = this; + this['getTaskById'](chx, function(chA) { + if (chA && chA['length'] > 0x0) { + var chB = chA[0x0]; + if (!chB || chB['isTmp']) + return; + var chC = new chc['BoundingSphere'](); + var chD = chi['_viewer']['_dataSourceDisplay']['getBoundingSphere'](chB['entity'], ![], chC); + if (chD === chc['BoundingSphereState']['DONE']) { + chi['_camera']['flyToBoundingSphere'](chC, { + 'duration': chy, + 'offset': new chc['HeadingPitchRange'](0x0,-Math['PI'] * 0.5,chC['radius'] * 0x5) + }); + } + } + }); + } + ; + chp['prototype']['setDrawMode'] = function(chE) { + var chi = this; + if (!chE || !chE['drawMode']) { + return console['error']('无' + doo(0x8c1) + '数'); + } + chm = chE; + return this['next'](); + } + ; + chp['prototype']['next'] = function() { + var chi = this; + if (!chm) { + return; + } + var chH; + switch (chm['drawMode']) { + case this['DrawMode']['DrawArrow']: + case 'D' + doo(0x8c2) + 'w': + chH = new cl0(ciH(),chm['options']); + break; + case this['DrawMode'][dol(0x10be)]: + case 'D' + doo(0x8c3) + 'r': + chH = new cjI(ciH(),chm['options']); + break; + case this['DrawMode']['DrawEllipse']: + case 'D' + doo(0x8c4) + 'e': + chH = new ck4(ciH(),chm['options']); + break; + case this['DrawMode']['DrawLine']: + case 'D' + doo(0x8c5) + 'e': + chH = new ckF(ciH(),chm['options']); + break; + case this['DrawMode']['DrawPolygon']: + case 'D' + doo(0x8c6) + 'n': + chH = new cjp(ciH(),chm['options']); + break; + case this['DrawMode']['DrawRect']: + case 'D' + doo(0x8c7) + 't': + chH = new cj4(ciH(),chm['options']); + break; + case this['DrawMode']['DrawWords']: + case 'D' + doo(0x8c8) + 's': + chH = new cll(ciH(),chm['options']); + break; + default: + break; + } + if (!chH) + return; + chi[dol(0x10bf)]['Public']['clearHandler'](); + chH['draw'](); + chn = chH; + return chH['params']; + } + ; + chp['prototype'][dol(0x10c0)] = function() { + var chi = this; + if (chk['length'] <= 0x0) + return; + var chJ = chk['pop'](); + chj['push'](chJ); + if (!chJ) + return; + chJ['redo'](); + chi['_viewer']['scene']['requestRender'](); + } + ; + chp['prototype']['undo'] = function() { + var chi = this; + if (chj['length'] <= 0x0) + return; + var chL = chj['pop'](); + chk['push'](chL); + if (!chL) + return; + chL['undo'](); + chi['_viewer']['scene']['requestRender'](); + } + ; + chp['prototype']['finish'] = function() { + var chi = this; + if (chn && chn['finish']) { + chn['finish'](); + } + chi['_viewer']['scene']['requestRender'](); + } + ; + chp['prototype']['delete'] = function(chN) { + var chi = this; + chN = chN['substring'](chN['indexOf']('^') + 0x1); + var chP = chj['filter'](function(chQ) { + return chQ['id'] == chN; + }); + var chR = chk['filter'](function(chS) { + return chS['id'] == chN; + }); + if (chP['length'] > 0x0) { + for (var chT = 0x0; chT < chP['length']; chT++) { + var chU = chP[chT]; + for (var chV = 0x0; chV < chj['length']; chV++) { + var chW = chj[chV]; + if (chU['id'] == chW['id']) { + chj['splice'](chV, 0x1); + break; + } + } + if (chU) + chU['undo'](); + } + } + if (chR['length'] > 0x0) { + for (var chT = 0x0; chT < chR['length']; chT++) { + var chU = chR[chT]; + for (var chV = 0x0; chV < chk['length']; chV++) { + var chW = chk[chV]; + if (chU['id'] == chW['id']) { + chk['splice'](chV, 0x1); + break; + } + } + if (chU) + chU['undo'](); + } + } + chi['_viewer']['scene']['requestRender'](); + } + ; + chp['prototype']['getById'] = function(ci1, ci2) { + ci1 = ci1['substring'](ci1['indexOf']('^') + 0x1); + var ci3 = []; + for (var ci4 = 0x0; ci4 < chj[dol(0x10c1)]; ci4++) { + var ci5 = chj[ci4]; + if (ci5['id'] == ci1) { + ci3['push'](ci5['params']); + } + } + if (ci3['length'] == 0x0) { + for (var ci4 = 0x0; ci4 < cho['length']; ci4++) { + var ci5 = cho[ci4]; + if (ci5['id'] == ci1) { + ci3['push'](ci5['params']); + } + } + } + if (ci2) + ci2(ci3); + } + ; + chp['prototype']['getTaskById'] = function(ci8, ci9) { + ci8 = ci8['substring'](ci8['indexOf']('^') + 0x1); + var cia = []; + for (var cib = 0x0; cib < chj['length']; cib++) { + var cic = chj[cib]; + if (cic['id'] == ci8) { + cia['push'](cic); + } + } + if (cia['length'] == 0x0) { + for (var cib = 0x0; cib < cho['length']; cib++) { + var cic = cho[cib]; + if (cic['id'] == ci8) { + cia['push'](cic); + } + } + } + if (ci9) + ci9(cia); + } + ; + chp[dol(0x10c2)]['save'] = function(cif) { + var chi = this; + var cih = []; + for (var cii = 0x0; cii < chj['length']; cii++) { + var cij = chj[cii]; + cih['push'](cij['params']); + } + if (cif) + cif(cih); + } + ; + chp['prototype']['restore'] = function(cik) { + var chi = this; + this['clearAll'](); + if (!Array['isArray'](cik)) { + cik = cik['replaceAll']('\x0a', doh(0x11a)); + cik = JSON['parse'](cik); + } + if (!cik || cik['length'] < 0x1) + return; + for (var cim = 0x0; cim < cik['length']; cim++) { + var cin = cik[cim]; + var cio; + var cip = cin['drawMode']; + var ciq = cin['id']; + switch (cip) { + case this['DrawMode']['DrawArrow']: + case 'D' + doo(0x8c9) + 'w': + cio = new cl0(ciq,cin); + break; + case this['DrawMode']['DrawCircular']: + case 'D' + doo(0x8ca) + 'r': + cio = new cjI(ciq,cin); + break; + case this['DrawMode']['DrawEllipse']: + case 'D' + doo(0x8cb) + 'e': + cio = new ck4(ciq,cin); + break; + case this['DrawMode']['DrawLine']: + case 'D' + doo(0x8cc) + 'e': + cio = new ckF(ciq,cin); + break; + case this['DrawMode']['DrawPolygon']: + case 'D' + doo(0x8cd) + 'n': + cio = new cjp(ciq,cin); + break; + case this['DrawMode']['DrawRect']: + case 'D' + doo(0x8ce) + 't': + cio = new cj4(ciq,cin); + break; + case this['DrawMode']['DrawWords']: + case 'D' + doo(0x8cf) + 's': + cio = new cll(ciq,cin); + break; + default: + break; + } + if (!cio) + return; + cio['redo'](); + chj['push'](cio); + } + chi['_viewer']['scene']['requestRender'](); + } + ; + chp['prototype']['clearAll'] = function() { + var chi = this; + for (var cis = 0x0; cis < chj['length']; cis++) { + var cit = chj[cis]; + cit['undo'](); + } + chj['length'] = 0x0; + chk['length'] = 0x0; + chi['_viewer'][dol(0x10c3)]['requestRender'](); + } + ; + function ciu(chi, ciw) { + chi['configure'] = {}; + chi['configure'] = chi['_API']['funcPublic']['deepCopy'](che); + ciz(chi['configure'], ciw); + } + chp['prototype']['updateConfigures'] = function(cix) { + var chi = this; + ciz(chi['configure'], cix); + } + ; + function ciz(ciA, ciB) { + for (var ciC in ciB) + if (ciB[dol(0x10c4)](ciC)) { + if (Array[dol(0x10c5)](ciB[ciC])) { + ciA[ciC] = []; + ciA[ciC] = ciA[ciC]['concat'](ciB[ciC]); + } else if (ciF(ciB[ciC])) { + ciA[ciC] = ciB[ciC]; + } else if (typeof ciB[ciC] === 'f' + doo(0x8d0) + 'n') { + ciA[ciC] = ciB[ciC]; + } else { + ciA[ciC] = ciz(ciA[ciC], ciB[ciC]); + } + } + return ciA; + } + function ciD(ciE) { + chi['_API']['viewer']['scene']['screenSpaceCameraController']['enableLook'] = ciE; + chi['_API']['viewer']['scene'][dol(0x10c6)]['enableRotate'] = ciE; + chi['_API']['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + chi[dol(0x10c7)]['viewer']['scene']['screenSpaceCameraController'][dol(0x10c8)] = ciE; + chi['_API']['viewer']['scene']['screenSpaceCameraController']['enableZoom'] = ciE; + } + function ciF(ciG) { + return typeof ciG === 's' + doo(0x8d1) + 'g' || typeof ciG === 'n' + doo(0x8d2) + 'r' || typeof ciG === 'b' + doo(0x8d3) + 'n' || typeof ciG === 'u' + doo(0x8d4) + 'd' || ciG === null; + } + function ciH() { + return doj(0x2bf)['replace'](/[xy]/g, function(ciI) { + var ciJ = Math['random']() * 0x10 | 0x0 + , ciK = ciI == 'x' ? ciJ : ciJ & 0x3 | 0x8; + return ciK['toString'](0x10); + }); + } + var ciL = function(ciM, ciN, ciO, ciP, ciQ, ciR) { + this['id'] = ciM; + this['drawFun'] = ciN; + this['doFun'] = ciO; + this['undoFun'] = ciP; + this['redoFun'] = ciQ; + this['updateConfigures'] = ciR; + }; + ciL['prototype']['draw'] = function(ciS) { + var chi = this; + if (this['drawFun']) { + if (cho['length'] > 0x0) { + for (var ciU = 0x0; ciU < cho['length']; ciU++) { + var ciV = cho[ciU]; + if (ciV) { + ciV['undo'](); + } + } + cho['length'] = 0x0; + } + this['drawFun']()['then'](function(ciW) { + chi['finish'](ciW); + }); + } + } + ; + ciL['prototype']['finish'] = function(ciX) { + var ciY = chc['defined'](ciX); + var ciZ = function(ciX) { + if (chi['configure'][dol(0x10c9)]) + chi['configure']['onDraw'](ciX['params']); + chj['push'](ciX); + chk['length'] = 0x0; + if (cho['length'] > 0x0) { + for (var cj1 = 0x0; cj1 < cho['length']; cj1++) { + var cj2 = cho[cj1]; + if (cj2['id'] != ciX['id']) { + cj2[dol(0x10ca)](); + } + } + cho[dol(0x10cb)] = 0x0; + } + if (ciY && chi['configure']['continuable']) + chi['next'](); + }; + if (ciY) { + ciZ(ciX); + return; + } + if (this['finishFun']) { + this['finishFun'](function(ciX) { + ciZ(ciX); + }); + } + if (!ciY && chn) { + chn = undefined; + chi[dol(0x10cc)]['Public'][dol(0x10cd)](); + if (chi['_API']['isMobile']()) + ciD(!![]); + } + } + ; + ciL['prototype']['do'] = function() { + if (this['doFun']) + this['doFun'](); + } + ; + ciL['prototype']['undo'] = function() { + if (this['undoFun']) + this['undoFun'](); + if (chi['configure']['onUndo']) + chi['configure']['onUndo'](this['params']); + } + ; + ciL['prototype']['redo'] = function() { + if (this['redoFun']) + this['redoFun'](); + if (chi[dol(0x10ce)]['onRedo']) + chi['configure'][dol(0x10cf)](this['params']); + } + ; + ciL['prototype']['updateConfigures'] = function() { + if (this['updateConfigures']) + this['updateConfigures'](); + } + ; + var cj4 = function(cj5, cj6) { + this['drawMode'] = 'D' + doo(0x8d5) + 't'; + this['params'] = { + 'id': cj5, + 'drawMode': this['drawMode'] + }; + this['points'] = []; + cj6['LabelingLayer'] = ++chl; + ciz(this['params'], cj6); + ciL['call'](this, this['params']['id'], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + cj4['prototype'] = Object['create'](ciL['prototype']); + cj4['prototype']['constructor'] = cj4; + cj4['prototype']['drawFun'] = function() { + var cj7 = this; + return new Promise(function(cj8, cj9) { + var cja = 0x0; + if (chi['_API']['isMobile']()) { + chi['_API'][dol(0x10d0)]['event']('L' + doo(0x8d6) + 'N', function(cjb) { + chi['_API']['Public']['pickupCoordinate'](cjb['position'], function(cjc) { + cjc[0x2] = cj7[dol(0x10d1)]['LabelingLayer']; + if (cja == 0x0) { + cja++; + cj7['points'] = cj7['points']['concat'](cjc); + cj7['points'] = cj7['points']['concat'](cjc); + } + cj7['_addEntity'](); + if (chi['_API'][dol(0x10d2)]()) + ciD(![]); + }); + }); + chi['_API'][dol(0x10d3)]['event']('L' + doo(0x8d7) + 'P', function(cjd) { + chi['_API']['Public']['pickupCoordinate'](cjd['position'], function(cje) { + cje[0x2] = cj7['params']['LabelingLayer']; + if (cja == 0x1) { + cja++; + cj7['points'] = [cj7['points'][0x0], cj7['points'][0x1], cj7['points'][0x2], cj7['points'][0x0], cje[0x1], cj7['points'][0x2], cje[0x0], cje[0x1], cj7['points'][0x2], cje[0x0], cj7['points'][0x1], cj7['points'][0x2], cj7['points'][0x0], cj7['points'][0x1], cj7['points'][0x2], cj7['points'][0x0], cje[0x1], cj7['points'][0x2]]; + var cjf = []['concat'](cj7['points']); + cjf['length'] = 0xc; + cj7[dol(0x10d4)]['points'] = cjf; + cj8(cj7); + chi['_API']['Public']['clearHandler']('L' + doo(0x8d8) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x8d9) + 'E'); + } + if (chi['_API']['isMobile']()) + ciD(!![]); + }); + }); + } else { + chi['_API']['Public']['event']('L' + doo(0x8da) + 'K', function(cjg) { + chi['_API']['Public'][dol(0x10d5)](cjg['position'], function(cjh) { + cjh[0x2] = cj7['params']['LabelingLayer']; + if (cja == 0x0) { + if (chi['_API']['isMobile']()) + ciD(![]); + cja++; + cj7['points'] = cj7['points']['concat'](cjh); + cj7['points'] = cj7['points']['concat'](cjh); + } else if (cja == 0x1) { + cja++; + cj7[dol(0x10d6)] = [cj7['points'][0x0], cj7['points'][0x1], cj7['points'][0x2], cj7[dol(0x10d7)][0x0], cjh[0x1], cj7['points'][0x2], cjh[0x0], cjh[0x1], cj7['points'][0x2], cjh[0x0], cj7[dol(0x10d8)][0x1], cj7['points'][0x2], cj7['points'][0x0], cj7['points'][0x1], cj7['points'][0x2], cj7[dol(0x10d9)][0x0], cjh[0x1], cj7['points'][0x2]]; + var cji = []['concat'](cj7[dol(0x10da)]); + cji['length'] = 0xc; + cj7['params']['points'] = cji; + cj8(cj7); + chi['_API']['Public']['clearHandler']('L' + doo(0x8db) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x8dc) + 'E'); + if (chi['_API']['isMobile']()) + ciD(!![]); + } + cj7['_addEntity'](); + }); + }); + } + chi['_API']['Public']['event']('M' + doo(0x8dd) + 'E', function(cjj) { + if (cja != 0x1) { + return; + } + chi[dol(0x10db)]['Public']['pickupCoordinate'](cjj['endPosition'], function(cjk) { + cjk[0x2] = cj7['params']['LabelingLayer']; + cj7['points'] = [cj7['points'][0x0], cj7['points'][0x1], cj7['points'][0x2], cj7['points'][0x0], cjk[0x1], cj7['points'][0x2], cjk[0x0], cjk[0x1], cj7['points'][0x2], cjk[0x0], cj7['points'][0x1], cj7['points'][0x2], cj7['points'][0x0], cj7['points'][0x1], cj7[dol(0x10dc)][0x2], cj7['points'][0x0], cjk[0x1], cj7[dol(0x10dd)][0x2]]; + }); + }); + } + ); + } + ; + cj4['prototype']['doFun'] = function() {} + ; + cj4['prototype']['undoFun'] = function() { + chi[dol(0x10de)]['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + cj4['prototype']['redoFun'] = function() { + var cjl = this; + cjl['points'] = cjl['params']['points']; + cjl['points']['push'](cjl['params'][dol(0x10df)][0x0], cjl['params']['points'][0x1], cjl[dol(0x10e0)]['points'][0x2], cjl['params']['points'][0x0], cjl['params']['points'][0x1], cjl['params']['points'][0x2]); + if (cjl['entity']) { + chi['dataSource']['entities']['removeById'](cjl['id']); + } + cjl['_addEntity'](); + } + ; + cj4['prototype']['_addEntity'] = function() { + var cjm = this; + if (!cjm[dol(0x10e1)]) + cjm['entity'] = chi['dataSource']['entities']['add']({ + 'name': cjm['id'], + 'id': cjm['id'], + 'polygon': { + 'hierarchy': new chc['CallbackProperty'](function() { + return { + 'positions': chc['Cartesian3']['fromRadiansArrayHeights'](cjm['points']) + }; + } + ,![]), + 'height': new chc['CallbackProperty'](function() { + return cjm['params']['LabelingLayer']; + } + ,![]), + 'material': new chc[(dol(0x10e2))](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](cjm['params']['fillColor'], '#' + doo(0x8de) + '0')); + } + ,![])), + 'fill': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjm['params']['fill'], !![]); + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjm['params'][dol(0x10e3)], !![]); + } + ,![]), + 'zIndex': new chc['CallbackProperty'](function() { + return cjm['params']['LabelingLayer']; + } + ,![]), + 'outline': ![] + }, + 'polyline': { + 'positions': new chc['CallbackProperty'](function() { + return chc['Cartesian3'][dol(0x10e4)](cjm[dol(0x10e5)]); + } + ,![]), + 'material': new chc['ColorMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc[dol(0x10e6)](cjm['params']['outlineColor'], '#' + doo(0x8df) + '0')); + } + ,![])), + 'width': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjm['params']['outlineWidth'], 0x1); + } + ,![]), + 'zIndex': new chc['CallbackProperty'](function() { + return cjm['params']['LabelingLayer'] + 0x1; + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjm['params']['outline'], !![]); + } + ,![]) + } + }); + } + ; + cj4['prototype']['updateConfigures'] = function(cjn) { + var cjo = this; + ciz(this['params'], cjn); + } + ; + var cjp = function(cjq, cjr) { + this['drawMode'] = 'D' + doo(0x8e0) + 'n'; + this['params'] = { + 'id': cjq, + 'drawMode': this['drawMode'] + }; + this['points'] = []; + cjr['LabelingLayer'] = ++chl; + ciz(this['params'], cjr); + ciL['call'](this, this['params'][dol(0x10e7)], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + cjp['prototype'] = Object[dol(0x10e8)](ciL['prototype']); + cjp['prototype']['constructor'] = cjp; + cjp[dol(0x10e9)]['drawFun'] = function() { + var cjs = this; + return new Promise(function(cjt, cju) { + var cjv = 0x0; + cjs[dol(0x10ea)] = 0x0; + chi['_API']['Public']['event']('L' + doo(0x8e1) + 'K', function(cjw) { + chi['_API']['Public']['pickupCoordinate'](cjw['position'], function(cjx) { + cjx[0x2] = cjs['params']['LabelingLayer']; + cjv = 0x1; + if (cjs['points']['length'] == 0x0) { + cjs['points'] = cjs['points']['concat'](cjx); + cjs['isSelect'] = 0x1; + if (chi['_API']['isMobile']()) + ciD(![]); + } else { + if (cjs[dol(0x10eb)] == 0x0 && cjs['points']['length'] > 0x6) { + cjs[dol(0x10ec)]['length'] -= 0x6; + } + cjs[dol(0x10ed)]['push'](cjx[0x0], cjx[0x1], cjs['points'][0x2]); + cjs['points']['push'](cjs['points'][0x0], cjs['points'][0x1], cjs['points'][0x2]); + cjs['isSelect'] = 0x1; + } + cjs['_addEntity'](); + }); + }); + chi['_API'][dol(0x10ee)]['event']('M' + doo(0x8e2) + 'E', function(cjy) { + if (cjv != 0x1) { + return; + } + chi['_API']['Public']['pickupCoordinate'](cjy['endPosition'], function(cjz) { + cjz[0x2] = cjs['params'][dol(0x10ef)]; + if (cjs['points']['length'] > 0x3 && cjs['isSelect'] == 0x1) { + cjs['points']['length'] -= 0x3; + } else if (cjs['points']['length'] > 0x6 && cjs['isSelect'] == 0x0) { + cjs['points']['length'] -= 0x6; + } + cjs['points']['push'](cjz[0x0], cjz[0x1], cjs['points'][0x2]); + cjs[dol(0x10f0)]['push'](cjs[dol(0x10f1)][0x0], cjs['points'][0x1], cjs['points'][0x2]); + cjs['isSelect'] = 0x0; + }); + }); + chi['_API']['Public']['event']('R' + doo(0x8e3) + 'K', function(cjA) { + if (cjv != 0x1) { + return; + } + cjv = 0x2; + cjs['finishFun'](); + cjt(cjs); + }); + } + ); + } + ; + cjp['prototype']['finishFun'] = function(cjB) { + var cjC = this; + if (cjC['points']['length'] > 0x3 && cjC['isSelect'] == 0x1) { + cjC['points']['length'] -= 0x3; + } else if (cjC['points']['length'] > 0x6 && cjC[dol(0x10f2)] == 0x0) { + cjC['points'][dol(0x10f3)] -= 0x6; + } + var cjD = [][dol(0x10f4)](cjC['points']); + cjC['points']['push'](cjC['points'][0x0], cjC['points'][0x1], cjC['points'][0x2]); + cjC['params']['points'] = cjD; + if (cjB) + cjB(cjC); + chi['_API']['Public']['clearHandler']('L' + doo(0x8e4) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x8e5) + 'E'); + chi['_API'][dol(0x10f5)]['clearHandler']('R' + doo(0x8e6) + 'K'); + if (chi['_API']['isMobile']()) + ciD(!![]); + } + ; + cjp['prototype']['doFun'] = function() {} + ; + cjp['prototype']['undoFun'] = function() { + chi['dataSource']['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + cjp['prototype']['redoFun'] = function() { + var cjE = this; + cjE[dol(0x10f6)] = cjE['params']['points']; + cjE['points']['push'](cjE['params']['points'][0x0], cjE['params']['points'][0x1], cjE['params']['points'][0x2]); + cjE['_addEntity'](); + } + ; + cjp['prototype']['_addEntity'] = function() { + var cjF = this; + if (!cjF['entity']) + cjF['entity'] = chi['dataSource']['entities']['add']({ + 'name': cjF['id'], + 'id': cjF['id'], + 'polygon': { + 'hierarchy': new chc['CallbackProperty'](function() { + return { + 'positions': chc['Cartesian3']['fromRadiansArrayHeights'](cjF['points']) + }; + } + ,![]), + 'height': 0x0, + 'material': new chc['ColorMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color'][dol(0x10f7)](chc['defaultValue'](cjF[dol(0x10f8)][dol(0x10f9)], '#' + doo(0x8e7) + '0')); + } + ,![])), + 'fill': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjF['params']['fill'], !![]); + } + ,![]), + 'show': new chc[(dol(0x10fa))](function() { + return chc['defaultValue'](cjF['params']['show'], !![]); + } + ,![]), + 'zIndex': new chc['CallbackProperty'](function() { + return cjF['params']['LabelingLayer']; + } + ,![]), + 'outline': ![] + }, + 'polyline': { + 'positions': new chc['CallbackProperty'](function() { + return chc['Cartesian3']['fromRadiansArrayHeights'](cjF['points']); + } + ,![]), + 'material': new chc['ColorMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](cjF['params']['outlineColor'], '#' + doo(0x8e8) + '0')); + } + ,![])), + 'width': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjF['params']['outlineWidth'], 0x1); + } + ,![]), + 'zIndex': new chc['CallbackProperty'](function() { + return cjF['params'][dol(0x10fb)] + 0x1; + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cjF['params']['outline'], !![]); + } + ,![]) + } + }); + } + ; + cjp['prototype']['updateConfigures'] = function(cjG) { + var cjH = this; + ciz(this['params'], cjG); + } + ; + var cjI = function(cjJ, cjK) { + this['drawMode'] = 'D' + doo(0x8e9) + 'r'; + this['params'] = { + 'id': cjJ, + 'drawMode': this['drawMode'] + }; + this['center'] = undefined; + this['radius'] = 0x0; + cjK['LabelingLayer'] = ++chl; + ciz(this['params'], cjK); + ciL['call'](this, this['params']['id'], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + cjI['prototype'] = Object['create'](ciL['prototype']); + cjI['prototype']['constructor'] = cjI; + cjI['prototype']['drawFun'] = function() { + var cjL = this; + return new Promise(function(cjM, cjN) { + var cjO = 0x0; + if (chi['_API']['isMobile']()) { + chi['_API']['Public']['event']('L' + doo(0x8ea) + 'N', function(cjP) { + chi['_API']['Public']['pickupCoordinate'](cjP['position'], function(cjQ) { + cjQ[0x2] = cjL[dol(0x10fc)]['LabelingLayer']; + if (!cjL['center']) { + cjL['center'] = []['concat'](cjQ); + cjL['centerC3'] = new chc['Cartesian3']['fromRadians'](cjL[dol(0x10fd)][0x0],cjL[dol(0x10fe)][0x1],cjL['center'][0x2]); + cjO = 0x1; + } + cjL['_addEntity'](); + if (chi['_API']['isMobile']()) + ciD(![]); + }); + }); + chi['_API']['Public']['event']('L' + doo(0x8eb) + 'P', function(cjR) { + chi[dol(0x10ff)]['Public'][dol(0x1100)](cjR['position'], function(cjS) { + cjS[0x2] = cjL['params']['LabelingLayer']; + if (cjL['center']) { + var cjT = new chc['Cartesian3']['fromRadians'](cjS[0x0],cjS[0x1],cjS[0x2]); + cjL['radius'] = chc['Cartesian3']['distance'](cjL['centerC3'], cjT); + cjO = 0x2; + cjL[dol(0x1101)]['center'] = cjL['center']; + cjL['params']['radius'] = cjL['radius']; + cjM(cjL); + chi[dol(0x1102)]['Public']['clearHandler']('L' + doo(0x8ec) + 'K'); + chi[dol(0x1103)]['Public']['clearHandler']('M' + doo(0x8ed) + 'E'); + } + if (chi['_API']['isMobile']()) + ciD(!![]); + }); + }); + } else { + chi['_API'][dol(0x1104)]['event']('L' + doo(0x8ee) + 'K', function(cjU) { + chi['_API']['Public']['pickupCoordinate'](cjU['position'], function(cjV) { + cjV[0x2] = cjL['params']['LabelingLayer']; + if (!cjL['center']) { + cjL['center'] = []['concat'](cjV); + cjL[dol(0x1105)] = new chc['Cartesian3']['fromRadians'](cjL['center'][0x0],cjL[dol(0x1106)][0x1],cjL['center'][0x2]); + cjO = 0x1; + if (chi[dol(0x1107)]['isMobile']()) + ciD(![]); + } else { + var cjW = new chc['Cartesian3']['fromRadians'](cjV[0x0],cjV[0x1],cjV[0x2]); + cjL['radius'] = chc['Cartesian3']['distance'](cjL['centerC3'], cjW); + cjO = 0x2; + cjL['params']['center'] = cjL[dol(0x1108)]; + cjL['params']['radius'] = cjL['radius']; + cjM(cjL); + chi['_API']['Public']['clearHandler']('L' + doo(0x8ef) + 'K'); + chi[dol(0x1109)]['Public']['clearHandler']('M' + doo(0x8f0) + 'E'); + if (chi['_API']['isMobile']()) + ciD(!![]); + } + cjL[dol(0x110a)](); + }); + }); + } + chi['_API']['Public']['event']('M' + doo(0x8f1) + 'E', function(cjX) { + if (cjO != 0x1) { + return; + } + chi['_API']['Public']['pickupCoordinate'](cjX['endPosition'], function(cjY) { + cjY[0x2] = cjL['params']['LabelingLayer']; + var cjZ = new chc['Cartesian3'][(dol(0x110b))](cjY[0x0],cjY[0x1],cjY[0x2]); + cjL['radius'] = chc['Cartesian3']['distance'](cjL['centerC3'], cjZ); + }); + }); + } + ); + } + ; + cjI['prototype']['doFun'] = function() {} + ; + cjI['prototype']['undoFun'] = function() { + chi['dataSource']['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + cjI['prototype']['redoFun'] = function() { + var ck0 = this; + ck0['center'] = ck0['params']['center']; + ck0['radius'] = ck0['params'][dol(0x110c)]; + ck0['_addEntity'](); + } + ; + cjI['prototype']['_addEntity'] = function() { + var ck1 = this; + if (!ck1[dol(0x110d)]) { + ck1['entity'] = chi['dataSource']['entities']['add']({ + 'position': new chc['CallbackProperty'](function() { + return new chc['Cartesian3']['fromRadians'](ck1['center'][0x0],ck1['center'][0x1],ck1['center'][0x2]); + } + ,![]), + 'name': ck1['id'], + 'id': ck1['id'], + 'ellipse': { + 'height': 0x0, + 'outline': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ck1['params']['outline'], !![]); + } + ,![]), + 'fill': new chc['CallbackProperty'](function() { + return chc[dol(0x110e)](ck1['params'][dol(0x110f)], !![]); + } + ,![]), + 'material': new chc['ColorMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](ck1['params']['fillColor'], '#' + doo(0x8f2) + '0')); + } + ,![])), + 'outlineColor': new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](ck1['params']['outlineColor'], '#' + doo(0x8f3) + '0')); + } + ,![]), + 'outlineWidth': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ck1[dol(0x1110)]['outlineWidth'], 0x1); + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ck1['params']['show'], !![]); + } + ,![]) + } + }); + ck1['entity']['ellipse']['semiMajorAxis'] = new chc['CallbackProperty'](function() { + return ck1['radius']; + } + ,![]); + ck1['entity']['ellipse']['semiMinorAxis'] = new chc['CallbackProperty'](function() { + return ck1['radius']; + } + ,![]); + } + } + ; + cjI['prototype']['updateConfigures'] = function(ck2) { + var ck3 = this; + ciz(this['params'], ck2); + } + ; + var ck4 = function(ck5, ck6) { + this['drawMode'] = 'D' + doo(0x8f4) + 'e'; + this['params'] = { + 'id': ck5, + 'drawMode': this['drawMode'] + }; + this['point'] = []; + this['center'] = []; + this['semiMajorAxis'] = 0x0; + this['semiMinorAxis'] = 0x0; + this['rotation'] = 0x0; + ck6['LabelingLayer'] = ++chl; + ciz(this['params'], ck6); + ciL[dol(0x1111)](this, this['params']['id'], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + ck4['prototype'] = Object['create'](ciL['prototype']); + ck4['prototype']['constructor'] = ck4; + ck4['prototype'][dol(0x1112)] = function() { + var ck7 = this; + return new Promise(function(ck8, ck9) { + var cka = 0x0; + if (chi['_API']['isMobile']()) { + chi['_API']['Public'][dol(0x1113)]('L' + doo(0x8f5) + 'N', function(ckb) { + chi['_API']['Public']['pickupCoordinate'](ckb['position'], function(ckc) { + ckc[0x2] = ck7['params'][dol(0x1114)]; + if (cka == 0x0) { + ck7['point'] = ck7['point']['concat'](ckc); + ck7[dol(0x1115)] = ck7['center']['concat'](ckc); + cka = 0x1; + if (chi['_API']['isMobile']()) + ciD(![]); + if (chi['_API'][dol(0x1116)]()) + ciD(![]); + } + ck7['_addEntity'](); + if (chi['_API']['isMobile']()) + ciD(![]); + }); + }); + chi['_API']['Public']['event']('L' + doo(0x8f6) + 'P', function(ckd) { + chi[dol(0x1117)]['Public'][dol(0x1118)](ckd['position'], function(cke) { + cke[0x2] = ck7[dol(0x1119)]['LabelingLayer']; + if (cka == 0x1) { + ck7['point'][0x3] = cke[0x0]; + ck7['point'][0x4] = cke[0x1]; + ck7['point'][0x5] = cke[0x2]; + var ckf = new chc['Cartesian3']['fromRadians'](ck7[dol(0x111a)][0x0],ck7['point'][0x1],ck7['point'][0x2]); + var ckg = new chc['Cartesian3']['fromRadians'](ck7['point'][0x3],ck7['point'][0x4],ck7['point'][0x2]); + var ckh = new chc['Cartesian3']['fromRadians'](ck7['point'][0x0],ck7['point'][0x4],ck7['point'][0x2]); + var cki = new chc['Cartesian3']['fromRadians'](ck7['point'][0x3],ck7['point'][0x1],ck7['point'][0x2]); + var ckj = chc['Cartesian3']['distance'](ckg, ckh); + var ckk = chc['Cartesian3']['distance'](ckf, ckh); + ck7['semiMajorAxis'] = Math['max'](ckj, ckk); + ck7['semiMinorAxis'] = Math['min'](ckj, ckk); + ck7['rotation'] = ckj > ckk ? 0x0 : Math['PI'] * 0.5; + cka = 0x2; + ck7['params']['center'] = ck7['center']; + ck7['params'][dol(0x111b)] = ck7[dol(0x111c)]; + ck7['params']['rotation'] = ck7['rotation']; + ck7['params']['semiMajorAxis'] = ck7['semiMajorAxis']; + ck7['params']['semiMinorAxis'] = ck7['semiMinorAxis']; + ck8(ck7); + chi['_API']['Public']['clearHandler']('L' + doo(0x8f7) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x8f8) + 'E'); + } + if (chi['_API']['isMobile']()) + ciD(!![]); + }); + }); + } else { + chi['_API']['Public']['event']('L' + doo(0x8f9) + 'K', function(ckl) { + chi['_API']['Public']['pickupCoordinate'](ckl[dol(0x111d)], function(ckm) { + ckm[0x2] = ck7['params']['LabelingLayer']; + if (cka == 0x0) { + ck7['point'] = ck7['point']['concat'](ckm); + ck7['center'] = ck7['center']['concat'](ckm); + cka = 0x1; + } else { + ck7['point'][0x3] = ckm[0x0]; + ck7['point'][0x4] = ckm[0x1]; + ck7['point'][0x5] = ckm[0x2]; + var ckn = new chc[(dol(0x111e))]['fromRadians'](ck7['point'][0x0],ck7['point'][0x1],ck7['point'][0x2]); + var cko = new chc['Cartesian3']['fromRadians'](ck7['point'][0x3],ck7['point'][0x4],ck7['point'][0x2]); + var ckp = new chc['Cartesian3']['fromRadians'](ck7[dol(0x111f)][0x0],ck7['point'][0x4],ck7['point'][0x2]); + var ckq = new chc['Cartesian3']['fromRadians'](ck7['point'][0x3],ck7['point'][0x1],ck7[dol(0x1120)][0x2]); + var ckr = chc['Cartesian3']['distance'](cko, ckp); + var cks = chc['Cartesian3'][dol(0x1121)](ckn, ckp); + ck7['semiMajorAxis'] = Math['max'](ckr, cks); + ck7['semiMinorAxis'] = Math['min'](ckr, cks); + ck7[dol(0x1122)] = ckr > cks ? 0x0 : Math['PI'] * 0.5; + cka = 0x2; + ck7['params'][dol(0x1123)] = ck7['center']; + ck7['params']['point'] = ck7['point']; + ck7['params']['rotation'] = ck7['rotation']; + ck7['params']['semiMajorAxis'] = ck7['semiMajorAxis']; + ck7['params']['semiMinorAxis'] = ck7['semiMinorAxis']; + ck8(ck7); + chi['_API']['Public']['clearHandler']('L' + doo(0x8fa) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x8fb) + 'E'); + } + ck7['_addEntity'](); + }); + }); + } + chi['_API']['Public']['event']('M' + doo(0x8fc) + 'E', function(ckt) { + if (cka != 0x1) { + return; + } + chi['_API']['Public']['pickupCoordinate'](ckt[dol(0x1124)], function(cku) { + cku[0x2] = ck7['params']['LabelingLayer']; + ck7['point'][0x3] = cku[0x0]; + ck7['point'][0x4] = cku[0x1]; + ck7['point'][0x5] = cku[0x2]; + var ckv = new chc['Cartesian3']['fromRadians'](ck7['point'][0x0],ck7['point'][0x1],ck7['point'][0x2]); + var ckw = new chc['Cartesian3']['fromRadians'](ck7[dol(0x1125)][0x3],ck7['point'][0x4],ck7['point'][0x2]); + var ckx = new chc['Cartesian3']['fromRadians'](ck7['point'][0x0],ck7['point'][0x4],ck7['point'][0x2]); + var cky = new chc['Cartesian3']['fromRadians'](ck7['point'][0x3],ck7['point'][0x1],ck7['point'][0x2]); + var ckz = chc['Cartesian3']['distance'](ckw, ckx); + var ckA = chc['Cartesian3']['distance'](ckv, ckx); + ck7['semiMajorAxis'] = Math['max'](ckz, ckA); + ck7['semiMinorAxis'] = Math['min'](ckz, ckA); + ck7['rotation'] = ckz > ckA ? 0x0 : Math['PI'] * 0.5; + }); + }); + } + ); + } + ; + ck4['prototype']['doFun'] = function() {} + ; + ck4['prototype']['undoFun'] = function() { + chi[dol(0x1126)]['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + ck4['prototype'][dol(0x1127)] = function() { + var ckB = this; + ckB['center'] = ckB['params']['center']; + ckB['rotation'] = ckB['params']['rotation']; + ckB[dol(0x1128)] = ckB[dol(0x1129)][dol(0x112a)]; + ckB['semiMinorAxis'] = ckB['params']['semiMinorAxis']; + ckB['_addEntity'](); + } + ; + ck4['prototype']['_addEntity'] = function() { + var ckC = this; + if (!ckC['entity']) { + ckC['entity'] = chi['dataSource']['entities']['add']({ + 'position': new chc['CallbackProperty'](function() { + return new chc['Cartesian3']['fromRadians'](ckC[dol(0x112b)][0x0],ckC['center'][0x1],ckC['center'][0x2]); + } + ,![]), + 'name': ckC['id'], + 'id': ckC['id'], + 'ellipse': { + 'height': 0x1, + 'fill': new chc['CallbackProperty'](function() { + return chc[dol(0x112c)](ckC['params'][dol(0x112d)], !![]); + } + ,![]), + 'material': new chc['ColorMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](ckC[dol(0x112e)]['fillColor'], '#' + doo(0x8fd) + '0')); + } + ,![])), + 'outline': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ckC['params'][dol(0x112f)], !![]); + } + ,![]), + 'outlineColor': new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](ckC['params']['outlineColor'], '#' + doo(0x8fe) + '0')); + } + ,![]), + 'outlineWidth': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ckC['params']['outlineWidth'], 0x1); + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ckC['params']['show'], !![]); + } + ,![]), + 'numberOfVerticalLines': new chc[(dol(0x1130))](function() { + return chc['defaultValue'](ckC['params']['numberOfVerticalLines'], 0x1e); + } + ,![]), + 'rotation': new chc[(dol(0x1131))](function() { + return ckC['rotation']; + } + ,![]) + } + }); + ckC['entity'][dol(0x1132)]['semiMajorAxis'] = new chc['CallbackProperty'](function() { + return ckC['semiMajorAxis']; + } + ,![]); + ckC['entity']['ellipse']['semiMinorAxis'] = new chc['CallbackProperty'](function() { + return ckC[dol(0x1133)]; + } + ,![]); + } + } + ; + ck4['prototype']['updateConfigures'] = function(ckD) { + var ckE = this; + ciz(this['params'], ckD); + } + ; + var ckF = function(ckG, ckH) { + this['drawMode'] = 'D' + doo(0x8ff) + 'e'; + this['params'] = { + 'id': ckG, + 'drawMode': this['drawMode'] + }; + this['points'] = []; + ckH['LabelingLayer'] = ++chl; + ciz(this['params'], ckH); + ciL['call'](this, this['params']['id'], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + ckF['prototype'] = Object['create'](ciL['prototype']); + ckF['prototype']['constructor'] = ckF; + ckF['prototype']['drawFun'] = function() { + var ckI = this; + return new Promise(function(ckJ, ckK) { + var ckL = 0x0; + if (chi['_API']['isMobile']()) { + chi['_API']['Public']['event']('L' + doo(0x900) + 'N', function(ckM) { + chi['_API']['Public']['pickupCoordinate'](ckM['position'], function(ckN) { + ckN[0x2] = ckI['params']['LabelingLayer']; + if (ckL == 0x0) { + ckL++; + ckI['points'] = ckI['points']['concat'](ckN); + ckI['points'] = ckI['points']['concat'](ckN); + if (chi[dol(0x1134)][dol(0x1135)]()) + ciD(![]); + } + ckI[dol(0x1136)](); + if (chi['_API']['isMobile']()) + ciD(![]); + }); + }); + chi['_API']['Public']['event']('L' + doo(0x901) + 'P', function(ckO) { + chi['_API']['Public']['pickupCoordinate'](ckO[dol(0x1137)], function(ckP) { + ckP[0x2] = ckI['params']['LabelingLayer']; + if (ckL == 0x1) { + ckL++; + ckI['points'] = [ckI['points'][0x0], ckI['points'][0x1], ckI['points'][0x2], ckP[0x0], ckP[0x1], ckI['points'][0x2]]; + var ckQ = []['concat'](ckI['points']); + ckQ['length'] = 0x6; + ckI['params']['points'] = ckQ; + ckJ(ckI); + chi['_API']['Public']['clearHandler']('L' + doo(0x902) + 'K'); + chi['_API'][dol(0x1138)]['clearHandler']('M' + doo(0x903) + 'E'); + } + if (chi['_API']['isMobile']()) + ciD(!![]); + }); + }); + } else { + chi['_API']['Public']['event']('L' + doo(0x904) + 'K', function(ckR) { + chi['_API']['Public']['pickupCoordinate'](ckR['position'], function(ckS) { + ckS[0x2] = ckI['params']['LabelingLayer']; + if (ckL == 0x0) { + ckL++; + ckI['points'] = ckI['points']['concat'](ckS); + ckI['points'] = ckI['points'][dol(0x1139)](ckS); + } else if (ckL == 0x1) { + ckL++; + ckI['points'] = [ckI['points'][0x0], ckI['points'][0x1], ckI['points'][0x2], ckS[0x0], ckS[0x1], ckI['points'][0x2]]; + var ckT = []['concat'](ckI['points']); + ckT['length'] = 0x6; + ckI[dol(0x113a)]['points'] = ckT; + ckJ(ckI); + chi['_API']['Public']['clearHandler']('L' + doo(0x905) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x906) + 'E'); + } + ckI['_addEntity'](); + }); + }); + } + chi['_API']['Public']['event']('M' + doo(0x907) + 'E', function(ckU) { + if (ckL != 0x1) { + return; + } + chi['_API']['Public']['pickupCoordinate'](ckU['endPosition'], function(ckV) { + ckV[0x2] = ckI['params']['LabelingLayer']; + ckI['points'] = [ckI['points'][0x0], ckI['points'][0x1], ckI['points'][0x2], ckV[0x0], ckV[0x1], ckI['points'][0x2]]; + }); + }); + } + ); + } + ; + ckF['prototype']['doFun'] = function() {} + ; + ckF['prototype'][dol(0x113b)] = function() { + chi['dataSource']['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + ckF['prototype'][dol(0x113c)] = function() { + var ckW = this; + ckW['points'] = ckW['params']['points']; + ckW['_addEntity'](); + } + ; + ckF['prototype']['_addEntity'] = function() { + var ckX = this; + if (!ckX['entity']) + ckX['entity'] = chi['dataSource']['entities']['add']({ + 'name': ckX['id'], + 'id': ckX['id'], + 'polyline': { + 'positions': new chc['CallbackProperty'](function() { + return chc['Cartesian3']['fromRadiansArrayHeights'](ckX['points']); + } + ,![]), + 'material': new chc['ColorMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](ckX['params']['color'], '#' + doo(0x908) + '0')); + } + ,![])), + 'width': new chc['CallbackProperty'](function() { + return chc[dol(0x113d)](ckX['params']['width'], 0x1); + } + ,![]), + 'zIndex': new chc['CallbackProperty'](function() { + return ckX[dol(0x113e)]['LabelingLayer']; + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](ckX['params']['show'], !![]); + } + ,![]) + } + }); + } + ; + ckF['prototype']['updateConfigures'] = function(ckY) { + var ckZ = this; + ciz(this['params'], ckY); + } + ; + var cl0 = function(cl1, cl2) { + this['drawMode'] = 'D' + doo(0x909) + 'w'; + this['params'] = { + 'id': cl1, + 'drawMode': this['drawMode'] + }; + this['points'] = []; + cl2['LabelingLayer'] = ++chl; + ciz(this['params'], cl2); + ciL['call'](this, this['params']['id'], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + cl0[dol(0x113f)] = Object['create'](ciL['prototype']); + cl0['prototype']['constructor'] = cl0; + cl0['prototype']['drawFun'] = function() { + var cl3 = this; + return new Promise(function(cl4, cl5) { + var cl6 = 0x0; + if (chi['_API']['isMobile']()) { + chi['_API']['Public'][dol(0x1140)]('L' + doo(0x90a) + 'N', function(cl7) { + chi['_API']['Public']['pickupCoordinate'](cl7['position'], function(cl8) { + cl8[0x2] = cl3[dol(0x1141)]['LabelingLayer']; + if (cl6 == 0x0) { + cl6++; + cl3['points'] = cl3['points']['concat'](cl8); + cl3['points'] = cl3['points']['concat'](cl8); + } + cl3['_addEntity'](); + if (chi['_API']['isMobile']()) + ciD(![]); + }); + }); + chi['_API']['Public']['event']('L' + doo(0x90b) + 'P', function(cl9) { + chi[dol(0x1142)]['Public']['pickupCoordinate'](cl9['position'], function(cla) { + cla[0x2] = cl3['params']['LabelingLayer']; + if (cl6 == 0x1) { + cl6++; + cl3['points'] = [cl3['points'][0x0], cl3['points'][0x1], cl3[dol(0x1143)][0x2], cla[0x0], cla[0x1], cl3['points'][0x2]]; + var clb = []['concat'](cl3['points']); + clb['length'] = 0x6; + cl3['params'][dol(0x1144)] = clb; + cl4(cl3); + chi['_API']['Public']['clearHandler']('L' + doo(0x90c) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x90d) + 'E'); + if (chi['_API']['isMobile']()) + ciD(!![]); + } + }); + }); + } else { + chi['_API']['Public']['event']('L' + doo(0x90e) + 'K', function(clc) { + chi[dol(0x1145)]['Public']['pickupCoordinate'](clc['position'], function(cld) { + cld[0x2] = cl3[dol(0x1146)]['LabelingLayer']; + if (cl6 == 0x0) { + cl6++; + cl3['points'] = cl3['points']['concat'](cld); + cl3['points'] = cl3['points'][dol(0x1147)](cld); + } else if (cl6 == 0x1) { + cl6++; + cl3[dol(0x1148)] = [cl3['points'][0x0], cl3['points'][0x1], cl3['points'][0x2], cld[0x0], cld[0x1], cl3['points'][0x2]]; + var cle = []['concat'](cl3['points']); + cle['length'] = 0x6; + cl3['params'][dol(0x1149)] = cle; + cl4(cl3); + chi[dol(0x114a)]['Public']['clearHandler']('L' + doo(0x90f) + 'K'); + chi['_API']['Public'][dol(0x114b)]('M' + doo(0x910) + 'E'); + } + cl3['_addEntity'](); + }); + }); + } + chi['_API']['Public'][dol(0x114c)]('M' + doo(0x911) + 'E', function(clf) { + if (cl6 != 0x1) { + return; + } + chi['_API']['Public']['pickupCoordinate'](clf[dol(0x114d)], function(clg) { + clg[0x2] = cl3['params']['LabelingLayer']; + cl3['points'] = [cl3[dol(0x114e)][0x0], cl3['points'][0x1], cl3['points'][0x2], clg[0x0], clg[0x1], cl3['points'][0x2]]; + }); + }); + } + ); + } + ; + cl0['prototype']['doFun'] = function() {} + ; + cl0['prototype']['undoFun'] = function() { + chi['dataSource']['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + cl0['prototype']['redoFun'] = function() { + var clh = this; + clh['points'] = clh['params']['points']; + clh['_addEntity'](); + } + ; + cl0['prototype']['_addEntity'] = function() { + var cli = this; + if (!cli['entity']) + cli['entity'] = chi['dataSource']['entities']['add']({ + 'name': cli['id'], + 'id': cli['id'], + 'polyline': { + 'positions': new chc['CallbackProperty'](function() { + return chc['Cartesian3']['fromRadiansArrayHeights'](cli['points']); + } + ,![]), + 'material': new chc['PolylineArrowMaterialProperty'](new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc['defaultValue'](cli['params']['color'], '#' + doo(0x912) + '0')); + } + ,![])), + 'width': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cli['params']['width'], 0x1); + } + ,![]), + 'zIndex': new chc['CallbackProperty'](function() { + return cli['params']['LabelingLayer']; + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](cli['params']['show'], !![]); + } + ,![]) + } + }); + } + ; + cl0[dol(0x114f)]['updateConfigures'] = function(clj) { + var clk = this; + ciz(this['params'], clj); + } + ; + var cll = function(clm, cln) { + this['drawMode'] = 'D' + doo(0x913) + 's'; + this['params'] = { + 'id': clm, + 'drawMode': this['drawMode'] + }; + cln['LabelingLayer'] = ++chl; + this['points'] = [0x0, 0x0, 0x0]; + this['points'][0x2] = cln['LabelingLayer']; + ciz(this['params'], cln); + ciL['call'](this, this['params']['id'], this['drawFun'], this['doFun'], this['undoFun'], this['redoFun'], this['updateConfigures']); + }; + cll['prototype'] = Object['create'](ciL['prototype']); + cll['prototype']['constructor'] = cll; + cll[dol(0x1150)]['drawFun'] = function() { + var clo = this; + return new Promise(function(clp, clq) { + var clr = 0x0; + clo['_addEntity'](); + if (chi['_API']['isMobile']()) + ciD(![]); + var cls = []['concat'](clo['points']); + cls['length'] = 0x3; + clo[dol(0x1151)]['points'] = cls; + clo['isTmp'] = !![]; + cho['push'](clo); + chi['_API']['Public']['event']('L' + doo(0x914) + 'K', function(clt) { + chi['_API']['Public']['pickupCoordinate'](clt['position'], function(clu) { + clr = 0x1; + chi['_API']['Public']['clearHandler']('M' + doo(0x915) + 'E'); + clo['points'] = clo['points']['concat'](clu); + var cls = [][dol(0x1152)](clo['points']); + cls['length'] = 0x3; + clo['params']['points'] = cls; + delete clo['isTmp']; + clp(clo); + chi['_API']['Public'][dol(0x1153)]('L' + doo(0x916) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x917) + 'E'); + chi['_API']['Public']['clearHandler']('R' + doo(0x918) + 'K'); + ciD(!![]); + }); + }); + chi['_API']['Public']['event']('M' + doo(0x919) + 'E', function(clw) { + if (clr != 0x0) { + return; + } + chi['_API']['Public']['pickupCoordinate'](clw['endPosition'], function(clx) { + clo['points'] = []['concat'](clx); + }); + }); + chi[dol(0x1154)][dol(0x1155)]['event']('R' + doo(0x91a) + 'K', function(cly) { + chi['_API']['Public']['clearHandler']('L' + doo(0x91b) + 'K'); + chi['_API']['Public']['clearHandler']('M' + doo(0x91c) + 'E'); + chi['_API']['Public']['clearHandler']('R' + doo(0x91d) + 'K'); + chi['dataSource']['entities']['removeById'](clo['id']); + }); + } + ); + } + ; + cll['prototype']['finishFun'] = function() { + chi['_API']['Public']['clearHandler']('L' + doo(0x91e) + 'K'); + chi[dol(0x1156)]['Public']['clearHandler']('M' + doo(0x91f) + 'E'); + chi['_API']['Public'][dol(0x1157)]('R' + doo(0x920) + 'K'); + if (chi['configure']['continuable']) { + var clz = this; + chi['dataSource']['entities']['removeById'](clz['id']); + } + } + ; + cll['prototype'][dol(0x1158)] = function() {} + ; + cll[dol(0x1159)]['undoFun'] = function() { + chi['dataSource']['entities']['removeById'](this['id']); + this['entity'] = undefined; + } + ; + cll['prototype']['redoFun'] = function() { + var clA = this; + clA['points'] = clA['params']['points']; + clA['_addEntity'](); + } + ; + cll['prototype'][dol(0x115a)] = function() { + var clB = this; + if (!clB['entity']) + clB['entity'] = chi['dataSource']['entities']['add']({ + 'id': clB['id'], + 'name': clB['id'], + 'position': new chc['CallbackProperty'](function() { + return chc['Cartesian3']['fromRadians'](clB[dol(0x115b)][0x0], clB['points'][0x1], clB['points'][0x2]); + } + ,![]), + 'label': { + 'text': new chc['CallbackProperty'](function() { + return clB['params']['text']; + } + ,![]), + 'font': new chc[(dol(0x115c))](function() { + return chc['defaultValue'](clB['params'][dol(0x115d)], doj(0x2c0)); + } + ,![]), + 'fillColor': new chc['CallbackProperty'](function() { + return chc['Color']['fromCssColorString'](chc[dol(0x115e)](clB['params']['fillColor'], '#' + doo(0x921) + '0')); + } + ,![]), + 'backgroundColor': new chc['CallbackProperty'](function() { + return chc['defined'](clB['params']['backgroundColor']) ? chc['Color'][dol(0x115f)](clB['params']['backgroundColor']) : chc['Color']['TRANSPARENT']; + } + ,![]), + 'showBackground': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params'][dol(0x1160)], ![]); + } + ,![]), + 'outline': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params'][dol(0x1161)], !![]); + } + ,![]), + 'outlineColor': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params']['outlineColor'], '#' + doo(0x922) + '0'); + } + ,![]), + 'outlineWidth': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params']['outlineWidth'], 0x1); + } + ,![]), + 'scale': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params']['scale'], 0x1); + } + ,![]), + 'style': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params']['style'], chc['LabelStyle']['FILL_AND_OUTLINE']); + } + ,![]), + 'verticalOrigin': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params']['verticalOrigin'], chc['VerticalOrigin']['CENTER']); + } + ,![]), + 'horizontalOrigin': new chc[(dol(0x1162))](function() { + return chc['defaultValue'](clB['params']['horizontalOrigin'], chc['HorizontalOrigin']['CENTER']); + } + ,![]), + 'pixelOffset': new chc['CallbackProperty'](function() { + return chc['defined'](clB['params'][dol(0x1163)]) && Array['isArray'](clB['params']['pixelOffset']) && clB['params']['pixelOffset']['length'] == 0x2 ? new chc['Cartesian2'](clB['params']['pixelOffset'][0x0],clB['params'][dol(0x1164)][0x1]) : new chc['Cartesian2'](0x0,0x0); + } + ,![]), + 'show': new chc['CallbackProperty'](function() { + return chc['defaultValue'](clB['params']['show'], !![]); + } + ,![]) + } + }); + } + ; + cll['prototype']['updateConfigures'] = function(clC) { + var clD = this; + ciz(this['params'], clC); + } + ; + return chp; + }(window[dol(0x1165)] || {}); + ;GLELightSource = function(clE) { + var clF; + var clG = 0x100; + var clH = 0x96; + var clI = { + 'id': '', + 'type': 0x10, + 'showHalo': ![], + 'showFrustum': ![], + 'position': new clE['Cartesian3'](), + 'targetPosition': new clE['Cartesian3'](), + 'color': clE['Color']['WHITE'], + 'intesity': 0x32, + 'distance': 0x64, + 'fieldAngle': 0x2d, + 'darkness': 0.3, + 'decay': 0x1, + 'halo': { + 'lenght': 0x3 + } + }; + var clJ = new Map(); + function clK(clL) { + this['_API'] = clL; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + clF = this; + } + clK['Spotlight'] = 0x10; + clK['Pointlight'] = 0x11; + clK[dol(0x1166)] = [clK['Spotlight'], clK['Pointlight']]; + clK['prototype']['add'] = function(clM) { + try { + cnj(clM); + switch (clM['type']) { + case clK['Spotlight']: + cm4(clM['id']); + break; + case clK['Pointlight']: + cm6(clM['id']); + break; + default: + break; + } + clF['_viewer']['scene']['requestRender'](); + } catch (clN) { + console['log'](clN); + } + } + ; + function clO(clP, clQ) { + try { + if (clJ[clP]) { + switch (clJ[clP]['type']) { + case clK['Spotlight']: + case clK['Pointlight']: + if (clJ[clP]['postProcess']) { + clF['_scene']['postProcessStages']['remove'](clJ[clP]['postProcess']); + } + if (clJ[clP]['frustumOutline']) { + clF['_scene']['primitives']['remove'](clJ[clP][dol(0x1167)]); + } + if (clJ[clP][dol(0x1168)]) { + clF['_viewer']['entities']['remove'](clJ[clP]['haloEntity']); + } + try { + if (clJ[clP]['shadowMapPrimitive']) { + clF['_scene']['primitives']['remove'](clJ[clP]['shadowMapPrimitive']); + } + } catch (clR) {} + break; + default: + break; + } + if (!clQ) + delete clJ[clP]; + } + clF['_viewer']['scene'][dol(0x1169)](); + } catch (clS) { + console['log'](clS); + } + } + clK['prototype']['delete'] = clO; + clK['prototype']['remove'] = clO; + clK['prototype']['update'] = function(clT) { + try { + cnj(clT); + switch (clJ[clT['id']]['type']) { + case clK[dol(0x116a)]: + cm4(clT['id']); + break; + case clK['Pointlight']: + cm6(clT['id']); + break; + default: + break; + } + clF['_viewer']['scene']['requestRender'](); + } catch (clU) { + console['log'](clU); + } + } + ; + clK['prototype'][dol(0x116b)] = function(clV) { + try { + if (clJ[clV]) { + return cnU(clJ[clV], ['c' + doo(0x923) + 'a', 'f' + doo(0x924) + 'e', 'p' + doo(0x925) + 's', 's' + doo(0x926) + 'p', 's' + doo(0x927) + 'e', 'h' + doo(0x928) + 'y']); + } else { + throw '查' + doo(0x929) + '置'; + } + } catch (clW) { + console['log'](clW); + } + } + ; + clK['prototype']['setVisible'] = function(clX, clY) { + try { + if (clJ[clX]) { + switch (clJ[clX][dol(0x116c)]) { + case clK['Spotlight']: + case clK['Pointlight']: + if (clY) { + if (clJ[clX]['type'] === clK[dol(0x116d)]) + cm4(clX); + else if (clJ[clX]['type'] === clK['Pointlight']) + cm6(clX); + } else { + clO(clX, !![]); + } + break; + default: + break; + } + } + clF['_viewer'][dol(0x116e)]['requestRender'](); + } catch (clZ) { + console['log'](clZ); + } + } + ; + function cm0(cm1, cm2) { + if (clJ[cm1]) { + cmc(cm1, cm2); + cm8(cm1, cm2); + clJ[cm1]['shadowMap'][dol(0x116f)] = !![]; + var cm3 = new co1(clJ[cm1][dol(0x1170)]); + clJ[cm1]['shadowMapPrimitive'] = cm3; + clF['_scene']['primitives'][dol(0x1171)](clJ[cm1]['shadowMapPrimitive']); + if (cm2['isSpotLight']) + cnd(cm1, clJ[cm1][dol(0x1172)]); + clF['_viewer']['scene']['requestRender'](); + } + } + function cm4(cm5) { + cm0(cm5, { + 'isSpotLight': !![] + }); + } + function cm6(cm7) { + cm0(cm7, { + 'isPointLight': !![] + }); + } + function cm8(cm9, cma) { + var cmb = { + 'context': clF[dol(0x1173)]['context'], + 'lightCamera': clJ[cm9]['camera'], + 'enabled': !![], + 'isPointLight': ![], + 'isSpotLight': !![], + 'isPlaneLight': ![], + 'pointLightRadius': clJ[cm9]['distance'], + 'cascadesEnabled': ![], + 'size': 0x800, + 'softShadows': !![], + 'normalOffset': ![], + 'fadingEnabled': ![], + 'numberOfCascades': 0x4 + }; + if (cma['isPointLight']) { + cmb['isPointLight'] = !![]; + cmb['isSpotLight'] = ![]; + cmb['size'] = 0x800; + cmb['pointLightRadius'] = 0x3e8; + cmb['darkness'] = 0.3; + } else if (cma['isSpotLight']) { + cmb['fromLightSource'] = ![]; + } + clJ[cm9]['shadowMap'] = new clE['ShadowMap'](cmb); + clJ[cm9]['shadowMap']['id'] = 'l' + doo(0x92a) + '_' + cm9; + clJ[cm9]['shadowMap']['enabled'] = !![]; + clJ[cm9]['shadowMap']['dirty'] = !![]; + } + function cmc(cmd, cme) { + var cmf = clJ[cmd]['position']; + var cmg = new clE['Camera'](clF['_scene']); + if (!clJ[cmd]['direction']) { + if (!clJ[cmd]['distance'] || isNaN(clJ[cmd]['distance'])) { + clJ[cmd]['distance'] = clE['Cartesian3']['distance'](cmf, clJ[cmd]['targetPosition']); + } + } + cmg['frustum']['near'] = Math['min'](0x1 / clJ[cmd]['distance'], 0.001); + cmg['frustum']['far'] = clJ[cmd]['distance']; + var cmh = Math['max'](0x0, Math['min'](clH, Math['abs'](Number(clJ[cmd]['fieldAngle'])))); + var cmi = cmh; + if (clJ[cmd]['fieldAngleY']) { + cmi = Math['max'](0x0, Math['min'](clH, Math['abs'](Number(clJ[cmd]['fieldAngleY'])))); + } + var cmj = clE[dol(0x1174)]['toRadians'](cmh); + var cmk = clE['Math']['toRadians'](cmi); + var cml = clJ[cmd]['distance']; + var cmm = cml * Math['tan'](cmj / 0x2) * 0x2 / (cml * Math['tan'](cmk / 0x2) * 0x2); + cmg['frustum']['aspectRatio'] = cmm; + cmg['frustum']['fov'] = Math['max'](cmj, cmk); + var cmn = clJ[cmd]['direction'] ? cnp(cmf, clJ[cmd]['direction']) : cnx(cmf, clJ[cmd]['targetPosition']); + var cmo = clJ[cmd]['direction'] ? cnu(cmf, clJ[cmd]['direction']) : clF['_API']['funcPublic']['getPitch'](cmf, clJ[cmd]['targetPosition']); + cmg['setView']({ + 'destination': cmf, + 'orientation': { + 'heading': cmn, + 'pitch': cmo, + 'roll': clE['Math']['toRadians'](clJ[cmd]['cameraRoll'] || 0x0) + } + }); + clJ[cmd]['camera'] = cmg; + if (cme['isSpotLight']) { + if (clJ[cmd]['showFrustum']) { + if (clJ[cmd][dol(0x1175)]) { + clF['_scene']['primitives']['remove'](clJ[cmd]['frustumOutline']); + } + cmU(cmd); + } + } + if (clJ[cmd]['showHalo']) { + if (clJ[cmd]['haloEntity']) { + clF['_viewer']['entities']['remove'](clJ[cmd]['haloEntity']); + } + if (cme['isSpotLight']) { + cmp(cmd, cme); + } else if (cme['isPointLight']) { + clJ[cmd]['haloEntity'] = clF['_viewer']['entities']['add']({ + 'position': cmf, + 'point': { + 'show': !![], + 'color': clE['Color']['WHITE'], + 'pixelSize': 0x5, + 'outlineColor': clJ[cmd]['color'], + 'outlineWidth': 0x3, + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + } + }); + } + } + } + function cmp(cmq) { + var cmr = function(cms, cmt) { + var cmu = 'l' + doo(0x92b) + '_' + cmq; + var cmv = document['getElementById'](cmu); + if (!cmv) { + cmv = document['createElement']('c' + doo(0x92c) + 's'); + cmv['id'] = 'l' + doo(0x92d) + '_' + cmq; + document['body']['appendChild'](cmv); + } + cmv['style']['display'] = 'n' + doo(0x92e) + 'e'; + cmv['width'] = 0x190; + cmv['height'] = 0x190; + var cmw = cmv[dol(0x1176)](doh(0x11b)); + cmw[dol(0x1177)](0x0, 0x0, cmv['width'], cmv['height']); + if (cmv['getContext']) { + var cmw = cmv['getContext'](doh(0x11c)); + cmw['arc'](0xc8, 0xc8, 0xc8, 0x0, Math['PI'] * 0x2, ![]); + var cmy = cmw['createRadialGradient'](0xc8, 0xc8, 0x1, 0xc8, 0xc8, 0x96); + cmy['addColorStop'](0x0, doj(0x2c1)); + cmy['addColorStop'](0x1, doj(0x2c2)); + cmw['fillStyle'] = cmy; + cmw['fill'](); + } + return cmv; + }; + var cmz = function() { + var cmA = clE[dol(0x1178)][dol(0x1179)](clJ[cmq]['camera'][dol(0x117a)]); + var cmB = clE['Cartesian3']['fromRadians'](cmA['longitude'], cmA['latitude']); + var cmC = clJ[cmq]['camera']['heading'] - Math[dol(0x117b)] / 0x2; + var cmD = clJ[cmq]['camera']['pitch'] + Math['PI'] / 0x2; + var cmE = clJ[cmq][dol(0x117c)]['roll']; + var cmF = clE['Transforms'][dol(0x117d)](cmB, new clE['HeadingPitchRoll'](cmC,cmD,cmE)); + return cmF; + }; + var cmG = function() { + return Math[dol(0x117e)](clJ[cmq]['distance'], clJ[cmq]['halo']['lenght']); + }; + var cmH = function() { + var cmI = -cmG() / 0x2; + var cmJ = clJ[cmq][dol(0x117f)]['position']; + var cmK = clJ[cmq]['camera']['targetPosition']; + var cmL = clJ[cmq]['camera'][dol(0x1180)]; + var cmM = clJ[cmq]['camera']['pitch']; + var cmN = new clE['Cartesian3'](); + var cmO = cnL(cmL, cmM, cmI); + var cmP = clE['Transforms']['eastNorthUpToFixedFrame'](cmJ); + clE['Matrix4']['multiplyByPoint'](cmP, cmO, cmN); + return cmN; + }; + var cmQ = Math['max'](0x0, Math['min'](clH, Math['abs'](Number(clJ[cmq]['fieldAngle'])))); + var cmR = clE[dol(0x1181)][dol(0x1182)](cmQ); + var cmS = cmG() / 0x2 * (Math['sin'](cmR) / Math['cos'](cmR)); + var cmT = clF['_viewer']['entities']['add']({ + 'position': new clE['CallbackProperty'](cmH,![]), + 'orientation': new clE['CallbackProperty'](cmz,![]), + 'cylinder': { + 'length': new clE['CallbackProperty'](cmG,![]), + 'topRadius': 0x0, + 'bottomRadius': cmS, + 'fillTop': !![], + 'fillBottom': ![], + 'material': new clE[(dol(0x1183))]({ + 'color': clJ[cmq]['color'], + 'image': new clE['CallbackProperty'](cmr,![]), + 'transparent': !![] + }) + } + }); + clJ[cmq]['haloEntity'] = cmT; + } + function cmU(cmV) { + var cmW = 'f' + doo(0x92f) + '_' + cmV; + var cmX = cn0(cmV); + var cmY = new clE[(dol(0x1184))]({ + 'geometry': new clE['FrustumOutlineGeometry']({ + 'frustum': clJ[cmV]['camera']['frustum'], + 'origin': clJ[cmV]['camera']['positionWC'], + 'orientation': cmX, + '_drawNearPlane': !![] + }), + 'id': cmW, + 'attributes': { + 'color': clE['ColorGeometryInstanceAttribute']['fromColor'](clE['Color']['YELLOWGREEN']), + 'show': new clE['ShowGeometryInstanceAttribute'](!![]) + } + }); + var cmZ = clF['_scene']['primitives']['add'](new clE['Primitive']({ + 'geometryInstances': [cmY], + 'appearance': new clE['PerInstanceColorAppearance']({ + 'flat': !![], + 'translucent': ![] + }) + })); + clJ[cmV][dol(0x1185)] = cmZ; + } + function cn0(cn1) { + var cn2 = new clE[(dol(0x1186))](); + var cn3 = new clE['Matrix3'](); + var cn4 = new clE['Quaternion'](); + var cn5 = clJ[cn1]['camera']['positionWC']; + var cn6 = clJ[cn1]['camera'][dol(0x1187)]; + var cn7 = clJ[cn1]['camera'][dol(0x1188)]; + var cn8 = clJ[cn1]['camera']['rightWC']; + cn8 = clE['Cartesian3']['negate'](cn8, cn2); + var cn9 = cn3; + clE['Matrix3']['setColumn'](cn9, 0x0, cn8, cn9); + clE['Matrix3']['setColumn'](cn9, 0x1, cn7, cn9); + clE['Matrix3']['setColumn'](cn9, 0x2, cn6, cn9); + var cna = clE['Quaternion']['fromRotationMatrix'](cn9, cn4); + return cna; + } + function cnb(cnc) { + return [doj(0x2c3), doj(0x2c4), doj(0x2c5), doj(0x2c6), doj(0x2c7), doj(0x2c8), doj(0x2c9), doj(0x2ca), doj(0x2cb), doj(0x2cc), doj(0x2cd), doj(0x2ce), doj(0x2cf), doj(0x2d0), doj(0x2d1), doj(0x2d2), doj(0x2d3), doj(0x2d4), doj(0x2d5), '}', doj(0x2d6), doj(0x2d7), doj(0x2d8), doj(0x2d9), doj(0x2da), doj(0x2db), '}', doj(0x2dc) + doj(0x2dd) + '}', doj(0x2de) + doj(0x2df) + '}', doj(0x2e0), doj(0x2e1), doj(0x2e2), doj(0x2e3), '}', doj(0x2e4), doj(0x2e5), doj(0x2e6), doj(0x2e7), doj(0x2e8), doj(0x2e9), doj(0x2ea), doj(0x2eb), doj(0x2ec), doj(0x2ed), doj(0x2ee), doj(0x2ef), doj(0x2f0), doj(0x2f1), '}', doj(0x2f2) + doj(0x2f3) + doj(0x2f4) + doj(0x2f5) + doj(0x2f6) + doj(0x2f7) + doj(0x2f8) + doj(0x2f9) + doj(0x2fa), doj(0x2fb), doj(0x2fc), doj(0x2fd) + '}', doj(0x2fe), '\x20' + doo(0x930) + ';', doj(0x2ff), doj(0x300), doj(0x301), doj(0x302), doj(0x303), doj(0x304), doj(0x305), doj(0x306), doj(0x307), doj(0x308), doj(0x309), '\x20' + doo(0x931) + '}', '\x20' + doo(0x932) + '}', doj(0x30a), '\x20' + doo(0x933) + ';', '}', doj(0x30b), doj(0x30c), doj(0x30d), doj(0x30e), doj(0x30f), doj(0x310), '\x20' + doo(0x934) + '\x20', '}', doj(0x311), doj(0x312), doj(0x313), doj(0x314), doj(0x315), doj(0x316), doj(0x317), doj(0x318), doj(0x319), '\x20' + doo(0x935) + ';', '}', doj(0x31a), doj(0x31b), doj(0x31c), doj(0x31d), doj(0x31e), doj(0x31f), doj(0x320), doj(0x321), doj(0x322), doj(0x323), doj(0x324), doj(0x325), '\x20' + doo(0x936) + ';', '}', 'v' + doo(0x937) + '\x20', doh(0x11d), doj(0x326), doj(0x327), doj(0x328), doj(0x329), '\x20' + doo(0x938) + ';', '\x20' + doo(0x939) + '}', '\x20' + doo(0x93a) + '\x20', doj(0x32a), doj(0x32b), doj(0x32c), doj(0x32d), doj(0x32e), doj(0x32f), doj(0x330), doj(0x331), doj(0x332), doj(0x333), doj(0x334) + doj(0x335) + doj(0x336) + doj(0x337) + doj(0x338) + doj(0x339) + doj(0x33a) + ('\x20' + doo(0x93b) + ';') + ('\x20' + doo(0x93c) + '}') + ('\x20' + doo(0x93d) + '\x20') + doj(0x33b) + doj(0x33c) + doj(0x33d) + doj(0x33e) + doj(0x33f) + doj(0x340) + doj(0x341) + doj(0x342), doj(0x343), doj(0x344), '\x20' + doo(0x93e) + '{', doj(0x345) + ('\x20' + doo(0x93f) + ';') + ('\x20' + doo(0x940) + '}'), doj(0x346), '\x20' + doo(0x941) + '}', doh(0x11e)]['join']('\x0a'); + } + function cnd(cne, cnf) { + var cng = cnf[dol(0x1189)] ? cnf['_pointBias'] : cnf[dol(0x118a)]; + cng['n' + doo(0x942) + 'h'] = 0.001; + var cnh = new clE['PostProcessStage']({ + 'fragmentShader': cnb({ + 'isPointLight': cnf['_isPointLight'], + 'isSpotLight': cnf['_isSpotLight'] + }), + 'uniforms': { + 'mixNum': function() { + return 0.6; + }, + 'mixDepth': function() { + return 0x1; + }, + 'lightTexture': function() { + return clJ[cne]['color']; + }, + 'lightIntesity': function() { + return Math[dol(0x118b)](Number(clJ[cne]['intesity'])); + }, + 'shadowMap_texture': function() { + cnf['update'](clF['_scene']['_' + doo(0x943) + 'e']); + return cnf['_shadowMapTexture']; + }, + '_shadowMap_matrix': function() { + cnf['update'](clF['_scene']['_' + doo(0x944) + 'e']); + return cnf['_shadowMapMatrix']; + }, + 'shadowMap_lightPositionEC': function() { + cnf['update'](clF['_scene']['_' + doo(0x945) + 'e']); + return cnf['_lightPositionEC']; + }, + 'shadowMap_texelSizeDepthBiasAndNormalShadingSmooth': function() { + var cni = new clE['Cartesian2'](); + return cni['x'] = 0x1 / cnf[dol(0x118c)]['x'] * 0x2, + cni['y'] = 0x1 / cnf['_textureSize']['y'] * 0x2, + clE['Cartesian4']['fromElements'](cni['x'], cni['y'], cng['depthBias'], cng['normalShadingSmooth']); + }, + 'shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness': function() { + return clE['Cartesian4']['fromElements'](cng['normalOffsetScale'], cnf['_distance'], cnf['maximumDistance'], cnf['_darkness']); + } + } + }); + cnh[dol(0x118d)] = 'l' + doo(0x946) + '_' + cne; + if (clJ[cne]['postProcess']) + clF['_scene']['postProcessStages']['remove'](clJ[cne]['postProcess']); + clJ[cne]['postProcess'] = cnh; + clF['_scene']['postProcessStages'][dol(0x118e)](cnh); + } + function cnj(cnk) { + if (!clE['defined'](cnk[dol(0x118f)]) || cnk['id']['lenght'] == 0x0) + throw doj(0x347); + if (!clJ[cnk['id']]) { + if (clE['defined'](cnk['type']) && clK[dol(0x1190)]['indexOf'](cnk['type']) == -0x1) + throw doj(0x348); + clJ[cnk['id']] = cnU(clI); + } + cnl(clJ[cnk['id']], cnk); + } + function cnl(cnm, cnn) { + for (var cno in cnn) + if (cnn['hasOwnProperty'](cno)) { + if (Array['isArray'](cnn[cno])) { + cnm[cno] = []; + cnm[cno] = cnm[cno]['concat'](cnn[cno]); + } else if (cnZ(cnn[cno])) { + cnm[cno] = cnn[cno]; + } else { + cnm[cno] = cnm[cno] ? cnl(cnm[cno], cnn[cno]) : cnn[cno]; + } + } + return cnm; + } + function cnp(cnq, cnr) { + var cnr = clE['Cartesian3']['normalize'](cnr, new clE['Cartesian3']()); + var cnt = Math['atan2'](cnr['y'], cnr['x']) - clE['Math']['PI_OVER_TWO']; + return clE['Math']['TWO_PI'] - clE['Math']['zeroToTwoPi'](cnt); + } + function cnu(cnv, cnw) { + clE['Cartesian3']['normalize'](cnw, cnw); + return clE['Math']['PI_OVER_TWO'] - clE['Math']['acosClamped'](cnw['z']); + } + function cnx(cny, cnz) { + var cnA = clE['Transforms']['eastNorthUpToFixedFrame'](cny); + var cnB = clE['Cartesian3'][dol(0x1191)](cnz, cny, new clE['Cartesian3']()); + var cnC = clE['Matrix4']['multiplyByPointAsVector'](clE['Matrix4']['inverse'](cnA, new clE['Matrix4']()), cnB, new clE['Cartesian3']()); + var cnD = clE['Cartesian3']['normalize'](cnC, new clE['Cartesian3']()); + var cnE = Math['atan2'](cnD['y'], cnD['x']) - clE['Math'][dol(0x1192)]; + return clE['Math']['TWO_PI'] - clE['Math']['zeroToTwoPi'](cnE); + } + function cnF(cnG, cnH, cnI) { + var cnJ = clE['Transforms']['eastNorthUpToFixedFrame'](cnG); + var cnK = new clE['Cartesian3'](); + clE['Cartesian3'][dol(0x1193)](cnH, cnI, cnK); + return clE['Matrix4']['multiplyByPoint'](cnJ, cnK, new clE['Cartesian3']()); + } + function cnL(cnM, cnN, cnO) { + cnN = clE['Math']['clamp'](cnN, -clE['Math']['PI_OVER_TWO'], clE['Math']['PI_OVER_TWO']); + cnM = clE['Math']['zeroToTwoPi'](cnM) - clE['Math']['PI_OVER_TWO']; + var cnP = clE['Quaternion']['fromAxisAngle'](clE['Cartesian3']['UNIT_Y'], -cnN); + var cnQ = clE['Quaternion']['fromAxisAngle'](clE['Cartesian3']['UNIT_Z'], -cnM); + var cnR = clE['Quaternion']['multiply'](cnQ, cnP, cnQ); + var cnS = clE['Matrix3']['fromQuaternion'](cnR); + var cnT = clE['Cartesian3'][dol(0x1194)](clE['Cartesian3'][dol(0x1195)]); + clE['Matrix3']['multiplyByVector'](cnS, cnT, cnT); + clE['Cartesian3']['negate'](cnT, cnT); + clE['Cartesian3']['multiplyByScalar'](cnT, cnO, cnT); + return cnT; + } + function cnU(cnV, cnW) { + if (!cnV || typeof cnV !== 'o' + doo(0x947) + 't') { + throw new Error('e' + doo(0x948) + 'r'); + } + var cnX = cnV['constructor'] === Array ? [] : {}; + for (var cnY in cnV) { + if (cnW && cnW['indexOf'](cnY) != -0x1) + continue; + if (cnV['hasOwnProperty'](cnY)) { + if (cnV[cnY] && typeof cnV[cnY] === 'o' + doo(0x949) + 't') { + cnX[cnY] = cnV[cnY]['constructor'] === Array ? [] : {}; + cnX[cnY] = cnU(cnV[cnY], cnW); + } else { + cnX[cnY] = cnV[cnY]; + } + } + } + return cnX; + } + ;function cnZ(co0) { + return typeof co0 === 's' + doo(0x94a) + 'g' || typeof co0 === 'n' + doo(0x94b) + 'r' || typeof co0 === 'b' + doo(0x94c) + 'n' || typeof co0 === 'u' + doo(0x94d) + 'd' || co0 === null; + } + var co1 = function(co2) { + this['shadowMap'] = co2; + }; + co1['prototype']['update'] = function(co3) { + if (this['shadowMap']['_selectedDirty']) { + co3['shadowMaps']['push'](this['shadowMap']); + this['shadowMap']['_selectedDirty'] = ![]; + } + } + ; + return clK; + }(window['Cesium'] || {}); + ;GLEOnsiteInspection = function(co4) { + var co5; + var co6, co7, co8, co9, coa; + var cob; + var coc = new Map(); + var cod = []; + var coe = -0x190; + var cof = ![]; + var cog = -0x14; + var coh = 1.5; + var coi = null; + var coj; + var cok = 0x2; + var col = 3.5; + var com = 0x1; + var con = []; + var coo = []; + var cop = []; + var coq; + var cor = ![]; + var cot = !![]; + var cou = ![]; + var cov; + var cow = { + 'UserName': '姓' + doo(0x94e) + 'X', + 'PersonModelUrl': doj(0x349), + 'LabelFont': '1' + doo(0x94f) + 'e', + 'StayTimeForWarn': 0xa + }; + function cox(coy, coz) { + co6 = coy; + co5 = coz; + this['_viewer'] = coy; + co7 = co6[dol(0x1196)]; + co8 = co6['canvas']; + co9 = co6[dol(0x1197)]; + coa = co6['scene']['globe']; + cob = new co4['Camera'](co7); + } + cox['prototype']['InitLabel'] = function(coA, coB, coC, coD, coE) { + coc['set'](coA, { + 'position': co4['Cartesian3']['fromDegrees'](coC, coD, coE), + 'sampledPosition': new co4['SampledPositionProperty']() + }); + var coF = coc['get'](coA)['sampledPosition']; + if (co4['defined'](coB)) + cow['UserName'] = coB; + var coG = co6['entities']['getById'](coA); + if (!co4['defined'](coG)) + coG = cpX(coA); + coG['position'] = coF; + coG['orientation'] = new co4['VelocityOrientationProperty'](coF); + cot = ![]; + cq5(); + } + ; + cox['prototype']['InitUserName'] = function(coH) { + if (co4['defined'](coH)) + cow['UserName'] = coH; + } + ; + cox['prototype']['SetPosition'] = function(coI, coJ, coK, coL) { + var coM = coc['get'](coI); + if (co4['defined'](coM)) { + coM['position'] = co4['Cartesian3']['fromDegrees'](coJ, coK, coL); + } + } + ; + cox['prototype']['FlyTo'] = function(coN) { + if (co4['defined'](coN)) + coi = co6['entities']['getById'](coN); + if (co4['defined'](coi)) { + coi['label']['show'] = !![]; + coi['label']['pixelOffset']['_value']['y'] = coe; + setTimeout(function() { + coi['model']['runAnimations'] = !![]; + }, 0x5dc); + cok = 0x2; + co6[dol(0x1198)][dol(0x1199)]['addEventListener'](coO); + } + } + ; + function coO() { + requestAnimationFrame(function() { + if (co4['defined'](coi) && !cor) { + var coP = coi['position']['getValue'](co6['clock']['currentTime']); + if (!co4['defined'](coP)) + return ![]; + var coQ = co4[dol(0x119a)][dol(0x119b)](coP); + cpg(coP); + coj = co5['funcPublic']['getPointByDistance'](coP, 0x0, 0x0, coh); + var coR = co5['funcPublic']['getPointByDistance'](coj, 0x0 - col, 0x0, com, co6); + var coS = new co4['HeadingPitchRoll'](); + if (!co4['defined'](coq) || cok == 0x2 && co4['defined'](coq) && co4['JulianDate']['secondsDifference'](co6['clock']['currentTime'], coq) >= 0x2) + cok = 0.2; + var coT = co4['JulianDate']['addSeconds'](co6['clock']['currentTime'], cok, new co4['JulianDate']()); + var coU = coi['position']['getValue'](coT); + if (cot && (!co4['defined'](coU) || coP['equals'](coU))) { + coi['model']['runAnimations'] = ![]; + coi['position'] = coP; + co6['clock']['onTick']['removeEventListener'](coO); + coi['label']['show'] = ![]; + coc[dol(0x119c)](function(coV, coW) { + co6['entities']['removeById'](coW); + }); + if (!isEmpty(cov)) { + cov(); + } + return ![]; + } + var coX = cq1(coU, coj); + coS = new co4[(dol(0x119d))](co4['Math'][dol(0x119e)](coX + 0x5a),0x0,0x0); + coi['orientation'] = co4['Transforms']['headingPitchRollQuaternion'](coj, coS); + coR = cqc(coR, coj, co4['Math']['toDegrees'](coS['heading'])); + var coY = 0x0; + var coZ = []; + var cp0 = cp1(coj, coR); + if (cp0['IsCovered']) + coR = cp0['destPoint']; + co9['setView']({ + 'destination': coR, + 'orientation': { + 'heading': co4[dol(0x119f)]['toRadians'](co4['Math']['toDegrees'](coS['heading']) + 0x5a + coY), + 'pitch': co4['Math']['toRadians'](cog), + 'roll': 0x0 + } + }); + cpa(); + cou = ![]; + } + }); + } + function cp1(cp2, cp3) { + var cp4 = co4['Cartesian3']['normalize'](co4[dol(0x11a0)]['subtract'](cp3, cp2, new co4['Cartesian3']()), new co4['Cartesian3']()); + var cp5 = new co4['Ray'](cp2,cp4); + var cp6 = co7['pickFromRay'](cp5, cod); + if (co4['defined'](cp6) && co4['defined'](cp6['position'])) { + var cp7 = co4['Cartesian3']['distance'](cp2, cp6['position']); + var cp8 = co4[dol(0x11a1)]['distance'](cp2, cp3); + var cp9 = co4['Cartesian3']['distance'](cp3, cp6['position']); + if (cp7 < cp8 && cp9 < cp8) { + return { + 'IsCovered': !![], + 'destPoint': cp6['position'], + 'distance': co4[dol(0x11a2)]['distance'](cp2, cp6[dol(0x11a3)]) + }; + } + } else if (co4['defined'](cp6) && !co4['defined'](cp6['position'])) { + console['log']('碰' + doo(0x950) + '标'); + } + return { + 'IsCovered': ![] + }; + } + function cpa() { + cop['forEach'](function(cpb, cpc) { + var cpd = 'O' + doo(0x951) + '_' + cpc; + var cpe = co5['Label']['getCustomHtml'](cpd); + if (co4['JulianDate']['compare'](co6['clock']['currentTime'], cpb['startTime']) >= 0x0 && co4['JulianDate']['compare'](cpb['endTime'], co6['clock']['currentTime']) >= 0x0) { + if (!co4['defined'](cpe)) { + var cpf = co7['globe'][dol(0x11a4)]['cartesianToCartographic'](coj); + co5['Label'][dol(0x11a5)]({ + 'id': cpd, + 'axisType': 0x1, + 'position': [cpf['longitude'], cpf['latitude'], cpf['height']], + 'text': cpb['warnInfo'], + 'theme': 'b' + doo(0x952) + 'e', + 'themeColor': '#' + doo(0x953) + '0' + }); + coi['model']['runAnimations'] = ![]; + coi['label']['show'] = ![]; + } + } else if (co4['defined'](cpe)) { + co5[dol(0x11a6)][dol(0x11a7)](cpd); + coi['model']['runAnimations'] = !![]; + coi['label']['show'] = !![]; + } + }); + } + function cpg(coj) { + con['forEach'](function(cpi, cpj) { + if ((cpi['state'] || 0x0) != 0x1 && co4['Cartesian3']['distance'](coj, cpi['position']) - cpi['width'] <= 0x1) { + cpi['state'] = 0x1; + cpW(); + co5['Feature']['rotateFeatureWithSide'](cpi['id'], 0x1, 0x0, -0x5a, 0x5, cpi['tag']); + setTimeout(function() { + cpW(); + }, 0x7d0); + } + }); + } + cox['prototype']['CancelTrack'] = function() { + if (co4['defined'](coi)) { + coi['label']['pixelOffset']['_value']['y'] = 0x0; + coi = undefined; + co9['lookAtTransform'](co4['Matrix4'][dol(0x11a8)]); + co5['Model']['location'](); + } + } + ; + cox['prototype']['Close'] = function() { + this['CancelTrack'](); + co6['clock']['onTick']['removeEventListener'](coO); + coc['forEach'](function(cpk, cpl) { + co6['entities']['removeById'](cpl); + }); + } + ; + cox['prototype']['PickPosition'] = function(cpm) { + cpm = co4['Cartesian3']['fromRadians'](cpm[0x0], cpm[0x1], cpm[0x2]); + var cpn = coo['length'] > 0x0 ? co4['Cartesian3']['distance'](coo[coo['length'] - 0x1]['position'], cpm) : 0x0; + coo['push']({ + 'position': cpm, + 'distance': cpn, + 'entity': null + }); + } + ; + cox['prototype']['ClearPosition'] = function() { + coo = []; + } + ; + cox['prototype']['CreatePath'] = function(cpo) { + Times = cpo; + } + ; + cox['prototype']['SetInformation'] = function(cpp) { + cqu(cow, cpp); + } + ; + cox['prototype']['SetView'] = function(cpq, cpr, cps) { + cog = cpr || -0x14; + coh = cps || 1.5; + cof = cpq || ![]; + } + ; + cox['prototype'][dol(0x11a9)] = function(cpt) { + var cpu = this; + if (coo['length'] == 0x0) + return; + cov = cpt; + var cpv = new co4[(dol(0x11aa))](); + var cpw = co6['clock'][dol(0x11ab)]; + coq = cpw['clone'](); + var cpx = coo['reduce'](function(cpy, cpz) { + return Number(cpy) ? cpy + cpz['distance'] : cpz['distance']; + }); + var cpA = cpx / Times; + coo['forEach']( (cpB, cpC) => { + if (cpC == 0x0) { + cpv[dol(0x11ac)](cpw, cpB['position']); + cpw = co4[dol(0x11ad)]['addSeconds'](cpw, 0x2, new co4['JulianDate']()); + } + cpw = co4['JulianDate'][dol(0x11ae)](cpw, cpB['distance'] / cpA, new co4['JulianDate']()); + cpv[dol(0x11af)](cpw, cpB[dol(0x11b0)]); + var cpD = co4['Cartographic'][dol(0x11b1)](cpB['position']); + if (cpB['warn']) { + var cpE = cpw['clone'](); + cpw = co4['JulianDate']['addSeconds'](cpw, cow['StayTimeForWarn'], new co4['JulianDate']()); + cpv['addSample'](cpw, cpB['warnPosition']); + var cpD = co4[dol(0x11b2)]['fromCartesian'](cpB['position']); + cop['push']({ + 'startTime': cpE, + 'endTime': co4['JulianDate']['addSeconds'](cpw, -0x1, new co4['JulianDate']()), + 'warnInfo': cpB['warnInfo'], + 'featureId': cpB['featureId'] + }); + } + } + ); + var cpG = 'O' + doo(0x954) + 'g'; + coi = co6['entities']['getById'](cpG); + if (!co4['defined'](coi)) + coi = cpX(cpG); + coi['show'] = co4['defined'](cof) ? cof : !![]; + coi['model']['runAnimations'] = ![]; + coi['position'] = cpv; + this['FlyTo'](cpG); + } + ; + cox['prototype']['SetWarnInfo'] = function(cpH, cpI) { + var cpJ = co5['Feature']['getCenterById'](cpH, undefined, 0x1); + if (!co4['defined'](cpJ)) + return ![]; + var cpK = Number['POSITIVE_INFINITY']; + var cpL = -0x1; + coo['forEach']( (cpM, cpN) => { + var cpO = co4['Cartesian3']['distance'](cpM['position'], cpJ); + if (cpK > cpO) { + cpK = cpO; + cpL = cpN; + } + } + ); + if (cpL == -0x1) + return ![]; + coo[cpL]['warn'] = !![]; + coo[cpL]['warnInfo'] = cpI; + coo[cpL]['featureId'] = cpH; + var cpP = co4['Cartesian3']['subtract'](cpJ, coo[cpL]['position'], new co4['Cartesian3']()); + cpP = co4['Cartesian3']['multiplyByScalar'](cpP, 0.005, new co4['Cartesian3']()); + var cpQ = co4['Cartesian3'][dol(0x11b3)](coo[cpL]['position'], cpP, new co4['Cartesian3']()); + coo[cpL]['warnPosition'] = cpQ; + } + ; + cox['prototype']['SetDoorInfo'] = function(cpR, cpS) { + var cpT = co5['Feature']['getCenterById'](cpR, cpS, 0x1); + co5['Feature']['getGeometrySizeById'](cpR, cpS, function(cpU) { + var cpV = [cpU['x'], cpU['y'], cpU['z']]['sort'](); + con['push']({ + 'id': cpR, + 'tag': cpS, + 'position': cpT, + 'width': cpV[0x1] + }); + }, ![]); + } + ; + cox['prototype']['Pause'] = function() { + cpW(); + } + ; + function cpW() { + cor = !cor; + co6[dol(0x11b4)]['multiplier'] = cor ? 0x0 : 0x1; + } + cox['prototype']['Debug'] = function() { + cou = !![]; + } + ; + function cpX(cpY) { + var cpZ = new co4['SampledPositionProperty'](); + var cq0 = co6['entities']['add']({ + 'id': cpY, + 'model': { + 'uri': cow['PersonModelUrl'] + }, + 'position': cpZ, + 'label': { + 'text': cow['UserName'], + 'font': cow['LabelFont'], + 'showBackground': !![], + 'verticalOrigin': co4['VerticalOrigin']['CENTER'], + 'horizontalOrigin': co4['HorizontalOrigin']['LEFT'], + 'pixelOffset': new co4['Cartesian2'](0x0 - cqo(cow['UserName'], cow['LabelFont']) / 0x2 - 0x8,0x0), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'] + }, + 'path': { + 'resolution': 0x1, + 'material': new co4['PolylineGlowMaterialProperty']({ + 'glowPower': 0.1, + 'color': co4['Color']['PINK'] + }), + 'width': 0xa + } + }); + cq0['position']['setInterpolationOptions']({ + 'interpolationDegree': 0x5, + 'interpolationAlgorithm': co4['LagrangePolynomialApproximation'] + }); + cod['push'](cq0); + coc['set'](cpY, { + 'position': cpZ['getValue'](co6['clock'][dol(0x11b5)]), + 'sampledPosition': cpZ + }); + return cq0; + } + function cq1(cq2, cq3) { + let cq4 = co5['funcPublic']['bearing'](co4['Cartographic']['fromCartesian'](cq2)['latitude'], co4['Cartographic'][dol(0x11b6)](cq2)['longitude'], co4['Cartographic']['fromCartesian'](cq3)['latitude'], co4['Cartographic']['fromCartesian'](cq3)['longitude']); + return cq4; + } + function cq5() { + setInterval(function() { + coc['forEach'](function(cq6) { + var cq7 = co6['clock']['currentTime']; + cq7 = co4['JulianDate']['addSeconds'](cq7, 0x2, new co4['JulianDate']()); + cq6['sampledPosition']['addSample'](cq7, cq6['position']['clone']()); + }); + }, 0x1f4); + } + function cq8(cq9, cqa, cqb) { + co6['entities']['add']({ + 'polyline': { + 'positions': [cq9, cqa], + 'arcType': co4[dol(0x11b7)]['NONE'], + 'width': 0x1, + 'material': cqb + } + }); + } + function cqc(cqd, cqe, cqf) { + var cqg = co4['Cartographic']['fromCartesian'](cqe); + cqg['height'] -= 0x1; + var cqh = co4['Cartographic']['toCartesian'](cqg); + var cqi = co4['Cartesian3']['normalize'](co4['Cartesian3'][dol(0x11b8)](cqh, cqe, new co4['Cartesian3']()), new co4['Cartesian3']()); + var cqj = co4['Quaternion']['fromAxisAngle'](cqi, co4['Math']['toRadians'](cqf)); + var cqk = co4['Matrix3']['fromQuaternion'](cqj); + var cql = co4['Matrix4']['fromRotationTranslation'](cqk); + var cqm = co4['Cartesian3']['subtract'](cqd, cqe, new co4['Cartesian3']()); + var cqn = co4['Matrix4']['multiplyByPoint'](cql, cqm, new co4['Cartesian3']()); + return co4['Cartesian3'][dol(0x11b9)](cqn, cqe, new co4['Cartesian3']()); + } + function cqo(cqp, cqq) { + var cqr = cqo['canvas'] || (cqo['canvas'] = document['createElement']('c' + doo(0x955) + 's')); + var cqs = cqr['getContext'](doh(0x11f)); + cqs['font'] = cqq; + var cqt = cqs[dol(0x11ba)](cqp); + return cqt[dol(0x11bb)]; + } + function cqu(cqv, cqw) { + for (var cqx in cqw) + if (cqw['hasOwnProperty'](cqx)) { + if (Array['isArray'](cqw[cqx])) { + cqv[cqx] = []; + cqv[cqx] = cqv[cqx]['concat'](cqw[cqx]); + } else if (cqy(cqw[cqx])) { + cqv[cqx] = cqw[cqx]; + } else { + cqv[cqx] = cqu(cqv[cqx], cqw[cqx]); + } + } + return cqv; + } + function cqy(cqz) { + return typeof cqz === 's' + doo(0x956) + 'g' || typeof cqz === 'n' + doo(0x957) + 'r' || typeof cqz === 'b' + doo(0x958) + 'n' || typeof cqz === 'u' + doo(0x959) + 'd' || cqz === null; + } + return cox; + }(window['Cesium'] || {}); + ;GLEParticleSystem = function(cqA) { + var cqB, cqC, cqD, cqE; + var cqF = {}; + var cqG = { + 'skyAtmosphere': { + 'hueShift': 0x0, + 'saturationShift': 0x0, + 'brightnessShift': 0x0 + }, + 'fog': { + 'density': 0.0002, + 'minimumBrightness': 0x0 + } + }; + var cqH = { + 'rain': { + 'skyAtmosphere': { + 'hueShift': -0.97, + 'saturationShift': 0.25, + 'brightnessShift': -0.4 + }, + 'fog': { + 'density': 0.00025, + 'minimumBrightness': 0.01 + }, + 'image': '', + 'minimumImageSize': [0xf, 0xf], + 'maximumImageSize': [0x14, 0x14], + 'startScale': 0x1, + 'endScale': 0.5, + 'emitterType': 0x3, + 'emitterRadian': 0x2710, + 'startColor': new cqA['Color'](0.27,0.6,0.8,0.5), + 'endColor': new cqA[(dol(0x11bc))](0.27,0.6,0.8,0x1), + 'emissionRate': 0x2328, + 'lifetime': 0x10, + 'loop': !![], + 'speedRange': [-0x1, -1.5], + 'position': [0x0, 0x0, 0x0], + 'positionOffset': [0x0, 0x0, 0x0], + 'gravity': -9.8 + }, + 'snow': { + 'skyAtmosphere': { + 'hueShift': -0.8, + 'saturationShift': -0.7, + 'brightnessShift': -0.33 + }, + 'fog': { + 'density': 0.001, + 'minimumBrightness': 0.8 + }, + 'image': '', + 'minimumImageSize': [0xc, 0xc], + 'maximumImageSize': [0x18, 0x18], + 'startScale': 0.5, + 'endScale': 0x1, + 'emitterType': 0x3, + 'emitterRadian': 0x2710, + 'startColor': cqA['Color']['WHITE']['withAlpha'](0.3), + 'endColor': cqA[dol(0x11bd)]['WHITE']['withAlpha'](0.7), + 'emissionRate': 0x2328, + 'lifetime': 0x14, + 'loop': !![], + 'speedRange': [-0.1, 0x0], + 'position': [0x0, 0x0, 0x0], + 'positionOffset': [0x0, 0x0, 0x0], + 'gravity': -9.8 + }, + 'fire': { + 'image': '', + 'minimumImageSize': [0x14, 0x14], + 'maximumImageSize': [0x28, 0x28], + 'startScale': 0x1, + 'endScale': 0x4, + 'emitterType': 0x2, + 'emitterRadian': 0x14, + 'startColor': cqA['Color'][dol(0x11be)]['withAlpha'](0.85), + 'endColor': cqA['Color']['DARKORANGE']['withAlpha'](0x0), + 'emissionRate': 0xf, + 'lifetime': 0x10, + 'loop': !![], + 'speedRange': [0x1, 0x3], + 'position': [0x0, 0x0, 0x0], + 'positionOffset': [0x0, 0x0, 0x0], + 'gravity': 0x0 + }, + 'smoke': { + 'image': '', + 'minimumImageSize': [0x14, 0x14], + 'maximumImageSize': [0x28, 0x28], + 'startScale': 0x1, + 'endScale': 0x6, + 'emitterType': 0x2, + 'emitterRadian': 0x14, + 'startColor': cqA['Color'][dol(0x11bf)]['withAlpha'](0.7), + 'endColor': cqA[dol(0x11c0)]['BLACK']['withAlpha'](0x0), + 'emissionRate': 0x14, + 'lifetime': 0x28, + 'loop': !![], + 'speedRange': [0.5, 1.5], + 'position': [0x0, 0x0, 0x0], + 'positionOffset': [0x0, 0x0, 0x0], + 'gravity': 0x0 + }, + 'fountain': { + 'image': '', + 'minimumImageSize': [0x5, 0x5], + 'maximumImageSize': [0xa, 0xa], + 'startScale': 0x1, + 'endScale': 0x14, + 'emitterType': 0x2, + 'emitterRadian': 0x6, + 'startColor': new cqA['Color'](0x1,0x1,0x1,0.8), + 'endColor': new cqA['Color'](0.8,0.86,0x1,0.6), + 'emissionRate': 0x64, + 'lifetime': 0x10, + 'loop': !![], + 'speedRange': [0x9, 9.5], + 'position': [0x0, 0x0, 0x0], + 'positionOffset': [0x0, 0x0, 0x0], + 'gravity': -3.5 + } + }; + function cqI(cqJ) { + cqB = cqJ; + this['_viewer'] = cqJ; + cqC = cqB['scene']; + cqD = cqB['canvas']; + cqE = cqB['camera']; + } + cqI['prototype']['getConfig'] = function(cqK) { + return cqH[cqK]; + } + ; + function cqL() { + var cqM = {}; + for (var cqN = 0x0; cqN < arguments['length']; cqN++) { + var cqO = arguments[cqN]; + for (var cqP in cqO) { + if (cqO['hasOwnProperty'](cqP)) + cqM[cqP] = cqO[cqP]; + } + } + return cqM; + } + cqI['prototype']['updateParticleSystem'] = function(cqQ, cqR) { + if (cqF['hasOwnProperty'](cqQ)) { + var cqS = cqF[cqQ]; + return cqT(cqQ, cqS, cqR); + } + return null; + } + ; + function cqT(cqU, cqV, cqW) { + if (cqA['defined'](cqV) && cqV instanceof cqA['ParticleSystem'] && !cqV['isDestroyed']()) { + var cqX = cqL(cqV['config'], cqW); + return cr9(cqU, cqV['psType'], cqX); + } + return null; + } + cqI['prototype']['removeParticleSystem'] = function(cqY) { + if (cqF['hasOwnProperty'](cqY)) { + var cqZ = cqF[cqY]; + if (cqZ && cqZ instanceof cqA[dol(0x11c1)] && !cqZ['isDestroyed']()) { + if (cqB['scene']['primitives']['contains'](cqZ)) { + cqB['scene']['primitives']['remove'](cqZ); + } + if (cqZ['psType'] == 'r' + doo(0x95a) + 'n' || cqZ['psType'] == 's' + doo(0x95b) + 'w') { + cr7(cqG); + } + } + } + } + ; + cqI['prototype']['cleanAllParticleSystem'] = function() { + for (var cr0 in cqF) { + if (cqF['hasOwnProperty'](cr0)) { + var cr1 = cqF[cr0]; + if (cr1 && cr1 instanceof cqA['ParticleSystem'] && !cr1['isDestroyed']()) { + if (cqB['scene'][dol(0x11c2)]['contains'](cr1)) { + cqB[dol(0x11c3)]['primitives']['remove'](cr1); + } + } + } + } + cr7(cqG); + } + ; + function cr2(cr3) { + var cr4 = cqA['JulianDate'][dol(0x11c4)](); + if (cr3 instanceof cqA['Matrix4'] && cr3['length'] == 0x10) { + return cr3; + } else if (Array['isArray'](cr3) && cr3['length'] == 0x10) { + return cqA['Matrix4']['fromArray'](cr3); + } else if (Array['isArray'](cr3) && cr3['length'] == 0x3) { + var cr5 = new cqA['Cartesian3'](cr3[0x0],cr3[0x1],cr3[0x2]); + return crN(cr5, cr4); + } else if (cr3 instanceof cqA['Cartesian3']) { + return crR(cr3, cr4); + } else if (cr3 instanceof cqA[dol(0x11c5)]) { + return crV(cr3, cr4); + } else { + var cr6 = cr3; + if (!cqA['defined'](cr6)) { + return undefined; + } + return crC(cr6, cr4); + } + } + function cr7(cr8) { + if (cqA['defined'](cr8['skyAtmosphere'])) { + if (cqA['defined'](cr8['skyAtmosphere']['hueShift'])) { + cqC['skyAtmosphere']['hueShift'] = cr8['skyAtmosphere']['hueShift']; + } + if (cqA['defined'](cr8['skyAtmosphere']['saturationShift'])) { + cqC['skyAtmosphere']['saturationShift'] = cr8['skyAtmosphere']['saturationShift']; + } + if (cqA['defined'](cr8['skyAtmosphere']['brightnessShift'])) { + cqC['skyAtmosphere']['brightnessShift'] = cr8['skyAtmosphere'][dol(0x11c6)]; + } + } + if (cqA['defined'](cr8['fog'])) { + if (cqA['defined'](cr8[dol(0x11c7)]['density'])) { + cqC['fog'][dol(0x11c8)] = cr8['fog']['density']; + } + if (cqA['defined'](cr8['fog']['minimumBrightness'])) { + cqC[dol(0x11c9)]['minimumBrightness'] = cr8['fog']['minimumBrightness']; + } + } + } + function cr9(cra, crb, crc) { + console['log'](cra, crc); + cr7(crc); + if (!cqA['defined'](crc['image'])) { + console['error'](doj(0x34a)); + return; + } + if (!cqA['defined'](crc['position'])) { + console['error'](doj(0x34b)); + return; + } + var crd = crc['startColor']instanceof cqA['Color'] ? crc['startColor'] : new cqA['Color'](crc[dol(0x11ca)][0x0],crc[dol(0x11cb)][0x1],crc['startColor'][0x2],crc['startColor'][0x3]); + var cre = crc[dol(0x11cc)]instanceof cqA[dol(0x11cd)] ? crc['endColor'] : new cqA['Color'](crc['endColor'][0x0],crc['endColor'][0x1],crc['endColor'][0x2],crc['endColor'][0x3]); + var crf; + if (cqA['defined'](crc['emitterType'])) { + switch (crc['emitterType']) { + case 0x0: + crf = new cqA['BoxEmitter'](new cqA['Cartesian3'](crc['emitterRadian'],crc[dol(0x11ce)],crc['emitterRadian'])); + break; + case 0x1: + crf = new cqA[(dol(0x11cf))](crc[dol(0x11d0)]); + break; + case 0x2: + crf = new cqA['ConeEmitter'](cqA['Math']['toRadians'](crc['emitterRadian'])); + break; + case 0x3: + crf = new cqA['SphereEmitter'](crc['emitterRadian']); + break; + default: + break; + } + } else if (cqA['defined'](crc['emitterCustom'])) { + crf = crc['emitterCustom']; + } else { + console['error'](doj(0x34c)); + return; + } + var crg = []; + if (cqA[dol(0x11d1)](crc['bursts']) && Array['isArray'](crc['bursts']) && crc['bursts']['length'] > 0x0) { + for (let crh = 0x0; crh < crc['bursts'][dol(0x11d2)]; crh++) { + var cri = crc['bursts'][crh]; + if (cqA['defined'](cri)) { + crg['push'](new cqA['ParticleBurst']({ + 'time': cri['time'], + 'minimum': cri['minimum'], + 'maximum': cri['maximum'] + })); + } + } + } + var crj; + switch (crb) { + case 'r' + doo(0x95c) + 'n': + case 's' + doo(0x95d) + 'w': + var crk; + if (cqA['defined'](crc['position']) && cqA['Cartesian3']['distanceSquared'](crc['position'], new cqA[(dol(0x11d3))]()) > 0x0) { + crk = cqA['Cartesian3']['fromDegrees'](crc['position'][0x0], crc['position'][0x1], crc['position'][0x2]); + } else { + crk = cqE['position']; + } + var crl = new cqA['Matrix4']['fromTranslation'](crk); + if (!(crl && crl instanceof cqA[dol(0x11d4)] && crl['length'] == 0x10)) { + return; + } + if (!cqA['defined'](crc['gravity'])) { + crc['gravity'] = -9.8; + } + var crm = function(crn, cro) { + var crp = new cqA['Cartesian3'](); + crp = cqA['Cartesian3']['normalize'](crn['position'], crp); + crp = cqA[dol(0x11d5)]['multiplyByScalar'](crp, -crc['gravity'] * crc['gravity'] * cro, crp); + crn['position'] = cqA['Cartesian3']['add'](crn['position'], crp, crn['position']); + var crq = cqA[dol(0x11d6)]['distance'](cqE['position'], crn['position']); + if (crq > crc['emitterRadian']) { + crn['endColor']['alpha'] = 0x0; + } else { + crn['endColor']['alpha'] = cre['alpha'] / (crq / crc['emitterRadian'] + 0.1); + } + }; + crj = new cqA['ParticleSystem']({ + 'image': crc['image'], + 'emitter': crf, + 'bursts': crg, + 'startColor': crc['startColor']instanceof cqA['Color'] ? crc['startColor'] : new cqA[(dol(0x11d7))](crc['startColor'][0x0],crc['startColor'][0x1],crc['startColor'][0x2],crc['startColor'][0x3]), + 'endColor': crc['endColor']instanceof cqA[dol(0x11d8)] ? crc['endColor'] : new cqA['Color'](crc['endColor'][0x0],crc['endColor'][0x1],crc['endColor'][0x2],crc['endColor'][0x3]), + 'startScale': crc['startScale'], + 'endScale': crc['endScale'], + 'minimumImageSize': new cqA['Cartesian2'](crc['minimumImageSize'][0x0],crc['minimumImageSize'][0x1]), + 'maximumImageSize': new cqA['Cartesian2'](crc['maximumImageSize'][0x0],crc['maximumImageSize'][0x1]), + 'lifetime': crc['lifetime'], + 'loop': crc['loop'], + 'minimumSpeed': crc['speedRange'][0x0], + 'maximumSpeed': crc['speedRange'][0x1], + 'emissionRate': crc['emissionRate'], + 'modelMatrix': crl, + 'emitterModelMatrix': cs0(crc['positionOffset'][0x0], crc[dol(0x11d9)][0x1], crc['positionOffset'][0x2]), + 'updateCallback': crm + }); + break; + case 'f' + doo(0x95e) + 'e': + case 's' + doo(0x95f) + 'e': + case 'f' + doo(0x960) + 'n': + var crl = cr2(crc['position']); + if (!(crl && crl instanceof cqA['Matrix4'] && crl['length'] == 0x10)) { + return; + } + if (!cqA['defined'](crc['gravity'])) { + crc['gravity'] = 0x0; + } + var crt = function(cru, crv) { + var crw = new cqA['Cartesian3'](); + var crk = cru['position']; + cqA['Cartesian3']['normalize'](crk, crw); + cqA['Cartesian3']['multiplyByScalar'](crw, crc['gravity'] * crv, crw); + cru['velocity'] = cqA['Cartesian3']['add'](cru[dol(0x11da)], crw, cru['velocity']); + }; + crj = new cqA['ParticleSystem']({ + 'image': crc['image'], + 'emitter': crf, + 'bursts': crg, + 'startColor': crc['startColor']instanceof cqA['Color'] ? crc['startColor'] : new cqA['Color'](crc[dol(0x11db)][0x0],crc['startColor'][0x1],crc['startColor'][0x2],crc['startColor'][0x3]), + 'endColor': crc['endColor']instanceof cqA['Color'] ? crc['endColor'] : new cqA[(dol(0x11dc))](crc['endColor'][0x0],crc['endColor'][0x1],crc['endColor'][0x2],crc['endColor'][0x3]), + 'startScale': crc['startScale'], + 'endScale': crc['endScale'], + 'minimumImageSize': new cqA['Cartesian2'](crc['minimumImageSize'][0x0],crc['minimumImageSize'][0x0]), + 'maximumImageSize': new cqA['Cartesian2'](crc[dol(0x11dd)][0x1],crc['maximumImageSize'][0x1]), + 'lifetime': crc['lifetime'], + 'loop': crc['loop'], + 'minimumSpeed': crc['speedRange'][0x0], + 'maximumSpeed': crc['speedRange'][0x1], + 'emissionRate': crc['emissionRate'], + 'modelMatrix': crl, + 'emitterModelMatrix': cs0(crc[dol(0x11de)][0x0], crc['positionOffset'][0x1], crc['positionOffset'][0x2]), + 'updateCallback': crt + }); + break; + default: + break; + } + if (cqA['defined'](crj)) { + if (cqA['defined'](cqF[cra])) { + cqF[cra]['show'] = ![]; + } + crj['config'] = crc; + crj['psType'] = crb; + cqF[cra] = crj; + return cqB[dol(0x11df)][dol(0x11e0)]['add'](crj); + } else + return null; + } + cqI['prototype']['addParticleSystem'] = function(cry, crz, crA) { + var crB = {}; + switch (crz) { + case 'r' + doo(0x961) + 'n': + crB = cqL(cqH['rain'], crA); + break; + case 's' + doo(0x962) + 'w': + crB = cqL(cqH[dol(0x11e1)], crA); + break; + case 'f' + doo(0x963) + 'e': + crB = cqL(cqH['fire'], crA); + break; + case 's' + doo(0x964) + 'e': + crB = cqL(cqH['smoke'], crA); + break; + case 'f' + doo(0x965) + 'n': + crB = cqL(cqH['fountain'], crA); + break; + } + return cr9(cry, crz, crB); + } + ; + function crC(crD, crE) { + try { + if (!cqA['defined'](crD)) { + return undefined; + } + if (!cqA['defined'](crE)) { + crE = cqA[dol(0x11e2)]['now'](); + } + var crF = cqA['Property']['getValueOrUndefined'](crD['position'], crE, new cqA['Cartesian3']()); + if (!cqA['defined'](crF)) { + return undefined; + } + var crG; + var crH = cqA['Property']['getValueOrUndefined'](crD['orientation'], crE, new cqA['Quaternion']()); + if (!cqA[dol(0x11e3)](crH)) { + crG = cqA['Transforms']['eastNorthUpToFixedFrame'](crF, undefined, new cqA['Matrix4']()); + } else { + crG = cqA['Matrix4']['fromRotationTranslation'](cqA['Matrix3']['fromQuaternion'](crH, new cqA['Matrix3']()), crF, new cqA['Matrix4']()); + } + return crG; + } catch (crI) { + console['error'](crI); + } + return undefined; + } + function crJ(crK, crL) { + var crM = cqA['Cartesian3']['fromDegrees'](crK['x'], crK['y'], crK['z']); + return crR(crM, crL); + } + function crN(crO, crP) { + var crQ = cqA['Cartesian3']['fromRadians'](crO['x'], crO['y'], crO['z']); + return crR(crQ, crP); + } + function crR(crS, crT) { + if (!cqA['defined'](crS)) { + return undefined; + } + var crU = new cqA['ConstantPositionProperty'](crS,cqA['ReferenceFrame']['FIXED']); + return crV(crU, crT); + } + function crV(crW, crX) { + if (!cqA['defined'](crW)) { + console['error'](doj(0x34d)); + } + if (!cqA['defined'](crX)) { + crX = cqA['JulianDate']['now'](); + } + var crY = cqA['Property']['getValueOrUndefined'](crW, crX, new cqA['Cartesian3']()); + if (!cqA['defined'](crY)) { + return undefined; + } + var crZ = cqA[dol(0x11e4)]['eastNorthUpToFixedFrame'](crY, undefined, new cqA['Matrix4']()); + return crZ; + } + function cs0(cs1, cs2, cs3) { + var cs4 = cqA['HeadingPitchRoll']['fromDegrees'](0x0, 0x0, 0x0, new cqA['HeadingPitchRoll']()); + var cs5 = new cqA['TranslationRotationScale'](); + cqA['Cartesian3']['fromElements'](cs1, cs2, cs3, cs5['translation']); + cqA['Quaternion']['fromHeadingPitchRoll'](cs4, cs5['rotation']); + return cqA['Matrix4']['fromTranslationRotationScale'](cs5, new cqA[(dol(0x11e5))]()); + } + return cqI; + }(window['Cesium'] || {}); + ;GLEScreenshot = function(cs6) { + var cs7; + function cs8(cs9, csa) { + this['_API'] = cs9; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + cs7 = this; + } + function csb(csc, csd) { + if (GLENavigationCube) { + GLENavigationCube['toScreenshot'](!![]); + } + var cse = []; + if (csd && csd['length'] > 0x0) { + for (var csf = 0x0; csf < csd['length']; csf++) { + var csg = document['querySelectorAll'](csd[csf]); + if (csg && csg['length'] > 0x0) { + for (var csh = 0x0; csh < csg['length']; csh++) { + var csi = csg[csh]; + cse['push'](csi); + } + } + } + } + var csj = document['querySelectorAll']('c' + doo(0x966) + 's'); + var csk = []; + if (csj['length'] > 0x0) { + for (var csl = 0x0; csl < csj['length']; csl++) { + var csm = csj[csl]; + if (csm && csm['style']['display'] !== 'n' + doo(0x967) + 'e' && !cse['includes'](csm)) { + var csn = ct8(csm); + csk['push'](csn); + } + } + } + var cso = document['getElementById'](cs7['_API']['defaults']['container']); + csx['dom'] = cso; + csx['exclusions'] = csd; + setTimeout( () => { + csx['getBase64'](csp => { + csc(csp); + setTimeout( () => { + if (csk['length'] > 0x0) { + for (var csl = 0x0; csl < csk['length']; csl++) { + var csn = csk[csl]; + csn['parentElement']['removeChild'](csn); + } + } + if (GLENavigationCube) { + GLENavigationCube['toScreenshot'](![]); + } + } + , 0x1f4); + } + , csd); + } + , 0x1f4); + } + cs8['prototype'][dol(0x11e6)] = csb; + cs8['prototype']['getBase64'] = csb; + function cst(csu) { + csb(csv => { + var csw = document['createElement']('a'); + csw['download'] = 'S' + doo(0x968) + '-' + (+new Date() + '')['slice'](0x1, 0x9) + ('.' + doo(0x969) + 'g'); + csw[dol(0x11e7)]['display'] = 'n' + doo(0x96a) + 'e'; + csw[dol(0x11e8)] = csv; + document[dol(0x11e9)]['appendChild'](csw); + csw['click'](); + document['body']['removeChild'](csw); + } + , csu); + } + cs8['prototype'][dol(0x11ea)] = cst; + cs8['prototype']['screenshot'] = cst; + var csx = function() { + var csy = document['createElement']('c' + doo(0x96b) + 's'); + var csz = csy['getContext'](doh(0x120)); + var csA = function(csB, csC, csD) { + var csE = csB['width'] + , csF = csB['height']; + if (!csC) + csC = csy; + if (!csD) + csD = csz; + csC['width'] = csE; + csC['height'] = csF; + csD['clearRect'](0x0, 0x0, csE, csF); + csD[dol(0x11eb)](csB, 0x0, 0x0); + }; + var csG = new Image(); + var csH = function() {}; + csG['onload'] = function() { + csA(this); + csH(); + } + ; + var csI = { + 'dom': null, + 'exclusions': [], + 'dom2Svg': function() { + var csJ = this['dom']; + var csK = this['exclusions']; + if (!csJ) { + return this; + } + var csL = csJ['cloneNode'](!![]); + csL['setAttribute']('x' + doo(0x96c) + 's', doj(0x34e)); + csL['classList']['remove']('o' + doo(0x96d) + 'e'); + if (csK && csK['length'] > 0x0) { + for (var csM = 0x0; csM < csK['length']; csM++) { + var csN = csL['querySelectorAll'](csK[csM]); + if (csN && csN['length'] > 0x0) { + for (var csO = 0x0; csO < csN['length']; csO++) { + var csP = csN[csO]; + csP['parentElement']['removeChild'](csP); + } + } + } + } + var csQ = csL['querySelectorAll']('c' + doo(0x96e) + 's'); + if (csQ && csQ['length'] > 0x0) { + for (var csO = 0x0; csO < csQ['length']; csO++) { + var csP = csQ[csO]; + csP[dol(0x11ec)]['removeChild'](csP); + } + } + var csT = []; + if (csL['tagName'][dol(0x11ed)]() === doh(0x121)) { + csT['push'](csL); + } else { + csT = csL['querySelectorAll'](doh(0x122)); + } + if (csT['length'] > 0x0) { + for (var csU = 0x0; csU < csT['length']; csU++) { + var csV = csT[csU]; + if (csV && csV['style'][dol(0x11ee)] !== 'n' + doo(0x96f) + 'e') { + var csW = document['createElement']('c' + doo(0x970) + 's'); + var csX = csW['getContext'](doh(0x123)); + csA(csV, csW, csX); + csV['src'] = csW['toDataURL'](); + } + } + } + var csY = doj(0x34f) + csJ['offsetWidth'] + ('\x22' + doo(0x971) + '\x22') + csJ['offsetHeight'] + doj(0x350) + new XMLSerializer()['serializeToString'](csL) + document['querySelector']('s' + doo(0x972) + 'e')['outerHTML'] + doj(0x351); + csY = csY['replace'](/\n/g, '')['replace'](/\t/g, '')['replace'](/#/g, doh(0x124)); + csG['src'] = csY; + return this; + }, + 'getBase64': function(csZ) { + csH = function() { + if (csZ && csZ instanceof Function) + csZ(csy['toDataURL']()); + } + ; + this['dom2Svg'](); + } + }; + return csI; + }(); + function ct0() { + var ct1 = '<' + doo(0x973) + '>'; + var ct2 = document['styleSheets']; + if (ct2 && ct2['length'] > 0x0) { + for (var ct3 = 0x0; ct3 < ct2['length']; ct3++) { + var ct4 = ct2[ct3]; + var ct5 = ct4['cssRules'] || ct4['rules']; + if (ct5 && ct5['length'] > 0x0) { + for (var ct6 = 0x0; ct6 < ct5['length']; ct6++) { + var ct7 = ct5[ct6]; + if (ct7['href']) + ct1 += ct7[dol(0x11ef)]; + } + } + } + } + ct1 += '<' + doo(0x974) + '>'; + return ct1; + } + function ct8(ct9) { + var cta = new Image(); + cta['style']['cssText'] = ct9['style']['cssText']; + cta['src'] = ct9['toDataURL']('i' + doo(0x975) + 'g'); + ctb(cta, ct9); + return cta; + } + function ctb(ctc, ctd) { + var cte = ctd['parentNode']; + if (cte['lastChild'] == ctd) { + cte['appendChild'](ctc); + } else { + cte['insertBefore'](ctc, ctd['nextSibling']); + } + ; + } + ;return cs8; + }(window['Cesium'] || {}); + ;GLEViewportScreentshot = function(ctf) { + var ctg; + var cth = { + 'id': undefined, + 'modelIds': '', + 'camera': {}, + 'outputCanvas': undefined, + 'debugCamera': { + 'show': ![], + 'color': ctf['Color']['YELLOW'], + 'updateOnChange': !![] + }, + 'clearColor': new ctf[(dol(0x11f0))](0x1,0x1,0x1,0x0), + 'customUserData': { + 'center': undefined, + 'radius': undefined + }, + 'passes': [] + }; + function cti(ctj) { + this['_API'] = ctj; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer']['camera']; + this['_context'] = this['_scene']['context']; + ctg = this; + if (!ctg['configure']) + ctg['configure'] = new Map(); + } + cti['prototype']['add'] = function(ctk) { + if (!ctk['id']) { + console['log']('o' + doo(0x976) + '。'); + return; + } + if (!ctk['modelIds'] && ctk[dol(0x11f1)]['length'] < 0x1) { + console['log'](doj(0x352)); + return; + } + var ctl = ctk[dol(0x11f2)]; + cv5(ctk); + ctN(ctl); + ctK(ctl); + cu5(ctl); + cu9(ctl); + cud(ctl); + } + ; + cti['prototype']['remove'] = function(ctm) { + return ctg['configure']['has'](ctm) && (cu7(ctm), + cub(ctm), + ctg['_scene']['primitives']['remove'](ctg['configure']['get'](ctm)['debugCameraPrimitive']), + ctf['destroyObject'](ctg['configure']['get'](ctm)), + ctg['configure']['delete'](ctm)); + } + ; + cti['prototype']['update'] = function(ctn) { + if (!ctn || !ctn['id']) { + console['log']('o' + doo(0x977) + '。'); + return; + } + var cto = ctn['id']; + if (!ctg['configure'][dol(0x11f3)](cto)) { + console['log'](doj(0x353)); + return; + } + cv7(ctg['configure']['get'](cto), ctn); + ctN(cto); + var ctp = {}; + if (ctg['configure']['get'](cto)['modelIds']['length'] > 0x0) { + for (var ctq = 0x0; ctq < ctg['configure']['get'](cto)['modelIds']['length']; ++ctq) { + var ctr = ctg['configure']['get'](cto)[dol(0x11f4)][ctq]; + var cts = ctg['_API']['m_model']['get'](ctr); + if (cts[dol(0x11f5)]) { + ctp[ctr] = cts['clippingPlanes']['enabled']; + cts[dol(0x11f6)]['enabled'] = ![]; + } + } + } + setTimeout(function() { + cuR(cto, function(ctt) { + ctz(); + if (ctg['configure']['get'](cto)[dol(0x11f7)]['length'] > 0x0) { + for (var ctq = 0x0; ctq < ctg['configure']['get'](cto)['modelIds']['length']; ++ctq) { + var ctr = ctg['configure'][dol(0x11f8)](cto)['modelIds'][ctq]; + var cts = ctg[dol(0x11f9)]['m_model']['get'](ctr); + if (cts['clippingPlanes']) { + cts['clippingPlanes']['enabled'] = ctp[ctr]; + } + } + } + var cty = cuU(cto, ctt); + if (ctn['onBufferRender']) + ctn[dol(0x11fa)]({ + 'base64': cty, + 'buffer': ctt, + 'size': { + 'width': ctg['configure']['get'](cto)['width'], + 'height': ctg['configure']['get'](cto)['height'], + 'x': ctg['configure']['get'](cto)['viewport']['size']['x'], + 'y': ctg[dol(0x11fb)]['get'](cto)['viewport']['size']['y'] + } + }); + }); + }, 0x1e); + } + ; + function ctz() { + var ctA, ctB = ctg['_scene']['_view']['frustumCommandsList'], ctC = ctB['length'], ctD = undefined, ctE = [ctf['Pass']['ENVIRONMENT'], ctf['Pass']['COMPUTE'], ctf['Pass']['GLOBE'], ctf['Pass']['TERRAIN_CLASSIFICATION'], ctf['Pass']['CESIUM_3D_TILE'], ctf['Pass']['CESIUM_3D_TILE_CLASSIFICATION'], ctf['Pass']['CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW'], ctf['Pass']['OPAQUE'], ctf['Pass']['TRANSLUCENT'], ctf['Pass']['OVERLAY'], ctf['Pass']['NUMBER_OF_PASSES']]; + for (var ctF = 0x0; ctF < ctC; ++ctF) { + var ctG = ctB[ctC - ctF - 0x1]; + ctE['forEach'](function(ctH) { + ctD = ctG['commands'][ctH]; + ctA = ctG['indices'][ctH]; + for (var q = 0x0; q < ctA; ++q) { + if (ctD[q]['_renderStateOld']) + ctD[q]['renderState'] = ctD[q]['_renderStateOld']; + } + }); + } + } + cti['prototype']['get'] = function(ctJ) { + return ctg['configure']['has'](ctJ) && ctg['configure']['get'](ctJ); + } + ; + function ctK(ctL) { + var ctM = window['devicePixelRatio']; + if (ctg['_API'][dol(0x11fc)]()) + ctM /= 0x2; + ctg['configure']['get'](ctL)['devicePixelRatio'] = ctM; + ctg['configure']['get'](ctL)['_uniformState'] = ctg['_context']['uniformState']; + if (!isNaN(ctg['configure']['get'](ctL)['width']) && !isNaN(ctg['configure']['get'](ctL)['height'])) { + ctg['configure']['get'](ctL)[dol(0x11fd)] = Math['ceil'](ctg['configure']['get'](ctL)[dol(0x11fe)]); + ctg['configure']['get'](ctL)['height'] = Math[dol(0x11ff)](ctg['configure']['get'](ctL)['height']); + } else if (!isNaN(ctg['configure']['get'](ctL)['width'])) { + ctg['configure']['get'](ctL)['width'] = Math['ceil'](ctg[dol(0x1200)]['get'](ctL)['width']); + ctg['configure']['get'](ctL)['height'] = Math['ceil'](ctg['configure']['get'](ctL)['width'] * ctg['configure']['get'](ctL)[dol(0x1201)]['size']['y'] / ctg['configure']['get'](ctL)['viewport']['size']['x']); + } else if (!isNaN(ctg['configure']['get'](ctL)['height'])) { + ctg['configure']['get'](ctL)['height'] = Math['ceil'](ctg['configure']['get'](ctL)['height']); + ctg['configure']['get'](ctL)['width'] = Math['ceil'](ctg['configure']['get'](ctL)['height'] * ctg['configure']['get'](ctL)['viewport']['size']['x'] / ctg['configure']['get'](ctL)['viewport']['size']['y']); + } else { + ctg['configure']['get'](ctL)['width'] = Math['ceil'](ctg['_scene']['canvas']['clientWidth'] * 0.25); + ctg['configure']['get'](ctL)['height'] = Math['ceil'](ctg['configure']['get'](ctL)['width'] * ctg[dol(0x1202)]['get'](ctL)['viewport']['size']['y'] / ctg['configure']['get'](ctL)['viewport']['size']['x']); + } + ctg['configure']['get'](ctL)['width'] = Math['ceil'](ctg['configure'][dol(0x1203)](ctL)['width'] * ctg['configure']['get'](ctL)['devicePixelRatio']); + ctg['configure']['get'](ctL)['height'] = Math['ceil'](ctg['configure']['get'](ctL)['height'] * ctg['configure']['get'](ctL)['devicePixelRatio']); + } + function ctN(ctO) { + if (!Array['isArray'](ctg[dol(0x1204)]['get'](ctO)['modelIds'])) { + ctg['configure']['get'](ctO)['modelIds'] = [ctg['configure']['get'](ctO)['modelIds']]; + } + var ctP = ctg['_API'][dol(0x1205)]['getModelsCenter'](ctg['configure']['get'](ctO)['modelIds']); + if (ctg['configure']['get'](ctO)[dol(0x1206)]['center'] && ctg['configure']['get'](ctO)['customUserData']['radius']) { + var ctQ = ctg['configure']['get'](ctO)['customUserData']['center']; + var ctR = ctg['_API']['Public']['radiansToCartesian3'](ctQ[0x1], ctQ[0x0], ctQ[0x2]); + var ctS = function(ctT, ctU, ctV) { + var ctW = ctf['Transforms']['eastNorthUpToFixedFrame'](ctT); + var ctX = new ctf['Cartesian3'](); + ctf['Cartesian3']['multiplyByScalar'](ctU, ctV, ctX); + return ctf['Matrix4']['multiplyByPoint'](ctW, ctX, new ctf['Cartesian3']()); + }; + var ctY = ctg['configure']['get'](ctO)[dol(0x1207)]['radius'] * Math['sqrt'](0x2); + var ctZ = ctS(ctR, new ctf['Cartesian3'](0x1,0x1,0x0), ctY); + var cu0 = ctS(ctR, new ctf['Cartesian3'](-0x1,-0x1,0x0), ctY); + ctg['configure'][dol(0x1208)](ctO)['viewport'] = { + 'center': ctR, + 'maxpos': ctZ, + 'minpos': cu0, + 'centerRad': ctg['_API'][dol(0x1209)]['cartesian3ToRadians']([ctR['x'], ctR['y'], ctR['z']]), + 'maxposRad': ctg['_API']['Public']['cartesian3ToRadians']([ctZ['x'], ctZ['y'], ctZ['z']]), + 'minposRad': ctg['_API']['Public']['cartesian3ToRadians']([cu0['x'], cu0['y'], cu0['z']]), + 'radius': ctg['configure'][dol(0x120a)](ctO)[dol(0x120b)]['radius'] + }; + } else { + ctg['configure']['get'](ctO)['viewport'] = { + 'center': ctP['center'], + 'maxpos': ctP['maxpos'], + 'minpos': ctP['minpos'], + 'centerRad': ctg['_API'][dol(0x120c)]['cartesian3ToRadians']([ctP['center']['x'], ctP['center']['y'], ctP['center']['z']]), + 'maxposRad': ctg['_API']['Public']['cartesian3ToRadians']([ctP['maxpos']['x'], ctP['maxpos']['y'], ctP['maxpos']['z']]), + 'minposRad': ctg[dol(0x120d)]['Public'][dol(0x120e)]([ctP['minpos']['x'], ctP['minpos']['y'], ctP['minpos']['z']]), + 'radius': ctP['radius'] + }; + } + ctg['configure']['get'](ctO)[dol(0x120f)]['size'] = new ctf['Cartesian3'](); + var cu1 = function(cu2, cu3) { + var cu4 = new ctf['EllipsoidGeodesic'](); + cu4['setEndPoints'](cu2, cu3); + return cu4['surfaceDistance']; + }; + ctg[dol(0x1210)]['get'](ctO)['viewport']['size']['x'] = cu1(new ctf['Cartographic'](ctg['configure']['get'](ctO)['viewport']['maxposRad'][0x0],ctg['configure']['get'](ctO)['viewport']['maxposRad'][0x1],0x0), new ctf['Cartographic'](ctg['configure']['get'](ctO)['viewport']['minposRad'][0x0],ctg['configure']['get'](ctO)['viewport'][dol(0x1211)][0x1],0x0)); + ctg['configure']['get'](ctO)['viewport']['size']['y'] = cu1(new ctf['Cartographic'](ctg['configure']['get'](ctO)['viewport']['maxposRad'][0x0],ctg['configure']['get'](ctO)['viewport']['maxposRad'][0x1],0x0), new ctf['Cartographic'](ctg['configure']['get'](ctO)['viewport']['maxposRad'][0x0],ctg['configure']['get'](ctO)['viewport']['minposRad'][0x1],0x0)); + if (ctg['configure']['get'](ctO)['viewport']['size']['x'] / ctg['configure'][dol(0x1212)](ctO)['viewport']['size']['y'] > 0x2) { + ctg['configure']['get'](ctO)['viewport']['size']['y'] = ctg['configure']['get'](ctO)['viewport']['size']['x']; + } + if (ctg['configure'][dol(0x1213)](ctO)[dol(0x1214)]['size']['x'] / ctg['configure']['get'](ctO)['viewport']['size']['y'] < 0.5) { + ctg['configure']['get'](ctO)['viewport']['size']['x'] = ctg['configure']['get'](ctO)['viewport']['size']['y']; + } + } + function cu5(cu6) { + ctg['configure']['get'](cu6)['colorTexture'] = new ctf['Texture']({ + 'context': ctg['_context'], + 'width': ctg['configure']['get'](cu6)['width'], + 'height': ctg['configure']['get'](cu6)['height'], + 'pixelFormat': ctf['PixelFormat']['RGBA'], + 'pixelDatatype': ctf['PixelDatatype']['UNSIGNED_BYTE'], + 'sampler': new ctf['Sampler']({ + 'minificationFilter': ctf['TextureMinificationFilter']['NEAREST'], + 'magnificationFilter': ctf['TextureMagnificationFilter']['NEAREST'] + }) + }); + ctg['configure']['get'](cu6)['depthStencilTexture'] = new ctf['Texture']({ + 'context': ctg['_context'], + 'width': ctg['configure']['get'](cu6)['width'], + 'height': ctg['configure']['get'](cu6)['height'], + 'pixelFormat': ctf['PixelFormat']['DEPTH_STENCIL'], + 'pixelDatatype': ctf['PixelDatatype']['UNSIGNED_INT_24_8'], + 'sampler': new ctf['Sampler']({ + 'minificationFilter': ctf['TextureMinificationFilter']['NEAREST'], + 'magnificationFilter': ctf['TextureMagnificationFilter']['NEAREST'] + }) + }); + } + function cu7(cu8) { + ctg['configure']['get'](cu8)['colorTexture'] = ctg['configure']['get'](cu8)['colorTexture'] && !ctg['configure']['get'](cu8)['colorTexture']['isDestroyed']() && ctg['configure']['get'](cu8)['colorTexture']['destroy'](); + ctg['configure']['get'](cu8)['depthStencilTexture'] = ctg['configure'][dol(0x1215)](cu8)['depthStencilTexture'] && !ctg['configure']['get'](cu8)['depthStencilTexture']['isDestroyed']() && ctg['configure']['get'](cu8)['depthStencilTexture']['destroy'](); + } + function cu9(cua) { + ctg['configure']['get'](cua)['frameBuffer'] = new ctf['Framebuffer']({ + 'context': ctg['_context'], + 'colorTextures': [ctg['configure']['get'](cua)['colorTexture']], + 'depthStencilTexture': ctg['configure']['get'](cua)['depthStencilTexture'], + 'destroyAttachments': ![] + }); + ctg['configure']['get'](cua)['passState'] = new ctf['PassState'](ctg[dol(0x1216)]); + ctg['configure']['get'](cua)['passState']['framebuffer'] = ctg['configure']['get'](cua)['frameBuffer']; + ctg['configure']['get'](cua)['passState']['viewport'] = new ctf['BoundingRectangle'](0x0,0x0,ctg['configure']['get'](cua)['width'],ctg[dol(0x1217)]['get'](cua)['height']); + } + function cub(cuc) { + ctg['configure']['get'](cuc)['framebuffer'] = ctg['configure']['get'](cuc)['framebuffer'] && !ctg['configure']['get'](cuc)['framebuffer'][dol(0x1218)]() && ctg['configure']['get'](cuc)['framebuffer']['destroy'](); + } + function cud(cue) { + ctg[dol(0x1219)]['get'](cue)['clearCommand'] = new ctf['ClearCommand']({ + 'depth': 0x1, + 'color': ctg[dol(0x121a)][dol(0x121b)](cue)['clearColor'] || new ctf['Color'](0x1,0x1,0x1,0x0) + }); + ctg['configure']['get'](cue)[dol(0x121c)] = new ctf['PassState'](ctg['_context']); + ctg['configure']['get'](cue)['clearCommand'][dol(0x121d)] = ctg['configure']['get'](cue)['frameBuffer']; + } + function cuf(cug) { + ctg['configure']['get'](cug)['clearCommand']['execute'](ctg['_context'], ctg['configure']['get'](cug)[dol(0x121e)]); + cur(cug); + ctg['configure']['get'](cug)['_uniformState']['updateCamera'](ctg['configure']['get'](cug)['customCamera']); + ctg['configure']['get'](cug)['_uniformState']['updateFrustum'](ctg['configure']['get'](cug)['customCamera']['frustum']); + ctg['configure']['get'](cug)['renderState'] = new ctf['RenderState'](); + ctg['configure']['get'](cug)['renderState']['depthTest']['enabled'] = !![]; + ctg['configure']['get'](cug)['renderState']['cull']['enabled'] = ![]; + var cuh = [ctf['Pass'][dol(0x121f)], ctf[dol(0x1220)]['OPAQUE'], ctf['Pass']['TRANSLUCENT']]; + if (ctg[dol(0x1221)]['get'](cug)['passes'] && ctg['configure']['get'](cug)['passes']['length'] > 0x0) { + cuh = ctg['configure'][dol(0x1222)](cug)['passes']; + } + var cui, cuj = ctg['_scene']['_view']['frustumCommandsList'], cuk = cuj['length'], cul = undefined, cuh = cuh; + for (var cun = 0x0; cun < cuk; ++cun) { + var cuo = cuj[cuk - cun - 0x1]; + cuh['forEach'](function(cup) { + ctg['configure'][dol(0x1223)](cug)['_uniformState']['updatePass'](cup); + cul = cuo['commands'][cup]; + cui = cuo['indices'][cup]; + for (var q = 0x0; q < cui; ++q) { + cul[q]['_renderStateOld'] = cul[q]['renderState']; + cul[q]['renderState'] = ctg['configure']['get'](cug)['renderState']; + cul[q]['depthForTranslucentClassification'] = !![]; + cul[q][dol(0x1224)](ctg['_context'], ctg['configure']['get'](cug)['passState']); + } + }); + } + } + function cur(cus) { + ctg['configure']['get'](cus)['customCamera'] || (ctg[dol(0x1225)]['get'](cus)['customCamera'] = new ctf[(dol(0x1226))](ctg['_scene'])); + cut(cus); + cuz(cus); + } + function cut(cuu) { + ctg['configure']['get'](cuu)['customCamera']['frustum'] = new ctf['OrthographicOffCenterFrustum'](); + ctg['configure']['get'](cuu)['customCamera'][dol(0x1227)]['right'] = ctg[dol(0x1228)][dol(0x1229)](cuu)['viewport']['size']['x'] * 0.5; + ctg[dol(0x122a)]['get'](cuu)['customCamera']['frustum']['left'] = -ctg['configure']['get'](cuu)['viewport']['size']['x'] * 0.5; + ctg['configure']['get'](cuu)['customCamera']['frustum']['top'] = ctg['configure']['get'](cuu)['viewport'][dol(0x122b)]['y'] * 0.5; + ctg['configure']['get'](cuu)['customCamera']['frustum'][dol(0x122c)] = -ctg['configure']['get'](cuu)['viewport']['size']['y'] * 0.5; + ctg['configure']['get'](cuu)['customCamera']['frustum']['near'] = 1e-7; + ctg['configure']['get'](cuu)['customCamera']['frustum']['far'] = ctg['configure']['get'](cuu)['viewport'][dol(0x122d)]['z'] * 0.5 + ctg['configure']['get'](cuu)['viewport']['radius'] * 0x2; + var cuv = ctf['Transforms']['eastNorthUpToFixedFrame'](ctg['configure'][dol(0x122e)](cuu)['viewport']['center']); + var cuw = 0x0; + var cux = ctf['Math']['toRadians'](-0x5a); + var cuy = ctg['configure']['get'](cuu)[dol(0x122f)]['radius']; + ctg['configure']['get'](cuu)['customCamera']['lookAtTransform'](cuv, new ctf['HeadingPitchRange'](cuw,cux,cuy)); + } + function cuz(cuA) { + ctg['configure']['get'](cuA)['debugCameraPrimitive'] ? ctg['configure']['get'](cuA)['debugCameraPrimitive']['show'] = ctg['configure']['get'](cuA)['debugCamera']['show'] : ctg['configure']['get'](cuA)['debugCamera']['show'] && ctg['configure'][dol(0x1230)](cuA)['customCamera'] && (ctg['configure']['get'](cuA)['debugCameraPrimitive'] = new ctf['DebugCameraPrimitive']({ + 'camera': ctg['configure']['get'](cuA)['customCamera'], + 'color': ctg['configure']['get'](cuA)['debugCamera']['color'], + 'updateOnChange': ctg[dol(0x1231)]['get'](cuA)['debugCamera']['updateOnChange'] + }), + ctg['_scene']['primitives']['add'](ctg['configure']['get'](cuA)['debugCameraPrimitive'])); + } + function cuB(cuC) { + var cuD = ctg['configure']['get'](cuC)['width'] + , cuE = ctg['configure']['get'](cuC)['height'] + , cuF = ctg['_context']['readPixels']({ + 'x': ctg['configure']['get'](cuC)['passState']['viewport']['x'], + 'y': ctg[dol(0x1232)]['get'](cuC)['passState']['viewport']['y'], + 'width': cuD, + 'height': cuE, + 'framebuffer': ctg['configure']['get'](cuC)['frameBuffer'] + }) + , cuG = ctf['PixelFormat']['createTypedArray'](ctf[dol(0x1233)]['RGBA'], ctf['PixelDatatype']['UNSIGNED_BYTE'], cuD, cuE) + , q = 0x4 * cuD; + for (var cuI = cuE - 0x1; 0x0 <= cuI; cuI--) + for (var cuJ = cuI * q, cuK = (cuE - 0x1 - cuI) * q, cuL = 0x0; cuL < cuD; cuL++) + for (var cuM = 0x4 * cuL, cuN = 0x0; cuN < 0x4; cuN++) + cuG[cuJ + cuM + cuN] = cuF[cuK + cuM + cuN]; + return cuG; + } + function cuO(cuP, cuQ) { + cuf(cuP); + if (cuQ) { + cuQ(cuB(cuP)); + } else { + cuB(cuP); + } + } + function cuR(cuS, cuT) { + return cuO(cuS, cuT); + } + function cuU(cuV, cuW) { + var cuX = undefined; + var cuY = doj(0x354); + if (ctg['configure']['get'](cuV)['outputCanvas']) { + cuX = document['getElementById'](ctg['configure'][dol(0x1234)](cuV)['outputCanvas']); + if (!cuX) { + cuX = document['createElement']('c' + doo(0x978) + 's'); + cuX['id'] = cuY; + cuX['style'][dol(0x1235)] = 'n' + doo(0x979) + 'e'; + document['body']['appendChild'](cuX); + } + } else { + cuX = document['createElement']('c' + doo(0x97a) + 's'); + cuX['id'] = cuY; + cuX['style']['display'] = 'n' + doo(0x97b) + 'e'; + document['body']['appendChild'](cuX); + } + var cuZ = cuX['getContext'](doh(0x125)); + var cv0 = ctg['configure']['get'](cuV)['width']; + var cv1 = ctg['configure']['get'](cuV)['height']; + cuX['height'] = cv1; + cuX['width'] = cv0; + var cv2 = cuZ['createImageData'](cv0, cv1); + cv2['data']['set'](cuW); + cuZ['putImageData'](cv2, 0x0, 0x0); + var cv3 = cuX['toDataURL']('i' + doo(0x97c) + 'g'); + if (ctg['configure']['get'](cuV)['outputCanvas']) { + if (!ctg['configure']['get'](cuV)['image']) + ctg['configure'][dol(0x1236)](cuV)['image'] = new Image(); + ctg['configure']['get'](cuV)['image']['src'] = cv3; + cuZ['clearRect'](0x0, 0x0, cv0, cv1); + cuZ['fillStyle'] = 's' + doo(0x97d) + 'e'; + cuZ['fillRect'](0x0, 0x0, cv0, cv1); + ctg['configure']['get'](cuV)['image']['onload'] = function() { + cuZ['drawImage'](this, 0x0, 0x0, cv0, cv1); + } + ; + } else { + var cv4 = document['getElementById'](cuY); + if (cv4) + cv4['parentNode']['removeChild'](cv4); + } + return cv3; + } + function cv5(cv6) { + ctg['configure']['set'](cv6['id'], cvb(cth)); + cv7(ctg['configure']['get'](cv6['id']), cv6); + } + function cv7(cv8, cv9) { + for (var cva in cv9) + if (cv9['hasOwnProperty'](cva)) { + if (!cv8['hasOwnProperty'](cva)) + cv8[cva] = {}; + if (Array['isArray'](cv9[cva])) { + cv8[cva] = []; + cv8[cva] = cv8[cva]['concat'](cv9[cva]); + } else if (cv9[cva]instanceof ctf['Cartesian2'] || cv9[cva]instanceof ctf['Cartesian3'] || cv9[cva]instanceof ctf['Cartesian4'] || cv9[cva]instanceof ctf[dol(0x1237)] || cv9[cva]instanceof ctf['Matrix3'] || cv9[cva]instanceof ctf[dol(0x1238)] || cv9[cva]instanceof ctf['Color']) { + cv8[cva] = cv9[cva]['clone'](); + } else if (cvg(cv9[cva])) { + cv8[cva] = cv9[cva]; + } else { + cv8[cva] = cv7(cv8[cva], cv9[cva]); + } + } + return cv8; + } + function cvb(cvc, cvd) { + if (!cvc || typeof cvc !== 'o' + doo(0x97e) + 't') { + throw new Error('e' + doo(0x97f) + 'r'); + } + var cve = cvc[dol(0x1239)] === Array ? [] : {}; + for (var cvf in cvc) { + if (cvd && cvd['indexOf'](cvf) != -0x1) + continue; + if (cvc['hasOwnProperty'](cvf)) { + if (cvc[cvf] && typeof cvc[cvf] === 'o' + doo(0x980) + 't') { + cve[cvf] = cvc[cvf][dol(0x123a)] === Array ? [] : {}; + cve[cvf] = cvb(cvc[cvf], cvd); + } else { + cve[cvf] = cvc[cvf]; + } + } + } + return cve; + } + ;function cvg(cvh) { + return typeof cvh === 's' + doo(0x981) + 'g' || typeof cvh === 'n' + doo(0x982) + 'r' || typeof cvh === 'b' + doo(0x983) + 'n' || typeof cvh === 'u' + doo(0x984) + 'd' || cvh === null; + } + return cti; + }(window['Cesium'] || {}); + ;GLEThirdPersonRoaming = function(cvi) { + var cvj = { + 'moveSpeed': 0.1, + 'rotateSpeed': 0x5, + 'personModelUrl': doj(0x355), + 'initModelHeading': 0x0, + 'initModelScale': 0x1, + 'enableGravity': !![], + 'enableCross': ![], + 'enbaleCameraFollow': ![], + 'onPositionChanged': function(cvk) {} + }; + var cvl = { + 'moveUp': ![], + 'moveDown': ![], + 'moveLeft': ![], + 'moveRight': ![], + 'moveCross': ![], + 'mouseMove': ![] + }; + var cvm = 0x0; + var cvn = -Math['PI'] / 0x8; + var cvo = 0x3; + var cvp = [0x1, 0x5]; + var cvq = cvi['Math']['toRadians'](0x2); + var cvr = new cvi['Cartesian3'](); + var cvs; + var cvt = ![]; + var cvu = ![]; + var cvv = []; + var cvw = 9.8; + var cvx = 0x0; + var cvy = ![]; + var cvz = new cvi['Cartesian2'](); + var cvA = 0.2 + , cvB = 0.5 + , cvC = 1.5; + var cvD; + function cvE(cvF, cvG) { + this['_API'] = cvF; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + this['_canvas'] = this['_viewer']['canvas']; + this['_camera'] = this['_viewer'][dol(0x123b)]; + cvD = this; + cwX(cvD, cvG); + cvq = cvi['Math']['toRadians'](cvD[dol(0x123c)]['rotateSpeed']); + } + cvE['prototype']['pickBirthPosition'] = function pickBirthPosition(cvH) { + cvD['_API']['Public']['event']('L' + doo(0x985) + 'K', function(cvI) { + cvD['_API']['Public']['clearHandler']('L' + doo(0x986) + 'K'); + cvD['_API']['Public']['pickupCoordinate'](cvI['position'], function(cvJ) { + if (cvi['defined'](cvH)) { + cvH(cvJ); + } + var cvK = cvi['Cartesian3']['fromRadians'](cvJ[0x0], cvJ[0x1], cvJ[0x2]); + cvP(cvK, cvD['configure']['personModelUrl']); + }); + }); + } + ; + cvE[dol(0x123d)]['start'] = function(cvL, cvM) { + if (!cvi['defined'](cvL)) { + return; + } + var cvN = new cvi['Cartesian3'](); + if (cvM == 0x1) { + if (Array['isArray'](cvL) && cvL['length'] == 0x3) { + cvN = cvi[dol(0x123e)]['fromRadiansArrayHeights'](cvL)[0x0]; + } else if (cvL instanceof cvi['Cartesian3']) { + cvL['clone'](cvN); + } + } else if (cvM == 0x2) { + if (Array['isArray'](cvL) && cvL['length'] == 0x3) { + cvN = cvi['Cartesian3']['fromArray'](cvL); + } else if (cvL instanceof cvi['Cartesian3']) { + cvL['clone'](cvN); + } + } else { + throw doj(0x356); + } + cvP(cvN, cvD['configure']['personModelUrl']); + } + ; + function cvO() { + return cvy; + } + cvE['prototype']['getRunningStatus'] = cvO; + function cvP(cvQ, cvR) { + cvm = cvD['_camera']['heading'] - cvi['Math'][dol(0x123f)](0x5a); + cvr = cvQ['clone'](); + cvs = cvD['_viewer']['entities']['add']({ + 'id': 'p' + doo(0x987) + 'e', + 'model': { + 'uri': cvR, + 'scale': cvD['configure']['initModelScale'] + }, + 'position': new cvi['CallbackProperty'](function() { + return cvr; + } + ,![]), + 'orientation': new cvi['CallbackProperty'](function() { + return cvi['Transforms']['headingPitchRollQuaternion'](cvQ, new cvi['HeadingPitchRoll'](cvm + cvi['Math']['toRadians'](cvD['configure']['initModelHeading']),0x0,0x0)); + } + ,![]), + 'path': { + 'resolution': 0x1, + 'material': new cvi['PolylineGlowMaterialProperty']({ + 'glowPower': 0.1, + 'color': cvi['Color']['YELLOW'] + }), + 'width': 0x1 + } + }); + cvv['push'](cvs); + cwO(); + } + cvE['prototype'][dol(0x1240)] = function(cvS) { + var cvT = new cvi['Cartesian3'](Math['cos'](-cvm),Math['sin'](-cvm),0x0); + cvi['Cartesian3']['normalize'](cvT, cvT); + var cvU = cvi['Transforms']['eastNorthUpToFixedFrame'](cvr); + var cvV = new cvi['Cartesian3'](); + var cvW = new cvi['Cartesian3'](); + cvi['Cartesian3']['multiplyByScalar'](cvT, 0x1, cvV); + cvi['Matrix4']['multiplyByPoint'](cvU, cvV, cvW); + var cvX = new cvi['Cartesian3'](); + cvi[dol(0x1241)]['subtract'](cvW, cvr, cvX); + cvi['Cartesian3']['normalize'](cvX, cvX); + var cvY = cvi[dol(0x1242)]['clone'](cvr); + cvi['Cartesian3']['normalize'](cvY, cvY); + var cvZ = new cvi['Cartesian3'](); + var cw0 = new cvi['Cartesian3'](); + var cw1 = new cvi['Cartesian3'](); + cvi['Cartesian3']['multiplyByScalar'](cvY, cvA, cvZ); + cvi['Cartesian3']['multiplyByScalar'](cvY, cvB, cw0); + cvi['Cartesian3']['multiplyByScalar'](cvY, cvC, cw1); + var cw2 = new cvi['Cartesian3'](); + cvi['Cartesian3']['add'](cvr, cvZ, cw2); + var cw3 = new cvi['Ray'](cw2,cvX); + var cw4 = new cvi['Cartesian3'](); + cvi[dol(0x1243)][dol(0x1244)](cvr, cw0, cw4); + var cw5 = new cvi['Ray'](cw4,cvX); + var cw6 = new cvi[(dol(0x1245))](); + cvi['Cartesian3']['add'](cvr, cw1, cw6); + var cw7 = new cvi['Ray'](cw6,cvX); + var cw8 = new cvi['Cartesian3'](); + cvi['Cartesian3']['negate'](cvY, cw8); + cvi['Cartesian3']['normalize'](cw8, cw8); + var cw9 = new cvi['Ray'](cw6,cw8); + return { + 'peoplePosition': cvr, + 'peopleFootPosition': cw2, + 'halfPeopleHeightPosition': cw4, + 'peopleHeightPosition': cw6, + 'direction': cvT, + 'rayAdvance': cw3, + 'rayAdvance1': cw5, + 'rayAdvance2': cw7, + 'rayGravity': cw9 + }; + } + ; + function cwa(cwb) { + if (cvl['moveLeft']) { + cvm -= cvq; + } else if (cvl['moveRight']) { + cvm += cvq; + } + var cwc = cvD['getRays'](); + if (cvD['configure']['enableGravity']) { + var cwd = cvD['_scene']['pickFromRay'](cwc['rayGravity'], cvv, 0x1); + var cwe = new cvi['Cartesian3'](); + var cwf = 0x0; + cvu = ![]; + if (cvi['defined'](cwd) && cvi['defined'](cwd['position'])) { + cwe = cwd[dol(0x1246)]['clone'](); + cwf = cvi['Cartesian3']['distance'](cwc['rayGravity']['origin'], cwe); + cvu = cwf <= cvC; + var cwg = new cvi['Cartesian3'](0x0,0x0,-0x1); + var cwh = 0x0; + if (cvu) { + if (cwf <= cvC) { + cwh = cwf - cvC; + } + cvx = 0x0; + } else { + if (cvx == 0x0) { + cvx = new Date()['getTime'](); + } + var cwi = (new Date()['getTime']() - cvx) * 0.001; + var cwj = cvw * cwi; + var cwk = 0x1 / 0xf; + var cwh = cwj * cwk; + if (cwh > cwf) { + cwh = cwf - cvC; + } + } + if (Math[dol(0x1247)](cwh) > 0.1) { + if (Math['abs'](cwh) < 0.3) { + cwh = cwh * 0.5; + } + var cwm = new cvi['Cartesian3'](); + cvi['Cartesian3']['multiplyByScalar'](cwg, cwh, cwm); + var cwn = cvi['Transforms']['eastNorthUpToFixedFrame'](cvr); + cvi['Matrix4'][dol(0x1248)](cwn, cwm, cvr); + } + } + } + if (cvl['moveUp']) { + var cwo = cvD['_scene'][dol(0x1249)](cwc['rayAdvance'], cvv, 0.5); + var cwp = cvD['_scene']['pickFromRay'](cwc['rayAdvance1'], cvv, 0.5); + var cwq = new cvi[(dol(0x124a))]() + , cwr = new cvi['Cartesian3'](); + var cws = Infinity + , cwt = Infinity; + cvt = ![]; + if (cvi['defined'](cwo) && cvi['defined'](cwo['position'])) { + cwq = cwo['position'][dol(0x124b)](); + cws = cvi['Cartesian3']['distance'](cwc['rayAdvance']['origin'], cwq); + } + var cwu = cwc['direction']; + if (cvi['defined'](cwp) && cvi['defined'](cwp['position'])) { + cwr = cwp['position']['clone'](); + cwt = cvi['Cartesian3']['distance'](cwc['rayAdvance1']['origin'], cwr); + cvt = cwt < 0.3; + var cwv = ![]; + if (cws < 0.2 && cwt > 0.3) { + var cww = new cvi[(dol(0x124c))](); + var cwx = new cvi[(dol(0x124d))](); + var cwy = new cvi[(dol(0x124e))](); + cvi['Cartesian3']['multiplyByScalar'](cwu, cwt - cws, cww); + cvi[dol(0x124f)]['multiplyByScalar'](new cvi['Cartesian3'](0x0,0x0,-0x1), cvB - cvA, cwx); + cvi['Cartesian3']['subtract'](cww, cwx, cwy); + cvi['Cartesian3']['clone'](cwy, cwu); + cwv = !![]; + } + } + if (cvD['configure']['enableCross'] || cvl['moveCross'] || !cvt) { + var cwn = cvi['Transforms']['eastNorthUpToFixedFrame'](cvr); + var cwm = new cvi['Cartesian3'](); + cvi['Cartesian3']['multiplyByScalar'](cwu, cvD['configure']['moveSpeed'] * (cwv ? 0.5 : 0x1), cwm); + cvi['Matrix4']['multiplyByPoint'](cwn, cwm, cvr); + } + } + if (cvD['configure']['enbaleCameraFollow']) { + var cws = Infinity; + var cwC = new cvi['Cartesian3'](); + cvi['Cartesian3']['negate'](cwc['rayAdvance2']['direction'], cwC); + var cwD = new cvi['Ray'](cwc['rayAdvance2']['origin'],cwC); + var cwE = cvD['_scene']['pickFromRay'](cwD, cvv, 0.5); + if (cvi['defined'](cwE) && cvi['defined'](cwE[dol(0x1250)])) { + cws = cvi['Cartesian3']['distance'](cwD['origin'], cwE['position']) - 0.2; + } + var cwF = cvi['Transforms']['eastNorthUpToFixedFrame'](cwc['peopleHeightPosition']); + cvD['_camera']['lookAtTransform'](cwF, new cvi['HeadingPitchRange'](cvm + cvi[dol(0x1251)]['toRadians'](0x5a),cvn,Math['min'](cvo, cws))); + } + if (cvl['moveLeft'] || cvl['moveRight'] || cvl['moveUp'] || cvl['mouseMove']) + if (cvi['defined'](cvD['configure']['onPositionChanged'])) { + var cwG = cvD['_API'][dol(0x1252)][dol(0x1253)]([cvr['x'], cvr['y'], cvr['z']]); + cvD['configure']['onPositionChanged']({ + 'position': cvr, + 'positionRadian': cwG, + 'heading': cvm, + 'pitch': cvn + }); + } + } + var cwH = function(cwI) { + var cwJ = cwI['keyCode']; + var cwK = cwI['type']; + var cwL = cwK == 'k' + doo(0x988) + 'n'; + cwT(cwI, cwL); + if (cwJ == KEY_LEFT || cwJ == KEY_Q || cwJ == KEY_UP || cwJ == KEY_W || cwJ == KEY_RIGHT || cwJ == KEY_E || cwJ == KEY_DOWN || cwJ == KEY_S) { + cvy = cwL; + } + }; + var cwM = function(cwN) { + if (cwN < 0x0) { + cvo += 0.2; + } else if (cwN > 0x0) { + cvo -= 0.2; + } + cvo = Math['min'](cvp[0x1], cvo); + cvo = Math['max'](cvp[0x0], cvo); + }; + function cwO() { + document['addEventListener']('k' + doo(0x989) + 'n', cwH); + document['addEventListener']('k' + doo(0x98a) + 'p', cwH); + cvD['_API']['Public']['event']('W' + doo(0x98b) + 'L', cwM); + cvD['_API']['Public']['event']('L' + doo(0x98c) + 'N', function(cwP) { + cvD[dol(0x1254)][dol(0x1255)]['event']('M' + doo(0x98d) + 'E', function(cwP) { + cvl['mouseMove'] = !![]; + if (cvi['Cartesian2']['equals'](cvz, cvi['Cartesian2']['ZERO'])) { + cvi['Cartesian2']['clone'](cwP['endPosition'], cvz); + return; + } + var cwR = new cvi['Cartesian2'](); + cvi['Cartesian2']['subtract'](cwP['endPosition'], cvz, cwR); + cvm += cwR['x'] * 0.02 * cvq; + cvn += -cwR['y'] * 0.02 * cvq; + cvi['Cartesian2']['clone'](cwP['endPosition'], cvz); + }); + }); + cvD['_API']['Public']['event']('L' + doo(0x98e) + 'P', function(cwS) { + cvD['_API'][dol(0x1256)]['clearHandler']('M' + doo(0x98f) + 'E'); + cvi['Cartesian2']['clone'](cvi['Cartesian2']['ZERO'], cvz); + cvl['mouseMove'] = ![]; + }); + cvD['_viewer'][dol(0x1257)]['onTick']['addEventListener'](cwa, 'O' + doo(0x990) + 'k'); + } + function cwT(cwU, cwV) { + switch (cwU['keyCode']) { + case KEY_LEFT: + case KEY_Q: + cvl['moveLeft'] = cwV; + break; + case KEY_UP: + case KEY_W: + cvl['moveUp'] = cwV; + break; + case KEY_RIGHT: + case KEY_E: + cvl['moveRight'] = cwV; + break; + case KEY_DOWN: + case KEY_S: + cvl['moveDown'] = cwV; + break; + case KEY_F: + cvl['moveCross'] = cwV; + break; + } + } + cvE['prototype']['exit'] = function() { + var cvD = this; + cvy = ![]; + if (cvi['defined'](cvs)) + cvD['_viewer']['entities']['remove'](cvs); + cvs = undefined; + cvv['length'] = 0x0; + document['removeEventListener']('k' + doo(0x991) + 'n', cwH); + document['removeEventListener']('k' + doo(0x992) + 'p', cwH); + cvD['_API']['Public'][dol(0x1258)]('M' + doo(0x993) + 'E'); + cvD['_API']['Public']['clearHandler']('L' + doo(0x994) + 'N'); + cvD['_API']['Public']['clearHandler']('L' + doo(0x995) + 'P'); + cvD['_viewer']['clock']['onTick']['removeEventListener'](cwa, 'O' + doo(0x996) + 'k'); + cvD['_viewer']['camera']['lookAtTransform'](cvi['Matrix4']['IDENTITY']); + } + ; + function cwX(cvD, cwZ) { + cvD['configure'] = {}; + cvD['configure'] = cvD['_API']['funcPublic']['deepCopy'](cvj); + cx0(cvD['configure'], cwZ); + } + function cx0(cx1, cx2) { + for (var cx3 in cx2) + if (cx2['hasOwnProperty'](cx3)) { + if (Array['isArray'](cx2[cx3])) { + cx1[cx3] = []; + cx1[cx3] = cx1[cx3]['concat'](cx2[cx3]); + } else if (cx4(cx2[cx3])) { + cx1[cx3] = cx2[cx3]; + } else if (typeof cx2[cx3] === 'f' + doo(0x997) + 'n') { + cx1[cx3] = cx2[cx3]; + } else if (cx2[cx3]instanceof Object) { + cx1[cx3] = cx0(cx1[cx3], cx2[cx3]); + } else { + cx1[cx3] = cx2[cx3]; + } + } + return cx1; + } + function cx4(cx5) { + return typeof cx5 === 's' + doo(0x998) + 'g' || typeof cx5 === 'n' + doo(0x999) + 'r' || typeof cx5 === 'b' + doo(0x99a) + 'n' || typeof cx5 === 'u' + doo(0x99b) + 'd' || cx5 === null; + } + function cx6(cx7, cx8) { + var cx9 = cx6['canvas'] || (cx6['canvas'] = document['createElement']('c' + doo(0x99c) + 's')); + var cxa = cx9['getContext'](doh(0x126)); + cxa['font'] = cx8; + var cxb = cxa['measureText'](cx7); + return cxb['width']; + } + function cxc(cxd, cxe, cxf, cxg, cxh) { + cvD['_viewer'][dol(0x1259)]['removeById'](cxd); + var cxi = new cvi['Cartesian3'](); + var cxj = new cvi['Cartesian3'](); + cvi['Cartesian3']['multiplyByScalar'](cxf, cxg, cxj); + cvi['Cartesian3']['add'](cxe, cxj, cxi); + var cxk = [cxe, cxi]; + var cxl = cvD['_viewer']['entities']['add']({ + 'id': cxd, + 'name': cxd, + 'polyline': { + 'positions': cxk, + 'width': 0xa, + 'arcType': cvi['ArcType']['NONE'], + 'material': new cvi['PolylineArrowMaterialProperty'](cxh) + } + }); + cvv['push'](cxl); + } + return cvE; + }(window[dol(0x125a)] || {}); + GLEVehicleBorneRadar = function(cxm) { + var cxn; + var cxo, cxp, cxq, cxr, cxs; + var cxt; + var cxu = this; + var cxv = 0x100; + function cxw(cxx) { + cxn = cxx; + if (!cxm['defined'](cxx['viewer'])) + throw doj(0x357); + cxo = cxx['viewer']; + this['_viewer'] = cxx['viewer']; + cxp = cxo['scene']; + cxq = cxo['canvas']; + cxr = cxo['camera']; + cxs = cxo['scene']['globe']; + var cxy = cxn['defaults']['container']; + cxt = document['getElementById'](cxy); + } + var cxz = {}; + cxw['prototype']['add'] = function(cxA) { + var cxB = cxA['offsetHeight'] ? cxA['offsetHeight'] : 0x0; + cxA['offsetHeight'] = cxB; + cxz[cxA['id']] = cxA; + cxz[cxA['id']]['entities'] = []; + var cxC = cxA['minR'] + , cxD = cxA['minR']; + var cxE = cxA['angleX'] ? cxA['angleX'] : 0x0; + function cxF() { + cxC = cxC + cxA['deviationR']; + if (cxC >= cxA['maxR']) { + cxC = cxA['minR']; + } + return cxC; + } + function cxG() { + cxD = cxD + cxA['deviationR']; + if (cxD >= cxA['maxR']) { + cxD = cxA['minR']; + } + return cxD; + } + var cxH = cxA['position'][0x2] + cxB; + var cxI = cxo['entities']['add']({ + 'id': cxA['id'] + doh(0x127), + 'name': '', + 'position': cxm['Cartesian3']['fromRadians'](cxA['position'][0x0], cxA['position'][0x1], cxH), + 'ellipse': { + 'semiMinorAxis': new cxm['CallbackProperty'](cxF,![]), + 'semiMajorAxis': new cxm['CallbackProperty'](cxG,![]), + 'height': cxH, + 'material': new cxm['ImageMaterialProperty']({ + 'image': cxA['imageUrl'], + 'repeat': new cxm['Cartesian2'](0x1,0x1), + 'transparent': !![], + 'color': new cxm[(dol(0x125b))](function() { + var cxJ = 0x1 - cxC / cxA['maxR']; + return cxm['Color']['WHITE']['withAlpha'](cxJ); + } + ,![]) + }), + 'stRotation': cxm['Math']['toRadians'](cxE + 0x5a) + } + }); + cxz[cxA['id']]['entities'] = [cxI]; + setTimeout(function() { + var cxK = cxo['entities']['add']({ + 'id': cxA['id'] + doh(0x128), + 'name': '', + 'position': cxm['Cartesian3']['fromRadians'](cxA['position'][0x0], cxA['position'][0x1], cxH), + 'ellipse': { + 'semiMinorAxis': new cxm['CallbackProperty'](cxF,![]), + 'semiMajorAxis': new cxm['CallbackProperty'](cxG,![]), + 'height': cxH, + 'material': new cxm['ImageMaterialProperty']({ + 'image': cxA['imageUrl'], + 'repeat': new cxm['Cartesian2'](0x1,0x1), + 'transparent': !![], + 'color': new cxm['CallbackProperty'](function() { + var cxL = 0x1; + cxL = 0x1 - cxD / cxA[dol(0x125c)]; + return cxm['Color']['WHITE']['withAlpha'](cxL); + } + ,![]) + }), + 'stRotation': cxm['Math']['toRadians'](cxE + 0x5a) + } + }); + cxz[cxA['id']]['entities']['push'](cxK); + }, cxA['eachInterval']); + } + ; + cxw['prototype']['move'] = function(cxM, cxN, cxO) { + if (cxz[cxM]) { + var cxP = cxm['Cartographic']['fromCartesian'](cxO); + var cxQ = cxz[cxM]['offsetHeight'] ? cxz[cxM]['offsetHeight'] : 0x0; + cxP['height'] += cxQ; + function cxR() { + return cxm['Cartographic']['toCartesian'](cxP); + } + function cxS() { + return cxm['Math']['toRadians'](cxN); + } + var cxT = cxz[cxM][dol(0x125d)]; + if (cxT && cxT['length'] > 0x0) { + for (var cxU = 0x0; cxU < cxT[dol(0x125e)]; cxU++) { + var cxV = cxT[cxU]; + cxV['ellipse']['stRotation'] = new cxm['CallbackProperty'](cxS,!![]); + cxV['position'] = new cxm['CallbackProperty'](cxR,!![]); + } + } + } + } + ; + cxw['prototype']['remove'] = function(cxW) { + if (cxz[cxW]) { + var cxX = cxz[cxW]['entities']; + if (cxX && cxX['length'] > 0x0) { + for (var cxY = 0x0; cxY < cxX['length']; cxY++) { + var cxZ = cxX[cxY]; + if (cxZ) + cxo['entities']['remove'](cxZ); + } + } + delete cxz[cxW]; + } + } + ; + cxw[dol(0x125f)]['addCircleRipple'] = cxw['prototype']['add']; + cxw['prototype'][dol(0x1260)] = cxw['prototype']['move']; + cxw['prototype']['removeFollowTrack'] = cxw['prototype']['remove']; + return cxw; + }(window[dol(0x1261)] || {}); + GLECesiumVideo = function(cy0) { + var cy1; + var cy2, cy3, cy4, cy5, cy6; + var cy7; + var cy8 = 0x100; + var cy9 = { + 'id': '', + 'url': '', + 'videoElement': '', + 'cameraPosition': { + 'longitude': 1.900331471625048, + 'latitude': 0.5968919925802086, + 'height': 0x1f4 + }, + 'heading': 0x0, + 'pitch': 0x0, + 'roll': 0x0, + 'rotate': 0x0, + 'viewDistance': 0x3e8, + 'horizontalViewAngle': 0x3c, + 'verticalViewAngle': 0x2d, + 'alpha': 0x1, + 'mixDepth': 0.025, + 'debugFrustum': !![], + 'frustumColor': '#' + doo(0x99d) + '0', + 'isDrawNearPlane': !![], + 'videoAutoPlay': !![], + 'videoLoop': !![] + }; + var cya = { + 'id': '', + 'url': '', + 'videoElement': '', + 'positionType': 0x0, + 'positions': [], + 'positionOffset': { + 'x': 0x0, + 'y': 0x0, + 'z': 0x0 + }, + 'rotate': 0xb4, + 'isFlipX': ![], + 'isFlipY': !![], + 'alpha': 0x1, + 'mixDepth': 0.025, + 'videoAutoPlay': !![], + 'videoLoop': !![] + }; + var cyb = new Map(); + var cyc = this; + function cyd(cye) { + if (!cy0[dol(0x1262)](cye)) + throw doj(0x358); + cy1 = cye; + cy2 = cye['viewer']; + this['_viewer'] = cy2; + cy3 = cy2['scene']; + cy4 = cy2['canvas']; + cy5 = cy2[dol(0x1263)]; + cy6 = cy2[dol(0x1264)]['globe']; + var cyf = cy1['defaults']['container']; + cy7 = document['getElementById'](cyf); + } + cyd[dol(0x1265)] = 0x0; + cyd['DegreesLongitudeLatitude'] = 0x1; + cyd['Cartesian3'] = 0x3; + function cyg(cyh, cyi) { + if (!cyh) + throw doj(0x359); + if (!cyh['hasOwnProperty'](doh(0x129))) + throw doj(0x35a); + if ((!cyh[doh(0x12a)] || cyh[doh(0x12b)]['length'] == 0x0) && (!cyh['v' + doo(0x99e) + 't'] || cyh['v' + doo(0x99f) + 't']['length'] == 0x0)) + throw doj(0x35b); + if (!cyb[cyh['id']]) { + cyb[cyh['id']] = {}; + var cyj = {}; + if (cyi) { + cyj = cAX(cya); + } else { + cyj = cAX(cy9); + } + for (var cyk in cyj) { + if (cyj['hasOwnProperty'](cyk)) { + if (Array['isArray'](cyj[cyk])) { + cyb[cyh['id']][cyk] = []; + cyb[cyh['id']][cyk] = cyb[cyh['id']][cyk]['concat'](cyj[cyk]); + } else { + cyb[cyh['id']][cyk] = cyj[cyk]; + } + } + } + } + cyl(cyb[cyh['id']], cyh); + } + function cyl(cym, cyn) { + for (var cyo in cyn) + if (cyn['hasOwnProperty'](cyo)) { + if (Array['isArray'](cyn[cyo])) { + cym[cyo] = []; + cym[cyo] = cym[cyo]['concat'](cyn[cyo]); + } else if (cB2(cyn[cyo])) { + cym[cyo] = cyn[cyo]; + } else { + cym[cyo] = cyl(cym[cyo], cyn[cyo]); + } + } + return cym; + } + function cyp(cyq, cyr) { + if (cyb[cyq]['activeVideoListener']) { + cy2['clock']['onTick'][dol(0x1266)](cyb[cyq]['activeVideoListener']); + } + if (cyb[cyq]['postProcess'] && cy2['scene']['postProcessStages']['contains'](cyb[cyq]['postProcess'])) { + cy2[dol(0x1267)]['postProcessStages']['remove'](cyb[cyq]['postProcess']); + } + if (cyb[cyq]['shadowsOnSelf']) { + cy2[dol(0x1268)] = ![]; + } + if (cyb[cyq]['shadowMapPrimitive'] && cy3[dol(0x1269)]['contains'](cyb[cyq][dol(0x126a)])) { + cy3['primitives']['remove'](cyb[cyq]['shadowMapPrimitive']); + } + cyb[cyq]['videoTexture'] && cyb[cyq]['videoTexture']['destroy'](); + if (cyb[cyq]['frustumOutline']) { + cy3['primitives']['remove'](cyb[cyq]['frustumOutline']); + } + if (cyb[cyq]['videoPrimitive']) { + cy3['primitives']['remove'](cyb[cyq]['videoPrimitive']); + } + if (![] !== cyr) + if (cyb[cyq]['videoEle'] && cyb[cyq]['videoEle']['parentElement']) + cyb[cyq]['videoEle']['parentElement']['removeChild'](cyb[cyq]['videoEle']); + delete cyb[cyq]; + } + cyd['prototype']['delete'] = cyp; + cyd['prototype']['add'] = function(cys, cyt) { + try { + cyt['id'] = cys; + cyt['m' + doo(0x9a0) + 'e'] = doh(0x12c); + if (cyb[cyt['id']]) { + cyp(cyt['id']); + } + cyg(cyt, ![]); + cAC(cys); + } catch (cyu) { + console['error'](cyu); + } + } + ; + function cyv(cyw, cyx) { + try { + cyx['id'] = cyw; + cyx['m' + doo(0x9a1) + 'e'] = doh(0x12d); + cyg(cyx, !![]); + if (cyb[cyw]['videoPrimitive']) { + cy3['primitives']['remove'](cyb[cyw]['videoPrimitive']); + } + var cyy = []; + switch (cyb[cyw]['positionType']) { + case cyd['RadianLongitudeLatitude']: + cy0['Cartesian3']['fromRadiansArrayHeights'](cyb[cyw]['positions'], cy0[dol(0x126b)]['WGS84'], cyy); + break; + case cyd['DegreesLongitudeLatitude']: + cy0['Cartesian3']['fromDegreesArrayHeights'](cyb[cyw]['positions'], cy0['Ellipsoid']['WGS84'], cyy); + break; + case cyd['Cartesian3']: + cyy = cyb[cyw]['positions']; + break; + default: + break; + } + if (cyy && cyy['length'] >= 0x3) { + function cyz(cyA) { + cyA['x'] += cyb[cyw]['positionOffset']['x']; + cyA['y'] += cyb[cyw]['positionOffset']['y']; + cyA['z'] += cyb[cyw]['positionOffset']['z']; + return cyA; + } + cyy['map'](cyz); + var cyB = cyH(cyw); + if (cyB) { + czW(cyw, cyy, cyb[cyw]['rotate'], cyB, cyb[cyw]['isFlipX'], cyb[cyw][dol(0x126c)]); + } else { + cyp(cyw); + throw doj(0x35c); + } + } else { + cyp(cyw); + throw doj(0x35d); + } + } catch (cyC) { + console['error'](cyC); + } + } + cyd[dol(0x126d)]['addByPlane'] = cyv; + cyd['prototype']['updateByPlane'] = cyv; + cyd['prototype']['update'] = function(cyD, cyE) { + try { + cyE['id'] = cyD; + if (cyb[cyD]) { + cyE['m' + doo(0x9a2) + 'e'] = doh(0x12e); + cyE['url'] = cyb[cyD][doh(0x12f)]; + cyE['videoElement'] = cyb[cyD]['v' + doo(0x9a3) + 't']; + cyg(cyE); + cAH(cyD); + } + } catch (cyF) { + console['error'](cyF); + } + } + ; + cyd['prototype']['get'] = function(cyG) { + if (cyb[cyG]) { + return cAX(cyb[cyG], ['c' + doo(0x9a4) + 'a', 'f' + doo(0x9a5) + 'e', 's' + doo(0x9a6) + 'p', 'v' + doo(0x9a7) + 'e', 'v' + doo(0x9a8) + 'e', 'v' + doo(0x9a9) + 'e', 'a' + doo(0x9aa) + 'r']); + } else { + console['error']('查' + doo(0x9ab) + '置'); + } + } + ; + function cyH(cyI) { + var cyJ; + if (cyb[cyI]['url'] && cyb[cyI]['url']['length'] > 0x0) { + var cyK = document['createElement']('S' + doo(0x9ac) + 'E'); + cyK['type'] = 'v' + doo(0x9ad) + '4'; + cyK['src'] = cyb[cyI]['url']; + var cyL = document['createElement']('S' + doo(0x9ae) + 'E'); + cyL['type'] = 'v' + doo(0x9af) + 'e'; + cyL['src'] = cyb[cyI]['url']; + var cyJ = document['createElement']('V' + doo(0x9b0) + 'O'); + cyJ['appendChild'](cyK); + cyJ['appendChild'](cyL); + cyJ[dol(0x126e)](doh(0x130), 'g' + doo(0x9b1) + '_' + cyI); + cyJ[dol(0x126f)](doh(0x131), cyb[cyI]['url']); + cyJ['setAttribute']('c' + doo(0x9b2) + 's', 'c' + doo(0x9b3) + 's'); + cyJ['setAttribute']('m' + doo(0x9b4) + 'd', !![]); + cyJ['setAttribute']('p' + doo(0x9b5) + 'd', !![]); + cyJ['setAttribute']('c' + doo(0x9b6) + 'n', !![]); + if (cyb[cyI]['videoAutoPlay']) + cyJ['setAttribute']('a' + doo(0x9b7) + 'y', cyb[cyI]['videoAutoPlay']); + if (cyb[cyI][dol(0x1270)]) + cyJ['setAttribute']('l' + doo(0x9b8) + 'p', cyb[cyI]['videoLoop']); + cyJ['style']['zIndex'] = -0x1; + cyJ[dol(0x1271)]['position'] = 'a' + doo(0x9b9) + 'e'; + var cyN = document['body']['firstChild']; + document['body']['insertBefore'](cyJ, cyN); + } else if (cyb[cyI]['videoElement'] && cyb[cyI]['videoElement']['length'] > 0x0) { + cyJ = document[dol(0x1272)](cyb[cyI]['videoElement']); + } + if (cyJ) { + cyb[cyI]['videoEle'] = cyJ; + var cyO = function() { + if (cyb[cyI]) { + cyb[cyI]['videoTexture'] && cyb[cyI][dol(0x1273)]['destroy'](); + cyb[cyI]['videoTexture'] = new cy0['Texture']({ + 'context': cy3['context'], + 'source': cyJ, + 'width': 0x1, + 'height': 0x1, + 'pixelFormat': cy0['PixelFormat']['RGBA'], + 'pixelDatatype': cy0['PixelDatatype']['UNSIGNED_BYTE'] + }); + } + }; + cyb[cyI]['activeVideoListener'] = cyO; + cy2['clock']['onTick']['addEventListener'](cyO); + } + return cyJ; + } + function cyP(cyQ) { + var cyR = cyb[cyQ]['camera']; + if (!cyR) { + cyR = new cy0['Camera'](cy3); + } + var cyS = cyb[cyQ]['viewDistance']; + cyR['frustum']['near'] = cyS * 0.001; + cyR['frustum']['far'] = cyS; + var cyT = cy0['Math']['toRadians'](cyb[cyQ]['horizontalViewAngle']); + var cyU = cy0['Math']['toRadians'](cyb[cyQ]['verticalViewAngle']); + var cyV = cyS * Math['tan'](cyT / 0x2) * 0x2 / (cyS * Math['tan'](cyU / 0x2) * 0x2); + cyR['frustum'][dol(0x1274)] = cyV; + cyR['frustum']['fov'] = Math['max'](cyT, cyU); + cyR['setView']({ + 'destination': cy0['Cartesian3']['fromRadians'](cyb[cyQ]['cameraPosition']['longitude'], cyb[cyQ][dol(0x1275)]['latitude'], cyb[cyQ]['cameraPosition']['height']), + 'orientation': { + 'heading': cy0['Math']['toRadians'](cyb[cyQ]['heading'] || 0x0), + 'pitch': cy0[dol(0x1276)]['toRadians'](cyb[cyQ]['pitch'] || 0x0), + 'roll': cy0['Math']['toRadians'](cyb[cyQ]['roll'] || 0x0) + } + }); + cyb[cyQ]['camera'] = cyR; + cy1[dol(0x1277)]['testCamera'] = cyR; + } + function cyW(cyX) { + var cyY = new cy0['Cartesian3'](); + var cyZ = new cy0['Matrix3'](); + var cz0 = new cy0['Quaternion'](); + var cz1 = cyb[cyX]['camera']['positionWC']; + var cz2 = cyb[cyX]['camera']['directionWC']; + var cz3 = cyb[cyX]['camera']['upWC']; + var cz4 = cyb[cyX]['camera']['rightWC']; + cz4 = cy0['Cartesian3']['negate'](cz4, cyY); + var cz5 = cyZ; + cy0[dol(0x1278)][dol(0x1279)](cz5, 0x0, cz4, cz5); + cy0['Matrix3']['setColumn'](cz5, 0x1, cz3, cz5); + cy0['Matrix3']['setColumn'](cz5, 0x2, cz2, cz5); + var cz6 = cy0['Quaternion']['fromRotationMatrix'](cz5, cz0); + return cz6; + } + function cz7(cz8, cz9) { + if (cyb[cz8]['frustumOutline']) { + cy3['primitives']['remove'](cyb[cz8]['frustumOutline']); + } + if (cyb[cz8]['debugFrustum']) { + cza(cz8, cz9); + } + } + function cza(czb, czc) { + var czd = 'f' + doo(0x9ba) + '_' + czb; + var cze = new cy0['GeometryInstance']({ + 'geometry': new cy0['FrustumOutlineGeometry']({ + 'frustum': cyb[czb]['camera']['frustum'], + 'origin': cyb[czb]['camera']['positionWC'], + 'orientation': czc, + '_drawNearPlane': cyb[czb]['isDrawNearPlane'] + }), + 'id': czd, + 'attributes': { + 'color': cy0['ColorGeometryInstanceAttribute']['fromColor'](cy0['Color']['fromCssColorString'](cyb[czb]['frustumColor'])), + 'show': new cy0['ShowGeometryInstanceAttribute'](!![]) + } + }); + var czf = cy3['primitives']['add'](new cy0['Primitive']({ + 'geometryInstances': [cze], + 'appearance': new cy0['PerInstanceColorAppearance']({ + 'flat': !![], + 'translucent': ![] + }) + })); + cyb[czb]['frustumOutline'] = czf; + } + function czg(czh, czi, czj) { + var czk = czi; + var czl = czj; + var czm = cyb[czh]['camera']['frustum']; + var czn; + var czo = 0x0; + var czp = 0x1; + if (czm instanceof cy0['PerspectiveFrustum']) { + czn = czo; + } else if (czm instanceof cy0['OrthographicFrustum']) { + czn = czp; + } + cyb[czh]['viewDistance']; + cyb[czh]['horizontalViewAngle']; + cyb[czh][dol(0x127a)]; + var czq = new Float64Array(0x3 * 0x4 * 0x2); + cy0['FrustumGeometry']['_computeNearFarPlanes'](czk, czl, czn, czm, czq); + return czq; + } + function czr(czs, czt, czu, czv) { + if (cyb[czs]['videoPrimitive']) { + cy3['primitives']['remove'](cyb[czs]['videoPrimitive']); + } + czJ(czs, czt, czu, czv); + return; + var czw = cy0['HeadingPitchRoll']['fromDegrees'](cyb[czs]['heading'], cyb[czs]['pitch'], cyb[czs]['roll']); + var czx = new cy0['Matrix4'](); + cy0['Matrix4']['fromTranslationQuaternionRotationScale'](czu, czv, new cy0[(dol(0x127b))](0x1,0x1,0x1), czx); + if (cyb[czs]['videoPrimitive']) { + cyb[czs]['videoPrimitive']['modelMatrix'] = czx; + console['log'](cyb[czs]['videoPrimitive']); + return; + } + var czy = czg(czs, czu, czv); + var czy = Array['from'](czy)['splice'](0x3 * 0x4); + var czA = cy0['Cartesian3']['unpackArray'](czy); + var czB = []; + for (var czC = 0x0; czC < czA['length']; czC++) { + czB['push'](cAy(czu, czA[czC])); + if (czC < czA['length'] - 0x1) { + czB['push'](cAy(czu, czA[czC + 0x1])); + } else if (czC == czA['length'] - 0x1) { + czB['push'](cAy(czu, czA[0x0])); + } + } + var czD = cyb[czs]['heading']; + var czE = cyb[czs]['rotate'] || 0x0; + if (czD >= -128.8552 && czD <= -38.5952) { + czE += 0x5a; + } else if (czD >= 51.1448 && czD <= 141.4048) { + czE -= 0x5a; + } + var czF = new cy0['CoplanarPolygonGeometry']({ + 'polygonHierarchy': new cy0['PolygonHierarchy'](czB), + 'vertexFormat': cy0['VertexFormat']['DEFAULT'], + 'stRotation': cy0['Math']['toRadians'](czE || 0x0), + 'ellipsoid': cy0['Ellipsoid']['WGS84'], + 'closeTop': !![], + 'closeBottom': !![], + 'arcType': cy0['ArcType']['GEODESIC'], + 'perPositionHeight': !![], + 'outline': !![], + 'outlineColor': cy0['Color']['BLACK'] + }); + var czG = new cy0['GeometryInstance']({ + 'geometry': czF, + 'attributes': { + 'color': cy0['ColorGeometryInstanceAttribute']['fromColor'](new cy0[(dol(0x127c))](0x1,0x1,0x1,0x1)) + }, + 'id': 'v' + doo(0x9bb) + '_' + czs + }); + var czH = cy0['Material'][dol(0x127d)]('I' + doo(0x9bc) + 'e'); + czH['uniforms']['image'] = czt; + czH['uniforms']['color']['alpha'] = cyb[czs]['alpha']; + czH['shaderSource'] = [doj(0x35e), doj(0x35f), doj(0x360), doj(0x361), doh(0x132), doj(0x362), doj(0x363), doj(0x364), doj(0x365), doj(0x366), doh(0x133), doj(0x367), doj(0x368), '\x20' + doo(0x9bd) + '{', doj(0x369), doj(0x36a), doh(0x134), doh(0x135), '\x20' + doo(0x9be) + ';', '}']['join']('\x0a'); + var czI = cy2['scene']['primitives']['add'](new cy0['Primitive']({ + 'geometryInstances': czG, + 'appearance': new cy0['MaterialAppearance']({ + 'closed': ![], + 'material': czH + }), + 'modelMatrix': czx + })); + console['log'](czI, czG); + cyb[czs]['videoPrimitive'] = czI; + } + function czJ(czK, czL, czM, czN) { + var czO = cy0['HeadingPitchRoll']['fromDegrees'](cyb[czK]['heading'], cyb[czK]['pitch'], cyb[czK]['roll']); + var czP = czg(czK, czM, czN); + var czP = Array['from'](czP)[dol(0x127e)](0x3 * 0x4); + var czR = cy0['Cartesian3']['unpackArray'](czP); + var czS = []; + for (var czT = 0x0; czT < czR['length']; czT++) { + czS['push'](czR[czT]); + if (czT < czR['length'] - 0x1) { + czS['push'](czR[czT + 0x1]); + } else if (czT == czR['length'] - 0x1) { + czS[dol(0x127f)](czR[0x0]); + } + } + var czU = cyb[czK]['heading']; + var czV = cyb[czK]['rotate'] || 0xb4; + czW(czK, czS, czV, czL); + } + function czW(czX, czY, czZ, cA0, cA1, cA2) { + var cA3 = ![]; + if (cy1['tileset']) { + var cA4 = []; + for (let cA5 = 0x0; cA5 < czY['length']; cA5++) { + const cA6 = czY[cA5]; + var cA7 = cy1['Public']['cartesian3ToRadians']([cA6['x'], cA6['y'], cA6['z']]); + var cA8 = cy1['Public']['radiansToModelCartesian3'](cA7[0x1], cA7[0x0], cA7[0x2], cy1['tileset']['_tagName']); + cA4['push'](new cy0['Cartesian3'](cA8['x'],cA8['y'],cA8['z'])); + } + var cA9 = new cy0['Cartesian3'](); + var cAa = new cy0['Cartesian3'](); + cy0['Cartesian3']['subtract'](cA4[0x1], cA4[0x0], cA9); + cy0['Cartesian3']['normalize'](cA9, cA9); + cy0['Cartesian3']['subtract'](cA4[0x2], cA4[0x1], cAa); + cy0['Cartesian3']['normalize'](cAa, cAa); + var cAb = new cy0[(dol(0x1280))](); + cy0[dol(0x1281)]['cross'](cA9, cAa, cAb); + var cAc = cAb['x'] + , cAd = cAb['y'] + , cAe = cAb['z']; + var cAf = Math[dol(0x1282)](Math['abs'](cAc), Math['abs'](cAd), Math['abs'](cAe)); + if (cAf == cAc || cAf == -cAc || cAf == cAe) { + cA3 = ![]; + } else if (cAf == cAd || cAf == -cAd || cAf == -cAe) { + cA3 = !![]; + } + } + var cAg = new cy0['CoplanarPolygonGeometry']({ + 'polygonHierarchy': new cy0['PolygonHierarchy'](czY), + 'vertexFormat': cy0['VertexFormat']['DEFAULT'], + 'stRotation': cy0['Math']['toRadians'](czZ || 0x0), + 'ellipsoid': cy0['Ellipsoid']['WGS84'], + 'closeTop': !![], + 'closeBottom': !![], + 'arcType': cy0[dol(0x1283)]['GEODESIC'], + 'perPositionHeight': !![], + 'outline': !![], + 'outlineColor': cy0['Color']['BLACK'] + }); + var cAh = new cy0['GeometryInstance']({ + 'geometry': cAg, + 'attributes': { + 'color': cy0[dol(0x1284)]['fromColor'](new cy0['Color'](0x1,0x1,0x1,0x1)) + }, + 'id': 'v' + doo(0x9bf) + '_' + czX + }); + var cAi = cy0['Material']['fromType']('I' + doo(0x9c0) + 'e'); + cAi['uniforms']['image'] = cA0; + cAi['uniforms']['color']['alpha'] = cyb[czX]['alpha']; + cAi['shaderSource'] = [doj(0x36b), doj(0x36c), doj(0x36d), doj(0x36e), doh(0x136), doj(0x36f), doj(0x370), doj(0x371), doj(0x372) + (cA3 ? '-' + doo(0x9c1) + '0' : doh(0x137)) + '*' + (cA1 ? '-' + doo(0x9c2) + '0' : doh(0x138)) + doj(0x373) + (cA2 ? '-' + doo(0x9c3) + '0' : doh(0x139)) + doj(0x374), doj(0x375), doh(0x13a), doj(0x376), doj(0x377), doj(0x378), doj(0x379), doj(0x37a), doj(0x37b), '\x20' + doo(0x9c4) + '{', doj(0x37c), '\x20' + doo(0x9c5) + '}', '\x20' + doo(0x9c6) + '}', doj(0x37d), doh(0x13b), '\x20' + doo(0x9c7) + ';', '}']['join']('\x0a'); + var cAj = cy2['scene']['primitives']['add'](new cy0['Primitive']({ + 'geometryInstances': cAh, + 'appearance': new cy0[(dol(0x1285))]({ + 'closed': ![], + 'material': cAi + }) + })); + cyb[czX]['videoPrimitive'] = cAj; + } + var cAk = function(cAl) { + this['shadowMap'] = cAl; + }; + cAk['prototype']['update'] = function(cAm) { + cAm['shadowMaps']['push'](this['shadowMap']); + this['frameState'] = cAm; + } + ; + cAk['prototype']['destroy'] = function(cAn) { + if (this['frameState'] && this['shadowMap']) { + for (var cAo = 0x0; cAo < this['frameState']['shadowMaps']['length']; cAo++) { + var cAp = this['frameState']['shadowMaps'][cAo]; + if (cAp == this['shadowMap']) { + this['frameState']['shadowMaps']['splice'](cAo, 0x1); + break; + } + } + } + } + ; + function cAq(cAr) { + var cAs = new cy0['ShadowMap']({ + 'context': cy3['context'], + 'lightCamera': cyb[cAr]['camera'], + 'enabled': !![], + 'isPointLight': ![], + 'isSpotLight': !![], + 'pointLightRadius': cyb[cAr]['viewDistance'], + 'cascadesEnabled': ![], + 'size': 0x800, + 'softShadows': ![], + 'normalOffset': ![], + 'fromLightSource': ![] + }); + if (!cy2['shadows']) { + cyb[cAr]['shadowsOnSelf'] = !![]; + cy2['shadows'] = !![]; + } + cyb[cAr]['shadowMap'] = cAs; + cyb[cAr]['shadowMapPrimitive'] = new cAk(cAs); + cy3['primitives']['add'](cyb[cAr]['shadowMapPrimitive']); + } + function cAt(cAu) { + var cAv = cyb[cAu]['shadowMap']['_isPointLight'] ? cyb[cAu]['shadowMap']['_pointBias'] : cyb[cAu]['shadowMap']['_primitiveBias']; + var cAw = new cy0['PostProcessStage']({ + 'fragmentShader': cAM, + 'uniforms': { + 'mixNum': function() { + return cyb[cAu]['alpha']; + }, + 'mixDepth': function() { + return Math['min'](0x1, Math['max'](0x0, Number(cyb[cAu]['mixDepth']))); + }, + 'stcshadow': function() { + return cyb[cAu]['shadowMap']['_shadowMapTexture']; + }, + 'videoTexture': function() { + return cyb[cAu]['videoTexture']; + }, + '_shadowMap_matrix': function() { + return cyb[cAu]['shadowMap']['_shadowMapMatrix']; + }, + 'shadowMap_lightPositionEC': function() { + return cyb[cAu]['shadowMap'][dol(0x1286)]; + }, + 'shadowMap_texelSizeDepthBiasAndNormalShadingSmooth': function() { + var cAx = new cy0['Cartesian2'](); + return cAx['x'] = 0x1 / cyb[cAu][dol(0x1287)]['_textureSize']['x'], + cAx['y'] = 0x1 / cyb[cAu]['shadowMap']['_textureSize']['y'], + cy0['Cartesian4']['fromElements'](cAx['x'], cAx['y'], cAv['depthBias'], cAv['normalShadingSmooth']); + }, + 'shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness': function() { + return cy0['Cartesian4']['fromElements'](cAv['normalOffsetScale'], cyb[cAu]['shadowMap']['_distance'], cyb[cAu][dol(0x1288)]['maximumDistance'], cyb[cAu]['shadowMap']['_darkness']); + } + } + }); + cAw['vid'] = 'v' + doo(0x9c8) + '_' + cAu; + cyb[cAu]['postProcess'] = cAw; + cy2['scene']['postProcessStages']['add'](cAw); + } + function cAy(cAz, cAA, cAB) { + if (!cAB) + cAB = new cy0[(dol(0x1289))](); + cy0['Cartesian3']['subtract'](cAA, cAz, cAB); + return cAB; + } + function cAC(cAD) { + var cAE = cyH(cAD); + if (cAE) { + cyP(cAD); + var cAF = cyb[cAD]['camera']['positionWC']; + var cAG = cyW(cAD); + cz7(cAD, cAG); + if (doh(0x13c) === cyb[cAD]['mode']) { + czr(cAD, cAE, cAF, cAG); + } else { + cAq(cAD); + cAt(cAD); + } + } + } + function cAH(cAI) { + var cAJ = cyb[cAI]['videoEle']; + if (cAJ) { + cyP(cAI); + var cAK = cyb[cAI]['camera']['positionWC']; + var cAL = cyW(cAI); + cz7(cAI, cAL); + if (doh(0x13d) !== cyb[cAI][dol(0x128a)]) { + czr(cAI, cAJ, cAK, cAL); + } + } + } + var cAM = [doj(0x37e), doj(0x37f), doj(0x380), doj(0x381), doj(0x382), doj(0x383), doj(0x384), doj(0x385), doj(0x386), doj(0x387), doj(0x388), doj(0x389), doj(0x38a), doj(0x38b), doj(0x38c), doj(0x38d), '}', doj(0x38e), doj(0x38f), doj(0x390), doj(0x391), doj(0x392), doj(0x393), '}', doj(0x394), doj(0x395), '}', doj(0x396), doj(0x397), '}', doj(0x398), doj(0x399), doj(0x39a), doj(0x39b), doj(0x39c), doj(0x39d), doj(0x39e), doj(0x39f), doj(0x3a0), doj(0x3a1), doj(0x3a2), doj(0x3a3), doj(0x3a4), doj(0x3a5), doj(0x3a6), doj(0x3a7), doj(0x3a8), doj(0x3a9), doj(0x3aa), doj(0x3ab), doj(0x3ac), doj(0x3ad), doj(0x3ae), doj(0x3af), '\x20' + doo(0x9c9) + ';', doj(0x3b0), '}', doj(0x3b1), doj(0x3b2), doj(0x3b3), doj(0x3b4), '}', 'f' + doo(0x9ca) + '{', doj(0x3b5), '}', 'v' + doo(0x9cb) + '\x20', doh(0x13e), doj(0x3b6), doj(0x3b7), doj(0x3b8), doj(0x3b9), doj(0x3ba), '\x20' + doo(0x9cc) + ';', '\x20' + doo(0x9cd) + '}', '\x20' + doo(0x9ce) + '\x20', doj(0x3bb), doj(0x3bc), doj(0x3bd), doj(0x3be), doj(0x3bf), doj(0x3c0), doj(0x3c1), doj(0x3c2), doj(0x3c3), doj(0x3c4), doj(0x3c5), doj(0x3c6), doj(0x3c7), doj(0x3c8), doj(0x3c9), '\x20' + doo(0x9cf) + ';', '\x20' + doo(0x9d0) + '}', '', doj(0x3ca), doj(0x3cb), doj(0x3cc), doj(0x3cd), '', doj(0x3ce), doj(0x3cf), doj(0x3d0), doj(0x3d1), doj(0x3d2), doj(0x3d3), '\x20' + doo(0x9d1) + '{', doj(0x3d4), '\x20' + doo(0x9d2) + '}', '\x20' + doo(0x9d3) + '}', doj(0x3d5), doj(0x3d6), '\x20' + doo(0x9d4) + '{', doj(0x3d7), '\x20' + doo(0x9d5) + ';', '\x20' + doo(0x9d6) + '}', doj(0x3d8), '\x20' + doo(0x9d7) + '}', doh(0x13f)]['join']('\x0a'); + function cAN(cAO, cAP) { + let cAQ = new cy0['Cartesian3'](); + let cAR = cy0['Transforms']['eastNorthUpToFixedFrame'](cAO); + cy0['Matrix4']['inverse'](cAR, cAR); + cy0['Matrix4']['multiplyByPoint'](cAR, cAP, cAQ); + cy0['Cartesian3']['normalize'](cAQ, cAQ); + return cy0['Math']['toDegrees'](Math['atan2'](cAQ['x'], cAQ['y'])); + } + function cAS(cAT, cAU) { + let cAV = new cy0['Cartesian3'](); + let cAW = cy0['Transforms']['eastNorthUpToFixedFrame'](cAT); + cy0['Matrix4'][dol(0x128b)](cAW, cAW); + cy0['Matrix4'][dol(0x128c)](cAW, cAU, cAV); + cy0['Cartesian3']['normalize'](cAV, cAV); + return cy0['Math'][dol(0x128d)](Math['asin'](cAV['z'])); + } + function cAX(cAY, cAZ) { + if (!cAY || typeof cAY !== 'o' + doo(0x9d8) + 't') { + throw new Error('e' + doo(0x9d9) + 'r'); + } + var cB0 = cAY['constructor'] === Array ? [] : {}; + for (var cB1 in cAY) { + if (cAZ && cAZ['indexOf'](cB1) != -0x1) + continue; + if (cAY['hasOwnProperty'](cB1)) { + if (cAY[cB1] && typeof cAY[cB1] === 'o' + doo(0x9da) + 't') { + cB0[cB1] = cAY[cB1]['constructor'] === Array ? [] : {}; + cB0[cB1] = cAX(cAY[cB1], cAZ); + } else { + cB0[cB1] = cAY[cB1]; + } + } + } + return cB0; + } + ;function cB2(cB3) { + return typeof cB3 === 's' + doo(0x9db) + 'g' || typeof cB3 === 'n' + doo(0x9dc) + 'r' || typeof cB3 === 'b' + doo(0x9dd) + 'n' || typeof cB3 === 'u' + doo(0x9de) + 'd' || cB3 === null; + } + cyd['prototype']['addSimple2D'] = cyv; + cyd['prototype']['updateSimple2D'] = cyv; + return cyd; + }(window['Cesium'] || {}); + GLEWaterRipple = function(cB4) { + var cB5; + var cB6, cB7, cB8, cB9, cBa; + var cBb; + var cBc = new Map(); + var cBd = this; + var cBe = 0x100; + function cBf(cBg) { + cB5 = cBg; + if (!cB4['defined'](cBg['viewer'])) + throw doj(0x3d9); + cB6 = cBg['viewer']; + this['_viewer'] = cBg[dol(0x128e)]; + cB7 = cB6['scene']; + cB8 = cB6['canvas']; + cB9 = cB6['camera']; + cBa = cB6['scene']['globe']; + var cBh = cB5[dol(0x128f)]['container']; + cBb = document['getElementById'](cBh); + } + cBf[dol(0x1290)]['addWaterRipple'] = function(cBi, cBj, cBk, cBl, cBm) { + if (cBm == undefined) { + cBm = new cB4['Color'](0.2,0.3,0.6,0x1); + } + var cBn = new cB4['Primitive']({ + 'geometryInstances': new cB4['GeometryInstance']({ + 'geometry': new cB4['PolygonGeometry']({ + 'polygonHierarchy': new cB4['PolygonHierarchy'](cB4['Cartesian3']['fromDegreesArray'](cBj)), + 'extrudedHeight': cBk ? cBk : 0.1, + 'height': cBl ? cBl : 0.01 + }), + 'id': cBi + ('_' + doo(0x9df) + 'e') + }), + 'appearance': new cB4['EllipsoidSurfaceAppearance']({ + 'material': new cB4['Material']({ + 'fabric': { + 'type': 'W' + doo(0x9e0) + 'r', + 'uniforms': { + 'normalMap': cB5['defaults']['sitepath'] + doj(0x3da), + 'tReflectionMap': cBo(), + 'tRefractionMap': cBo(), + 'frequency': 0x3e8, + 'animationSpeed': 0.01, + 'amplitude': 0xa, + 'reflectivity': 0.02, + 'baseWaterColor': new cB4['Color'](cBm[0x0],cBm[0x1],cBm[0x2],cBm[0x3]), + 'blendColor': new cB4[(dol(0x1291))](0x0,0x1,0.699,0x1), + 'textureMatrixVec1': new cB4['Cartesian4'](0.5,0x0,0x0,0x0), + 'textureMatrixVec2': new cB4['Cartesian4'](0x0,0.5,0x0,0x0), + 'textureMatrixVec3': new cB4['Cartesian4'](0x0,0x0,0.5,0x0), + 'textureMatrixVec4': new cB4['Cartesian4'](0.5,0.5,0.5,0x1) + } + } + }), + 'aboveGround': ![] + }) + }); + cB6['scene']['primitives']['add'](cBn); + function cBo() { + var cBp = cB6['scene']['_view']['sceneFramebuffer']['_colorFramebuffer']; + const cBq = cBp['getColorTexture'](0x0); + return cBq; + } + cBc[dol(0x1292)](cBi + ('_' + doo(0x9e1) + 'e'), cBn); + } + ; + cBf['prototype']['removeWaterRipple'] = function(cBr) { + var cBs = cBc['get'](cBr + ('_' + doo(0x9e2) + 'e')); + cB6['scene']['primitives']['remove'](cBs); + cB6['scene']['invertClassification'] = ![]; + cB6['scene']['requestRender'](); + } + ; + return cBf; + }(window['Cesium'] || {}); + ;GLEWeatherSource = function(cBt) { + var cBu; + function cBv(cBw) { + this['_API'] = cBw; + this['_viewer'] = this['_API']['viewer']; + this['_scene'] = this['_viewer']['scene']; + cBu = this; + } + cBv['prototype']['addSnow'] = function(cBx) { + try { + if (cBx == undefined) { + cBu['snowSize'] = 0.02; + cBu['snowSpeed'] = 0x28; + } else { + cBu['snowSize'] = cBt['defaultValue'](cBx['snowSize'], 0.02); + cBu['snowSpeed'] = cBt['defaultValue'](cBx['snowSpeed'], 0x28); + } + cBu['snowStage'] = new cBt['PostProcessStage']({ + 'name': 'c' + doo(0x9e3) + 'w', + 'fragmentShader': cBC(), + 'uniforms': { + 'snowSize': () => { + return cBu['snowSize']; + } + , + 'snowSpeed': () => { + return cBu['snowSpeed']; + } + } + }); + cBu['_viewer']['scene']['postProcessStages']['add'](cBu['snowStage']); + cBu['_viewer']['scene']['requestRender'](); + } catch (cBy) { + console['log'](cBy); + } + } + ; + cBv['prototype']['destroySnow'] = function() { + try { + if (!cBu['_viewer'] || !cBu['snowStage']) + return; + cBu['_viewer']['scene']['postProcessStages'][dol(0x1293)](cBu['snowStage']); + delete cBu['snowSize']; + delete cBu['snowSpeed']; + cBu[dol(0x1294)]['scene']['requestRender'](); + } catch (cBz) { + console['log'](cBz); + } + } + ; + cBv['prototype']['showSnow'] = function(cBA) { + try { + cBu['snowStage'][dol(0x1295)] = cBA; + cBu['_viewer']['scene']['requestRender'](); + } catch (cBB) { + console['log'](cBB); + } + } + ; + function cBC() { + return doj(0x3db); + } + cBv['prototype']['addRain'] = function(cBD) { + try { + if (cBD == undefined) { + cBu['tiltAngle'] = 0.1; + cBu['rainSize'] = 0.5; + cBu[dol(0x1296)] = 0x3c; + } else { + cBu['tiltAngle'] = cBt['defaultValue'](cBD['tiltAngle'], 0.1); + cBu['rainSize'] = cBt['defaultValue'](cBD['rainSize'], 0.5); + cBu['rainSpeed'] = cBt['defaultValue'](cBD[dol(0x1297)], 0x3c); + } + cBu['rainStage'] = new cBt['PostProcessStage']({ + 'name': 'c' + doo(0x9e4) + 'n', + 'fragmentShader': cBI(), + 'uniforms': { + 'tiltAngle': () => { + return cBu[dol(0x1298)]; + } + , + 'rainSize': () => { + return cBu[dol(0x1299)]; + } + , + 'rainSpeed': () => { + return cBu['rainSpeed']; + } + } + }); + cBu['_viewer']['scene']['postProcessStages']['add'](cBu['rainStage']); + cBu['_viewer']['scene']['requestRender'](); + } catch (cBE) { + console['log'](cBE); + } + } + ; + cBv['prototype']['destroyRain'] = function() { + try { + if (!cBu[dol(0x129a)] || !cBu['rainStage']) + return; + cBu['_viewer']['scene']['postProcessStages']['remove'](cBu['rainStage']); + delete cBu[dol(0x129b)]; + delete cBu['rainSize']; + delete cBu['rainSpeed']; + cBu['_viewer']['scene']['requestRender'](); + } catch (cBF) { + console['log'](cBF); + } + } + ; + cBv['prototype']['showRain'] = function(cBG) { + try { + cBu['rainStage']['enabled'] = cBG; + cBu['_viewer']['scene']['requestRender'](); + } catch (cBH) { + console['log'](cBH); + } + } + ; + function cBI() { + return doj(0x3dc); + } + cBv['prototype']['addFog'] = function(cBJ) { + try { + if (cBJ == undefined) { + this['visibility'] = 0.3; + this['color'] = new cBt['Color'](0.8,0.8,0.8,0.5); + this['_show'] = !![]; + } else { + this['visibility'] = cBt['defaultValue'](cBJ['visibility'], 0.3); + this['color'] = cBt['defaultValue'](cBJ['color'], new cBt['Color'](0.8,0.8,0.8,0.5)); + this['_show'] = cBt['defaultValue'](cBJ['show'], !0x0); + } + cBu['fogStage'] = new cBt['PostProcessStage']({ + 'name': 'c' + doo(0x9e5) + 'g', + 'fragmentShader': cBO(), + 'uniforms': { + 'visibility': () => { + return cBu['visibility']; + } + , + 'fogColor': () => { + return cBu[dol(0x129c)]; + } + } + }); + cBu['_viewer']['scene']['postProcessStages']['add'](cBu['fogStage']); + cBu['_viewer'][dol(0x129d)]['requestRender'](); + } catch (cBK) { + console['log'](cBK); + } + } + ; + cBv['prototype']['destroyFog'] = function() { + try { + if (!cBu['_viewer'] || !cBu['fogStage']) + return; + cBu['_viewer']['scene']['postProcessStages']['remove'](cBu['fogStage']); + delete cBu['visibility']; + delete cBu['color']; + cBu['_viewer']['scene']['requestRender'](); + } catch (cBL) { + console['log'](cBL); + } + } + ; + cBv['prototype']['showFog'] = function(cBM) { + try { + cBu['_show'] = cBM; + cBu['fogStage']['enabled'] = cBM; + cBu['_viewer'][dol(0x129e)]['requestRender'](); + } catch (cBN) { + console['log'](cBN); + } + } + ; + function cBO() { + return doj(0x3dd); + } + return cBv; + }(window['Cesium'] || {}); + ;(function(cBP, cBQ, cBR) { + if (typeof module !== 'u' + doo(0x9e6) + 'd' && module['exports']) { + module['exports'] = cBR(); + } else if (typeof define === 'f' + doo(0x9e7) + 'n' && define['amd']) { + define(cBR); + } else { + cBQ[cBP] = cBR(); + } + }('h' + doo(0x9e8) + '7', this, function() { + var cBS = { + 'defaultRadius': 0x28, + 'defaultRenderer': 'c' + doo(0x9e9) + 'd', + 'defaultGradient': { + 0.25: 'r' + doo(0x9ea) + ')', + 0.55: 'r' + doo(0x9eb) + ')', + 0.85: 'y' + doo(0x9ec) + 'w', + 1: 'r' + doo(0x9ed) + ')' + }, + 'defaultMaxOpacity': 0x1, + 'defaultMinOpacity': 0x0, + 'defaultBlur': 0.85, + 'defaultXField': 'x', + 'defaultYField': 'y', + 'defaultValueField': 'v' + doo(0x9ee) + 'e', + 'plugins': {} + }; + var cBT = function StoreClosure() { + var cBT = function cBT(cBV) { + this['_coordinator'] = {}; + this['_data'] = []; + this['_radi'] = []; + this['_min'] = 0xa; + this['_max'] = 0x1; + this['_xField'] = cBV['x' + doo(0x9ef) + 'd'] || cBV['defaultXField']; + this['_yField'] = cBV['y' + doo(0x9f0) + 'd'] || cBV['defaultYField']; + this['_valueField'] = cBV['v' + doo(0x9f1) + 'd'] || cBV['defaultValueField']; + if (cBV['r' + doo(0x9f2) + 's']) { + this['_cfgRadius'] = cBV['r' + doo(0x9f3) + 's']; + } + }; + var cBW = cBS['defaultRadius']; + cBT['prototype'] = { + '_organiseData': function(cBX, cBY) { + var cBZ = cBX[this['_xField']]; + var cC0 = cBX[this['_yField']]; + var cC1 = this['_radi']; + var cC2 = this['_data']; + var cC3 = this['_max']; + var cC4 = this['_min']; + var cC5 = cBX[this['_valueField']] || 0x1; + var cC6 = cBX['radius'] || this['_cfgRadius'] || cBW; + if (!cC2[cBZ]) { + cC2[cBZ] = []; + cC1[cBZ] = []; + } + if (!cC2[cBZ][cC0]) { + cC2[cBZ][cC0] = cC5; + cC1[cBZ][cC0] = cC6; + } else { + cC2[cBZ][cC0] += cC5; + } + var cC7 = cC2[cBZ][cC0]; + if (cC7 > cC3) { + if (!cBY) { + this['_max'] = cC7; + } else { + this['setDataMax'](cC7); + } + return ![]; + } else if (cC7 < cC4) { + if (!cBY) { + this['_min'] = cC7; + } else { + this['setDataMin'](cC7); + } + return ![]; + } else { + return { + 'x': cBZ, + 'y': cC0, + 'value': cC5, + 'radius': cC6, + 'min': cC4, + 'max': cC3 + }; + } + }, + '_unOrganizeData': function() { + var cC8 = []; + var cC9 = this['_data']; + var cCa = this['_radi']; + for (var cCb in cC9) { + for (var cCc in cC9[cCb]) { + cC8['push']({ + 'x': cCb, + 'y': cCc, + 'radius': cCa[cCb][cCc], + 'value': cC9[cCb][cCc] + }); + } + } + return { + 'min': this['_min'], + 'max': this['_max'], + 'data': cC8 + }; + }, + '_onExtremaChange': function() { + this['_coordinator']['emit']('e' + doo(0x9f4) + 'e', { + 'min': this['_min'], + 'max': this['_max'] + }); + }, + 'addData': function() { + if (arguments[0x0]['length'] > 0x0) { + var cCd = arguments[0x0]; + var cCe = cCd['length']; + while (cCe--) { + this['addData']['call'](this, cCd[cCe]); + } + } else { + var cCf = this['_organiseData'](arguments[0x0], !![]); + if (cCf) { + if (this['_data']['length'] === 0x0) { + this['_min'] = this['_max'] = cCf['value']; + } + this['_coordinator']['emit']('r' + doo(0x9f5) + 'l', { + 'min': this['_min'], + 'max': this['_max'], + 'data': [cCf] + }); + } + } + return this; + }, + 'setData': function(cCg) { + var cCh = cCg['data']; + var cCi = cCh['length']; + this['_data'] = []; + this['_radi'] = []; + this['_max'] = cCg['max']; + this['_min'] = cCg['min'] || 0x0; + for (var cCj = 0x0; cCj < cCi; cCj++) { + this['_organiseData'](cCh[cCj], ![]); + } + this['_onExtremaChange'](); + this['_coordinator'][dol(0x129f)]('r' + doo(0x9f6) + 'l', this['_getInternalData']()); + return this; + }, + 'removeData': function() {}, + 'setDataMax': function(cCk) { + this['_max'] = cCk; + this['_onExtremaChange'](); + this['_coordinator']['emit']('r' + doo(0x9f7) + 'l', this['_getInternalData']()); + return this; + }, + 'setDataMin': function(cCl) { + this['_min'] = cCl; + this['_onExtremaChange'](); + this['_coordinator']['emit']('r' + doo(0x9f8) + 'l', this['_getInternalData']()); + return this; + }, + 'setCoordinator': function(cCm) { + this['_coordinator'] = cCm; + }, + '_getInternalData': function() { + return { + 'max': this['_max'], + 'min': this['_min'], + 'data': this['_data'], + 'radi': this['_radi'] + }; + }, + 'getData': function() { + return this['_unOrganizeData'](); + } + }; + return cBT; + }(); + var cCn = function Canvas2dRendererClosure() { + var cCo = function(cCp) { + var cCq = cCp[dol(0x12a0)] || cCp['defaultGradient']; + var cCr = document['createElement']('c' + doo(0x9f9) + 's'); + var cCs = cCr['getContext'](doh(0x140)); + cCr['width'] = 0x100; + cCr['height'] = 0x1; + var cCt = cCs['createLinearGradient'](0x0, 0x0, 0x100, 0x1); + for (var cCu in cCq) { + cCt['addColorStop'](cCu, cCq[cCu]); + } + cCs[dol(0x12a1)] = cCt; + cCs['fillRect'](0x0, 0x0, 0x100, 0x1); + return cCs['getImageData'](0x0, 0x0, 0x100, 0x1)['data']; + }; + var cCv = function(cCw, cCx) { + var cCy = document['createElement']('c' + doo(0x9fa) + 's'); + var cCz = cCy['getContext'](doh(0x141)); + var cCA = cCw; + var cCB = cCw; + cCy['width'] = cCy[dol(0x12a2)] = cCw * 0x2; + if (cCx == 0x1) { + cCz['beginPath'](); + cCz['arc'](cCA, cCB, cCw, 0x0, 0x2 * Math['PI'], ![]); + cCz['fillStyle'] = 'r' + doo(0x9fb) + ')'; + cCz['fill'](); + } else { + var cCC = cCz['createRadialGradient'](cCA, cCB, cCw * cCx, cCA, cCB, cCw); + cCC['addColorStop'](0x0, 'r' + doo(0x9fc) + ')'); + cCC['addColorStop'](0x1, 'r' + doo(0x9fd) + ')'); + cCz[dol(0x12a3)] = cCC; + cCz['fillRect'](0x0, 0x0, 0x2 * cCw, 0x2 * cCw); + } + return cCy; + }; + var cCD = function(cCE) { + var cCF = []; + var cCG = cCE['min']; + var cCH = cCE['max']; + var cCI = cCE['radi']; + var cCE = cCE['data']; + var cCK = Object['keys'](cCE); + var cCL = cCK['length']; + while (cCL--) { + var cCM = cCK[cCL]; + var cCN = Object['keys'](cCE[cCM]); + var cCO = cCN['length']; + while (cCO--) { + var cCP = cCN[cCO]; + var cCQ = cCE[cCM][cCP]; + var cCR = cCI[cCM][cCP]; + cCF['push']({ + 'x': cCM, + 'y': cCP, + 'value': cCQ, + 'radius': cCR + }); + } + } + return { + 'min': cCG, + 'max': cCH, + 'data': cCF + }; + }; + function cCn(cCT) { + var cCU = cCT['container']; + var cCV = this['shadowCanvas'] = document['createElement']('c' + doo(0x9fe) + 's'); + var cCW = this['canvas'] = cCT['canvas'] || document['createElement']('c' + doo(0x9ff) + 's'); + var cCX = this['_renderBoundaries'] = [0x2710, 0x2710, 0x0, 0x0]; + var cCY = getComputedStyle(cCT['container']) || {}; + cCW['className'] = 'h' + doo(0xa00) + 's'; + this['_width'] = cCW['width'] = cCV[dol(0x12a4)] = cCT['width'] || +cCY['width'][dol(0x12a5)](/px/, ''); + this['_height'] = cCW['height'] = cCV['height'] = cCT['height'] || +cCY['height']['replace'](/px/, ''); + this['shadowCtx'] = cCV['getContext'](doh(0x142)); + this['ctx'] = cCW['getContext'](doh(0x143)); + cCW['style']['cssText'] = cCV[dol(0x12a6)]['cssText'] = doj(0x3de); + cCU['style']['position'] = 'r' + doo(0xa01) + 'e'; + cCU['appendChild'](cCW); + this['_palette'] = cCo(cCT); + this['_templates'] = {}; + this['_setStyles'](cCT); + } + ;cCn['prototype'] = { + 'renderPartial': function(cCZ) { + if (cCZ['data'][dol(0x12a7)] > 0x0) { + this['_drawAlpha'](cCZ); + this['_colorize'](); + } + }, + 'renderAll': function(cD0) { + this['_clear'](); + if (cD0['data']['length'] > 0x0) { + this['_drawAlpha'](cCD(cD0)); + this['_colorize'](); + } + }, + '_updateGradient': function(cD1) { + this['_palette'] = cCo(cD1); + }, + 'updateConfig': function(cD2) { + if (cD2['g' + doo(0xa02) + 't']) { + this['_updateGradient'](cD2); + } + this['_setStyles'](cD2); + }, + 'setDimensions': function(cD3, cD4) { + this['_width'] = cD3; + this['_height'] = cD4; + this['canvas']['width'] = this['shadowCanvas']['width'] = cD3; + this['canvas']['height'] = this['shadowCanvas']['height'] = cD4; + }, + '_clear': function() { + this['shadowCtx']['clearRect'](0x0, 0x0, this['_width'], this['_height']); + this['ctx']['clearRect'](0x0, 0x0, this['_width'], this['_height']); + }, + '_setStyles': function(cD5) { + this['_blur'] = cD5['blur'] == 0x0 ? 0x0 : cD5['blur'] || cD5['defaultBlur']; + if (cD5['backgroundColor']) { + this['canvas'][dol(0x12a8)]['backgroundColor'] = cD5['backgroundColor']; + } + this['_width'] = this['canvas']['width'] = this['shadowCanvas']['width'] = cD5['width'] || this['_width']; + this['_height'] = this['canvas']['height'] = this['shadowCanvas']['height'] = cD5[dol(0x12a9)] || this['_height']; + this['_opacity'] = (cD5['opacity'] || 0x0) * 0xff; + this['_maxOpacity'] = (cD5['maxOpacity'] || cD5['defaultMaxOpacity']) * 0xff; + this['_minOpacity'] = (cD5['minOpacity'] || cD5['defaultMinOpacity']) * 0xff; + this['_useGradientOpacity'] = !!cD5['useGradientOpacity']; + }, + '_drawAlpha': function(cD6) { + var cD7 = this['_min'] = cD6['min']; + var cD8 = this['_max'] = cD6['max']; + var cD6 = cD6['data'] || []; + var cDa = cD6['length']; + var cDb = 0x1 - this['_blur']; + while (cDa--) { + var cDc = cD6[cDa]; + var cDd = cDc['x']; + var cDe = cDc['y']; + var cDf = cDc[dol(0x12aa)]; + var cDg = Math['min'](cDc['value'], cD8); + var cDh = cDd - cDf; + var cDi = cDe - cDf; + var cDj = this['shadowCtx']; + var cDk; + if (!this['_templates'][cDf]) { + this['_templates'][cDf] = cDk = cCv(cDf, cDb); + } else { + cDk = this['_templates'][cDf]; + } + var cDl = (cDg - cD7) / (cD8 - cD7); + cDj['globalAlpha'] = cDl < 0.01 ? 0.01 : cDl; + cDj['drawImage'](cDk, cDh, cDi); + if (cDh < this['_renderBoundaries'][0x0]) { + this['_renderBoundaries'][0x0] = cDh; + } + if (cDi < this['_renderBoundaries'][0x1]) { + this['_renderBoundaries'][0x1] = cDi; + } + if (cDh + 0x2 * cDf > this['_renderBoundaries'][0x2]) { + this['_renderBoundaries'][0x2] = cDh + 0x2 * cDf; + } + if (cDi + 0x2 * cDf > this['_renderBoundaries'][0x3]) { + this['_renderBoundaries'][0x3] = cDi + 0x2 * cDf; + } + } + }, + '_colorize': function() { + var cDm = this['_renderBoundaries'][0x0]; + var cDn = this['_renderBoundaries'][0x1]; + var cDo = this['_renderBoundaries'][0x2] - cDm; + var cDp = this['_renderBoundaries'][0x3] - cDn; + var cDq = this['_width']; + var cDr = this['_height']; + var cDs = this['_opacity']; + var cDt = this['_maxOpacity']; + var cDu = this['_minOpacity']; + var cDv = this['_useGradientOpacity']; + if (cDm < 0x0) { + cDm = 0x0; + } + if (cDn < 0x0) { + cDn = 0x0; + } + if (cDm + cDo > cDq) { + cDo = cDq - cDm; + } + if (cDn + cDp > cDr) { + cDp = cDr - cDn; + } + var cDw = this['shadowCtx']['getImageData'](cDm, cDn, cDo, cDp); + var cDx = cDw['data']; + var cDy = cDx['length']; + var cDz = this['_palette']; + for (var cDA = 0x3; cDA < cDy; cDA += 0x4) { + var cDB = cDx[cDA]; + var cDC = cDB * 0x4; + if (!cDC) { + continue; + } + var cDD; + if (cDs > 0x0) { + cDD = cDs; + } else { + if (cDB < cDt) { + if (cDB < cDu) { + cDD = cDu; + } else { + cDD = cDB; + } + } else { + cDD = cDt; + } + } + cDx[cDA - 0x3] = cDz[cDC]; + cDx[cDA - 0x2] = cDz[cDC + 0x1]; + cDx[cDA - 0x1] = cDz[cDC + 0x2]; + cDx[cDA] = cDv ? cDz[cDC + 0x3] : cDD; + } + cDw['data'] = cDx; + this['ctx']['putImageData'](cDw, cDm, cDn); + this['_renderBoundaries'] = [0x3e8, 0x3e8, 0x0, 0x0]; + }, + 'getValueAt': function(cDE) { + var cDF; + var cDG = this['shadowCtx']; + var cDH = cDG['getImageData'](cDE['x'], cDE['y'], 0x1, 0x1); + var cDI = cDH['data'][0x3]; + var cDJ = this['_max']; + var cDK = this['_min']; + cDF = Math['abs'](cDJ - cDK) * (cDI / 0xff) >> 0x0; + return cDF; + }, + 'getDataURL': function() { + return this['canvas'][dol(0x12ab)](); + } + }; + return cCn; + }(); + var cDL = function RendererClosure() { + var cDM = ![]; + if (cBS['d' + doo(0xa03) + 'r'] === 'c' + doo(0xa04) + 'd') { + cDM = cCn; + } + return cDM; + }(); + var cDN = { + 'merge': function() { + var cDO = {}; + var cDP = arguments['length']; + for (var cDQ = 0x0; cDQ < cDP; cDQ++) { + var cDR = arguments[cDQ]; + for (var cDS in cDR) { + cDO[cDS] = cDR[cDS]; + } + } + return cDO; + } + }; + var cDT = function HeatmapClosure() { + var cDU = function CoordinatorClosure() { + function cDU() { + this['cStore'] = {}; + } + ;cDU['prototype'] = { + 'on': function(cDW, cDX, cDY) { + var cDZ = this['cStore']; + if (!cDZ[cDW]) { + cDZ[cDW] = []; + } + cDZ[cDW]['push'](function(cE0) { + return cDX['call'](cDY, cE0); + }); + }, + 'emit': function(cE1, cE2) { + var cE3 = this['cStore']; + if (cE3[cE1]) { + var cE4 = cE3[cE1][dol(0x12ac)]; + for (var cE5 = 0x0; cE5 < cE4; cE5++) { + var cE6 = cE3[cE1][cE5]; + cE6(cE2); + } + } + } + }; + return cDU; + }(); + var cE7 = function(cE8) { + var cE9 = cE8['_renderer']; + var cEa = cE8['_coordinator']; + var cEb = cE8['_store']; + cEa['on']('r' + doo(0xa05) + 'l', cE9['renderPartial'], cE9); + cEa['on']('r' + doo(0xa06) + 'l', cE9['renderAll'], cE9); + cEa['on']('e' + doo(0xa07) + 'e', function(cEc) { + cE8[dol(0x12ad)]['onExtremaChange'] && cE8['_config']['onExtremaChange']({ + 'min': cEc['min'], + 'max': cEc['max'], + 'gradient': cE8['_config']['g' + doo(0xa08) + 't'] || cE8['_config']['d' + doo(0xa09) + 't'] + }); + }); + cEb['setCoordinator'](cEa); + }; + function cDT() { + var cEe = this['_config'] = cDN['merge'](cBS, arguments[0x0] || {}); + this['_coordinator'] = new cDU(); + if (cEe['p' + doo(0xa0a) + 'n']) { + var cEf = cEe['p' + doo(0xa0b) + 'n']; + if (!cBS['plugins'][cEf]) { + throw new Error('P' + doo(0xa0c) + '\x27' + cEf + doj(0x3df)); + } else { + var cEg = cBS['plugins'][cEf]; + this['_renderer'] = new cEg['renderer'](cEe); + this['_store'] = new cEg['store'](cEe); + } + } else { + this['_renderer'] = new cDL(cEe); + this['_store'] = new cBT(cEe); + } + cE7(this); + } + ;cDT[dol(0x12ae)] = { + 'addData': function() { + this['_store']['addData']['apply'](this['_store'], arguments); + return this; + }, + 'removeData': function() { + this['_store']['removeData'] && this['_store']['removeData']['apply'](this['_store'], arguments); + return this; + }, + 'setData': function() { + this['_store']['setData']['apply'](this['_store'], arguments); + return this; + }, + 'setDataMax': function() { + this['_store']['setDataMax']['apply'](this['_store'], arguments); + return this; + }, + 'setDataMin': function() { + this['_store']['setDataMin']['apply'](this['_store'], arguments); + return this; + }, + 'configure': function(cEh) { + this['_config'] = cDN['merge'](this['_config'], cEh); + this['_renderer']['updateConfig'](this['_config']); + this['_coordinator']['emit']('r' + doo(0xa0d) + 'l', this['_store']['_getInternalData']()); + return this; + }, + 'repaint': function() { + this['_coordinator']['emit']('r' + doo(0xa0e) + 'l', this['_store'][dol(0x12af)]()); + return this; + }, + 'getData': function() { + return this['_store']['getData'](); + }, + 'getDataURL': function() { + return this['_renderer']['getDataURL'](); + }, + 'getValueAt': function(cEi) { + if (this['_store']['getValueAt']) { + return this['_store'][dol(0x12b0)](cEi); + } else if (this['_renderer']['getValueAt']) { + return this['_renderer'][dol(0x12b1)](cEi); + } else { + return null; + } + } + }; + return cDT; + }(); + var cEj = { + 'create': function(cEk) { + return new cDT(cEk); + }, + 'register': function(cEl, cEm) { + cBS['plugins'][cEl] = cEm; + } + }; + return cEj; + })); + (function(cEn, cEo) { + typeof exports === 'o' + doo(0xa0f) + 't' && typeof module !== 'u' + doo(0xa10) + 'd' ? module[dol(0x12b2)] = cEo() : typeof define === 'f' + doo(0xa11) + 'n' && define['amd'] ? define(cEo) : (cEn = cEn || self, + cEn['html2canvas'] = cEo()); + }(this, function() { + 'u' + doo(0xa12) + 't'; + var cEp = function(cEq, cEr) { + cEp = Object['setPrototypeOf'] || { + '__proto__': [] + }instanceof Array && function(cEq, cEr) { + cEq['__proto__'] = cEr; + } + || function(cEq, cEr) { + for (var cEw in cEr) + if (cEr['hasOwnProperty'](cEw)) + cEq[cEw] = cEr[cEw]; + } + ; + return cEp(cEq, cEr); + }; + function cEx(cEy, cEz) { + cEp(cEy, cEz); + function cEA() { + this['constructor'] = cEy; + } + cEy['prototype'] = cEz === null ? Object['create'](cEz) : (cEA['prototype'] = cEz['prototype'], + new cEA()); + } + var cEB = function() { + cEB = Object['assign'] || function cEB(cEC) { + for (var cED, cEE = 0x1, cEF = arguments[dol(0x12b3)]; cEE < cEF; cEE++) { + cED = arguments[cEE]; + for (var cEG in cED) + if (Object['prototype']['hasOwnProperty']['call'](cED, cEG)) + cEC[cEG] = cED[cEG]; + } + return cEC; + } + ; + return cEB['apply'](this, arguments); + }; + function cEH(cEI, cEJ, cEK, cEL) { + return new (cEK || (cEK = Promise))(function(cEM, cEN) { + function cEO(cEP) { + try { + cEU(cEL['next'](cEP)); + } catch (cEQ) { + cEN(cEQ); + } + } + function cER(cES) { + try { + cEU(cEL['t' + doo(0xa13) + 'w'](cES)); + } catch (cET) { + cEN(cET); + } + } + function cEU(cEV) { + cEV['done'] ? cEM(cEV['value']) : new cEK(function(cEM) { + cEM(cEV['value']); + } + )['then'](cEO, cER); + } + cEU((cEL = cEL['apply'](cEI, cEJ || []))['next']()); + } + ); + } + function cEX(cEY, cEZ) { + var cF0 = { + 'label': 0x0, + 'sent': function() { + if (cF3[0x0] & 0x1) + throw cF3[0x1]; + return cF3[0x1]; + }, + 'trys': [], + 'ops': [] + }, cF1, cF2, cF3, cF4; + return cF4 = { + 'next': cF5(0x0), + 'throw': cF5(0x1), + 'return': cF5(0x2) + }, + typeof Symbol === 'f' + doo(0xa14) + 'n' && (cF4[Symbol['iterator']] = function() { + return this; + } + ), + cF4; + function cF5(cF6) { + return function(cF7) { + return cF8([cF6, cF7]); + } + ; + } + function cF8(cF9) { + if (cF1) + throw new TypeError(doj(0x3e0)); + while (cF0) + try { + if (cF1 = 0x1, + cF2 && (cF3 = cF9[0x0] & 0x2 ? cF2['r' + doo(0xa15) + 'n'] : cF9[0x0] ? cF2['t' + doo(0xa16) + 'w'] || ((cF3 = cF2['r' + doo(0xa17) + 'n']) && cF3['call'](cF2), + 0x0) : cF2['next']) && !(cF3 = cF3['call'](cF2, cF9[0x1]))['done']) + return cF3; + if (cF2 = 0x0, + cF3) + cF9 = [cF9[0x0] & 0x2, cF3['value']]; + switch (cF9[0x0]) { + case 0x0: + case 0x1: + cF3 = cF9; + break; + case 0x4: + cF0['label']++; + return { + 'value': cF9[0x1], + 'done': ![] + }; + case 0x5: + cF0['label']++; + cF2 = cF9[0x1]; + cF9 = [0x0]; + continue; + case 0x7: + cF9 = cF0['ops'][dol(0x12b4)](); + cF0['trys']['pop'](); + continue; + default: + if (!(cF3 = cF0['trys'], + cF3 = cF3['length'] > 0x0 && cF3[cF3['length'] - 0x1]) && (cF9[0x0] === 0x6 || cF9[0x0] === 0x2)) { + cF0 = 0x0; + continue; + } + if (cF9[0x0] === 0x3 && (!cF3 || cF9[0x1] > cF3[0x0] && cF9[0x1] < cF3[0x3])) { + cF0['label'] = cF9[0x1]; + break; + } + if (cF9[0x0] === 0x6 && cF0['label'] < cF3[0x1]) { + cF0['label'] = cF3[0x1]; + cF3 = cF9; + break; + } + if (cF3 && cF0['label'] < cF3[0x2]) { + cF0['label'] = cF3[0x2]; + cF0['ops']['push'](cF9); + break; + } + if (cF3[0x2]) + cF0['ops']['pop'](); + cF0['trys']['pop'](); + continue; + } + cF9 = cEZ['call'](cEY, cF0); + } catch (cFa) { + cF9 = [0x6, cFa]; + cF2 = 0x0; + } finally { + cF1 = cF3 = 0x0; + } + if (cF9[0x0] & 0x5) + throw cF9[0x1]; + return { + 'value': cF9[0x0] ? cF9[0x1] : void 0x0, + 'done': !![] + }; + } + } + var cFb = function() { + function cFb(cFd, cFe, cFf, cFg) { + this['left'] = cFd; + this['top'] = cFe; + this['width'] = cFf; + this['height'] = cFg; + } + cFb['prototype']['add'] = function(cFh, cFi, cFj, cFk) { + return new cFb(this['left'] + cFh,this['top'] + cFi,this['width'] + cFj,this['height'] + cFk); + } + ; + cFb['fromClientRect'] = function(cFl) { + return new cFb(cFl['left'],cFl['top'],cFl['width'],cFl['height']); + } + ; + return cFb; + }(); + var cFm = function(cFn) { + return cFb['fromClientRect'](cFn['getBoundingClientRect']()); + }; + var cFo = function(cFp) { + var cFq = cFp['body']; + var cFr = cFp['documentElement']; + if (!cFq || !cFr) { + throw new Error(doj(0x3e1)); + } + var cFs = Math['max'](Math['max'](cFq['scrollWidth'], cFr['scrollWidth']), Math['max'](cFq['offsetWidth'], cFr['offsetWidth']), Math['max'](cFq['clientWidth'], cFr['clientWidth'])); + var cFt = Math['max'](Math['max'](cFq['scrollHeight'], cFr['scrollHeight']), Math['max'](cFq['offsetHeight'], cFr['offsetHeight']), Math['max'](cFq['clientHeight'], cFr['clientHeight'])); + return new cFb(0x0,0x0,cFs,cFt); + }; + var cFu = function(cFv) { + var cFw = []; + var cFx = 0x0; + var cFy = cFv['length']; + while (cFx < cFy) { + var cFz = cFv[dol(0x12b5)](cFx++); + if (cFz >= 0xd800 && cFz <= 0xdbff && cFx < cFy) { + var cFA = cFv['charCodeAt'](cFx++); + if ((cFA & 0xfc00) === 0xdc00) { + cFw['push'](((cFz & 0x3ff) << 0xa) + (cFA & 0x3ff) + 0x10000); + } else { + cFw['push'](cFz); + cFx--; + } + } else { + cFw['push'](cFz); + } + } + return cFw; + }; + var cFB = function() { + var cFC = []; + for (var cFD = 0x0; cFD < arguments['length']; cFD++) { + cFC[cFD] = arguments[cFD]; + } + if (String['fromCodePoint']) { + return String['fromCodePoint']['apply'](String, cFC); + } + var cFE = cFC['length']; + if (!cFE) { + return ''; + } + var cFF = []; + var cFG = -0x1; + var cFH = ''; + while (++cFG < cFE) { + var cFI = cFC[cFG]; + if (cFI <= 0xffff) { + cFF['push'](cFI); + } else { + cFI -= 0x10000; + cFF['push']((cFI >> 0xa) + 0xd800, cFI % 0x400 + 0xdc00); + } + if (cFG + 0x1 === cFE || cFF['length'] > 0x4000) { + cFH += String['fromCharCode'][dol(0x12b6)](String, cFF); + cFF['length'] = 0x0; + } + } + return cFH; + }; + var cFJ = doj(0x3e2); + var cFK = typeof Uint8Array === 'u' + doo(0xa18) + 'd' ? [] : new Uint8Array(0x100); + for (var cFL = 0x0; cFL < cFJ['length']; cFL++) { + cFK[cFJ['charCodeAt'](cFL)] = cFL; + } + var cFM = function(cFN) { + var cFO = cFN['length'] * 0.75, cFP = cFN['length'], cFL, cFR = 0x0, cFS, cFT, cFU, cFV; + if (cFN[cFN['length'] - 0x1] === '=') { + cFO--; + if (cFN[cFN['length'] - 0x2] === '=') { + cFO--; + } + } + var cFW = typeof ArrayBuffer !== 'u' + doo(0xa19) + 'd' && typeof Uint8Array !== 'u' + doo(0xa1a) + 'd' && typeof Uint8Array['prototype']['slice'] !== 'u' + doo(0xa1b) + 'd' ? new ArrayBuffer(cFO) : new Array(cFO); + var cFX = Array['isArray'](cFW) ? cFW : new Uint8Array(cFW); + for (var cFL = 0x0; cFL < cFP; cFL += 0x4) { + cFS = cFK[cFN['charCodeAt'](cFL)]; + cFT = cFK[cFN['charCodeAt'](cFL + 0x1)]; + cFU = cFK[cFN[dol(0x12b7)](cFL + 0x2)]; + cFV = cFK[cFN[dol(0x12b8)](cFL + 0x3)]; + cFX[cFR++] = cFS << 0x2 | cFT >> 0x4; + cFX[cFR++] = (cFT & 0xf) << 0x4 | cFU >> 0x2; + cFX[cFR++] = (cFU & 0x3) << 0x6 | cFV & 0x3f; + } + return cFW; + }; + var cFZ = function(cG0) { + var cG1 = cG0['length']; + var cG2 = []; + for (var cFL = 0x0; cFL < cG1; cFL += 0x2) { + cG2['push'](cG0[cFL + 0x1] << 0x8 | cG0[cFL]); + } + return cG2; + }; + var cG4 = function(cG5) { + var cG6 = cG5['length']; + var cG7 = []; + for (var cFL = 0x0; cFL < cG6; cFL += 0x4) { + cG7['push'](cG5[cFL + 0x3] << 0x18 | cG5[cFL + 0x2] << 0x10 | cG5[cFL + 0x1] << 0x8 | cG5[cFL]); + } + return cG7; + }; + var cG9 = 0x5; + var cGa = 0x6 + 0x5; + var cGb = 0x2; + var cGc = cGa - cG9; + var cGd = 0x10000 >> cG9; + var cGe = 0x1 << cG9; + var cGf = cGe - 0x1; + var cGg = 0x400 >> cG9; + var cGh = cGd + cGg; + var cGi = cGh; + var cGj = 0x800 >> 0x6; + var cGk = cGi + cGj; + var cGl = 0x10000 >> cGa; + var cGm = 0x1 << cGc; + var cGn = cGm - 0x1; + var cGo = function(cGp, cGq, cGr) { + if (cGp[dol(0x12b9)]) { + return cGp['slice'](cGq, cGr); + } + return new Uint16Array(Array['prototype']['slice'][dol(0x12ba)](cGp, cGq, cGr)); + }; + var cGs = function(cGt, cGu, cGv) { + if (cGt['slice']) { + return cGt['slice'](cGu, cGv); + } + return new Uint32Array(Array['prototype']['slice']['call'](cGt, cGu, cGv)); + }; + var cGw = function(cGx) { + var cGy = cFM(cGx); + var cGz = Array['isArray'](cGy) ? cG4(cGy) : new Uint32Array(cGy); + var cGA = Array['isArray'](cGy) ? cFZ(cGy) : new Uint16Array(cGy); + var cGB = 0x18; + var cGC = cGo(cGA, cGB / 0x2, cGz[0x4] / 0x2); + var cGD = cGz[0x5] === 0x2 ? cGo(cGA, (cGB + cGz[0x4]) / 0x2) : cGs(cGz, Math['ceil']((cGB + cGz[0x4]) / 0x4)); + return new cGE(cGz[0x0],cGz[0x1],cGz[0x2],cGz[0x3],cGC,cGD); + }; + var cGE = function() { + function cGE(cGG, cGH, cGI, cGJ, cGK, cGL) { + this['initialValue'] = cGG; + this['errorValue'] = cGH; + this['highStart'] = cGI; + this['highValueIndex'] = cGJ; + this['index'] = cGK; + this['data'] = cGL; + } + cGE['prototype']['get'] = function(cGM) { + var cGN; + if (cGM >= 0x0) { + if (cGM < 0xd800 || cGM > 0xdbff && cGM <= 0xffff) { + cGN = this['index'][cGM >> cG9]; + cGN = (cGN << cGb) + (cGM & cGf); + return this['data'][cGN]; + } + if (cGM <= 0xffff) { + cGN = this['index'][cGd + (cGM - 0xd800 >> cG9)]; + cGN = (cGN << cGb) + (cGM & cGf); + return this['data'][cGN]; + } + if (cGM < this['highStart']) { + cGN = cGk - cGl + (cGM >> cGa); + cGN = this['index'][cGN]; + cGN += cGM >> cG9 & cGn; + cGN = this['index'][cGN]; + cGN = (cGN << cGb) + (cGM & cGf); + return this['data'][cGN]; + } + if (cGM <= 0x10ffff) { + return this['data'][this['highValueIndex']]; + } + } + return this['errorValue']; + } + ; + return cGE; + }(); + var cGO = doj(0x3e3); + var cGP = 0x32; + var cGQ = 0x1; + var cGR = 0x2; + var cGS = 0x3; + var cGT = 0x4; + var cGU = 0x5; + var cGV = 0x7; + var cGW = 0x8; + var cGX = 0x9; + var cGY = 0xa; + var cGZ = 0xb; + var cH0 = 0xc; + var cH1 = 0xd; + var cH2 = 0xe; + var cH3 = 0xf; + var cH4 = 0x10; + var cH5 = 0x11; + var cH6 = 0x12; + var cH7 = 0x13; + var cH8 = 0x14; + var cH9 = 0x15; + var cHa = 0x16; + var cHb = 0x17; + var cHc = 0x18; + var cHd = 0x19; + var cHe = 0x1a; + var cHf = 0x1b; + var cHg = 0x1c; + var cHh = 0x1d; + var cHi = 0x1e; + var cHj = 0x1f; + var cHk = 0x20; + var cHl = 0x21; + var cHm = 0x22; + var cHn = 0x23; + var cHo = 0x24; + var cHp = 0x25; + var cHq = 0x26; + var cHr = 0x27; + var cHs = 0x28; + var cHt = 0x29; + var cHu = 0x2a; + var cHv = 0x2b; + var cHw = '!'; + var cHx = '×'; + var cHy = '÷'; + var cHz = cGw(cGO); + var cHA = [cHi, cHo]; + var cHB = [cGQ, cGR, cGS, cGU]; + var cHC = [cGY, cGW]; + var cHD = [cHf, cHe]; + var cHE = cHB['concat'](cHC); + var cHF = [cHq, cHr, cHs, cHm, cHn]; + var cHG = [cH3, cH1]; + var cHH = function(cHI, cHJ) { + if (cHJ === void 0x0) { + cHJ = 's' + doo(0xa1c) + 't'; + } + var cHK = []; + var cHL = []; + var cHM = []; + cHI['forEach'](function(cHN, cHO) { + var cHP = cHz['get'](cHN); + if (cHP > cGP) { + cHM[dol(0x12bb)](!![]); + cHP -= cGP; + } else { + cHM['push'](![]); + } + if (['n' + doo(0xa1d) + 'l', 'a' + doo(0xa1e) + 'o', 'l' + doo(0xa1f) + 'e']['indexOf'](cHJ) !== -0x1) { + if ([0x2010, 0x2013, 0x301c, 0x30a0]['indexOf'](cHN) !== -0x1) { + cHL['push'](cHO); + return cHK['push'](cH4); + } + } + if (cHP === cGT || cHP === cGZ) { + if (cHO === 0x0) { + cHL['push'](cHO); + return cHK['push'](cHi); + } + var cHQ = cHK[cHO - 0x1]; + if (cHE['indexOf'](cHQ) === -0x1) { + cHL['push'](cHL[cHO - 0x1]); + return cHK['push'](cHQ); + } + cHL['push'](cHO); + return cHK['push'](cHi); + } + cHL['push'](cHO); + if (cHP === cHj) { + return cHK[dol(0x12bc)](cHJ === 's' + doo(0xa20) + 't' ? cH9 : cHp); + } + if (cHP === cHu) { + return cHK['push'](cHi); + } + if (cHP === cHh) { + return cHK['push'](cHi); + } + if (cHP === cHv) { + if (cHN >= 0x20000 && cHN <= 0x2fffd || cHN >= 0x30000 && cHN <= 0x3fffd) { + return cHK['push'](cHp); + } else { + return cHK['push'](cHi); + } + } + cHK[dol(0x12bd)](cHP); + }); + return [cHL, cHK, cHM]; + }; + var cHR = function(q, cHT, cHU, cHV) { + var cHW = cHV[cHU]; + if (Array['isArray'](q) ? q['indexOf'](cHW) !== -0x1 : q === cHW) { + var cFL = cHU; + while (cFL <= cHV['length']) { + cFL++; + var cHY = cHV[cFL]; + if (cHY === cHT) { + return !![]; + } + if (cHY !== cGY) { + break; + } + } + } + if (cHW === cGY) { + var cFL = cHU; + while (cFL > 0x0) { + cFL--; + var cI0 = cHV[cFL]; + if (Array['isArray'](q) ? q['indexOf'](cI0) !== -0x1 : q === cI0) { + var cI1 = cHU; + while (cI1 <= cHV['length']) { + cI1++; + var cHY = cHV[cI1]; + if (cHY === cHT) { + return !![]; + } + if (cHY !== cGY) { + break; + } + } + } + if (cI0 !== cGY) { + break; + } + } + } + return ![]; + }; + var cI3 = function(cI4, cI5) { + var cFL = cI4; + while (cFL >= 0x0) { + var cI7 = cI5[cFL]; + if (cI7 === cGY) { + cFL--; + } else { + return cI7; + } + } + return 0x0; + }; + var cI8 = function(cI9, cIa, cIb, cIc, cId) { + if (cIb[cIc] === 0x0) { + return cHx; + } + var cIe = cIc - 0x1; + if (Array['isArray'](cId) && cId[cIe] === !![]) { + return cHx; + } + var cIf = cIe - 0x1; + var cIg = cIe + 0x1; + var cIh = cIa[cIe]; + var cIi = cIf >= 0x0 ? cIa[cIf] : 0x0; + var cIj = cIa[cIg]; + if (cIh === cGR && cIj === cGS) { + return cHx; + } + if (cHB['indexOf'](cIh) !== -0x1) { + return cHw; + } + if (cHB['indexOf'](cIj) !== -0x1) { + return cHx; + } + if (cHC['indexOf'](cIj) !== -0x1) { + return cHx; + } + if (cI3(cIe, cIa) === cGW) { + return cHy; + } + if (cHz['get'](cI9[cIe]) === cGZ && (cIj === cHp || cIj === cHk || cIj === cHl)) { + return cHx; + } + if (cIh === cGV || cIj === cGV) { + return cHx; + } + if (cIh === cGX) { + return cHx; + } + if ([cGY, cH1, cH3]['indexOf'](cIh) === -0x1 && cIj === cGX) { + return cHx; + } + if ([cH5, cH6, cH7, cHc, cHg][dol(0x12be)](cIj) !== -0x1) { + return cHx; + } + if (cI3(cIe, cIa) === cHa) { + return cHx; + } + if (cHR(cHb, cHa, cIe, cIa)) { + return cHx; + } + if (cHR([cH5, cH6], cH9, cIe, cIa)) { + return cHx; + } + if (cHR(cH0, cH0, cIe, cIa)) { + return cHx; + } + if (cIh === cGY) { + return cHy; + } + if (cIh === cHb || cIj === cHb) { + return cHx; + } + if (cIj === cH4 || cIh === cH4) { + return cHy; + } + if ([cH1, cH3, cH9]['indexOf'](cIj) !== -0x1 || cIh === cH2) { + return cHx; + } + if (cIi === cHo && cHG['indexOf'](cIh) !== -0x1) { + return cHx; + } + if (cIh === cHg && cIj === cHo) { + return cHx; + } + if (cIj === cH8 && cHA['concat'](cH8, cH7, cHd, cHp, cHk, cHl)['indexOf'](cIh) !== -0x1) { + return cHx; + } + if (cHA['indexOf'](cIj) !== -0x1 && cIh === cHd || cHA['indexOf'](cIh) !== -0x1 && cIj === cHd) { + return cHx; + } + if (cIh === cHf && [cHp, cHk, cHl]['indexOf'](cIj) !== -0x1 || [cHp, cHk, cHl]['indexOf'](cIh) !== -0x1 && cIj === cHe) { + return cHx; + } + if (cHA['indexOf'](cIh) !== -0x1 && cHD['indexOf'](cIj) !== -0x1 || cHD[dol(0x12bf)](cIh) !== -0x1 && cHA['indexOf'](cIj) !== -0x1) { + return cHx; + } + if ([cHf, cHe]['indexOf'](cIh) !== -0x1 && (cIj === cHd || [cHa, cH3]['indexOf'](cIj) !== -0x1 && cIa[cIg + 0x1] === cHd) || [cHa, cH3]['indexOf'](cIh) !== -0x1 && cIj === cHd || cIh === cHd && [cHd, cHg, cHc]['indexOf'](cIj) !== -0x1) { + return cHx; + } + if ([cHd, cHg, cHc, cH5, cH6]['indexOf'](cIj) !== -0x1) { + var cIk = cIe; + while (cIk >= 0x0) { + var cIl = cIa[cIk]; + if (cIl === cHd) { + return cHx; + } else if ([cHg, cHc]['indexOf'](cIl) !== -0x1) { + cIk--; + } else { + break; + } + } + } + if ([cHf, cHe]['indexOf'](cIj) !== -0x1) { + var cIk = [cH5, cH6]['indexOf'](cIh) !== -0x1 ? cIf : cIe; + while (cIk >= 0x0) { + var cIl = cIa[cIk]; + if (cIl === cHd) { + return cHx; + } else if ([cHg, cHc]['indexOf'](cIl) !== -0x1) { + cIk--; + } else { + break; + } + } + } + if (cHq === cIh && [cHq, cHr, cHm, cHn]['indexOf'](cIj) !== -0x1 || [cHr, cHm]['indexOf'](cIh) !== -0x1 && [cHr, cHs]['indexOf'](cIj) !== -0x1 || [cHs, cHn]['indexOf'](cIh) !== -0x1 && cIj === cHs) { + return cHx; + } + if (cHF[dol(0x12c0)](cIh) !== -0x1 && [cH8, cHe]['indexOf'](cIj) !== -0x1 || cHF[dol(0x12c1)](cIj) !== -0x1 && cIh === cHf) { + return cHx; + } + if (cHA['indexOf'](cIh) !== -0x1 && cHA['indexOf'](cIj) !== -0x1) { + return cHx; + } + if (cIh === cHc && cHA[dol(0x12c2)](cIj) !== -0x1) { + return cHx; + } + if (cHA['concat'](cHd)['indexOf'](cIh) !== -0x1 && cIj === cHa || cHA['concat'](cHd)['indexOf'](cIj) !== -0x1 && cIh === cH6) { + return cHx; + } + if (cIh === cHt && cIj === cHt) { + var cFL = cIb[cIe]; + var cIp = 0x1; + while (cFL > 0x0) { + cFL--; + if (cIa[cFL] === cHt) { + cIp++; + } else { + break; + } + } + if (cIp % 0x2 !== 0x0) { + return cHx; + } + } + if (cIh === cHk && cIj === cHl) { + return cHx; + } + return cHy; + }; + var cIq = function(cIr, cIs) { + if (!cIs) { + cIs = { + 'lineBreak': 'n' + doo(0xa21) + 'l', + 'wordBreak': 'n' + doo(0xa22) + 'l' + }; + } + var cIt = cHH(cIr, cIs['lineBreak']) + , cIu = cIt[0x0] + , cIv = cIt[0x1] + , cIw = cIt[0x2]; + if (cIs['wordBreak'] === 'b' + doo(0xa23) + 'l' || cIs['wordBreak'] === 'b' + doo(0xa24) + 'd') { + cIv = cIv['map'](function(cIx) { + return [cHd, cHi, cHu][dol(0x12c3)](cIx) !== -0x1 ? cHp : cIx; + }); + } + var cIy = cIs[dol(0x12c4)] === 'k' + doo(0xa25) + 'l' ? cIw['map'](function(cIz, cFL) { + return cIz && cIr[cFL] >= 0x4e00 && cIr[cFL] <= 0x9fff; + }) : undefined; + return [cIu, cIv, cIy]; + }; + var cIB = function() { + function cIB(cID, cIE, cIF, cIG) { + this['codePoints'] = cID; + this['required'] = cIE === cHw; + this['start'] = cIF; + this['end'] = cIG; + } + cIB['prototype']['slice'] = function() { + return cFB['apply'](void 0x0, this['codePoints']['slice'](this['start'], this['end'])); + } + ; + return cIB; + }(); + var cIH = function(cII, cIJ) { + var cIK = cFu(cII); + var cIL = cIq(cIK, cIJ) + , cIM = cIL[0x0] + , cIN = cIL[0x1] + , cIO = cIL[0x2]; + var cIP = cIK['length']; + var cIQ = 0x0; + var cIR = 0x0; + return { + 'next': function() { + if (cIR >= cIP) { + return { + 'done': !![], + 'value': null + }; + } + var cIS = cHx; + while (cIR < cIP && (cIS = cI8(cIK, cIN, cIM, ++cIR, cIO)) === cHx) {} + if (cIS !== cHx || cIR === cIP) { + var cIT = new cIB(cIK,cIS,cIQ,cIR); + cIQ = cIR; + return { + 'value': cIT, + 'done': ![] + }; + } + return { + 'done': !![], + 'value': null + }; + } + }; + }; + var cIU; + (function(cIU) { + cIU[cIU['S' + doo(0xa26) + 'N'] = 0x0] = 'S' + doo(0xa27) + 'N'; + cIU[cIU['B' + doo(0xa28) + 'N'] = 0x1] = 'B' + doo(0xa29) + 'N'; + cIU[cIU[doj(0x3e4)] = 0x2] = doj(0x3e5); + cIU[cIU[doj(0x3e6)] = 0x3] = doj(0x3e7); + cIU[cIU['C' + doo(0xa2a) + 'N'] = 0x4] = 'C' + doo(0xa2b) + 'N'; + cIU[cIU['H' + doo(0xa2c) + 'N'] = 0x5] = 'H' + doo(0xa2d) + 'N'; + cIU[cIU['D' + doo(0xa2e) + 'N'] = 0x6] = 'D' + doo(0xa2f) + 'N'; + cIU[cIU['A' + doo(0xa30) + 'N'] = 0x7] = 'A' + doo(0xa31) + 'N'; + cIU[cIU['P' + doo(0xa32) + 'N'] = 0x8] = 'P' + doo(0xa33) + 'N'; + cIU[cIU['D' + doo(0xa34) + 'N'] = 0x9] = 'D' + doo(0xa35) + 'N'; + cIU[cIU['I' + doo(0xa36) + 'N'] = 0xa] = 'I' + doo(0xa37) + 'N'; + cIU[cIU[doj(0x3e8)] = 0xb] = doj(0x3e9); + cIU[cIU[doj(0x3ea)] = 0xc] = doj(0x3eb); + cIU[cIU['S' + doo(0xa38) + 'N'] = 0xd] = 'S' + doo(0xa39) + 'N'; + cIU[cIU[doj(0x3ec)] = 0xe] = doj(0x3ed); + cIU[cIU['D' + doo(0xa3a) + 'N'] = 0xf] = 'D' + doo(0xa3b) + 'N'; + cIU[cIU['P' + doo(0xa3c) + 'N'] = 0x10] = 'P' + doo(0xa3d) + 'N'; + cIU[cIU['N' + doo(0xa3e) + 'N'] = 0x11] = 'N' + doo(0xa3f) + 'N'; + cIU[cIU['F' + doo(0xa40) + 'N'] = 0x12] = 'F' + doo(0xa41) + 'N'; + cIU[cIU['F' + doo(0xa42) + 'N'] = 0x13] = 'F' + doo(0xa43) + 'N'; + cIU[cIU['I' + doo(0xa44) + 'N'] = 0x14] = 'I' + doo(0xa45) + 'N'; + cIU[cIU['C' + doo(0xa46) + 'N'] = 0x15] = 'C' + doo(0xa47) + 'N'; + cIU[cIU['U' + doo(0xa48) + 'N'] = 0x16] = 'U' + doo(0xa49) + 'N'; + cIU[cIU['B' + doo(0xa4a) + 'N'] = 0x17] = 'B' + doo(0xa4b) + 'N'; + cIU[cIU['C' + doo(0xa4c) + 'N'] = 0x18] = 'C' + doo(0xa4d) + 'N'; + cIU[cIU['C' + doo(0xa4e) + 'N'] = 0x19] = 'C' + doo(0xa4f) + 'N'; + cIU[cIU['C' + doo(0xa50) + 'N'] = 0x1a] = 'C' + doo(0xa51) + 'N'; + cIU[cIU['S' + doo(0xa52) + 'N'] = 0x1b] = 'S' + doo(0xa53) + 'N'; + cIU[cIU[doj(0x3ee)] = 0x1c] = doj(0x3ef); + cIU[cIU[doj(0x3f0)] = 0x1d] = doj(0x3f1); + cIU[cIU['U' + doo(0xa54) + 'N'] = 0x1e] = 'U' + doo(0xa55) + 'N'; + cIU[cIU['W' + doo(0xa56) + 'N'] = 0x1f] = 'W' + doo(0xa57) + 'N'; + cIU[cIU['E' + doo(0xa58) + 'N'] = 0x20] = 'E' + doo(0xa59) + 'N'; + }(cIU || (cIU = {}))); + var cIW = 0x1 << 0x0; + var cIX = 0x1 << 0x1; + var cIY = 0x1 << 0x2; + var cIZ = 0x1 << 0x3; + var cJ0 = 0xa; + var cJ1 = 0x2f; + var cJ2 = 0x5c; + var cJ3 = 0x9; + var cJ4 = 0x20; + var cJ5 = 0x22; + var cJ6 = 0x3d; + var cJ7 = 0x23; + var cJ8 = 0x24; + var cJ9 = 0x25; + var cJa = 0x27; + var cJb = 0x28; + var cJc = 0x29; + var cJd = 0x5f; + var cJe = 0x2d; + var cJf = 0x21; + var cJg = 0x3c; + var cJh = 0x3e; + var cJi = 0x40; + var cJj = 0x5b; + var cJk = 0x5d; + var cJl = 0x3d; + var cJm = 0x7b; + var cJn = 0x3f; + var cJo = 0x7d; + var cJp = 0x7c; + var cJq = 0x7e; + var cJr = 0x80; + var cJs = 0xfffd; + var cJt = 0x2a; + var cJu = 0x2b; + var cJv = 0x2c; + var cJw = 0x3a; + var cJx = 0x3b; + var cJy = 0x2e; + var cJz = 0x0; + var cJA = 0x8; + var cJB = 0xb; + var cJC = 0xe; + var cJD = 0x1f; + var cJE = 0x7f; + var cJF = -0x1; + var cJG = 0x30; + var q = 0x61; + var cJI = 0x65; + var cJJ = 0x66; + var cJK = 0x75; + var cJL = 0x7a; + var cJM = 0x41; + var cJN = 0x45; + var cJO = 0x46; + var cJP = 0x55; + var cJQ = 0x5a; + var cJR = function(cJS) { + return cJS >= cJG && cJS <= 0x39; + }; + var cJT = function(cJU) { + return cJU >= 0xd800 && cJU <= 0xdfff; + }; + var cJV = function(cJW) { + return cJR(cJW) || cJW >= cJM && cJW <= cJO || cJW >= q && cJW <= cJJ; + }; + var cJX = function(cJY) { + return cJY >= q && cJY <= cJL; + }; + var cJZ = function(cK0) { + return cK0 >= cJM && cK0 <= cJQ; + }; + var cK1 = function(cK2) { + return cJX(cK2) || cJZ(cK2); + }; + var cK3 = function(cK4) { + return cK4 >= cJr; + }; + var cK5 = function(cK6) { + return cK6 === cJ0 || cK6 === cJ3 || cK6 === cJ4; + }; + var cK7 = function(cK8) { + return cK1(cK8) || cK3(cK8) || cK8 === cJd; + }; + var cK9 = function(cKa) { + return cK7(cKa) || cJR(cKa) || cKa === cJe; + }; + var cKb = function(cKc) { + return cKc >= cJz && cKc <= cJA || cKc === cJB || cKc >= cJC && cKc <= cJD || cKc === cJE; + }; + var cKd = function(cKe, cKf) { + if (cKe !== cJ2) { + return ![]; + } + return cKf !== cJ0; + }; + var cKg = function(cKh, cKi, cKj) { + if (cKh === cJe) { + return cK7(cKi) || cKd(cKi, cKj); + } else if (cK7(cKh)) { + return !![]; + } else if (cKh === cJ2 && cKd(cKh, cKi)) { + return !![]; + } + return ![]; + }; + var cKk = function(cKl, cKm, cKn) { + if (cKl === cJu || cKl === cJe) { + if (cJR(cKm)) { + return !![]; + } + return cKm === cJy && cJR(cKn); + } + if (cKl === cJy) { + return cJR(cKm); + } + return cJR(cKl); + }; + var cKo = function(cKp) { + var cKq = 0x0; + var cKr = 0x1; + if (cKp[cKq] === cJu || cKp[cKq] === cJe) { + if (cKp[cKq] === cJe) { + cKr = -0x1; + } + cKq++; + } + var cKs = []; + while (cJR(cKp[cKq])) { + cKs['push'](cKp[cKq++]); + } + var cKt = cKs['length'] ? parseInt(cFB['apply'](void 0x0, cKs), 0xa) : 0x0; + if (cKp[cKq] === cJy) { + cKq++; + } + var cKu = []; + while (cJR(cKp[cKq])) { + cKu['push'](cKp[cKq++]); + } + var cKv = cKu['length']; + var cKw = cKv ? parseInt(cFB['apply'](void 0x0, cKu), 0xa) : 0x0; + if (cKp[cKq] === cJN || cKp[cKq] === cJI) { + cKq++; + } + var cKx = 0x1; + if (cKp[cKq] === cJu || cKp[cKq] === cJe) { + if (cKp[cKq] === cJe) { + cKx = -0x1; + } + cKq++; + } + var cKy = []; + while (cJR(cKp[cKq])) { + cKy[dol(0x12c5)](cKp[cKq++]); + } + var cKz = cKy['length'] ? parseInt(cFB['apply'](void 0x0, cKy), 0xa) : 0x0; + return cKr * (cKt + cKw * Math['pow'](0xa, -cKv)) * Math['pow'](0xa, cKx * cKz); + }; + var cKA = { + 'type': cIU['LEFT_PARENTHESIS_TOKEN'] + }; + var cKB = { + 'type': cIU['RIGHT_PARENTHESIS_TOKEN'] + }; + var cKC = { + 'type': cIU['COMMA_TOKEN'] + }; + var cKD = { + 'type': cIU['SUFFIX_MATCH_TOKEN'] + }; + var cKE = { + 'type': cIU['PREFIX_MATCH_TOKEN'] + }; + var cKF = { + 'type': cIU['COLUMN_TOKEN'] + }; + var cKG = { + 'type': cIU['DASH_MATCH_TOKEN'] + }; + var cKH = { + 'type': cIU['INCLUDE_MATCH_TOKEN'] + }; + var cKI = { + 'type': cIU['LEFT_CURLY_BRACKET_TOKEN'] + }; + var cKJ = { + 'type': cIU['RIGHT_CURLY_BRACKET_TOKEN'] + }; + var cKK = { + 'type': cIU['SUBSTRING_MATCH_TOKEN'] + }; + var cKL = { + 'type': cIU['BAD_URL_TOKEN'] + }; + var cKM = { + 'type': cIU['BAD_STRING_TOKEN'] + }; + var cKN = { + 'type': cIU['CDO_TOKEN'] + }; + var cKO = { + 'type': cIU['CDC_TOKEN'] + }; + var cKP = { + 'type': cIU['COLON_TOKEN'] + }; + var cKQ = { + 'type': cIU['SEMICOLON_TOKEN'] + }; + var cKR = { + 'type': cIU['LEFT_SQUARE_BRACKET_TOKEN'] + }; + var cKS = { + 'type': cIU['RIGHT_SQUARE_BRACKET_TOKEN'] + }; + var cKT = { + 'type': cIU['WHITESPACE_TOKEN'] + }; + var cKU = { + 'type': cIU['EOF_TOKEN'] + }; + var cKV = function() { + function cKV() { + this['_value'] = []; + } + cKV['prototype']['write'] = function(cKX) { + this['_value'] = this['_value']['concat'](cFu(cKX)); + } + ; + cKV['prototype']['read'] = function() { + var cKY = []; + var cKZ = this['consumeToken'](); + while (cKZ !== cKU) { + cKY['push'](cKZ); + cKZ = this['consumeToken'](); + } + return cKY; + } + ; + cKV['prototype'][dol(0x12c6)] = function() { + var cL0 = this['consumeCodePoint'](); + switch (cL0) { + case cJ5: + return this['consumeStringToken'](cJ5); + case cJ7: + var cL1 = this['peekCodePoint'](0x0); + var cL2 = this['peekCodePoint'](0x1); + var cL3 = this['peekCodePoint'](0x2); + if (cK9(cL1) || cKd(cL2, cL3)) { + var cL4 = cKg(cL1, cL2, cL3) ? cIX : cIW; + var cL5 = this['consumeName'](); + return { + 'type': cIU['HASH_TOKEN'], + 'value': cL5, + 'flags': cL4 + }; + } + break; + case cJ8: + if (this['peekCodePoint'](0x0) === cJ6) { + this['consumeCodePoint'](); + return cKD; + } + break; + case cJa: + return this['consumeStringToken'](cJa); + case cJb: + return cKA; + case cJc: + return cKB; + case cJt: + if (this['peekCodePoint'](0x0) === cJ6) { + this['consumeCodePoint'](); + return cKK; + } + break; + case cJu: + if (cKk(cL0, this['peekCodePoint'](0x0), this['peekCodePoint'](0x1))) { + this['reconsumeCodePoint'](cL0); + return this['consumeNumericToken'](); + } + break; + case cJv: + return cKC; + case cJe: + var cL6 = cL0; + var cL7 = this['peekCodePoint'](0x0); + var cL8 = this['peekCodePoint'](0x1); + if (cKk(cL6, cL7, cL8)) { + this['reconsumeCodePoint'](cL0); + return this['consumeNumericToken'](); + } + if (cKg(cL6, cL7, cL8)) { + this['reconsumeCodePoint'](cL0); + return this['consumeIdentLikeToken'](); + } + if (cL7 === cJe && cL8 === cJh) { + this['consumeCodePoint'](); + this['consumeCodePoint'](); + return cKO; + } + break; + case cJy: + if (cKk(cL0, this['peekCodePoint'](0x0), this['peekCodePoint'](0x1))) { + this['reconsumeCodePoint'](cL0); + return this['consumeNumericToken'](); + } + break; + case cJ1: + if (this['peekCodePoint'](0x0) === cJt) { + this['consumeCodePoint'](); + while (!![]) { + var cL9 = this['consumeCodePoint'](); + if (cL9 === cJt) { + cL9 = this['consumeCodePoint'](); + if (cL9 === cJ1) { + return this['consumeToken'](); + } + } + if (cL9 === cJF) { + return this['consumeToken'](); + } + } + } + break; + case cJw: + return cKP; + case cJx: + return cKQ; + case cJg: + if (this['peekCodePoint'](0x0) === cJf && this['peekCodePoint'](0x1) === cJe && this['peekCodePoint'](0x2) === cJe) { + this['consumeCodePoint'](); + this['consumeCodePoint'](); + return cKN; + } + break; + case cJi: + var cLa = this['peekCodePoint'](0x0); + var cLb = this['peekCodePoint'](0x1); + var cLc = this['peekCodePoint'](0x2); + if (cKg(cLa, cLb, cLc)) { + var cL5 = this['consumeName'](); + return { + 'type': cIU['AT_KEYWORD_TOKEN'], + 'value': cL5 + }; + } + break; + case cJj: + return cKR; + case cJ2: + if (cKd(cL0, this['peekCodePoint'](0x0))) { + this['reconsumeCodePoint'](cL0); + return this['consumeIdentLikeToken'](); + } + break; + case cJk: + return cKS; + case cJl: + if (this['peekCodePoint'](0x0) === cJ6) { + this['consumeCodePoint'](); + return cKE; + } + break; + case cJm: + return cKI; + case cJo: + return cKJ; + case cJK: + case cJP: + var cLe = this['peekCodePoint'](0x0); + var cLf = this['peekCodePoint'](0x1); + if (cLe === cJu && (cJV(cLf) || cLf === cJn)) { + this['consumeCodePoint'](); + this['consumeUnicodeRangeToken'](); + } + this['reconsumeCodePoint'](cL0); + return this['consumeIdentLikeToken'](); + case cJp: + if (this['peekCodePoint'](0x0) === cJ6) { + this['consumeCodePoint'](); + return cKG; + } + if (this['peekCodePoint'](0x0) === cJp) { + this['consumeCodePoint'](); + return cKF; + } + break; + case cJq: + if (this['peekCodePoint'](0x0) === cJ6) { + this['consumeCodePoint'](); + return cKH; + } + break; + case cJF: + return cKU; + } + if (cK5(cL0)) { + this['consumeWhiteSpace'](); + return cKT; + } + if (cJR(cL0)) { + this['reconsumeCodePoint'](cL0); + return this['consumeNumericToken'](); + } + if (cK7(cL0)) { + this['reconsumeCodePoint'](cL0); + return this['consumeIdentLikeToken'](); + } + return { + 'type': cIU['DELIM_TOKEN'], + 'value': cFB(cL0) + }; + } + ; + cKV[dol(0x12c7)]['consumeCodePoint'] = function() { + var cLg = this['_value']['shift'](); + return typeof cLg === 'u' + doo(0xa5a) + 'd' ? -0x1 : cLg; + } + ; + cKV['prototype']['reconsumeCodePoint'] = function(cLh) { + this['_value']['unshift'](cLh); + } + ; + cKV['prototype']['peekCodePoint'] = function(cLi) { + if (cLi >= this['_value']['length']) { + return -0x1; + } + return this['_value'][cLi]; + } + ; + cKV['prototype']['consumeUnicodeRangeToken'] = function() { + var cLj = []; + var cLk = this['consumeCodePoint'](); + while (cJV(cLk) && cLj['length'] < 0x6) { + cLj['push'](cLk); + cLk = this['consumeCodePoint'](); + } + var cLl = ![]; + while (cLk === cJn && cLj['length'] < 0x6) { + cLj['push'](cLk); + cLk = this['consumeCodePoint'](); + cLl = !![]; + } + if (cLl) { + var cLm = parseInt(cFB['apply'](void 0x0, cLj['map'](function(cLn) { + return cLn === cJn ? cJG : cLn; + })), 0x10); + var cLo = parseInt(cFB['apply'](void 0x0, cLj['map'](function(cLp) { + return cLp === cJn ? cJO : cLp; + })), 0x10); + return { + 'type': cIU['UNICODE_RANGE_TOKEN'], + 'start': cLm, + 'end': cLo + }; + } + var cLq = parseInt(cFB['apply'](void 0x0, cLj), 0x10); + if (this['peekCodePoint'](0x0) === cJe && cJV(this['peekCodePoint'](0x1))) { + this['consumeCodePoint'](); + cLk = this['consumeCodePoint'](); + var cLr = []; + while (cJV(cLk) && cLr['length'] < 0x6) { + cLr['push'](cLk); + cLk = this['consumeCodePoint'](); + } + var cLo = parseInt(cFB['apply'](void 0x0, cLr), 0x10); + return { + 'type': cIU['UNICODE_RANGE_TOKEN'], + 'start': cLq, + 'end': cLo + }; + } else { + return { + 'type': cIU['UNICODE_RANGE_TOKEN'], + 'start': cLq, + 'end': cLq + }; + } + } + ; + cKV['prototype']['consumeIdentLikeToken'] = function() { + var cLt = this['consumeName'](); + if (cLt['toLowerCase']() === doh(0x144) && this['peekCodePoint'](0x0) === cJb) { + this['consumeCodePoint'](); + return this['consumeUrlToken'](); + } else if (this['peekCodePoint'](0x0) === cJb) { + this['consumeCodePoint'](); + return { + 'type': cIU['FUNCTION_TOKEN'], + 'value': cLt + }; + } + return { + 'type': cIU['IDENT_TOKEN'], + 'value': cLt + }; + } + ; + cKV['prototype']['consumeUrlToken'] = function() { + var cLu = []; + this['consumeWhiteSpace'](); + if (this['peekCodePoint'](0x0) === cJF) { + return { + 'type': cIU['URL_TOKEN'], + 'value': '' + }; + } + var cLv = this['peekCodePoint'](0x0); + if (cLv === cJa || cLv === cJ5) { + var cLw = this['consumeStringToken'](this['consumeCodePoint']()); + if (cLw['type'] === cIU['STRING_TOKEN']) { + this['consumeWhiteSpace'](); + if (this['peekCodePoint'](0x0) === cJF || this['peekCodePoint'](0x0) === cJc) { + this['consumeCodePoint'](); + return { + 'type': cIU['URL_TOKEN'], + 'value': cLw['value'] + }; + } + } + this['consumeBadUrlRemnants'](); + return cKL; + } + while (!![]) { + var cLx = this['consumeCodePoint'](); + if (cLx === cJF || cLx === cJc) { + return { + 'type': cIU['URL_TOKEN'], + 'value': cFB[dol(0x12c8)](void 0x0, cLu) + }; + } else if (cK5(cLx)) { + this['consumeWhiteSpace'](); + if (this['peekCodePoint'](0x0) === cJF || this['peekCodePoint'](0x0) === cJc) { + this['consumeCodePoint'](); + return { + 'type': cIU['URL_TOKEN'], + 'value': cFB['apply'](void 0x0, cLu) + }; + } + this['consumeBadUrlRemnants'](); + return cKL; + } else if (cLx === cJ5 || cLx === cJa || cLx === cJb || cKb(cLx)) { + this['consumeBadUrlRemnants'](); + return cKL; + } else if (cLx === cJ2) { + if (cKd(cLx, this['peekCodePoint'](0x0))) { + cLu['push'](this['consumeEscapedCodePoint']()); + } else { + this['consumeBadUrlRemnants'](); + return cKL; + } + } else { + cLu['push'](cLx); + } + } + } + ; + cKV['prototype']['consumeWhiteSpace'] = function() { + while (cK5(this['peekCodePoint'](0x0))) { + this['consumeCodePoint'](); + } + } + ; + cKV['prototype']['consumeBadUrlRemnants'] = function() { + while (!![]) { + var cLy = this['consumeCodePoint'](); + if (cLy === cJc || cLy === cJF) { + return; + } + if (cKd(cLy, this['peekCodePoint'](0x0))) { + this['consumeEscapedCodePoint'](); + } + } + } + ; + cKV['prototype']['consumeStringSlice'] = function(cLz) { + var cLA = 0xea60; + var cLB = ''; + while (cLz > 0x0) { + var cLC = Math['min'](cLA, cLz); + cLB += cFB['apply'](void 0x0, this['_value']['splice'](0x0, cLC)); + cLz -= cLC; + } + this['_value'][dol(0x12c9)](); + return cLB; + } + ; + cKV['prototype']['consumeStringToken'] = function(cLD) { + var cLE = ''; + var cFL = 0x0; + do { + var cLG = this['_value'][cFL]; + if (cLG === cJF || cLG === undefined || cLG === cLD) { + cLE += this['consumeStringSlice'](cFL); + return { + 'type': cIU['STRING_TOKEN'], + 'value': cLE + }; + } + if (cLG === cJ0) { + this['_value']['splice'](0x0, cFL); + return cKM; + } + if (cLG === cJ2) { + var cLH = this['_value'][cFL + 0x1]; + if (cLH !== cJF && cLH !== undefined) { + if (cLH === cJ0) { + cLE += this['consumeStringSlice'](cFL); + cFL = -0x1; + this['_value']['shift'](); + } else if (cKd(cLG, cLH)) { + cLE += this['consumeStringSlice'](cFL); + cLE += cFB(this['consumeEscapedCodePoint']()); + cFL = -0x1; + } + } + } + cFL++; + } while (!![]); + } + ; + cKV['prototype']['consumeNumber'] = function() { + var cLI = []; + var cLJ = cIY; + var cLK = this['peekCodePoint'](0x0); + if (cLK === cJu || cLK === cJe) { + cLI['push'](this['consumeCodePoint']()); + } + while (cJR(this['peekCodePoint'](0x0))) { + cLI['push'](this['consumeCodePoint']()); + } + cLK = this['peekCodePoint'](0x0); + var cLL = this['peekCodePoint'](0x1); + if (cLK === cJy && cJR(cLL)) { + cLI['push'](this['consumeCodePoint'](), this['consumeCodePoint']()); + cLJ = cIZ; + while (cJR(this['peekCodePoint'](0x0))) { + cLI['push'](this['consumeCodePoint']()); + } + } + cLK = this['peekCodePoint'](0x0); + cLL = this['peekCodePoint'](0x1); + var cLM = this['peekCodePoint'](0x2); + if ((cLK === cJN || cLK === cJI) && ((cLL === cJu || cLL === cJe) && cJR(cLM) || cJR(cLL))) { + cLI['push'](this['consumeCodePoint'](), this['consumeCodePoint']()); + cLJ = cIZ; + while (cJR(this['peekCodePoint'](0x0))) { + cLI[dol(0x12ca)](this['consumeCodePoint']()); + } + } + return [cKo(cLI), cLJ]; + } + ; + cKV['prototype']['consumeNumericToken'] = function() { + var cLN = this['consumeNumber']() + , cLO = cLN[0x0] + , cLP = cLN[0x1]; + var cLQ = this['peekCodePoint'](0x0); + var cLR = this['peekCodePoint'](0x1); + var cLS = this['peekCodePoint'](0x2); + if (cKg(cLQ, cLR, cLS)) { + var cLT = this['consumeName'](); + return { + 'type': cIU['DIMENSION_TOKEN'], + 'number': cLO, + 'flags': cLP, + 'unit': cLT + }; + } + if (cLQ === cJ9) { + this['consumeCodePoint'](); + return { + 'type': cIU['PERCENTAGE_TOKEN'], + 'number': cLO, + 'flags': cLP + }; + } + return { + 'type': cIU['NUMBER_TOKEN'], + 'number': cLO, + 'flags': cLP + }; + } + ; + cKV['prototype']['consumeEscapedCodePoint'] = function() { + var cLU = this['consumeCodePoint'](); + if (cJV(cLU)) { + var cLV = cFB(cLU); + while (cJV(this['peekCodePoint'](0x0)) && cLV['length'] < 0x6) { + cLV += cFB(this['consumeCodePoint']()); + } + if (cK5(this['peekCodePoint'](0x0))) { + this['consumeCodePoint'](); + } + var cLW = parseInt(cLV, 0x10); + if (cLW === 0x0 || cJT(cLW) || cLW > 0x10ffff) { + return cJs; + } + return cLW; + } + if (cLU === cJF) { + return cJs; + } + return cLU; + } + ; + cKV['prototype']['consumeName'] = function() { + var cLX = ''; + while (!![]) { + var cLY = this['consumeCodePoint'](); + if (cK9(cLY)) { + cLX += cFB(cLY); + } else if (cKd(cLY, this['peekCodePoint'](0x0))) { + cLX += cFB(this['consumeEscapedCodePoint']()); + } else { + this['reconsumeCodePoint'](cLY); + return cLX; + } + } + } + ; + return cKV; + }(); + var cLZ = function() { + function cLZ(cM1) { + this['_tokens'] = cM1; + } + cLZ['create'] = function(cM2) { + var cM3 = new cKV(); + cM3[dol(0x12cb)](cM2); + return new cLZ(cM3['read']()); + } + ; + cLZ['parseValue'] = function(cM4) { + return cLZ['create'](cM4)['parseComponentValue'](); + } + ; + cLZ['parseValues'] = function(cM5) { + return cLZ['create'](cM5)['parseComponentValues'](); + } + ; + cLZ['prototype']['parseComponentValue'] = function() { + var cM6 = this['consumeToken'](); + while (cM6['type'] === cIU['WHITESPACE_TOKEN']) { + cM6 = this['consumeToken'](); + } + if (cM6['type'] === cIU['EOF_TOKEN']) { + throw new SyntaxError(doj(0x3f2)); + } + this['reconsumeToken'](cM6); + var cM7 = this['consumeComponentValue'](); + do { + cM6 = this['consumeToken'](); + } while (cM6['type'] === cIU['WHITESPACE_TOKEN']); + if (cM6['type'] === cIU['EOF_TOKEN']) { + return cM7; + } + throw new SyntaxError(doj(0x3f3)); + } + ; + cLZ[dol(0x12cc)]['parseComponentValues'] = function() { + var cM8 = []; + while (!![]) { + var cM9 = this['consumeComponentValue'](); + if (cM9['type'] === cIU['EOF_TOKEN']) { + return cM8; + } + cM8['push'](cM9); + cM8['push'](); + } + } + ; + cLZ['prototype']['consumeComponentValue'] = function() { + var cMa = this['consumeToken'](); + switch (cMa['type']) { + case cIU['LEFT_CURLY_BRACKET_TOKEN']: + case cIU['LEFT_SQUARE_BRACKET_TOKEN']: + case cIU['LEFT_PARENTHESIS_TOKEN']: + return this['consumeSimpleBlock'](cMa['type']); + case cIU['FUNCTION_TOKEN']: + return this['consumeFunction'](cMa); + } + return cMa; + } + ; + cLZ['prototype']['consumeSimpleBlock'] = function(cMb) { + var cMc = { + 'type': cMb, + 'values': [] + }; + var cMd = this['consumeToken'](); + while (!![]) { + if (cMd['type'] === cIU['EOF_TOKEN'] || cMD(cMd, cMb)) { + return cMc; + } + this['reconsumeToken'](cMd); + cMc['values']['push'](this['consumeComponentValue']()); + cMd = this['consumeToken'](); + } + } + ; + cLZ['prototype']['consumeFunction'] = function(cMe) { + var cMf = { + 'name': cMe['value'], + 'values': [], + 'type': cIU['FUNCTION'] + }; + while (!![]) { + var cMg = this['consumeToken'](); + if (cMg['type'] === cIU[dol(0x12cd)] || cMg['type'] === cIU['RIGHT_PARENTHESIS_TOKEN']) { + return cMf; + } + this['reconsumeToken'](cMg); + cMf[dol(0x12ce)]['push'](this['consumeComponentValue']()); + } + } + ; + cLZ['prototype']['consumeToken'] = function() { + var cMh = this['_tokens']['shift'](); + return typeof cMh === 'u' + doo(0xa5b) + 'd' ? cKU : cMh; + } + ; + cLZ[dol(0x12cf)]['reconsumeToken'] = function(cMi) { + this['_tokens']['unshift'](cMi); + } + ; + return cLZ; + }(); + var cMj = function(cMk) { + return cMk[dol(0x12d0)] === cIU['DIMENSION_TOKEN']; + }; + var cMl = function(cMm) { + return cMm['type'] === cIU['NUMBER_TOKEN']; + }; + var cMn = function(cMo) { + return cMo['type'] === cIU['IDENT_TOKEN']; + }; + var cMp = function(cMq) { + return cMq['type'] === cIU['STRING_TOKEN']; + }; + var cMr = function(cMs, cMt) { + return cMn(cMs) && cMs['value'] === cMt; + }; + var cMu = function(cMv) { + return cMv[dol(0x12d1)] !== cIU['WHITESPACE_TOKEN']; + }; + var cMw = function(cMx) { + return cMx['type'] !== cIU['WHITESPACE_TOKEN'] && cMx['type'] !== cIU['COMMA_TOKEN']; + }; + var cMy = function(cMz) { + var cMA = []; + var cMB = []; + cMz['forEach'](function(cMC) { + if (cMC['type'] === cIU['COMMA_TOKEN']) { + if (cMB['length'] === 0x0) { + throw new Error(doj(0x3f4)); + } + cMA['push'](cMB); + cMB = []; + return; + } + if (cMC['type'] !== cIU['WHITESPACE_TOKEN']) { + cMB['push'](cMC); + } + }); + if (cMB['length']) { + cMA['push'](cMB); + } + return cMA; + }; + var cMD = function(cME, cMF) { + if (cMF === cIU['LEFT_CURLY_BRACKET_TOKEN'] && cME['type'] === cIU['RIGHT_CURLY_BRACKET_TOKEN']) { + return !![]; + } + if (cMF === cIU['LEFT_SQUARE_BRACKET_TOKEN'] && cME['type'] === cIU['RIGHT_SQUARE_BRACKET_TOKEN']) { + return !![]; + } + return cMF === cIU['LEFT_PARENTHESIS_TOKEN'] && cME['type'] === cIU['RIGHT_PARENTHESIS_TOKEN']; + }; + var cMG = function(cMH) { + return cMH['type'] === cIU['NUMBER_TOKEN'] || cMH['type'] === cIU['DIMENSION_TOKEN']; + }; + var cMI = function(cMJ) { + return cMJ[dol(0x12d2)] === cIU['PERCENTAGE_TOKEN'] || cMG(cMJ); + }; + var cMK = function(cML) { + return cML['length'] > 0x1 ? [cML[0x0], cML[0x1]] : [cML[0x0]]; + }; + var cMM = { + 'type': cIU['NUMBER_TOKEN'], + 'number': 0x0, + 'flags': cIY + }; + var cMN = { + 'type': cIU['PERCENTAGE_TOKEN'], + 'number': 0x32, + 'flags': cIY + }; + var cMO = { + 'type': cIU['PERCENTAGE_TOKEN'], + 'number': 0x64, + 'flags': cIY + }; + var cMP = function(cMQ, cMR, cMS) { + var cMT = cMQ[0x0] + , cMU = cMQ[0x1]; + return [cMV(cMT, cMR), cMV(typeof cMU !== 'u' + doo(0xa5c) + 'd' ? cMU : cMT, cMS)]; + }; + var cMV = function(cMW, cMX) { + if (cMW['type'] === cIU['PERCENTAGE_TOKEN']) { + return cMW['number'] / 0x64 * cMX; + } + if (cMj(cMW)) { + switch (cMW['unit']) { + case doh(0x145): + case doh(0x146): + return 0x10 * cMW['number']; + case doh(0x147): + default: + return cMW['number']; + } + } + return cMW['number']; + }; + var cMY = doh(0x148); + var cMZ = 'g' + doo(0xa5d) + 'd'; + var cN0 = doh(0x149); + var cN1 = 't' + doo(0xa5e) + 'n'; + var cN2 = { + 'name': 'a' + doo(0xa5f) + 'e', + 'parse': function(cN3) { + if (cN3['type'] === cIU['DIMENSION_TOKEN']) { + switch (cN3['unit']) { + case cMY: + return Math['PI'] * cN3[dol(0x12d3)] / 0xb4; + case cMZ: + return Math['PI'] / 0xc8 * cN3['number']; + case cN0: + return cN3['number']; + case cN1: + return Math['PI'] * 0x2 * cN3['number']; + } + } + throw new Error(doj(0x3f5)); + } + }; + var cN4 = function(cN5) { + if (cN5[dol(0x12d4)] === cIU['DIMENSION_TOKEN']) { + if (cN5['unit'] === cMY || cN5['unit'] === cMZ || cN5['unit'] === cN0 || cN5['unit'] === cN1) { + return !![]; + } + } + return ![]; + }; + var cN6 = function(cN7) { + var cN8 = cN7['filter'](cMn)['map'](function(cN9) { + return cN9['value']; + })['join']('\x20'); + switch (cN8) { + case 't' + doo(0xa60) + 't': + case 't' + doo(0xa61) + 'm': + case 'l' + doo(0xa62) + 'p': + case 't' + doo(0xa63) + 't': + return [cMM, cMM]; + case 't' + doo(0xa64) + 'p': + case 'b' + doo(0xa65) + 'm': + return cNa(0x0); + case 't' + doo(0xa66) + 't': + case 't' + doo(0xa67) + 'm': + case 'r' + doo(0xa68) + 'p': + case 't' + doo(0xa69) + 't': + return [cMM, cMO]; + case 't' + doo(0xa6a) + 't': + case 'l' + doo(0xa6b) + 't': + return cNa(0x5a); + case 't' + doo(0xa6c) + 't': + case 't' + doo(0xa6d) + 'p': + case 'r' + doo(0xa6e) + 'm': + case 'b' + doo(0xa6f) + 't': + return [cMO, cMO]; + case 't' + doo(0xa70) + 'm': + case doh(0x14a): + return cNa(0xb4); + case 't' + doo(0xa71) + 't': + case 't' + doo(0xa72) + 'p': + case 'l' + doo(0xa73) + 'm': + case 'b' + doo(0xa74) + 't': + return [cMO, cMM]; + case 't' + doo(0xa75) + 't': + case 'r' + doo(0xa76) + 't': + return cNa(0x10e); + } + return 0x0; + }; + var cNa = function(cNa) { + return Math[dol(0x12d5)] * cNa / 0xb4; + }; + var cNc = { + 'name': 'c' + doo(0xa77) + 'r', + 'parse': function(cNd) { + if (cNd['type'] === cIU['FUNCTION']) { + var cNe = cOh[cNd['name']]; + if (typeof cNe === 'u' + doo(0xa78) + 'd') { + throw new Error(doj(0x3f6) + cNd['name'] + '\x22'); + } + return cNe(cNd['values']); + } + if (cNd['type'] === cIU['HASH_TOKEN']) { + if (cNd['value']['length'] === 0x3) { + var cNf = cNd['value']['substring'](0x0, 0x1); + var cNg = cNd[dol(0x12d6)]['substring'](0x1, 0x2); + var cNh = cNd[dol(0x12d7)]['substring'](0x2, 0x3); + return cNC(parseInt(cNf + cNf, 0x10), parseInt(cNg + cNg, 0x10), parseInt(cNh + cNh, 0x10), 0x1); + } + if (cNd['value']['length'] === 0x4) { + var cNf = cNd['value']['substring'](0x0, 0x1); + var cNg = cNd['value']['substring'](0x1, 0x2); + var cNh = cNd['value']['substring'](0x2, 0x3); + var q = cNd['value']['substring'](0x3, 0x4); + return cNC(parseInt(cNf + cNf, 0x10), parseInt(cNg + cNg, 0x10), parseInt(cNh + cNh, 0x10), parseInt(q + q, 0x10) / 0xff); + } + if (cNd['value']['length'] === 0x6) { + var cNf = cNd['value']['substring'](0x0, 0x2); + var cNg = cNd['value']['substring'](0x2, 0x4); + var cNh = cNd['value']['substring'](0x4, 0x6); + return cNC(parseInt(cNf, 0x10), parseInt(cNg, 0x10), parseInt(cNh, 0x10), 0x1); + } + if (cNd['value']['length'] === 0x8) { + var cNf = cNd['value'][dol(0x12d8)](0x0, 0x2); + var cNg = cNd['value']['substring'](0x2, 0x4); + var cNh = cNd['value']['substring'](0x4, 0x6); + var q = cNd['value']['substring'](0x6, 0x8); + return cNC(parseInt(cNf, 0x10), parseInt(cNg, 0x10), parseInt(cNh, 0x10), parseInt(q, 0x10) / 0xff); + } + } + if (cNd['type'] === cIU[dol(0x12d9)]) { + var cNt = cOi[cNd['value']['toUpperCase']()]; + if (typeof cNt !== 'u' + doo(0xa79) + 'd') { + return cNt; + } + } + return cOi['TRANSPARENT']; + } + }; + var cNu = function(cNc) { + return (0xff & cNc) === 0x0; + }; + var cNw = function(cNc) { + var cNy = 0xff & cNc; + var cNz = 0xff & cNc >> 0x8; + var cNA = 0xff & cNc >> 0x10; + var cNB = 0xff & cNc >> 0x18; + return cNy < 0xff ? 'r' + doo(0xa7a) + '(' + cNB + ',' + cNA + ',' + cNz + ',' + cNy / 0xff + ')' : 'r' + doo(0xa7b) + '(' + cNB + ',' + cNA + ',' + cNz + ')'; + }; + var cNC = function(cND, cNE, cNF, q) { + return (cND << 0x18 | cNE << 0x10 | cNF << 0x8 | Math['round'](q * 0xff) << 0x0) >>> 0x0; + }; + var cNH = function(cNI, cFL) { + if (cNI['type'] === cIU['NUMBER_TOKEN']) { + return cNI['number']; + } + if (cNI['type'] === cIU['PERCENTAGE_TOKEN']) { + var cNK = cFL === 0x3 ? 0x1 : 0xff; + return cFL === 0x3 ? cNI['number'] / 0x64 * cNK : Math['round'](cNI[dol(0x12da)] / 0x64 * cNK); + } + return 0x0; + }; + var cNL = function(cNM) { + var cNN = cNM['filter'](cMw); + if (cNN['length'] === 0x3) { + var cNO = cNN['map'](cNH) + , cNP = cNO[0x0] + , cNQ = cNO[0x1] + , cNR = cNO[0x2]; + return cNC(cNP, cNQ, cNR, 0x1); + } + if (cNN['length'] === 0x4) { + var cNS = cNN['map'](cNH) + , cNP = cNS[0x0] + , cNQ = cNS[0x1] + , cNR = cNS[0x2] + , q = cNS[0x3]; + return cNC(cNP, cNQ, cNR, q); + } + return 0x0; + }; + function cNX(cNY, cNZ, cO0) { + if (cO0 < 0x0) { + cO0 += 0x1; + } + if (cO0 >= 0x1) { + cO0 -= 0x1; + } + if (cO0 < 0x1 / 0x6) { + return (cNZ - cNY) * cO0 * 0x6 + cNY; + } else if (cO0 < 0x1 / 0x2) { + return cNZ; + } else if (cO0 < 0x2 / 0x3) { + return (cNZ - cNY) * 0x6 * (0x2 / 0x3 - cO0) + cNY; + } else { + return cNY; + } + } + var cO1 = function(cO2) { + var cO3 = cO2[dol(0x12db)](cMw); + var cO4 = cO3[0x0] + , cO5 = cO3[0x1] + , cO6 = cO3[0x2] + , cO7 = cO3[0x3]; + var cO8 = (cO4['type'] === cIU['NUMBER_TOKEN'] ? cNa(cO4['number']) : cN2['parse'](cO4)) / (Math['PI'] * 0x2); + var cO9 = cMI(cO5) ? cO5['number'] / 0x64 : 0x0; + var cOa = cMI(cO6) ? cO6[dol(0x12dc)] / 0x64 : 0x0; + var q = typeof cO7 !== 'u' + doo(0xa7c) + 'd' && cMI(cO7) ? cMV(cO7, 0x1) : 0x1; + if (cO9 === 0x0) { + return cNC(cOa * 0xff, cOa * 0xff, cOa * 0xff, 0x1); + } + var cOc = cOa <= 0.5 ? cOa * (cO9 + 0x1) : cOa + cO9 - cOa * cO9; + var cOd = cOa * 0x2 - cOc; + var cOe = cNX(cOd, cOc, cO8 + 0x1 / 0x3); + var cOf = cNX(cOd, cOc, cO8); + var cOg = cNX(cOd, cOc, cO8 - 0x1 / 0x3); + return cNC(cOe * 0xff, cOf * 0xff, cOg * 0xff, q); + }; + var cOh = { + 'hsl': cO1, + 'hsla': cO1, + 'rgb': cNL, + 'rgba': cNL + }; + var cOi = { + 'ALICEBLUE': 0xf0f8ffff, + 'ANTIQUEWHITE': 0xfaebd7ff, + 'AQUA': 0xffffff, + 'AQUAMARINE': 0x7fffd4ff, + 'AZURE': 0xf0ffffff, + 'BEIGE': 0xf5f5dcff, + 'BISQUE': 0xffe4c4ff, + 'BLACK': 0xff, + 'BLANCHEDALMOND': 0xffebcdff, + 'BLUE': 0xffff, + 'BLUEVIOLET': 0x8a2be2ff, + 'BROWN': 0xa52a2aff, + 'BURLYWOOD': 0xdeb887ff, + 'CADETBLUE': 0x5f9ea0ff, + 'CHARTREUSE': 0x7fff00ff, + 'CHOCOLATE': 0xd2691eff, + 'CORAL': 0xff7f50ff, + 'CORNFLOWERBLUE': 0x6495edff, + 'CORNSILK': 0xfff8dcff, + 'CRIMSON': 0xdc143cff, + 'CYAN': 0xffffff, + 'DARKBLUE': 0x8bff, + 'DARKCYAN': 0x8b8bff, + 'DARKGOLDENROD': 0xb886bbff, + 'DARKGRAY': 0xa9a9a9ff, + 'DARKGREEN': 0x6400ff, + 'DARKGREY': 0xa9a9a9ff, + 'DARKKHAKI': 0xbdb76bff, + 'DARKMAGENTA': 0x8b008bff, + 'DARKOLIVEGREEN': 0x556b2fff, + 'DARKORANGE': 0xff8c00ff, + 'DARKORCHID': 0x9932ccff, + 'DARKRED': 0x8b0000ff, + 'DARKSALMON': 0xe9967aff, + 'DARKSEAGREEN': 0x8fbc8fff, + 'DARKSLATEBLUE': 0x483d8bff, + 'DARKSLATEGRAY': 0x2f4f4fff, + 'DARKSLATEGREY': 0x2f4f4fff, + 'DARKTURQUOISE': 0xced1ff, + 'DARKVIOLET': 0x9400d3ff, + 'DEEPPINK': 0xff1493ff, + 'DEEPSKYBLUE': 0xbfffff, + 'DIMGRAY': 0x696969ff, + 'DIMGREY': 0x696969ff, + 'DODGERBLUE': 0x1e90ffff, + 'FIREBRICK': 0xb22222ff, + 'FLORALWHITE': 0xfffaf0ff, + 'FORESTGREEN': 0x228b22ff, + 'FUCHSIA': 0xff00ffff, + 'GAINSBORO': 0xdcdcdcff, + 'GHOSTWHITE': 0xf8f8ffff, + 'GOLD': 0xffd700ff, + 'GOLDENROD': 0xdaa520ff, + 'GRAY': 0x808080ff, + 'GREEN': 0x8000ff, + 'GREENYELLOW': 0xadff2fff, + 'GREY': 0x808080ff, + 'HONEYDEW': 0xf0fff0ff, + 'HOTPINK': 0xff69b4ff, + 'INDIANRED': 0xcd5c5cff, + 'INDIGO': 0x4b0082ff, + 'IVORY': 0xfffff0ff, + 'KHAKI': 0xf0e68cff, + 'LAVENDER': 0xe6e6faff, + 'LAVENDERBLUSH': 0xfff0f5ff, + 'LAWNGREEN': 0x7cfc00ff, + 'LEMONCHIFFON': 0xfffacdff, + 'LIGHTBLUE': 0xadd8e6ff, + 'LIGHTCORAL': 0xf08080ff, + 'LIGHTCYAN': 0xe0ffffff, + 'LIGHTGOLDENRODYELLOW': 0xfafad2ff, + 'LIGHTGRAY': 0xd3d3d3ff, + 'LIGHTGREEN': 0x90ee90ff, + 'LIGHTGREY': 0xd3d3d3ff, + 'LIGHTPINK': 0xffb6c1ff, + 'LIGHTSALMON': 0xffa07aff, + 'LIGHTSEAGREEN': 0x20b2aaff, + 'LIGHTSKYBLUE': 0x87cefaff, + 'LIGHTSLATEGRAY': 0x778899ff, + 'LIGHTSLATEGREY': 0x778899ff, + 'LIGHTSTEELBLUE': 0xb0c4deff, + 'LIGHTYELLOW': 0xffffe0ff, + 'LIME': 0xff00ff, + 'LIMEGREEN': 0x32cd32ff, + 'LINEN': 0xfaf0e6ff, + 'MAGENTA': 0xff00ffff, + 'MAROON': 0x800000ff, + 'MEDIUMAQUAMARINE': 0x66cdaaff, + 'MEDIUMBLUE': 0xcdff, + 'MEDIUMORCHID': 0xba55d3ff, + 'MEDIUMPURPLE': 0x9370dbff, + 'MEDIUMSEAGREEN': 0x3cb371ff, + 'MEDIUMSLATEBLUE': 0x7b68eeff, + 'MEDIUMSPRINGGREEN': 0xfa9aff, + 'MEDIUMTURQUOISE': 0x48d1ccff, + 'MEDIUMVIOLETRED': 0xc71585ff, + 'MIDNIGHTBLUE': 0x191970ff, + 'MINTCREAM': 0xf5fffaff, + 'MISTYROSE': 0xffe4e1ff, + 'MOCCASIN': 0xffe4b5ff, + 'NAVAJOWHITE': 0xffdeadff, + 'NAVY': 0x80ff, + 'OLDLACE': 0xfdf5e6ff, + 'OLIVE': 0x808000ff, + 'OLIVEDRAB': 0x6b8e23ff, + 'ORANGE': 0xffa500ff, + 'ORANGERED': 0xff4500ff, + 'ORCHID': 0xda70d6ff, + 'PALEGOLDENROD': 0xeee8aaff, + 'PALEGREEN': 0x98fb98ff, + 'PALETURQUOISE': 0xafeeeeff, + 'PALEVIOLETRED': 0xdb7093ff, + 'PAPAYAWHIP': 0xffefd5ff, + 'PEACHPUFF': 0xffdab9ff, + 'PERU': 0xcd853fff, + 'PINK': 0xffc0cbff, + 'PLUM': 0xdda0ddff, + 'POWDERBLUE': 0xb0e0e6ff, + 'PURPLE': 0x800080ff, + 'REBECCAPURPLE': 0x663399ff, + 'RED': 0xff0000ff, + 'ROSYBROWN': 0xbc8f8fff, + 'ROYALBLUE': 0x4169e1ff, + 'SADDLEBROWN': 0x8b4513ff, + 'SALMON': 0xfa8072ff, + 'SANDYBROWN': 0xf4a460ff, + 'SEAGREEN': 0x2e8b57ff, + 'SEASHELL': 0xfff5eeff, + 'SIENNA': 0xa0522dff, + 'SILVER': 0xc0c0c0ff, + 'SKYBLUE': 0x87ceebff, + 'SLATEBLUE': 0x6a5acdff, + 'SLATEGRAY': 0x708090ff, + 'SLATEGREY': 0x708090ff, + 'SNOW': 0xfffafaff, + 'SPRINGGREEN': 0xff7fff, + 'STEELBLUE': 0x4682b4ff, + 'TAN': 0xd2b48cff, + 'TEAL': 0x8080ff, + 'THISTLE': 0xd8bfd8ff, + 'TOMATO': 0xff6347ff, + 'TRANSPARENT': 0x0, + 'TURQUOISE': 0x40e0d0ff, + 'VIOLET': 0xee82eeff, + 'WHEAT': 0xf5deb3ff, + 'WHITE': 0xffffffff, + 'WHITESMOKE': 0xf5f5f5ff, + 'YELLOW': 0xffff00ff, + 'YELLOWGREEN': 0x9acd32ff + }; + var cOj; + (function(cOj) { + cOj[cOj['V' + doo(0xa7d) + 'E'] = 0x0] = 'V' + doo(0xa7e) + 'E'; + cOj[cOj['L' + doo(0xa7f) + 'T'] = 0x1] = 'L' + doo(0xa80) + 'T'; + cOj[cOj['I' + doo(0xa81) + 'E'] = 0x2] = 'I' + doo(0xa82) + 'E'; + cOj[cOj['T' + doo(0xa83) + 'E'] = 0x3] = 'T' + doo(0xa84) + 'E'; + cOj[cOj['T' + doo(0xa85) + 'E'] = 0x4] = 'T' + doo(0xa86) + 'E'; + }(cOj || (cOj = {}))); + var cOl; + (function(cOl) { + cOl[cOl['B' + doo(0xa87) + 'X'] = 0x0] = 'B' + doo(0xa88) + 'X'; + cOl[cOl['P' + doo(0xa89) + 'X'] = 0x1] = 'P' + doo(0xa8a) + 'X'; + cOl[cOl['C' + doo(0xa8b) + 'X'] = 0x2] = 'C' + doo(0xa8c) + 'X'; + }(cOl || (cOl = {}))); + var cOn = { + 'name': 'b' + doo(0xa8d) + 'p', + 'initialValue': 'b' + doo(0xa8e) + 'x', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cOo) { + return cOo['map'](function(cOp) { + if (cMn(cOp)) { + switch (cOp['value']) { + case 'p' + doo(0xa8f) + 'x': + return cOl['PADDING_BOX']; + case 'c' + doo(0xa90) + 'x': + return cOl['CONTENT_BOX']; + } + } + return cOl['BORDER_BOX']; + }); + } + }; + var cOq = { + 'name': 'b' + doo(0xa91) + 'r', + 'initialValue': 't' + doo(0xa92) + 't', + 'prefix': ![], + 'type': cOj['TYPE_VALUE'], + 'format': 'c' + doo(0xa93) + 'r' + }; + var cOr = function(cOs) { + var cOt = cNc['parse'](cOs[0x0]); + var cOu = cOs[0x1]; + return cOu && cMI(cOu) ? { + 'color': cOt, + 'stop': cOu + } : { + 'color': cOt, + 'stop': null + }; + }; + var cOv = function(cOw, cOx) { + var cOy = cOw[0x0]; + var cOz = cOw[cOw['length'] - 0x1]; + if (cOy['stop'] === null) { + cOy['stop'] = cMM; + } + if (cOz['stop'] === null) { + cOz[dol(0x12dd)] = cMO; + } + var cOA = []; + var cOB = 0x0; + for (var cFL = 0x0; cFL < cOw['length']; cFL++) { + var cOD = cOw[cFL]['stop']; + if (cOD !== null) { + var cOE = cMV(cOD, cOx); + if (cOE > cOB) { + cOA['push'](cOE); + } else { + cOA['push'](cOB); + } + cOB = cOE; + } else { + cOA['push'](null); + } + } + var cOF = null; + for (var cFL = 0x0; cFL < cOA['length']; cFL++) { + var cOH = cOA[cFL]; + if (cOH === null) { + if (cOF === null) { + cOF = cFL; + } + } else if (cOF !== null) { + var cOI = cFL - cOF; + var cOJ = cOA[cOF - 0x1]; + var cOK = (cOH - cOJ) / (cOI + 0x1); + for (var cOL = 0x1; cOL <= cOI; cOL++) { + cOA[cOF + cOL - 0x1] = cOK * cOL; + } + cOF = null; + } + } + return cOw['map'](function(cOM, cFL) { + var cNc = cOM['color']; + return { + 'color': cNc, + 'stop': Math['max'](Math[dol(0x12de)](0x1, cOA[cFL] / cOx), 0x0) + }; + }); + }; + var cOP = function(cOQ, cOR, cOS) { + var cOT = cOR / 0x2; + var cOU = cOS / 0x2; + var cOV = cMV(cOQ[0x0], cOR) - cOT; + var cOW = cOU - cMV(cOQ[0x1], cOS); + return (Math[dol(0x12df)](cOW, cOV) + Math['PI'] * 0x2) % (Math[dol(0x12e0)] * 0x2); + }; + var cOX = function(cN2, cOZ, cP0) { + var cP1 = typeof cN2 === 'n' + doo(0xa94) + 'r' ? cN2 : cOP(cN2, cOZ, cP0); + var cP2 = Math['abs'](cOZ * Math['sin'](cP1)) + Math['abs'](cP0 * Math['cos'](cP1)); + var cP3 = cOZ / 0x2; + var cP4 = cP0 / 0x2; + var cP5 = cP2 / 0x2; + var cP6 = Math['sin'](cP1 - Math['PI'] / 0x2) * cP5; + var cP7 = Math['cos'](cP1 - Math['PI'] / 0x2) * cP5; + return [cP2, cP3 - cP7, cP3 + cP7, cP4 - cP6, cP4 + cP6]; + }; + var cP8 = function(q, cPa) { + return Math['sqrt'](q * q + cPa * cPa); + }; + var cPb = function(cPc, cPd, cPe, cPf, cPg) { + var cPh = [[0x0, 0x0], [0x0, cPd], [cPc, 0x0], [cPc, cPd]]; + return cPh['reduce'](function(cPi, cPj) { + var cPk = cPj[0x0] + , cPl = cPj[0x1]; + var cPm = cP8(cPe - cPk, cPf - cPl); + if (cPg ? cPm < cPi['optimumDistance'] : cPm > cPi['optimumDistance']) { + return { + 'optimumCorner': cPj, + 'optimumDistance': cPm + }; + } + return cPi; + }, { + 'optimumDistance': cPg ? Infinity : -Infinity, + 'optimumCorner': null + })['optimumCorner']; + }; + var cPn = function(cPo, cPp, cPq, cPr, cPs) { + var cPt = 0x0; + var cPu = 0x0; + switch (cPo['size']) { + case cSM['CLOSEST_SIDE']: + if (cPo[dol(0x12e1)] === cSK['CIRCLE']) { + cPt = cPu = Math['min'](Math['abs'](cPp), Math['abs'](cPp - cPr), Math['abs'](cPq), Math['abs'](cPq - cPs)); + } else if (cPo['shape'] === cSK['ELLIPSE']) { + cPt = Math['min'](Math['abs'](cPp), Math['abs'](cPp - cPr)); + cPu = Math['min'](Math['abs'](cPq), Math['abs'](cPq - cPs)); + } + break; + case cSM['CLOSEST_CORNER']: + if (cPo['shape'] === cSK['CIRCLE']) { + cPt = cPu = Math['min'](cP8(cPp, cPq), cP8(cPp, cPq - cPs), cP8(cPp - cPr, cPq), cP8(cPp - cPr, cPq - cPs)); + } else if (cPo['shape'] === cSK['ELLIPSE']) { + var cPv = Math['min'](Math[dol(0x12e2)](cPq), Math['abs'](cPq - cPs)) / Math['min'](Math['abs'](cPp), Math['abs'](cPp - cPr)); + var cPw = cPb(cPr, cPs, cPp, cPq, !![]) + , cPx = cPw[0x0] + , cPy = cPw[0x1]; + cPt = cP8(cPx - cPp, (cPy - cPq) / cPv); + cPu = cPv * cPt; + } + break; + case cSM['FARTHEST_SIDE']: + if (cPo['shape'] === cSK['CIRCLE']) { + cPt = cPu = Math['max'](Math['abs'](cPp), Math['abs'](cPp - cPr), Math['abs'](cPq), Math['abs'](cPq - cPs)); + } else if (cPo[dol(0x12e3)] === cSK['ELLIPSE']) { + cPt = Math['max'](Math['abs'](cPp), Math['abs'](cPp - cPr)); + cPu = Math['max'](Math['abs'](cPq), Math['abs'](cPq - cPs)); + } + break; + case cSM['FARTHEST_CORNER']: + if (cPo['shape'] === cSK['CIRCLE']) { + cPt = cPu = Math['max'](cP8(cPp, cPq), cP8(cPp, cPq - cPs), cP8(cPp - cPr, cPq), cP8(cPp - cPr, cPq - cPs)); + } else if (cPo[dol(0x12e4)] === cSK['ELLIPSE']) { + var cPv = Math['max'](Math['abs'](cPq), Math['abs'](cPq - cPs)) / Math['max'](Math['abs'](cPp), Math['abs'](cPp - cPr)); + var cPA = cPb(cPr, cPs, cPp, cPq, ![]) + , cPx = cPA[0x0] + , cPy = cPA[0x1]; + cPt = cP8(cPx - cPp, (cPy - cPq) / cPv); + cPu = cPv * cPt; + } + break; + } + if (Array['isArray'](cPo['size'])) { + cPt = cMV(cPo['size'][0x0], cPr); + cPu = cPo['size']['length'] === 0x2 ? cMV(cPo['size'][0x1], cPs) : cPt; + } + return [cPt, cPu]; + }; + var cPD = function(cPE) { + var cPF = cNa(0xb4); + var cPG = []; + cMy(cPE)['forEach'](function(cPH, cFL) { + if (cFL === 0x0) { + var cPJ = cPH[0x0]; + if (cPJ['type'] === cIU['IDENT_TOKEN'] && cPJ['value'] === doh(0x14b)) { + cPF = cN6(cPH); + return; + } else if (cN4(cPJ)) { + cPF = cN2['parse'](cPJ); + return; + } + } + var cPK = cOr(cPH); + cPG['push'](cPK); + }); + return { + 'angle': cPF, + 'stops': cPG, + 'type': cSE['LINEAR_GRADIENT'] + }; + }; + var cPL = function(cPM) { + var cPN = cNa(0xb4); + var cPO = []; + cMy(cPM)['forEach'](function(cPP, cFL) { + if (cFL === 0x0) { + var cPR = cPP[0x0]; + if (cPR['type'] === cIU['IDENT_TOKEN'] && [doh(0x14c), 'l' + doo(0xa95) + 't', 'r' + doo(0xa96) + 't', 'b' + doo(0xa97) + 'm']['indexOf'](cPR['value']) !== -0x1) { + cPN = cN6(cPP); + return; + } else if (cN4(cPR)) { + cPN = (cN2['parse'](cPR) + cNa(0x10e)) % cNa(0x168); + return; + } + } + var cPS = cOr(cPP); + cPO['push'](cPS); + }); + return { + 'angle': cPN, + 'stops': cPO, + 'type': cSE['LINEAR_GRADIENT'] + }; + }; + var cPT = function(cPU) { + var cPV = 0x7b; + if (cPU['createRange']) { + var cPW = cPU[dol(0x12e5)](); + if (cPW['getBoundingClientRect']) { + var cPX = cPU['createElement']('b' + doo(0xa98) + 't'); + cPX['style']['height'] = cPV + doh(0x14d); + cPX['style'][dol(0x12e6)] = 'b' + doo(0xa99) + 'k'; + cPU['body']['appendChild'](cPX); + cPW['selectNode'](cPX); + var cPY = cPW['getBoundingClientRect'](); + var cPZ = Math['round'](cPY['height']); + cPU['body']['removeChild'](cPX); + if (cPZ === cPV) { + return !![]; + } + } + } + return ![]; + }; + var cQ0 = function() { + return typeof new Image()['crossOrigin'] !== 'u' + doo(0xa9a) + 'd'; + }; + var cQ1 = function() { + return typeof new XMLHttpRequest()['responseType'] === 's' + doo(0xa9b) + 'g'; + }; + var cQ2 = function(cQ3) { + var cQ4 = new Image(); + var cQ5 = cQ3['createElement']('c' + doo(0xa9c) + 's'); + var cQ6 = cQ5['getContext'](doh(0x14e)); + if (!cQ6) { + return ![]; + } + cQ4['src'] = doj(0x3f7); + try { + cQ6['drawImage'](cQ4, 0x0, 0x0); + cQ5['toDataURL'](); + } catch (cQ7) { + return ![]; + } + return !![]; + }; + var cQ8 = function(cQ9) { + return cQ9[0x0] === 0x0 && cQ9[0x1] === 0xff && cQ9[0x2] === 0x0 && cQ9[0x3] === 0xff; + }; + var cQa = function(cQb) { + var cQc = cQb['createElement']('c' + doo(0xa9d) + 's'); + var cQd = 0x64; + cQc['width'] = cQd; + cQc['height'] = cQd; + var cQe = cQc['getContext'](doh(0x14f)); + if (!cQe) { + return Promise['reject'](![]); + } + cQe['fillStyle'] = 'r' + doo(0xa9e) + ')'; + cQe['fillRect'](0x0, 0x0, cQd, cQd); + var cQf = new Image(); + var cQg = cQc['toDataURL'](); + cQf['src'] = cQg; + var cQh = cQm(cQd, cQd, 0x0, 0x0, cQf); + cQe['fillStyle'] = doh(0x150); + cQe['fillRect'](0x0, 0x0, cQd, cQd); + return cQv(cQh)['then'](function(cQf) { + cQe['drawImage'](cQf, 0x0, 0x0); + var cQj = cQe['getImageData'](0x0, 0x0, cQd, cQd)['data']; + cQe['fillStyle'] = doh(0x151); + cQe[dol(0x12e7)](0x0, 0x0, cQd, cQd); + var cQk = cQb['createElement'](doh(0x152)); + cQk['style']['backgroundImage'] = 'u' + doo(0xa9f) + '(' + cQg + ')'; + cQk['style']['height'] = cQd + doh(0x153); + return cQ8(cQj) ? cQv(cQm(cQd, cQd, 0x0, 0x0, cQk)) : Promise[dol(0x12e8)](![]); + })['then'](function(cQf) { + cQe['drawImage'](cQf, 0x0, 0x0); + return cQ8(cQe['getImageData'](0x0, 0x0, cQd, cQd)['data']); + })['catch'](function() { + return ![]; + }); + }; + var cQm = function(cQn, cQo, cQp, cQq, cQr) { + var cQs = doj(0x3f8); + var cQt = document['createElementNS'](cQs, doh(0x154)); + var cQu = document['createElementNS'](cQs, 'f' + doo(0xaa0) + 't'); + cQt['setAttributeNS'](null, 'w' + doo(0xaa1) + 'h', cQn['toString']()); + cQt['setAttributeNS'](null, 'h' + doo(0xaa2) + 't', cQo['toString']()); + cQu['setAttributeNS'](null, 'w' + doo(0xaa3) + 'h', '1' + doo(0xaa4) + '%'); + cQu['setAttributeNS'](null, 'h' + doo(0xaa5) + 't', '1' + doo(0xaa6) + '%'); + cQu['setAttributeNS'](null, 'x', cQp['toString']()); + cQu['setAttributeNS'](null, 'y', cQq['toString']()); + cQu[dol(0x12e9)](null, doj(0x3f9), 't' + doo(0xaa7) + 'e'); + cQt['appendChild'](cQu); + cQu[dol(0x12ea)](cQr); + return cQt; + }; + var cQv = function(cQw) { + return new Promise(function(cQx, cQy) { + var cQz = new Image(); + cQz['onload'] = function() { + return cQx(cQz); + } + ; + cQz['onerror'] = cQy; + cQz['src'] = doj(0x3fa) + encodeURIComponent(new XMLSerializer()['serializeToString'](cQw)); + } + ); + }; + var cQA = { + get 'SUPPORT_RANGE_BOUNDS'() { + var cQB = cPT(document); + Object['defineProperty'](cQA, 'S' + doo(0xaa8) + 'S', { + 'value': cQB + }); + return cQB; + }, + get 'SUPPORT_SVG_DRAWING'() { + var cQC = cQ2(document); + Object['defineProperty'](cQA, 'S' + doo(0xaa9) + 'G', { + 'value': cQC + }); + return cQC; + }, + get 'SUPPORT_FOREIGNOBJECT_DRAWING'() { + var cQD = typeof Array['from'] === 'f' + doo(0xaaa) + 'n' && typeof window['fetch'] === 'f' + doo(0xaab) + 'n' ? cQa(document) : Promise['resolve'](![]); + Object['defineProperty'](cQA, doj(0x3fb), { + 'value': cQD + }); + return cQD; + }, + get 'SUPPORT_CORS_IMAGES'() { + var cQE = cQ0(); + Object['defineProperty'](cQA, 'S' + doo(0xaac) + 'S', { + 'value': cQE + }); + return cQE; + }, + get 'SUPPORT_RESPONSE_TYPE'() { + var cQF = cQ1(); + Object['defineProperty'](cQA, doj(0x3fc), { + 'value': cQF + }); + return cQF; + }, + get 'SUPPORT_CORS_XHR'() { + var cQG = 'w' + doo(0xaad) + 's'in new XMLHttpRequest(); + Object['defineProperty'](cQA, 'S' + doo(0xaae) + 'R', { + 'value': cQG + }); + return cQG; + } + }; + var cQH = function() { + function cQH(cQJ) { + var cQK = cQJ['id'] + , cQL = cQJ['enabled']; + this['id'] = cQK; + this['enabled'] = cQL; + this['start'] = Date['now'](); + } + cQH['prototype']['debug'] = function() { + var cQM = []; + for (var cQN = 0x0; cQN < arguments['length']; cQN++) { + cQM[cQN] = arguments[cQN]; + } + if (this['enabled']) { + if (typeof window !== 'u' + doo(0xaaf) + 'd' && window['console'] && typeof console['debug'] === 'f' + doo(0xab0) + 'n') { + console['debug']['apply'](console, [this['id'], this['getTime']() + doh(0x155)]['concat'](cQM)); + } else { + this['info'][dol(0x12eb)](this, cQM); + } + } + } + ; + cQH['prototype']['getTime'] = function() { + return Date['now']() - this['start']; + } + ; + cQH['create'] = function(cQO) { + cQH['instances'][cQO['id']] = new cQH(cQO); + } + ; + cQH[dol(0x12ec)] = function(cQP) { + delete cQH['instances'][cQP]; + } + ; + cQH['getInstance'] = function(cQQ) { + var cQR = cQH['instances'][cQQ]; + if (typeof cQR === 'u' + doo(0xab1) + 'd') { + throw new Error(doj(0x3fd) + cQQ); + } + return cQR; + } + ; + cQH['prototype']['info'] = function() { + var cQS = []; + for (var cQT = 0x0; cQT < arguments['length']; cQT++) { + cQS[cQT] = arguments[cQT]; + } + if (this['enabled']) { + if (typeof window !== 'u' + doo(0xab2) + 'd' && window['console'] && typeof console['info'] === 'f' + doo(0xab3) + 'n') { + console['info']['apply'](console, [this['id'], this['getTime']() + doh(0x156)]['concat'](cQS)); + } + } + } + ; + cQH['prototype']['error'] = function() { + var cQU = []; + for (var cQV = 0x0; cQV < arguments['length']; cQV++) { + cQU[cQV] = arguments[cQV]; + } + if (this['enabled']) { + if (typeof window !== 'u' + doo(0xab4) + 'd' && window['console'] && typeof console['error'] === 'f' + doo(0xab5) + 'n') { + console[dol(0x12ed)]['apply'](console, [this['id'], this['getTime']() + doh(0x157)][dol(0x12ee)](cQU)); + } else { + this['info']['apply'](this, cQU); + } + } + } + ; + cQH['instances'] = {}; + return cQH; + }(); + var cQW = function() { + function cQW() {} + cQW['create'] = function(cQY, cQZ) { + return cQW['_caches'][cQY] = new cR9(cQY,cQZ); + } + ; + cQW[dol(0x12ef)] = function(cR0) { + delete cQW['_caches'][cR0]; + } + ; + cQW['open'] = function(cR1) { + var cR2 = cQW['_caches'][cR1]; + if (typeof cR2 !== 'u' + doo(0xab6) + 'd') { + return cR2; + } + throw new Error('C' + doo(0xab7) + '\x22' + cR1 + ('\x22' + doo(0xab8) + 'd')); + } + ; + cQW['getOrigin'] = function(cR3) { + var cR4 = cQW['_link']; + if (!cR4) { + return 'a' + doo(0xab9) + 'k'; + } + cR4['href'] = cR3; + cR4['href'] = cR4['href']; + return cR4[dol(0x12f0)] + cR4['hostname'] + cR4[dol(0x12f1)]; + } + ; + cQW['isSameOrigin'] = function(cR5) { + return cQW[dol(0x12f2)](cR5) === cQW['_origin']; + } + ; + cQW['setContext'] = function(cR6) { + cQW['_link'] = cR6['document'][dol(0x12f3)]('a'); + cQW['_origin'] = cQW['getOrigin'](cR6['location']['href']); + } + ; + cQW['getInstance'] = function() { + var cR7 = cQW['_current']; + if (cR7 === null) { + throw new Error(doj(0x3fe)); + } + return cR7; + } + ; + cQW[dol(0x12f4)] = function(cR8) { + cQW['_current'] = cR8; + } + ; + cQW['detachInstance'] = function() { + cQW['_current'] = null; + } + ; + cQW['_caches'] = {}; + cQW['_origin'] = 'a' + doo(0xaba) + 'k'; + cQW['_current'] = null; + return cQW; + }(); + var cR9 = function() { + function cR9(cRb, cRc) { + this['id'] = cRb; + this['_options'] = cRc; + this['_cache'] = {}; + } + cR9['prototype']['addImage'] = function(cRd) { + var cRe = Promise['resolve'](); + if (this['has'](cRd)) { + return cRe; + } + if (cRL(cRd) || cRF(cRd)) { + this['_cache'][cRd] = this['loadImage'](cRd); + return cRe; + } + return cRe; + } + ; + cR9['prototype']['match'] = function(cRf) { + return this['_cache'][cRf]; + } + ; + cR9['prototype'][dol(0x12f5)] = function(cRg) { + return cEH(this, void 0x0, void 0x0, function() { + var cRh, cRi, cRj, cRk; + var cRl = this; + return cEX(this, function(cRm) { + switch (cRm['label']) { + case 0x0: + cRh = cQW['isSameOrigin'](cRg); + cRi = !cRH(cRg) && this['_options']['useCORS'] === !![] && cQA['SUPPORT_CORS_IMAGES'] && !cRh; + cRj = !cRH(cRg) && !cRh && typeof this['_options']['proxy'] === 's' + doo(0xabb) + 'g' && cQA['SUPPORT_CORS_XHR'] && !cRi; + if (!cRh && this['_options']['allowTaint'] === ![] && !cRH(cRg) && !cRj && !cRi) { + return [0x2]; + } + cRk = cRg; + if (!cRj) + return [0x3, 0x2]; + return [0x4, this['proxy'](cRk)]; + case 0x1: + cRk = cRm['sent'](); + cRm['label'] = 0x2; + case 0x2: + cQH['getInstance'](this['id'])[dol(0x12f6)]('A' + doo(0xabc) + '\x20' + cRg['substring'](0x0, 0x100)); + return [0x4, new Promise(function(cRn, cRo) { + var cRp = new Image(); + cRp['onload'] = function() { + return cRn(cRp); + } + ; + cRp['onerror'] = cRo; + if (cRJ(cRk) || cRi) { + cRp['crossOrigin'] = 'a' + doo(0xabd) + 's'; + } + cRp['src'] = cRk; + if (cRp['complete'] === !![]) { + setTimeout(function() { + return cRn(cRp); + }, 0x1f4); + } + if (cRl['_options'][dol(0x12f7)] > 0x0) { + setTimeout(function() { + return cRo('T' + doo(0xabe) + '(' + cRl[dol(0x12f8)]['imageTimeout'] + ('m' + doo(0xabf) + 'e')); + }, cRl['_options']['imageTimeout']); + } + } + )]; + case 0x3: + return [0x2, cRm['sent']()]; + } + }); + }); + } + ; + cR9['prototype']['has'] = function(cRq) { + return typeof this['_cache'][cRq] !== 'u' + doo(0xac0) + 'd'; + } + ; + cR9['prototype']['keys'] = function() { + return Promise['resolve'](Object['keys'](this['_cache'])); + } + ; + cR9['prototype']['proxy'] = function(cRr) { + var cRs = this; + var cRt = this['_options']['proxy']; + if (!cRt) { + throw new Error('N' + doo(0xac1) + 'd'); + } + var cRu = cRr['substring'](0x0, 0x100); + return new Promise(function(cRv, cRw) { + var cRx = cQA['SUPPORT_RESPONSE_TYPE'] ? 'b' + doo(0xac2) + 'b' : 't' + doo(0xac3) + 't'; + var cRy = new XMLHttpRequest(); + cRy['onload'] = function() { + if (cRy['status'] === 0xc8) { + if (cRx === 't' + doo(0xac4) + 't') { + cRv(cRy['response']); + } else { + var cRz = new FileReader(); + cRz['addEventListener']('l' + doo(0xac5) + 'd', function() { + return cRv(cRz['result']); + }, ![]); + cRz['addEventListener']('e' + doo(0xac6) + 'r', function(cJI) { + return cRw(cJI); + }, ![]); + cRz['readAsDataURL'](cRy[dol(0x12f9)]); + } + } else { + cRw(doj(0x3ff) + cRu + ('\x20' + doo(0xac7) + '\x20') + cRy['status']); + } + } + ; + cRy[dol(0x12fa)] = cRw; + cRy['open'](doh(0x158), cRt + ('?' + doo(0xac8) + '=') + encodeURIComponent(cRr) + ('&' + doo(0xac9) + '=') + cRx); + if (cRx !== 't' + doo(0xaca) + 't' && cRy instanceof XMLHttpRequest) { + cRy['responseType'] = cRx; + } + if (cRs['_options']['imageTimeout']) { + var cRB = cRs['_options']['imageTimeout']; + cRy['timeout'] = cRB; + cRy['ontimeout'] = function() { + return cRw('T' + doo(0xacb) + '(' + cRB + ('m' + doo(0xacc) + '\x20') + cRu); + } + ; + } + cRy['send'](); + } + ); + } + ; + return cR9; + }(); + var cRC = /^data:image\/svg\+xml/i; + var cRD = /^data:image\/.*;base64,/i; + var cRE = /^data:image\/.*/i; + var cRF = function(cRG) { + return cQA['SUPPORT_SVG_DRAWING'] || !cRN(cRG); + }; + var cRH = function(cRI) { + return cRE['test'](cRI); + }; + var cRJ = function(cRK) { + return cRD['test'](cRK); + }; + var cRL = function(cRM) { + return cRM['substr'](0x0, 0x4) === 'b' + doo(0xacd) + 'b'; + }; + var cRN = function(cRO) { + return cRO['substr'](-0x3)['toLowerCase']() === doh(0x159) || cRC['test'](cRO); + }; + var cRP = function(cRQ) { + var cN2 = cNa(0xb4); + var cRS = []; + var cRT = cSE[dol(0x12fb)]; + var cRU = cSK['CIRCLE']; + var cRV = cSM['FARTHEST_CORNER']; + var cRW = []; + cMy(cRQ)['forEach'](function(cRX, cFL) { + var cRZ = cRX[0x0]; + if (cFL === 0x0) { + if (cMn(cRZ) && cRZ[dol(0x12fc)] === 'l' + doo(0xace) + 'r') { + cRT = cSE['LINEAR_GRADIENT']; + return; + } else if (cMn(cRZ) && cRZ['value'] === 'r' + doo(0xacf) + 'l') { + cRT = cSE[dol(0x12fd)]; + return; + } + } + if (cRZ['type'] === cIU['FUNCTION']) { + if (cRZ['name'] === 'f' + doo(0xad0) + 'm') { + var cS0 = cNc['parse'](cRZ['values'][0x0]); + cRS['push']({ + 'stop': cMM, + 'color': cS0 + }); + } else if (cRZ['name'] === doh(0x15a)) { + var cS0 = cNc['parse'](cRZ['values'][0x0]); + cRS['push']({ + 'stop': cMO, + 'color': cS0 + }); + } else if (cRZ[dol(0x12fe)] === 'c' + doo(0xad1) + 'p') { + var cS2 = cRZ['values']['filter'](cMw); + if (cS2['length'] === 0x2) { + var cS0 = cNc['parse'](cS2[0x1]); + var cS4 = cS2[0x0]; + if (cMl(cS4)) { + cRS['push']({ + 'stop': { + 'type': cIU['PERCENTAGE_TOKEN'], + 'number': cS4['number'] * 0x64, + 'flags': cS4['flags'] + }, + 'color': cS0 + }); + } + } + } + } + }); + return cRT === cSE['LINEAR_GRADIENT'] ? { + 'angle': (cN2 + cNa(0xb4)) % cNa(0x168), + 'stops': cRS, + 'type': cRT + } : { + 'size': cRV, + 'shape': cRU, + 'stops': cRS, + 'position': cRW, + 'type': cRT + }; + }; + var cS5 = 'c' + doo(0xad2) + 'e'; + var cS6 = 'f' + doo(0xad3) + 'e'; + var cS7 = 'c' + doo(0xad4) + 'r'; + var cS8 = 'f' + doo(0xad5) + 'r'; + var cS9 = 'c' + doo(0xad6) + 'e'; + var cSa = 'e' + doo(0xad7) + 'e'; + var cSb = 'c' + doo(0xad8) + 'r'; + var cSc = 'c' + doo(0xad9) + 'n'; + var cSd = function(cSe) { + var cSf = cSK['CIRCLE']; + var cSg = cSM['FARTHEST_CORNER']; + var cSh = []; + var cSi = []; + cMy(cSe)['forEach'](function(cSj, cFL) { + var cSl = !![]; + if (cFL === 0x0) { + var cSm = ![]; + cSl = cSj['reduce'](function(cSn, cSo) { + if (cSm) { + if (cMn(cSo)) { + switch (cSo['value']) { + case 'c' + doo(0xada) + 'r': + cSi['push'](cMN); + return cSn; + case doh(0x15b): + case 'l' + doo(0xadb) + 't': + cSi['push'](cMM); + return cSn; + case 'r' + doo(0xadc) + 't': + case 'b' + doo(0xadd) + 'm': + cSi['push'](cMO); + return cSn; + } + } else if (cMI(cSo) || cMG(cSo)) { + cSi['push'](cSo); + } + } else if (cMn(cSo)) { + switch (cSo[dol(0x12ff)]) { + case cS9: + cSf = cSK['CIRCLE']; + return ![]; + case cSa: + cSf = cSK['ELLIPSE']; + return ![]; + case doh(0x15c): + cSm = !![]; + return ![]; + case cS5: + cSg = cSM['CLOSEST_SIDE']; + return ![]; + case cSb: + case cS6: + cSg = cSM['FARTHEST_SIDE']; + return ![]; + case cSc: + case cS7: + cSg = cSM['CLOSEST_CORNER']; + return ![]; + case cS8: + cSg = cSM['FARTHEST_CORNER']; + return ![]; + } + } else if (cMG(cSo) || cMI(cSo)) { + if (!Array['isArray'](cSg)) { + cSg = []; + } + cSg['push'](cSo); + return ![]; + } + return cSn; + }, cSl); + } + if (cSl) { + var cSp = cOr(cSj); + cSh['push'](cSp); + } + }); + return { + 'size': cSg, + 'shape': cSf, + 'stops': cSh, + 'position': cSi, + 'type': cSE['RADIAL_GRADIENT'] + }; + }; + var cSq = function(cSr) { + var cSs = cSK[dol(0x1300)]; + var cSt = cSM['FARTHEST_CORNER']; + var cSu = []; + var cSv = []; + cMy(cSr)['forEach'](function(cSw, cFL) { + var cSy = !![]; + if (cFL === 0x0) { + cSy = cSw['reduce'](function(cSz, cSA) { + if (cMn(cSA)) { + switch (cSA['value']) { + case 'c' + doo(0xade) + 'r': + cSv['push'](cMN); + return ![]; + case doh(0x15d): + case 'l' + doo(0xadf) + 't': + cSv[dol(0x1301)](cMM); + return ![]; + case 'r' + doo(0xae0) + 't': + case 'b' + doo(0xae1) + 'm': + cSv['push'](cMO); + return ![]; + } + } else if (cMI(cSA) || cMG(cSA)) { + cSv['push'](cSA); + return ![]; + } + return cSz; + }, cSy); + } else if (cFL === 0x1) { + cSy = cSw['reduce'](function(cSB, cSC) { + if (cMn(cSC)) { + switch (cSC['value']) { + case cS9: + cSs = cSK[dol(0x1302)]; + return ![]; + case cSa: + cSs = cSK['ELLIPSE']; + return ![]; + case cSc: + case cS5: + cSt = cSM['CLOSEST_SIDE']; + return ![]; + case cS6: + cSt = cSM['FARTHEST_SIDE']; + return ![]; + case cS7: + cSt = cSM['CLOSEST_CORNER']; + return ![]; + case cSb: + case cS8: + cSt = cSM['FARTHEST_CORNER']; + return ![]; + } + } else if (cMG(cSC) || cMI(cSC)) { + if (!Array['isArray'](cSt)) { + cSt = []; + } + cSt['push'](cSC); + return ![]; + } + return cSB; + }, cSy); + } + if (cSy) { + var cSD = cOr(cSw); + cSu['push'](cSD); + } + }); + return { + 'size': cSt, + 'shape': cSs, + 'stops': cSu, + 'position': cSv, + 'type': cSE['RADIAL_GRADIENT'] + }; + }; + var cSE; + (function(cSE) { + cSE[cSE[doh(0x15e)] = 0x0] = doh(0x15f); + cSE[cSE['L' + doo(0xae2) + 'T'] = 0x1] = 'L' + doo(0xae3) + 'T'; + cSE[cSE['R' + doo(0xae4) + 'T'] = 0x2] = 'R' + doo(0xae5) + 'T'; + }(cSE || (cSE = {}))); + var cSG = function(cSH) { + return cSH[dol(0x1303)] === cSE['LINEAR_GRADIENT']; + }; + var cSI = function(cSJ) { + return cSJ['type'] === cSE['RADIAL_GRADIENT']; + }; + var cSK; + (function(cSK) { + cSK[cSK['C' + doo(0xae6) + 'E'] = 0x0] = 'C' + doo(0xae7) + 'E'; + cSK[cSK['E' + doo(0xae8) + 'E'] = 0x1] = 'E' + doo(0xae9) + 'E'; + }(cSK || (cSK = {}))); + var cSM; + (function(cSM) { + cSM[cSM['C' + doo(0xaea) + 'E'] = 0x0] = 'C' + doo(0xaeb) + 'E'; + cSM[cSM['F' + doo(0xaec) + 'E'] = 0x1] = 'F' + doo(0xaed) + 'E'; + cSM[cSM['C' + doo(0xaee) + 'R'] = 0x2] = 'C' + doo(0xaef) + 'R'; + cSM[cSM['F' + doo(0xaf0) + 'R'] = 0x3] = 'F' + doo(0xaf1) + 'R'; + }(cSM || (cSM = {}))); + var cSO = { + 'name': 'i' + doo(0xaf2) + 'e', + 'parse': function(cSP) { + if (cSP['type'] === cIU['URL_TOKEN']) { + var cSQ = { + 'url': cSP['value'], + 'type': cSE['URL'] + }; + cQW['getInstance']()['addImage'](cSP['value']); + return cSQ; + } + if (cSP[dol(0x1304)] === cIU['FUNCTION']) { + var cSR = cSU[cSP[dol(0x1305)]]; + if (typeof cSR === 'u' + doo(0xaf3) + 'd') { + throw new Error(doj(0x400) + cSP['name'] + '\x22'); + } + return cSR(cSP['values']); + } + throw new Error(doj(0x401)); + } + }; + function cSS(cST) { + return cST['type'] !== cIU['FUNCTION'] || cSU[cST['name']]; + } + var cSU = { + 'linear-gradient': cPD, + '-moz-linear-gradient': cPL, + '-ms-linear-gradient': cPL, + '-o-linear-gradient': cPL, + '-webkit-linear-gradient': cPL, + 'radial-gradient': cSd, + '-moz-radial-gradient': cSq, + '-ms-radial-gradient': cSq, + '-o-radial-gradient': cSq, + '-webkit-radial-gradient': cSq, + '-webkit-gradient': cRP + }; + var cSV = { + 'name': 'b' + doo(0xaf4) + 'e', + 'initialValue': 'n' + doo(0xaf5) + 'e', + 'type': cOj['LIST'], + 'prefix': ![], + 'parse': function(cSW) { + if (cSW['length'] === 0x0) { + return []; + } + var cSX = cSW[0x0]; + if (cSX['type'] === cIU[dol(0x1306)] && cSX['value'] === 'n' + doo(0xaf6) + 'e') { + return []; + } + return cSW['filter'](function(cSY) { + return cMw(cSY) && cSS(cSY); + })['map'](cSO['parse']); + } + }; + var cSZ = { + 'name': 'b' + doo(0xaf7) + 'n', + 'initialValue': 'b' + doo(0xaf8) + 'x', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cT0) { + return cT0['map'](function(cT1) { + if (cMn(cT1)) { + switch (cT1['value']) { + case 'p' + doo(0xaf9) + 'x': + return 0x1; + case 'c' + doo(0xafa) + 'x': + return 0x2; + } + } + return 0x0; + }); + } + }; + var cT2 = { + 'name': 'b' + doo(0xafb) + 'n', + 'initialValue': '0' + doo(0xafc) + '%', + 'type': cOj['LIST'], + 'prefix': ![], + 'parse': function(cT3) { + return cMy(cT3)['map'](function(cT4) { + return cT4['filter'](cMI); + })['map'](cMK); + } + }; + var cT5; + (function(cT5) { + cT5[cT5['R' + doo(0xafd) + 'T'] = 0x0] = 'R' + doo(0xafe) + 'T'; + cT5[cT5['N' + doo(0xaff) + 'T'] = 0x1] = 'N' + doo(0xb00) + 'T'; + cT5[cT5['R' + doo(0xb01) + 'X'] = 0x2] = 'R' + doo(0xb02) + 'X'; + cT5[cT5['R' + doo(0xb03) + 'Y'] = 0x3] = 'R' + doo(0xb04) + 'Y'; + }(cT5 || (cT5 = {}))); + var cT7 = { + 'name': 'b' + doo(0xb05) + 't', + 'initialValue': 'r' + doo(0xb06) + 't', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cT8) { + return cMy(cT8)['map'](function(cT9) { + return cT9['filter'](cMn)['map'](function(cTa) { + return cTa['value']; + })['join']('\x20'); + })['map'](cTb); + } + }; + var cTb = function(cTc) { + switch (cTc) { + case 'n' + doo(0xb07) + 't': + return cT5['NO_REPEAT']; + case 'r' + doo(0xb08) + 'x': + case 'r' + doo(0xb09) + 't': + return cT5[dol(0x1307)]; + case 'r' + doo(0xb0a) + 'y': + case 'n' + doo(0xb0b) + 't': + return cT5['REPEAT_Y']; + case 'r' + doo(0xb0c) + 't': + default: + return cT5['REPEAT']; + } + }; + var cTd; + (function(cTd) { + cTd['A' + doo(0xb0d) + 'O'] = 'a' + doo(0xb0e) + 'o'; + cTd['C' + doo(0xb0f) + 'N'] = 'c' + doo(0xb10) + 'n'; + cTd['C' + doo(0xb11) + 'R'] = 'c' + doo(0xb12) + 'r'; + }(cTd || (cTd = {}))); + var cTf = { + 'name': 'b' + doo(0xb13) + 'e', + 'initialValue': '0', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cTg) { + return cMy(cTg)['map'](function(cTh) { + return cTh['filter'](cTi); + }); + } + }; + var cTi = function(cTj) { + return cMn(cTj) || cMI(cTj); + }; + var cTk = function(cTl) { + return { + 'name': 'b' + doo(0xb14) + '-' + cTl + ('-' + doo(0xb15) + 'r'), + 'initialValue': 't' + doo(0xb16) + 't', + 'prefix': ![], + 'type': cOj['TYPE_VALUE'], + 'format': 'c' + doo(0xb17) + 'r' + }; + }; + var cTm = cTk(doh(0x160)); + var cTn = cTk('r' + doo(0xb18) + 't'); + var cTo = cTk('b' + doo(0xb19) + 'm'); + var cTp = cTk('l' + doo(0xb1a) + 't'); + var cTq = function(cTr) { + return { + 'name': 'b' + doo(0xb1b) + '-' + cTr, + 'initialValue': doh(0x161), + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cTs) { + return cMK(cTs['filter'](cMI)); + } + }; + }; + var cTt = cTq('t' + doo(0xb1c) + 't'); + var cTu = cTq('t' + doo(0xb1d) + 't'); + var cTv = cTq('b' + doo(0xb1e) + 't'); + var cTw = cTq('b' + doo(0xb1f) + 't'); + var cTx; + (function(cTx) { + cTx[cTx['N' + doo(0xb20) + 'E'] = 0x0] = 'N' + doo(0xb21) + 'E'; + cTx[cTx['S' + doo(0xb22) + 'D'] = 0x1] = 'S' + doo(0xb23) + 'D'; + }(cTx || (cTx = {}))); + var cTz = function(cTA) { + return { + 'name': 'b' + doo(0xb24) + '-' + cTA + ('-' + doo(0xb25) + 'e'), + 'initialValue': 's' + doo(0xb26) + 'd', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cTB) { + switch (cTB) { + case 'n' + doo(0xb27) + 'e': + return cTx['NONE']; + } + return cTx['SOLID']; + } + }; + }; + var cTC = cTz(doh(0x162)); + var cTD = cTz('r' + doo(0xb28) + 't'); + var cTE = cTz('b' + doo(0xb29) + 'm'); + var cTF = cTz('l' + doo(0xb2a) + 't'); + var cTG = function(cTH) { + return { + 'name': 'b' + doo(0xb2b) + '-' + cTH + ('-' + doo(0xb2c) + 'h'), + 'initialValue': '0', + 'type': cOj['VALUE'], + 'prefix': ![], + 'parse': function(cTI) { + if (cMj(cTI)) { + return cTI['number']; + } + return 0x0; + } + }; + }; + var cTJ = cTG(doh(0x163)); + var cTK = cTG('r' + doo(0xb2d) + 't'); + var cTL = cTG('b' + doo(0xb2e) + 'm'); + var cTM = cTG('l' + doo(0xb2f) + 't'); + var cTN = { + 'name': 'c' + doo(0xb30) + 'r', + 'initialValue': 't' + doo(0xb31) + 't', + 'prefix': ![], + 'type': cOj['TYPE_VALUE'], + 'format': 'c' + doo(0xb32) + 'r' + }; + var cTO = { + 'name': 'd' + doo(0xb33) + 'y', + 'initialValue': 'i' + doo(0xb34) + 'k', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cTP) { + return cTP['filter'](cMn)[dol(0x1308)](function(cTQ, cTR) { + return cTQ | cTS(cTR['value']); + }, 0x0); + } + }; + var cTS = function(cTO) { + switch (cTO) { + case 'b' + doo(0xb35) + 'k': + return 0x2; + case 'i' + doo(0xb36) + 'e': + return 0x4; + case 'r' + doo(0xb37) + 'n': + return 0x8; + case 'f' + doo(0xb38) + 'w': + return 0x10; + case 'f' + doo(0xb39) + 't': + return 0x20; + case 't' + doo(0xb3a) + 'e': + return 0x40; + case 'f' + doo(0xb3b) + 'x': + case '-' + doo(0xb3c) + 'x': + return 0x80; + case 'g' + doo(0xb3d) + 'd': + case '-' + doo(0xb3e) + 'd': + return 0x100; + case 'r' + doo(0xb3f) + 'y': + return 0x200; + case 's' + doo(0xb40) + 'd': + return 0x400; + case 'l' + doo(0xb41) + 'm': + return 0x800; + case 't' + doo(0xb42) + 'p': + return 0x1000; + case 't' + doo(0xb43) + 'p': + return 0x2000; + case 't' + doo(0xb44) + 'p': + return 0x4000; + case 't' + doo(0xb45) + 'w': + return 0x8000; + case 't' + doo(0xb46) + 'l': + return 0x10000; + case 't' + doo(0xb47) + 'p': + return 0x20000; + case 't' + doo(0xb48) + 'n': + return 0x40000; + case 't' + doo(0xb49) + 'n': + return 0x80000; + case 'r' + doo(0xb4a) + 'e': + return 0x100000; + case 'r' + doo(0xb4b) + 't': + return 0x200000; + case 'r' + doo(0xb4c) + 'r': + return 0x400000; + case 'r' + doo(0xb4d) + 'r': + return 0x800000; + case 'c' + doo(0xb4e) + 's': + return 0x1000000; + case 'i' + doo(0xb4f) + 'k': + return 0x2000000; + case 'i' + doo(0xb50) + 'm': + return 0x4000000; + case 'i' + doo(0xb51) + 'e': + return 0x8000000; + case 'i' + doo(0xb52) + 'x': + return 0x10000000; + case 'i' + doo(0xb53) + 'd': + return 0x20000000; + } + return 0x0; + }; + var cTU; + (function(cTU) { + cTU[cTU['N' + doo(0xb54) + 'E'] = 0x0] = 'N' + doo(0xb55) + 'E'; + cTU[cTU['L' + doo(0xb56) + 'T'] = 0x1] = 'L' + doo(0xb57) + 'T'; + cTU[cTU['R' + doo(0xb58) + 'T'] = 0x2] = 'R' + doo(0xb59) + 'T'; + cTU[cTU['I' + doo(0xb5a) + 'T'] = 0x3] = 'I' + doo(0xb5b) + 'T'; + cTU[cTU['I' + doo(0xb5c) + 'D'] = 0x4] = 'I' + doo(0xb5d) + 'D'; + }(cTU || (cTU = {}))); + var cTW = { + 'name': 'f' + doo(0xb5e) + 't', + 'initialValue': 'n' + doo(0xb5f) + 'e', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cTW) { + switch (cTW) { + case 'l' + doo(0xb60) + 't': + return cTU['LEFT']; + case 'r' + doo(0xb61) + 't': + return cTU['RIGHT']; + case 'i' + doo(0xb62) + 't': + return cTU['INLINE_START']; + case 'i' + doo(0xb63) + 'd': + return cTU['INLINE_END']; + } + return cTU['NONE']; + } + }; + var cTY = { + 'name': 'l' + doo(0xb64) + 'g', + 'initialValue': '0', + 'prefix': ![], + 'type': cOj['VALUE'], + 'parse': function(cTZ) { + if (cTZ[dol(0x1309)] === cIU['IDENT_TOKEN'] && cTZ['value'] === 'n' + doo(0xb65) + 'l') { + return 0x0; + } + if (cTZ['type'] === cIU['NUMBER_TOKEN']) { + return cTZ['number']; + } + if (cTZ['type'] === cIU['DIMENSION_TOKEN']) { + return cTZ['number']; + } + return 0x0; + } + }; + var cU0; + (function(cU0) { + cU0['N' + doo(0xb66) + 'L'] = 'n' + doo(0xb67) + 'l'; + cU0['S' + doo(0xb68) + 'T'] = 's' + doo(0xb69) + 't'; + }(cU0 || (cU0 = {}))); + var cU2 = { + 'name': 'l' + doo(0xb6a) + 'k', + 'initialValue': 'n' + doo(0xb6b) + 'l', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cU2) { + switch (cU2) { + case 's' + doo(0xb6c) + 't': + return cU0['STRICT']; + case 'n' + doo(0xb6d) + 'l': + default: + return cU0['NORMAL']; + } + } + }; + var cU4 = { + 'name': 'l' + doo(0xb6e) + 't', + 'initialValue': 'n' + doo(0xb6f) + 'l', + 'prefix': ![], + 'type': cOj['TOKEN_VALUE'] + }; + var cU5 = function(cU6, cU7) { + if (cMn(cU6) && cU6['value'] === 'n' + doo(0xb70) + 'l') { + return 1.2 * cU7; + } else if (cU6['type'] === cIU['NUMBER_TOKEN']) { + return cU7 * cU6['number']; + } else if (cMI(cU6)) { + return cMV(cU6, cU7); + } + return cU7; + }; + var cU8 = { + 'name': 'l' + doo(0xb71) + 'e', + 'initialValue': 'n' + doo(0xb72) + 'e', + 'type': cOj['VALUE'], + 'prefix': ![], + 'parse': function(cU9) { + if (cU9['type'] === cIU['IDENT_TOKEN'] && cU9['value'] === 'n' + doo(0xb73) + 'e') { + return null; + } + return cSO['parse'](cU9); + } + }; + var cUa; + (function(cUa) { + cUa[cUa['I' + doo(0xb74) + 'E'] = 0x0] = 'I' + doo(0xb75) + 'E'; + cUa[cUa['O' + doo(0xb76) + 'E'] = 0x1] = 'O' + doo(0xb77) + 'E'; + }(cUa || (cUa = {}))); + var cUc = { + 'name': 'l' + doo(0xb78) + 'n', + 'initialValue': 'o' + doo(0xb79) + 'e', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUd) { + switch (cUd) { + case 'i' + doo(0xb7a) + 'e': + return cUa['INSIDE']; + case 'o' + doo(0xb7b) + 'e': + default: + return cUa['OUTSIDE']; + } + } + }; + var cUe; + (function(cUe) { + cUe[cUe['N' + doo(0xb7c) + 'E'] = -0x1] = 'N' + doo(0xb7d) + 'E'; + cUe[cUe['D' + doo(0xb7e) + 'C'] = 0x0] = 'D' + doo(0xb7f) + 'C'; + cUe[cUe['C' + doo(0xb80) + 'E'] = 0x1] = 'C' + doo(0xb81) + 'E'; + cUe[cUe['S' + doo(0xb82) + 'E'] = 0x2] = 'S' + doo(0xb83) + 'E'; + cUe[cUe['D' + doo(0xb84) + 'L'] = 0x3] = 'D' + doo(0xb85) + 'L'; + cUe[cUe['C' + doo(0xb86) + 'L'] = 0x4] = 'C' + doo(0xb87) + 'L'; + cUe[cUe['D' + doo(0xb88) + 'O'] = 0x5] = 'D' + doo(0xb89) + 'O'; + cUe[cUe['L' + doo(0xb8a) + 'N'] = 0x6] = 'L' + doo(0xb8b) + 'N'; + cUe[cUe['U' + doo(0xb8c) + 'N'] = 0x7] = 'U' + doo(0xb8d) + 'N'; + cUe[cUe['L' + doo(0xb8e) + 'K'] = 0x8] = 'L' + doo(0xb8f) + 'K'; + cUe[cUe['L' + doo(0xb90) + 'A'] = 0x9] = 'L' + doo(0xb91) + 'A'; + cUe[cUe['U' + doo(0xb92) + 'A'] = 0xa] = 'U' + doo(0xb93) + 'A'; + cUe[cUe['A' + doo(0xb94) + 'C'] = 0xb] = 'A' + doo(0xb95) + 'C'; + cUe[cUe['A' + doo(0xb96) + 'N'] = 0xc] = 'A' + doo(0xb97) + 'N'; + cUe[cUe['B' + doo(0xb98) + 'I'] = 0xd] = 'B' + doo(0xb99) + 'I'; + cUe[cUe['C' + doo(0xb9a) + 'N'] = 0xe] = 'C' + doo(0xb9b) + 'N'; + cUe[cUe['C' + doo(0xb9c) + 'H'] = 0xf] = 'C' + doo(0xb9d) + 'H'; + cUe[cUe['C' + doo(0xb9e) + 'M'] = 0x10] = 'C' + doo(0xb9f) + 'M'; + cUe[cUe['C' + doo(0xba0) + 'C'] = 0x11] = 'C' + doo(0xba1) + 'C'; + cUe[cUe['D' + doo(0xba2) + 'I'] = 0x12] = 'D' + doo(0xba3) + 'I'; + cUe[cUe['E' + doo(0xba4) + 'C'] = 0x13] = 'E' + doo(0xba5) + 'C'; + cUe[cUe['G' + doo(0xba6) + 'N'] = 0x14] = 'G' + doo(0xba7) + 'N'; + cUe[cUe['G' + doo(0xba8) + 'I'] = 0x15] = 'G' + doo(0xba9) + 'I'; + cUe[cUe['G' + doo(0xbaa) + 'I'] = 0x16] = 'G' + doo(0xbab) + 'I'; + cUe[cUe['H' + doo(0xbac) + 'W'] = 0x16] = 'H' + doo(0xbad) + 'W'; + cUe[cUe['H' + doo(0xbae) + 'A'] = 0x17] = 'H' + doo(0xbaf) + 'A'; + cUe[cUe['H' + doo(0xbb0) + 'A'] = 0x18] = 'H' + doo(0xbb1) + 'A'; + cUe[cUe['J' + doo(0xbb2) + 'L'] = 0x19] = 'J' + doo(0xbb3) + 'L'; + cUe[cUe['J' + doo(0xbb4) + 'L'] = 0x1a] = 'J' + doo(0xbb5) + 'L'; + cUe[cUe['K' + doo(0xbb6) + 'A'] = 0x1b] = 'K' + doo(0xbb7) + 'A'; + cUe[cUe['K' + doo(0xbb8) + 'A'] = 0x1c] = 'K' + doo(0xbb9) + 'A'; + cUe[cUe['K' + doo(0xbba) + 'A'] = 0x1d] = 'K' + doo(0xbbb) + 'A'; + cUe[cUe['K' + doo(0xbbc) + 'R'] = 0x1e] = 'K' + doo(0xbbd) + 'R'; + cUe[cUe['K' + doo(0xbbe) + 'L'] = 0x1f] = 'K' + doo(0xbbf) + 'L'; + cUe[cUe['K' + doo(0xbc0) + 'L'] = 0x20] = 'K' + doo(0xbc1) + 'L'; + cUe[cUe[doj(0x402)] = 0x21] = doj(0x403); + cUe[cUe[doh(0x164)] = 0x22] = doh(0x165); + cUe[cUe['L' + doo(0xbc2) + 'N'] = 0x23] = 'L' + doo(0xbc3) + 'N'; + cUe[cUe['M' + doo(0xbc4) + 'M'] = 0x24] = 'M' + doo(0xbc5) + 'M'; + cUe[cUe['M' + doo(0xbc6) + 'N'] = 0x25] = 'M' + doo(0xbc7) + 'N'; + cUe[cUe['M' + doo(0xbc8) + 'R'] = 0x26] = 'M' + doo(0xbc9) + 'R'; + cUe[cUe['O' + doo(0xbca) + 'A'] = 0x27] = 'O' + doo(0xbcb) + 'A'; + cUe[cUe['P' + doo(0xbcc) + 'N'] = 0x28] = 'P' + doo(0xbcd) + 'N'; + cUe[cUe['S' + doo(0xbce) + 'L'] = 0x29] = 'S' + doo(0xbcf) + 'L'; + cUe[cUe[doj(0x404)] = 0x2a] = doj(0x405); + cUe[cUe['T' + doo(0xbd0) + 'L'] = 0x2b] = 'T' + doo(0xbd1) + 'L'; + cUe[cUe['T' + doo(0xbd2) + 'U'] = 0x2c] = 'T' + doo(0xbd3) + 'U'; + cUe[cUe['T' + doo(0xbd4) + 'I'] = 0x2d] = 'T' + doo(0xbd5) + 'I'; + cUe[cUe['T' + doo(0xbd6) + 'N'] = 0x2e] = 'T' + doo(0xbd7) + 'N'; + cUe[cUe['T' + doo(0xbd8) + 'L'] = 0x2f] = 'T' + doo(0xbd9) + 'L'; + cUe[cUe[doj(0x406)] = 0x30] = doj(0x407); + cUe[cUe['U' + doo(0xbda) + 'N'] = 0x31] = 'U' + doo(0xbdb) + 'N'; + cUe[cUe['D' + doo(0xbdc) + 'N'] = 0x32] = 'D' + doo(0xbdd) + 'N'; + cUe[cUe['D' + doo(0xbde) + 'D'] = 0x33] = 'D' + doo(0xbdf) + 'D'; + }(cUe || (cUe = {}))); + var cUg = { + 'name': 'l' + doo(0xbe0) + 'e', + 'initialValue': 'n' + doo(0xbe1) + 'e', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUh) { + switch (cUh) { + case 'd' + doo(0xbe2) + 'c': + return cUe['DISC']; + case 'c' + doo(0xbe3) + 'e': + return cUe['CIRCLE']; + case 's' + doo(0xbe4) + 'e': + return cUe['SQUARE']; + case 'd' + doo(0xbe5) + 'l': + return cUe['DECIMAL']; + case 'c' + doo(0xbe6) + 'l': + return cUe['CJK_DECIMAL']; + case 'd' + doo(0xbe7) + 'o': + return cUe['DECIMAL_LEADING_ZERO']; + case 'l' + doo(0xbe8) + 'n': + return cUe['LOWER_ROMAN']; + case 'u' + doo(0xbe9) + 'n': + return cUe['UPPER_ROMAN']; + case 'l' + doo(0xbea) + 'k': + return cUe['LOWER_GREEK']; + case 'l' + doo(0xbeb) + 'a': + return cUe[dol(0x130a)]; + case 'u' + doo(0xbec) + 'a': + return cUe['UPPER_ALPHA']; + case 'a' + doo(0xbed) + 'c': + return cUe['ARABIC_INDIC']; + case 'a' + doo(0xbee) + 'n': + return cUe['ARMENIAN']; + case 'b' + doo(0xbef) + 'i': + return cUe['BENGALI']; + case 'c' + doo(0xbf0) + 'n': + return cUe['CAMBODIAN']; + case 'c' + doo(0xbf1) + 'h': + return cUe['CJK_EARTHLY_BRANCH']; + case 'c' + doo(0xbf2) + 'm': + return cUe['CJK_HEAVENLY_STEM']; + case 'c' + doo(0xbf3) + 'c': + return cUe['CJK_IDEOGRAPHIC']; + case 'd' + doo(0xbf4) + 'i': + return cUe['DEVANAGARI']; + case 'e' + doo(0xbf5) + 'c': + return cUe['ETHIOPIC_NUMERIC']; + case 'g' + doo(0xbf6) + 'n': + return cUe['GEORGIAN']; + case 'g' + doo(0xbf7) + 'i': + return cUe['GUJARATI']; + case 'g' + doo(0xbf8) + 'i': + return cUe['GURMUKHI']; + case 'h' + doo(0xbf9) + 'w': + return cUe['HEBREW']; + case 'h' + doo(0xbfa) + 'a': + return cUe['HIRAGANA']; + case 'h' + doo(0xbfb) + 'a': + return cUe['HIRAGANA_IROHA']; + case 'j' + doo(0xbfc) + 'l': + return cUe['JAPANESE_FORMAL']; + case 'j' + doo(0xbfd) + 'l': + return cUe['JAPANESE_INFORMAL']; + case 'k' + doo(0xbfe) + 'a': + return cUe[dol(0x130b)]; + case 'k' + doo(0xbff) + 'a': + return cUe['KATAKANA']; + case 'k' + doo(0xc00) + 'a': + return cUe['KATAKANA_IROHA']; + case 'k' + doo(0xc01) + 'r': + return cUe['KHMER']; + case 'k' + doo(0xc02) + 'l': + return cUe['KOREAN_HANGUL_FORMAL']; + case 'k' + doo(0xc03) + 'l': + return cUe['KOREAN_HANJA_FORMAL']; + case doj(0x408): + return cUe['KOREAN_HANJA_INFORMAL']; + case doh(0x166): + return cUe['LAO']; + case 'l' + doo(0xc04) + 'n': + return cUe['LOWER_ARMENIAN']; + case 'm' + doo(0xc05) + 'm': + return cUe['MALAYALAM']; + case 'm' + doo(0xc06) + 'n': + return cUe['MONGOLIAN']; + case 'm' + doo(0xc07) + 'r': + return cUe['MYANMAR']; + case 'o' + doo(0xc08) + 'a': + return cUe['ORIYA']; + case 'p' + doo(0xc09) + 'n': + return cUe['PERSIAN']; + case 's' + doo(0xc0a) + 'l': + return cUe['SIMP_CHINESE_FORMAL']; + case doj(0x409): + return cUe['SIMP_CHINESE_INFORMAL']; + case 't' + doo(0xc0b) + 'l': + return cUe['TAMIL']; + case 't' + doo(0xc0c) + 'u': + return cUe['TELUGU']; + case 't' + doo(0xc0d) + 'i': + return cUe['THAI']; + case 't' + doo(0xc0e) + 'n': + return cUe['TIBETAN']; + case 't' + doo(0xc0f) + 'l': + return cUe['TRAD_CHINESE_FORMAL']; + case doj(0x40a): + return cUe['TRAD_CHINESE_INFORMAL']; + case 'u' + doo(0xc10) + 'n': + return cUe['UPPER_ARMENIAN']; + case 'd' + doo(0xc11) + 'n': + return cUe['DISCLOSURE_OPEN']; + case 'd' + doo(0xc12) + 'd': + return cUe['DISCLOSURE_CLOSED']; + case 'n' + doo(0xc13) + 'e': + default: + return cUe['NONE']; + } + } + }; + var cUi = function(cUj) { + return { + 'name': 'm' + doo(0xc14) + '-' + cUj, + 'initialValue': '0', + 'prefix': ![], + 'type': cOj['TOKEN_VALUE'] + }; + }; + var cUk = cUi(doh(0x167)); + var cUl = cUi('r' + doo(0xc15) + 't'); + var cUm = cUi('b' + doo(0xc16) + 'm'); + var cUn = cUi('l' + doo(0xc17) + 't'); + var cUo; + (function(cUo) { + cUo[cUo['V' + doo(0xc18) + 'E'] = 0x0] = 'V' + doo(0xc19) + 'E'; + cUo[cUo['H' + doo(0xc1a) + 'N'] = 0x1] = 'H' + doo(0xc1b) + 'N'; + cUo[cUo['S' + doo(0xc1c) + 'L'] = 0x2] = 'S' + doo(0xc1d) + 'L'; + cUo[cUo['A' + doo(0xc1e) + 'O'] = 0x3] = 'A' + doo(0xc1f) + 'O'; + }(cUo || (cUo = {}))); + var cUq = { + 'name': 'o' + doo(0xc20) + 'w', + 'initialValue': 'v' + doo(0xc21) + 'e', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cUr) { + return cUr['filter'](cMn)[dol(0x130c)](function(cUq) { + switch (cUq['value']) { + case 'h' + doo(0xc22) + 'n': + return cUo['HIDDEN']; + case 's' + doo(0xc23) + 'l': + return cUo['SCROLL']; + case 'a' + doo(0xc24) + 'o': + return cUo['AUTO']; + case 'v' + doo(0xc25) + 'e': + default: + return cUo['VISIBLE']; + } + }); + } + }; + var cUt; + (function(cUt) { + cUt['N' + doo(0xc26) + 'L'] = 'n' + doo(0xc27) + 'l'; + cUt['B' + doo(0xc28) + 'D'] = 'b' + doo(0xc29) + 'd'; + }(cUt || (cUt = {}))); + var cUv = { + 'name': 'o' + doo(0xc2a) + 'p', + 'initialValue': 'n' + doo(0xc2b) + 'l', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUq) { + switch (cUq) { + case 'b' + doo(0xc2c) + 'd': + return cUt[dol(0x130d)]; + case 'n' + doo(0xc2d) + 'l': + default: + return cUt['NORMAL']; + } + } + }; + var cUx = function(cUy) { + return { + 'name': 'p' + doo(0xc2e) + '-' + cUy, + 'initialValue': '0', + 'prefix': ![], + 'type': cOj['TYPE_VALUE'], + 'format': 'l' + doo(0xc2f) + 'e' + }; + }; + var cUz = cUx(doh(0x168)); + var cUA = cUx('r' + doo(0xc30) + 't'); + var cUB = cUx('b' + doo(0xc31) + 'm'); + var cUC = cUx('l' + doo(0xc32) + 't'); + var cUD; + (function(cUD) { + cUD[cUD['L' + doo(0xc33) + 'T'] = 0x0] = 'L' + doo(0xc34) + 'T'; + cUD[cUD['C' + doo(0xc35) + 'R'] = 0x1] = 'C' + doo(0xc36) + 'R'; + cUD[cUD['R' + doo(0xc37) + 'T'] = 0x2] = 'R' + doo(0xc38) + 'T'; + }(cUD || (cUD = {}))); + var cUF = { + 'name': 't' + doo(0xc39) + 'n', + 'initialValue': 'l' + doo(0xc3a) + 't', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUF) { + switch (cUF) { + case 'r' + doo(0xc3b) + 't': + return cUD['RIGHT']; + case 'c' + doo(0xc3c) + 'r': + case 'j' + doo(0xc3d) + 'y': + return cUD['CENTER']; + case 'l' + doo(0xc3e) + 't': + default: + return cUD['LEFT']; + } + } + }; + var cUH; + (function(cUH) { + cUH[cUH['S' + doo(0xc3f) + 'C'] = 0x0] = 'S' + doo(0xc40) + 'C'; + cUH[cUH['R' + doo(0xc41) + 'E'] = 0x1] = 'R' + doo(0xc42) + 'E'; + cUH[cUH['A' + doo(0xc43) + 'E'] = 0x2] = 'A' + doo(0xc44) + 'E'; + cUH[cUH['F' + doo(0xc45) + 'D'] = 0x3] = 'F' + doo(0xc46) + 'D'; + cUH[cUH['S' + doo(0xc47) + 'Y'] = 0x4] = 'S' + doo(0xc48) + 'Y'; + }(cUH || (cUH = {}))); + var cUJ = { + 'name': 'p' + doo(0xc49) + 'n', + 'initialValue': 's' + doo(0xc4a) + 'c', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUJ) { + switch (cUJ) { + case 'r' + doo(0xc4b) + 'e': + return cUH['RELATIVE']; + case 'a' + doo(0xc4c) + 'e': + return cUH['ABSOLUTE']; + case 'f' + doo(0xc4d) + 'd': + return cUH['FIXED']; + case 's' + doo(0xc4e) + 'y': + return cUH['STICKY']; + } + return cUH['STATIC']; + } + }; + var cUL = { + 'name': 't' + doo(0xc4f) + 'w', + 'initialValue': 'n' + doo(0xc50) + 'e', + 'type': cOj['LIST'], + 'prefix': ![], + 'parse': function(cUM) { + if (cUM['length'] === 0x1 && cMr(cUM[0x0], 'n' + doo(0xc51) + 'e')) { + return []; + } + return cMy(cUM)['map'](function(cUN) { + var cUO = { + 'color': cOi['TRANSPARENT'], + 'offsetX': cMM, + 'offsetY': cMM, + 'blur': cMM + }; + var cUP = 0x0; + for (var cFL = 0x0; cFL < cUN[dol(0x130e)]; cFL++) { + var cUR = cUN[cFL]; + if (cMG(cUR)) { + if (cUP === 0x0) { + cUO['offsetX'] = cUR; + } else if (cUP === 0x1) { + cUO['offsetY'] = cUR; + } else { + cUO[dol(0x130f)] = cUR; + } + cUP++; + } else { + cUO['color'] = cNc['parse'](cUR); + } + } + return cUO; + }); + } + }; + var cUS; + (function(cUS) { + cUS[cUS['N' + doo(0xc52) + 'E'] = 0x0] = 'N' + doo(0xc53) + 'E'; + cUS[cUS['L' + doo(0xc54) + 'E'] = 0x1] = 'L' + doo(0xc55) + 'E'; + cUS[cUS['U' + doo(0xc56) + 'E'] = 0x2] = 'U' + doo(0xc57) + 'E'; + cUS[cUS['C' + doo(0xc58) + 'E'] = 0x3] = 'C' + doo(0xc59) + 'E'; + }(cUS || (cUS = {}))); + var cUU = { + 'name': 't' + doo(0xc5a) + 'm', + 'initialValue': 'n' + doo(0xc5b) + 'e', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUU) { + switch (cUU) { + case 'u' + doo(0xc5c) + 'e': + return cUS['UPPERCASE']; + case 'l' + doo(0xc5d) + 'e': + return cUS['LOWERCASE']; + case 'c' + doo(0xc5e) + 'e': + return cUS['CAPITALIZE']; + } + return cUS['NONE']; + } + }; + var cUW = { + 'name': 't' + doo(0xc5f) + 'm', + 'initialValue': 'n' + doo(0xc60) + 'e', + 'prefix': !![], + 'type': cOj['VALUE'], + 'parse': function(cUX) { + if (cUX['type'] === cIU['IDENT_TOKEN'] && cUX['value'] === 'n' + doo(0xc61) + 'e') { + return null; + } + if (cUX['type'] === cIU['FUNCTION']) { + var cUY = cVp[cUX['name']]; + if (typeof cUY === 'u' + doo(0xc62) + 'd') { + throw new Error(doj(0x40b) + cUX['name'] + '\x22'); + } + return cUY(cUX['values']); + } + return null; + } + }; + var cUZ = function(cV0) { + var cV1 = cV0['filter'](function(cV2) { + return cV2['type'] === cIU[dol(0x1310)]; + })['map'](function(cV3) { + return cV3['number']; + }); + return cV1['length'] === 0x6 ? cV1 : null; + }; + var cV4 = function(cV5) { + var cV6 = cV5['filter'](function(cV7) { + return cV7['type'] === cIU['NUMBER_TOKEN']; + })[dol(0x1311)](function(cV8) { + return cV8['number']; + }); + var cV9 = cV6[0x0] + , cVa = cV6[0x1] + , cVb = cV6[0x2] + , cVc = cV6[0x3] + , cVd = cV6[0x4] + , cVe = cV6[0x5] + , cVf = cV6[0x6] + , cVg = cV6[0x7] + , cVh = cV6[0x8] + , cVi = cV6[0x9] + , cVj = cV6[0xa] + , cVk = cV6[0xb] + , cVl = cV6[0xc] + , cVm = cV6[0xd] + , cVn = cV6[0xe] + , cVo = cV6[0xf]; + return cV6['length'] === 0x10 ? [cV9, cVa, cVd, cVe, cVl, cVm] : null; + }; + var cVp = { + 'matrix': cUZ, + 'matrix3d': cV4 + }; + var cVq = { + 'type': cIU['PERCENTAGE_TOKEN'], + 'number': 0x32, + 'flags': cIY + }; + var cVr = [cVq, cVq]; + var cVs = { + 'name': 't' + doo(0xc63) + 'n', + 'initialValue': '5' + doo(0xc64) + '%', + 'prefix': !![], + 'type': cOj['LIST'], + 'parse': function(cVt) { + var cVu = cVt['filter'](cMI); + if (cVu['length'] !== 0x2) { + return cVr; + } + return [cVu[0x0], cVu[0x1]]; + } + }; + var cVv; + (function(cVv) { + cVv[cVv['V' + doo(0xc65) + 'E'] = 0x0] = 'V' + doo(0xc66) + 'E'; + cVv[cVv['H' + doo(0xc67) + 'N'] = 0x1] = 'H' + doo(0xc68) + 'N'; + cVv[cVv['C' + doo(0xc69) + 'E'] = 0x2] = 'C' + doo(0xc6a) + 'E'; + }(cVv || (cVv = {}))); + var cVx = { + 'name': 'v' + doo(0xc6b) + 'e', + 'initialValue': 'n' + doo(0xc6c) + 'e', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cVx) { + switch (cVx) { + case 'h' + doo(0xc6d) + 'n': + return cVv['HIDDEN']; + case 'c' + doo(0xc6e) + 'e': + return cVv['COLLAPSE']; + case 'v' + doo(0xc6f) + 'e': + default: + return cVv[dol(0x1312)]; + } + } + }; + var cVz; + (function(cVz) { + cVz['N' + doo(0xc70) + 'L'] = 'n' + doo(0xc71) + 'l'; + cVz['B' + doo(0xc72) + 'L'] = 'b' + doo(0xc73) + 'l'; + cVz['K' + doo(0xc74) + 'L'] = 'k' + doo(0xc75) + 'l'; + }(cVz || (cVz = {}))); + var cVB = { + 'name': 'w' + doo(0xc76) + 'k', + 'initialValue': 'n' + doo(0xc77) + 'l', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cVB) { + switch (cVB) { + case 'b' + doo(0xc78) + 'l': + return cVz['BREAK_ALL']; + case 'k' + doo(0xc79) + 'l': + return cVz['KEEP_ALL']; + case 'n' + doo(0xc7a) + 'l': + default: + return cVz['NORMAL']; + } + } + }; + var cVD = { + 'name': 'z' + doo(0xc7b) + 'x', + 'initialValue': 'a' + doo(0xc7c) + 'o', + 'prefix': ![], + 'type': cOj['VALUE'], + 'parse': function(cVE) { + if (cVE[dol(0x1313)] === cIU['IDENT_TOKEN']) { + return { + 'auto': !![], + 'order': 0x0 + }; + } + if (cMl(cVE)) { + return { + 'auto': ![], + 'order': cVE['number'] + }; + } + throw new Error(doj(0x40c)); + } + }; + var cVF = { + 'name': 'o' + doo(0xc7d) + 'y', + 'initialValue': '1', + 'type': cOj['VALUE'], + 'prefix': ![], + 'parse': function(cVG) { + if (cMl(cVG)) { + return cVG['number']; + } + return 0x1; + } + }; + var cVH = { + 'name': doj(0x40d), + 'initialValue': 't' + doo(0xc7e) + 't', + 'prefix': ![], + 'type': cOj['TYPE_VALUE'], + 'format': 'c' + doo(0xc7f) + 'r' + }; + var cVI = { + 'name': 't' + doo(0xc80) + 'e', + 'initialValue': 'n' + doo(0xc81) + 'e', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cVJ) { + return cVJ['filter'](cMn)['map'](function(cVK) { + switch (cVK['value']) { + case 'u' + doo(0xc82) + 'e': + return 0x1; + case 'o' + doo(0xc83) + 'e': + return 0x2; + case 'l' + doo(0xc84) + 'h': + return 0x3; + case 'n' + doo(0xc85) + 'e': + return 0x4; + } + return 0x0; + })['filter'](function(cVL) { + return cVL !== 0x0; + }); + } + }; + var cVM = { + 'name': 'f' + doo(0xc86) + 'y', + 'initialValue': '', + 'prefix': ![], + 'type': cOj['LIST'], + 'parse': function(cVN) { + var cVO = []; + var cVP = []; + cVN['forEach'](function(cVQ) { + switch (cVQ['type']) { + case cIU[dol(0x1314)]: + case cIU['STRING_TOKEN']: + cVO['push'](cVQ[dol(0x1315)]); + break; + case cIU['NUMBER_TOKEN']: + cVO['push'](cVQ['number']['toString']()); + break; + case cIU['COMMA_TOKEN']: + cVP['push'](cVO['join']('\x20')); + cVO['length'] = 0x0; + break; + } + }); + if (cVO['length']) { + cVP['push'](cVO[dol(0x1316)]('\x20')); + } + return cVP[dol(0x1317)](function(cVR) { + return cVR['indexOf']('\x20') === -0x1 ? cVR : '\x27' + cVR + '\x27'; + }); + } + }; + var cVS = { + 'name': 'f' + doo(0xc87) + 'e', + 'initialValue': '0', + 'prefix': ![], + 'type': cOj['TYPE_VALUE'], + 'format': 'l' + doo(0xc88) + 'h' + }; + var cVT = { + 'name': 'f' + doo(0xc89) + 't', + 'initialValue': 'n' + doo(0xc8a) + 'l', + 'type': cOj['VALUE'], + 'prefix': ![], + 'parse': function(cVU) { + if (cMl(cVU)) { + return cVU['number']; + } + if (cMn(cVU)) { + switch (cVU['value']) { + case 'b' + doo(0xc8b) + 'd': + return 0x2bc; + case 'n' + doo(0xc8c) + 'l': + default: + return 0x190; + } + } + return 0x190; + } + }; + var cVV = { + 'name': 'f' + doo(0xc8d) + 't', + 'initialValue': 'n' + doo(0xc8e) + 'e', + 'type': cOj['LIST'], + 'prefix': ![], + 'parse': function(cVW) { + return cVW['filter'](cMn)['map'](function(cVX) { + return cVX['value']; + }); + } + }; + var cVY; + (function(cVY) { + cVY['N' + doo(0xc8f) + 'L'] = 'n' + doo(0xc90) + 'l'; + cVY['I' + doo(0xc91) + 'C'] = 'i' + doo(0xc92) + 'c'; + cVY['O' + doo(0xc93) + 'E'] = 'o' + doo(0xc94) + 'e'; + }(cVY || (cVY = {}))); + var cW0 = { + 'name': 'f' + doo(0xc95) + 'e', + 'initialValue': 'n' + doo(0xc96) + 'l', + 'prefix': ![], + 'type': cOj['IDENT_VALUE'], + 'parse': function(cUq) { + switch (cUq) { + case 'o' + doo(0xc97) + 'e': + return cVY['OBLIQUE']; + case 'i' + doo(0xc98) + 'c': + return cVY['ITALIC']; + case 'n' + doo(0xc99) + 'l': + default: + return cVY['NORMAL']; + } + } + }; + var cW2 = function(cW3, cW4) { + return (cW3 & cW4) !== 0x0; + }; + var cW5 = { + 'name': 'c' + doo(0xc9a) + 't', + 'initialValue': 'n' + doo(0xc9b) + 'e', + 'type': cOj['LIST'], + 'prefix': ![], + 'parse': function(cW6) { + if (cW6[dol(0x1318)] === 0x0) { + return []; + } + var cW7 = cW6[0x0]; + if (cW7['type'] === cIU['IDENT_TOKEN'] && cW7['value'] === 'n' + doo(0xc9c) + 'e') { + return []; + } + return cW6; + } + }; + var cW8 = { + 'name': 'c' + doo(0xc9d) + 't', + 'initialValue': 'n' + doo(0xc9e) + 'e', + 'prefix': !![], + 'type': cOj['LIST'], + 'parse': function(cW9) { + if (cW9['length'] === 0x0) { + return null; + } + var cWa = cW9[0x0]; + if (cWa['type'] === cIU['IDENT_TOKEN'] && cWa['value'] === 'n' + doo(0xc9f) + 'e') { + return null; + } + var cWb = []; + var cWc = cW9['filter'](cMu); + for (var cFL = 0x0; cFL < cWc['length']; cFL++) { + var cWe = cWc[cFL]; + var cWf = cWc[cFL + 0x1]; + if (cWe['type'] === cIU[dol(0x1319)]) { + var cWg = cWf && cMl(cWf) ? cWf['number'] : 0x1; + cWb['push']({ + 'counter': cWe['value'], + 'increment': cWg + }); + } + } + return cWb; + } + }; + var cWh = { + 'name': 'c' + doo(0xca0) + 't', + 'initialValue': 'n' + doo(0xca1) + 'e', + 'prefix': !![], + 'type': cOj['LIST'], + 'parse': function(cWi) { + if (cWi['length'] === 0x0) { + return []; + } + var cWj = []; + var cWk = cWi[dol(0x131a)](cMu); + for (var cFL = 0x0; cFL < cWk['length']; cFL++) { + var cWm = cWk[cFL]; + var cWn = cWk[cFL + 0x1]; + if (cMn(cWm) && cWm['value'] !== 'n' + doo(0xca2) + 'e') { + var cWo = cWn && cMl(cWn) ? cWn['number'] : 0x0; + cWj['push']({ + 'counter': cWm['value'], + 'reset': cWo + }); + } + } + return cWj; + } + }; + var cWp = { + 'name': 'q' + doo(0xca3) + 's', + 'initialValue': 'n' + doo(0xca4) + 'e', + 'prefix': !![], + 'type': cOj['LIST'], + 'parse': function(cWq) { + if (cWq['length'] === 0x0) { + return null; + } + var cWr = cWq[0x0]; + if (cWr['type'] === cIU['IDENT_TOKEN'] && cWr['value'] === 'n' + doo(0xca5) + 'e') { + return null; + } + var cWp = []; + var cWt = cWq['filter'](cMp); + if (cWt['length'] % 0x2 !== 0x0) { + return null; + } + for (var cFL = 0x0; cFL < cWt['length']; cFL += 0x2) { + var cWv = cWt[cFL]['value']; + var cWw = cWt[cFL + 0x1]['value']; + cWp['push']({ + 'open': cWv, + 'close': cWw + }); + } + return cWp; + } + }; + var cWx = function(cWp, cWz, cWA) { + if (!cWp) { + return ''; + } + var cWB = cWp[Math['min'](cWz, cWp['length'] - 0x1)]; + if (!cWB) { + return ''; + } + return cWA ? cWB['open'] : cWB['close']; + }; + var cWC = { + 'name': 'b' + doo(0xca6) + 'w', + 'initialValue': 'n' + doo(0xca7) + 'e', + 'type': cOj['LIST'], + 'prefix': ![], + 'parse': function(cWD) { + if (cWD['length'] === 0x1 && cMr(cWD[0x0], 'n' + doo(0xca8) + 'e')) { + return []; + } + return cMy(cWD)['map'](function(cWE) { + var cWF = { + 'color': 0xff, + 'offsetX': cMM, + 'offsetY': cMM, + 'blur': cMM, + 'spread': cMM, + 'inset': ![] + }; + var cWG = 0x0; + for (var cFL = 0x0; cFL < cWE['length']; cFL++) { + var cWI = cWE[cFL]; + if (cMr(cWI, 'i' + doo(0xca9) + 't')) { + cWF['inset'] = !![]; + } else if (cMG(cWI)) { + if (cWG === 0x0) { + cWF['offsetX'] = cWI; + } else if (cWG === 0x1) { + cWF[dol(0x131b)] = cWI; + } else if (cWG === 0x2) { + cWF[dol(0x131c)] = cWI; + } else { + cWF[dol(0x131d)] = cWI; + } + cWG++; + } else { + cWF['color'] = cNc['parse'](cWI); + } + } + return cWF; + }); + } + }; + var cWJ = function() { + function cWJ(cWL) { + this['backgroundClip'] = cWT(cOn, cWL['backgroundClip']); + this['backgroundColor'] = cWT(cOq, cWL['backgroundColor']); + this['backgroundImage'] = cWT(cSV, cWL['backgroundImage']); + this['backgroundOrigin'] = cWT(cSZ, cWL[dol(0x131e)]); + this['backgroundPosition'] = cWT(cT2, cWL['backgroundPosition']); + this['backgroundRepeat'] = cWT(cT7, cWL['backgroundRepeat']); + this['backgroundSize'] = cWT(cTf, cWL['backgroundSize']); + this['borderTopColor'] = cWT(cTm, cWL['borderTopColor']); + this['borderRightColor'] = cWT(cTn, cWL[dol(0x131f)]); + this['borderBottomColor'] = cWT(cTo, cWL['borderBottomColor']); + this['borderLeftColor'] = cWT(cTp, cWL['borderLeftColor']); + this['borderTopLeftRadius'] = cWT(cTt, cWL['borderTopLeftRadius']); + this['borderTopRightRadius'] = cWT(cTu, cWL[dol(0x1320)]); + this['borderBottomRightRadius'] = cWT(cTv, cWL['borderBottomRightRadius']); + this['borderBottomLeftRadius'] = cWT(cTw, cWL['borderBottomLeftRadius']); + this['borderTopStyle'] = cWT(cTC, cWL[dol(0x1321)]); + this['borderRightStyle'] = cWT(cTD, cWL['borderRightStyle']); + this['borderBottomStyle'] = cWT(cTE, cWL['borderBottomStyle']); + this['borderLeftStyle'] = cWT(cTF, cWL[dol(0x1322)]); + this['borderTopWidth'] = cWT(cTJ, cWL['borderTopWidth']); + this['borderRightWidth'] = cWT(cTK, cWL['borderRightWidth']); + this['borderBottomWidth'] = cWT(cTL, cWL['borderBottomWidth']); + this['borderLeftWidth'] = cWT(cTM, cWL['borderLeftWidth']); + this['boxShadow'] = cWT(cWC, cWL['boxShadow']); + this['color'] = cWT(cTN, cWL['color']); + this['display'] = cWT(cTO, cWL['display']); + this['float'] = cWT(cTW, cWL['cssFloat']); + this['fontFamily'] = cWT(cVM, cWL['fontFamily']); + this['fontSize'] = cWT(cVS, cWL['fontSize']); + this['fontStyle'] = cWT(cW0, cWL['fontStyle']); + this['fontVariant'] = cWT(cVV, cWL['fontVariant']); + this['fontWeight'] = cWT(cVT, cWL['fontWeight']); + this['letterSpacing'] = cWT(cTY, cWL[dol(0x1323)]); + this['lineBreak'] = cWT(cU2, cWL['lineBreak']); + this['lineHeight'] = cWT(cU4, cWL['lineHeight']); + this['listStyleImage'] = cWT(cU8, cWL['listStyleImage']); + this['listStylePosition'] = cWT(cUc, cWL['listStylePosition']); + this['listStyleType'] = cWT(cUg, cWL['listStyleType']); + this['marginTop'] = cWT(cUk, cWL[dol(0x1324)]); + this['marginRight'] = cWT(cUl, cWL['marginRight']); + this['marginBottom'] = cWT(cUm, cWL['marginBottom']); + this['marginLeft'] = cWT(cUn, cWL[dol(0x1325)]); + this['opacity'] = cWT(cVF, cWL['opacity']); + var cWM = cWT(cUq, cWL['overflow']); + this['overflowX'] = cWM[0x0]; + this['overflowY'] = cWM[cWM['length'] > 0x1 ? 0x1 : 0x0]; + this['overflowWrap'] = cWT(cUv, cWL['overflowWrap']); + this['paddingTop'] = cWT(cUz, cWL[dol(0x1326)]); + this['paddingRight'] = cWT(cUA, cWL['paddingRight']); + this['paddingBottom'] = cWT(cUB, cWL['paddingBottom']); + this['paddingLeft'] = cWT(cUC, cWL['paddingLeft']); + this['position'] = cWT(cUJ, cWL['position']); + this['textAlign'] = cWT(cUF, cWL[dol(0x1327)]); + this['textDecorationColor'] = cWT(cVH, cWL['textDecorationColor'] || cWL['color']); + this['textDecorationLine'] = cWT(cVI, cWL['textDecorationLine']); + this['textShadow'] = cWT(cUL, cWL['textShadow']); + this['textTransform'] = cWT(cUU, cWL['textTransform']); + this['transform'] = cWT(cUW, cWL[dol(0x1328)]); + this['transformOrigin'] = cWT(cVs, cWL['transformOrigin']); + this['visibility'] = cWT(cVx, cWL[dol(0x1329)]); + this['wordBreak'] = cWT(cVB, cWL['wordBreak']); + this['zIndex'] = cWT(cVD, cWL['zIndex']); + } + cWJ['prototype'][dol(0x132a)] = function() { + return this['display'] > 0x0 && this['opacity'] > 0x0 && this['visibility'] === cVv['VISIBLE']; + } + ; + cWJ['prototype'][dol(0x132b)] = function() { + return cNu(this['backgroundColor']); + } + ; + cWJ['prototype']['isTransformed'] = function() { + return this['transform'] !== null; + } + ; + cWJ['prototype']['isPositioned'] = function() { + return this['position'] !== cUH['STATIC']; + } + ; + cWJ['prototype']['isPositionedWithZIndex'] = function() { + return this['isPositioned']() && !this['zIndex']['auto']; + } + ; + cWJ['prototype']['isFloating'] = function() { + return this['float'] !== cTU[dol(0x132c)]; + } + ; + cWJ[dol(0x132d)]['isInlineLevel'] = function() { + return cW2(this['display'], 0x4) || cW2(this['display'], 0x2000000) || cW2(this['display'], 0x10000000) || cW2(this['display'], 0x20000000) || cW2(this['display'], 0x4000000) || cW2(this['display'], 0x8000000); + } + ; + return cWJ; + }(); + var cWN = function() { + function cWN(cWP) { + this['content'] = cWT(cW5, cWP['content']); + this['quotes'] = cWT(cWp, cWP['quotes']); + } + return cWN; + }(); + var cWQ = function() { + function cWQ(cWS) { + this['counterIncrement'] = cWT(cW8, cWS['counterIncrement']); + this['counterReset'] = cWT(cWh, cWS['counterReset']); + } + return cWQ; + }(); + var cWT = function(cWU, cWV) { + var cWW = new cKV(); + var cWX = cWV !== null && typeof cWV !== 'u' + doo(0xcaa) + 'd' ? cWV['toString']() : cWU['initialValue']; + cWW['write'](cWX); + var cWY = new cLZ(cWW['read']()); + switch (cWU['type']) { + case cOj['IDENT_VALUE']: + var cWZ = cWY['parseComponentValue'](); + return cWU['parse'](cMn(cWZ) ? cWZ['value'] : cWU['initialValue']); + case cOj['VALUE']: + return cWU['parse'](cWY[dol(0x132e)]()); + case cOj['LIST']: + return cWU[dol(0x132f)](cWY['parseComponentValues']()); + case cOj['TOKEN_VALUE']: + return cWY['parseComponentValue'](); + case cOj['TYPE_VALUE']: + switch (cWU[dol(0x1330)]) { + case 'a' + doo(0xcab) + 'e': + return cN2['parse'](cWY[dol(0x1331)]()); + case 'c' + doo(0xcac) + 'r': + return cNc['parse'](cWY['parseComponentValue']()); + case 'i' + doo(0xcad) + 'e': + return cSO[dol(0x1332)](cWY['parseComponentValue']()); + case 'l' + doo(0xcae) + 'h': + var cX0 = cWY['parseComponentValue'](); + return cMG(cX0) ? cX0 : cMM; + case 'l' + doo(0xcaf) + 'e': + var cX1 = cWY['parseComponentValue'](); + return cMI(cX1) ? cX1 : cMM; + } + } + throw new Error(doj(0x40e) + cWU['format']); + }; + var cX2 = function() { + function cX2(cX4) { + this['styles'] = new cWJ(window['getComputedStyle'](cX4, null)); + this['textNodes'] = []; + this['elements'] = []; + if (this['styles']['transform'] !== null && cZe(cX4)) { + cX4['style']['transform'] = 'n' + doo(0xcb0) + 'e'; + } + this['bounds'] = cFm(cX4); + this['flags'] = 0x0; + } + return cX2; + }(); + var cX5 = function() { + function cX5(cX7, cX8) { + this['text'] = cX7; + this['bounds'] = cX8; + } + return cX5; + }(); + var cX9 = function(cXa, cXb, cXc) { + var cXd = cXu(cXa, cXb); + var cXe = []; + var cXf = 0x0; + cXd['forEach'](function(cXg) { + if (cXb['textDecorationLine']['length'] || cXg['trim']()['length'] > 0x0) { + if (cQA['SUPPORT_RANGE_BOUNDS']) { + cXe['push'](new cX5(cXg,cXo(cXc, cXf, cXg['length']))); + } else { + var cXh = cXc['splitText'](cXg['length']); + cXe['push'](new cX5(cXg,cXi(cXc))); + cXc = cXh; + } + } else if (!cQA['SUPPORT_RANGE_BOUNDS']) { + cXc = cXc['splitText'](cXg['length']); + } + cXf += cXg['length']; + }); + return cXe; + }; + var cXi = function(cXj) { + var cXk = cXj['ownerDocument']; + if (cXk) { + var cXl = cXk['createElement']('h' + doo(0xcb1) + 'r'); + cXl['appendChild'](cXj['cloneNode'](!![])); + var cXm = cXj['parentNode']; + if (cXm) { + cXm['replaceChild'](cXl, cXj); + var cXn = cFm(cXl); + if (cXl['firstChild']) { + cXm['replaceChild'](cXl['firstChild'], cXl); + } + return cXn; + } + } + return new cFb(0x0,0x0,0x0,0x0); + }; + var cXo = function(cXp, cXq, cXr) { + var cXs = cXp['ownerDocument']; + if (!cXs) { + throw new Error(doj(0x40f)); + } + var cXt = cXs['createRange'](); + cXt['setStart'](cXp, cXq); + cXt['setEnd'](cXp, cXq + cXr); + return cFb['fromClientRect'](cXt[dol(0x1333)]()); + }; + var cXu = function(cXv, cXw) { + return cXw['letterSpacing'] !== 0x0 ? cFu(cXv)['map'](function(cFL) { + return cFB(cFL); + }) : cXy(cXv, cXw); + }; + var cXy = function(cXz, cXA) { + var cXB = cIH(cXz, { + 'lineBreak': cXA['lineBreak'], + 'wordBreak': cXA['overflowWrap'] === cUt[dol(0x1334)] ? 'b' + doo(0xcb2) + 'd' : cXA['wordBreak'] + }); + var cXC = []; + var cXD; + while (!(cXD = cXB['next']())['done']) { + if (cXD['value']) { + cXC['push'](cXD['value']['slice']()); + } + } + return cXC; + }; + var cXE = function() { + function cXE(cXG, cXH) { + this['text'] = cXI(cXG['data'], cXH['textTransform']); + this['textBounds'] = cX9(this['text'], cXH, cXG); + } + return cXE; + }(); + var cXI = function(cXJ, cUW) { + switch (cUW) { + case cUS['LOWERCASE']: + return cXJ['toLowerCase'](); + case cUS['CAPITALIZE']: + return cXJ['replace'](cXL, cXM); + case cUS['UPPERCASE']: + return cXJ['toUpperCase'](); + default: + return cXJ; + } + }; + var cXL = /(^|\s|:|-|\(|\))([a-z])/g; + var cXM = function(cXN, cXO, cXP) { + if (cXN['length'] > 0x0) { + return cXO + cXP['toUpperCase'](); + } + return cXN; + }; + var cXQ = function(cXR) { + cEx(cXQ, cXR); + function cXQ(cXT) { + var cXU = cXR['call'](this, cXT) || this; + cXU['src'] = cXT['currentSrc'] || cXT['src']; + cXU['intrinsicWidth'] = cXT['naturalWidth']; + cXU['intrinsicHeight'] = cXT['naturalHeight']; + cQW['getInstance']()['addImage'](cXU['src']); + return cXU; + } + return cXQ; + }(cX2); + var cXV = function(cXW) { + cEx(cXV, cXW); + function cXV(cXY) { + var cXZ = cXW['call'](this, cXY) || this; + cXZ['canvas'] = cXY; + cXZ['intrinsicWidth'] = cXY['width']; + cXZ['intrinsicHeight'] = cXY['height']; + return cXZ; + } + return cXV; + }(cX2); + var cY0 = function(cY1) { + cEx(cY0, cY1); + function cY0(cY3) { + var cY4 = cY1['call'](this, cY3) || this; + var cY5 = new XMLSerializer(); + cY4['svg'] = 'd' + doo(0xcb3) + ',' + encodeURIComponent(cY5['serializeToString'](cY3)); + cY4['intrinsicWidth'] = cY3['width']['baseVal']['value']; + cY4['intrinsicHeight'] = cY3['height']['baseVal']['value']; + cQW['getInstance']()['addImage'](cY4['svg']); + return cY4; + } + return cY0; + }(cX2); + var cY6 = function(cY7) { + cEx(cY6, cY7); + function cY6(cY9) { + var cYa = cY7['call'](this, cY9) || this; + cYa['value'] = cY9[dol(0x1335)]; + return cYa; + } + return cY6; + }(cX2); + var cYb = function(cYc) { + cEx(cYb, cYc); + function cYb(cYe) { + var cYf = cYc['call'](this, cYe) || this; + cYf['start'] = cYe['start']; + cYf['reversed'] = typeof cYe['reversed'] === 'b' + doo(0xcb4) + 'n' && cYe['reversed'] === !![]; + return cYf; + } + return cYb; + }(cX2); + var cYg = [{ + 'type': cIU['DIMENSION_TOKEN'], + 'flags': 0x0, + 'unit': doh(0x169), + 'number': 0x3 + }]; + var cYh = [{ + 'type': cIU['PERCENTAGE_TOKEN'], + 'flags': 0x0, + 'number': 0x32 + }]; + var cYi = function(cYj) { + if (cYj['width'] > cYj[dol(0x1336)]) { + return new cFb(cYj['left'] + (cYj['width'] - cYj[dol(0x1337)]) / 0x2,cYj['top'],cYj['height'],cYj[dol(0x1338)]); + } else if (cYj[dol(0x1339)] < cYj['height']) { + return new cFb(cYj['left'],cYj['top'] + (cYj['height'] - cYj[dol(0x133a)]) / 0x2,cYj['width'],cYj['width']); + } + return cYj; + }; + var cYk = function(cYl) { + var cYm = cYl['type'] === cYp ? new Array(cYl['value']['length'] + 0x1)[dol(0x133b)]('•') : cYl['value']; + return cYm['length'] === 0x0 ? cYl['placeholder'] || '' : cYm; + }; + var cYn = 'c' + doo(0xcb5) + 'x'; + var cYo = 'r' + doo(0xcb6) + 'o'; + var cYp = 'p' + doo(0xcb7) + 'd'; + var cYq = 0x2a2a2aff; + var cYr = function(cYs) { + cEx(cYr, cYs); + function cYr(cYu) { + var cYv = cYs['call'](this, cYu) || this; + cYv['type'] = cYu['type']['toLowerCase'](); + cYv['checked'] = cYu['checked']; + cYv['value'] = cYk(cYu); + if (cYv['type'] === cYn || cYv[dol(0x133c)] === cYo) { + cYv['styles']['backgroundColor'] = 0xdededeff; + cYv['styles']['borderTopColor'] = cYv['styles'][dol(0x133d)] = cYv['styles']['borderBottomColor'] = cYv['styles']['borderLeftColor'] = 0xa5a5a5ff; + cYv['styles']['borderTopWidth'] = cYv['styles']['borderRightWidth'] = cYv['styles']['borderBottomWidth'] = cYv['styles']['borderLeftWidth'] = 0x1; + cYv['styles']['borderTopStyle'] = cYv['styles']['borderRightStyle'] = cYv['styles']['borderBottomStyle'] = cYv['styles']['borderLeftStyle'] = cTx['SOLID']; + cYv['styles']['backgroundClip'] = [cOl['BORDER_BOX']]; + cYv['styles']['backgroundOrigin'] = [0x0]; + cYv['bounds'] = cYi(cYv['bounds']); + } + switch (cYv['type']) { + case cYn: + cYv['styles']['borderTopRightRadius'] = cYv['styles']['borderTopLeftRadius'] = cYv['styles']['borderBottomRightRadius'] = cYv['styles']['borderBottomLeftRadius'] = cYg; + break; + case cYo: + cYv['styles']['borderTopRightRadius'] = cYv['styles'][dol(0x133e)] = cYv[dol(0x133f)][dol(0x1340)] = cYv['styles']['borderBottomLeftRadius'] = cYh; + break; + } + return cYv; + } + return cYr; + }(cX2); + var cYw = function(cYx) { + cEx(cYw, cYx); + function cYw(cYz) { + var cYA = cYx['call'](this, cYz) || this; + var cYB = cYz['options'][cYz['selectedIndex'] || 0x0]; + cYA['value'] = cYB ? cYB['text'] || '' : ''; + return cYA; + } + return cYw; + }(cX2); + var cYC = function(cYD) { + cEx(cYC, cYD); + function cYC(cYF) { + var cYG = cYD['call'](this, cYF) || this; + cYG[dol(0x1341)] = cYF['value']; + return cYG; + } + return cYC; + }(cX2); + var cYH = function(cYI) { + return cNc['parse'](cLZ['create'](cYI)['parseComponentValue']()); + }; + var cYJ = function(cYK) { + cEx(cYJ, cYK); + function cYJ(cYM) { + var cYN = cYK['call'](this, cYM) || this; + cYN['src'] = cYM['src']; + cYN['width'] = parseInt(cYM['width'], 0xa) || 0x0; + cYN['height'] = parseInt(cYM['height'], 0xa) || 0x0; + cYN['backgroundColor'] = cYN['styles']['backgroundColor']; + try { + if (cYM[dol(0x1342)] && cYM[dol(0x1343)]['document'] && cYM['contentWindow']['document']['documentElement']) { + cYN['tree'] = cZ1(cYM['contentWindow']['document']['documentElement']); + var cYO = cYM['contentWindow']['document']['documentElement'] ? cYH(getComputedStyle(cYM['contentWindow']['document']['documentElement'])['backgroundColor']) : cOi['TRANSPARENT']; + var cYP = cYM['contentWindow']['document']['body'] ? cYH(getComputedStyle(cYM['contentWindow']['document']['body'])[dol(0x1344)]) : cOi['TRANSPARENT']; + cYN['backgroundColor'] = cNu(cYO) ? cNu(cYP) ? cYN['styles']['backgroundColor'] : cYP : cYO; + } + } catch (cYQ) {} + return cYN; + } + return cYJ; + }(cX2); + var cYR = [doh(0x16a), doh(0x16b), 'M' + doo(0xcb8) + 'U']; + var cYS = function(cYT, cYU, cYV) { + for (var cYW = cYT['firstChild'], cYX = void 0x0; cYW; cYW = cYX) { + cYX = cYW['nextSibling']; + if (cZa(cYW) && cYW['data']['trim']()['length'] > 0x0) { + cYU['textNodes']['push'](new cXE(cYW,cYU['styles'])); + } else if (cZc(cYW)) { + var cYY = cYZ(cYW); + if (cYY['styles']['isVisible']()) { + if (cZ4(cYW, cYY, cYV)) { + cYY['flags'] |= 0x4; + } else if (cZ8(cYY['styles'])) { + cYY['flags'] |= 0x2; + } + if (cYR['indexOf'](cYW['tagName']) !== -0x1) { + cYY['flags'] |= 0x8; + } + cYU['elements']['push'](cYY); + if (!cZE(cYW) && !cZq(cYW) && !cZG(cYW)) { + cYS(cYW, cYY, cYV); + } + } + } + } + }; + var cYZ = function(cZ0) { + if (cZw(cZ0)) { + return new cXQ(cZ0); + } + if (cZu(cZ0)) { + return new cXV(cZ0); + } + if (cZq(cZ0)) { + return new cY0(cZ0); + } + if (cZi(cZ0)) { + return new cY6(cZ0); + } + if (cZk(cZ0)) { + return new cYb(cZ0); + } + if (cZm(cZ0)) { + return new cYr(cZ0); + } + if (cZG(cZ0)) { + return new cYw(cZ0); + } + if (cZE(cZ0)) { + return new cYC(cZ0); + } + if (cZy(cZ0)) { + return new cYJ(cZ0); + } + return new cX2(cZ0); + }; + var cZ1 = function(cZ2) { + var cZ3 = cYZ(cZ2); + cZ3['flags'] |= 0x4; + cYS(cZ2, cZ3, cZ3); + return cZ3; + }; + var cZ4 = function(cZ5, cZ6, cZ7) { + return cZ6['styles']['isPositionedWithZIndex']() || cZ6['styles']['opacity'] < 0x1 || cZ6['styles']['isTransformed']() || cZs(cZ5) && cZ7['styles']['isTransparent'](); + }; + var cZ8 = function(cZ9) { + return cZ9['isPositioned']() || cZ9['isFloating'](); + }; + var cZa = function(cZb) { + return cZb['nodeType'] === Node['TEXT_NODE']; + }; + var cZc = function(cZd) { + return cZd[dol(0x1345)] === Node[dol(0x1346)]; + }; + var cZe = function(cZf) { + return cZc(cZf) && typeof cZf['style'] !== 'u' + doo(0xcb9) + 'd' && !cZg(cZf); + }; + var cZg = function(cZh) { + return typeof cZh['className'] === 'o' + doo(0xcba) + 't'; + }; + var cZi = function(cZj) { + return cZj['tagName'] === doh(0x16c); + }; + var cZk = function(cZl) { + return cZl['tagName'] === doh(0x16d); + }; + var cZm = function(cZn) { + return cZn['tagName'] === 'I' + doo(0xcbb) + 'T'; + }; + var cZo = function(cZp) { + return cZp[dol(0x1347)] === 'H' + doo(0xcbc) + 'L'; + }; + var cZq = function(cZr) { + return cZr['tagName'] === doh(0x16e); + }; + var cZs = function(cZt) { + return cZt['tagName'] === 'B' + doo(0xcbd) + 'Y'; + }; + var cZu = function(cZv) { + return cZv['tagName'] === 'C' + doo(0xcbe) + 'S'; + }; + var cZw = function(cZx) { + return cZx['tagName'] === doh(0x16f); + }; + var cZy = function(cZz) { + return cZz['tagName'] === 'I' + doo(0xcbf) + 'E'; + }; + var cZA = function(cZB) { + return cZB['tagName'] === 'S' + doo(0xcc0) + 'E'; + }; + var cZC = function(cZD) { + return cZD['tagName'] === 'S' + doo(0xcc1) + 'T'; + }; + var cZE = function(cZF) { + return cZF['tagName'] === 'T' + doo(0xcc2) + 'A'; + }; + var cZG = function(cZH) { + return cZH['tagName'] === 'S' + doo(0xcc3) + 'T'; + }; + var cZI = function() { + function cZI() { + this['counters'] = {}; + } + cZI['prototype']['getCounterValue'] = function(cZK) { + var cZL = this['counters'][cZK]; + if (cZL && cZL['length']) { + return cZL[cZL['length'] - 0x1]; + } + return 0x1; + } + ; + cZI[dol(0x1348)]['getCounterValues'] = function(cZM) { + var cZN = this['counters'][cZM]; + return cZN ? cZN : []; + } + ; + cZI['prototype']['pop'] = function(cZO) { + var cZP = this; + cZO['forEach'](function(cZQ) { + return cZP['counters'][cZQ]['pop'](); + }); + } + ; + cZI['prototype']['parse'] = function(cZR) { + var cZS = this; + var cW8 = cZR['counterIncrement']; + var cWh = cZR[dol(0x1349)]; + var cZV = !![]; + if (cW8 !== null) { + cW8['forEach'](function(cZW) { + var cZX = cZS['counters'][cZW['counter']]; + if (cZX && cZW['increment'] !== 0x0) { + cZV = ![]; + cZX[Math['max'](0x0, cZX['length'] - 0x1)] += cZW[dol(0x134a)]; + } + }); + } + var cZY = []; + if (cZV) { + cWh['forEach'](function(cZZ) { + var d00 = cZS['counters'][cZZ['counter']]; + cZY[dol(0x134b)](cZZ['counter']); + if (!d00) { + d00 = cZS['counters'][cZZ['counter']] = []; + } + d00['push'](cZZ[dol(0x134c)]); + }); + } + return cZY; + } + ; + return cZI; + }(); + var d01 = { + 'integers': [0x3e8, 0x384, 0x1f4, 0x190, 0x64, 0x5a, 0x32, 0x28, 0xa, 0x9, 0x5, 0x4, 0x1], + 'values': ['M', doh(0x170), 'D', doh(0x171), 'C', doh(0x172), 'L', doh(0x173), 'X', doh(0x174), 'V', doh(0x175), 'I'] + }; + var d02 = { + 'integers': [0x2328, 0x1f40, 0x1b58, 0x1770, 0x1388, 0xfa0, 0xbb8, 0x7d0, 0x3e8, 0x384, 0x320, 0x2bc, 0x258, 0x1f4, 0x190, 0x12c, 0xc8, 0x64, 0x5a, 0x50, 0x46, 0x3c, 0x32, 0x28, 0x1e, 0x14, 0xa, 0x9, 0x8, 0x7, 0x6, 0x5, 0x4, 0x3, 0x2, 0x1], + 'values': ['Ք', 'Փ', 'Ւ', 'Ց', 'Ր', 'Տ', 'Վ', 'Ս', 'Ռ', 'Ջ', 'Պ', 'Չ', 'Ո', 'Շ', 'Ն', 'Յ', 'Մ', 'Ճ', 'Ղ', 'Ձ', 'Հ', 'Կ', 'Ծ', 'Խ', 'Լ', 'Ի', 'Ժ', 'Թ', 'Ը', 'Է', 'Զ', 'Ե', 'Դ', 'Գ', 'Բ', 'Ա'] + }; + var d03 = { + 'integers': [0x2710, 0x2328, 0x1f40, 0x1b58, 0x1770, 0x1388, 0xfa0, 0xbb8, 0x7d0, 0x3e8, 0x190, 0x12c, 0xc8, 0x64, 0x5a, 0x50, 0x46, 0x3c, 0x32, 0x28, 0x1e, 0x14, 0x13, 0x12, 0x11, 0x10, 0xf, 0xa, 0x9, 0x8, 0x7, 0x6, 0x5, 0x4, 0x3, 0x2, 0x1], + 'values': [doh(0x176), doh(0x177), doh(0x178), doh(0x179), doh(0x17a), doh(0x17b), doh(0x17c), doh(0x17d), doh(0x17e), doh(0x17f), 'ת', 'ש', 'ר', 'ק', 'צ', 'פ', 'ע', 'ס', 'נ', 'מ', 'ל', 'כ', doh(0x180), doh(0x181), doh(0x182), doh(0x183), doh(0x184), 'י', 'ט', 'ח', 'ז', 'ו', 'ה', 'ד', 'ג', 'ב', 'א'] + }; + var d04 = { + 'integers': [0x2710, 0x2328, 0x1f40, 0x1b58, 0x1770, 0x1388, 0xfa0, 0xbb8, 0x7d0, 0x3e8, 0x384, 0x320, 0x2bc, 0x258, 0x1f4, 0x190, 0x12c, 0xc8, 0x64, 0x5a, 0x50, 0x46, 0x3c, 0x32, 0x28, 0x1e, 0x14, 0xa, 0x9, 0x8, 0x7, 0x6, 0x5, 0x4, 0x3, 0x2, 0x1], + 'values': ['ჵ', 'ჰ', 'ჯ', 'ჴ', 'ხ', 'ჭ', 'წ', 'ძ', 'ც', 'ჩ', 'შ', 'ყ', 'ღ', 'ქ', 'ფ', 'ჳ', 'ტ', 'ს', 'რ', 'ჟ', 'პ', 'ო', 'ჲ', 'ნ', 'მ', 'ლ', 'კ', 'ი', 'თ', 'ჱ', 'ზ', 'ვ', 'ე', 'დ', 'გ', 'ბ', 'ა'] + }; + var d05 = function(d06, d07, d08, d09, d0a, d0b) { + if (d06 < d07 || d06 > d08) { + return d0S(d06, d0a, d0b['length'] > 0x0); + } + return d09['integers']['reduce'](function(d0c, d0d, d0e) { + while (d06 >= d0d) { + d06 -= d0d; + d0c += d09['values'][d0e]; + } + return d0c; + }, '') + d0b; + }; + var d0f = function(d0g, d0h, d0i, d0j) { + var d0k = ''; + do { + if (!d0i) { + d0g--; + } + d0k = d0j(d0g) + d0k; + d0g /= d0h; + } while (d0g * d0h >= d0h); + return d0k; + }; + var d0l = function(d0m, d0n, d0o, d0p, d0q) { + var d0r = d0o - d0n + 0x1; + return (d0m < 0x0 ? '-' : '') + (d0f(Math[dol(0x134d)](d0m), d0r, d0p, function(d0s) { + return cFB(Math['floor'](d0s % d0r) + d0n); + }) + d0q); + }; + var d0t = function(d0u, d0v, d0w) { + if (d0w === void 0x0) { + d0w = doh(0x185); + } + var d0x = d0v['length']; + return d0f(Math['abs'](d0u), d0x, ![], function(d0y) { + return d0v[Math['floor'](d0y % d0x)]; + }) + d0w; + }; + var d0z = 0x1 << 0x0; + var d0A = 0x1 << 0x1; + var d0B = 0x1 << 0x2; + var d0C = 0x1 << 0x3; + var d0D = function(d0E, d0F, d0G, d0H, d0I, d0J) { + if (d0E < -0x270f || d0E > 0x270f) { + return d0S(d0E, cUe['CJK_DECIMAL'], d0I['length'] > 0x0); + } + var d0K = Math['abs'](d0E); + var d0L = d0I; + if (d0K === 0x0) { + return d0F[0x0] + d0L; + } + for (var d0M = 0x0; d0K > 0x0 && d0M <= 0x4; d0M++) { + var d0N = d0K % 0xa; + if (d0N === 0x0 && cW2(d0J, d0z) && d0L !== '') { + d0L = d0F[d0N] + d0L; + } else if (d0N > 0x1 || d0N === 0x1 && d0M === 0x0 || d0N === 0x1 && d0M === 0x1 && cW2(d0J, d0A) || d0N === 0x1 && d0M === 0x1 && cW2(d0J, d0B) && d0E > 0x64 || d0N === 0x1 && d0M > 0x1 && cW2(d0J, d0C)) { + d0L = d0F[d0N] + (d0M > 0x0 ? d0G[d0M - 0x1] : '') + d0L; + } else if (d0N === 0x1 && d0M > 0x0) { + d0L = d0G[d0M - 0x1] + d0L; + } + d0K = Math[dol(0x134e)](d0K / 0xa); + } + return (d0E < 0x0 ? d0H : '') + d0L; + }; + var d0O = '十' + doo(0xcc4) + '萬'; + var d0P = '拾' + doo(0xcc5) + '萬'; + var d0Q = 'マ' + doo(0xcc6) + 'ス'; + var d0R = '마' + doo(0xcc7) + '스'; + var d0S = function(d0T, d0U, d0V) { + var d0W = d0V ? doh(0x186) : ''; + var d0X = d0V ? '、' : ''; + var d0Y = d0V ? doh(0x187) : ''; + var d0Z = d0V ? '\x20' : ''; + switch (d0U) { + case cUe['DISC']: + return '•' + d0Z; + case cUe['CIRCLE']: + return '◦' + d0Z; + case cUe['SQUARE']: + return '◾' + d0Z; + case cUe['DECIMAL_LEADING_ZERO']: + var d10 = d0l(d0T, 0x30, 0x39, !![], d0W); + return d10['length'] < 0x4 ? '0' + d10 : d10; + case cUe[dol(0x134f)]: + return d0t(d0T, '〇' + doo(0xcc8) + '九', d0X); + case cUe['LOWER_ROMAN']: + return d05(d0T, 0x1, 0xf9f, d01, cUe['DECIMAL'], d0W)['toLowerCase'](); + case cUe['UPPER_ROMAN']: + return d05(d0T, 0x1, 0xf9f, d01, cUe['DECIMAL'], d0W); + case cUe['LOWER_GREEK']: + return d0l(d0T, 0x3b1, 0x3c9, ![], d0W); + case cUe['LOWER_ALPHA']: + return d0l(d0T, 0x61, 0x7a, ![], d0W); + case cUe['UPPER_ALPHA']: + return d0l(d0T, 0x41, 0x5a, ![], d0W); + case cUe['ARABIC_INDIC']: + return d0l(d0T, 0x660, 0x669, !![], d0W); + case cUe['ARMENIAN']: + case cUe['UPPER_ARMENIAN']: + return d05(d0T, 0x1, 0x270f, d02, cUe['DECIMAL'], d0W); + case cUe['LOWER_ARMENIAN']: + return d05(d0T, 0x1, 0x270f, d02, cUe['DECIMAL'], d0W)['toLowerCase'](); + case cUe['BENGALI']: + return d0l(d0T, 0x9e6, 0x9ef, !![], d0W); + case cUe['CAMBODIAN']: + case cUe['KHMER']: + return d0l(d0T, 0x17e0, 0x17e9, !![], d0W); + case cUe['CJK_EARTHLY_BRANCH']: + return d0t(d0T, '子' + doo(0xcc9) + '亥', d0X); + case cUe['CJK_HEAVENLY_STEM']: + return d0t(d0T, '甲' + doo(0xcca) + '癸', d0X); + case cUe['CJK_IDEOGRAPHIC']: + case cUe['TRAD_CHINESE_INFORMAL']: + return d0D(d0T, '零' + doo(0xccb) + '九', d0O, '負', d0X, d0A | d0B | d0C); + case cUe['TRAD_CHINESE_FORMAL']: + return d0D(d0T, '零' + doo(0xccc) + '玖', d0P, '負', d0X, d0z | d0A | d0B | d0C); + case cUe['SIMP_CHINESE_INFORMAL']: + return d0D(d0T, '零' + doo(0xccd) + '九', d0O, '负', d0X, d0A | d0B | d0C); + case cUe[dol(0x1350)]: + return d0D(d0T, '零' + doo(0xcce) + '玖', d0P, '负', d0X, d0z | d0A | d0B | d0C); + case cUe['JAPANESE_INFORMAL']: + return d0D(d0T, '〇' + doo(0xccf) + '九', '十' + doo(0xcd0) + '万', d0Q, d0X, 0x0); + case cUe['JAPANESE_FORMAL']: + return d0D(d0T, '零' + doo(0xcd1) + '九', '拾' + doo(0xcd2) + '万', d0Q, d0X, d0z | d0A | d0B); + case cUe['KOREAN_HANGUL_FORMAL']: + return d0D(d0T, '영' + doo(0xcd3) + '구', '십' + doo(0xcd4) + '만', d0R, d0Y, d0z | d0A | d0B); + case cUe['KOREAN_HANJA_INFORMAL']: + return d0D(d0T, '零' + doo(0xcd5) + '九', '十' + doo(0xcd6) + '萬', d0R, d0Y, 0x0); + case cUe['KOREAN_HANJA_FORMAL']: + return d0D(d0T, '零' + doo(0xcd7) + '九', doh(0x188), d0R, d0Y, d0z | d0A | d0B); + case cUe[dol(0x1351)]: + return d0l(d0T, 0x966, 0x96f, !![], d0W); + case cUe['GEORGIAN']: + return d05(d0T, 0x1, 0x4e1f, d04, cUe['DECIMAL'], d0W); + case cUe['GUJARATI']: + return d0l(d0T, 0xae6, 0xaef, !![], d0W); + case cUe['GURMUKHI']: + return d0l(d0T, 0xa66, 0xa6f, !![], d0W); + case cUe['HEBREW']: + return d05(d0T, 0x1, 0x2af7, d03, cUe['DECIMAL'], d0W); + case cUe['HIRAGANA']: + return d0t(d0T, doj(0x410)); + case cUe['HIRAGANA_IROHA']: + return d0t(d0T, doj(0x411)); + case cUe['KANNADA']: + return d0l(d0T, 0xce6, 0xcef, !![], d0W); + case cUe['KATAKANA']: + return d0t(d0T, doj(0x412), d0X); + case cUe['KATAKANA_IROHA']: + return d0t(d0T, doj(0x413), d0X); + case cUe['LAO']: + return d0l(d0T, 0xed0, 0xed9, !![], d0W); + case cUe['MONGOLIAN']: + return d0l(d0T, 0x1810, 0x1819, !![], d0W); + case cUe['MYANMAR']: + return d0l(d0T, 0x1040, 0x1049, !![], d0W); + case cUe['ORIYA']: + return d0l(d0T, 0xb66, 0xb6f, !![], d0W); + case cUe['PERSIAN']: + return d0l(d0T, 0x6f0, 0x6f9, !![], d0W); + case cUe['TAMIL']: + return d0l(d0T, 0xbe6, 0xbef, !![], d0W); + case cUe['TELUGU']: + return d0l(d0T, 0xc66, 0xc6f, !![], d0W); + case cUe['THAI']: + return d0l(d0T, 0xe50, 0xe59, !![], d0W); + case cUe['TIBETAN']: + return d0l(d0T, 0xf20, 0xf29, !![], d0W); + case cUe['DECIMAL']: + default: + return d0l(d0T, 0x30, 0x39, !![], d0W); + } + }; + var d11 = doj(0x414); + var d12 = function() { + function d12(d14, d15) { + this['options'] = d15; + this['scrolledElements'] = []; + this['referenceElement'] = d14; + this['counters'] = new cZI(); + this['quoteDepth'] = 0x0; + if (!d14['ownerDocument']) { + throw new Error(doj(0x415)); + } + this['documentElement'] = this['cloneNode'](d14['ownerDocument'][dol(0x1352)]); + } + d12['prototype']['toIFrame'] = function(d16, d17) { + var d18 = this; + var d19 = d2b(d16, d17); + if (!d19['contentWindow']) { + return Promise['reject'](doj(0x416)); + } + var d1a = d16['defaultView']['pageXOffset']; + var d1b = d16['defaultView']['pageYOffset']; + var d1c = d19['contentWindow']; + var d1d = d1c['document']; + var d1e = d2f(d19)['then'](function() { + return cEH(d18, void 0x0, void 0x0, function() { + var d1f; + return cEX(this, function(d1g) { + switch (d1g['label']) { + case 0x0: + this['scrolledElements']['forEach'](d2y); + if (d1c) { + d1c['scrollTo'](d17['left'], d17['top']); + if (/(iPad|iPhone|iPod)/g['test'](navigator['userAgent']) && (d1c['scrollY'] !== d17['top'] || d1c['scrollX'] !== d17['left'])) { + d1d['documentElement'][dol(0x1353)][dol(0x1354)] = -d17['top'] + doh(0x189); + d1d['documentElement']['style'][dol(0x1355)] = -d17['left'] + doh(0x18a); + d1d['documentElement']['style']['position'] = 'a' + doo(0xcd8) + 'e'; + } + } + d1f = this['options']['onclone']; + if (typeof this['clonedReferenceElement'] === 'u' + doo(0xcd9) + 'd') { + return [0x2, Promise['reject']('E' + doo(0xcda) + '\x20' + this['referenceElement']['nodeName'] + doj(0x417))]; + } + if (!(d1d['fonts'] && d1d['fonts']['ready'])) + return [0x3, 0x2]; + return [0x4, d1d['fonts']['ready']]; + case 0x1: + d1g['sent'](); + d1g['label'] = 0x2; + case 0x2: + if (typeof d1f === 'f' + doo(0xcdb) + 'n') { + return [0x2, Promise['resolve']()['then'](function() { + return d1f(d1d); + })['then'](function() { + return d19; + })]; + } + return [0x2, d19]; + } + }); + }); + }); + d1d['open'](); + d1d['write'](d2r(document['doctype']) + ('<' + doo(0xcdc) + '>')); + d2u(this['referenceElement']['ownerDocument'], d1a, d1b); + d1d['replaceChild'](d1d['adoptNode'](this['documentElement']), d1d['documentElement']); + d1d['close'](); + return d1e; + } + ; + d12['prototype']['createElementClone'] = function(d1h) { + if (cZu(d1h)) { + return this['createCanvasClone'](d1h); + } + if (cZA(d1h)) { + return this['createStyleClone'](d1h); + } + var d1i = d1h['cloneNode'](![]); + if (cZw(d1i) && d1i['loading'] === 'l' + doo(0xcdd) + 'y') { + d1i['loading'] = 'e' + doo(0xcde) + 'r'; + } + return d1i; + } + ; + d12['prototype']['createStyleClone'] = function(d1j) { + try { + var d1k = d1j[dol(0x1356)]; + if (d1k && d1k['cssRules']) { + var d1l = [][dol(0x1357)]['call'](d1k['cssRules'], 0x0)['reduce'](function(d1l, d1n) { + if (d1n && typeof d1n['cssText'] === 's' + doo(0xcdf) + 'g') { + return d1l + d1n['cssText']; + } + return d1l; + }, ''); + var d1o = d1j['cloneNode'](![]); + d1o['textContent'] = d1l; + return d1o; + } + } catch (d1p) { + cQH['getInstance'](this['options']['id'])['error'](doj(0x418), d1p); + if (d1p[dol(0x1358)] !== 'S' + doo(0xce0) + 'r') { + throw d1p; + } + } + return d1j['cloneNode'](![]); + } + ; + d12['prototype']['createCanvasClone'] = function(d1q) { + if (this['options']['inlineImages'] && d1q['ownerDocument']) { + var d1r = d1q['ownerDocument']['createElement'](doh(0x18b)); + try { + d1r['src'] = d1q['toDataURL'](); + return d1r; + } catch (d1s) { + cQH['getInstance'](this['options']['id'])['info'](doj(0x419)); + } + } + var d1t = d1q[dol(0x1359)](![]); + try { + d1t['width'] = d1q['width']; + d1t['height'] = d1q['height']; + var d1u = d1q[dol(0x135a)](doh(0x18c)); + var d1v = d1t['getContext'](doh(0x18d)); + if (d1v) { + if (d1u) { + d1v['putImageData'](d1u['getImageData'](0x0, 0x0, d1q['width'], d1q[dol(0x135b)]), 0x0, 0x0); + } else { + d1v['drawImage'](d1q, 0x0, 0x0); + } + } + return d1t; + } catch (d1w) {} + return d1t; + } + ; + d12['prototype']['cloneNode'] = function(d1x) { + if (cZa(d1x)) { + return document['createTextNode'](d1x['data']); + } + if (!d1x['ownerDocument']) { + return d1x['cloneNode'](![]); + } + var d1y = d1x['ownerDocument']['defaultView']; + if (d1y && cZc(d1x) && (cZe(d1x) || cZg(d1x))) { + var d1z = this['createElementClone'](d1x); + var d1A = d1y[dol(0x135c)](d1x); + var d1B = d1y['getComputedStyle'](d1x, ':' + doo(0xce1) + 'e'); + var d1C = d1y['getComputedStyle'](d1x, ':' + doo(0xce2) + 'r'); + if (this['referenceElement'] === d1x && cZe(d1z)) { + this['clonedReferenceElement'] = d1z; + } + if (cZs(d1z)) { + d2I(d1z); + } + var d1D = this['counters']['parse'](new cWQ(d1A)); + var d1E = this['resolvePseudoContent'](d1x, d1z, d1B, d29['BEFORE']); + for (var d1F = d1x['firstChild']; d1F; d1F = d1F['nextSibling']) { + if (!cZc(d1F) || !cZC(d1F) && !d1F['hasAttribute'](d11) && (typeof this['options']['ignoreElements'] !== 'f' + doo(0xce3) + 'n' || !this['options']['ignoreElements'](d1F))) { + if (!this['options']['copyStyles'] || !cZc(d1F) || !cZA(d1F)) { + d1z['appendChild'](this['cloneNode'](d1F)); + } + } + } + if (d1E) { + d1z['insertBefore'](d1E, d1z['firstChild']); + } + var d1G = this['resolvePseudoContent'](d1x, d1z, d1C, d29[dol(0x135d)]); + if (d1G) { + d1z['appendChild'](d1G); + } + this['counters']['pop'](d1D); + if (d1A && (this['options']['copyStyles'] || cZg(d1x)) && !cZy(d1x)) { + d2m(d1A, d1z); + } + if (d1x['scrollTop'] !== 0x0 || d1x[dol(0x135e)] !== 0x0) { + this['scrolledElements']['push']([d1z, d1x['scrollLeft'], d1x['scrollTop']]); + } + if ((cZE(d1x) || cZG(d1x)) && (cZE(d1z) || cZG(d1z))) { + d1z['value'] = d1x['value']; + } + return d1z; + } + return d1x['cloneNode'](![]); + } + ; + d12['prototype']['resolvePseudoContent'] = function(d1H, d1I, d1J, d1K) { + var d1L = this; + if (!d1J) { + return; + } + var d1M = d1J['content']; + var d1N = d1I['ownerDocument']; + if (!d1N || !d1M || d1M === 'n' + doo(0xce4) + 'e' || d1M === '-' + doo(0xce5) + 't' || d1J['display'] === 'n' + doo(0xce6) + 'e') { + return; + } + this['counters']['parse'](new cWQ(d1J)); + var d1O = new cWN(d1J); + var d1P = d1N['createElement'](doj(0x41a)); + d2m(d1J, d1P); + d1O['content']['forEach'](function(d1Q) { + if (d1Q['type'] === cIU[dol(0x135f)]) { + d1P['appendChild'](d1N['createTextNode'](d1Q['value'])); + } else if (d1Q['type'] === cIU['URL_TOKEN']) { + var d1R = d1N['createElement'](doh(0x18e)); + d1R['src'] = d1Q['value']; + d1R['style']['opacity'] = '1'; + d1P['appendChild'](d1R); + } else if (d1Q['type'] === cIU['FUNCTION']) { + if (d1Q['name'] === 'a' + doo(0xce7) + 'r') { + var d1S = d1Q['values'][dol(0x1360)](cMn); + if (d1S['length']) { + d1P['appendChild'](d1N['createTextNode'](d1H['getAttribute'](d1S[0x0]['value']) || '')); + } + } else if (d1Q['name'] === 'c' + doo(0xce8) + 'r') { + var d1T = d1Q['values']['filter'](cMw) + , d1U = d1T[0x0] + , d1V = d1T[0x1]; + if (d1U && cMn(d1U)) { + var d1W = d1L['counters']['getCounterValue'](d1U['value']); + var d1X = d1V && cMn(d1V) ? cUg['parse'](d1V['value']) : cUe['DECIMAL']; + d1P['appendChild'](d1N['createTextNode'](d0S(d1W, d1X, ![]))); + } + } else if (d1Q['name'] === 'c' + doo(0xce9) + 's') { + var d1Y = d1Q[dol(0x1361)]['filter'](cMw) + , d1U = d1Y[0x0] + , d20 = d1Y[0x1] + , d1V = d1Y[0x2]; + if (d1U && cMn(d1U)) { + var d22 = d1L['counters']['getCounterValues'](d1U['value']); + var d23 = d1V && cMn(d1V) ? cUg[dol(0x1362)](d1V['value']) : cUe['DECIMAL']; + var d24 = d20 && d20['type'] === cIU['STRING_TOKEN'] ? d20['value'] : ''; + var d25 = d22['map'](function(d1M) { + return d0S(d1M, d23, ![]); + })['join'](d24); + d1P['appendChild'](d1N['createTextNode'](d25)); + } + } + } else if (d1Q['type'] === cIU['IDENT_TOKEN']) { + switch (d1Q['value']) { + case 'o' + doo(0xcea) + 'e': + d1P['appendChild'](d1N['createTextNode'](cWx(d1O['quotes'], d1L['quoteDepth']++, !![]))); + break; + case 'c' + doo(0xceb) + 'e': + d1P['appendChild'](d1N['createTextNode'](cWx(d1O['quotes'], --d1L['quoteDepth'], ![]))); + break; + default: + d1P['appendChild'](d1N['createTextNode'](d1Q['value'])); + } + } + }); + d1P['className'] = d2F + '\x20' + d2G; + var d27 = d1K === d29['BEFORE'] ? '\x20' + d2F : '\x20' + d2G; + if (cZg(d1I)) { + d1I['className']['baseValue'] += d27; + } else { + d1I['className'] += d27; + } + return d1P; + } + ; + d12['destroy'] = function(d28) { + if (d28['parentNode']) { + d28['parentNode']['removeChild'](d28); + return !![]; + } + return ![]; + } + ; + return d12; + }(); + var d29; + (function(d29) { + d29[d29['B' + doo(0xcec) + 'E'] = 0x0] = 'B' + doo(0xced) + 'E'; + d29[d29['A' + doo(0xcee) + 'R'] = 0x1] = 'A' + doo(0xcef) + 'R'; + }(d29 || (d29 = {}))); + var d2b = function(d2c, d2d) { + var d2e = d2c['createElement']('i' + doo(0xcf0) + 'e'); + d2e['className'] = doj(0x41b); + d2e['style']['visibility'] = 'h' + doo(0xcf1) + 'n'; + d2e['style']['position'] = 'f' + doo(0xcf2) + 'd'; + d2e['style']['left'] = '-' + doo(0xcf3) + 'x'; + d2e['style']['top'] = doh(0x18f); + d2e['style']['border'] = '0'; + d2e['width'] = d2d[dol(0x1363)]['toString'](); + d2e['height'] = d2d['height']['toString'](); + d2e['scrolling'] = doh(0x190); + d2e['setAttribute'](d11, 't' + doo(0xcf4) + 'e'); + d2c['body']['appendChild'](d2e); + return d2e; + }; + var d2f = function(d2g) { + return new Promise(function(d2h, d2i) { + var d2j = d2g['contentWindow']; + if (!d2j) { + return d2i(doj(0x41c)); + } + var d2k = d2j['document']; + d2j['onload'] = d2g['onload'] = d2k['onreadystatechange'] = function() { + d2j['onload'] = d2g['onload'] = d2k['onreadystatechange'] = null; + var d2l = setInterval(function() { + if (d2k['body']['childNodes']['length'] > 0x0 && d2k['readyState'] === 'c' + doo(0xcf5) + 'e') { + clearInterval(d2l); + d2h(d2g); + } + }, 0x32); + } + ; + } + ); + }; + var d2m = function(d2n, d2o) { + for (var cFL = d2n['length'] - 0x1; cFL >= 0x0; cFL--) { + var d2q = d2n[dol(0x1364)](cFL); + if (d2q !== 'c' + doo(0xcf6) + 't') { + d2o['style']['setProperty'](d2q, d2n['getPropertyValue'](d2q)); + } + } + return d2o; + }; + var d2r = function(d2s) { + var d2t = ''; + if (d2s) { + d2t += '<' + doo(0xcf7) + '\x20'; + if (d2s['name']) { + d2t += d2s[dol(0x1365)]; + } + if (d2s['internalSubset']) { + d2t += d2s['internalSubset']; + } + if (d2s['publicId']) { + d2t += '\x22' + d2s['publicId'] + '\x22'; + } + if (d2s['systemId']) { + d2t += '\x22' + d2s['systemId'] + '\x22'; + } + d2t += '>'; + } + return d2t; + }; + var d2u = function(d2v, d2w, d2x) { + if (d2v && d2v['defaultView'] && (d2w !== d2v['defaultView']['pageXOffset'] || d2x !== d2v['defaultView']['pageYOffset'])) { + d2v['defaultView']['scrollTo'](d2w, d2x); + } + }; + var d2y = function(d2z) { + var d2A = d2z[0x0] + , d2B = d2z[0x1] + , d2C = d2z[0x2]; + d2A['scrollLeft'] = d2B; + d2A[dol(0x1366)] = d2C; + }; + var d2D = ':' + doo(0xcf8) + 'e'; + var d2E = ':' + doo(0xcf9) + 'r'; + var d2F = doj(0x41d); + var d2G = doj(0x41e); + var d2H = doj(0x41f); + var d2I = function(d2J) { + d2K(d2J, '.' + d2F + d2D + d2H + ('\x0a' + doo(0xcfa) + '.') + d2G + d2E + d2H); + }; + var d2K = function(d2L, d2M) { + var d2N = d2L['ownerDocument']; + if (d2N) { + var d2O = d2N['createElement']('s' + doo(0xcfb) + 'e'); + d2O['textContent'] = d2M; + d2L['appendChild'](d2O); + } + }; + var d2P; + (function(d2P) { + d2P[d2P['V' + doo(0xcfc) + 'R'] = 0x0] = 'V' + doo(0xcfd) + 'R'; + d2P[d2P['B' + doo(0xcfe) + 'E'] = 0x1] = 'B' + doo(0xcff) + 'E'; + }(d2P || (d2P = {}))); + var d2R = function(q, d2T) { + if (q['length'] === d2T['length']) { + return q['some'](function(d2U, cFL) { + return d2U === d2T[cFL]; + }); + } + return ![]; + }; + var d2W = function(d2X, d2Y, d2Z, d30, d31) { + return d2X['map'](function(d32, d33) { + switch (d33) { + case 0x0: + return d32['add'](d2Y, d2Z); + case 0x1: + return d32[dol(0x1367)](d2Y + d30, d2Z); + case 0x2: + return d32['add'](d2Y + d30, d2Z + d31); + case 0x3: + return d32['add'](d2Y, d2Z + d31); + } + return d32; + }); + }; + var d34 = function() { + function d34(d36, d37) { + this['type'] = d2P['VECTOR']; + this['x'] = d36; + this['y'] = d37; + } + d34['prototype'][dol(0x1368)] = function(d38, d39) { + return new d34(this['x'] + d38,this['y'] + d39); + } + ; + return d34; + }(); + var d3a = function(q, d3c, d3d) { + return new d34(q['x'] + (d3c['x'] - q['x']) * d3d,q['y'] + (d3c['y'] - q['y']) * d3d); + }; + var d3e = function() { + function d3e(d3g, d3h, d3i, d3j) { + this['type'] = d2P['BEZIER_CURVE']; + this['start'] = d3g; + this['startControl'] = d3h; + this['endControl'] = d3i; + this['end'] = d3j; + } + d3e['prototype']['subdivide'] = function(d3k, d3l) { + var d3m = d3a(this['start'], this['startControl'], d3k); + var d3n = d3a(this['startControl'], this['endControl'], d3k); + var d3o = d3a(this['endControl'], this['end'], d3k); + var d3p = d3a(d3m, d3n, d3k); + var d3q = d3a(d3n, d3o, d3k); + var d3r = d3a(d3p, d3q, d3k); + return d3l ? new d3e(this['start'],d3m,d3p,d3r) : new d3e(d3r,d3q,d3o,this['end']); + } + ; + d3e['prototype']['add'] = function(d3s, d3t) { + return new d3e(this['start']['add'](d3s, d3t),this['startControl'][dol(0x1369)](d3s, d3t),this['endControl'][dol(0x136a)](d3s, d3t),this['end']['add'](d3s, d3t)); + } + ; + d3e['prototype']['reverse'] = function() { + return new d3e(this['end'],this['endControl'],this['startControl'],this['start']); + } + ; + return d3e; + }(); + var d3u = function(d3v) { + return d3v['type'] === d2P['BEZIER_CURVE']; + }; + var d3w = function() { + function d3w(d3y) { + var d3z = d3y['styles']; + var d3A = d3y['bounds']; + var d3B = cMP(d3z['borderTopLeftRadius'], d3A[dol(0x136b)], d3A['height']) + , d3C = d3B[0x0] + , d3D = d3B[0x1]; + var d3E = cMP(d3z['borderTopRightRadius'], d3A['width'], d3A['height']) + , d3F = d3E[0x0] + , d3G = d3E[0x1]; + var d3H = cMP(d3z['borderBottomRightRadius'], d3A['width'], d3A['height']) + , d3I = d3H[0x0] + , d3J = d3H[0x1]; + var d3K = cMP(d3z['borderBottomLeftRadius'], d3A['width'], d3A['height']) + , d3L = d3K[0x0] + , d3M = d3K[0x1]; + var d3N = []; + d3N[dol(0x136c)]((d3C + d3F) / d3A['width']); + d3N['push']((d3L + d3I) / d3A['width']); + d3N['push']((d3D + d3M) / d3A['height']); + d3N['push']((d3G + d3J) / d3A['height']); + var d3O = Math['max']['apply'](Math, d3N); + if (d3O > 0x1) { + d3C /= d3O; + d3D /= d3O; + d3F /= d3O; + d3G /= d3O; + d3I /= d3O; + d3J /= d3O; + d3L /= d3O; + d3M /= d3O; + } + var d3P = d3A['width'] - d3F; + var d3Q = d3A['height'] - d3J; + var d3R = d3A['width'] - d3I; + var d3S = d3A['height'] - d3M; + var cTJ = d3z['borderTopWidth']; + var cTK = d3z['borderRightWidth']; + var cTL = d3z['borderBottomWidth']; + var cTM = d3z[dol(0x136d)]; + var cUz = cMV(d3z['paddingTop'], d3y['bounds']['width']); + var cUA = cMV(d3z['paddingRight'], d3y['bounds']['width']); + var cUB = cMV(d3z['paddingBottom'], d3y['bounds']['width']); + var cUC = cMV(d3z['paddingLeft'], d3y['bounds']['width']); + this['topLeftBorderBox'] = d3C > 0x0 || d3D > 0x0 ? d43(d3A['left'], d3A['top'], d3C, d3D, d41['TOP_LEFT']) : new d34(d3A['left'],d3A['top']); + this['topRightBorderBox'] = d3F > 0x0 || d3G > 0x0 ? d43(d3A['left'] + d3P, d3A['top'], d3F, d3G, d41['TOP_RIGHT']) : new d34(d3A['left'] + d3A['width'],d3A['top']); + this['bottomRightBorderBox'] = d3I > 0x0 || d3J > 0x0 ? d43(d3A['left'] + d3R, d3A['top'] + d3Q, d3I, d3J, d41['BOTTOM_RIGHT']) : new d34(d3A['left'] + d3A[dol(0x136e)],d3A['top'] + d3A['height']); + this['bottomLeftBorderBox'] = d3L > 0x0 || d3M > 0x0 ? d43(d3A['left'], d3A['top'] + d3S, d3L, d3M, d41['BOTTOM_LEFT']) : new d34(d3A['left'],d3A['top'] + d3A['height']); + this['topLeftPaddingBox'] = d3C > 0x0 || d3D > 0x0 ? d43(d3A['left'] + cTM, d3A['top'] + cTJ, Math['max'](0x0, d3C - cTM), Math['max'](0x0, d3D - cTJ), d41['TOP_LEFT']) : new d34(d3A['left'] + cTM,d3A['top'] + cTJ); + this['topRightPaddingBox'] = d3F > 0x0 || d3G > 0x0 ? d43(d3A['left'] + Math['min'](d3P, d3A['width'] + cTM), d3A['top'] + cTJ, d3P > d3A['width'] + cTM ? 0x0 : d3F - cTM, d3G - cTJ, d41[dol(0x136f)]) : new d34(d3A['left'] + d3A['width'] - cTK,d3A['top'] + cTJ); + this['bottomRightPaddingBox'] = d3I > 0x0 || d3J > 0x0 ? d43(d3A['left'] + Math['min'](d3R, d3A['width'] - cTM), d3A['top'] + Math['min'](d3Q, d3A['height'] + cTJ), Math['max'](0x0, d3I - cTK), d3J - cTL, d41['BOTTOM_RIGHT']) : new d34(d3A['left'] + d3A['width'] - cTK,d3A['top'] + d3A['height'] - cTL); + this['bottomLeftPaddingBox'] = d3L > 0x0 || d3M > 0x0 ? d43(d3A['left'] + cTM, d3A['top'] + d3S, Math['max'](0x0, d3L - cTM), d3M - cTL, d41['BOTTOM_LEFT']) : new d34(d3A['left'] + cTM,d3A['top'] + d3A['height'] - cTL); + this['topLeftContentBox'] = d3C > 0x0 || d3D > 0x0 ? d43(d3A['left'] + cTM + cUC, d3A['top'] + cTJ + cUz, Math['max'](0x0, d3C - (cTM + cUC)), Math['max'](0x0, d3D - (cTJ + cUz)), d41[dol(0x1370)]) : new d34(d3A['left'] + cTM + cUC,d3A['top'] + cTJ + cUz); + this['topRightContentBox'] = d3F > 0x0 || d3G > 0x0 ? d43(d3A['left'] + Math['min'](d3P, d3A[dol(0x1371)] + cTM + cUC), d3A['top'] + cTJ + cUz, d3P > d3A['width'] + cTM + cUC ? 0x0 : d3F - cTM + cUC, d3G - (cTJ + cUz), d41['TOP_RIGHT']) : new d34(d3A['left'] + d3A['width'] - (cTK + cUA),d3A['top'] + cTJ + cUz); + this['bottomRightContentBox'] = d3I > 0x0 || d3J > 0x0 ? d43(d3A['left'] + Math['min'](d3R, d3A['width'] - (cTM + cUC)), d3A[dol(0x1372)] + Math[dol(0x1373)](d3Q, d3A['height'] + cTJ + cUz), Math['max'](0x0, d3I - (cTK + cUA)), d3J - (cTL + cUB), d41['BOTTOM_RIGHT']) : new d34(d3A[dol(0x1374)] + d3A['width'] - (cTK + cUA),d3A['top'] + d3A['height'] - (cTL + cUB)); + this['bottomLeftContentBox'] = d3L > 0x0 || d3M > 0x0 ? d43(d3A['left'] + cTM + cUC, d3A['top'] + d3S, Math['max'](0x0, d3L - (cTM + cUC)), d3M - (cTL + cUB), d41[dol(0x1375)]) : new d34(d3A['left'] + cTM + cUC,d3A['top'] + d3A['height'] - (cTL + cUB)); + } + return d3w; + }(); + var d41; + (function(d41) { + d41[d41['T' + doo(0xd00) + 'T'] = 0x0] = 'T' + doo(0xd01) + 'T'; + d41[d41['T' + doo(0xd02) + 'T'] = 0x1] = 'T' + doo(0xd03) + 'T'; + d41[d41['B' + doo(0xd04) + 'T'] = 0x2] = 'B' + doo(0xd05) + 'T'; + d41[d41['B' + doo(0xd06) + 'T'] = 0x3] = 'B' + doo(0xd07) + 'T'; + }(d41 || (d41 = {}))); + var d43 = function(d44, d45, d46, d47, cUJ) { + var d49 = 0x4 * ((Math['sqrt'](0x2) - 0x1) / 0x3); + var d4a = d46 * d49; + var d4b = d47 * d49; + var d4c = d44 + d46; + var d4d = d45 + d47; + switch (cUJ) { + case d41['TOP_LEFT']: + return new d3e(new d34(d44,d4d),new d34(d44,d4d - d4b),new d34(d4c - d4a,d45),new d34(d4c,d45)); + case d41['TOP_RIGHT']: + return new d3e(new d34(d44,d45),new d34(d44 + d4a,d45),new d34(d4c,d4d - d4b),new d34(d4c,d4d)); + case d41['BOTTOM_RIGHT']: + return new d3e(new d34(d4c,d45),new d34(d4c,d45 + d4b),new d34(d44 + d4a,d4d),new d34(d44,d4d)); + case d41['BOTTOM_LEFT']: + default: + return new d3e(new d34(d4c,d4d),new d34(d4c - d4a,d4d),new d34(d44,d45 + d4b),new d34(d44,d45)); + } + }; + var d4e = function(d4f) { + return [d4f[dol(0x1376)], d4f[dol(0x1377)], d4f['bottomRightBorderBox'], d4f['bottomLeftBorderBox']]; + }; + var d4g = function(d4h) { + return [d4h['topLeftContentBox'], d4h['topRightContentBox'], d4h['bottomRightContentBox'], d4h['bottomLeftContentBox']]; + }; + var d4i = function(d4j) { + return [d4j['topLeftPaddingBox'], d4j['topRightPaddingBox'], d4j['bottomRightPaddingBox'], d4j['bottomLeftPaddingBox']]; + }; + var d4k = function() { + function d4k(d4m, d4n, cUZ) { + this['type'] = 0x0; + this['offsetX'] = d4m; + this['offsetY'] = d4n; + this['matrix'] = cUZ; + this['target'] = 0x2 | 0x4; + } + return d4k; + }(); + var d4p = function() { + function d4p(d4r, d4s) { + this['type'] = 0x1; + this['target'] = d4s; + this['path'] = d4r; + } + return d4p; + }(); + var d4t = function(d4u) { + return d4u[dol(0x1378)] === 0x0; + }; + var d4v = function(d4w) { + return d4w['type'] === 0x1; + }; + var d4x = function() { + function d4x(d4z) { + this['element'] = d4z; + this['inlineLevel'] = []; + this['nonInlineLevel'] = []; + this['negativeZIndex'] = []; + this['zeroOrAutoZIndexOrTransformedOrOpacity'] = []; + this['positiveZIndex'] = []; + this['nonPositionedFloats'] = []; + this['nonPositionedInlineLevel'] = []; + } + return d4x; + }(); + var d4A = function() { + function d4A(d4C, d4D) { + this['container'] = d4C; + this['effects'] = d4D['slice'](0x0); + this['curves'] = new d3w(d4C); + if (d4C['styles']['transform'] !== null) { + var d4E = d4C['bounds']['left'] + d4C['styles']['transformOrigin'][0x0]['number']; + var d4F = d4C[dol(0x1379)]['top'] + d4C['styles'][dol(0x137a)][0x1]['number']; + var cUZ = d4C['styles']['transform']; + this['effects']['push'](new d4k(d4E,d4F,cUZ)); + } + if (d4C['styles']['overflowX'] !== cUo['VISIBLE']) { + var d4H = d4e(this['curves']); + var d4I = d4i(this['curves']); + if (d2R(d4H, d4I)) { + this['effects']['push'](new d4p(d4H,0x2 | 0x4)); + } else { + this['effects']['push'](new d4p(d4H,0x2)); + this['effects']['push'](new d4p(d4I,0x4)); + } + } + } + d4A['prototype']['getParentEffects'] = function() { + var d4J = this['effects']['slice'](0x0); + if (this['container']['styles']['overflowX'] !== cUo['VISIBLE']) { + var d4K = d4e(this['curves']); + var d4L = d4i(this['curves']); + if (!d2R(d4K, d4L)) { + d4J['push'](new d4p(d4L,0x2 | 0x4)); + } + } + return d4J; + } + ; + return d4A; + }(); + var d4M = function(d4N, d4O, d4P, d4Q) { + d4N['container']['elements']['forEach'](function(d4R) { + var d4S = cW2(d4R['flags'], 0x4); + var cZ8 = cW2(d4R['flags'], 0x2); + var d4U = new d4A(d4R,d4N['getParentEffects']()); + if (cW2(d4R['styles']['display'], 0x800)) { + d4Q['push'](d4U); + } + var d4V = cW2(d4R['flags'], 0x8) ? [] : d4Q; + if (d4S || cZ8) { + var d4W = d4S || d4R['styles'][dol(0x137b)]() ? d4P : d4O; + var d4X = new d4x(d4U); + if (d4R['styles']['isPositioned']() || d4R['styles']['opacity'] < 0x1 || d4R['styles']['isTransformed']()) { + var d4Y = d4R['styles']['zIndex']['order']; + if (d4Y < 0x0) { + var d4Z = 0x0; + d4W['negativeZIndex']['some'](function(d50, cFL) { + if (d4Y > d50['element']['container']['styles']['zIndex']['order']) { + d4Z = cFL; + return ![]; + } else if (d4Z > 0x0) { + return !![]; + } + return ![]; + }); + d4W['negativeZIndex']['splice'](d4Z, 0x0, d4X); + } else if (d4Y > 0x0) { + var d52 = 0x0; + d4W['positiveZIndex']['some'](function(d53, cFL) { + if (d4Y >= d53['element']['container']['styles']['zIndex']['order']) { + d52 = cFL + 0x1; + return ![]; + } else if (d52 > 0x0) { + return !![]; + } + return ![]; + }); + d4W[dol(0x137c)]['splice'](d52, 0x0, d4X); + } else { + d4W['zeroOrAutoZIndexOrTransformedOrOpacity']['push'](d4X); + } + } else { + if (d4R['styles']['isFloating']()) { + d4W['nonPositionedFloats']['push'](d4X); + } else { + d4W['nonPositionedInlineLevel'][dol(0x137d)](d4X); + } + } + d4M(d4U, d4X, d4S ? d4X : d4P, d4V); + } else { + if (d4R['styles']['isInlineLevel']()) { + d4O['inlineLevel']['push'](d4U); + } else { + d4O['nonInlineLevel']['push'](d4U); + } + d4M(d4U, d4O, d4P, d4V); + } + if (cW2(d4R['flags'], 0x8)) { + d55(d4R, d4V); + } + }); + }; + var d55 = function(d56, d57) { + var d58 = d56 instanceof cYb ? d56['start'] : 0x1; + var d59 = d56 instanceof cYb ? d56[dol(0x137e)] : ![]; + for (var cFL = 0x0; cFL < d57[dol(0x137f)]; cFL++) { + var d5b = d57[cFL]; + if (d5b['container']instanceof cY6 && typeof d5b['container'][dol(0x1380)] === 'n' + doo(0xd08) + 'r' && d5b['container']['value'] !== 0x0) { + d58 = d5b['container']['value']; + } + d5b['listValue'] = d0S(d58, d5b[dol(0x1381)][dol(0x1382)]['listStyleType'], !![]); + d58 += d59 ? -0x1 : 0x1; + } + }; + var d5c = function(d5d) { + var d5e = new d4A(d5d,[]); + var d5f = new d4x(d5e); + var d5g = []; + d4M(d5e, d5f, d5f, d5g); + d55(d5e[dol(0x1383)], d5g); + return d5f; + }; + var d5h = function(d5i, d5j) { + switch (d5j) { + case 0x0: + return d5k(d5i['topLeftBorderBox'], d5i['topLeftPaddingBox'], d5i['topRightBorderBox'], d5i['topRightPaddingBox']); + case 0x1: + return d5k(d5i['topRightBorderBox'], d5i['topRightPaddingBox'], d5i['bottomRightBorderBox'], d5i['bottomRightPaddingBox']); + case 0x2: + return d5k(d5i['bottomRightBorderBox'], d5i['bottomRightPaddingBox'], d5i['bottomLeftBorderBox'], d5i['bottomLeftPaddingBox']); + case 0x3: + default: + return d5k(d5i['bottomLeftBorderBox'], d5i['bottomLeftPaddingBox'], d5i['topLeftBorderBox'], d5i['topLeftPaddingBox']); + } + }; + var d5k = function(d5l, d5m, d5n, d5o) { + var d5p = []; + if (d3u(d5l)) { + d5p['push'](d5l['subdivide'](0.5, ![])); + } else { + d5p['push'](d5l); + } + if (d3u(d5n)) { + d5p[dol(0x1384)](d5n['subdivide'](0.5, !![])); + } else { + d5p['push'](d5n); + } + if (d3u(d5o)) { + d5p['push'](d5o['subdivide'](0.5, !![])['reverse']()); + } else { + d5p[dol(0x1385)](d5o); + } + if (d3u(d5m)) { + d5p['push'](d5m[dol(0x1386)](0.5, ![])['reverse']()); + } else { + d5p['push'](d5m); + } + return d5p; + }; + var d5q = function(d5r) { + var d5s = d5r['bounds']; + var d5t = d5r['styles']; + return d5s['add'](d5t['borderLeftWidth'], d5t['borderTopWidth'], -(d5t[dol(0x1387)] + d5t['borderLeftWidth']), -(d5t[dol(0x1388)] + d5t['borderBottomWidth'])); + }; + var d5u = function(d5v) { + var d5w = d5v['styles']; + var d5x = d5v[dol(0x1389)]; + var cUC = cMV(d5w[dol(0x138a)], d5x['width']); + var cUA = cMV(d5w['paddingRight'], d5x[dol(0x138b)]); + var cUz = cMV(d5w['paddingTop'], d5x['width']); + var cUB = cMV(d5w['paddingBottom'], d5x['width']); + return d5x['add'](cUC + d5w['borderLeftWidth'], cUz + d5w[dol(0x138c)], -(d5w['borderRightWidth'] + d5w['borderLeftWidth'] + cUC + cUA), -(d5w['borderTopWidth'] + d5w['borderBottomWidth'] + cUz + cUB)); + }; + var d5C = function(cSZ, d5E) { + if (cSZ === 0x0) { + return d5E['bounds']; + } + if (cSZ === 0x2) { + return d5u(d5E); + } + return d5q(d5E); + }; + var d5F = function(cOn, d5H) { + if (cOn === cOl['BORDER_BOX']) { + return d5H['bounds']; + } + if (cOn === cOl['CONTENT_BOX']) { + return d5u(d5H); + } + return d5q(d5H); + }; + var d5I = function(d5J, d5K, d5L) { + var d5M = d5C(d6l(d5J['styles']['backgroundOrigin'], d5K), d5J); + var d5N = d5F(d6l(d5J[dol(0x138d)]['backgroundClip'], d5K), d5J); + var d5O = d5Z(d6l(d5J['styles']['backgroundSize'], d5K), d5L, d5M); + var d5P = d5O[0x0] + , d5Q = d5O[0x1]; + var cUJ = cMP(d6l(d5J['styles']['backgroundPosition'], d5K), d5M['width'] - d5P, d5M['height'] - d5Q); + var d5S = d6p(d6l(d5J['styles']['backgroundRepeat'], d5K), cUJ, d5O, d5M, d5N); + var d5T = Math['round'](d5M['left'] + cUJ[0x0]); + var d5U = Math['round'](d5M['top'] + cUJ[0x1]); + return [d5S, d5T, d5U, d5P, d5Q]; + }; + var d5V = function(d5W) { + return cMn(d5W) && d5W['value'] === cTd['AUTO']; + }; + var d5X = function(d5Y) { + return typeof d5Y === 'n' + doo(0xd09) + 'r'; + }; + var d5Z = function(d60, d61, d62) { + var d63 = d61[0x0] + , d64 = d61[0x1] + , d65 = d61[0x2]; + var d66 = d60[0x0] + , d67 = d60[0x1]; + if (cMI(d66) && d67 && cMI(d67)) { + return [cMV(d66, d62['width']), cMV(d67, d62[dol(0x138e)])]; + } + var d68 = d5X(d65); + if (cMn(d66) && (d66['value'] === cTd['CONTAIN'] || d66['value'] === cTd['COVER'])) { + if (d5X(d65)) { + var d69 = d62['width'] / d62['height']; + return d69 < d65 !== (d66['value'] === cTd['COVER']) ? [d62['width'], d62['width'] / d65] : [d62['height'] * d65, d62['height']]; + } + return [d62['width'], d62['height']]; + } + var d6a = d5X(d63); + var d6b = d5X(d64); + var d6c = d6a || d6b; + if (d5V(d66) && (!d67 || d5V(d67))) { + if (d6a && d6b) { + return [d63, d64]; + } + if (!d68 && !d6c) { + return [d62['width'], d62['height']]; + } + if (d6c && d68) { + var d6d = d6a ? d63 : d64 * d65; + var d6e = d6b ? d64 : d63 / d65; + return [d6d, d6e]; + } + var d6f = d6a ? d63 : d62['width']; + var d6g = d6b ? d64 : d62['height']; + return [d6f, d6g]; + } + if (d68) { + var d6h = 0x0; + var d6i = 0x0; + if (cMI(d66)) { + d6h = cMV(d66, d62['width']); + } else if (cMI(d67)) { + d6i = cMV(d67, d62['height']); + } + if (d5V(d66)) { + d6h = d6i * d65; + } else if (!d67 || d5V(d67)) { + d6i = d6h / d65; + } + return [d6h, d6i]; + } + var d6j = null; + var d6k = null; + if (cMI(d66)) { + d6j = cMV(d66, d62['width']); + } else if (d67 && cMI(d67)) { + d6k = cMV(d67, d62['height']); + } + if (d6j !== null && (!d67 || d5V(d67))) { + d6k = d6a && d6b ? d6j / d63 * d64 : d62['height']; + } + if (d6k !== null && d5V(d66)) { + d6j = d6a && d6b ? d6k / d64 * d63 : d62['width']; + } + if (d6j !== null && d6k !== null) { + return [d6j, d6k]; + } + throw new Error(doj(0x420)); + }; + var d6l = function(d6m, d6n) { + var d6o = d6m[d6n]; + if (typeof d6o === 'u' + doo(0xd0a) + 'd') { + return d6m[0x0]; + } + return d6o; + }; + var d6p = function(d6q, d6r, d6s, d6t, d6u) { + var d6v = d6r[0x0] + , d6w = d6r[0x1]; + var d6x = d6s[0x0] + , d6y = d6s[0x1]; + switch (d6q) { + case cT5['REPEAT_X']: + return [new d34(Math['round'](d6t['left']),Math['round'](d6t['top'] + d6w)), new d34(Math['round'](d6t['left'] + d6t['width']),Math['round'](d6t[dol(0x138f)] + d6w)), new d34(Math['round'](d6t['left'] + d6t['width']),Math['round'](d6y + d6t['top'] + d6w)), new d34(Math['round'](d6t['left']),Math['round'](d6y + d6t['top'] + d6w))]; + case cT5['REPEAT_Y']: + return [new d34(Math['round'](d6t['left'] + d6v),Math['round'](d6t['top'])), new d34(Math['round'](d6t['left'] + d6v + d6x),Math['round'](d6t['top'])), new d34(Math['round'](d6t['left'] + d6v + d6x),Math['round'](d6t['height'] + d6t['top'])), new d34(Math['round'](d6t['left'] + d6v),Math['round'](d6t['height'] + d6t['top']))]; + case cT5['NO_REPEAT']: + return [new d34(Math['round'](d6t['left'] + d6v),Math['round'](d6t['top'] + d6w)), new d34(Math['round'](d6t['left'] + d6v + d6x),Math['round'](d6t['top'] + d6w)), new d34(Math['round'](d6t[dol(0x1390)] + d6v + d6x),Math['round'](d6t['top'] + d6w + d6y)), new d34(Math['round'](d6t['left'] + d6v),Math['round'](d6t['top'] + d6w + d6y))]; + default: + return [new d34(Math['round'](d6u['left']),Math['round'](d6u['top'])), new d34(Math['round'](d6u['left'] + d6u['width']),Math['round'](d6u['top'])), new d34(Math[dol(0x1391)](d6u['left'] + d6u['width']),Math['round'](d6u['height'] + d6u[dol(0x1392)])), new d34(Math['round'](d6u['left']),Math['round'](d6u['height'] + d6u['top']))]; + } + }; + var d6z = doj(0x421); + var d6A = 'H' + doo(0xd0b) + 't'; + var d6B = function() { + function d6B(d6D) { + this['_data'] = {}; + this['_document'] = d6D; + } + d6B['prototype']['parseMetrics'] = function(cVM, cVS) { + var d6G = this['_document']['createElement'](doh(0x191)); + var d6H = this['_document']['createElement'](doh(0x192)); + var d6I = this['_document']['createElement']('s' + doo(0xd0c) + 'n'); + var d6J = this['_document']['body']; + d6G[dol(0x1393)]['visibility'] = 'h' + doo(0xd0d) + 'n'; + d6G['style']['fontFamily'] = cVM; + d6G['style']['fontSize'] = cVS; + d6G['style']['margin'] = '0'; + d6G['style']['padding'] = '0'; + d6J['appendChild'](d6G); + d6H['src'] = d6z; + d6H['width'] = 0x1; + d6H['height'] = 0x1; + d6H['style']['margin'] = '0'; + d6H[dol(0x1394)]['padding'] = '0'; + d6H['style'][dol(0x1395)] = 'b' + doo(0xd0e) + 'e'; + d6I['style']['fontFamily'] = cVM; + d6I['style']['fontSize'] = cVS; + d6I['style']['margin'] = '0'; + d6I['style']['padding'] = '0'; + d6I['appendChild'](this['_document']['createTextNode'](d6A)); + d6G['appendChild'](d6I); + d6G['appendChild'](d6H); + var d6K = d6H[dol(0x1396)] - d6I['offsetTop'] + 0x2; + d6G['removeChild'](d6I); + d6G[dol(0x1397)](this['_document']['createTextNode'](d6A)); + d6G['style']['lineHeight'] = 'n' + doo(0xd0f) + 'l'; + d6H['style']['verticalAlign'] = 's' + doo(0xd10) + 'r'; + var d6L = d6H['offsetTop'] - d6G[dol(0x1398)] + 0x2; + d6J['removeChild'](d6G); + return { + 'baseline': d6K, + 'middle': d6L + }; + } + ; + d6B['prototype']['getMetrics'] = function(cVM, cVS) { + var d6O = cVM + '\x20' + cVS; + if (typeof this['_data'][d6O] === 'u' + doo(0xd11) + 'd') { + this['_data'][d6O] = this['parseMetrics'](cVM, cVS); + } + return this['_data'][d6O]; + } + ; + return d6B; + }(); + var d6P = 0x2710; + var d6Q = function() { + function d6Q(d6S) { + this['_activeEffects'] = []; + this['canvas'] = d6S['canvas'] ? d6S['canvas'] : document['createElement']('c' + doo(0xd12) + 's'); + this['ctx'] = this['canvas']['getContext'](doh(0x193)); + this['options'] = d6S; + if (!d6S['canvas']) { + this['canvas']['width'] = Math['floor'](d6S['width'] * d6S['scale']); + this['canvas']['height'] = Math['floor'](d6S['height'] * d6S['scale']); + this['canvas']['style'][dol(0x1399)] = d6S[dol(0x139a)] + doh(0x194); + this['canvas']['style']['height'] = d6S['height'] + doh(0x195); + } + this['fontMetrics'] = new d6B(document); + this['ctx'][dol(0x139b)](this['options']['scale'], this['options']['scale']); + this['ctx']['translate'](-d6S['x'] + d6S['scrollX'], -d6S['y'] + d6S['scrollY']); + this['ctx']['textBaseline'] = 'b' + doo(0xd13) + 'm'; + this['_activeEffects'] = []; + cQH[dol(0x139c)](d6S['id'])['debug'](doj(0x422) + d6S['width'] + 'x' + d6S['height'] + ('\x20' + doo(0xd14) + '\x20') + d6S['x'] + ',' + d6S['y'] + (')' + doo(0xd15) + '\x20') + d6S[dol(0x139d)]); + } + d6Q['prototype']['applyEffects'] = function(d6T, d6U) { + var d6V = this; + while (this['_activeEffects'][dol(0x139e)]) { + this['popEffect'](); + } + d6T['filter'](function(d6W) { + return cW2(d6W['target'], d6U); + })['forEach'](function(d6X) { + return d6V['applyEffect'](d6X); + }); + } + ; + d6Q['prototype']['applyEffect'] = function(d6Y) { + this['ctx']['save'](); + if (d4t(d6Y)) { + this['ctx'][dol(0x139f)](d6Y['offsetX'], d6Y['offsetY']); + this['ctx'][dol(0x13a0)](d6Y['matrix'][0x0], d6Y['matrix'][0x1], d6Y[dol(0x13a1)][0x2], d6Y['matrix'][0x3], d6Y['matrix'][0x4], d6Y['matrix'][0x5]); + this['ctx'][dol(0x13a2)](-d6Y['offsetX'], -d6Y['offsetY']); + } + if (d4v(d6Y)) { + this['path'](d6Y['path']); + this['ctx']['clip'](); + } + this['_activeEffects']['push'](d6Y); + } + ; + d6Q['prototype']['popEffect'] = function() { + this['_activeEffects']['pop'](); + this['ctx']['restore'](); + } + ; + d6Q['prototype']['renderStack'] = function(d6Z) { + return cEH(this, void 0x0, void 0x0, function() { + var d70; + return cEX(this, function(d71) { + switch (d71['label']) { + case 0x0: + d70 = d6Z['element']['container']['styles']; + if (!d70['isVisible']()) + return [0x3, 0x2]; + this['ctx'][dol(0x13a3)] = d70['opacity']; + return [0x4, this['renderStackContent'](d6Z)]; + case 0x1: + d71['sent'](); + d71[dol(0x13a4)] = 0x2; + case 0x2: + return [0x2]; + } + }); + }); + } + ; + d6Q['prototype']['renderNode'] = function(d72) { + return cEH(this, void 0x0, void 0x0, function() { + return cEX(this, function(d73) { + switch (d73['label']) { + case 0x0: + if (!d72[dol(0x13a5)]['styles']['isVisible']()) + return [0x3, 0x3]; + return [0x4, this['renderNodeBackgroundAndBorders'](d72)]; + case 0x1: + d73['sent'](); + return [0x4, this['renderNodeContent'](d72)]; + case 0x2: + d73['sent'](); + d73[dol(0x13a6)] = 0x3; + case 0x3: + return [0x2]; + } + }); + }); + } + ; + d6Q['prototype']['renderTextWithLetterSpacing'] = function(d74, cTY) { + var d76 = this; + if (cTY === 0x0) { + this['ctx']['fillText'](d74['text'], d74['bounds']['left'], d74['bounds']['top'] + d74['bounds'][dol(0x13a7)]); + } else { + var d77 = cFu(d74['text'])['map'](function(cFL) { + return cFB(cFL); + }); + d77['reduce'](function(d79, d7a) { + d76['ctx']['fillText'](d7a, d79, d74[dol(0x13a8)]['top'] + d74['bounds']['height']); + return d79 + d76['ctx']['measureText'](d7a)['width']; + }, d74['bounds'][dol(0x13a9)]); + } + } + ; + d6Q['prototype']['createFontStyle'] = function(d7b) { + var cVV = d7b['fontVariant'][dol(0x13aa)](function(d7d) { + return d7d === 'n' + doo(0xd16) + 'l' || d7d === 's' + doo(0xd17) + 's'; + })['join'](''); + var cVM = d7b['fontFamily'][dol(0x13ab)](doh(0x196)); + var cVS = cMj(d7b['fontSize']) ? '' + d7b['fontSize']['number'] + d7b['fontSize']['unit'] : d7b['fontSize']['number'] + doh(0x197); + return [[d7b['fontStyle'], cVV, d7b['fontWeight'], cVS, cVM]['join']('\x20'), cVM, cVS]; + } + ; + d6Q['prototype']['renderTextNode'] = function(d7g, d7h) { + return cEH(this, void 0x0, void 0x0, function() { + var d7i, d7j, cVM, cVS; + var d7m = this; + return cEX(this, function(d7n) { + d7i = this['createFontStyle'](d7h), + d7j = d7i[0x0], + cVM = d7i[0x1], + cVS = d7i[0x2]; + this['ctx']['font'] = d7j; + d7g['textBounds'][dol(0x13ac)](function(d7g) { + d7m['ctx']['fillStyle'] = cNw(d7h['color']); + d7m['renderTextWithLetterSpacing'](d7g, d7h['letterSpacing']); + var d7p = d7h['textShadow']; + if (d7p['length'] && d7g['text']['trim']()['length']) { + d7p['slice'](0x0)['reverse']()['forEach'](function(cUL) { + d7m['ctx']['shadowColor'] = cNw(cUL['color']); + d7m[dol(0x13ad)]['shadowOffsetX'] = cUL[dol(0x13ae)]['number'] * d7m['options']['scale']; + d7m['ctx'][dol(0x13af)] = cUL['offsetY']['number'] * d7m['options']['scale']; + d7m['ctx'][dol(0x13b0)] = cUL['blur']['number']; + d7m['ctx']['fillText'](d7g['text'], d7g[dol(0x13b1)]['left'], d7g['bounds']['top'] + d7g['bounds']['height']); + }); + d7m[dol(0x13b2)]['shadowColor'] = ''; + d7m['ctx']['shadowOffsetX'] = 0x0; + d7m['ctx']['shadowOffsetY'] = 0x0; + d7m['ctx']['shadowBlur'] = 0x0; + } + if (d7h['textDecorationLine']['length']) { + d7m['ctx']['fillStyle'] = cNw(d7h['textDecorationColor'] || d7h['color']); + d7h['textDecorationLine']['forEach'](function(cVI) { + switch (cVI) { + case 0x1: + var d7s = d7m['fontMetrics']['getMetrics'](cVM, cVS)[dol(0x13b3)]; + d7m[dol(0x13b4)]['fillRect'](d7g[dol(0x13b5)]['left'], Math['round'](d7g['bounds']['top'] + d7s), d7g['bounds']['width'], 0x1); + break; + case 0x2: + d7m['ctx']['fillRect'](d7g['bounds']['left'], Math['round'](d7g['bounds']['top']), d7g['bounds']['width'], 0x1); + break; + case 0x3: + var d7t = d7m['fontMetrics']['getMetrics'](cVM, cVS)['middle']; + d7m['ctx']['fillRect'](d7g['bounds']['left'], Math['ceil'](d7g['bounds']['top'] + d7t), d7g['bounds']['width'], 0x1); + break; + } + }); + } + }); + return [0x2]; + }); + }); + } + ; + d6Q['prototype'][dol(0x13b6)] = function(d7u, d7v, cSO) { + if (cSO && d7u['intrinsicWidth'] > 0x0 && d7u['intrinsicHeight'] > 0x0) { + var d7x = d5u(d7u); + var d7y = d4i(d7v); + this['path'](d7y); + this['ctx'][dol(0x13b7)](); + this['ctx']['clip'](); + this['ctx']['drawImage'](cSO, 0x0, 0x0, d7u['intrinsicWidth'], d7u['intrinsicHeight'], d7x['left'], d7x['top'], d7x['width'], d7x['height']); + this['ctx']['restore'](); + } + } + ; + d6Q['prototype'][dol(0x13b8)] = function(d7z) { + return cEH(this, void 0x0, void 0x0, function() { + var d7A, d7B, d7C, d7D, d7E, d7F, cSO, d7H, cSO, d7J, d7K, d7L, d7M, d7U, d7O, d7P, d7Q, cSO, d7S, d7T, d7U; + return cEX(this, function(d7V) { + switch (d7V['label']) { + case 0x0: + this['applyEffects'](d7z['effects'], 0x4); + d7A = d7z['container']; + d7B = d7z['curves']; + d7C = d7A['styles']; + d7D = 0x0, + d7E = d7A['textNodes']; + d7V['label'] = 0x1; + case 0x1: + if (!(d7D < d7E['length'])) + return [0x3, 0x4]; + d7F = d7E[d7D]; + return [0x4, this['renderTextNode'](d7F, d7C)]; + case 0x2: + d7V[dol(0x13b9)](); + d7V['label'] = 0x3; + case 0x3: + d7D++; + return [0x3, 0x1]; + case 0x4: + if (!(d7A instanceof cXQ)) + return [0x3, 0x8]; + d7V[dol(0x13ba)] = 0x5; + case 0x5: + d7V[dol(0x13bb)]['push']([0x5, 0x7, , 0x8]); + return [0x4, this['options']['cache'][dol(0x13bc)](d7A['src'])]; + case 0x6: + cSO = d7V['sent'](); + this['renderReplacedElement'](d7A, d7B, cSO); + return [0x3, 0x8]; + case 0x7: + d7H = d7V['sent'](); + cQH['getInstance'](this['options']['id'])['error']('E' + doo(0xd18) + '\x20' + d7A['src']); + return [0x3, 0x8]; + case 0x8: + if (d7A instanceof cXV) { + this['renderReplacedElement'](d7A, d7B, d7A['canvas']); + } + if (!(d7A instanceof cY0)) + return [0x3, 0xc]; + d7V['label'] = 0x9; + case 0x9: + d7V['trys']['push']([0x9, 0xb, , 0xc]); + return [0x4, this['options']['cache']['match'](d7A['svg'])]; + case 0xa: + cSO = d7V['sent'](); + this['renderReplacedElement'](d7A, d7B, cSO); + return [0x3, 0xc]; + case 0xb: + d7J = d7V['sent'](); + cQH['getInstance'](this['options']['id'])['error']('E' + doo(0xd19) + '\x20' + d7A['svg']['substring'](0x0, 0xff)); + return [0x3, 0xc]; + case 0xc: + if (!(d7A instanceof cYJ && d7A['tree'])) + return [0x3, 0xe]; + d7K = new d6Q({ + 'id': this['options']['id'], + 'scale': this['options']['scale'], + 'backgroundColor': d7A['backgroundColor'], + 'x': 0x0, + 'y': 0x0, + 'scrollX': 0x0, + 'scrollY': 0x0, + 'width': d7A['width'], + 'height': d7A['height'], + 'cache': this['options']['cache'], + 'windowWidth': d7A['width'], + 'windowHeight': d7A['height'] + }); + return [0x4, d7K['render'](d7A['tree'])]; + case 0xd: + d7L = d7V['sent'](); + if (d7A['width'] && d7A['height']) { + this['ctx']['drawImage'](d7L, 0x0, 0x0, d7A['width'], d7A['height'], d7A['bounds']['left'], d7A['bounds']['top'], d7A['bounds']['width'], d7A['bounds']['height']); + } + d7V['label'] = 0xe; + case 0xe: + if (d7A instanceof cYr) { + d7M = Math['min'](d7A['bounds'][dol(0x13bd)], d7A['bounds']['height']); + if (d7A['type'] === cYn) { + if (d7A['checked']) { + this['ctx']['save'](); + this['path']([new d34(d7A['bounds'][dol(0x13be)] + d7M * 0.39363,d7A['bounds']['top'] + d7M * 0.79), new d34(d7A[dol(0x13bf)]['left'] + d7M * 0.16,d7A['bounds']['top'] + d7M * 0.5549), new d34(d7A['bounds'][dol(0x13c0)] + d7M * 0.27347,d7A[dol(0x13c1)]['top'] + d7M * 0.44071), new d34(d7A['bounds']['left'] + d7M * 0.39694,d7A['bounds']['top'] + d7M * 0.5649), new d34(d7A['bounds']['left'] + d7M * 0.72983,d7A['bounds']['top'] + d7M * 0.23), new d34(d7A['bounds'][dol(0x13c2)] + d7M * 0.84,d7A['bounds']['top'] + d7M * 0.34085), new d34(d7A['bounds']['left'] + d7M * 0.39363,d7A['bounds']['top'] + d7M * 0.79)]); + this['ctx']['fillStyle'] = cNw(cYq); + this['ctx']['fill'](); + this['ctx']['restore'](); + } + } else if (d7A['type'] === cYo) { + if (d7A['checked']) { + this['ctx'][dol(0x13c3)](); + this['ctx']['beginPath'](); + this['ctx']['arc'](d7A['bounds']['left'] + d7M / 0x2, d7A['bounds']['top'] + d7M / 0x2, d7M / 0x4, 0x0, Math['PI'] * 0x2, !![]); + this['ctx']['fillStyle'] = cNw(cYq); + this['ctx']['fill'](); + this['ctx']['restore'](); + } + } + } + if (d9O(d7A) && d7A['value']['length']) { + this['ctx']['font'] = this['createFontStyle'](d7C)[0x0]; + this['ctx']['fillStyle'] = cNw(d7C['color']); + this['ctx']['textBaseline'] = 'm' + doo(0xd1a) + 'e'; + this['ctx'][dol(0x13c4)] = d9T(d7A['styles']['textAlign']); + d7U = d5u(d7A); + d7O = 0x0; + switch (d7A['styles']['textAlign']) { + case cUD['CENTER']: + d7O += d7U['width'] / 0x2; + break; + case cUD['RIGHT']: + d7O += d7U['width']; + break; + } + d7P = d7U[dol(0x13c5)](d7O, 0x0, 0x0, -d7U['height'] / 0x2 + 0x1); + this['ctx']['save'](); + this['path']([new d34(d7U['left'],d7U['top']), new d34(d7U['left'] + d7U['width'],d7U['top']), new d34(d7U['left'] + d7U['width'],d7U['top'] + d7U[dol(0x13c6)]), new d34(d7U['left'],d7U['top'] + d7U['height'])]); + this['ctx']['clip'](); + this['renderTextWithLetterSpacing'](new cX5(d7A['value'],d7P), d7C['letterSpacing']); + this['ctx']['restore'](); + this['ctx']['textBaseline'] = 'b' + doo(0xd1b) + 'm'; + this['ctx']['textAlign'] = 'l' + doo(0xd1c) + 't'; + } + if (!cW2(d7A['styles']['display'], 0x800)) + return [0x3, 0x14]; + if (!(d7A[dol(0x13c7)]['listStyleImage'] !== null)) + return [0x3, 0x13]; + d7Q = d7A['styles']['listStyleImage']; + if (!(d7Q['type'] === cSE['URL'])) + return [0x3, 0x12]; + cSO = void 0x0; + d7S = d7Q['url']; + d7V[dol(0x13c8)] = 0xf; + case 0xf: + d7V['trys']['push']([0xf, 0x11, , 0x12]); + return [0x4, this['options']['cache']['match'](d7S)]; + case 0x10: + cSO = d7V[dol(0x13c9)](); + this['ctx']['drawImage'](cSO, d7A['bounds']['left'] - (cSO['width'] + 0xa), d7A['bounds']['top']); + return [0x3, 0x12]; + case 0x11: + d7T = d7V['sent'](); + cQH['getInstance'](this['options']['id'])['error'](doj(0x423) + d7S); + return [0x3, 0x12]; + case 0x12: + return [0x3, 0x14]; + case 0x13: + if (d7z['listValue'] && d7A['styles']['listStyleType'] !== cUe['NONE']) { + this['ctx']['font'] = this['createFontStyle'](d7C)[0x0]; + this['ctx']['fillStyle'] = cNw(d7C['color']); + this['ctx']['textBaseline'] = 'm' + doo(0xd1d) + 'e'; + this['ctx']['textAlign'] = 'r' + doo(0xd1e) + 't'; + d7U = new cFb(d7A['bounds']['left'],d7A['bounds']['top'] + cMV(d7A['styles']['paddingTop'], d7A['bounds']['width']),d7A['bounds']['width'],cU5(d7C[dol(0x13ca)], d7C['fontSize']['number']) / 0x2 + 0x1); + this['renderTextWithLetterSpacing'](new cX5(d7z['listValue'],d7U), d7C[dol(0x13cb)]); + this['ctx']['textBaseline'] = 'b' + doo(0xd1f) + 'm'; + this['ctx']['textAlign'] = 'l' + doo(0xd20) + 't'; + } + d7V['label'] = 0x14; + case 0x14: + return [0x2]; + } + }); + }); + } + ; + d6Q['prototype']['renderStackContent'] = function(d7W) { + return cEH(this, void 0x0, void 0x0, function() { + var d7X, d7Y, d8h, d80, d81, d8h, d83, d84, d8h, d86, d87, d8h, d89, d8a, d8h, d8c, d8d, d8h, d8f, d8g, d8h; + return cEX(this, function(d8i) { + switch (d8i['label']) { + case 0x0: + return [0x4, this['renderNodeBackgroundAndBorders'](d7W['element'])]; + case 0x1: + d8i['sent'](); + d7X = 0x0, + d7Y = d7W['negativeZIndex']; + d8i['label'] = 0x2; + case 0x2: + if (!(d7X < d7Y['length'])) + return [0x3, 0x5]; + d8h = d7Y[d7X]; + return [0x4, this['renderStack'](d8h)]; + case 0x3: + d8i['sent'](); + d8i['label'] = 0x4; + case 0x4: + d7X++; + return [0x3, 0x2]; + case 0x5: + return [0x4, this['renderNodeContent'](d7W['element'])]; + case 0x6: + d8i['sent'](); + d80 = 0x0, + d81 = d7W['nonInlineLevel']; + d8i['label'] = 0x7; + case 0x7: + if (!(d80 < d81['length'])) + return [0x3, 0xa]; + d8h = d81[d80]; + return [0x4, this['renderNode'](d8h)]; + case 0x8: + d8i['sent'](); + d8i['label'] = 0x9; + case 0x9: + d80++; + return [0x3, 0x7]; + case 0xa: + d83 = 0x0, + d84 = d7W['nonPositionedFloats']; + d8i['label'] = 0xb; + case 0xb: + if (!(d83 < d84['length'])) + return [0x3, 0xe]; + d8h = d84[d83]; + return [0x4, this['renderStack'](d8h)]; + case 0xc: + d8i['sent'](); + d8i['label'] = 0xd; + case 0xd: + d83++; + return [0x3, 0xb]; + case 0xe: + d86 = 0x0, + d87 = d7W['nonPositionedInlineLevel']; + d8i['label'] = 0xf; + case 0xf: + if (!(d86 < d87['length'])) + return [0x3, 0x12]; + d8h = d87[d86]; + return [0x4, this['renderStack'](d8h)]; + case 0x10: + d8i['sent'](); + d8i['label'] = 0x11; + case 0x11: + d86++; + return [0x3, 0xf]; + case 0x12: + d89 = 0x0, + d8a = d7W['inlineLevel']; + d8i['label'] = 0x13; + case 0x13: + if (!(d89 < d8a[dol(0x13cc)])) + return [0x3, 0x16]; + d8h = d8a[d89]; + return [0x4, this['renderNode'](d8h)]; + case 0x14: + d8i['sent'](); + d8i['label'] = 0x15; + case 0x15: + d89++; + return [0x3, 0x13]; + case 0x16: + d8c = 0x0, + d8d = d7W['zeroOrAutoZIndexOrTransformedOrOpacity']; + d8i['label'] = 0x17; + case 0x17: + if (!(d8c < d8d['length'])) + return [0x3, 0x1a]; + d8h = d8d[d8c]; + return [0x4, this['renderStack'](d8h)]; + case 0x18: + d8i[dol(0x13cd)](); + d8i[dol(0x13ce)] = 0x19; + case 0x19: + d8c++; + return [0x3, 0x17]; + case 0x1a: + d8f = 0x0, + d8g = d7W['positiveZIndex']; + d8i['label'] = 0x1b; + case 0x1b: + if (!(d8f < d8g['length'])) + return [0x3, 0x1e]; + d8h = d8g[d8f]; + return [0x4, this['renderStack'](d8h)]; + case 0x1c: + d8i['sent'](); + d8i[dol(0x13cf)] = 0x1d; + case 0x1d: + d8f++; + return [0x3, 0x1b]; + case 0x1e: + return [0x2]; + } + }); + }); + } + ; + d6Q['prototype']['mask'] = function(d8j) { + this['ctx']['beginPath'](); + this['ctx'][dol(0x13d0)](0x0, 0x0); + this['ctx']['lineTo'](this['canvas']['width'], 0x0); + this['ctx']['lineTo'](this['canvas']['width'], this['canvas']['height']); + this['ctx']['lineTo'](0x0, this['canvas']['height']); + this['ctx'][dol(0x13d1)](0x0, 0x0); + this['formatPath'](d8j['slice'](0x0)['reverse']()); + this['ctx']['closePath'](); + } + ; + d6Q['prototype']['path'] = function(d8k) { + this['ctx']['beginPath'](); + this['formatPath'](d8k); + this['ctx']['closePath'](); + } + ; + d6Q['prototype'][dol(0x13d2)] = function(d8l) { + var d8m = this; + d8l['forEach'](function(d8n, d8o) { + var d8p = d3u(d8n) ? d8n['start'] : d8n; + if (d8o === 0x0) { + d8m[dol(0x13d3)]['moveTo'](d8p['x'], d8p['y']); + } else { + d8m['ctx']['lineTo'](d8p['x'], d8p['y']); + } + if (d3u(d8n)) { + d8m['ctx']['bezierCurveTo'](d8n['startControl']['x'], d8n['startControl']['y'], d8n['endControl']['x'], d8n['endControl']['y'], d8n['end']['x'], d8n['end']['y']); + } + }); + } + ; + d6Q['prototype'][dol(0x13d4)] = function(d8q, d8r, d8s, d8t) { + this['path'](d8q); + this['ctx']['fillStyle'] = d8r; + this['ctx']['translate'](d8s, d8t); + this['ctx']['fill'](); + this['ctx']['translate'](-d8s, -d8t); + } + ; + d6Q['prototype']['resizeImage'] = function(cSO, d8v, d8w) { + if (cSO['width'] === d8v && cSO['height'] === d8w) { + return cSO; + } + var d8x = this['canvas']['ownerDocument'][dol(0x13d5)]('c' + doo(0xd21) + 's'); + d8x['width'] = d8v; + d8x['height'] = d8w; + var d8y = d8x['getContext'](doh(0x198)); + d8y['drawImage'](cSO, 0x0, 0x0, cSO['width'], cSO[dol(0x13d6)], 0x0, 0x0, d8v, d8w); + return d8x; + } + ; + d6Q['prototype']['renderBackgroundImage'] = function(d8z) { + return cEH(this, void 0x0, void 0x0, function() { + var d8A, d8B, d8C, d8D, d8E, cSV; + return cEX(this, function(d8G) { + switch (d8G['label']) { + case 0x0: + d8A = d8z['styles']['backgroundImage']['length'] - 0x1; + d8B = function(cSV) { + var cSO, d8J, d8K, d8E, d99, d9f, d9g, d9c, d9d, d97, d8G, d99, d9f, d9g, d9c, d9d, d8Y, d8Z, d90, d91, d92, d93, d94, d95, d96, d97, d98, d99, d9a, d9b, d9c, d9d, cUJ, d9f, d9g, d9h, d9i, d9j, d9k, d9l, d9m, cJJ, d9o; + return cEX(this, function(d9p) { + switch (d9p[dol(0x13d7)]) { + case 0x0: + if (!(cSV['type'] === cSE['URL'])) + return [0x3, 0x5]; + cSO = void 0x0; + d8J = cSV['url']; + d9p['label'] = 0x1; + case 0x1: + d9p['trys']['push']([0x1, 0x3, , 0x4]); + return [0x4, d8C['options']['cache']['match'](d8J)]; + case 0x2: + cSO = d9p[dol(0x13d8)](); + return [0x3, 0x4]; + case 0x3: + d8K = d9p['sent'](); + cQH['getInstance'](d8C['options']['id'])['error'](doj(0x424) + d8J); + return [0x3, 0x4]; + case 0x4: + if (cSO) { + d8E = d5I(d8z, d8A, [cSO[dol(0x13d9)], cSO['height'], cSO['width'] / cSO['height']]), + d99 = d8E[0x0], + d9f = d8E[0x1], + d9g = d8E[0x2], + d9c = d8E[0x3], + d9d = d8E[0x4]; + d97 = d8C['ctx']['createPattern'](d8C['resizeImage'](cSO, d9c, d9d), 'r' + doo(0xd22) + 't'); + d8C['renderRepeat'](d99, d97, d9f, d9g); + } + return [0x3, 0x6]; + case 0x5: + if (cSG(cSV)) { + d8G = d5I(d8z, d8A, [null, null, null]), + d99 = d8G[0x0], + d9f = d8G[0x1], + d9g = d8G[0x2], + d9c = d8G[0x3], + d9d = d8G[0x4]; + d8Y = cOX(cSV['angle'], d9c, d9d), + d8Z = d8Y[0x0], + d90 = d8Y[0x1], + d91 = d8Y[0x2], + d92 = d8Y[0x3], + d93 = d8Y[0x4]; + d94 = document['createElement']('c' + doo(0xd23) + 's'); + d94['width'] = d9c; + d94['height'] = d9d; + d95 = d94[dol(0x13da)](doh(0x199)); + d96 = d95['createLinearGradient'](d90, d92, d91, d93); + cOv(cSV['stops'], d8Z)['forEach'](function(d9q) { + return d96['addColorStop'](d9q['stop'], cNw(d9q['color'])); + }); + d95['fillStyle'] = d96; + d95['fillRect'](0x0, 0x0, d9c, d9d); + if (d9c > 0x0 && d9d > 0x0) { + d97 = d8C['ctx']['createPattern'](d94, 'r' + doo(0xd24) + 't'); + d8C['renderRepeat'](d99, d97, d9f, d9g); + } + } else if (cSI(cSV)) { + d98 = d5I(d8z, d8A, [null, null, null]), + d99 = d98[0x0], + d9a = d98[0x1], + d9b = d98[0x2], + d9c = d98[0x3], + d9d = d98[0x4]; + cUJ = cSV['position']['length'] === 0x0 ? [cMN] : cSV['position']; + d9f = cMV(cUJ[0x0], d9c); + d9g = cMV(cUJ[cUJ['length'] - 0x1], d9d); + d9h = cPn(cSV, d9f, d9g, d9c, d9d), + d9i = d9h[0x0], + d9j = d9h[0x1]; + if (d9i > 0x0 && d9i > 0x0) { + d9k = d8C['ctx']['createRadialGradient'](d9a + d9f, d9b + d9g, 0x0, d9a + d9f, d9b + d9g, d9i); + cOv(cSV['stops'], d9i * 0x2)['forEach'](function(d9r) { + return d9k['addColorStop'](d9r['stop'], cNw(d9r[dol(0x13db)])); + }); + d8C['path'](d99); + d8C['ctx']['fillStyle'] = d9k; + if (d9i !== d9j) { + d9l = d8z[dol(0x13dc)]['left'] + 0.5 * d8z['bounds']['width']; + d9m = d8z['bounds'][dol(0x13dd)] + 0.5 * d8z['bounds']['height']; + cJJ = d9j / d9i; + d9o = 0x1 / cJJ; + d8C[dol(0x13de)]['save'](); + d8C['ctx']['translate'](d9l, d9m); + d8C['ctx']['transform'](0x1, 0x0, 0x0, cJJ, 0x0, 0x0); + d8C['ctx']['translate'](-d9l, -d9m); + d8C['ctx']['fillRect'](d9a, d9o * (d9b - d9m) + d9m, d9c, d9d * d9o); + d8C['ctx']['restore'](); + } else { + d8C['ctx']['fill'](); + } + } + } + d9p['label'] = 0x6; + case 0x6: + d8A--; + return [0x2]; + } + }); + } + ; + d8C = this; + d8D = 0x0, + d8E = d8z['styles']['backgroundImage']['slice'](0x0)['reverse'](); + d8G['label'] = 0x1; + case 0x1: + if (!(d8D < d8E['length'])) + return [0x3, 0x4]; + cSV = d8E[d8D]; + return [0x5, d8B(cSV)]; + case 0x2: + d8G['sent'](); + d8G['label'] = 0x3; + case 0x3: + d8D++; + return [0x3, 0x1]; + case 0x4: + return [0x2]; + } + }); + }); + } + ; + d6Q['prototype']['renderBorder'] = function(cNc, d9t, d9u) { + return cEH(this, void 0x0, void 0x0, function() { + return cEX(this, function(d9v) { + this['path'](d5h(d9u, d9t)); + this['ctx']['fillStyle'] = cNw(cNc); + this['ctx']['fill'](); + return [0x2]; + }); + }); + } + ; + d6Q['prototype']['renderNodeBackgroundAndBorders'] = function(d9w) { + return cEH(this, void 0x0, void 0x0, function() { + var d9x, d9y, d9z, d9A, d9B, d9C, d9D, d9E; + var d9F = this; + return cEX(this, function(d9G) { + switch (d9G['label']) { + case 0x0: + this['applyEffects'](d9w['effects'], 0x2); + d9x = d9w['container']['styles']; + d9y = !cNu(d9x['backgroundColor']) || d9x['backgroundImage']['length']; + d9z = [{ + 'style': d9x['borderTopStyle'], + 'color': d9x['borderTopColor'] + }, { + 'style': d9x['borderRightStyle'], + 'color': d9x['borderRightColor'] + }, { + 'style': d9x['borderBottomStyle'], + 'color': d9x['borderBottomColor'] + }, { + 'style': d9x['borderLeftStyle'], + 'color': d9x['borderLeftColor'] + }]; + d9A = d9Q(d6l(d9x['backgroundClip'], 0x0), d9w['curves']); + if (!(d9y || d9x['boxShadow']['length'])) + return [0x3, 0x2]; + this['ctx']['save'](); + this['path'](d9A); + this['ctx']['clip'](); + if (!cNu(d9x['backgroundColor'])) { + this['ctx']['fillStyle'] = cNw(d9x[dol(0x13df)]); + this['ctx'][dol(0x13e0)](); + } + return [0x4, this['renderBackgroundImage'](d9w['container'])]; + case 0x1: + d9G['sent'](); + this['ctx'][dol(0x13e1)](); + d9x['boxShadow'][dol(0x13e2)](0x0)['reverse']()['forEach'](function(d9H) { + d9F['ctx']['save'](); + var d9I = d4e(d9w['curves']); + var d9J = d9H['inset'] ? 0x0 : d6P; + var d9K = d2W(d9I, -d9J + (d9H['inset'] ? 0x1 : -0x1) * d9H['spread'][dol(0x13e3)], (d9H['inset'] ? 0x1 : -0x1) * d9H[dol(0x13e4)][dol(0x13e5)], d9H['spread']['number'] * (d9H['inset'] ? -0x2 : 0x2), d9H['spread']['number'] * (d9H['inset'] ? -0x2 : 0x2)); + if (d9H['inset']) { + d9F[dol(0x13e6)](d9I); + d9F['ctx']['clip'](); + d9F['mask'](d9K); + } else { + d9F['mask'](d9I); + d9F['ctx']['clip'](); + d9F['path'](d9K); + } + d9F[dol(0x13e7)][dol(0x13e8)] = d9H['offsetX'][dol(0x13e9)] + d9J; + d9F['ctx']['shadowOffsetY'] = d9H['offsetY']['number']; + d9F['ctx']['shadowColor'] = cNw(d9H['color']); + d9F['ctx'][dol(0x13ea)] = d9H['blur']['number']; + d9F['ctx']['fillStyle'] = d9H['inset'] ? cNw(d9H['color']) : 'r' + doo(0xd25) + ')'; + d9F['ctx']['fill'](); + d9F['ctx']['restore'](); + }); + d9G['label'] = 0x2; + case 0x2: + d9B = 0x0; + d9C = 0x0, + d9D = d9z; + d9G['label'] = 0x3; + case 0x3: + if (!(d9C < d9D['length'])) + return [0x3, 0x7]; + d9E = d9D[d9C]; + if (!(d9E['style'] !== cTx[dol(0x13eb)] && !cNu(d9E['color']))) + return [0x3, 0x5]; + return [0x4, this['renderBorder'](d9E['color'], d9B, d9w['curves'])]; + case 0x4: + d9G['sent'](); + d9G['label'] = 0x5; + case 0x5: + d9B++; + d9G['label'] = 0x6; + case 0x6: + d9C++; + return [0x3, 0x3]; + case 0x7: + return [0x2]; + } + }); + }); + } + ; + d6Q['prototype'][dol(0x13ec)] = function(d9L) { + return cEH(this, void 0x0, void 0x0, function() { + var d9M; + return cEX(this, function(d9N) { + switch (d9N['label']) { + case 0x0: + if (this['options']['backgroundColor']) { + this['ctx']['fillStyle'] = cNw(this['options']['backgroundColor']); + this['ctx'][dol(0x13ed)](this['options']['x'] - this['options']['scrollX'], this['options']['y'] - this['options']['scrollY'], this['options']['width'], this['options']['height']); + } + d9M = d5c(d9L); + return [0x4, this['renderStack'](d9M)]; + case 0x1: + d9N['sent'](); + this['applyEffects']([], 0x2); + return [0x2, this['canvas']]; + } + }); + }); + } + ; + return d6Q; + }(); + var d9O = function(d9P) { + if (d9P instanceof cYC) { + return !![]; + } else if (d9P instanceof cYw) { + return !![]; + } else if (d9P instanceof cYr && d9P['type'] !== cYo && d9P['type'] !== cYn) { + return !![]; + } + return ![]; + }; + var d9Q = function(d9R, d9S) { + switch (d9R) { + case cOl['BORDER_BOX']: + return d4e(d9S); + case cOl['CONTENT_BOX']: + return d4g(d9S); + case cOl['PADDING_BOX']: + default: + return d4i(d9S); + } + }; + var d9T = function(cUF) { + switch (cUF) { + case cUD['CENTER']: + return 'c' + doo(0xd26) + 'r'; + case cUD['RIGHT']: + return 'r' + doo(0xd27) + 't'; + case cUD['LEFT']: + default: + return 'l' + doo(0xd28) + 't'; + } + }; + var d9V = function() { + function d9V(d9X) { + this['canvas'] = d9X['canvas'] ? d9X['canvas'] : document['createElement']('c' + doo(0xd29) + 's'); + this['ctx'] = this['canvas']['getContext'](doh(0x19a)); + this['options'] = d9X; + this['canvas']['width'] = Math[dol(0x13ee)](d9X['width'] * d9X[dol(0x13ef)]); + this['canvas']['height'] = Math['floor'](d9X[dol(0x13f0)] * d9X['scale']); + this['canvas']['style']['width'] = d9X['width'] + doh(0x19b); + this['canvas']['style']['height'] = d9X['height'] + doh(0x19c); + this['ctx']['scale'](this['options'][dol(0x13f1)], this['options']['scale']); + this['ctx']['translate'](-d9X['x'] + d9X['scrollX'], -d9X['y'] + d9X['scrollY']); + cQH['getInstance'](d9X['id'])['debug'](doj(0x425) + d9X['width'] + 'x' + d9X['height'] + ('\x20' + doo(0xd2a) + '\x20') + d9X['x'] + ',' + d9X['y'] + (')' + doo(0xd2b) + '\x20') + d9X['scale']); + } + d9V['prototype']['render'] = function(d9Y) { + return cEH(this, void 0x0, void 0x0, function() { + var d9Z, da0; + return cEX(this, function(da1) { + switch (da1['label']) { + case 0x0: + d9Z = cQm(Math['max'](this['options']['windowWidth'], this['options']['width']) * this['options']['scale'], Math[dol(0x13f2)](this['options']['windowHeight'], this['options']['height']) * this['options']['scale'], this['options']['scrollX'] * this['options'][dol(0x13f3)], this['options']['scrollY'] * this['options']['scale'], d9Y); + return [0x4, da2(d9Z)]; + case 0x1: + da0 = da1['sent'](); + if (this['options']['backgroundColor']) { + this['ctx']['fillStyle'] = cNw(this['options']['backgroundColor']); + this['ctx']['fillRect'](0x0, 0x0, this['options']['width'] * this['options']['scale'], this['options'][dol(0x13f4)] * this['options']['scale']); + } + this['ctx']['drawImage'](da0, -this['options']['x'] * this['options']['scale'], -this['options']['y'] * this['options']['scale']); + return [0x2, this['canvas']]; + } + }); + }); + } + ; + return d9V; + }(); + var da2 = function(da3) { + return new Promise(function(da4, da5) { + var da6 = new Image(); + da6['onload'] = function() { + da4(da6); + } + ; + da6[dol(0x13f5)] = da5; + da6['src'] = doj(0x426) + encodeURIComponent(new XMLSerializer()['serializeToString'](da3)); + } + ); + }; + var da7 = undefined; + var da8 = function(da9) { + return cNc['parse'](cLZ['create'](da9)['parseComponentValue']()); + }; + var daa = function(dab, dac) { + if (dac === void 0x0) { + dac = {}; + } + return dad(dab, dac); + }; + if (typeof window !== 'u' + doo(0xd2c) + 'd') { + cQW[dol(0x13f6)](window); + } + var dad = function(dae, daf) { + return cEH(da7, void 0x0, void 0x0, function() { + var dag, dah, dai, daj, dak, dal, dam, dan, dao, dap, daq, dar, das, dat, dau, dav, daw, dax, day, daz, cOq, daB, daC, daF, daE, daF; + return cEX(this, function(daG) { + switch (daG['label']) { + case 0x0: + dag = dae['ownerDocument']; + if (!dag) { + throw new Error(doj(0x427)); + } + dah = dag['defaultView']; + if (!dah) { + throw new Error(doj(0x428)); + } + dai = (Math['round'](Math['random']() * 0x3e8) + Date[dol(0x13f7)]())['toString'](0x10); + daj = cZs(dae) || cZo(dae) ? cFo(dag) : cFm(dae), + dak = daj['width'], + dal = daj['height'], + dam = daj['left'], + dan = daj['top']; + dao = { + 'allowTaint': ![], + 'imageTimeout': 0x3a98, + 'proxy': undefined, + 'useCORS': ![] + }; + dap = cEB({}, dao, daf); + daq = { + 'backgroundColor': '#' + doo(0xd2d) + 'f', + 'cache': daf['cache'] ? daf['cache'] : cQW['create'](dai, dap), + 'logging': !![], + 'removeContainer': !![], + 'foreignObjectRendering': ![], + 'scale': dah['devicePixelRatio'] || 0x1, + 'windowWidth': dah['innerWidth'], + 'windowHeight': dah['innerHeight'], + 'scrollX': dah['pageXOffset'], + 'scrollY': dah['pageYOffset'], + 'x': dam, + 'y': dan, + 'width': Math['ceil'](dak), + 'height': Math['ceil'](dal), + 'id': dai + }; + dar = cEB({}, daq, dap, daf); + das = new cFb(dar['scrollX'],dar[dol(0x13f8)],dar['windowWidth'],dar['windowHeight']); + cQH['create']({ + 'id': dai, + 'enabled': dar['logging'] + }); + cQH['getInstance'](dai)['debug'](doj(0x429)); + dat = new d12(dae,{ + 'id': dai, + 'onclone': dar['onclone'], + 'ignoreElements': dar['ignoreElements'], + 'inlineImages': dar['foreignObjectRendering'], + 'copyStyles': dar['foreignObjectRendering'] + }); + dau = dat['clonedReferenceElement']; + if (!dau) { + return [0x2, Promise['reject'](doj(0x42a))]; + } + return [0x4, dat['toIFrame'](dag, das)]; + case 0x1: + dav = daG['sent'](); + daw = dag['documentElement'] ? da8(getComputedStyle(dag['documentElement'])['backgroundColor']) : cOi['TRANSPARENT']; + dax = dag[dol(0x13f9)] ? da8(getComputedStyle(dag['body'])['backgroundColor']) : cOi[dol(0x13fa)]; + day = daf['backgroundColor']; + daz = typeof day === 's' + doo(0xd2e) + 'g' ? da8(day) : day === null ? cOi['TRANSPARENT'] : 0xffffffff; + cOq = dae === dag['documentElement'] ? cNu(daw) ? cNu(dax) ? daz : dax : daw : daz; + daB = { + 'id': dai, + 'cache': dar['cache'], + 'canvas': dar['canvas'], + 'backgroundColor': cOq, + 'scale': dar['scale'], + 'x': dar['x'], + 'y': dar['y'], + 'scrollX': dar['scrollX'], + 'scrollY': dar['scrollY'], + 'width': dar['width'], + 'height': dar['height'], + 'windowWidth': dar['windowWidth'], + 'windowHeight': dar['windowHeight'] + }; + if (!dar['foreignObjectRendering']) + return [0x3, 0x3]; + cQH['getInstance'](dai)[dol(0x13fb)](doj(0x42b)); + daF = new d9V(daB); + return [0x4, daF[dol(0x13fc)](dau)]; + case 0x2: + daC = daG['sent'](); + return [0x3, 0x5]; + case 0x3: + cQH['getInstance'](dai)['debug'](doj(0x42c)); + cQW['attachInstance'](dar['cache']); + cQH['getInstance'](dai)['debug']('S' + doo(0xd2f) + 'g'); + daE = cZ1(dau); + cQW[dol(0x13fd)](); + if (cOq === daE['styles']['backgroundColor']) { + daE['styles']['backgroundColor'] = cOi['TRANSPARENT']; + } + cQH['getInstance'](dai)['debug']('S' + doo(0xd30) + 'r'); + daF = new d6Q(daB); + return [0x4, daF['render'](daE)]; + case 0x4: + daC = daG['sent'](); + daG['label'] = 0x5; + case 0x5: + if (dar[dol(0x13fe)] === !![]) { + if (!d12['destroy'](dav)) { + cQH['getInstance'](dai)[dol(0x13ff)](doj(0x42d)); + } + } + cQH['getInstance'](dai)['debug']('F' + doo(0xd31) + 'g'); + cQH['destroy'](dai); + cQW['destroy'](dai); + return [0x2, daC]; + } + }); + }); + }; + return daa; + })); + KEY_CANCEL = 0x3; + KEY_HELP = 0x6; + KEY_BACK_SPACE = 0x8; + KEY_TAB = 0x9; + KEY_CLEAR = 0xc; + KEY_RETURN = 0xd; + KEY_ENTER = 0xe; + KEY_SHIFT = 0x10; + KEY_CONTROL = 0x11; + KEY_ALT = 0x12; + KEY_PAUSE = 0x13; + KEY_CAPS_LOCK = 0x14; + KEY_ESCAPE = 0x1b; + KEY_SPACE = 0x20; + KEY_PAGE_UP = 0x21; + KEY_PAGE_DOWN = 0x22; + KEY_END = 0x23; + KEY_HOME = 0x24; + KEY_LEFT = 0x25; + KEY_UP = 0x26; + KEY_RIGHT = 0x27; + KEY_DOWN = 0x28; + KEY_PRINTSCREEN = 0x2c; + KEY_INSERT = 0x2d; + KEY_DELETE = 0x2e; + KEY_0 = 0x30; + KEY_1 = 0x31; + KEY_2 = 0x32; + KEY_3 = 0x33; + KEY_4 = 0x34; + KEY_5 = 0x35; + KEY_6 = 0x36; + KEY_7 = 0x37; + KEY_8 = 0x38; + KEY_9 = 0x39; + KEY_SEMICOLON = 0x3b; + KEY_EQUALS = 0x3d; + KEY_A = 0x41; + KEY_B = 0x42; + KEY_C = 0x43; + KEY_D = 0x44; + KEY_E = 0x45; + KEY_F = 0x46; + KEY_G = 0x47; + KEY_H = 0x48; + KEY_I = 0x49; + KEY_J = 0x4a; + KEY_K = 0x4b; + KEY_L = 0x4c; + KEY_M = 0x4d; + KEY_N = 0x4e; + KEY_O = 0x4f; + KEY_P = 0x50; + KEY_Q = 0x51; + KEY_R = 0x52; + KEY_S = 0x53; + KEY_T = 0x54; + KEY_U = 0x55; + KEY_V = 0x56; + KEY_W = 0x57; + KEY_X = 0x58; + KEY_Y = 0x59; + KEY_Z = 0x5a; + KEY_LEFT_CMD = 0x5b; + KEY_RIGHT_CMD = 0x5d; + KEY_CONTEXT_MENU = 0x5d; + KEY_NUMPAD0 = 0x60; + KEY_NUMPAD1 = 0x61; + KEY_NUMPAD2 = 0x62; + KEY_NUMPAD3 = 0x63; + KEY_NUMPAD4 = 0x64; + KEY_NUMPAD5 = 0x65; + KEY_NUMPAD6 = 0x66; + KEY_NUMPAD7 = 0x67; + KEY_NUMPAD8 = 0x68; + KEY_NUMPAD9 = 0x69; + KEY_MULTIPLY = 0x6a; + KEY_ADD = 0x6b; + KEY_SEPARATOR = 0x6c; + KEY_SUBTRACT = 0x6d; + KEY_DECIMAL = 0x6e; + KEY_DIVIDE = 0x6f; + KEY_F1 = 0x70; + KEY_F2 = 0x71; + KEY_F3 = 0x72; + KEY_F4 = 0x73; + KEY_F5 = 0x74; + KEY_F6 = 0x75; + KEY_F7 = 0x76; + KEY_F8 = 0x77; + KEY_F9 = 0x78; + KEY_F10 = 0x79; + KEY_F11 = 0x7a; + KEY_F12 = 0x7b; + KEY_F13 = 0x7c; + KEY_F14 = 0x7d; + KEY_F15 = 0x7e; + KEY_F16 = 0x7f; + KEY_F17 = 0x80; + KEY_F18 = 0x81; + KEY_F19 = 0x82; + KEY_F20 = 0x83; + KEY_F21 = 0x84; + KEY_F22 = 0x85; + KEY_F23 = 0x86; + KEY_F24 = 0x87; + KEY_NUM_LOCK = 0x90; + KEY_SCROLL_LOCK = 0x91; + KEY_COMMA = 0xbc; + KEY_PERIOD = 0xbe; + KEY_SLASH = 0xbf; + KEY_BACK_QUOTE = 0xc0; + KEY_OPEN_BRACKET = 0xdb; + KEY_BACK_SLASH = 0xdc; + KEY_CLOSE_BRACKET = 0xdd; + KEY_QUOTE = 0xde; + KEY_META = 0xe0; + ;GLESkyBox = function(daH) { + function daI(daJ, daK) { + var daL = daP(daJ, daK); + return daM(daL); + } + function daM(daN) { + var daO = new daH['GroundSkyBox']({ + 'sources': daN + }); + return daO; + } + function daP(daQ, daR) { + var daS; + switch (daR) { + default: + daS = { + 'positiveX': daQ['defaults']['sitepath'] + doj(0x42e) + daR + ('/' + doo(0xd32) + 'g'), + 'negativeX': daQ['defaults']['sitepath'] + doj(0x42f) + daR + ('/' + doo(0xd33) + 'g'), + 'positiveY': daQ['defaults']['sitepath'] + doj(0x430) + daR + ('/' + doo(0xd34) + 'g'), + 'negativeY': daQ['defaults']['sitepath'] + doj(0x431) + daR + ('/' + doo(0xd35) + 'g'), + 'positiveZ': daQ['defaults']['sitepath'] + doj(0x432) + daR + ('/' + doo(0xd36) + 'g'), + 'negativeZ': daQ[dol(0x1400)]['sitepath'] + doj(0x433) + daR + ('/' + doo(0xd37) + 'g') + }; + break; + } + return daS; + } + return daI; + }(window['Cesium'] || {}); + (function() { + const daT = window['Cesium']; + const daU = daT[dol(0x1401)]; + const daV = daT['Cartesian3']; + const daW = daT['defaultValue']; + const daX = daT['defined']; + const daY = daT['destroyObject']; + const daZ = daT['DeveloperError']; + const db0 = daT['GeometryPipeline']; + const db1 = daT['Matrix3']; + const db2 = daT['Matrix4']; + const db3 = daT['Transforms']; + const db4 = daT['VertexFormat']; + const db5 = daT['BufferUsage']; + const db6 = daT['CubeMap']; + const db7 = daT['DrawCommand']; + const db8 = daT['loadCubeMap']; + const db9 = daT['RenderState']; + const dba = daT['VertexArray']; + const dbb = daT['BlendingState']; + const dbc = daT['SceneMode']; + const dbd = daT['ShaderProgram']; + const dbe = daT['ShaderSource']; + const dbf = doj(0x434); + const dbg = doj(0x435); + if (!daT['defined'](daT[dol(0x1402)]['getRotation'])) { + daT['Matrix4']['getRotation'] = daT['Matrix4']['getMatrix3']; + } + function dbh(dbi) { + this['sources'] = dbi['sources']; + this['_sources'] = undefined; + this['show'] = daW(dbi['show'], !![]); + this['_command'] = new db7({ + 'modelMatrix': db2['clone'](db2['IDENTITY']), + 'owner': this + }); + this['_cubeMap'] = undefined; + this['_attributeLocations'] = undefined; + this['_useHdr'] = undefined; + } + const dbj = new db1(); + dbh['prototype']['update'] = function(dbk, dbl) { + const dbm = this; + if (!this['show']) { + return undefined; + } + if (dbk['mode'] !== dbc['SCENE3D'] && dbk[dol(0x1403)] !== dbc['MORPHING']) { + return undefined; + } + if (!dbk[dol(0x1404)]['render']) { + return undefined; + } + const dbn = dbk['context']; + if (this['_sources'] !== this['sources']) { + this['_sources'] = this['sources']; + const dbo = this['sources']; + if (!daX(dbo['positiveX']) || !daX(dbo['negativeX']) || !daX(dbo['positiveY']) || !daX(dbo['negativeY']) || !daX(dbo['positiveZ']) || !daX(dbo['negativeZ'])) { + throw new daZ(doj(0x436)); + } + if (typeof dbo['positiveX'] !== typeof dbo['negativeX'] || typeof dbo[dol(0x1405)] !== typeof dbo['positiveY'] || typeof dbo['positiveX'] !== typeof dbo['negativeY'] || typeof dbo['positiveX'] !== typeof dbo['positiveZ'] || typeof dbo['positiveX'] !== typeof dbo['negativeZ']) { + throw new daZ(doj(0x437)); + } + if (typeof dbo['positiveX'] === 's' + doo(0xd38) + 'g') { + db8(dbn, this['_sources'])['then'](function(dbp) { + dbm[dol(0x1406)] = dbm[dol(0x1407)] && dbm['_cubeMap'][dol(0x1408)](); + dbm['_cubeMap'] = dbp; + }); + } else { + this['_cubeMap'] = this['_cubeMap'] && this['_cubeMap']['destroy'](); + this['_cubeMap'] = new db6({ + 'context': dbn, + 'source': dbo + }); + } + } + const dbq = this['_command']; + dbq['modelMatrix'] = db3['eastNorthUpToFixedFrame'](dbk['camera']['_positionWC']); + if (!daX(dbq['vertexArray'])) { + dbq['uniformMap'] = { + 'u_cubeMap': function() { + return dbm['_cubeMap']; + }, + 'u_rotateMatrix': function() { + return db2['getRotation'](dbq['modelMatrix'], dbj); + } + }; + const dbr = daU['createGeometry'](daU['fromDimensions']({ + 'dimensions': new daV(0x2,0x2,0x2), + 'vertexFormat': db4['POSITION_ONLY'] + })); + const dbs = this['_attributeLocations'] = db0['createAttributeLocations'](dbr); + dbq['vertexArray'] = dba['fromGeometry']({ + 'context': dbn, + 'geometry': dbr, + 'attributeLocations': dbs, + 'bufferUsage': db5['DYNAMIC_DRAW'] + }); + dbq['renderState'] = db9['fromCache']({ + 'blending': dbb['ALPHA_BLEND'] + }); + } + if (!daX(dbq['shaderProgram']) || this['_useHdr'] !== dbl) { + const dbt = new dbe({ + 'defines': [dbl ? doh(0x19d) : ''], + 'sources': [dbf] + }); + dbq['shaderProgram'] = dbd[dol(0x1409)]({ + 'context': dbn, + 'vertexShaderSource': dbg, + 'fragmentShaderSource': dbt, + 'attributeLocations': this['_attributeLocations'] + }); + this['_useHdr'] = dbl; + } + if (!daX(this['_cubeMap'])) { + return undefined; + } + return dbq; + } + ; + dbh['prototype']['isDestroyed'] = function() { + return ![]; + } + ; + dbh['prototype']['destroy'] = function() { + const dbu = this['_command']; + dbu['vertexArray'] = dbu['vertexArray'] && dbu['vertexArray']['destroy'](); + dbu['shaderProgram'] = dbu['shaderProgram'] && dbu['shaderProgram']['destroy'](); + this['_cubeMap'] = this['_cubeMap'] && this['_cubeMap']['destroy'](); + return daY(this); + } + ; + window['Cesium']['GroundSkyBox'] = dbh; + }()); + ;BaseControls = function(dbv) { + this['tileset']; + this['callback']; + this['grid']; + this['axis']; + this['gridColor'] = Cesium['Color']['WHITE']['withAlpha'](0.2); + this['gridCellCount'] = new Cesium['Cartesian2'](0x64,0x64); + this['gridCellSize'] = new Cesium['Cartesian2'](0x1,0x1); + this['gridAttract'] = ![]; + this['modelAttract'] = ![]; + this['snap'] = { + 'do': [], + 'undo': [] + }; + var dbw = null; + var dbx = dbv; + var dby = dbv['viewer']; + var dbz = this; + var dbA = ![]; + var dbB; + var dbC; + var dbD = []; + var dbE = new Cesium['Cartesian2'](0.2,0.2); + var dbF = undefined + , dbG = ![]; + this['gridCenter'] = Cesium['Cartesian3']['fromDegrees'](dbx['defaultPosition'][dol(0x140a)], dbx['defaultPosition']['latitude'], dbx['defaultPosition']['height']); + this['gridStartX'] = dbx['funcPublic'][dol(0x140b)](dbz['gridCenter'], 0x0 - dbz['gridCellSize']['x'] * dbz['gridCellCount']['x'] / 0x2); + this['gridStartY'] = dbx[dol(0x140c)]['getPointByDistance'](dbz[dol(0x140d)], 0x0, 0x0 - dbz['gridCellSize']['y'] * dbz['gridCellCount']['y'] / 0x2); + var dbH = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + dbH['setInputAction'](function(dbI) { + if (!Cesium['defined'](dbz[dol(0x140e)]) && Cesium['defined'](dbx['TransformContorl']['EditObj'])) { + dbz['tileset'] = dbx['TransformContorl']['EditObj']; + } + if (Cesium['defined'](dbI['endPosition']) && Cesium['defined'](dbz['tileset']) && dbz['tileset']['unfixed']) { + var dbJ = dbx['funcPublic'][dol(0x140f)](dbI['endPosition'], dby); + if (dbJ != '') { + dcx(dbJ); + } + dby['scene']['requestRender'](); + } else if (dbG && dbF) { + var dbK = Cesium['defined'](dbF['obj'][0x0]['coordinates']) ? 'c' + doo(0xd39) + 's' : Cesium['defined'](dbF['obj'][0x0]['positions']) ? 'p' + doo(0xd3a) + 's' : 'p' + doo(0xd3b) + 'n'; + var dbL = dbx['funcPublic']['getPointByDistance'](dbI['startPosition'], dby); + var dbM = dbx['funcPublic']['getPointByDistance'](dbI['endPosition'], dby); + var dbN = [dbx['funcPublic']['GetDistance'](dbM, dbz['gridStartX'], 0x1) - dbx['funcPublic']['GetDistance'](dbL, dbz['gridStartX'], 0x1), dbx['funcPublic']['GetDistance'](dbM, dbz['gridStartY'], 0x0, 0x1) - dbx['funcPublic']['GetDistance'](dbL, dbz['gridStartY'], 0x0, 0x1), dbx['funcPublic']['GetDistance'](dbM, dbz['gridCenter'], 0x0, 0x0, 0x1) - dbx['funcPublic']['GetDistance'](dbL, dbz['gridCenter'], 0x0, 0x0, 0x1)]; + dbz[dol(0x1410)](dbF['id'], dbK, dbN); + } + }, Cesium[dol(0x1411)]['MOUSE_MOVE']); + dbH['setInputAction'](function(dbO) { + if (dbx['EditMode'] != 'T' + doo(0xd3c) + 's') + return; + dbx['Entity']['getByEvent'](dbO['position'], function(dbP) { + if (dbP && (dbP['obj'][0x0]instanceof Cesium['BillboardGraphics'] || dbP['obj'][0x0]instanceof Cesium['PolylineGraphics'] || dbP['obj'][0x0]instanceof Cesium[dol(0x1412)] || dbP['obj'][0x0]instanceof Cesium['RectangleGraphics'] || dbP['obj'][0x0]instanceof Cesium['PolylineVolumeGraphics'])) { + dbF = dbP; + dbG = !![]; + dby['scene']['screenSpaceCameraController']['enableRotate'] = ![]; + dby['scene'][dol(0x1413)][dol(0x1414)] = ![]; + dby['scene']['screenSpaceCameraController']['enableZoom'] = ![]; + dby['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + dby['scene']['screenSpaceCameraController']['enableLook'] = ![]; + } + }); + }, Cesium[dol(0x1415)]['LEFT_DOWN']); + dbH['setInputAction'](function(dbQ) { + if (dbG && dbF) { + dbF = undefined; + dbG = ![]; + dby['scene']['screenSpaceCameraController'][dol(0x1416)] = !![]; + dby['scene']['screenSpaceCameraController']['enableTranslate'] = !![]; + dby['scene']['screenSpaceCameraController']['enableZoom'] = !![]; + dby['scene'][dol(0x1417)]['enableTilt'] = dby['scene']['screenSpaceCameraController']['rotateEventTypes'] == 0x1 || dby['scene'][dol(0x1418)]['rotateEventTypes']['indexOf'](0x0) < 0x0; + dby[dol(0x1419)]['screenSpaceCameraController']['enableLook'] = !![]; + var dbR = dbx['funcPublic']['getPointByDistance'](dbQ['position'], dby); + try { + document['getElementById']('t' + doo(0xd3d) + 'x')['value'] = dbx['funcPublic']['GetDistance'](dbR, dbz['gridStartX'], 0x1) - dbx['funcPublic']['GetDistance'](dbz['gridCenter'], dbz['gridStartX'], 0x1); + document['getElementById']('t' + doo(0xd3e) + 'y')['value'] = dbx['funcPublic']['GetDistance'](dbR, dbz['gridStartY'], 0x0, 0x1) - dbx['funcPublic']['GetDistance'](dbz['gridCenter'], dbz['gridStartY'], 0x0, 0x1); + document['getElementById']('t' + doo(0xd3f) + 'z')['value'] = dbx[dol(0x141a)]['GetDistance'](dbR, dbz['gridCenter'], 0x0, 0x0, 0x1); + document['getElementById']('t' + doo(0xd40) + 'x')['dispatchEvent'](new Event('i' + doo(0xd41) + 't')); + document['getElementById']('t' + doo(0xd42) + 'y')[dol(0x141b)](new Event('i' + doo(0xd43) + 't')); + document['getElementById']('t' + doo(0xd44) + 'z')['dispatchEvent'](new Event('i' + doo(0xd45) + 't')); + } catch (dbS) {} + } + if (!Cesium['defined'](dbz['tileset']) && Cesium['defined'](dbx['TransformContorl']['EditObj'])) { + dbz['tileset'] = dbx['TransformContorl']['EditObj']; + } + if (Cesium['defined'](dbz['tileset']) && dbx['m_model'][dol(0x141c)](dbz['tileset']['id'])) { + var dbT = new Cesium['Cartesian3'](); + var dbU = dcI(); + if (dbz['gridAttract']) { + var dbV = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], dbU['point1'], 0x1); + var dbW = Math['round'](dbV / dbz['gridCellSize']['x']) * dbz['gridCellSize']['x']; + var dbX = dbW - dbV; + var dbY = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], dbU['point1'], 0x0, 0x1); + var dbZ = Math[dol(0x141d)](dbY / dbz['gridCellSize']['y']) * dbz['gridCellSize']['y']; + var dc0 = dbZ - dbY; + var dc1 = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], dbU['point4'], 0x1); + var dc2 = Math['round'](dc1 / dbz['gridCellSize']['x']) * dbz['gridCellSize']['x']; + var dc3 = dc2 - dc1; + var dc4 = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], dbU['point4'], 0x0, 0x1); + var dc5 = Math['round'](dc4 / dbz['gridCellSize']['y']) * dbz['gridCellSize']['y']; + var dc6 = dc5 - dc4; + var dc7 = Math['abs'](dbX) < Math[dol(0x141e)](dc3) ? dbX : dc3; + var dc8 = Math['abs'](dc0) < Math['abs'](dc6) ? dc0 : dc6; + dc7 = Math['abs'](dc7) > dbE['x'] ? 0x0 : dc7; + dc8 = Math['abs'](dc8) > dbE['y'] ? 0x0 : dc8; + dbT = dbx['funcPublic'][dol(0x141f)](dbz[dol(0x1420)]['boundingSphere'][dol(0x1421)], dc7, dc8); + dcx(dbT); + } else if (dbz['modelAttract'] && Cesium[dol(0x1422)](dbB)) { + var dbV = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], dbB['point1'], 0x1); + var dbY = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], dbB['point1'], 0x0, 0x1); + var dc1 = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], dbB['point4'], 0x1); + var dc4 = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], dbB['point4'], 0x0, 0x1); + var dcd = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], dbU['point1'], 0x1); + var dce = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], dbU['point1'], 0x0, 0x1); + var dcf = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], dbU['point4'], 0x1); + var dcg = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], dbU['point4'], 0x0, 0x1); + var dch = dcd - dbV; + var dci = dce - dbY; + var dcj = dcd - dc1; + var dck = dce - dc4; + var dcl = dcf - dbV; + var dcm = dcg - dbY; + var dcn = dcf - dc1; + var dco = dcg - dc4; + var dcp = [{ + 'distance': Math['abs'](dch), + 'value': Math['abs'](dch) > dbE['x'] ? 0x0 : dch + }, { + 'distance': Math['abs'](dcj), + 'value': Math['abs'](dcj) > dbE['x'] ? 0x0 : dcj + }, { + 'distance': Math['abs'](dcl), + 'value': Math['abs'](dcl) > dbE['x'] ? 0x0 : dcl + }, { + 'distance': Math['abs'](dcn), + 'value': Math['abs'](dcn) > dbE['x'] ? 0x0 : dcn + }]; + var dcq = [{ + 'distance': Math['abs'](dci), + 'value': Math['abs'](dci) > dbE['y'] ? 0x0 : dci + }, { + 'distance': Math['abs'](dck), + 'value': Math['abs'](dck) > dbE['y'] ? 0x0 : dck + }, { + 'distance': Math['abs'](dcm), + 'value': Math['abs'](dcm) > dbE['y'] ? 0x0 : dcm + }, { + 'distance': Math[dol(0x1423)](dco), + 'value': Math['abs'](dco) > dbE['y'] ? 0x0 : dco + }]; + dcp['sort'](function(q, dcs) { + return q['distance'] - dcs['distance']; + }); + dcq['sort'](function(q, dcu) { + return q['distance'] - dcu['distance']; + }); + dbT = dbx['funcPublic']['getPointByDistance'](dbz['tileset'][dol(0x1424)]['center'], 0x0 - dcp[0x0]['value'], 0x0 - dcq[0x0]['value']); + dcx(dbT); + } + dbB = dcI(); + if (dbz['tileset']['unfixed']) { + dbz['tileset']['unfixed'] = ![]; + dbz['snap']['do']['push']({ + 'Key': doh(0x19e), + 'Type': 'M' + doo(0xd46) + 'l', + 'ID': dbz['tileset']['id'] + }); + if (!isEmpty(dbz['callback'])) { + var dcv = dbx['funcPublic']['getPointByDistance'](dbz['tileset']['boundingSphere']['center'], 0x0, 0x0, -(dbz['tileset']['tilesetoutline']['maximumHeight'] - dbz['tileset']['tilesetoutline']['minimumHeight']) / 0x2); + dbz['callback']({ + 'loaded': !![], + 'locate': !![], + 'obj': dbz['tileset'], + 'offset': { + 'x': dbx['funcPublic']['GetDistance'](dcv, dbz['gridStartX'], 0x1) - dbx['funcPublic']['GetDistance'](dbz['gridCenter'], dbz['gridStartX'], 0x1), + 'y': dbx['funcPublic'][dol(0x1425)](dcv, dbz['gridStartY'], 0x0, 0x1) - dbx['funcPublic']['GetDistance'](dbz['gridCenter'], dbz['gridStartY'], 0x0, 0x1), + 'z': dbx['funcPublic']['GetDistance'](dcv, dbz['gridCenter'], 0x0, 0x0, 0x1) + } + }); + } + } + dbz['tileset'] = undefined; + } + }, Cesium[dol(0x1426)]['LEFT_UP']); + dbv[dol(0x1427)]['scene']['postRender']['addEventListener'](function(dcw) { + if (Cesium['defined'](dbB) && Cesium['defined'](dbz[dol(0x1428)]) && dbz['tileset'][dol(0x1429)]) { + dbC = dcO(); + if (dbA && dbD['length'] == 0x0) + dcT(); + } + }); + function dcx(dcy) { + if (!Cesium['defined'](dcy)) + return; + var dcz = Cesium['Cartographic']['fromCartesian'](dcy); + var dcA = Cesium['Cartesian3'][dol(0x142a)](dcz['longitude'], dcz['latitude'], dbx[dol(0x142b)]['height']); + var dcB = Cesium['Cartographic']['fromCartesian'](dbz['tileset']['boundingSphere']['center']); + var dcC = Cesium['Cartesian3']['fromRadians'](dcB['longitude'], dcB['latitude'], dcB['height'] - (dbz['tileset']['tilesetoutline']['maximumHeight'] - dbz['tileset'][dol(0x142c)]['minimumHeight']) / 0x2); + var dcD = Cesium['Cartesian3']['subtract'](dcA, dcC, new Cesium[(dol(0x142d))]()); + var dcE = Cesium['Matrix4']['fromTranslation'](dcD); + var dcF = Cesium['Matrix4']['multiplyTransformation'](dcE, dbz['tileset']['modelMatrix'], new Cesium[(dol(0x142e))]()); + dbz['tileset'][dol(0x142f)] = dcF; + dby['scene']['requestRender'](); + } + function dcG() { + if (Cesium[dol(0x1430)](dbz['grid'])) { + dby['entities']['remove'](dbz['grid']); + dby['scene']['requestRender'](); + } + dbz['grid'] = dby['entities'][dol(0x1431)]({ + 'id': 'E' + doo(0xd47) + 'e', + 'position': dbz['gridCenter'], + 'plane': { + 'plane': new Cesium['Plane'](Cesium['Cartesian3']['UNIT_Z'],0x0), + 'dimensions': new Cesium['Cartesian2'](dbz['gridCellSize']['x'] * dbz['gridCellCount']['x'],dbz['gridCellSize']['y'] * dbz['gridCellCount']['y']), + 'material': new Cesium['GridMaterialProperty']({ + 'color': dbz['gridColor'], + 'cellAlpha': 0.01, + 'lineCount': dbz['gridCellCount'], + 'lineThickness': new Cesium['Cartesian2'](0x1,0x1) + }) + } + }); + dby['clock']['onTick']['addEventListener'](function() {}); + } + this['LoadGrid'] = function() { + dcG(); + } + ; + this['updateGridPos'] = function(dcH) { + if (dbz['grid'] != undefined) { + if (Cesium['defined'](dbz['grid'])) { + dby['entities']['remove'](dbz['grid']); + dby['scene']['requestRender'](); + } + dbz['gridCenter'] = Cesium['Cartesian3']['fromDegrees'](dcH[0x0], dcH[0x1], dcH[0x2]); + dbz[dol(0x1432)] = dby['entities']['add']({ + 'id': 'E' + doo(0xd48) + 'e', + 'position': dbz['gridCenter'], + 'plane': { + 'plane': new Cesium['Plane'](Cesium['Cartesian3']['UNIT_Z'],0x0), + 'dimensions': new Cesium['Cartesian2'](dbz['gridCellSize']['x'] * dbz['gridCellCount']['x'],dbz['gridCellSize']['y'] * dbz['gridCellCount']['y']), + 'material': new Cesium['GridMaterialProperty']({ + 'color': dbz['gridColor'], + 'cellAlpha': 0.01, + 'lineCount': dbz['gridCellCount'], + 'lineThickness': new Cesium['Cartesian2'](0x1,0x1) + }) + } + }); + } + } + ; + this['LoadDebugAxis'] = function() { + if (Cesium['defined'](dbz[dol(0x1433)])) { + dby['scene']['primitives']['remove'](dbz['axis']); + dby['scene']['requestRender'](); + } + dbz['axis'] = new Cesium['DebugModelMatrixPrimitive']({ + 'modelMatrix': Cesium[dol(0x1434)]['headingPitchRollToFixedFrame'](dbz['gridCenter'], new Cesium['HeadingPitchRoll'](), Cesium['Ellipsoid']['WGS84'], Cesium['Transforms'][dol(0x1435)]), + 'length': 1.5, + 'width': 0x1 + }); + dby['scene']['primitives']['add'](dbz['axis']); + } + ; + function dcI(dcJ) { + if (Cesium['defined'](dcJ)) { + dbz['tileset'] = dbx['m_model']['get'](dcJ['toString']()); + } + var dcK = Cesium['Cartesian3']['fromArray'](dbz['tileset']['tilesetoutline']['positions'], 0xc); + Cesium['Matrix4']['multiplyByPoint'](dbz['tileset']['modelMatrix'], dcK, dcK); + var dcL = Cesium[dol(0x1436)]['fromArray'](dbz['tileset']['tilesetoutline']['positions'], 0xf); + Cesium['Matrix4']['multiplyByPoint'](dbz['tileset']['modelMatrix'], dcL, dcL); + var dcM = Cesium['Cartesian3']['fromArray'](dbz['tileset']['tilesetoutline']['positions'], 0x12); + Cesium['Matrix4']['multiplyByPoint'](dbz['tileset']['modelMatrix'], dcM, dcM); + var dcN = Cesium['Cartesian3']['fromArray'](dbz['tileset']['tilesetoutline']['positions'], 0x15); + Cesium['Matrix4']['multiplyByPoint'](dbz['tileset']['modelMatrix'], dcN, dcN); + return { + 'point1': dcK, + 'point2': dcL, + 'point3': dcM, + 'point4': dcN, + 'point5': dbz['tileset']['boundingSphere']['center'] + }; + } + function dcO() { + var dcP = dcI(); + var dcQ = [{ + 'point1': dbB['point1'], + 'point2': dcP['point1'], + 'distance': Cesium['Cartesian3']['distance'](dbB[dol(0x1437)], dcP['point1']) + }, { + 'point1': dbB['point1'], + 'point2': dcP['point2'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point1'], dcP['point2']) + }, { + 'point1': dbB['point1'], + 'point2': dcP['point3'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point1'], dcP['point3']) + }, { + 'point1': dbB['point1'], + 'point2': dcP['point4'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point1'], dcP['point4']) + }, { + 'point1': dbB['point2'], + 'point2': dcP['point1'], + 'distance': Cesium['Cartesian3'][dol(0x1438)](dbB['point2'], dcP['point1']) + }, { + 'point1': dbB['point2'], + 'point2': dcP['point2'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point2'], dcP['point2']) + }, { + 'point1': dbB['point2'], + 'point2': dcP['point3'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point2'], dcP['point3']) + }, { + 'point1': dbB[dol(0x1439)], + 'point2': dcP[dol(0x143a)], + 'distance': Cesium['Cartesian3']['distance'](dbB['point2'], dcP['point4']) + }, { + 'point1': dbB['point3'], + 'point2': dcP['point1'], + 'distance': Cesium['Cartesian3']['distance'](dbB[dol(0x143b)], dcP['point1']) + }, { + 'point1': dbB['point3'], + 'point2': dcP['point2'], + 'distance': Cesium[dol(0x143c)][dol(0x143d)](dbB['point3'], dcP['point2']) + }, { + 'point1': dbB['point3'], + 'point2': dcP['point3'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point3'], dcP['point3']) + }, { + 'point1': dbB['point3'], + 'point2': dcP['point4'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point3'], dcP['point4']) + }, { + 'point1': dbB['point4'], + 'point2': dcP['point1'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point4'], dcP[dol(0x143e)]) + }, { + 'point1': dbB['point4'], + 'point2': dcP['point2'], + 'distance': Cesium['Cartesian3']['distance'](dbB[dol(0x143f)], dcP[dol(0x1440)]) + }, { + 'point1': dbB['point4'], + 'point2': dcP['point3'], + 'distance': Cesium[dol(0x1441)]['distance'](dbB['point4'], dcP['point3']) + }, { + 'point1': dbB['point4'], + 'point2': dcP['point4'], + 'distance': Cesium['Cartesian3']['distance'](dbB['point4'], dcP['point4']) + }]; + dcQ['sort'](function(q, dcS) { + return q[dol(0x1442)] - dcS[dol(0x1443)]; + }); + return dcQ[0x0]; + } + function dcT() { + dbD['push'](dby['entities']['add']({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function(dcU, dcV) { + var dcW = dbx['funcPublic'][dol(0x1444)](dbC['point1'], dbz['gridStartX'], 0x1); + var dcX = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var dcY = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartX'], 0x1); + var dcZ = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return [dbx['funcPublic']['getPointByDistance'](dbC['point1'], dcY > dcW ? -0.2 : 0.2), dbx['funcPublic']['getPointByDistance'](dbC['point1'], dcY > dcW ? dcY - dcW + 0.2 : dcY - dcW - 0.2)]; + } + ,![]), + 'width': 0x1, + 'material': Cesium['Color']['CHOCOLATE'] + } + })); + dbD['push'](dby['entities']['add']({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function(dd0, dd1) { + var dd2 = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartX'], 0x1); + var dd3 = dbx[dol(0x1445)]['GetDistance'](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var dd4 = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartX'], 0x1); + var dd5 = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return [dbx['funcPublic']['getPointByDistance'](dbC['point1'], 0x0, dd5 > dd3 ? -0.2 : 0.2), dbx['funcPublic']['getPointByDistance'](dbC['point1'], 0x0, dd5 > dd3 ? dd5 - dd3 + 0.2 : dd5 - dd3 - 0.2)]; + } + ,![]), + 'width': 0x1, + 'material': Cesium['Color']['CHOCOLATE'] + } + })); + dbD['push'](dby['entities']['add']({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function(dd6, dd7) { + var dd8 = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz[dol(0x1446)], 0x1); + var dd9 = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var dda = dbx['funcPublic']['GetDistance'](dbC[dol(0x1447)], dbz[dol(0x1448)], 0x1); + var ddb = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return [dbx['funcPublic']['getPointByDistance'](dbC['point2'], dda > dd8 ? 0.2 : -0.2), dbx['funcPublic']['getPointByDistance'](dbC['point2'], dda > dd8 ? dd8 - dda : dd8 - dda)]; + } + ,![]), + 'width': 0x1, + 'material': Cesium['Color']['MAGENTA'] + } + })); + dbD['push'](dby['entities'][dol(0x1449)]({ + 'polyline': { + 'positions': new Cesium['CallbackProperty'](function(ddc, ddd) { + var dde = dbx[dol(0x144a)]['GetDistance'](dbC['point1'], dbz['gridStartX'], 0x1); + var ddf = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var ddg = dbx[dol(0x144b)][dol(0x144c)](dbC['point2'], dbz['gridStartX'], 0x1); + var ddh = dbx[dol(0x144d)]['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return [dbx['funcPublic']['getPointByDistance'](dbC['point2'], 0x0, ddh > ddf ? 0.2 : -0.2), dbx['funcPublic']['getPointByDistance'](dbC['point2'], 0x0, ddh > ddf ? ddf - ddh : ddf - ddh)]; + } + ,![]), + 'width': 0x1, + 'material': Cesium['Color']['MAGENTA'] + } + })); + dbD['push'](dby['entities']['add']({ + 'polygon': { + 'hierarchy': new Cesium['CallbackProperty'](function(ddi, ddj) { + var ddk = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartX'], 0x1); + var ddl = dbx[dol(0x144e)]['GetDistance'](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var ddm = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartX'], 0x1); + var ddn = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return new Cesium['PolygonHierarchy']([dbx['funcPublic'][dol(0x144f)](dbC['point2'], ddk - ddm), dbx['funcPublic']['getPointByDistance'](dbC['point2'], ddm > ddk ? ddk - ddm + 0.1 : ddk - ddm - 0.1, 0.03), dbx['funcPublic']['getPointByDistance'](dbC['point2'], ddm > ddk ? ddk - ddm + 0.1 : ddk - ddm - 0.1, -0.03)]); + } + ,![]), + 'height': dbx['defaultPosition']['height'], + 'extrudedHeight': dbx['defaultPosition']['height'], + 'material': Cesium['Color']['MAGENTA'] + } + })); + dbD[dol(0x1450)](dby['entities']['add']({ + 'polygon': { + 'hierarchy': new Cesium['CallbackProperty'](function(ddo, ddp) { + var ddq = dbx['funcPublic'][dol(0x1451)](dbC['point1'], dbz['gridStartX'], 0x1); + var ddr = dbx['funcPublic'][dol(0x1452)](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var dds = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz[dol(0x1453)], 0x1); + var ddt = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return new Cesium[(dol(0x1454))]([dbx['funcPublic']['getPointByDistance'](dbC['point2'], 0x0, ddr - ddt), dbx['funcPublic']['getPointByDistance'](dbC['point2'], -0.03, ddt > ddr ? ddr - ddt + 0.1 : ddr - ddt - 0.1), dbx['funcPublic'][dol(0x1455)](dbC['point2'], 0.03, ddt > ddr ? ddr - ddt + 0.1 : ddr - ddt - 0.1)]); + } + ,![]), + 'height': dbx['defaultPosition']['height'], + 'extrudedHeight': dbx['defaultPosition']['height'], + 'material': Cesium[dol(0x1456)]['MAGENTA'] + } + })); + dbD[dol(0x1457)](dby[dol(0x1458)]['add']({ + 'position': new Cesium['CallbackProperty'](function(ddu, ddv) { + var ddw = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartX'], 0x1); + var ddx = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartY'], 0x0, 0x1); + var ddy = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartX'], 0x1); + var ddz = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartY'], 0x0, 0x1); + return Cesium[dol(0x1459)]['midpoint'](dbx['funcPublic']['getPointByDistance'](dbC['point1'], 0x0, ddz - ddx), dbC['point2'], new Cesium['Cartesian3']()); + } + ,![]), + 'label': { + 'text': new Cesium['CallbackProperty'](function() { + return (dbx['funcPublic']['GetDistance'](dbC['point1'], dbC['point2'], 0x1) * 0x64)['toFixed'](0x0) + doh(0x19f); + } + ,![]), + 'font': '1' + doo(0xd49) + 'f', + 'scaleByDistance': new Cesium['NearFarScalar'](0x3e8,0x1,0xc3500,0.5), + 'pixelOffset': new Cesium['Cartesian2'](0x0,-0x5), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'], + 'horizontalOrigin': Cesium[dol(0x145a)]['CENTER'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'showBackground': !![] + } + })); + dbD['push'](dby['entities']['add']({ + 'position': new Cesium['CallbackProperty'](function(ddA, ddB) { + var ddC = dbx['funcPublic']['GetDistance'](dbC['point1'], dbz['gridStartX'], 0x1); + var ddD = dbx['funcPublic']['GetDistance'](dbC[dol(0x145b)], dbz['gridStartY'], 0x0, 0x1); + var ddE = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz['gridStartX'], 0x1); + var ddF = dbx['funcPublic']['GetDistance'](dbC['point2'], dbz[dol(0x145c)], 0x0, 0x1); + return Cesium['Cartesian3']['midpoint'](dbx['funcPublic']['getPointByDistance'](dbC['point1'], ddE - ddC), dbC['point2'], new Cesium['Cartesian3']()); + } + ,![]), + 'label': { + 'text': new Cesium['CallbackProperty'](function() { + return (dbx['funcPublic'][dol(0x145d)](dbC[dol(0x145e)], dbC['point2'], 0x0, 0x1) * 0x64)[dol(0x145f)](0x0) + doh(0x1a0); + } + ,![]), + 'font': '1' + doo(0xd4a) + 'f', + 'scaleByDistance': new Cesium['NearFarScalar'](0x3e8,0x1,0xc3500,0.5), + 'pixelOffset': new Cesium['Cartesian2'](-0x5,0x0), + 'disableDepthTestDistance': Number['POSITIVE_INFINITY'], + 'horizontalOrigin': Cesium['HorizontalOrigin']['RIGHT'], + 'verticalOrigin': Cesium['VerticalOrigin']['BOTTOM'], + 'showBackground': !![] + } + })); + } + function ddG(ddH, ddI) { + var ddJ = new Cesium['Cartesian3'](); + var ddK; + if (Math['abs'](ddH['z']) > Math['abs'](ddH['y']) && Math['abs'](ddH['z']) > Math['abs'](ddH['x'])) { + Cesium['Cartesian3']['cross'](ddH, new Cesium['Cartesian3'](0x1,0x0,0x0), ddJ); + if (ddJ['y'] < 0x0) { + if (Cesium['Math'][dol(0x1460)](ddI) > 0.1) { + ddI = Cesium['Math']['toRadians'](0x168 - Cesium['Math']['toDegrees'](ddI)); + } + } + var ddL = Cesium['Matrix3'][dol(0x1461)](ddI, new Cesium['Matrix3']()); + ddK = Cesium['Matrix4']['fromRotationTranslation'](ddL); + } else { + Cesium['Cartesian3']['cross'](ddH, new Cesium['Cartesian3'](0x1,0x0,0x0), ddJ); + if (ddJ['z'] < 0x0) { + if (Cesium['Math']['toDegrees'](ddI) > 0.1) { + ddI = Cesium['Math']['toRadians'](0x168 - Cesium['Math'][dol(0x1462)](ddI)); + } + } + var ddL = Cesium['Matrix3'][dol(0x1463)](ddI, new Cesium[(dol(0x1464))]()); + ddK = Cesium['Matrix4'][dol(0x1465)](ddL); + } + return ddK; + } + this['AutoMeasurement'] = function(ddN) { + dbA = ddN; + if (!dbA) { + dbD['forEach'](function(ddO) { + dby['entities']['remove'](ddO); + }); + dbD['length'] = 0x0; + } + } + ; + this['Alignment'] = function(ddP, ddQ) { + var ddR = {}; + ddP['forEach']( (ddS, ddT) => { + if (ddT == 0x0) { + ddR = dcI(ddS); + return !![]; + } else if (ddS['toLowerCase']() == 'a' + doo(0xd4b) + 'r') + return !![]; + var ddU = dcI(ddS); + switch (ddQ['toUpperCase']()) { + case 'L' + doo(0xd4c) + 'T': + var ddV = ddR['point1']['x'] < ddR['point3']['x'] ? ddR['point1'] : ddR['point3']; + var ddW = ddU['point1']['x'] < ddU['point3']['x'] ? ddU['point1'] : ddU['point3']; + var ddX = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], ddV, 0x1); + var ddY = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], ddW, 0x1); + var ddZ = dbx['funcPublic']['getPointByDistance'](dbz[dol(0x1466)]['boundingSphere']['center'], ddX - ddY); + dcx(ddZ); + break; + case 'C' + doo(0xd4d) + 'R': + var ddX = dbx[dol(0x1467)]['GetDistance'](dbz['gridStartX'], ddR['point5'], 0x1); + var ddY = dbx['funcPublic']['GetDistance'](dbz[dol(0x1468)], ddU['point5'], 0x1); + var ddZ = dbx['funcPublic']['getPointByDistance'](dbz['tileset']['boundingSphere']['center'], ddX - ddY); + dcx(ddZ); + break; + case 'R' + doo(0xd4e) + 'T': + var ddV = ddR['point2']['x'] < ddR['point4']['x'] ? ddR['point2'] : ddR['point4']; + var ddW = ddU['point2']['x'] < ddU['point4']['x'] ? ddU['point2'] : ddU[dol(0x1469)]; + var ddX = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], ddV, 0x1); + var ddY = dbx['funcPublic']['GetDistance'](dbz['gridStartX'], ddW, 0x1); + var ddZ = dbx['funcPublic']['getPointByDistance'](dbz['tileset']['boundingSphere']['center'], ddX - ddY); + dcx(ddZ); + break; + case doh(0x1a1): + var ddV = ddR['point1']['x'] < ddR['point2']['x'] ? ddR['point1'] : ddR['point2']; + var ddW = ddU['point1']['x'] < ddU[dol(0x146a)]['x'] ? ddU['point1'] : ddU['point2']; + var ddX = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], ddV, 0x0, 0x1); + var ddY = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], ddW, 0x0, 0x1); + var ddZ = dbx['funcPublic']['getPointByDistance'](dbz['tileset'][dol(0x146b)][dol(0x146c)], 0x0, ddX - ddY); + dcx(ddZ); + break; + case 'M' + doo(0xd4f) + 'E': + var ddX = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], ddR['point5'], 0x0, 0x1); + var ddY = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], ddU['point5'], 0x0, 0x1); + var ddZ = dbx['funcPublic']['getPointByDistance'](dbz['tileset']['boundingSphere']['center'], 0x0, ddX - ddY); + dcx(ddZ); + break; + case 'B' + doo(0xd50) + 'M': + var ddV = ddR['point3']['x'] < ddR['point4']['x'] ? ddR['point3'] : ddR['point4']; + var ddW = ddU['point3']['x'] < ddU['point4']['x'] ? ddU[dol(0x146d)] : ddU['point4']; + var ddX = dbx['funcPublic']['GetDistance'](dbz['gridStartY'], ddV, 0x0, 0x1); + var ddY = dbx['funcPublic'][dol(0x146e)](dbz['gridStartY'], ddW, 0x0, 0x1); + var ddZ = dbx[dol(0x146f)]['getPointByDistance'](dbz['tileset']['boundingSphere']['center'], 0x0, ddX - ddY); + dcx(ddZ); + break; + default: + } + } + ); + } + ; + this['DrawLine'] = function(del, dem) { + var den = this; + var deo = function() { + function dep(deq, der) { + this['options'] = { + 'id': !Cesium['defined'](del['ID']) ? 'l' + doo(0xd51) + '-' + Math[dol(0x1470)](Math['random']() * 0x2710) : del['ID'], + 'polyline': { + 'positions': [], + 'material': del['Material'] && del['Material'][dol(0x1471)] ? new Cesium['PolylineFlowMaterialProperty']({ + 'color': Cesium['Color']['fromCssColorString'](del['Color'] || 'r' + doo(0xd52) + ',' + (0x1 - Math['random']() / 0x186a0) + ')'), + 'image': del['Material']['Image'], + 'speed': del['Material']['Speed'] || 0x1, + 'duration': del['Material']['Duration'] || 0x2710 + }) : del['Arrow'] ? new Cesium['PolylineArrowMaterialProperty'](!Cesium[dol(0x1472)](del[dol(0x1473)]) ? Cesium['Color']['RED'] : Cesium['Color']['fromCssColorString'](del['Color'])) : !Cesium['defined'](del[dol(0x1474)]) ? Cesium[dol(0x1475)]['RED'] : Cesium['Color']['fromCssColorString'](del['Color']), + 'width': !Cesium['defined'](del['Width']) ? 0x1 : del['Width'], + 'show': !Cesium['defined'](del['Show']) ? !![] : del['Show'] + } + }; + this['positions'] = deq; + this['syn'] = der; + this['_init'](); + } + dep['prototype']['_init'] = function() { + var dbz = this; + var det = function() { + var deu = []; + dbz['positions']['forEach'](dev => { + var dew = dbx['funcPublic']['cartesian3ToCartographic'](dev, dby); + deu['push'](dew['longitude'], dew[dol(0x1476)], dew['height']); + } + ); + return deu['length'] > 0x0 ? Cesium['Cartesian3']['fromRadiansArrayHeights'](deu) : deu; + }; + this['options']['polyline']['positions'] = new Cesium['CallbackProperty'](det,Cesium['defined'](dbz['syn'])); + dby['entities']['add'](this['options']); + } + ; + return dep; + }(); + var dex = undefined; + if (Cesium['defined'](del['Positions'])) { + dex = new deo(del['Positions'],!![]); + } else { + if (dbw && !dbw['isDestroyed']()) + dbw['destroy'](); + dbw = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + var dey = []; + var dez = null; + var deA = function(deB) { + if (dez != null) + clearTimeout(dez); + dez = window['setTimeout'](function() { + var deC = dby[dol(0x1477)]['pickPosition'](deB); + if (dey['length'] == 0x0) { + dey['push'](deC['clone']()); + } + dey['push'](deC); + }, 0xc8); + }; + var deD = function(deE, deF) { + var deG = dby['scene']['pickPosition'](deE); + if (dey['length'] >= 0x2) { + if (deF) { + var deH = Cesium['Cartographic']['fromCartesian'](dey[dey['length'] - 0x2]); + var deI = Cesium['Cartographic']['fromCartesian'](deG); + var deJ = dbx['funcPublic']['GetDistance'](dey[dey['length'] - 0x2], deG, 0x1); + var deK = dbx['funcPublic'][dol(0x1478)](dey[dey['length'] - 0x2], deG, 0x0, 0x1); + if (deJ < deK) { + deG = Cesium['Cartesian3']['fromRadians'](deH['longitude'], deI[dol(0x1479)], deI['height']); + } else { + deG = Cesium['Cartesian3']['fromRadians'](deI['longitude'], deH['latitude'], deI['height']); + } + } + if (!Cesium['defined'](dex)) { + dex = new deo(dey); + } else { + if (deG != undefined) { + dey['pop'](); + dey[dol(0x147a)](deG); + } + } + dby['scene']['requestRender'](); + } + }; + var deL = function() { + den['snap']['do']['push']({ + 'Key': doh(0x1a2), + 'Type': 'E' + doo(0xd53) + 'y', + 'ID': dex['options']['id'] + }); + if (dez != null) + clearTimeout(dez); + dbw[dol(0x147b)](); + if (!isEmpty(dem)) + dem(dey); + dey = []; + }; + dbw['setInputAction'](function(deM) { + deA(deM[dol(0x147c)]); + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(deN) { + deA(deN[dol(0x147d)]); + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK'], Cesium['KeyboardEventModifier']['SHIFT']); + dbw[dol(0x147e)](function(deO) { + deD(deO['endPosition'], ![]); + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE']); + dbw['setInputAction'](function(deP, deQ) { + deD(deP['endPosition'], !![]); + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE'], Cesium['KeyboardEventModifier']['SHIFT']); + dbw['setInputAction'](function(deR) { + dey['pop'](); + if (dey['length'] == 0x1) + dey['pop'](); + dby['scene']['requestRender'](); + }, Cesium['ScreenSpaceEventType']['RIGHT_CLICK']); + dbw['setInputAction'](function(deS) { + dey['pop'](); + if (dey['length'] == 0x1) + dey[dol(0x147f)](); + dby[dol(0x1480)]['requestRender'](); + }, Cesium['ScreenSpaceEventType']['RIGHT_CLICK'], Cesium['KeyboardEventModifier'][dol(0x1481)]); + dbw[dol(0x1482)](function(deT) { + deL(); + }, Cesium[dol(0x1483)][dol(0x1484)]); + dbw['setInputAction'](function(deU) { + deL(); + }, Cesium['ScreenSpaceEventType']['LEFT_DOUBLE_CLICK'], Cesium['KeyboardEventModifier'][dol(0x1485)]); + } + } + ; + this['exitDraw'] = function() { + dbw['destroy'](); + } + ; + this['DrawCircle'] = function(deV, deW) { + var deX = this; + var deY = function() { + function deZ(df0, df1, df2) { + this['options'] = { + 'id': !Cesium['defined'](deV['ID']) ? 'e' + doo(0xd54) + '-' + Math['round'](Math['random']() * 0x2710) : deV['ID'], + 'ellipse': { + 'semiMinorAxis': 0x0, + 'semiMajorAxis': 0x0, + 'height': !Cesium['defined'](deV['Height']) ? 0.001 : deV['Height'] == 0x0 ? 0.001 : deV['Height'], + 'extrudedHeight': !Cesium['defined'](deV['ExtrudedHeight']) ? 0.001 : deV['ExtrudedHeight'], + 'fill': !Cesium['defined'](deV['Fill']) ? !![] : deV[dol(0x1486)], + 'material': !Cesium['defined'](deV['Color']) ? Cesium['Color']['RED']['withAlpha'](0.5) : Cesium['Color']['fromCssColorString'](deV['Color']), + 'outline': !Cesium['defined'](deV['Outline']) ? !![] : deV['Outline'], + 'outlineColor': !Cesium['defined'](deV['OutlineColor']) ? Cesium['Color']['BLACK'] : Cesium[dol(0x1487)]['fromCssColorString'](deV['OutlineColor']), + 'outlineWidth': !Cesium['defined'](deV[dol(0x1488)]) ? 0x1 : deV['OutlineWidth'], + 'show': !Cesium['defined'](deV['Show']) ? !![] : deV[dol(0x1489)] + } + }; + this['radius'] = df1; + this['positions'] = df0; + this['syn'] = df2; + this['_init'](); + } + deZ['prototype'][dol(0x148a)] = function() { + var dbz = this; + this['options']['position'] = new Cesium['CallbackProperty'](function() { + return dbz['positions'][0x0]['clone'](); + } + ,Cesium['defined'](dbz[dol(0x148b)])); + var df4 = function() { + return Cesium['defined'](dbz['radius']) ? dbz['radius'] : Cesium['Cartesian3']['distance'](dbz['positions'][0x0]['clone'](), dbz[dol(0x148c)][dbz['positions']['length'] - 0x1]['clone']()); + }; + this['options']['ellipse']['semiMinorAxis'] = new Cesium['CallbackProperty'](df4,Cesium['defined'](dbz['syn'])); + this['options']['ellipse']['semiMajorAxis'] = new Cesium['CallbackProperty'](df4,Cesium['defined'](dbz['syn'])); + dby['entities']['add'](this['options']); + } + ; + return deZ; + }(); + var df5 = undefined; + if (Cesium['defined'](deV['Position']) && Cesium['defined'](deV['Radius'])) { + df5 = new deY([deV['Position']],deV[dol(0x148d)],!![]); + } else { + if (dbw && !dbw['isDestroyed']()) + dbw['destroy'](); + dbw = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + var df6 = []; + dbw['setInputAction'](function(df7) { + if (df6['length'] < 0x2) { + var df8 = dby['scene']['pickPosition'](df7['position']); + if (df6['length'] == 0x0) { + df6['push'](df8['clone']()); + } + df6['push'](df8); + } else { + dbw['destroy'](); + if (!isEmpty(deW)) + deW(df6); + } + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(df9) { + var dfa = dby[dol(0x148e)]['pickPosition'](df9['endPosition']); + if (df6['length'] >= 0x2) { + if (!Cesium['defined'](df5)) { + df5 = new deY(df6); + } else { + if (dfa != undefined) { + df6['pop'](); + df6[dol(0x148f)](dfa); + } + } + dby['scene']['requestRender'](); + } + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE']); + } + } + ; + this['DrawRectangle'] = function(dfb, dfc) { + var dfd = this; + var dfe = function() { + function dff(dfg, dfh, dfi) { + this['options'] = { + 'id': !Cesium['defined'](dfb['ID']) ? 'r' + doo(0xd55) + '-' + Math['round'](Math['random']() * 0x2710) : dfb['ID'], + 'rectangle': { + 'coordinates': [], + 'height': !Cesium['defined'](dfb[dol(0x1490)]) ? 0.001 : dfb['Height'], + 'extrudedHeight': !Cesium['defined'](dfb[dol(0x1491)]) ? 0.001 : dfb['ExtrudedHeight'], + 'fill': !Cesium[dol(0x1492)](dfb['Fill']) ? !![] : dfb['Fill'], + 'material': !Cesium['defined'](dfb['Color']) ? Cesium['Color']['RED']['withAlpha'](0.5) : Cesium['Color']['fromCssColorString'](dfb['Color']), + 'outline': !Cesium['defined'](dfb['Outline']) ? !![] : dfb['Outline'], + 'outlineColor': !Cesium['defined'](dfb['OutlineColor']) ? Cesium['Color']['BLACK'] : Cesium['Color']['fromCssColorString'](dfb['OutlineColor']), + 'show': !Cesium['defined'](dfb['Show']) ? !![] : dfb['Show'] + } + }; + this['coordinates'] = dfh; + this['positions'] = dfg; + this['syn'] = dfi; + this['_init'](); + } + dff['prototype']['_init'] = function() { + var dbz = this; + var dfk = function() { + return Cesium['defined'](dbz['coordinates']) ? new Cesium['Rectangle'](dbz['coordinates']['west'],dbz['coordinates']['south'],dbz['coordinates']['east'],dbz['coordinates']['north']) : Cesium['Rectangle']['fromCartesianArray'](dbz['positions']); + }; + this['options']['rectangle'][dol(0x1493)] = new Cesium['CallbackProperty'](dfk,Cesium['defined'](dbz['syn'])); + dby['entities']['add'](this['options']); + } + ; + return dff; + }(); + var dfl = undefined; + if (Cesium['defined'](dfb['Coordinates'])) { + dfl = new dfe(null,dfb['Coordinates'],!![]); + } else { + if (dbw && !dbw['isDestroyed']()) + dbw['destroy'](); + dbw = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + var dfm = []; + dbw['setInputAction'](function(dfn) { + if (dfm['length'] < 0x2) { + var dfo = dby['scene']['pickPosition'](dfn['position']); + if (dfm[dol(0x1494)] == 0x0) { + dfm['push'](dfo['clone']()); + } + dfm['push'](dfo); + } else { + dbw['destroy'](); + if (!isEmpty(dfc)) + dfc(dfm); + } + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(dfp) { + var dfq = dby['scene']['pickPosition'](dfp['endPosition']); + if (dfm['length'] >= 0x2) { + if (!Cesium['defined'](dfl)) { + dfl = new dfe(dfm); + } else { + if (dfq != undefined) { + dfm[dol(0x1495)](); + dfm['push'](dfq); + } + } + dby['scene']['requestRender'](); + } + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE']); + } + } + ; + function dfr(dfs) { + var dft = []; + for (var dfu = 0x0; dfu < 0x168; dfu += 0xf) { + var dfv = Cesium['Math']['toRadians'](dfu); + dft['push'](new Cesium['Cartesian2'](dfs * Math['cos'](dfv),dfs * Math['sin'](dfv))); + } + return dft; + } + ;this['DrawPipeLine'] = function(dfw, dfx) { + var dfy = this; + var dfz = function() { + function dfA(dfB, dfC, dfD) { + var dfE = api['viewer']['camera']['_projection'][dol(0x1496)]; + var dfF = Cesium['Transforms']['eastNorthUpToFixedFrame'](dfB[0x0], dfE, new Cesium['Matrix4']()); + this['options'] = { + 'id': !Cesium['defined'](dfw['ID']) ? 'p' + doo(0xd56) + '-' + Math['round'](Math['random']() * 0x2710) : dfw['ID'], + 'polylineVolume': { + 'positions': [], + 'shape': Cesium['defined'](dfC) ? dfC : dfr(!Cesium['defined'](dfw['Radius']) ? 0.01 : dfw['Radius']), + 'material': dfw[dol(0x1497)] && dfw['Material']['Flow'] ? new Cesium['PolylineFlowMaterialProperty']({ + 'color': Cesium[dol(0x1498)]['fromCssColorString'](dfw['Color'] || 'r' + doo(0xd57) + ',' + (0x1 - Math['random']() / 0x186a0) + ')'), + 'image': dfw['Material']['Image'], + 'speed': dfw['Material']['Speed'] || 0x1, + 'duration': dfw['Material']['Duration'] || 0x2710 + }) : !Cesium[dol(0x1499)](dfw['Color']) ? Cesium[dol(0x149a)]['WHITE'] : Cesium[dol(0x149b)]['fromCssColorString'](dfw['Color']), + 'cornerType': !Cesium['defined'](dfw['CornerType']) ? 0x0 : dfw['CornerType'], + 'show': !Cesium['defined'](dfw['Show']) ? !![] : dfw['Show'], + 'RootTransform': dfF + }, + 'description': Cesium['defined'](dfw['Radius']) ? dfw['Radius'] : 0.01 + }; + this['positions'] = dfB; + this['syn'] = dfD; + this['_init'](); + } + dfA['prototype']['_init'] = function() { + var dbz = this; + var dfH = function() { + var dfI = []; + dbz[dol(0x149c)]['forEach'](dfJ => { + var dfK = dbx['funcPublic']['cartesian3ToCartographic'](dfJ, dby); + dfI['push'](dfK['longitude'], dfK['latitude'], dfK[dol(0x149d)]); + } + ); + return dfI['length'] > 0x0 ? Cesium[dol(0x149e)]['fromRadiansArrayHeights'](dfI) : []; + }; + this['options']['polylineVolume']['positions'] = new Cesium['CallbackProperty'](dfH,Cesium['defined'](dbz['syn'])); + dby['entities']['add'](this['options']); + } + ; + return dfA; + }(); + var dfL = undefined; + var dfM = ![]; + if (Cesium['defined'](dfw['Positions']) && Cesium['defined'](dfw['Shape'])) { + dfL = new dfz(dfw['Positions'],dfw['Shape'],!![]); + } else { + if (dbw && !dbw['isDestroyed']()) + dbw['destroy'](); + dbw = new Cesium[(dol(0x149f))](dby['scene']); + var dfN = []; + var dfO = null; + var dfP = function(dfQ) { + if (dfO != null) + clearTimeout(dfO); + dfO = window['setTimeout'](function() { + var dfR = dby['scene']['pickPosition'](dfQ); + if (dfN['length'] == 0x0) { + dfN[dol(0x14a0)](dfR['clone']()); + } + dfN['push'](dfR); + if (dfN[dol(0x14a1)] > 0x2) { + dfN['pop'](); + dg2(); + } + }, 0xc8); + }; + var dfS = function(dfT, dfU) { + var dfV = dby['scene']['pickPosition'](dfT); + if (dfN[dol(0x14a2)] >= 0x2) { + if (dfU) { + var dfW = Cesium['Cartographic']['fromCartesian'](dfN[dfN['length'] - 0x2]); + var dfX = Cesium['Cartographic']['fromCartesian'](dfV); + var dfY = dbx['funcPublic']['GetDistance'](dfN[dfN['length'] - 0x2], dfV, 0x1); + var dfZ = dbx[dol(0x14a3)]['GetDistance'](dfN[dfN['length'] - 0x2], dfV, 0x0, 0x1); + if (dfY < dfZ) { + dfV = Cesium['Cartesian3']['fromRadians'](dfW['longitude'], dfX['latitude'], dfX['height']); + } else { + dfV = Cesium['Cartesian3'][dol(0x14a4)](dfX[dol(0x14a5)], dfW['latitude'], dfX['height']); + } + } else if (dfM) { + var dfW = Cesium['Cartographic']['fromCartesian'](dfN[dfN['length'] - 0x2]); + var dfX = Cesium['Cartographic']['fromCartesian'](dfV); + dfV = Cesium['Cartesian3']['fromRadians'](dfW['longitude'], dfW['latitude'], dfX['height']); + } + if (!Cesium['defined'](dfL)) { + dfL = new dfz(dfN); + } else { + if (dfV != undefined) { + dfN['pop'](); + dfN['push'](dfV); + } + } + dby['scene']['requestRender'](); + } + }; + var dg2 = function() { + if (dfO != null) + clearTimeout(dfO); + dbw['destroy'](); + if (!isEmpty(dfx)) + dfx(dfN); + }; + dbw['setInputAction'](function(dg3) { + dfP(dg3['position']); + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(dg4) { + dfP(dg4['position']); + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK'], Cesium['KeyboardEventModifier']['SHIFT']); + dbw['setInputAction'](function(dg5) { + dfS(dg5['endPosition'], ![]); + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE']); + dbw['setInputAction'](function(dg6) { + dfS(dg6[dol(0x14a6)], !![]); + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE'], Cesium['KeyboardEventModifier'][dol(0x14a7)]); + dbw['setInputAction'](function(dg7) { + dfN['pop'](); + if (dfN['length'] == 0x1) + dfN['pop'](); + dby['scene']['requestRender'](); + }, Cesium['ScreenSpaceEventType']['RIGHT_CLICK']); + dbw['setInputAction'](function(dg8) { + dfN['pop'](); + if (dfN['length'] == 0x1) + dfN['pop'](); + dby['scene']['requestRender'](); + }, Cesium[dol(0x14a8)]['RIGHT_CLICK'], Cesium['KeyboardEventModifier']['SHIFT']); + dbw['setInputAction'](function(dg9) { + dg2(); + }, Cesium['ScreenSpaceEventType']['LEFT_DOUBLE_CLICK']); + dbw['setInputAction'](function(dga) { + dg2(); + }, Cesium['ScreenSpaceEventType']['LEFT_DOUBLE_CLICK'], Cesium['KeyboardEventModifier']['SHIFT']); + document['onkeydown'] = function(dgb) { + if (dgb['keyCode'] == 0x20) { + if (!dfM) { + dby[dol(0x14a9)]['removeById']('t' + doo(0xd58) + 'e'); + var dgc = Cesium['Cartesian3']['normalize'](Cesium['Cartesian3'][dol(0x14aa)](dby['camera']['position'], dfN[dfN['length'] - 0x1], new Cesium['Cartesian3']()), new Cesium['Cartesian3']()); + dby['entities']['add']({ + 'id': 't' + doo(0xd59) + 'e', + 'position': dfN[dfN['length'] - 0x2], + 'plane': { + 'plane': new Cesium[(dol(0x14ab))](dgc,-0x1), + 'dimensions': new Cesium[(dol(0x14ac))](0x3e8,0x3e8), + 'material': Cesium['Color']['WHITE'][dol(0x14ad)](0.01) + } + }); + } + dfM = !![]; + } + } + ; + document['onkeyup'] = function(dgd) { + dfM = ![]; + dby['entities']['removeById']('t' + doo(0xd5a) + 'e'); + } + ; + } + } + ; + this['DrawCylinder'] = function(dge, dgf) { + var dgg = this; + dge['InHeight'] = dge['InHeight'] >= dge['Height'] ? dge['Height'] - 0.01 : dge['InHeight']; + var dgh = function() { + function dgi(dgj, dgk) { + var dgl = !Cesium['defined'](dge['ID']) ? 'c' + doo(0xd5b) + '-' + Math['round'](Math['random']() * 0x2710) : dge['ID']; + var dgm = 0x0; + this['options1'] = { + 'id': dgl, + 'cylinder': { + 'length': !Cesium['defined'](dge['Height']) ? 0x3 : dge['Height'], + 'topRadius': !Cesium['defined'](dge['Radius']) ? 0x1 : dge['Radius'], + 'bottomRadius': !Cesium['defined'](dge['Radius']) ? 0x1 : dge['Radius'], + 'material': !Cesium['defined'](dge[dol(0x14ae)]) ? Cesium['Color']['WHITE']['withAlpha'](0.7) : Cesium[dol(0x14af)]['fromCssColorString'](dge['Color']), + 'show': !Cesium[dol(0x14b0)](dge['ShowOuter']) ? !![] : dge['ShowOuter'] + } + }; + this['options2'] = { + 'id': dgl + doh(0x1a3), + 'cylinder': { + 'length': new Cesium['CallbackProperty'](function() { + dgm = (dgm < dge['InHeight'] ? dgm + 0.01 : dgm >= dge['InHeight'] ? dgm - 0.01 : dgm)['toFixed'](0x2) * 0x1; + return dgm; + } + ,![]), + 'topRadius': !Cesium[dol(0x14b1)](dge['Radius']) ? 0.8 : dge[dol(0x14b2)] * 0.8, + 'bottomRadius': !Cesium['defined'](dge['Radius']) ? 0.8 : dge['Radius'] * 0.8, + 'material': !Cesium['defined'](dge['InColor']) ? Cesium['Color'][dol(0x14b3)]('r' + doo(0xd5c) + ')') : Cesium['Color']['fromCssColorString'](dge['InColor']), + 'show': !Cesium['defined'](dge[dol(0x14b4)]) ? !![] : dge['Show'] + } + }; + this['position'] = dgj; + this['syn'] = dgk; + this['_init'](); + } + dgi['prototype']['_init'] = function() { + var dbz = this; + var dgo = function() { + return dbx['funcPublic']['getPointByDistance'](dbz['position'], 0x0, 0x0, dbz['options1']['cylinder']['length'] / 0x2); + }; + var dgp = function() { + var dgq = dbz['options2']['cylinder']['length']['getValue'](); + return dbx['funcPublic']['getPointByDistance'](dbz['position'], 0x0, 0x0, dgq / 0x2); + }; + this['options1']['position'] = new Cesium['CallbackProperty'](dgo,Cesium[dol(0x14b5)](dbz['syn'])); + this['options2']['position'] = new Cesium['CallbackProperty'](dgp,Cesium['defined'](dbz[dol(0x14b6)])); + this['options2']['cposition'] = dbz['position']['clone'](); + dby['entities'][dol(0x14b7)](this['options1']); + dby['entities']['add'](this['options2']); + } + ; + return dgi; + }(); + var dgr = undefined; + if (Cesium['defined'](dge['Position'])) { + dgr = new dgh(dge['Position']); + } else { + if (dbw && !dbw[dol(0x14b8)]()) + dbw['destroy'](); + dbw = new Cesium[(dol(0x14b9))](dby['scene']); + dbw['setInputAction'](function(dgs) { + var dgt = dby['scene']['pickPosition'](dgs['position']); + dgr = new dgh(dgt['clone']()); + dgg['snap']['do']['push']({ + 'Key': doh(0x1a4), + 'Type': 'E' + doo(0xd5d) + 'y', + 'ID': dgr['options1']['id'] + }); + dbw[dol(0x14ba)](); + if (!isEmpty(dgf)) + dgf({ + 'position': dgt, + 'obj': dgr + }); + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + } + } + ; + this['DrawImage'] = function(dgu, dgv) { + var dgw = this; + var dgx = function() { + function dgy(dgz, dgA) { + this['options'] = { + 'id': !Cesium['defined'](dgu['ID']) ? 'i' + doo(0xd5e) + '-' + Math['round'](Math['random']() * 0x2710) : dgu['ID'], + 'billboard': { + 'image': !Cesium['defined'](dgu[dol(0x14bb)]) ? '' : dgu['Image'], + 'sizeInMeters': !![], + 'show': !Cesium['defined'](dgu['Show']) ? !![] : dgu['Show'] + } + }; + this['positions'] = dgz; + this['syn'] = dgA; + this['_init'](); + } + dgy['prototype']['_init'] = function() { + var dbz = this; + var dgC = function() { + return dbz[dol(0x14bc)][0x0]['clone'](); + }; + var dgD = function() { + return Cesium[dol(0x14bd)](dgu['Width']) ? dgu['Width'] : dbx['funcPublic']['GetDistance'](dbz['positions'][0x0], dbz['positions'][0x1], 0x1) * 0x3; + }; + var dgE = function() { + return Cesium[dol(0x14be)](dgu['Height']) ? dgu[dol(0x14bf)] : dbx['funcPublic']['GetDistance'](dbz[dol(0x14c0)][0x0], dbz['positions'][0x1], 0x0, 0x1) * 0x3; + }; + this['options']['position'] = new Cesium['CallbackProperty'](dgC,Cesium['defined'](dbz['syn'])); + this['options']['billboard']['width'] = new Cesium['CallbackProperty'](dgD,Cesium['defined'](dbz['syn'])); + this['options'][dol(0x14c1)]['height'] = new Cesium['CallbackProperty'](dgE,Cesium['defined'](dbz['syn'])); + dby['entities']['add'](this['options']); + } + ; + return dgy; + }(); + var dgF = undefined; + if (Cesium['defined'](dgu['Positions'])) { + dgF = new dgx(dgu['Positions'],!![]); + } else { + if (dbw && !dbw['isDestroyed']()) + dbw['destroy'](); + dbw = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + var dgG = []; + dbw['setInputAction'](function(dgH) { + if (dgG['length'] < 0x2) { + var dgI = dby['scene']['camera']['pickEllipsoid'](dgH['position'], dby['scene']['globe']['ellipsoid']); + if (dgG['length'] == 0x0) { + dgG['push'](dgI['clone']()); + } + dgG['push'](dgI); + } else { + dbw['destroy'](); + if (!isEmpty(dgv)) + dgv({ + 'offset': { + 'x': dbx['funcPublic']['GetDistance'](dgF['options']['position'][dol(0x14c2)](Cesium['JulianDate']['now']()), dgw['gridStartX'], 0x1) - dbx['funcPublic']['GetDistance'](dgw['gridCenter'], dgw[dol(0x14c3)], 0x1), + 'y': dbx['funcPublic']['GetDistance'](dgF['options']['position']['getValue'](Cesium['JulianDate']['now']()), dgw['gridStartY'], 0x0, 0x1) - dbx['funcPublic'][dol(0x14c4)](dgw['gridCenter'], dgw['gridStartY'], 0x0, 0x1), + 'z': dbx['funcPublic']['GetDistance'](dgF['options']['position']['getValue'](Cesium['JulianDate'][dol(0x14c5)]()), dgw['gridCenter'], 0x0, 0x0, 0x1) + }, + 'width': dgF['options']['billboard']['width']['getValue'](), + 'height': dgF['options']['billboard']['height'][dol(0x14c6)]() + }); + } + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(dgJ) { + var dgK = dby['scene']['camera']['pickEllipsoid'](dgJ[dol(0x14c7)], dby['scene']['globe']['ellipsoid']); + if (dgG['length'] >= 0x2) { + if (!Cesium['defined'](dgF)) { + dgF = new dgx(dgG); + } else { + if (dgK != undefined) { + dgG['pop'](); + dgG['push'](dgK); + } + } + dby['scene']['requestRender'](); + } + }, Cesium[dol(0x14c8)]['MOUSE_MOVE']); + } + } + ; + this['DrawTexture'] = function(dgL, dgM) { + var dgN = this; + var dgO = function() { + function dgP(dgQ, dgR) { + this['positions'] = dgQ; + this['_init'](); + } + dgP['prototype']['_init'] = function() { + var dbz = this; + var dgT = new Cesium['CustomPrimitiveTexture']({ + 'id': dgL['ID'], + 'cartesians': dbz['positions'], + 'url': dgL['Url'], + 'speed': dgL['Speed'], + 'repeat': dgL['Repeat'], + 'viewer': dby + }); + dgL['Positions'] = dbz['positions']; + dbx['c_primitive']['set'](dgL['ID'], { + 'options': dgL, + 'obj': dgT + }); + if (!isEmpty(dgM)) + dgM(dgL); + } + ; + return dgP; + }(); + var dgU = undefined; + if (Cesium['defined'](dgL['Positions'])) { + dgU = new dgO(dgL['Positions'],!![]); + } else { + if (dbw && !dbw[dol(0x14c9)]()) + dbw['destroy'](); + dbw = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + var dgV = []; + dbw['setInputAction'](function(dgW) { + var dgX = dby[dol(0x14ca)]['pickPosition'](dgW[dol(0x14cb)]); + dgX = dbx['funcPublic']['getPointByDistance'](dgX, 0x0, 0x0, 0.001); + dgV[dol(0x14cc)](dgX); + dby[dol(0x14cd)]['add']({ + 'id': 't' + doo(0xd5f) + '_' + dgV['length'], + 'position': dgX, + 'point': new Cesium['PointGraphics']({ + 'color': Cesium['Color']['RED'], + 'pixelSize': 0x1 + }) + }); + if (dgV['length'] == 0x4) { + dgU = new dgO(dgV); + dby['entities'][dol(0x14ce)]('t' + doo(0xd60) + '1'); + dby['entities']['removeById']('t' + doo(0xd61) + '2'); + dby['entities']['removeById']('t' + doo(0xd62) + '3'); + dby['entities']['removeById']('t' + doo(0xd63) + '4'); + dbw['destroy'](); + } + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(dgY) { + dby['entities']['removeById']('t' + doo(0xd64) + '_' + dgV['length']); + dgV['pop'](); + dby['scene']['requestRender'](); + }, Cesium['ScreenSpaceEventType']['RIGHT_CLICK']); + } + } + ; + this['DrawPolygon'] = function(dgZ, dh0) { + var dh1 = this; + var dh2 = function() { + function dh3(dh4, dh5, dh6) { + this['options'] = { + 'id': !Cesium['defined'](dgZ[dol(0x14cf)]) ? 'p' + doo(0xd65) + '-' + Math['round'](Math[dol(0x14d0)]() * 0x2710) : dgZ['ID'], + 'polygon': { + 'hierarchy': [], + 'fill': !Cesium[dol(0x14d1)](dgZ['Fill']) ? !![] : dgZ['Fill'], + 'material': !Cesium[dol(0x14d2)](dgZ[dol(0x14d3)]) ? Cesium['Color']['RED']['withAlpha'](0.5) : Cesium['Color']['fromCssColorString'](dgZ['Color']), + 'show': !Cesium['defined'](dgZ['Show']) ? !![] : dgZ['Show'] + } + }; + this['hierarchy'] = dh5; + this['positions'] = dh4; + this['syn'] = dh6; + this['polygon']; + this['_init'](); + } + dh3['prototype']['_init'] = function() { + var dbz = this; + var dh8 = function() { + return new Cesium['PolygonHierarchy'](Cesium['defined'](dbz[dol(0x14d4)]) ? dbz['hierarchy'] : dbz[dol(0x14d5)]); + }; + this['options']['polygon']['hierarchy'] = new Cesium[(dol(0x14d6))](dh8,this['syn']); + this['polygon'] = dby['entities']['add'](this['options']); + } + ; + return dh3; + }(); + var dh9 = undefined; + if (Cesium['defined'](dgZ['Hierarchy'])) { + dh9 = new dh2(null,dgZ['Hierarchy'],!![]); + } else { + if (dbw && !dbw['isDestroyed']()) + dbw['destroy'](); + dbw = new Cesium['ScreenSpaceEventHandler'](dby['scene']); + var dha = []; + dbw['setInputAction'](function(dhb) { + var dhc = dby[dol(0x14d7)]['pickPosition'](dhb['position']); + dha['push'](dhc); + if (dha['length'] > 0x2) { + if (!Cesium['defined'](dh9)) { + dh9 = new dh2(dha,dgZ['Hierarchy'],!![]); + } else { + dby['entities']['remove'](dh9['polygon']); + dh9 = new dh2(dha,dgZ['Hierarchy'],!![]); + } + dby['scene']['requestRender'](); + } + }, Cesium['ScreenSpaceEventType']['LEFT_CLICK']); + dbw['setInputAction'](function(dhd) { + dbw['destroy'](); + if (!isEmpty(dh0)) + dh0(dha); + }, Cesium['ScreenSpaceEventType']['RIGHT_CLICK']); + } + } + ; + this['CanExternalFlow'] = function(dhe, dhf) { + var dhg = []; + try { + var dhh = dhe['split']('#'); + var dhi; + if (!isEmpty(dhf)) { + if (dbx['m_model']['get'](dhf['toString']()) === undefined) { + throw doj(0x438); + } + dhi = dbx['m_model']['get'](dhf['toString']()); + } else { + var dhj = dbx['funcPublic']['disposeFeatureId'](dhh[0x0]); + dhf = dhj[0x0]['toString'](); + if (dbx['m_model']['get'](dhf) === undefined) { + throw doj(0x439); + } + dhi = dbx[dol(0x14d8)]['get'](dhf); + } + if (!dhi) + return dhg; + for (var dhk = 0x0; dhk < dhh['length']; dhk++) { + var dhl = dhh[dhk]; + if (!isEmpty(dhl)) { + var dhm = dbx['funcPublic']['disposeFeatureId'](dhl); + if (dhm['length'] > 0x1) + dhl = dhm[0x1]; + else + dhl = dhm[0x0]; + var dhn = dhi['getParamObject']() != undefined ? dhi['getParamObject']()['entities']['getById'](dhl) : undefined; + if (dhn != undefined && dhn['polylineVolume']) { + if (dhn['polylineVolume']['material'] && dhn['polylineVolume']['material']['color'] && dhn[dol(0x14d9)]['material']['color'][dol(0x14da)]()) { + dhg['push'](dhf + '^' + dhl); + } + } + } + } + } catch (dho) { + console[dol(0x14db)](dho); + } + return dhg; + } + ; + this['DrawExternalFlow'] = function(dhp) { + return new Promise(function(dhq, dhr) { + try { + var dhs = this; + var dht = dhp['tag']; + var dhu = dhp['guids']; + var dhv = new Map(); + let dhw = dhp['calculationDirection']; + if (dhw == undefined) { + dhw = !![]; + } + var dhx = dhp['directions']; + if (!Cesium['defined'](dhs['params2FeaturesMap'])) + dhs['params2FeaturesMap'] = new Map(); + if (dbx['isMobile']()) { + console['log']('管' + doo(0xd66) + ','); + return; + } + var dhy = new Map(); + if (Array['isArray'](dhu)) { + for (var dhz = 0x0; dhz < dhu['length']; dhz++) { + var dhA = dhu[dhz]; + var dhB = dbx[dol(0x14dc)]['disposeFeatureId'](dhA); + var dht = ''; + if (dhB['length'] > 0x1) { + dht = dhB[0x0]; + dhA = dhB[0x1]; + } else + throw '未' + doo(0xd67) + '。'; + if (!dhv['has'](dht)) + dhv['set'](dht, []); + dhv['get'](dht)['push'](dhA); + if (!dhw) { + dhy['set'](dhA, dhx[dhz]); + } + } + } + var dhD = new Map(); + var dhE = new Map(); + var dhF = 0x0; + dhv['forEach'](function(dhG, dht, dhI) { + if (!dhE['has'](dht)) + dhE['set'](dht, new Map()); + var dhJ = dbx['m_model']['get'](dht[dol(0x14dd)]()); + if (Cesium['defined'](dhJ)) { + dbx['funcPublic']['getAllTiles'](dhJ, function(dhK) { + for (var dhL = 0x0; dhL < dhK['length']; ++dhL) { + var dhM = dhK[dhL]; + var dhN = dhM['_content']; + var dhO = []; + var dhP = []; + var dhQ = []; + if (dhN == undefined || dhN['_batchTable'] == undefined) { + continue; + } + for (var dhR = 0x0; dhR < dhG['length']; dhR++) { + var dhS = dhG[dhR]; + var dhT = dhN['_batchTable']['_properties']['name']['indexOf'](dhS); + if (dhT > -0x1) { + dhO['push'](dhS); + dhP['push'](dhT); + var dhU = Cesium['Cartesian3']['fromArray'](dhN['_batchTable'][dol(0x14de)]['maxPoint'][dhT]); + var dhV = Cesium['Cartesian3']['fromArray'](dhN['_batchTable']['_properties']['minPoint'][dhT]); + if (dhN['_model']['isInstanced']) { + var dhW = new Cesium['Matrix4'](); + dhN['_model'][dol(0x14df)](dhT)['clone'](dhW); + Cesium['Matrix4']['multiplyByPoint'](dhW, dhU, dhU); + Cesium['Matrix4'][dol(0x14e0)](dhW, dhV, dhV); + } + dhD['set'](dhS, [dhU, dhV]); + if (!dhw) { + var dhX = dhy['get'](dhS); + var dhY = Cesium['Cartesian3']['angleBetween'](dhX, new Cesium['Cartesian3'](0x1,0x0,0x0)); + var dhZ = ddG(dhX, dhY); + dhQ['push'](dhZ); + } + } + } + if (dhO['length'] > 0x0) { + dhE['get'](dht)['set'](dhL, { + 'model': dhM, + 'featureIds': dhO, + 'batchIds': dhP, + 'directions': dhw ? [] : dhQ + }); + dhF++; + } + } + }); + } + }); + if (dhE['size'] == 0x0) + return; + var di0 = new Map(); + if (dhw) { + dhv['forEach'](function(di1, dht, di3) { + for (var di4 = 0x0; di4 < di1['length']; di4++) { + var di5 = di1[di4]; + var di6 = dhD['get'](di5); + var di7 = di6[0x0]; + var di8 = di6[0x1]; + if (di1['length'] == 0x1) { + var di9 = Cesium['Cartesian3']['midpoint'](di7, di8, new Cesium['Cartesian3']()); + var dia = Cesium['Cartesian3']['subtract'](di7, di8, new Cesium[(dol(0x14e1))]()); + Cesium['Cartesian3'][dol(0x14e2)](dia, dia); + var dib = Cesium['Cartesian3']['angleBetween'](dia, new Cesium['Cartesian3'](0x1,0x0,0x0)); + di0['set'](di5, ddG(dia, dib)); + } else { + if (di4 == 0x0) { + const dic = di1[di4 + 0x1]; + var did = dhD[dol(0x14e3)](dic); + var die = did[0x0]; + var dif = did[0x1]; + var di9 = Cesium['Cartesian3']['midpoint'](di7, di8, new Cesium[(dol(0x14e4))]()); + var dii = Cesium['Cartesian3']['midpoint'](die, dif, new Cesium[(dol(0x14e5))]()); + var dia = Cesium['Cartesian3']['subtract'](dii, di9, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['normalize'](dia, dia); + var dib = Cesium[dol(0x14e6)]['angleBetween'](dia, new Cesium['Cartesian3'](0x1,0x0,0x0)); + di0['set'](di5, ddG(dia, dib)); + } else if (di4 == di1['length'] - 0x1) { + const dil = di1[di4 - 0x1]; + var dim = dhD['get'](dil); + var din = dim[0x0]; + var dio = dim[0x1]; + var di9 = Cesium['Cartesian3']['midpoint'](di7, di8, new Cesium['Cartesian3']()); + var diq = Cesium[dol(0x14e7)]['midpoint'](din, dio, new Cesium['Cartesian3']()); + var dia = Cesium['Cartesian3']['subtract'](di9, diq, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['normalize'](dia, dia); + var dib = Cesium['Cartesian3']['angleBetween'](dia, new Cesium['Cartesian3'](0x1,0x0,0x0)); + var diu = ddG(dia, dib); + di0['set'](di5, diu); + } else { + var div = di1[di4 - 0x1]; + var diw = dhD['get'](div); + var dix = diw[0x0]; + var diy = diw[0x1]; + var diz = di1[di4 + 0x1]; + var diA = dhD['get'](diz); + var diB = diA[0x0]; + var diC = diA[0x1]; + var diD = Cesium['Cartesian3']['midpoint'](diB, diC, new Cesium['Cartesian3']()); + var diE = Cesium['Cartesian3'][dol(0x14e8)](dix, diy, new Cesium['Cartesian3']()); + var dia = Cesium['Cartesian3']['subtract'](diD, diE, new Cesium['Cartesian3']()); + Cesium['Cartesian3']['normalize'](dia, dia); + var di9 = Cesium['Cartesian3']['midpoint'](di7, di8, new Cesium['Cartesian3']()); + var dib = Cesium['Cartesian3']['angleBetween'](dia, new Cesium['Cartesian3'](0x1,0x0,0x0)); + di0['set'](di5, ddG(dia, dib)); + } + } + } + }); + dhE[dol(0x14e9)](function(diI, diJ, diK) { + diI['forEach'](function(diL, diM, diN) { + var diO = []; + for (let dhz = 0x0; dhz < diL['featureIds']['length']; dhz++) { + const diQ = diL['featureIds'][dhz]; + diO['push'](di0[dol(0x14ea)](diQ)); + } + diL['directions'] = diO; + }); + }); + } + var diR = function(diS) { + const diT = diS >> 0x10 & 0xff; + const diU = diS >> 0x8 & 0xff; + const diV = diS & 0xff; + return [diT, diU, diV]; + }; + var diW = function(diX, diY, diZ) { + if (Cesium['defined'](diY['featureIds']) && diY['featureIds']['size'] > 0x0) { + diY['featureIds'][dol(0x14eb)]( (dj0, dj1) => { + dhs['params2FeaturesMap']['forEach']( (dj2, diZ) => { + var dj4 = dj2['get'](dj1); + dj0['forEach'](dhA => { + var dj6 = dj4['indexOf'](dhA); + if (dj6 > -0x1) { + dj4['splice'](dj6, 0x1); + } + } + ); + dj2['set'](dj1, dj4); + dhs['params2FeaturesMap']['set'](diZ, dj2); + } + ); + } + ); + } + }; + if (!Cesium['defined'](dhs[dol(0x14ec)])) + dhs['oldFlowParamsArrayBuffer'] = new Array(); + var dj7 = function(dj8, dj9, dja) { + var djb = dbx['viewer']['scene']['context']; + var djc = dj8['_model']; + var djd = dj8['_batchTable']; + if (!Cesium['defined'](djc['tileset']['flowTextureParamsMap'])) { + djc['tileset']['flowTextureParamsMap'] = new Map(); + } + if (Cesium['defined'](dj9['featureIds']) && dj9['featureIds']['size'] > 0x0) { + var dje = new Map(); + if (dhs['params2FeaturesMap']['has'](dja)) { + dje = dhs['params2FeaturesMap']['get'](dja); + } + dj9[dol(0x14ed)]['forEach']( (djf, djg) => { + if (!dje['has'](djg)) { + dje['set'](djg, djf); + } else { + var djh = dje['get'](djg); + djh = djh[dol(0x14ee)](djf); + djh = Array['from'](new Set(djh)); + dje['set'](djg, djh); + } + } + ); + dhs['params2FeaturesMap']['set'](dja, dje); + } + if (djc['tileset']['flowTextureParamsMap']['has'](dja)) { + var dji = djc['tileset'][dol(0x14ef)]['get'](dja)['index']; + return dji; + } else { + djc['tileset']['flowTextureParamsMap'][dol(0x14f0)](dja, dj9); + } + var djj = dj9['image']; + var djk = djd[dol(0x14f1)]; + var djl = new Cesium['Sampler']({ + 'minificationFilter': Cesium['TextureMinificationFilter']['LINEAR'], + 'magnificationFilter': Cesium[dol(0x14f2)]['LINEAR'] + }); + var djm = new Cesium['Texture']({ + 'context': djb, + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'width': djk['x'], + 'height': djk['y'], + 'source': djj, + 'sampler': djl + }); + var djn = Cesium['ContextLimits']['maximumTextureSize']; + var djo = 0x5; + var djp = new Cesium['Cartesian2'](); + var djq = dhs['oldFlowParamsArrayBuffer'] ? dhs['oldFlowParamsArrayBuffer']['length'] / (djo * 0x4) : 0x0; + var djr = djq + 0x1; + djp['x'] = Math['min'](djr * djo, djn); + djp['y'] = Math['ceil'](djr * djo / djp['x']); + var dhz = 0x0; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['color']['red']; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['color']['green']; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['color']['blue']; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['color']['alpha']; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['dottedColor']['red']; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['dottedColor']['green']; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['dottedColor']['blue']; + dhs[dol(0x14f3)][djq * 0x4 * djo + dhz++] = dj9['dottedColor']['alpha']; + var djt = diR(Math['abs'](dj9['speed']) * 0x3e8); + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = djt[0x0]; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = djt[0x1]; + dhs[dol(0x14f4)][djq * 0x4 * djo + dhz++] = djt[0x2]; + dhs[dol(0x14f5)][djq * 0x4 * djo + dhz++] = 0xff; + var dju = diR(Math['abs'](dj9['repeat'])); + dhs[dol(0x14f6)][djq * 0x4 * djo + dhz++] = dju[0x0]; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dju[0x1]; + dhs[dol(0x14f7)][djq * 0x4 * djo + dhz++] = dju[0x2]; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = 0xff; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['speed'] > 0x0 ? 0xff : 0x0; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = 0xff; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = 0xff; + dhs['oldFlowParamsArrayBuffer'][djq * 0x4 * djo + dhz++] = dj9['userImageColor'] ? 0xff : 0x0; + var djv = Float32Array['from'](dhs['oldFlowParamsArrayBuffer']); + djc['tileset']['_uniforms']['flowTextureParams'] = new Cesium['Texture']({ + 'context': dbx['viewer']['scene']['context'], + 'pixelFormat': Cesium['PixelFormat']['RGBA'], + 'pixelDatatype': Cesium['PixelDatatype']['FLOAT'], + 'width': djp['x'], + 'height': djp['y'], + 'sampler': Cesium['Sampler']['NEAREST'], + 'flipY': ![], + 'source': { + 'arrayBufferView': djv + } + }); + djc['tileset'][dol(0x14f8)][dol(0x14f9)] = new Cesium['Cartesian3'](djp['x'],djp['y'],djo); + var dji = djr - 0x1; + if (!djc['tileset']['_uniforms']['flowTextures']) + djc['tileset']['_uniforms']['flowTextures'] = []; + djc['tileset']['_uniforms']['flowTextures'][dji] = djm; + djc['tileset'][dol(0x14fa)][dol(0x14fb)](dja)['index'] = dji; + dbx['viewer']['scene'][dol(0x14fc)](); + return dji; + }; + var djx = function(djy, djz) { + dhE['forEach'](function(djA, djB, djC) { + djA[dol(0x14fd)](function(djD, djE, djF) { + var djG = djD['model']; + var djH = djG['tileset']['id']; + var djI = djD['featureIds']; + var djJ = djD['batchIds']; + var djK = djG['_content']; + var djL = djK['_model']; + if (!Cesium['defined'](djK)) + return; + var djM = djK[dol(0x14fe)]; + djy['featureIds'] = new Map(); + djy[dol(0x14ff)]['set'](djH, djI); + if (djy['reset']) { + if (Cesium['defined'](djM['removeBatchIdsFlowTexture'])) { + diW(djK, djy, djO); + djM['removeBatchIdsFlowTexture'](djJ); + } + } else { + var djN = djy; + var djO = djN['imageUrl'] + '-' + djN['speed'] + '-' + djN['userImageColor'] + '-' + djN['repeat'] + '-' + djN['color'][dol(0x1500)] + ',' + djN['color']['green'] + ',' + djN['color']['blue'] + ',' + djN['color']['alpha'] + '-' + djN['dottedColor']['red'] + ',' + djN['dottedColor']['green'] + ',' + djN['dottedColor']['blue'] + ',' + djN['dottedColor']['alpha']; + if (Cesium['defined'](djM['setBatchIdsFlowTexture'])) { + var djP = dj7(djK, djy, djO); + djM['setBatchIdsDirectionTexture'](djJ, djD['directions']); + djM['setBatchIdsFlowTexture'](djJ, djP); + } + } + }); + }); + }; + if (dhp['reset']) { + djx(dhp); + return; + } + var djQ = function(dhp, djS) { + var djT = { + 'color': !dhp['color'] ? Cesium['Color']['YELLOW'] : dhp['color']instanceof Cesium['Color'] ? dhp['color'] : Cesium['Color']['fromCssColorString'](dhp['color']), + 'dottedColor': !dhp['dottedColor'] ? Cesium[dol(0x1501)]['DARKGRAY'] : dhp['dottedColor']instanceof Cesium['Color'] ? dhp['dottedColor'] : Cesium['Color']['fromCssColorString'](dhp['dottedColor']), + 'imageUrl': dhp['imgurl'], + 'image': djS, + 'imageSize': new Cesium['Cartesian2'](djS[dol(0x1502)],djS[dol(0x1503)]), + 'speed': dhp['speed'] || 0x1, + 'userImageColor': Cesium['defined'](dhp['userImageColor']) ? dhp['userImageColor'] : !![], + 'repeat': dhp['repeat'] || 0x1, + 'reset': dhp['reset'] + }; + var djU = dbz['pxConversionMm'](djS['width']); + var djV = dbz['pxConversionMm'](djS['height']); + djx(djT, djU); + }; + if (!Cesium['defined'](dhs['FlowTextureImageMap'])) + dhs['FlowTextureImageMap'] = new Map(); + if (dhs['FlowTextureImageMap']['has'](dhp['imgurl'])) { + var djW = dhs[dol(0x1504)]['get'](dhp['imgurl']); + djQ(dhp, djW); + } else { + Cesium['Resource']['fetchImage']({ + 'url': dhp['imgurl'] + })['then'](function(djW) { + dhs['FlowTextureImageMap']['set'](dhp['imgurl'], djW); + djQ(dhp, djW); + }); + } + } catch (djY) { + console['log'](djY); + dhr(djY); + } + } + ); + } + ; + this['conversion_getDPI'] = function() { + var djZ = new Array(); + if (window['screen']['deviceXDPI']) { + djZ[0x0] = window['screen'][dol(0x1505)]; + djZ[0x1] = window['screen']['deviceYDPI']; + } else { + var dk0 = document['createElement'](doh(0x1a5)); + dk0['style']['cssText'] = doj(0x43a); + document['body']['appendChild'](dk0); + djZ[0x0] = parseInt(dk0['offsetWidth']); + djZ[0x1] = parseInt(dk0['offsetHeight']); + dk0['parentNode']['removeChild'](dk0); + } + return djZ; + } + ; + this['pxConversionMm'] = function(dk1) { + var dk2 = dk1 / this['conversion_getDPI']()[0x0]; + var dk3 = dk2 * 25.4; + return dk3; + } + ; + this['mmConversionPx'] = function(dk4) { + var dk5 = dk4 / 25.4; + var dk6 = dk5 * this['conversion_getDPI']()[0x0]; + return dk6; + } + ; + this['SetPolylineGlow'] = function(dk7) { + try { + if (!Cesium['defined'](dk7['ID']) || dk7['ID']['length'] == 0x0) + throw doj(0x43b); + function dk8() { + return Cesium['defined'](dk7['glowPower']) ? dk7['glowPower'] : 0.1; + } + function dk9() { + return Cesium['defined'](dk7['color']) ? dk7['color']instanceof Cesium[dol(0x1506)] ? dk7['color'] : Cesium[dol(0x1507)]['fromCssColorString'](dk7['color']) : Cesium['Color']['RED']['withAlpha'](0.3); + } + var dka = dby['entities']['getById'](dk7['ID']); + if (dka && dka[dol(0x1508)]) { + dka['polyline'][dol(0x1509)]['setValue'](Cesium['defined'](dk7['width']) && dk7['width'] > 0x0 ? dk7['width'] : 0x32); + dka['polyline']['material'] = new Cesium[(dol(0x150a))]({ + 'glowPower': new Cesium['CallbackProperty'](dk8,!![]), + 'color': new Cesium[(dol(0x150b))](dk9,!![]) + }); + } + } catch (dkb) { + console['log'](dkb); + } + } + ; + this['DrawUpdate'] = function(dkc, dkd, dke, dkf, dkg) { + var dkh = dby['entities']['getById'](dkc); + var dki = undefined; + if (Cesium['defined'](dkh)) { + if (Cesium['defined'](dkh['polyline'])) + dki = dkh['polyline']; + else if (Cesium['defined'](dkh['polylineVolume'])) + dki = dkh['polylineVolume']; + else if (Cesium['defined'](dkh['ellipse'])) + dki = dkh['ellipse']; + else if (Cesium['defined'](dkh['rectangle'])) + dki = dkh['rectangle']; + else if (Cesium['defined'](dkh['billboard'])) + dki = dkh['billboard']; + else if (Cesium['defined'](dkh['cylinder'])) + dki = dkh['cylinder']; + } + if (!Cesium['defined'](dki) && dbx['labels']) { + dbx['labels']['_labels']['forEach'](function(dkj) { + if (dkj['id'] == dkc) { + dki = dkj; + return ![]; + } + }); + } + if (!Cesium['defined'](dki)) { + dki = dbx['c_primitive']['get'](dkc)['obj']; + } + if (Cesium['defined'](dki)) { + var dkk = { + 'Key': 'U' + doo(0xd68) + 'e', + 'Type': 'E' + doo(0xd69) + 'y', + 'ID': dkc, + 'Property': dkd, + 'Value1': dke + }; + if (dkd == 'c' + doo(0xd6a) + 's') { + dkk['Value2'] = [0x0 - dke[0x0], 0x0 - dke[0x1], 0x0 - dke[0x2]]; + var dkl = dki['coordinates']['getValue'](); + var dkm = Cesium['Cartesian3']['fromRadians'](dkl['west'], dkl[dol(0x150c)], 0x0); + var dkn = Cesium['Cartesian3'][dol(0x150d)](dkl['east'], dkl['north'], 0x0); + var dko = dbx['funcPublic']['getPointByDistance'](dkm, dke[0x0], dke[0x1], dke[0x2]); + var dkp = dbx['funcPublic']['getPointByDistance'](dkn, dke[0x0], dke[0x1], dke[0x2]); + var dkq = Cesium['Rectangle']['fromCartesianArray']([dko, dkp]); + dki['coordinates'] = new Cesium['CallbackProperty'](function() { + return dkq; + } + ,![]); + } else if (dkd == 'p' + doo(0xd6b) + 'n') { + dkk['Value2'] = [0x0 - dke[0x0], 0x0 - dke[0x1], 0x0 - dke[0x2]]; + var dkr = dkh[dol(0x150e)]instanceof Cesium['CallbackProperty'] || dkh[dol(0x150f)]instanceof Cesium['ConstantPositionProperty'] ? dkh['position']['getValue'](Cesium['JulianDate']['now']()) : dkh['position']; + var dks = dbx['funcPublic']['getPointByDistance'](dkr, dke[0x0], dke[0x1], dke[0x2]); + dkh['position'] = new Cesium['CallbackProperty'](function() { + return dks; + } + ,![]); + } else if (dkd == 'p' + doo(0xd6c) + 's') { + dkk['Value2'] = [0x0 - dke[0x0], 0x0 - dke[0x1], 0x0 - dke[0x2]]; + var dkt = dki['positions']['getValue'](); + dkt['forEach']( (dku, dkv) => { + dkt[dkv] = dbx[dol(0x1510)][dol(0x1511)](dku, dke[0x0], dke[0x1], dke[0x2]); + } + ); + dki['positions'] = new Cesium['CallbackProperty'](function() { + return dkt; + } + ,![]); + } else if (dkd == 'c' + doo(0xd6d) + 'r') { + var dkw = dki['material'][dkd]['getValue'](); + dkk['Value2'] = 'r' + doo(0xd6e) + '(' + dkw['red'] * 0xff + ',' + dkw['green'] * 0xff + ',' + dkw['blue'] * 0xff + ',' + dkw['alpha'] + ')'; + dki[dol(0x1512)][dkd] = Cesium['Color']['fromCssColorString'](dke); + } else if (dkd == 'I' + doo(0xd6f) + 'r') { + dki = dby['entities']['getById'](dkc + doh(0x1a6))['cylinder']; + var dkw = dki['material']['c' + doo(0xd70) + 'r']['getValue'](); + dkk['Value2'] = 'r' + doo(0xd71) + '(' + dkw['red'] * 0xff + ',' + dkw['green'] * 0xff + ',' + dkw['blue'] * 0xff + ',' + dkw['alpha'] + ')'; + dki['material']['c' + doo(0xd72) + 'r'] = Cesium['Color']['fromCssColorString'](dke); + } else if (dkd == 'H' + doo(0xd73) + 't') { + var dky = dki['l' + doo(0xd74) + 'h'][dol(0x1513)](); + dkk['Value2'] = dky; + _Height = dky; + dki['l' + doo(0xd75) + 'h'] = new Cesium[(dol(0x1514))](function() { + _Height = (_Height < dke ? _Height + 0.01 : _Height >= dke ? _Height - 0.01 : _Height)['toFixed'](0x2) * 0x1; + return _Height; + } + ,![]); + var dkz = dkh['position']['getValue'](Cesium['JulianDate']['now']()); + dkh['position'] = new Cesium['CallbackProperty'](function() { + return dbx['funcPublic']['getPointByDistance'](dkz, 0x0, 0x0, -(dky - _Height) / 0x2); + } + ,![]); + } else if (dkd == 'I' + doo(0xd76) + 't') { + dkh = dby['entities']['getById'](dkc + doh(0x1a7)); + dki = dkh['cylinder']; + var dky = dki['l' + doo(0xd77) + 'h']['getValue'](); + dkk['Value2'] = dky; + _Height = dky; + dki['l' + doo(0xd78) + 'h'] = new Cesium['CallbackProperty'](function() { + _Height = (_Height < dke ? _Height + 0.01 : _Height >= dke ? _Height - 0.01 : _Height)['toFixed'](0x2) * 0x1; + return _Height; + } + ,![]); + var dkz = dkh['position']['getValue'](Cesium['JulianDate']['now']()); + dkh['position'] = new Cesium['CallbackProperty'](function() { + return dbx['funcPublic']['getPointByDistance'](dkz, 0x0, 0x0, -(dky - _Height) / 0x2); + } + ,![]); + } else if (dkd['toLowerCase']()['indexOf']('c' + doo(0xd79) + 'r') > -0x1) { + var dkw = dki[dkd]instanceof Cesium['CallbackProperty'] ? dki[dkd]['getValue']() : dki[dkd]; + dkk['Value2'] = 'r' + doo(0xd7a) + '(' + dkw['red'] * 0xff + ',' + dkw['green'] * 0xff + ',' + dkw['blue'] * 0xff + ',' + dkw[dol(0x1515)] + ')'; + dki[dkd] = Cesium['Color']['fromCssColorString'](dke); + } else if (dkd == 'r' + doo(0xd7b) + 's') { + dkk['Value2'] = dkh['description']; + dki['shape'] = dfr(dke); + dkh['description'] = dke; + } else { + dkk['Value2'] = dki[dkd]instanceof Cesium['CallbackProperty'] ? dki[dkd][dol(0x1516)]() : dki[dkd]; + dki[dkd] = dke; + } + if (!dkg) { + this['snap']['do']['push'](dkk); + } + if (!isEmpty(dkf)) + dkf(); + dby['scene']['requestRender'](); + } + } + ; + this['Save'] = function(dkD) { + var dkE = { + 'gridCellCount': this['gridCellCount'], + 'gridCellSize': this['gridCellSize'], + 'model': [], + 'entity': [], + 'label': [], + 'texture': [], + 'merge': dbx['MergeList'], + 'autoRotate': dbx['AutoRotateList'] + }; + dbx['m_model']['forEach'](function(dkF) { + if (dkF[dol(0x1517)] == 'a' + doo(0xd7c) + 'r') + return !![]; + let dkG = { + 'id': dkF['id'], + 'url': dkF['url']['split']('?')[0x0], + 'matrix': Array['from'](dkF[dol(0x1518)]), + 'transform': Array['from'](dkF['root'][dol(0x1519)]), + 'rotate': dkF['rotate'], + 'show': dkF['show'] + }; + dkE['model'][dol(0x151a)](dkG); + }); + if (Cesium['defined'](dbx['labels'])) { + dbx['labels']['_labels'][dol(0x151b)](function(dkH) { + let dkI = { + 'id': dkH['id'], + 'type': 'L' + doo(0xd7d) + 'l', + 'position': dkH['position'], + 'text': dkH['text'], + 'fillColor': dkH['fillColor'], + 'backgroundColor': dkH['backgroundColor'], + 'showBackground': dkH['showBackground'], + 'style': dkH['style'], + 'outlineWidth': dkH['outlineWidth'], + 'outlineColor': dkH['outlineColor'], + 'font': dkH['font'], + 'show': dkH['show'] + }; + dkE['label']['push'](dkI); + }); + } + dby['entities']['values']['forEach'](function(dkJ) { + if (dkJ['id'] == 'E' + doo(0xd7e) + 'e') + return !![]; + let dkK; + if (Cesium[dol(0x151c)](dkJ['polyline'])) { + dkK = { + 'id': dkJ['id'], + 'type': dkJ['polyline']['material']instanceof Cesium['PolylineArrowMaterialProperty'] ? 'P' + doo(0xd7f) + 'e' : 'P' + doo(0xd80) + 'e', + 'positions': dkJ['polyline']['positions']['getValue'](), + 'width': dkJ['polyline']['width']['getValue'](), + 'color': dkJ['polyline']['material']['color']['getValue'](), + 'material': { + 'flow': dkJ['polyline']['material']instanceof Cesium['PolylineFlowMaterialProperty'], + 'speed': dkJ['polyline']['material']instanceof Cesium['PolylineFlowMaterialProperty'] ? dkJ['polyline']['material']['speed'] : 0x0, + 'duration': dkJ[dol(0x151d)]['material']instanceof Cesium['PolylineFlowMaterialProperty'] ? dkJ['polyline']['material']['duration'] : 0x0, + 'image': dkJ['polyline']['material']instanceof Cesium['PolylineFlowMaterialProperty'] ? dkJ['polyline']['material']['image'] : 0x0 + }, + 'show': dkJ['show'] + }; + } else if (Cesium['defined'](dkJ['ellipse'])) { + dkK = { + 'id': dkJ['id'], + 'type': 'E' + doo(0xd81) + 'e', + 'position': dkJ['position']['getValue'](Cesium[dol(0x151e)][dol(0x151f)]()), + 'semiMajorAxis': dkJ['ellipse']['semiMajorAxis']['getValue'](), + 'semiMinorAxis': dkJ['ellipse']['semiMinorAxis']['getValue'](), + 'height': dkJ['ellipse'][dol(0x1520)]['getValue'](), + 'extrudedHeight': dkJ['ellipse']['extrudedHeight']['getValue'](), + 'fill': dkJ['ellipse']['fill']['getValue'](), + 'color': dkJ[dol(0x1521)]['material']['color']['getValue'](), + 'outline': dkJ['ellipse']['outline']['getValue'](), + 'outlineColor': dkJ['ellipse']['outlineColor']['getValue'](), + 'show': dkJ['show'] + }; + } else if (Cesium['defined'](dkJ['rectangle'])) { + dkK = { + 'id': dkJ['id'], + 'type': 'R' + doo(0xd82) + 'e', + 'coordinates': dkJ['rectangle']['coordinates']['getValue'](), + 'height': dkJ['rectangle']['height']['getValue'](), + 'extrudedHeight': dkJ['rectangle']['extrudedHeight']['getValue'](), + 'fill': dkJ['rectangle']['fill']['getValue'](), + 'color': dkJ['rectangle'][dol(0x1522)]['color']['getValue'](), + 'outline': dkJ['rectangle']['outline']['getValue'](), + 'outlineColor': dkJ['rectangle']['outlineColor']['getValue'](), + 'show': dkJ['show'] + }; + } else if (Cesium['defined'](dkJ['polylineVolume'])) { + dkK = { + 'id': dkJ['id'], + 'type': 'P' + doo(0xd83) + 'e', + 'positions': dkJ['polylineVolume']['positions']['getValue'](), + 'color': dkJ['polylineVolume'][dol(0x1523)]['color'][dol(0x1524)](), + 'cornerType': dkJ['polylineVolume']['cornerType']['getValue'](), + 'material': { + 'flow': dkJ['polylineVolume']['material']instanceof Cesium['PolylineFlowMaterialProperty'], + 'speed': dkJ['polylineVolume'][dol(0x1525)]instanceof Cesium['PolylineFlowMaterialProperty'] ? dkJ['polylineVolume']['material'][dol(0x1526)] : 0x0, + 'duration': dkJ['polylineVolume']['material']instanceof Cesium['PolylineFlowMaterialProperty'] ? dkJ['polylineVolume']['material']['duration'] : 0x0, + 'image': dkJ['polylineVolume']['material']instanceof Cesium['PolylineFlowMaterialProperty'] ? dkJ['polylineVolume']['material']['image'] : 0x0 + }, + 'shape': dkJ['polylineVolume']['shape']['getValue'](), + 'radius': dkJ['description']['getValue'](), + 'show': dkJ['show'] + }; + } else if (Cesium['defined'](dkJ['billboard'])) { + dkK = { + 'id': dkJ['id'], + 'type': 'B' + doo(0xd84) + 'd', + 'position': dkJ[dol(0x1527)]['getValue'](Cesium['JulianDate']['now']()), + 'image': dkJ['billboard']['image']['getValue'](), + 'width': dkJ['billboard']['width']['getValue'](), + 'height': dkJ['billboard'][dol(0x1528)]['getValue'](), + 'show': dkJ['show'] + }; + } + if (Cesium['defined'](dkK)) + dkE['entity']['push'](dkK); + }); + if (Cesium['defined'](dbx['CustomLabel'])) { + var dkL = dbx['CustomLabel']['getLabelList'](); + dkL['forEach'](function(dkM) { + let dkN = { + 'id': dkM['id'], + 'type': 'C' + doo(0xd85) + 'l', + 'position': dkM['position'], + 'positionRadian': dkM['positionRadian'], + 'positionWC': dkM['positionWC'], + 'removePoint': dkM['removePoint'], + 'html': dkM['html'], + 'attachmentPoint': dkM['attachmentPoint'], + 'onClick': dkM['onClick']['name'], + 'offset': dkM['offset'], + 'attr': dkM['attr'], + 'show': dkM['isVisible'] + }; + dkE['label']['push'](dkN); + }); + } + dbx['c_primitive']['forEach'](function(dkO) { + dkE['texture']['push'](dkO['options']); + }); + if (!isEmpty(dkD)) + dkD(dkE); + } + ; + this['LoadByJson'] = function(dkP, dkQ) { + if (!Cesium['defined'](dkP)) { + if (!isEmpty(dkQ)) + dkQ(); + return; + } + var dkR = this; + dbx['MergeList'] = dkP['merge'] || []; + if (dkP['entity'] != undefined) { + dkP[dol(0x1529)]['forEach']( (dkS, dkT) => { + dbx['Model']['add'](dkS[dol(0x152a)], dkS['id'], null, function() { + setTimeout(function() { + if (dkT == dkP['model']['length'] - 0x1) { + dkP['autoRotate']['forEach']( (dkU, dkV) => { + dbx['Feature']['autoRotate'](dkU['FeatureID'], dkU['RotateDirection']['x'], dkU['RotateDirection']['y'], dkU['RotateDirection']['z'], dkU['Speed'], dkU['RepeatNum'], dkU['Tag']); + } + ); + } + }, 0x3e8); + }, { + 'flyto': ![], + 'transform': dkS['transform'], + 'matrix': dkS['matrix'], + 'rotate': dkS['rotate'] + }); + } + ); + } + if (dkP['entity'] != undefined) { + dkP['entity']['forEach'](function(dkW) { + var dkX = []; + if (Cesium['defined'](dkW['positions'])) { + dkW['positions']['forEach'](dkY => { + dkX['push'](Cesium['Cartesian3']['fromElements'](dkY['x'], dkY['y'], dkY['z'])); + } + ); + } + switch (dkW['type']) { + case 'P' + doo(0xd86) + 'e': + case 'P' + doo(0xd87) + 'e': + if (dkW['material'] && dkW['material']['flow']) { + dbx['OnRenderList']['push'](dkW['id']); + dby[dol(0x152b)]['requestRenderMode'] = ![]; + dby['scene']['maximumRenderTimeChange'] = 0x0; + } + dkR['DrawLine']({ + 'ID': dkW['id'], + 'Positions': dkX, + 'Color': 'r' + doo(0xd88) + '(' + dkW['color'][dol(0x152c)] * 0xff + ',' + dkW['color']['green'] * 0xff + ',' + dkW['color']['blue'] * 0xff + ',' + dkW['color']['alpha'] + ')', + 'Width': dkW['width'], + 'Material': { + 'Flow': dkW['material']['flow'], + 'Speed': dkW['material']['speed'], + 'Duration': dkW['material']['duration'], + 'Image': dkW['material']['image'] + }, + 'Arrow': dkW['type'] == 'P' + doo(0xd89) + 'e', + 'Show': dkW['show'] + }); + break; + case 'E' + doo(0xd8a) + 'e': + dkR['DrawCircle']({ + 'ID': dkW['id'], + 'Position': Cesium['Cartesian3']['fromElements'](dkW['position']['x'], dkW['position']['y'], dkW['position']['z']), + 'Radius': dkW['semiMajorAxis'], + 'Height': dkW['height'], + 'ExtrudedHeight': dkW['extrudedHeight'], + 'Fill': dkW['fill'], + 'Color': 'r' + doo(0xd8b) + '(' + dkW['color']['red'] * 0xff + ',' + dkW['color']['green'] * 0xff + ',' + dkW['color']['blue'] * 0xff + ',' + dkW['color']['alpha'] + ')', + 'Outline': dkW['outline'], + 'OutlineColor': 'r' + doo(0xd8c) + '(' + dkW['outlineColor']['red'] * 0xff + ',' + dkW['outlineColor']['green'] * 0xff + ',' + dkW['outlineColor']['blue'] * 0xff + ',' + dkW['outlineColor']['alpha'] + ')', + 'Show': dkW['show'] + }); + break; + case 'R' + doo(0xd8d) + 'e': + dkR['DrawRectangle']({ + 'ID': dkW['id'], + 'Coordinates': dkW['coordinates'], + 'Height': dkW['height'], + 'ExtrudedHeight': dkW['extrudedHeight'], + 'Fill': dkW['fill'], + 'Color': 'r' + doo(0xd8e) + '(' + dkW['color']['red'] * 0xff + ',' + dkW['color']['green'] * 0xff + ',' + dkW[dol(0x152d)]['blue'] * 0xff + ',' + dkW['color']['alpha'] + ')', + 'Outline': dkW['outline'], + 'OutlineColor': 'r' + doo(0xd8f) + '(' + dkW['outlineColor']['red'] * 0xff + ',' + dkW['outlineColor']['green'] * 0xff + ',' + dkW['outlineColor']['blue'] * 0xff + ',' + dkW['outlineColor']['alpha'] + ')', + 'Show': dkW['show'] + }); + break; + case 'P' + doo(0xd90) + 'e': + var dkZ = []; + dkW['shape']['forEach'](dl0 => { + dkZ['push'](Cesium['Cartesian2'][dol(0x152e)](dl0['x'], dl0['y'])); + } + ); + if (dkW['material'] && dkW['material']['flow']) { + dbx['OnRenderList'][dol(0x152f)](dkW[dol(0x1530)]); + dby['scene'][dol(0x1531)] = ![]; + dby['scene']['maximumRenderTimeChange'] = 0x0; + } + dkR['DrawPipeLine']({ + 'ID': dkW['id'], + 'Positions': dkX, + 'CornerType': dkW['CornerType'], + 'Color': 'r' + doo(0xd91) + '(' + dkW['color']['red'] * 0xff + ',' + dkW['color']['green'] * 0xff + ',' + dkW['color']['blue'] * 0xff + ',' + dkW['color']['alpha'] + ')', + 'Material': { + 'Flow': dkW['material']['flow'], + 'Speed': dkW['material']['speed'], + 'Duration': dkW['material']['duration'], + 'Image': dkW[dol(0x1532)]['image'] + }, + 'Shape': dkZ, + 'Radius': dkW['radius'], + 'Show': dkW['show'] + }); + break; + case 'B' + doo(0xd92) + 'd': + var dl1 = Cesium['Cartesian3']['fromElements'](dkW['position']['x'], dkW['position']['y'], dkW[dol(0x1533)]['z']); + dkR['DrawImage']({ + 'ID': dkW['id'], + 'Positions': [dl1, dl1], + 'Image': dkW['image'], + 'Width': dkW['width'], + 'Height': dkW['height'], + 'Show': dkW['show'] + }); + break; + default: + } + }); + } + if (dkP['label'] != undefined) { + dkP['label']['forEach'](function(dl2) { + if (dl2['type'] == 'L' + doo(0xd93) + 'l') { + dbx['Label']['addTextByScreenCoordinates'](Cesium['Cartesian3']['fromElements'](dl2['position']['x'], dl2['position']['y'], dl2['position']['z']), dl2['text'], new Cesium['Color'](dl2['fillColor']['red'],dl2['fillColor']['green'],dl2['fillColor']['blue'],dl2[dol(0x1534)]['alpha']), null, 0x10, dl2['id']); + } else if (dl2['type'] == 'C' + doo(0xd94) + 'l') { + console['log'](dl2['positionRadian']); + dbx['Label']['addCustomHtml']({ + 'id': dl2['id'], + 'axisType': 0x1, + 'position': dl2['positionRadian'], + 'attachmentPoint': dl2['attachmentPoint'], + 'removePoint': dl2['removePoint'], + 'html': dl2['html'], + 'attr': dl2['attr'], + 'offset': dl2['offset'], + 'onClick': window[dl2['onClick']] + }); + } + }); + } + (dkP['texture'] || [])['forEach'](function(dl3) { + dbx['Entity']['drawTexture'](dl3, null); + }); + dby['scene']['requestRender'](); + if (!isEmpty(dkQ)) + dkQ(); + } + ; + this['Undo'] = function() { + var dl4 = this; + var dl5 = dl4['snap'][dol(0x1535)]['splice'](dl4['snap']['do']['length'] - 0x1, 0x1); + if (dl5['length'] == 0x0) + return; + dl5 = dl5[0x0]; + switch (dl5['Key']) { + case doh(0x1a8): + if (dl5['Type'] == 'E' + doo(0xd95) + 'y') + dby['entities']['removeById'](dl5['ID']); + else if (dl5['Type'] == 'M' + doo(0xd96) + 'l') + dbx['Model']['remove'](dl5['ID']); + break; + case 'U' + doo(0xd97) + 'e': + dl4[dol(0x1536)]['undo']['push'](dl5); + if (dl5[dol(0x1537)] == 'E' + doo(0xd98) + 'y') + dl4['DrawUpdate'](dl5['ID'], dl5['Property'], dl5['Value2'], null, !![]); + else if (dl5['Type'] == 'M' + doo(0xd99) + 'l') { + var dl6 = dbx['Model'][dol(0x1538)](dl5['ID']); + if (Cesium['defined'](dl6)) { + dl6['modelMatrix'] = dl5['Value2']; + dbx['Model']['setVisible']('a' + doo(0xd9a) + 'r', ![]); + } + } + break; + default: + } + dby['scene']['requestRender'](); + } + ; + this['Redo'] = function() { + var dl7 = this; + var dl8 = dl7[dol(0x1539)]['undo']['splice'](dl7[dol(0x153a)]['undo']['length'] - 0x1, 0x1); + if (dl8['length'] == 0x0) + return; + dl8 = dl8[0x0]; + dl7['snap']['do']['push'](dl8); + switch (dl8['Key']) { + case 'U' + doo(0xd9b) + 'e': + if (dl8['Type'] == 'E' + doo(0xd9c) + 'y') + dl7['DrawUpdate'](dl8['ID'], dl8[dol(0x153b)], dl8['Value1'], null, !![]); + else if (dl8['Type'] == 'M' + doo(0xd9d) + 'l') { + var dl9 = dbx['Model']['get'](dl8['ID']); + if (Cesium['defined'](dl9)) { + dl9['modelMatrix'] = dl8['Value1']; + dbx['Model']['setVisible']('a' + doo(0xd9e) + 'r', ![]); + } + } + break; + default: + } + dby[dol(0x153c)]['requestRender'](); + } + ; + } + ; + TransformControls = function(dla) { + this['SceneObj'] = dla; + this['RotatePrimitives'] = new Map(); + this['EditType'] = 0x0; + this['EditObjFeatureId'] = undefined; + this['EditObj'] = undefined; + this['ObjCenter'] = undefined; + this['snap'] = {}; + var dlb = this; + var dlc = new Cesium['ScreenSpaceEventHandler'](dlb['SceneObj']['viewer'][dol(0x153d)]); + this['Transform'] = function() { + dlb['Destroy'](); + var dld = null; + var dle = 0x1; + var dlf = new Map([['3' + doo(0xd9f) + '1', 'T' + doo(0xda0) + 'X'], ['3' + doo(0xda1) + '5', 'T' + doo(0xda2) + 'e'], ['3' + doo(0xda3) + '6', 'T' + doo(0xda4) + 'Y'], ['3' + doo(0xda5) + '7', 'T' + doo(0xda6) + 'e'], ['3' + doo(0xda7) + '8', 'T' + doo(0xda8) + 'Z'], ['3' + doo(0xda9) + '2', 'T' + doo(0xdaa) + 'e'], ['3' + doo(0xdab) + '6', 'T' + doo(0xdac) + 'Z'], ['3' + doo(0xdad) + '5', 'T' + doo(0xdae) + 'Y'], ['3' + doo(0xdaf) + '4', 'T' + doo(0xdb0) + 'Z'], ['3' + doo(0xdb1) + '0', 'T' + doo(0xdb2) + 'Z']]); + var dlg = new Map([['X', doj(0x43c)], ['Y', doj(0x43d)], ['Z', doj(0x43e)], [doh(0x1a9), 'a' + doo(0xdb3) + '#'], [doh(0x1aa), 'a' + doo(0xdb4) + '#'], [doh(0x1ab), 'a' + doo(0xdb5) + '#'], [doh(0x1ac), 'a' + doo(0xdb6) + '#']]); + var dlh = function(dli, dlj) { + var dlk = Cesium[dol(0x153e)]['fromCartesian'](dlj); + var dll = Cesium['Cartographic']['fromCartesian'](dli); + var dlm = new Cesium['Cartographic'](); + dlm['longitude'] = dlk['longitude'] - dll['longitude']; + dlm['latitude'] = dlk['latitude'] - dll['latitude']; + dlm['height'] = dlk['height'] - dll['height']; + if (dld == 'X') { + dlm['latitude'] = 0x0; + dlm['height'] = 0x0; + } else if (dld == 'Y') { + dlm['longitude'] = 0x0; + dlm['height'] = 0x0; + } else if (dld == 'Z') { + dlm['longitude'] = 0x0; + dlm['latitude'] = 0x0; + } else if (dld == doh(0x1ad)) { + dlm['height'] = 0x0; + } else if (dld == doh(0x1ae)) { + dlm['longitude'] = 0x0; + } else if (dld == doh(0x1af)) { + dlm['latitude'] = 0x0; + } + dlm['longitude'] = dlm['longitude']; + dlm['latitude'] = dlm['latitude']; + dlm['height'] = dlm['height']; + if (dlb['EditType'] == 0x0) { + var dln = new Cesium['Matrix4'](); + var dlo = function(dlp) { + var dlq = dlb['SceneObj']['Model'][dol(0x153f)](dlp['id'])['position']; + var dlr = new Cesium['Cartographic'](dlq[0x0],dlq[0x1],dlq[0x2]); + var dls = Cesium['Cartesian3']['fromRadians'](dlr['longitude'], dlr['latitude'], dlr['height']); + var dlt = dlr['height'] + dlm['height']; + dlt = dlt < (dlp['tilesetoutline']['maximumHeight'] - dlp['tilesetoutline']['minimumHeight']) / 0x2 ? (dlp['tilesetoutline']['maximumHeight'] - dlp['tilesetoutline'][dol(0x1540)]) / 0x2 : dlt; + var dlu = Cesium['Cartesian3']['fromRadians'](dlr['longitude'] + dlm['longitude'], dlr['latitude'] + dlm['latitude'], dlt); + var dlv = Cesium['Cartesian3']['subtract'](dlu, dls, new Cesium['Cartesian3']()); + dln = Cesium['Matrix4']['fromTranslation'](dlv); + var dlw = Cesium['Matrix4']['multiplyTransformation'](dln, dlp['modelMatrix'], new Cesium['Matrix4']()); + dlp['modelMatrix'] = dlw; + }; + if (Array['isArray'](dlb['EditObj']['modelList'])) { + dlb['EditObj']['modelList']['forEach']( (dlx, dly) => { + dlb['SceneObj']['tileset'] = dlb['SceneObj']['m_model']['get'](dlx); + dlo(dlb['SceneObj']['tileset']); + } + ); + } else { + dlo(dlb['EditObj']); + } + var dlz = dlb['SceneObj']['m_model']['get']('a' + doo(0xdb7) + 'r'); + var dlA = Cesium['Matrix4']['multiplyTransformation'](dln, dlz['modelMatrix'], new Cesium['Matrix4']()); + dlz['modelMatrix'] = dlA; + } else { + var dlB = dlb['SceneObj']['Model']['getCenter']('a' + doo(0xdb8) + 'r')['position']; + var dlC = new Cesium['Cartographic'](dlB[0x0],dlB[0x1],dlB[0x2]); + var dlD = Cesium['Cartesian3']['fromRadians'](dlC[dol(0x1541)], dlC['latitude'], dlC['height']); + var dlE = Cesium['Cartesian3']['fromRadians'](dlC['longitude'] + dlm['longitude'], dlC['latitude'] + dlm['latitude'], dlC['height'] + dlm['height']); + var dlF = Cesium['Cartesian3']['subtract'](dlE, dlD, new Cesium['Cartesian3']()); + var dln = Cesium['Matrix4']['fromTranslation'](dlF); + var dlz = dlb[dol(0x1542)]['m_model']['get']('a' + doo(0xdb9) + 'r'); + var dlI = Cesium['Matrix4']['multiplyTransformation'](dln, dlz[dol(0x1543)], new Cesium[(dol(0x1544))]()); + dlz['modelMatrix'] = dlI; + dlb['SceneObj']['tileset'] = dlb['SceneObj']['m_model'][dol(0x1545)](currenttag); + var dlJ = dlb['SceneObj']['Feature']['getCenterById'](dlb[dol(0x1546)], currenttag); + var dlK = !isEmpty(dlb['SceneObj']['tileset']['modelMatrix']) ? new Cesium['Matrix4']['clone'](dlb['SceneObj']['tileset']['modelMatrix']) : new Cesium['Matrix4']['clone'](Cesium['Matrix4']['IDENTITY']); + var dlL = new Cesium[(dol(0x1547))](); + Cesium['Matrix4']['inverse'](dlb['SceneObj']['tileset'][dol(0x1548)]['transform'], dlL); + var dlM = new Cesium['Matrix4'](); + Cesium['Matrix4']['inverse'](dlb['SceneObj']['tileset']['modelMatrix'], dlM); + var dlN = new Cesium['Cartesian3'](); + var dlO = new Cesium['Cartesian3'](); + Cesium['Matrix4']['multiplyByPoint'](dlL, dlj, dlO); + Cesium['Matrix4']['multiplyByPoint'](dlM, dlO, dlO); + Cesium['Matrix4'][dol(0x1549)](dlL, dli, dlN); + Cesium['Matrix4']['multiplyByPoint'](dlM, dlN, dlN); + var dlP = Cesium['Cartesian3']['subtract'](dlO, dlN, new Cesium['Cartesian3']()); + if (dld == 'X') { + dlP['y'] = 0x0; + dlP['z'] = 0x0; + } else if (dld == 'Y') { + dlP['x'] = 0x0; + dlP['z'] = 0x0; + } else if (dld == 'Z') { + dlP['x'] = 0x0; + dlP['y'] = 0x0; + } else if (dld == doh(0x1b0)) { + dlP['z'] = 0x0; + } else if (dld == doh(0x1b1)) { + dlP['x'] = 0x0; + } else if (dld == doh(0x1b2)) { + dlP['y'] = 0x0; + } + var dlQ = Cesium['Matrix4']['fromTranslation'](dlP); + var dlR = Cesium[dol(0x154a)]['multiplyTransformation'](dlQ, dlb['EditObj']['matrix'], new Cesium['Matrix4']()); + dlb['EditObj']['matrix'] = dlR; + } + }; + dlc['setInputAction'](function(dlS) { + if (dlb['SceneObj']['EditMode'] != 'T' + doo(0xdba) + 's') + return; + dlb['SceneObj']['Model']['getByScreenCoord'](dlS[dol(0x154b)], function(dlT) { + if (!Cesium['defined'](dlT)) + return; + if (dlT['id']['indexOf']('a' + doo(0xdbb) + 's') > -0x1) { + dlT = dlb['SceneObj'][dol(0x154c)]['scene']['pick'](dlS['position']); + if (Cesium['defined'](dlT)) { + var dlU = dlT['getProperty']('n' + doo(0xdbc) + 'e'); + var dlV = dlf['get'](dlU); + dld = dlV[dol(0x154d)]('T' + doo(0xdbd) + '_', '')['replace']('_' + doo(0xdbe) + 'e', ''); + var dlW = dlg['get'](dld); + dlb['SceneObj']['Feature']['setColor'](dlW, 0xff, 0xff, 0x0, 0x1, 'a' + doo(0xdbf) + 'r'); + dlb[dol(0x154e)]['Feature']['setVisible'](doj(0x43f), ![], 'a' + doo(0xdc0) + 'r'); + dlb['SceneObj']['viewer'][dol(0x154f)]['screenSpaceCameraController']['enableRotate'] = ![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableTranslate'] = ![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableZoom'] = ![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + dlb['SceneObj']['viewer']['scene'][dol(0x1550)]['enableLook'] = ![]; + if (!Array['isArray'](dlb['EditObj']['modelList'])) { + dlb['snap'] = {}; + dlb[dol(0x1551)]['Key'] = 'U' + doo(0xdc1) + 'e'; + dlb['snap']['Type'] = 'M' + doo(0xdc2) + 'l'; + dlb['snap'][dol(0x1552)] = dlb['SceneObj']['CurrentEditTag']; + dlb['snap']['Value2'] = dlb['EditObj']['modelMatrix']['clone'](); + } + dlb['SceneObj'][dol(0x1553)]['pickupCoordinate'](dlS['position'], function(dlX) { + if (Cesium['defined'](dlX)) { + dlb['SceneObj']['viewer']['entities']['removeById']('t' + doo(0xdc3) + 'e'); + var dlY = Cesium[dol(0x1554)]['normalize'](Cesium['Cartesian3']['subtract'](dlb['SceneObj']['viewer']['camera']['position'], dlX, new Cesium['Cartesian3']()), new Cesium['Cartesian3']()); + dlb['SceneObj'][dol(0x1555)]['entities']['add']({ + 'id': 't' + doo(0xdc4) + 'e', + 'position': dlX, + 'plane': { + 'plane': new Cesium['Plane'](dlY,-0x1), + 'dimensions': new Cesium['Cartesian2'](0x3e8,0x3e8), + 'material': Cesium['Color']['WHITE']['withAlpha'](0.01) + } + }); + } + }, 0x1); + } + } else { + dlb['SceneObj']['Model']['setVisible']('a' + doo(0xdc5) + 'r', !![]); + dlb['SceneObj']['Feature']['setVisible'](doj(0x440), ![], 'a' + doo(0xdc6) + 'r'); + var dlZ = dlT['id']; + dlb[dol(0x1556)] = dlT; + if (Cesium['defined'](dlT['obj'])) { + dlb['EditObj'] = dlT['obj']; + } + var dm0; + if (Array['isArray'](dlb[dol(0x1557)]['modelList'])) { + var dm1 = dlb['SceneObj']['Model']['getModelsCenter'](dlb['EditObj']['modelList']); + dm0 = { + 'position': outCartesian3ToRadian(dm1['center'], dlb['SceneObj']['viewer']), + 'height': GetDistance(dm1['minpos'], dm1['maxpos'], 0x0, 0x0, 0x1) + }; + } else { + dm0 = dlb['SceneObj']['Model']['getCenter'](dlZ); + var dm2 = Cesium['Cartesian3']['add'](dlb['EditObj']['root']['boundingVolume']['boundingVolume']['center'], Cesium['Cartesian3']['fromArray'](dlb[dol(0x1558)][dol(0x1559)]['boundingVolume']['boundingVolume']['halfAxes'], 0x6), new Cesium['Cartesian3']()); + dm0[dol(0x155a)] = GetDistance(dlb[dol(0x155b)]['root']['boundingVolume']['boundingVolume']['center'], dm2, 0x0, 0x0, 0x1) * 0x2; + } + dlb['SceneObj']['Model']['moveToPosition']([dm0['position'][0x0], dm0['position'][0x1], dm0['position'][0x2] + dm0['height'] / 0x2 + 0.5], 0x1, 'a' + doo(0xdc7) + 'r'); + dlb['EditObjFeatureId'] = dlZ; + dlb['ObjCenter'] = dm0; + dlb['SceneObj']['CurrentEditTag'] = dlZ; + if (dlb['EditType'] == 0x0) {} else { + dlb['SceneObj']['tileset'] = dlb['EditObj']; + var dm3 = dlb['EditObjFeatureId']; + for (j = 0x0; j < dlb['SceneObj']['tileset']['_selectedTiles']['length']; ++j) { + var dm4 = dlb['SceneObj']['tileset']['_selectedTiles'][j][dol(0x155c)]; + var dm5 = dm4['featuresLength']; + for (k = 0x0; k < dm5; k++) { + if (dm4['_batchTable']['_properties'][dol(0x155d)][k] == dm3) { + var dm6 = dm4[dol(0x155e)]; + var dm7 = dm6[dol(0x155f)]['rootNodes']['length']; + var dm8 = dm6['_runtime']['rootNodes']; + for (kk = 0x0; kk < dm7; kk++) { + if (dm8[kk]['publicNode'][dol(0x1560)] == dm3) { + dlb['EditObj'] = dm8[kk]['publicNode']; + break; + } + } + } + } + } + } + } + }); + }, Cesium['ScreenSpaceEventType'][dol(0x1561)]); + dlc['setInputAction'](function(dm9) { + if (dlb['SceneObj'][dol(0x1562)] != 'T' + doo(0xdc8) + 's') + return; + if (Cesium[dol(0x1563)](dld)) { + if (!Array['isArray'](dlb['EditObj']['modelList'])) { + dlb['snap']['Value1'] = dlb['EditObj']['modelMatrix']['clone'](); + dlb['SceneObj']['BaseContorl']['snap'][dol(0x1564)]['push'](dlb['snap']); + var dma = getPointByDistance(dlb['EditObj']['boundingSphere']['center'], 0x0, 0x0, -(dlb['EditObj']['tilesetoutline']['maximumHeight'] - dlb['EditObj']['tilesetoutline'][dol(0x1565)]) / 0x2); + try { + document['getElementById']('t' + doo(0xdc9) + 'x')['value'] = GetDistance(dma, dlb['SceneObj']['BaseContorl']['gridStartX'], 0x1) - GetDistance(dlb['SceneObj']['BaseContorl']['gridCenter'], dlb['SceneObj']['BaseContorl']['gridStartX'], 0x1); + document['getElementById']('t' + doo(0xdca) + 'y')['value'] = GetDistance(dma, dlb['SceneObj']['BaseContorl']['gridStartY'], 0x0, 0x1) - GetDistance(dlb['SceneObj']['BaseContorl']['gridCenter'], dlb['SceneObj']['BaseContorl']['gridStartY'], 0x0, 0x1); + document['getElementById']('t' + doo(0xdcb) + 'z')['value'] = GetDistance(dma, dlb['SceneObj'][dol(0x1566)]['gridCenter'], 0x0, 0x0, 0x1); + document['getElementById']('t' + doo(0xdcc) + 'x')['dispatchEvent'](new Event('i' + doo(0xdcd) + 't')); + document['getElementById']('t' + doo(0xdce) + 'y')['dispatchEvent'](new Event('i' + doo(0xdcf) + 't')); + document[dol(0x1567)]('t' + doo(0xdd0) + 'z')['dispatchEvent'](new Event('i' + doo(0xdd1) + 't')); + } catch (dmb) {} + } + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableRotate'] = !![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableTranslate'] = !![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableZoom'] = !![]; + dlb[dol(0x1568)]['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['rotateEventTypes'] == 0x1 || dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['rotateEventTypes']['indexOf'](0x0) < 0x0; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableLook'] = !![]; + var dmc = dlg['get'](dld); + dlb['SceneObj']['Feature']['setColor'](dmc, 0xff, 0xff, 0xff, 0x1, 'a' + doo(0xdd2) + 'r'); + dlb['SceneObj']['Feature']['setVisible'](doj(0x441), ![], 'a' + doo(0xdd3) + 'r'); + dld = null; + } + dlb['SceneObj'][dol(0x1569)]['entities']['removeById']('t' + doo(0xdd4) + 'e'); + dlb['SceneObj']['viewer']['scene']['requestRender'](); + }, Cesium[dol(0x156a)]['LEFT_UP']); + dlc['setInputAction'](function(dmd) { + if (dlb['SceneObj']['EditMode'] != 'T' + doo(0xdd5) + 's') + return; + if (dld == '' || dld == null) + return; + var dme = new Cesium['Cartesian3'](); + dlb['SceneObj']['Public']['pickupCoordinate'](dmd['startPosition'], function(dmf) { + if (Cesium['defined'](dmf) && dmf != new Cesium['Cartesian3'](0x0,0x0,0x0)) { + dme = dmf['clone'](); + dlb['SceneObj']['Public']['pickupCoordinate'](dmd['endPosition'], function(dmg) { + if (Cesium['defined'](dmg)) { + var dmh = dmg['clone'](); + if (dld == '' || dld == null) + return; + dlh(dme, dmh); + } + }, 0x1); + } + }, 0x1); + dlb['SceneObj'][dol(0x156b)]['scene']['requestRender'](); + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE']); + } + ; + this['Rotate'] = function() { + dlb['Destroy'](); + var dmi = ![]; + var dmj = { + 'Degrees': null, + 'Height': -0x1 + }; + var dmk = null; + var dml = null; + var dmm = null; + if (dlb['RotatePrimitives']['size'] == 0x0) + dnM(); + var dmn = function(dmo, dmk, dml, dmr, dms, dmt) { + if (dlb[dol(0x156c)] == 0x0) + dmu(dmk, dml, dmr, dms, dmt); + else if (dlb['EditType'] == 0x1) + dmU(dmk, dml); + }; + var dmu = function(dmk, dml, dmx, dmy, dmz) { + var dmA = Cesium['SceneTransforms']['wgs84ToWindowCoordinates'](dlb['SceneObj']['viewer']['scene'], dlb['EditObj']['boundingSphere'][dol(0x156d)]); + var dmB = function(dmC) { + var dmD = dmC['x'] - dmA['x'] + , dmE = dmC['y'] - dmA['y']; + var dmF = 0x168 * Math['atan2'](dmE, dmD) / (0x2 * Math['PI']); + return dmF = dmF <= -0x5a ? 0x168 + dmF : dmF; + }; + var dmG = dmB(dmk); + var dmH = dmB(dml); + var dmI = dmH - dmG; + if (Cesium['defined'](dmm)) { + switch (dmm['id']) { + case 'R' + doo(0xdd6) + 'X': + { + dmJ(dmI, 0x0, 0x0); + break; + } + case 'R' + doo(0xdd7) + 'Y': + { + dmJ(0x0, dmI, 0x0); + break; + } + case 'R' + doo(0xdd8) + 'Z': + { + dmJ(0x0, 0x0, dmI); + break; + } + default: + } + } else if (Cesium['defined'](dmx) && Cesium['defined'](dmy) && Cesium['defined'](dmz)) { + dmJ(dmx, dmy, dmz); + } + dlb['SceneObj'][dol(0x156e)]['scene']['requestRender'](); + }; + var dmJ = function(dmK, dmL, dmM) { + var dmN = new Cesium['Matrix3'](); + if (dmK != 0x0) { + dmN = Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](-dmK)); + dlb['EditObj']['rotate'] = [(dlb['EditObj']['rotate'][0x0] - dmK) % 0x168, dlb['EditObj']['rotate'][0x1], dlb['EditObj']['rotate'][0x2]]; + } else if (dmL != 0x0) { + dmN = Cesium['Matrix3']['fromRotationY'](Cesium[dol(0x156f)]['toRadians'](dmL)); + dlb['EditObj']['rotate'] = [dlb['EditObj']['rotate'][0x0], (dlb['EditObj']['rotate'][0x1] + dmL) % 0x168, dlb['EditObj']['rotate'][0x2]]; + } else if (dmM != 0x0) { + dmN = Cesium['Matrix3'][dol(0x1570)](Cesium[dol(0x1571)]['toRadians'](-dmM)); + dlb['EditObj']['rotate'] = [dlb['EditObj']['rotate'][0x0], dlb['EditObj']['rotate'][0x1], (dlb['EditObj']['rotate'][0x2] - dmM) % 0x168]; + } + if (!dmN[dol(0x1572)](new Cesium['Matrix3']())) { + let dmO = dlb['EditObj']['boundingSphere']['center']; + var dmP = dlb['EditObj']['tilesetoutline']['maximumHeight'] - dlb['EditObj'][dol(0x1573)]['minimumHeight']; + var dmQ = new Cesium['Matrix4'](); + var dmR = new Cesium['Matrix4'](); + Cesium['Matrix4']['multiply'](dlb['EditObj']['modelMatrix'], dlb['EditObj']['root']['transform'], dmR); + Cesium['Matrix4'][dol(0x1574)](dmR, dmQ); + Cesium[dol(0x1575)]['multiplyByPoint'](dmQ, dmO, dmO); + let dmS = Cesium['Cartesian3']['subtract'](new Cesium['Cartesian3'](0x0,0x0,0x0), dmO, new Cesium['Cartesian3']()); + var dmT = new Cesium['Matrix4'](); + dlb['EditObj']['root']['transform'][dol(0x1576)](dmT); + Cesium['Matrix4'][dol(0x1577)](dmT, Cesium['Matrix4'][dol(0x1578)](dmS), dmT); + Cesium['Matrix4']['multiply'](dmT, Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,dmP)), dmT); + Cesium['Matrix4'][dol(0x1579)](dmT, dmN, dmT); + Cesium['Matrix4']['multiply'](dmT, Cesium['Matrix4']['fromTranslation'](new Cesium['Cartesian3'](0x0,0x0,-dmP)), dmT); + Cesium['Matrix4']['multiply'](dmT, Cesium['Matrix4']['fromTranslation'](dmO), dlb['EditObj']['root']['transform']); + } + }; + var dmU = function(dmk, dml) { + if (Cesium['defined'](dmm)) { + switch (dmm['id']) { + case 'R' + doo(0xdd9) + 'X': + { + var dmX = dml['y'] - dmk['y']; + var dmY = Cesium['Math']['toDegrees'](dmX / 0x64); + dlb['SceneObj'][dol(0x157a)]['rotate'](dlb['EditObjFeatureId'], 0x1, 0x0, 0x0, dmY); + break; + } + case 'R' + doo(0xdda) + 'Y': + { + var dmX = dml['y'] - dmk['y']; + var dmY = Cesium['Math']['toDegrees'](dmX / 0x64); + dlb['SceneObj']['Feature']['rotate'](dlb['EditObjFeatureId'], 0x0, 0x1, 0x0, dmY); + break; + } + case 'R' + doo(0xddb) + 'Z': + { + var dmX = dml['x'] - dmk['x']; + var dmY = Cesium['Math']['toDegrees'](dmX / 0x64); + dlb['SceneObj']['Feature']['rotate'](dlb['EditObjFeatureId'], 0x0, 0x0, 0x1, dmY); + break; + } + default: + } + } + }; + dlc['setInputAction'](function(dn3) { + if (dlb['SceneObj']['EditMode'] != 'R' + doo(0xddc) + 'e') + return; + if ((dmm || null) != null) { + dmi = !![]; + dmk = dn3['position']; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableRotate'] = ![]; + dlb['SceneObj']['viewer'][dol(0x157b)]['screenSpaceCameraController']['enableTranslate'] = ![]; + dlb['SceneObj']['viewer']['scene'][dol(0x157c)]['enableZoom'] = ![]; + dlb[dol(0x157d)]['viewer']['scene']['screenSpaceCameraController']['enableTilt'] = ![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableLook'] = ![]; + } + if (dlb['EditType'] == 0x0) { + dlb['SceneObj']['Model']['getByScreenCoord'](dn3['position'], function(dn4) { + if (dn4 && Cesium['defined'](dn4)) { + dlb['EditObj'] = dn4['obj']; + var dn5 = dlb['EditObj']['boundingSphere']['center']; + dlb['RotatePrimitives']['forEach'](function(dn6, dn7) { + var dn8 = Cesium['Transforms']['eastNorthUpToFixedFrame'](dn5); + var dn9 = Cesium['Matrix4']['multiplyTransformation'](dn8, dn6['m'], new Cesium['Matrix4']()); + dn9 = Cesium['Matrix4']['multiply'](dn9, Cesium['Matrix4']['fromUniformScale'](dlb['EditObj']['boundingSphere']['radius'] / 0x3), new Cesium['Matrix4']()); + dn6['o']['modelMatrix'] = dn9; + dn6['o']['show'] = !![]; + }); + dlb['SceneObj']['viewer']['scene']['requestRender'](); + } + }); + } else { + dlb['SceneObj']['Feature']['getByEvent'](dn3['position'], function(dna) { + if (!(dna && Cesium['defined'](dna))) + return; + dlb['EditObjFeatureId'] = dna[dol(0x157e)]; + dlb['EditObj'] = dna['obj'][0x0]; + var dnb = dlb['EditObj']['_content']['tile'][dol(0x157f)][dol(0x1580)]; + dlb['that']['RotatePrimitives']['forEach'](function(dnc, dnd) { + var dne = Cesium[dol(0x1581)]['eastNorthUpToFixedFrame'](dnb); + var dnf = Cesium['Matrix4']['multiplyTransformation'](dne, dnc['m'], new Cesium['Matrix4']()); + ;dnc['o']['modelMatrix'] = dnf; + dnc['o']['show'] = !![]; + }); + dlb['SceneObj']['viewer']['scene']['requestRender'](); + }); + } + }, Cesium[dol(0x1582)]['LEFT_DOWN']); + dlc['setInputAction'](function(dng) { + if (dlb['SceneObj']['EditMode'] != 'R' + doo(0xddd) + 'e') + return; + if (dmi) { + dmi = ![]; + if ((dmm || null) != null) { + dmm['primitive']['appearance']['material']['uniforms']['color']['alpha'] = 0.5; + dmm = null; + } + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableRotate'] = !![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableTranslate'] = !![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController']['enableZoom'] = !![]; + dlb[dol(0x1583)][dol(0x1584)]['scene']['screenSpaceCameraController']['enableTilt'] = !![]; + dlb['SceneObj']['viewer']['scene']['screenSpaceCameraController'][dol(0x1585)] = !![]; + dlb['SceneObj']['viewer']['scene']['requestRender'](); + try { + document['getElementById']('r' + doo(0xdde) + 'x')['value'] = dlb['EditObj']['rotate'][0x0]; + document['getElementById']('r' + doo(0xddf) + 'y')['value'] = dlb['EditObj']['rotate'][0x1]; + document['getElementById']('r' + doo(0xde0) + 'z')['value'] = dlb['EditObj']['rotate'][0x2]; + document['getElementById']('r' + doo(0xde1) + 'x')['dispatchEvent'](new Event('i' + doo(0xde2) + 't')); + document['getElementById']('r' + doo(0xde3) + 'y')['dispatchEvent'](new Event('i' + doo(0xde4) + 't')); + document[dol(0x1586)]('r' + doo(0xde5) + 'z')['dispatchEvent'](new Event('i' + doo(0xde6) + 't')); + } catch (dnh) {} + } + }, Cesium['ScreenSpaceEventType']['LEFT_UP']); + dlc['setInputAction'](function(dni) { + if (dlb['SceneObj']['EditMode'] != 'R' + doo(0xde7) + 'e') + return; + if (dmi) { + dmn(dmk, dni['startPosition'], dni['endPosition']); + } else { + try { + var dnj = dlb['SceneObj']['viewer']['scene']['pick'](dni['endPosition']); + } catch (dnk) {} + if (dnj && Cesium[dol(0x1587)](dnj) && dnj['primitive']instanceof Cesium['Primitive']) { + if (dlb['RotatePrimitives'][dol(0x1588)](dnj['id']) && dnj['id']['indexOf']('_') < 0x0) { + if ((dmm || null) != null && dmm != dnj) { + dmm['primitive'][dol(0x1589)][dol(0x158a)]['uniforms']['color']['alpha'] = 0.5; + dmm = null; + } + dmm = dnj; + dnj['primitive']['appearance'][dol(0x158b)]['uniforms']['color']['alpha'] = 0x1; + dlb['SceneObj']['viewer']['scene']['requestRender'](); + } + } else { + if ((dmm || null) != null) { + dmm['primitive']['appearance']['material']['uniforms']['color']['alpha'] = 0.5; + dmm = null; + } + } + } + }, Cesium['ScreenSpaceEventType']['MOUSE_MOVE']); + var dnl = function(dnm, dnn, dno) { + var dnp = Cesium['Matrix4']['multiplyByPoint'](dnm, dnn, new Cesium['Cartesian3']()); + var dnq = Cesium['Cartesian3']['distance'](dnp, dno); + while (dnq > 0x0) { + var dnr = Cesium['Matrix3']['fromRotationZ'](Cesium['Math']['toRadians'](-0x1)); + var dns = Cesium['Matrix4'][dol(0x158c)](dnr); + var dnm = Cesium['Matrix4']['multiply'](dnm, dns, new Cesium['Matrix4']()); + dnp = Cesium['Matrix4']['multiplyByPoint'](dnm, dnn, new Cesium['Cartesian3']()); + dnq = Cesium['Cartesian3']['distance'](dnp, dno); + } + return dnm; + }; + var dnu = function() { + dlb['RotatePrimitives']['forEach'](function(dnv, dnw) { + if (!dnv['o']['show']) + return ![]; + var dnx = Number['POSITIVE_INFINITY']; + var dny = Number['NEGATIVE_INFINITY']; + var dnz = -0x1; + var dnA = -0x1; + const dnB = []; + for (let dnC = 0x0; dnC <= 0x168; dnC += 0x2) { + const dnD = Math['sin'](Cesium['Math']['toRadians'](dnC)); + const dnE = Math['cos'](Cesium['Math']['toRadians'](dnC)); + const dnF = 0x3 * dnE; + const dnG = 0x3 * dnD; + var dnH = Cesium['Matrix4']['multiplyByPoint'](dnv['o']['modelMatrix'], new Cesium['Cartesian3'](dnF,dnG,0x0), new Cesium['Cartesian3']()); + dnB['push'](dnH); + var dnI = Cesium['Cartesian3']['distance'](dnH, dla['viewer']['camera'][dol(0x158d)]); + if (dnI < dnx) { + dnx = dnI; + dnz = dnC / 0x2; + } + if (dnI > dny) { + dny = dnI; + dnA = dnC / 0x2; + } + } + var dnJ = new Cesium[(dol(0x158e))](); + switch (dnw) { + case '_' + doo(0xde8) + 'X': + case '_' + doo(0xde9) + 'Y': + case '_' + doo(0xdea) + 'Z': + dnJ = dnl(dnv['o']['modelMatrix'], dnv['c'], dnB[dnA]); + break; + case 'R' + doo(0xdeb) + 'X': + case 'R' + doo(0xdec) + 'Y': + case 'R' + doo(0xded) + 'Z': + dnJ = dnl(dnv['o']['modelMatrix'], dnv['c'], dnB[dnz]); + break; + default: + } + dnv['o']['modelMatrix'] = dnJ; + }); + }; + } + ; + this['Cancel'] = function() { + if (dlb[dol(0x158f)]['m_model']['get']('a' + doo(0xdee) + 'r') != undefined) + dlb['SceneObj']['Model']['setVisible']('a' + doo(0xdef) + 'r', ![]); + dlb[dol(0x1590)]['forEach'](function(dnK, dnL) { + dnK['o']['show'] = ![]; + }); + dlb['SceneObj']['viewer']['scene']['requestRender'](); + } + ; + this['Destroy'] = function() { + dlc['destroy'](); + dlc = new Cesium['ScreenSpaceEventHandler'](dlb['SceneObj']['viewer']['scene']); + dlb['Cancel'](); + } + ; + function dnM() { + var dnN = Cesium[dol(0x1591)]['IDENTITY']; + const dnO = []; + for (let dnP = 0x0; dnP <= 0x168; dnP += 0x2) { + const dnQ = Math['sin'](Cesium['Math']['toRadians'](dnP)); + const dnR = Math['cos'](Cesium['Math']['toRadians'](dnP)); + const dnS = 0x3 * dnR; + const dnT = 0x3 * dnQ; + dnO['push'](new Cesium['Cartesian3'](dnS,dnT,0x0)); + } + var dnU = function(dnV, dnW, dnX) { + return new Cesium['Primitive']({ + 'geometryInstances': new Cesium['GeometryInstance']({ + 'id': dnV, + 'geometry': new Cesium['PolylineGeometry']({ + 'positions': dnO, + 'width': 0x3 + }) + }), + 'appearance': new Cesium['PolylineMaterialAppearance']({ + 'material': new Cesium['Material']({ + 'fabric': { + 'type': 'C' + doo(0xdf0) + 'r', + 'uniforms': { + 'color': dnW + } + } + }), + 'renderState': new Cesium['RenderState']({ + 'depthTest': { + 'enabled': dnX + } + }) + }), + 'modelMatrix': dnN, + 'show': !![] + }); + }; + var dnY = dnU('_' + doo(0xdf1) + 'X', Cesium['Color']['LIGHTGRAY']['withAlpha'](0.2), !![]); + dnY['geometryInstances']['geometry'][dol(0x1592)] = dnY['geometryInstances']['geometry']['_positions']['slice'](0x0, 0x5a); + var dnZ = dnU('R' + doo(0xdf2) + 'X', Cesium[dol(0x1593)]['BLUE']['withAlpha'](0.5), ![]); + dnZ['geometryInstances']['geometry']['_positions'] = dnZ['geometryInstances']['geometry']['_positions']['slice'](0x5a); + var do0 = dnU('_' + doo(0xdf3) + 'Y', Cesium['Color']['LIGHTGRAY']['withAlpha'](0.2), !![]); + do0['geometryInstances']['geometry']['_positions'] = do0['geometryInstances']['geometry']['_positions']['slice'](0x64); + var do1 = dnU('R' + doo(0xdf4) + 'Y', Cesium['Color'][dol(0x1594)]['withAlpha'](0.5), ![]); + var do2 = dnU('_' + doo(0xdf5) + 'Z', Cesium[dol(0x1595)]['LIGHTGRAY']['withAlpha'](0.2), !![]); + do2['geometryInstances']['geometry']['_positions'] = do2['geometryInstances']['geometry']['_positions']['slice'](0x0, 0x5a); + var do3 = dnU('R' + doo(0xdf6) + 'Z', Cesium['Color']['RED']['withAlpha'](0.5), ![]); + do3[dol(0x1596)]['geometry']['_positions'] = do3['geometryInstances']['geometry']['_positions']['slice'](0x5a); + var do4 = { + 'X': [[dnY, [0x0, 0x5a, 0x0]], [dnZ, [0x0, 0x5a, 0x0]]], + 'Y': [[do1, [0x5a, 0x0, 0x0]]], + 'Z': [[do2, [0x0, 0x0, 0x0]], [do3, [0x0, 0x0, 0x0]]] + }; + for (var do5 in do4) { + for (var do6 = do4[do5]['length']; do6--; ) { + var do7 = do4[do5][do6][0x0]; + var do8 = do4[do5][do6][0x1]; + var do9 = do7['modelMatrix']; + const doa = Cesium['Matrix3']['fromRotationX'](Cesium['Math']['toRadians'](do8[0x0])); + const dob = Cesium[dol(0x1597)]['fromRotationY'](Cesium['Math']['toRadians'](do8[0x1])); + const doc = Cesium['Matrix3']['fromRotationZ'](Cesium['Math'][dol(0x1598)](do8[0x2])); + const dod = Cesium['Matrix4']['fromRotationTranslation'](doa); + const doe = Cesium['Matrix4']['fromRotationTranslation'](dob); + const dof = Cesium['Matrix4']['fromRotationTranslation'](doc); + Cesium['Matrix4']['multiply'](do9, dof, do9); + Cesium['Matrix4']['multiply'](do9, doe, do9); + Cesium['Matrix4']['multiply'](do9, dod, do9); + let dog = do7[dol(0x1599)]['geometry']['_positions'][Math['ceil'](do7[dol(0x159a)]['geometry']['_positions']['length'] / 0x2)]; + dlb['RotatePrimitives']['set'](do7['geometryInstances']['id'], { + 'o': do7, + 'm': do7['modelMatrix'], + 'c': dog + }); + dlb[dol(0x159b)]['viewer']['scene']['primitives']['add'](do7); + } + } + } + } + ; + function doh(doi) { + return e[doi]; + } + function doj(dok) { + return g[dok]; + } + function dol(don) { + return h[don]; + } + function doo(dop) { + var q = f[dop] + , dor = ''; + if (q['match']('_0x') != null && q['match']('_0x')['index'] == 0x0) { + (function() {}()); + for (var dos = 0x3; dos < q['length']; dos++) + dor += String['fromCharCode'](q[dos]['charCodeAt']() ^ 0x1024); + return dor; + } else + return q; + } + }({}); +}(['id', '-hm', 'div', '4px', 'div', '\u0022\u003e', 'div', '4px', '2D', 'en', '2D', 'dim', 'mm', 'id', '2D', '2D', 'top', 'px', 'px', 'cm', 'km', 'dm', 'mm', 'cm', 'km', 'dm', 'mm', '\u5782\u76f4\u003a', 'en', '\u5782\u76f4\u003a', '\u6c34\u5e73\u003a', 'en', '\u6c34\u5e73\u003a', 'km²', 'm²', 'en', 'en', 'px', 'px', 'px', 'px', 'id', 'm²', '\u9762\u79ef', '\x20㎡', '\u7acb\u65b9\u7c73', '\u9ad8\u5ea6\uff1a', '\u7acb\u65b9\u7c73', '16', '16', 'top', 'px', 'px', 'px', 'px', 'id', 'id', 'box', 'box', 'box', 'box', 'div', 'png', 'id', '2D', '2d', '2D', '||', '||', '||', '||', '2d', 'px', 'px', '2d', 'en', 'Map', 'img', 'img', 'cva', 'cva', 'img', 'vec', 'vec', 'GET', '3D', '3D', '3D', '2D', '2D', '3D', '2D', '_in', 'Add', '2D', '3D', 'div', 'px', 'px', 'id', 'top', '2D', '\u5782\u76f4\u003a', '2D', '\u6c34\u5e73\u003a', '2D', '2D', '2D', '\u5e73\u65b9\u7c73', '2D', 'en', 'px', 'px', '2D', 'm²', 'px', 'px', 'px', 'px', 'id', 'box', 'box', 'box', 'box', '2d', 'id', 'CBP', 'img', 'vec', 'url', '{z}', '{s}', '{x}', '{y}', '{x}', '{y}', 'img', 'cva', '01', '02', '03', '04', 'img', 'img', 'vec', 'img', 'ter', 'src', 'div', 'id', '\x20{', 'div', '2d', ')\x20{', '\x20{', '\x20{', '\x20{', '\x20{', ')\x20{', '\x20{', '\x20*/', 'div', '\x20km', '\x20m', '\u653e\u5927', '\u7f29\u5c0f', 'in', 'out', 'div', 'div', 'id', 'div', 'id', 'div', 'id', 'div', 'id', '\u007b\u000a', '\u007d\u000a', '\u6a21\u578b', 'top', 'tnw', 'bnw', 'ten', 'ben', 'tse', 'bse', 'tws', 'bws', 'es', 'sw', 'wn', 'ne', 'te', 'ts', 'tw', 'tn', 'be', 'bs', 'bw', 'bn', 'DIV', 'px;', 'px;', 'px;', 'px;', '\x20{', 'px;', 'px;', 'px;', 'px;', 'px;', 'px;', 'get', '\u0022\u003e', ';}', '\u0022\u003e', 'div', 'div', 'px', 'px', 'px', 'px', '\u5168\u666f\u56fe', '3d', '\u5168\u666f\u56fe', '\u5168\u666f\u5716', 'en', 'div', 'px;', 'px;', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', '2d', '3d', 'px', 'px', 'px', 'px', '\u8bf7\u9009\u62e9', 'ul', 'li', '2d', 'li', '2d', '2d', '2d', '3d', '3d', '2d', '2d', '2d', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'px', 'GET', '1.0', 'id', 'id', '\u005c\u006e', '2d', '2d', '{\x20', '}\x20', '2d', '2d', 'img', 'img', '2d', '%23', '2d', '2d', '_1', '_2', 'id', 'url', 'url', '3d', '2d', '3d', 'url', 'id', 'src', '\x20\x20', '\x20\x20', '\x20\x20}', '\x20\x20', '\x20\x20', '1.0', '1.0', '1.0', '\x20\x20', '\x20\x20', '2d', '3d', '{\x20', '}\x20', '2d', '2d', '2d', '2d', 'url', 'rem', 'em', 'px', 'deg', 'rad', 'top', 'to', 'top', 'px', '2d', '2d', 'red', 'red', 'div', 'px', 'svg', 'ms', 'ms', 'ms', 'GET', 'svg', 'to', 'top', 'at', 'top', 'URL', 'URL', 'top', '0\x200', 'top', 'top', 'LAO', 'LAO', 'lao', 'top', 'top', 'px', 'OL', 'UL', 'LI', 'OL', 'svg', 'IMG', 'CM', 'CD', 'XC', 'XL', 'IX', 'IV', 'י׳', 'ט׳', 'ח׳', 'ז׳', 'ו׳', 'ה׳', 'ד׳', 'ג׳', 'ב׳', 'א׳', 'יט', 'יח', 'יז', 'טז', 'טו', '.\x20', '.\x20', ',\x20', '\u62fe\u767e\u5343', 'px', 'px', 'img', '2d', '2d', 'img', '0px', 'no', 'div', 'img', '2d', 'px', 'px', ',\x20', 'px', '2d', '2d', '2d', 'px', 'px', 'HDR', 'Add', 'mm', 'mm', 'TOP', 'Add', '_in', 'Add', 'DIV', '_in', '_in', 'Add', 'XYZ', 'XY', 'YZ', 'XZ', 'XY', 'YZ', 'XZ', 'XY', 'YZ', 'XZ'], ['ndefine', '3.1.0717.', 'esiumContaine', 'ianditu_imag', 'h-C', 'ladnel', 'ap', '21283', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'ackdro', 'on', 'bsolut', 'ointer-event', 'on', 'hit', 'on', 'bsolut', 'ointer-event', 'on', 'gba(0,\x200,\x200,\x20.4', 'HR_technique_webg', 'HR_technique_webg', 'HR_techniques_webg', 'HR_techniques_webg', 'HR_techniques_webg', 'HR_techniques_webg', 'HR_techniques_webg', 'HR_techniques_webg', 'HR_techniques_webg', 'HR_technique_webg', 'HR_techniques_webg', 'HR_technique_webg', 'HR_techniques_webg', 'oid\x20main(void', 'on', 'on', 'on', 'le', 'ente', 'bsolut', '0p', '0p', 'ointer-event', 'on', 'FFFFF', 'gba(255,255,255,1', 'ndroi', 'Phon', 'Pa', 'Po', 'lipBox', 'AD_B', 'AD_B', 'AD_B', 'adinfo.jso', 'xisHelpe', '_0x\u9fb5\u7a05\u4773\u4239\u49ef\u4332\u4915\u9d01', 'h-t', '_0x\u9f0b\u7a05\u486e\u4239\u49ef\u4332\u4915\u7573', 'EBGL_lose_contex', 'OUSE_MOV', 'efaul', 'EFT_CLIC', 'OS', 'ontent-Typ', 'pplication/json', 'equest\x20timeout', 'gba(255,255,255,1', 'ndroi', 'Phon', 'Pa', 'Po', 'xisHelpe', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b\uef3e\u7a05\u47af\u5e29\u4b7c\u470c', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b\uef3e\u7a05\u47af\u5e29\u4b7c\u470c', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'estMode', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'abl', 'olo', 'rrowLineSiz', 'rrowLineSiz', 'ableSiz', 'ableLin', 'ex', 'abl', '0px\x20sans-seri', 'in', 'olo', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'trin', 'olo', '_0x\u9bcb\u5fc5\u704b', 'gba', '_0x\u9bcb\u5fc5\u704b', 'gba(255,255,255,1', 'gba(255,255,255,1', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u4c35\u43e6\u7554\u1004\u104b\u1054\u1050\u104d\u104b\u104a', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u4c35\u43e6\u7554\u1004\u104b\u1054\u1050\u104d\u104b\u104a', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'am', 'ndin', 'ndin', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u47af\u1050\u1045\u1043\u5e29\u90d9\u5e1e\u6a5e', '_0x\u4f24\u440b\u6f32\u9fb5\u7a05\u4f2b', 'oveLine', 'gba(255,0,0', 'oveLine', '_0x\u9bcb\u5fc5\u704b', 'nvalid\x20mode', 'nvalid\x20mode', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'rea', 'rea', '_0x\u9bcb\u5fc5\u704b', 'rea', 'rea', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '-MI', '-MI', '-MI', '-MA', '-MA', '-MA', '-MI', '-MI', '-MI', '-MI', '-MI', '-MI', '-MI', '-MI', '-MI', '-MA', '-MA', '-MA', '-MA', '-MA', '-MA', '-MA', '-MA', '-MA', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'ff000', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', 'lipBox', '4px\x20sans-seri', 'olo', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'round', 'round', 'HEE', 'ointer', 'EFT_CLIC', 'ointer', 'IGHT_U', 'ointer', 'round', 'round', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', 'lipBox', 'ntitle', 'lipBox', 'abl', 'abl', 'abl', 'olo', '_0x\u9bcb\u5fc5\u704b', '_0x\u47af\u4429\u69d4\u5e1e\u6a5e', 'gba(255,0,0,1', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'OTTO', 'RON', 'AC', 'EF', 'IGH', 'OTTO', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'irdi', 'irU', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u104d\u104a\u1004\u7232\u1004\u1049\u1045\u105c\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u104d\u104a\u1004\u7232\u1004\u1049\u1045\u105c\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u104d\u104a\u1004\u7232\u1004\u1049\u1045\u105c\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'on', 'ebgl', 'ransparen', 'loc', '_0x\u9bcb\u5fc5\u704b', 'abinde', 'oveU', 'oveDow', 'oveForwar', 'oveBackwar', 'oveRigh', 'oveLef', 'urnRigh', 'urnLef', 'pinU', 'pinDow', 'eydow', 'ndefine', 'eyu', 'ndefine', 'ointer', 'ecord-canva', 'R\x20play\x20complete', 'ideo/mp', 'ecordingComplete', 'R\x20play\x20cancel', 'R\x20play\x20keyFrame\x20', 'ecordStar', 'mp', 'on', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u7554\u853d', '_0x\u7823\u81e9', '_0x\u1010\u1054\u105c\u1004\u8ef5', 'ertical\x20distance', 'h-t', '_0x\u1010\u1054\u105c\u1004\u8ef5', 'orizontal\x20distance', 'h-t', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u853d', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u9bcb\u5fc5\u704b', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'OUSE_MOV', 'EFT_CLIC', 'on', 'nMode', 'nEart', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u101c\u1054\u105c\u1004\u8ef5', 'IGHT_CLIC', 'efaul', '_0x\u9bcb\u5fc5\u704b', '_0x\u1041\u1046\u1043\u1048\u1015\u76a6\u5e29\u750b\u7325\u7b40\u7381\u43c7', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'OUSE_MOV', 'EFT_CLIC', 'on', 'nMode', 'nEart', '_0x\u101c\u1054\u105c\u1004\u8ef5', '_0x\u72cd\u66a0\u5e00\u5e0e\u8746\u5e29\u4e57', '_0x\u101c\u1054\u105c\u1004\u8ef5', 'IGHT_CLIC', 'efaul', '_0x\u9bcb\u5fc5\u704b', 'ine_dynami', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'OUSE_MOV', 'EFT_CLIC', 'on', 'ine_dynami', 'nMode', 'nEart', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u101c\u1054\u105c\u1004\u8ef5', 'IGHT_CLIC', 'efaul', '_0x\u9bcb\u5fc5\u704b', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'OUSE_MOV', 'EFT_CLIC', 'on', 'nMode', 'nEart', 'nMode', '_0x\u1010\u1054\u105c\u1004\u8ef5', 'IGHT_CLIC', 'efaul', '_0x\u9bcb\u5fc5\u704b', '_0x\u850a\u6ef7\u777b\u7d6f', 'h-t', '_0x\u8351\u6d74\u777b\u81eb', '_0x\u732d\u6ef7\u777b\u7d6f', 'ong\x20press\x20to\x20finis', 'h-t', '_0x\u732d\u6d74\u777b\u81eb', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'OUSE_MOV', 'loc', 'OUSE_MOV', 'loc', 'EFT_CLIC', 'on', 'nMode', 'am', 'nEart', 'IGHT_CLIC', 'INCH_STAR', 'INCH_MOV', 'INCH_EN', 'nEart', 'nMode', '_0x\u1010\u1054\u105c\u1004\u8ef5', 'on', '_0x\u9bcb\u5fc5\u704b', '_0x\u1041\u1046\u1043\u1048\u1015\u76a6\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u1041\u1046\u1043\u1048\u1015\u76a6\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', 'rea:', '4pt\x20monospac', '_0x\u9bcb\u5fc5\u704b', 'EFT_CLIC', '_0x\u1010\u1054\u105c\u1004\u8ef5', 'IGHT_CLIC', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'EFT_CLIC', 'IGHT_CLIC', '00ff0', 'fafa5', '00fff', 'fafa5', '_0x\u759d\u5f77\u69cb', '_0x\u759d\u6c57', '_0x\u759d\u5f77\u69cb', '8px\x20sans-seri', '6px\x20sans-seri', '_0x\u759d\u5f77\u69cb', '_0x\u759d\u6c57', '_0x\u759d\u5f77\u69cb', '8px\x20sans-seri', '_0x\u9bcb\u5fc5\u704b', 'FFFFF', 'x\x20sans-seri', '_0x\u9bcb\u5fc5\u704b', 'FFFFF', 'x\x20sans-seri', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'ointer', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'lic', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u725a\u4214\u1050\u1056\u1045\u1047\u104f\u106d\u1040\u4bdd\u4eb0\u66a0\u9f4c\u9fdd\u7554\u734a', 'tickerMa', 'tickerMa', 'ron', 'ac', 'ef', 'igh', 'otto', 'ollow', 'ollow', 'ollow', '_0x\u9bcb\u5fc5\u704b', 'ollow', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'on', 'on', '\x20p', '\x20p', 'EFT_DOW', 'EFT_U', 'EFT_CLIC', 'OUSE_MOV', 'loc', 'am', 'gb(255,255,255', 'AD_B', 'gb(255,255,255', 'gb(255,255,255', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', 'am', 'gba(255,255,255,1', '_0x\u9bcb\u5fc5\u704b', 'gb(255,255,255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'gba', '_0x\u9bcb\u5fc5\u704b', 'gba(255,255,255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'nvalid\x20mode', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u4c35\u43e6\u7554\u1004\u104b\u1054\u1050\u104d\u104b\u104a', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b\uef3e\u43e6\u7554\u1047\u1048\u104d\u1054\u106d\u1040\u1004\u4dd6\u4b7c', '_0x\u73f4\u43f2\u4214\u7a05\u47af\u1050\u1045\u1043', '-MA', '-MI', '-MA', '-MI', '-MA', '-MI', '_0x\u73f4\u43f2\u4214\u7a05\u47af\u1050\u1045\u1043', 'ustomPat', '_0x\u9bcb\u5fc5\u704b', 'rea', '_0x\u9bcb\u5fc5\u704b', 'rea', '_0x\u9bcb\u5fc5\u704b', '-MI', '-MA', '-MI', '-MA', '-MI', '-MA', 'ustomPat', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u470c\u1045\u1054\u104d\u4239\u49ef\u4332\u442a\u4f24\u440b\u6f4a\u8852\u7e16\u77f7\u7a05\u4773', '_0x\u1041\u1046\u1043\u1048\u1015\u76a6\u5e29\u750b\u7325\u7b40\u7381\u43c7', 'gb(255,255,255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u4c35\u43e6\u7554\u1004\u104b\u1054\u1050\u104d\u104b\u104a', 'aceline', 'aceline', 'aceline', 'EFT_CLIC', 'EFT_DOUBLE_CLIC', 'EFT_DOW', 'EFT_U', 'IGHT_CLIC', 'IGHT_DOW', 'IGHT_U', 'HEE', 'IDDLE_CLIC', 'IDDLE_DOW', 'IDDLE_U', 'OUSE_MOV', 'INCH_EN', 'INCH_MOV', 'INCH_STAR', 'EFT_CLIC', 'EFT_DOUBLE_CLIC', 'EFT_DOW', 'EFT_U', 'IGHT_CLIC', 'IGHT_DOW', 'IGHT_U', 'HEE', 'IDDLE_CLIC', 'IDDLE_DOW', 'IDDLE_U', 'OUSE_MOV', 'INCH_EN', 'INCH_MOV', 'INCH_STAR', 'on', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'oolea', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', 'umbe', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', 'oolea', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', 'oolea', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'olygo', 'olylin', 'FFD70', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'trin', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'gba(255,\x20255,\x20255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'esium-viewe', 'nline-bloc', 'nline-bloc', 'on', 'on', 'EBGL_lose_contex', '_0x\u9bcb\u5fc5\u704b', 'EBGL_lose_contex', '_0x\u9bcb\u5fc5\u704b', 'oolea', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', '_0x\u734a\u5e29\u90d9\u5e1e\u6a5e', '_0x\u5faf\u7823\u88bc\u5e29\u90d9\u5e1e\u6a5e', '_0x\u9c15\u4429\u69d4\u5e29\u90d9\u5e1e\u6a5e', 'olorPalette', 'umbe', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', 'oolea', '_0x\u7554\u5e1e\u1050\u1056\u1051\u1041\u7232\u9021\u1042\u1045\u1048\u1057\u1041', 'oolea', '_0x\u7554\u7818\u4f2b\u5e29\u4bdd', '_0x\u8077\u7d65\u7c10\u106d\u1040\u5e29\u90d9\u5e1e', 'gba', 'zm_UnrealBloomPas', 'zm_UnrealBloomPas', 'zm_UnrealBloomPas', '_0x\u4b7c\u470c\u66dc\u4428\u756c', 'zm_EageBloomPass', 'zm_EageBloomPass', 'zm_EageBloomPas', 'dge', 'olo', '_0x\u9bcb\u5fc5\u704b', '_0x\u1041\u104a\u1050\u1041\u1056\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u1041\u104a\u1050\u1041\u1056\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u1041\u104a\u1050\u1041\u1056\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u105d\u1054\u1041\u4018\u75c4', 'OSITIO', 'primitive.', 'EXCOORD_', 'primitive.', 'BATCHI', 'primitive.', 'primitive.', 'primitive.', 'am', 'AD_B', 'AD_B', 'AD_B', 'am', 'am', 'on', 'on', 'on', 'abl', 'on', 'arro', 'on', 'arro', 'idt', 'idt', 'idt', 'abl', 'idt', 'arro', 'idt', 'arro', 'eigh', 'eigh', 'eigh', 'abl', 'eigh', 'arro', 'eigh', 'arro', 'ox23_', 'ox23_', 'ox23_', 'ox23_', 'ox23_', 'ox23_', 'ox23_', 'ox23_', 'ox23_', 'ox23_1', 'ox23_1', 'ox23_1', 'ong', 'ong', 'onglabl', 'onglarro', 'ongrarro', 'idth', 'idth', 'idthlabl', 'idthlarro', 'idthrarro', 'eight', 'eight', 'eightlabl', 'eightlarro', 'eightrarro', 'ong', 'ong', 'onglabl', 'onglarro', 'ongrarro', 'idth', 'idth', 'idthlabl', 'idthlarro', 'idthrarro', 'eight', 'eight', 'eightlabl', 'eightlarro', 'eightrarro', '1354458', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'ox23', 'abl', '2px\x20sans-seri', '_0x\u725a\u4214\u4321\u46d0\u6427\u5fc5', 'olo', 'olylineDas', 'olo', 'anva', '_0x\u105c\u1004\u4f8a\u9f4b\u86e1', 'angin', 'bjec', 'rro', 'bjec', '-MI', '-MA', '-MI', '-MA', '-MI', '-MA', 'PAQU', 'LEN', '-MI', '-MA', '-MI', '-MA', '-MI', '-MA', 'ustomPat', 'hee', 'ous', 'primitive.', 'nauthorized', 'nauthorized', 'ladnel', 'ladnel', 'ttps:/', 'ttp:/', 'ttps:/', 'ttp:/', 'object\x20String', 'OS', 'ontent-Typ', 'object\x20String', '23qwe!!', 'ttps:/', 'ttp:/', 'ttps:/', 'ttp:/', 'lendal', 'equest\x20timeout', 'ata', 'object\x20String', 'OS', 'ontent-Typ', 'object\x20String', '23qwe!!', 'ttps:/', 'ttp:/', 'ttps:/', 'ttp:/', 'lendal', 'equest\x20timeout', 'ata', 'uthorization\x20error', 'trin', 't\x20is\x20not\x20a\x20string', 'ladnel', 'ladnel', 'uthVersionFla', 'object\x20String', 'gl', 'gl', 'uthorization\x20error', 'ladnel', 'object\x20String', 'object\x20String', 'ttps:/', 'ttp:/', 'ttps:/', 'ttp:/', 'ocalhos', 'ocalhos', '27.0.0.', '27.0.0.', '27.0.0.', 'ocalhos', 'ocalhos', 'ocalhos', '27.0.0.', '27.0.0.', '27.0.0.', 'ocalhos', 'object\x20String', 'OS', 'ontent-Typ', 'equest\x20timeout', 'object\x20String', '23qwe!!', 'object\x20String', 'ttps:/', 'ttp:/', 'ttps:/', 'ttp:/', 'EP73Ak9Q2c==', 'llDomainNam', 'ocalhos', 'ocalhos', '27.0.0.', '27.0.0.', '27.0.0.', 'ocalhos', 'ocalhos', 'ocalhos', '27.0.0.', '27.0.0.', '27.0.0.', 'ocalhos', 'EP73Ak9Q2c==', 'llDomainNam', 'lendal', 'ata', 'ladnel', 'object\x20String', 'rrorMessage', '_0x\u104b\u104f\u1041\u104a\u2025\u7a05\u47af\u2025\u4f31\u74ea\u5e09\u66a0\u626c\u7708\u7823\u4ff3\u5e29\u5e24', '_0x\u6e9b\u4f31\u74ea\u5e09\u66a0\u626c\u7708\u4eab\u4233\u43d3\u5e2a\u7a05\u47af\u5e09\u66a0\u5e29\u5e24', '_0x\u6e9b\u4f31\u74ea\u5e09\u66a0\u47fb\u4429\u5e29\u4321\u440f\u4f77\u4269\u9b9b\u85ca\u4714', '_0x\u6e9b\u73ac\u7767\u5e09\u73ac\u7767\u1065\u1074\u106d\u9ff0\u46fa\u66a0\u6292\u7025\u853d', '_0x\u6e9b\u73ac\u7767\u5e09\u73ac\u7767\u1065\u1074\u106d\u9ff0\u46fa\u6292\u7025\u5e09\u7823\u4ff3\u5e29', '_0x\u6e9b\u73ac\u7767\u5e09\u73ac\u7767\u1065\u1074\u106d\u9ff0\u46fa\u66a0\u75d2\u85d0\u772d\u756c\u773b\u9da1', '_0x\u6e9b\u73ac\u7767\u5e09\u73ac\u7767\u1065\u1074\u106d\u9ff0\u46fa\u41a1\u4b9d\u5e1e', '_0x\u6e9b\u73ac\u7767\u5e09\u73ac\u7767\u1065\u1074\u106d\u9bd3\u7c66\u853d', '_0x\u626c\u7708\u73ac\u7767\u5e09\u699f\u6e9b\u73ac\u7767\u7a05\u4f2b\u47fb\u4429\u8aa8\u9be5\u5e29\u431d', '_0x\u626c\u7708\u73ac\u7767\u5e09\u470c\u6e9b\u73ac\u7767\u7a05\u4f2b\u47fb\u4429\u8aa8\u9be5\u5e29\u803e', '_0x\u626c\u7708\u73ac\u7767\u470c\u6e9b\u73ac\u7767\u7a05\u4f2b\u73ac\u7767\u1065\u1074\u106d\u9bd3\u7c66\u853d', '_0x\u8746\u770e\u9b9a\u6f4a\u1050\u104b\u104f\u1041', '_0x\u626c\u7708\u73ac\u7767\u8851\u8746\u770e\u9b9a\u6f4a\u1050\u104b\u104f\u1041', '', '_0x\u104d\u1040\u1050\u104c\u7232\u104c\u1041\u104d\u1043\u104c\u1050\u43e6\u7554\u75c4', 'anva', 'bsolut', 'loc', '10000p', 'hit', '_0x\u105c\u1004\u86e1', 'ef', 'loc', 'on', '_0x\u5e2d\u6ed0\u4b9d\u464c\u104d\u1040\u5e29\u90d9\u5e1e', 'ebpag', 'tyl', 'tyl', 'tyl', 'obil', 'tyl', 'tyl', 'tyl', 'tyl', 'tyl', '_0x\u464c\u5e29\u4b7c', 'tyl', 'tyl', 'tyl', 'verflow:\x20hidden', '_0x\u763b\u4f55', '_0x\u4714\u46da\u4f55', '_0x\u1056\u1047\u1063\u104d\u1057\u4f55', '_0x\u6e9b\u4f55', '_0x\u7b68\u4f55', '_0x\u759d\u4f55', '_0x\u1045\u1054\u1046\u104b\u105c\u4f55', '_0x\u4f93\u4f55', '_0x\u4e82\u4f55', '_0x\u4b74\u4714', '_0x\u4714\u46da\u4714', '_0x\u4f93\u4714', '_0x\u4e82\u4714', 'h-T', '_0x\u763b\u4f55', '_0x\u4714\u4732\u4f55', '_0x\u1056\u1047\u1063\u104d\u1057\u4f55', '_0x\u6dfe\u4f55', '_0x\u7b68\u4f55', '_0x\u759d\u4f55', '_0x\u1045\u1054\u1046\u104b\u105c\u4f55', '_0x\u4f93\u4f55', '_0x\u4e82\u4f55', '_0x\u4b74\u4714', '_0x\u4714\u4732\u4714', '_0x\u4f93\u4714', '_0x\u4e82\u4714', 'atellite\x20Imager', 'ap\x20World\x20Imager', 'rcGis\x20Imager', 'ffline\x20Imager', 'oogle\x20Imager', 'esium\x20World\x20Imager', 'apbox\x20Imager', 'map\x20Imager', 'aidu\x20Imager', 'ap\x20Worl', 'map\x20Ma', 'aidu\x20Ma', 'mg_', 'ia_', 'ianditu_imag', 'rcgis_imag', 'utline_imag', 'ec_', 'va_', 'ianditu_ma', 'esium_imag', 'apbox.satellit', 'GS8', 'GS8', 'aode_imag', 'le', 'GS8', 'GS8', 'aode_ma', 'GS8', 'GS8', 'aidu_imag', 'orma', 'GS8', 'GS8', 'aidu_ma', '_0x\u1006\u1048\u1045\u1050\u1006', 'dgesGeometr', 'ouseEvent', 'lic', 'ran', 'otat', 'oo', 'gba(0,255,255', 'extures/Flow1.pn', '_0x\u470c\u4239\u49ef\u442a\u4f24\u440b\u7c10\u7d65\u756c\u77b8\u7a05\u4773', 'ditPlan', 'trin', '_0x\u9bcb\u5fc5\u704b', 'xishelpe', 'ode', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', 'xisHelpe', 'xisHelpe', 'gba(255,255,255,1', 'xisHelpe', 'gba(255,255,255,1', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'ff000', 'ffff0', '00ff0', '_0x\u4c35\u8724\u99a5\u5e00\u5e0e\u4365\u4149\u9fff\u4212\u88b8\u9256\u4018', 'xisHelpe', 'ditPlan', 'xisHelpe', 'xisHelpe', '_0x\u9bcb\u5fc5\u704b', 'ndefine', 'ode', 'ode', 'lipCad', 'cadinfo.jso', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'AD_B', 'AD_B', 'AD_B', 'AD_B', 'trin', 'object\x20Object', 'trin', 'object\x20Object', '_0x\u4c35\u8724\u99a5\u5e00\u5e0e\u88b8\u9256\u4018', '_0x\u9b85\u75d2\u464c\u5e29\u4b7c\u470c\u7232\u4dd6\u988f\u6ef7\u777b', 'ad-aerial-viewe', 'mage/jp', 'esium-viewe', 'bsolut', '00', '0p', '0p', '8e8e8', '11dab', 'svg\x20width=', '\x20height=', '\x20width=', '\x20height=', '\x20height=', '_0x\u1047\u1051\u1056\u1056\u1041\u104a\u1050\u1006\u1004\u1053\u104d\u1040\u1050\u104c\u1019', '\x20height=', '\x20stroke:', 'curren', 'idt', 'eigh', 'ransfor', 'ranslate', 'ad-labelCollectio', '37d6f', 'ccf33', '03a9f', 'rossOrigi', 'nonymou', 're', 'ownloa', 'ownload.pn', 'EFT_CLIC', 'EFT_CLIC', 'AD_B', 'gb(255,255,255', 'EFT_CLIC', 'gb(255,255,255', 'istanc', 'ngle', 're', 'EFT_CLIC', 'EFT_CLIC', 'gb(255,255,255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'trin', 'olo', '_0x\u9bcb\u5fc5\u704b', 'gba', '_0x\u9bcb\u5fc5\u704b', 'gba(255,255,255,1', 'gba(255,255,255,1', '_0x\u9bcb\u5fc5\u704b', 'AD_B', 'AD_B', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u4c35\u43e6\u7554\u1004\u104b\u1054\u1050\u104d\u104b\u104a', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'am', 'ndin', 'ndin', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u7554\u4fe1\u885f\u760b\u7554', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'OTTO', 'RON', 'AC', 'EF', 'IGH', 'OTTO', '_0x\u9bcb\u5fc5\u704b', '_0x\u104d\u104a\u1004\u7232\u1004\u1049\u1045\u105c\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u104d\u104a\u1004\u7232\u1004\u1049\u1045\u105c\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u104d\u104a\u1004\u7232\u1004\u1049\u1045\u105c\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u105d\u1054\u1041\u4018\u75c4', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'on', 'ransparen', 'loc', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u853d', '_0x\u7823\u81e9', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u9bcb\u5fc5\u704b', '_0x\u7554\u853d', '_0x\u759d\u4148', '_0x\u1010\u1054\u105c\u1004\u8ef5', '_0x\u9bcb\u5fc5\u704b', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'HEE', 'OUSE_MOV', 'rosshai', 'ov', 'ov', 'ouseou', 'ouseove', 'EFT_CLIC', 'on', 'IGHT_CLIC', '_0x\u9bcb\u5fc5\u704b', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'HEE', 'OUSE_MOV', 'ouseou', 'ouseove', 'EFT_CLIC', 'on', 'IGHT_CLIC', '_0x\u9bcb\u5fc5\u704b', '_0x\u850a\u6ef7\u777b\u7d6f', 'h-t', '_0x\u8351\u6d74\u777b\u81eb', 'IGHT_DOW', 'IGHT_U', 'EFT_DOW', 'EFT_U', 'HEE', 'OUSE_MOV', 'loc', 'ouseou', 'ouseove', 'EFT_CLIC', 'on', 'IGHT_CLIC', 'INCH_STAR', 'INCH_MOV', 'INCH_EN', 'nMode', 'on', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', 'ouseou', 'ouseove', '_0x\u9bcb\u5fc5\u704b', 'AD_B', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'on', 'EFT_CLIC', 'on', '\x20p', '\x20p', 'OUSE_MOV', 'loc', 'am', 'gb(255,255,255', 'gb(255,255,255', 'gb(255,255,255', 'gba(255,255,255,1', '_0x\u9bcb\u5fc5\u704b', 'gb(255,255,255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'gba', '_0x\u9bcb\u5fc5\u704b', 'gba(255,255,255', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', '_0x\u1041\u1046\u1043\u1048\u1015\u76a6\u5e29\u750b\u7325\u7b40\u7381\u43c7', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u771e\u6acb\u5e29\u750b\u7325\u7b40\u7381\u43c7', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', 'utlinefeature', 'utlinefeature', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u9bcb\u5fc5\u704b', '_0x\u1041\u104a\u1050\u1041\u1056\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u1041\u104a\u1050\u1041\u1056\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u1041\u104a\u1050\u1041\u1056\u1004\u7554\u734a\u6c5f\u47af\u772d', '_0x\u105d\u1054\u1041\u4018\u75c4', 'ndefine', 'ask-drawin', 'anva', '0000000', 'bsolut', 'on', 'on', 'on', 'ask-drawin', 'ask-drawin', 'hocolat', 'easure', '/div', 'AD_B', 'am', 'nverte', 'adClip', 'ndefine', 'odul', '_esModul', 'bjec', 'efaul', 'trin', 'unctio', 'bjec', 'unctio', 'alu', 'unctio', 'ymbo', 'unctio', 'ymbo', 'se\x20stric', 'etDistanceByM', 'etDistanceByL', 'onvertMC2L', 'onvertLL2M', 'onverto', 'etDistanc', 'oRadian', 'oDegree', 'etRang', 'etLoo', 'ngLatToMercato', 'ngLatToPoin', 'ercatorToLngLa', 'ointToLngLa', 'ointToPixe', 'ixelToPoin', 'etZoomUnit', 'D09ToGCJ0', 'CJ02ToBD0', 'GS84ToGCJ0', 'CJ02ToWGS8', 'elt', 'ransformLn', 'ransformLa', 'ut_of_chin', 'ndefine', 'unctio', 'ositionToTileX', 'D0', 'GS8', 'orma', 'oke', 'ileWidt', 'ileHeigh', 'aximumLeve', 'inimumLeve', 'ilingSchem', 'ectangl', 'ead', 'redi', 'asAlphaChanne', 'etTileCredit', 'equestImag', 'style', 'GS8', 'ndefine', 'unctio', 'ndefine', 'unctio', 'GS8', 'ndefine', 'unctio', 'style', 'ndefine', 'unctio', 'ndefine', 'unctio', 'bjec', 'bjec', 'esiu', 'unctio', 'esiu', 'bjec', 'esiumGeometr', 'esiu', 'esiumGeometr', 'esiu', 'ndefine', 'efaul', 'se\x20stric', '_esModul', 'crip', 'se\x20stric', '_esModul', 'orizonta', 'orizonta', 'orizonta', 'nifor', 'se\x20stric', '_esModul', 'ngl', 'adiu', 'ngl', 'adiu', 'ngl', 'eigh', 'reateGeometr', 'reateGeometr', 'se\x20stric', '_esModul', 'se\x20stric', '_esModul', 'ho', 'ateria', 'il', 'hadow', 'ource\x20is\x20required', 'se\x20stric', '_esModul', 'efaul', '_esModul', 'efaul', '_esModul', 'se\x20stric', 'se\x20stric', '_esModul', 'ho', 'adiu', 'HalfAngl', 'HalfAngl', 'ineColo', 'howSectorLine', 'howLateralSurface', 'ateria', 'howDomeSurface', 'howDomeLines', 'howIntersectio', 'ntersectionColo', 'ntersectionWidt', 'howThroughEllipsoi', 'az', 'howScanPlan', 'canPlaneColo', 'canPlaneMod', 'canPlaneRat', 'ource\x20is\x20required', 'se\x20stric', '_esModul', 'cene\x20is\x20required', 'ime\x20is\x20required', 'se\x20stric', '_esModul', 'se\x20stric', '_esModul', 'iewer\x20is\x20required', 'se\x20stric', '_esModul', 'ositio', 'rientatio', 'ho', 'se\x20stric', 'olylineAttackLin', 'olylineArrowLin', 'olylinePulseLin', 'olylineGrowLinkTyp', 'llipsoidFad', 'olylineFlo', 'olylineFlo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'se\x20stric', '_esModul', '_pickColo', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', '_esModul', 'ptions\x20is\x20required', 'ptions\x20is\x20required', 'ptions\x20is\x20required', 'se\x20stric', '_esModul', 'ptions\x20is\x20required', 'ptions\x20is\x20required', 'ptions\x20is\x20required', 'se\x20stric', '_esModul', 'se\x20stric', '_esModul', 'olo', 'se\x20stric', 'tyl', 'idth:', 'x;\x20height:', 'ndefine', '.2', '.1', '_0x\u1040\u104d\u1052\u1004\u1057\u1050\u105d\u1048\u1041\u1019\u1006\u1050\u104b\u1054', '_0x\u105c\u101f\u1006\u101a\u3030', '(MAX', '\x20\x20\x20\x20\x20\x20\x20', 'olorPalette', 'egendNam', 'radientCanva', 'anva', 'radientCanva', 'radientColo', 'bjec', 'bjec', 'esiu', 'unctio', 'esiu', 'bjec', 'esiu', 'se\x20stric', 'supports\x20', 'media', 'laye', 'trin', 'laye', 'media', 'supports\x20', 'se\x20stric', 'se\x20stric', 'trin', 'ea', 'se\x20stric', 'tyl', 'unctio', 'ea', 'media', 'edi', 'edi', 'ndefine', 'oolea', 'object\x20Array', 'se\x20stric', 'ndefine', 'odul', '_esModul', 'se\x20stric', 'istanceLabe', 'arWidt', 'erria\x20is\x20require', 'nnamed\x20Contro', 'am', 'vgIco', 'vgHeigh', 'vgWidt', 'ssClas', 'sActiv', 'trin', '_0x\u6f4a\u99e2', 'unctio', 'ontrol', 'howCompas', 'eadin', 'sOrbitin', 'rbitCursorAngl', 'sRotatin', '/div', '_0x\u1040\u104d\u1052\u1004\u1047\u1048\u1045\u1057\u1057\u1019\u1006\u1047\u104b\u1049\u1054\u1045\u1057\u1057', 'ousemov', 'ouchmov', 'ouseu', 'ouchen', 'ousemov', 'ouchmov', 'ouseu', 'ouchen', 'ousemov', 'ouchmov', 'ouseu', 'ouchen', 'ousemov', 'ouchmov', 'ouseu', 'ouchen', 'istanceLegendDi', 'avigationDi', 'avigationDi', 'avigationDi', 'unctio', 'o\x20viewer\x20object', 'o\x20positions\x20object', 'bjec', 'ndefine', 'unctio', 'xport', 'se\x20stric', 'GS8', 'CJ0', 'D0', 'D09M', 'PSG385', 'object\x20Array', 'trin', 'bjec', 'trin', 'eatureCollectio', 'eatur', 'eometryCollectio', 'olygo', 'ultiPolygo', 'oin', 'ineStrin', 'ultiPoin', 'ultiPoin', 'ineStrin', 'olygo', 'ultiLineStrin', 'ultiLineStrin', 'olygo', 'olygo', 'ultiPolygo', 'eometryCollectio', '_esModul', 'xis-helpe', 'xis-helper', 'xis-helper', 'xis-helper', '_0x\u9bcb\u5fc5\u704b', '_0x\u5e2d\u6ed0\u4b9d\u464c\u104d\u1040\u5e29\u90d9\u5e1e', 'ebpag', 'tyl', 'tyl', 'tyl', 'obil', 'tyl', 'tyl', 'tyl', 'tyl', 'tyl', '_0x\u464c\u5e29\u4b7c', 'tyl', 'tyl', 'tyl', 'verflow:\x20hidden', 'olo', 'llipsoidFad', 'llipsoidFad', 'iscard;', 'else\x20{', 'eturn\x20material;', 'CircleSca', 'llipsoidFad', 'CircleSca', 'PBOX', 'LE_CPBO', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', '_0x\u4ede\u4272\u8746\u7862\uef28\u75c4\u756c\u8169', '_0x\u756c\u104d', '_0x\u4ede\u4272\u8746\u7862\uef28\u75c4\u756c\u8169', '_0x\u7323\u4bbe\u8724\u99a5\u4272\u4223\u66a0\u7a05', '_0x\u725a\u4214', '_0x\u756c\u8169', '_0x\u756c\u8169', '_0x\u756c\u104d', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'PBOX', 'MAX-', 'PBOX', 'MAX-', 'PBOX', 'MAX-', 'PBOX', 'MIN-', 'PBOX', 'MIN-', 'PBOX', 'MIN-', 'PBOX', 'MAX-', 'PBOX', 'MAX-', 'PBOX', 'MAX-', 'PBOX', 'MIN-', 'PBOX', 'MIN-', 'PBOX', 'MIN-', 'lipBox', 'EFT_DOW', 'EFT_U', 'IDDLE_DOW', 'IDDLE_U', 'OUSE_MOV', '_0x\u756c\u104d', 'AX-', 'IN-', 'IN-', 'AX-', 'AX-', 'IN-', 'IN-', 'AX-', 'AX-', 'IN-', 'IN-', 'AX-', 'IN-', 'IN-', 'IN-', 'AX-', 'AX-', 'AX-', '_0x\u104d\u104a\u1008\u1004\u1049\u1045\u105c\u1004\u75c4\u756c', '_0x\u756c\u4272\u4223\u104d\u1040', '_0x\u756c\u4272\u4223\u8169\u6f4a', 'trin', 'ranslatio', 'otat', '_0x\u756c\u4272\u4223\u104d\u1040', '_0x\u756c\u4272\u4223\u8169\u6f4a', '_0x\u756c\u7323\u5ec0\u7232\u43e6\u7554', 'ranslatio', 'otat', 'istanc', 'IN-', 'IN-', 'IN-', 'IN-', 'IN-', 'IN-', 'AX-', 'AX-', 'AX-', 'AX-', 'AX-', 'AX-', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'oint', 'elper', 'olylineArro', 'xesHelpe', 'rrow', 'rrow', 'rrow', 'olo', 'otateCircleHelpe', 'otateCircle', 'otateCircle', 'otateCircle', 'elper', 'elper', 'elper', 'IN-', 'IN-', 'IN-', 'IN-', 'IN-', 'IN-', 'AX-', 'AX-', 'AX-', 'AX-', 'AX-', 'AX-', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'IDDLE_DOW', 'IDDLE_U', 'EFT_DOW', 'EFT_U', 'OUSE_MOV', 'rrow', 'AX-', 'IN-', 'rrow', 'AX-', 'IN-', 'rrow', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'ranslatio', 'istanc', 'AX-', 'AX-', 'IN-', 'IN-', 'AX-', 'AX-', 'IN-', 'IN-', 'AX-', 'AX-', 'IN-', 'IN-', 'otat', 'AX-', 'IN-', 'AX-', 'IN-', 'AX-', 'IN-', 'bjec', 'rro', 'bjec', 'trin', 'umbe', 'oolea', 'ndefine', 'ff707', '4c4c4cc', '0000004', 'd2d2d29', 'esium-plugin-cub', 'loc', 'on', '#cube_side_', '#cube_side_', '#cube_side_', '#cube_side_', '#cube_side_', 'otto', '#cube_side_', '#cube_side_', '#cube_side_', '#cube_side_', '#cube_side_', '#cube_side_', '#cube_side_', 'ousedow', 'ousemov', 'ouchstar', 'ouchmov', 'ouchen', 'ouseu', 'ouseove', 'px\x200px\x2010px\x203px', 'inse', 'orne', 'dge', 'ouseou', 'ransparen', 'ransfor', 'ebkitTransfor', 'ozTransfor', 'ndefine', '#cube_side', '-inde', '#cube_side', '#cube_side', 'labe', 'esium-viewe', 'eft:', 'x;top:', 'ight:', 'x;top:', 'ight:', 'x;bottom:', 'eft:', 'x;bottom:', '\x20\x20\x20--base-size:', '\x20\x20\x20--cube-size:', '#cube\x20', '\x20\x20\x20top:\x2025%', '\x20\x20\x20margin:\x20auto', '#cube>div\x20', '\x20\x20\x20display:\x20block', '#cube_side_s\x20', '#cube>div>div\x20', 'style', '/style', '_0x\u1040\u104d\u1052\u1004\u104d\u1040\u1019\u1006\u1047\u1051\u1046\u1041\u1006', 'label>TOPWSENcanvas', 'cesium-baseLayerPicker-dropDown', 'GLE_BoundingboxFace_xmin', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAYlQTFRFAAAAQj7b/wAANZ1I/1BQ/////0BA/3Bwms6k8vnzQqNTtNq75vPp0M/2/8DA/9/f/xAQ/9DQ8/n0TqlfdLyBxMP0/yAg//Dw/4CA/zAwgcKNzefSlZPrZmLi/+/vaLZ2Wlbf8/P9oZ/t/8/P/+DgwOHG3Nv49PT9/5CQp9Sv2e3dTkrdcW7kfXvm/7Cw/7+/5+f6/2Bgravv6Oj7/6+v/////////////////////////////////////////////Pz87u7u////6urq/v7+////////////dHR0VFRUmZmZiYmJUlJSfn5+////9/f3UVFRn5+f////iIiI8/Pz////n5+fmJiYq6ur////nZ2dqamp////nJyclJSUhISEl5eXmpqaiYmJpaWl////m5ubnJycq6urmpqalpaW////jo6Oi4uLo6OjkpKSnJycm5ubi4uL////mpqa7e3t7+/venp6nJyciIiI/////////////f398fHx7u7u////////////////AJyubAAAAIN0Uk5TAP////////////////////////////////////////////////////////////////////8BCgJTxZoQxlYEvf+lGKb/wwmT///W3v//DZn/5yDfoxTP184O0c8c0s/ZydvixQ/T19TVzRfs5cHL37K/MNbEw//V/6AHwf+EhcAIW5c504+RAAADPklEQVR4nO2Y6VcSURjG0XzUwAX3BQU1Ugw1s9DimhXRglqNtKAttthetu+7/eXdO+MwA3Mxz/HOTMv7+yAH5hyf577rhUDg76NKwo7+YbUE/vEuGWTgHzVQA9QaurVAnWWgHruDm8IhNNgMwKJRSQSa0BzWdVvQZItAsBX1hn4b0G4z0GgCdCgx0NmFbiHbDfTYU9ALtOm6EURkKegD+tXUQJ2u3Bk1fFg10ICQeIkBMYmBgUEMqSrCJuwRf+JlRdhuhCCCvbIibMSwsi7o4dVn1aLVBRERgpiZiVIDfRgZUNeG3YhGkXC0oa4dwaikDfuBPpVzIA50hZ1zIIRQDK1BiYFhswUVGeB1aAXAMsAbcJ/ZjCUGhjCSVGkgHAWinZJJOAo0BJ0GxoBxpaN4AvEW7JcYCAK9zlGcnDRHkCIDvANq+Bw+INkFxRlgNzCFg0mVBsLNmKiuTiAa3p6BcWCsSqWBhN4B4S4c2paB5CCmqlQaMJegSMR2DHRgOKnUQNxcghPmWtzSAB9Bk8WF2K/AgLUE+VpM/N7AmO0+sFkLO4yAk8D/dSUjA34bIP4AUtMzlR/OTKdcN3D4SJpVesbSs0fd1p87huMnMvJnmZNZnDrtsoHUGZzNzUtjwBYWzyG9RYLUcP5CTtOW8s4H+YualrtUMT3quHxF07SCQ4hxfW25QnLUsnJVOCiTygj9ax6cX3D9BhdbLRFjN4W+JDHusHKrLAvMy/PrCAe3i4LsDn+75kn+Te7es8XA+/MLB/dFHeiHzoj8P/BYnzt4uBkDX86vO3gkHOTF/NHWfNAPBB7PCwf6+T2tPwsmHPgUf4N8QfN0/jgNiPjzOvBLnz0xUrDkUwqM/VOQbCaP9J9y6XXGnvGX5z44KM4fVpDeD9wmL/L/QpdlLzX5HclNSuavDzHQ62/dWseiDgqvvNM37j/2C4m3MZDsH7bq4UTS589a+aernk2kzIJ0/+hZeO3BPMi8WZTff0QlLr513cFMOvsutyz/avY+9yH7cc5lA58+48vXCqlm37L4/sNlA6mN2S2+nv+c3XD9B4Itf6BIefADBUEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQfvILl8SdVY65ybAAAAAASUVORK5CYII=', 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUZJREFUWEftlsFqg0AQht22CqNiJZYqBcGTfQFfqM/YQ5+lJ4WV4paswRySRQtTllRJSWqMppXC7mmVmdl/vxl/JNrMi8x8vjZaQJZlr/vioyh6HHOZ0QIQEQnZpSOiRtqHM1UoAYqAIvC/Cex/8n/uA2f6zY/hXQsQ8X5IUULIe18cIt4NrLOUcZ2Aqqp40zRGX7JlWVcAYH3ZL+Z5vjIMo6aUviRJ8iTfb3fro68OAFwDgHkgII7jBWPsaK5pmhrnfNMK4JwvPc/zZHBRFOsgCG7lXgixcV0XhBBH6wCAVpbldrIAxljh+74vT6GUrsIwXEwWUNe13ofOtm2JrmsBY2yt63qTpulz2wJJoKqq3hY4jnNzQAARg4HDU5wYwoeBdd6+zcCQpN+ImeSEsxqR+iNSBBQBRUASmNWILmXLo634UgI+ARSLBDBlrPHqAAAAAElFTkSuQmCC)\x2016\x2016,\x20auto', 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAARpQTFRFAAAA8/Pz////4ODg8fHx7+/v7+/v+fn54eHh4ODg4uLiaGho2NjY7u7u////6enpV1dXz8/PZ2dnDAwMLy8v19fXNTU1AAAA////7+/v19fXLy8v7u7u1tbWAQEBNjY26enp+Pj4////////9fX1NTU1ioqK9/f39/f3////////jIyM6enp/v7+/f39+Pj46+vr39/f2dnZ5ubm3NzcLS0t09PTz8/P3NzcLi4uLS0t09PT6urq1tbWz8/P5ubm////0NDQ+Pj4+Pj46urq8PDwioqKNTU12dnZ+fn56OjoNDQ0////7Ozs1NTU8vLy/////v7+Y2NjBQUFYmJi9fX1+Pj4////7u7uYWFh5+fn9/f37+/v+Pj4v269RgAAAF50Uk5TACUPHVXtaV3bTu759Gph//bb+f/99P//EGrz/Gvz//31TwFI//z5tgkJvf/0YGBQWfHyWe773D/0/PziWt/gWw0/Cbf2aPr99FH1/BFs82kj////+/YmW//791hsJ+7nkysAAAESSURBVHiczdFpV4JQEIDhMTWXCtwSK7METHCh1UxL21ex0lLL7P//jS7aOczo+N37Dd7nXC53ABZneZamXnjpo8+/TEUgGCI9vLK6hoUkR6JIePyxeGIdCUlOKpGg+5XUxuaWgoTTk3IA7ZhKbyMx6RI5ExZcn4jMzm5WBU3n+ljk9vIGgFkoct0RJdHLlhA614XYN+Dg8OgYTI3tACpYJ5XKaXVOdpZ1VqufzweaCReN5iUY2Su2S3rBhOsq3Nze3XNC3E9RCNEfHp8YMb4/XQP1+aWVScwK937t9mtNmRH4/jlB5/Mv3lzx3umS+Tji47PXd3cYfHXJfIT4Hv7gMww6dD72qEe6+MrUX9m/sDjrDyD1KPEAL+HsAAAAAElFTkSuQmCC)\x2016\x2016,\x20auto', 'Right-click\x20to\x20finish', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAdCAYAAAAgqdWEAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAXCaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0MiA3OS4xNjA5MjQsIDIwMTcvMDcvMTMtMDE6MDY6MzkgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIwLTA0LTExVDEwOjM5OjM2KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMC0wNC0xNFQxNjoxOTowNSswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMC0wNC0xNFQxNjoxOTowNSswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDZjMGY3ZDEtZWZjZC01NTRhLTkzYmMtY2MyN2MyMTlhZWJkIiB4bXBNTTpEb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YmM1MTZhYzMtOTRjYy01OTQ0LWFlNGUtNzg0ZTQ5MTQ0ZTNkIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6YzcwNDEyODEtZDRkNi1jMjQ5LTg5ZTctZmM0YTMzYmNjODkwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpjNzA0MTI4MS1kNGQ2LWMyNDktODllNy1mYzRhMzNiY2M4OTAiIHN0RXZ0OndoZW49IjIwMjAtMDQtMTFUMTA6Mzk6MzYrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjA2YzBmN2QxLWVmY2QtNTU0YS05M2JjLWNjMjdjMjE5YWViZCIgc3RFdnQ6d2hlbj0iMjAyMC0wNC0xNFQxNjoxOTowNSswODowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz62ejV3AAADc0lEQVRYR52VO2gUURSGz/qKUXyiWCgm4ANBkyKgiAgi2IidjYqotYWlT0TFSlA7EYlgnyCiaBGJChYWioWk8QUKgooPYmKMJuruer6d+ePNzexmZ3/4cs49M3vPv2dmbwrlctnG1F5Ik9xqdn4laeNq3ExfGQPHrFTcb6VSixWL761p5jWvnfN9GjI2JY351Fee5X/vWU/XKdvZ1mobZhdsV8eyypp6cj23GjNjdtTudm+yI7vN3jw3+/sniax7r2/y68eT2/KpUTP77MrZNI10+Qx/91TynGrMTLm8zN69TheRqJeKrekqlxox02L9n0dt+ap0Galltdmn90XPtieF+pXXzFznkD28/dYOnk4qsag/uPnFs6PO2kqtTuUxM8054DTbxcPPbOW6r3a+y2yF95s+I4kXupnMoF06+cbvYzonnEVOXarXDAfQDmeJM2JDA99t78Y79vNHn12998OeDJess3fYBvtf2oHNj2x46JvfN+i4SzvsNDmTqt5Dr8PZ6nDQTU/jTIcmUx2mRmQDYFMmQyw5j53OdF1V9ZhZ6mxzaB7Ct5YZJkyMhSGZ6nF6naqazMwcZ4vDico0aK7J0Jw1UwEMMQVEjgmt/VS0v84N5wWFLNUyQ9P1zmxHU8AEOddkBFNCYlOMEDEBrEecWw6/tgmqZoZkjbPAoYkeC83JMQOaiOBzoKnoMYX5d+e+M+GfaTUzvCcLHTXUNMg1EdYY0FTIw4kQZUI5j4vY7zx1uDamLDPzncWOmshEFhhQZCMizciBx0MMp6PIo3rljCk2wyPgkJIRQcMwlwHWRI2UqA1pSE7z0Aio/tH55FT030x7gQZ6R9hUjUITYY17qMkIkhk1Q7GBsE7tgzNEITHTXmCTeY6a0FCwDk2EUfdmSc2JQtNCYR1DvwvlNg/Jz1ffUoTNQuIa61hqKDOIqKnIBJ8l8m59wQwFHWLaWA2zoojX4ebKw+aKypFyJjagx0SBny8gNQCaorg5IF1nY9WyGmZF7v/t8M6U4l8TG3OO1GqsPKzXUmxCYmocfKOVlSs2kyaV90eHWtw8XEthHio2oDXT4F/DuOvVzEihKZTHCIrNcAJjRO/SOE1mRuLl1jmD4hu1ZjPy0AQ5vxaMxObGqV4zEjfojIkfocSGfHPQqVuX8prJEh8CbVTz21eX2T98wjlR3R7ePgAAAABJRU5ErkJggg==', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', '\u6b64\u8bbe\u5907\u4e0d\u652f\u6301\u004f\u0045\u0053\u005f\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u005f\u0066\u006c\u006f\u0061\u0074\u6269\u5c55\uff01', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20feature\x27s\x20length\x20is\x20ZERO.', '\u53c2\u6570\u0020\u006f\u0070\u0074\u0069\u006f\u006e\u0073\u002e\u0072\u006f\u0074\u0061\u0074\u0065\u0020\u5fc5\u987b\u662f\u6570\u5b57', '\u0070\u006f\u0069\u006e\u0074\u0031\u0020\u6216\u0020\u0070\u006f\u0069\u006e\u0074\u0032\u0020\u6570\u636e\u7c7b\u578b\u6709\u8bef', '\u0070\u006f\u0069\u006e\u0074\u0031\u0020\u6216\u0020\u0070\u006f\u0069\u006e\u0074\u0032\u0020\u6570\u636e\u7c7b\u578b\u6709\u8bef', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20result\x20of\x20getFeaturesBoundingBox\x20is\x20null.', 'The\x20positions\x20in\x20parameter\x20is\x20NOT\x20available!', 'please\x20turn\x20on\x20double\x20sided\x20drawing\x20first', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'czm_selectColor_FeatureTop', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20axisType\x20in\x20parameter\x20is\x20NOT\x20available!', 'SpritelineMaterialProperty', 'The\x20model\x20doesn\x27t\x20exist', 'cesium-viewer-toolbar', 'cesium-viewer-toolbar', 'cesium-baseLayerPicker-dropDown', 'The\x20model\x20doesn\x27t\x20exist', 'http://106.12.253.67:9304/', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'position:absolute;top:0px;left:0px;z-index:200;background:transparent;color:#ffffff', 'The\x20id\x20in\x20parameters\x20is\x20indispensable!', 'The\x20positions\x20in\x20parameters\x20are\x20indispensable!', 'The\x20axisType\x20in\x20parameter\x20is\x20NOT\x20available!', 'MeasuringAuxiliaryComponents', 'Parameter\x20Wgs84Array\x20of\x20method\x20inputWgs84ToCartesian3\x20must\x20be\x20Array,\x20and\x20it\x27s\x20length\x20must\x20be\x203.', 'position:\x20absolute;top:\x200;', '\u9519\u8bef\u4fe1\u606f\u0047\u0065\u0074\u0046\u0065\u0061\u0074\u0075\u0072\u0065\u004d\u0061\u0078\u004d\u0069\u006e\u0050\u006f\u0069\u006e\u0074\u003a', 'attribute\x20vec3\x20position3DHigh;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec3\x20position3DLow;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20st;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20attribute\x20float\x20batchId;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20varying\x20vec2\x20v_st;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20p\x20=\x20czm_computePosition();\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v_st=st;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\x20=\x20czm_modelViewProjectionRelativeToEye\x20*\x20p;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20p;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20', 'varying\x20vec2\x20v_st;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20void\x20main()\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_materialInput\x20materialInput;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material=czm_getMaterial(materialInput,v_st);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color=vec4(material.diffuse\x20+\x20material.emission,material.alpha);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if(color.x==1.0&&color.y==1.0&&color.z==1.0&&color.w==1.0)\x20color=vec4(vec3(0.0,0.0,0.0),0.0);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=color;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20', 'czm_material\x20czm_getMaterial(czm_materialInput\x20materialInput,vec2\x20v_st)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20st\x20=\x20fract(repeat\x20*\x20v_st);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(image,\x20st);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.diffuse=\x20color.rgb;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.alpha=color.a;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20material;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20', 'czm_material\x20czm_getMaterial(czm_materialInput\x20materialInput,vec2\x20v_st)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(image,\x20repeat);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czm_material\x20material\x20=\x20czm_getDefaultMaterial(materialInput);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.diffuse=\x20color.rgb;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20material.alpha=color.a;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20material;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20', 'application/x-www-form-urlencoded', 'application/x-www-form-urlencoded', 'YRNZdcer504up6UZAaGXXw==', 'api/i972o058hy1k/cbe8c300dfb0280d', 'application/x-www-form-urlencoded', '62ACF2E0472EAFC53FEA74C6D6E83513', '62ACF2E0472EAFC53FEA74C6D6E83513', '\u0074\u006f\u006b\u0065\u006e\u4e2d\u7684\u65f6\u95f4\u6233\u4e0e\u6a21\u578b\u4e2d\u7684\u65f6\u95f4\u6233\u4e0d\u4e00\u81f4', '\u79bb\u7ebf\u5f15\u64ce\u4e2d\u7684\u786c\u76d8\u0049\u0044\u53ca\u0043\u0050\u0055\u5e8f\u5217\u53f7\u6216\u8005\u004d\u0041\u0043\u4e0e\u6a21\u578b\u4e2d\u7684\u4e0d\u4e00\u81f4', '\u5728\u7ebf\u6388\u6743\u6a21\u578b\u4e2d\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\uff0c\u5f15\u64ce\u0074\u006f\u006b\u0065\u006e\u4e2d\u7684\u57df\u540d\u4e0e\u6d4f\u89c8\u5668\u8bbf\u95ee\u57df\u540d\u4e0d\u5339\u914d', '\u5728\u7ebf\u6388\u6743\u6a21\u578b\u4e2d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u002c\u5f15\u64ce\u0074\u006f\u006b\u0065\u006e\u4e2d\u7684\u57df\u540d\u6216\u8005\u6a21\u578b\u4fe1\u606f\u4e2d\u7684\u57df\u540d\u4e0e\u6d4f\u89c8\u5668\u8bbf\u95ee\u57df\u540d\u4e0d\u5339\u914d', '\u8001\u7248\u672c\u6388\u6743\u4e2d\u79bb\u7ebf\u6388\u6743\u6a21\u5f0f\u786c\u76d8\u0069\u0064\u9a8c\u8bc1\u4e0d\u5339\u914d', '\u8001\u7248\u672c\u6388\u6743\u4e2d\u79bb\u7ebf\u6388\u6743\u6a21\u5f0f\u0043\u0050\u0055\u5e8f\u5217\u53f7\u6216\u8005\u004d\u0041\u0043\u5730\u5740\u4e0d\u5339\u914d', '\u8001\u7248\u672c\u6388\u6743\u4e2d\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e2d\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u57df\u540d\u9a8c\u8bc1\u4e0d\u901a\u8fc7', '\u8001\u7248\u672c\u6388\u6743\u4e2d\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6388\u6743\u0041\u0050\u0049\u72b6\u6001\u7801\u9519\u8bef', '\u8001\u7248\u672c\u6388\u6743\u4e2d\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6388\u6743\u0041\u0050\u0049\u6807\u5fd7\u7801\u9519\u8bef', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6388\u6743\u0041\u0050\u0049\u8fd4\u56de\u5185\u5bb9\u6709\u6548\u671f\u8d85\u65f6', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6388\u6743\u0041\u0050\u0049\u8fd4\u56de\u5185\u5bb9\u4e3a\u7a7a', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u57df\u540d\u9a8c\u8bc1\u4e0d\u5339\u914d', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u6388\u6743\u0041\u0050\u0049\u72b6\u6001\u7801\u9519\u8bef', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u6388\u6743\u0041\u0050\u0049\u6807\u5fd7\u7801\u9519\u8bef', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u6388\u6743\u0041\u0050\u0049\u8fd4\u56de\u5185\u5bb9\u6709\u6548\u671f\u8d85\u65f6', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u6388\u6743\u0041\u0050\u0049\u8fd4\u56de\u5185\u5bb9\u4e3a\u7a7a', '\u8001\u7248\u672c\u6388\u6743\u5728\u7ebf\u6388\u6743\u6a21\u5f0f\u6a21\u578b\u4e0d\u5b58\u5728\u6388\u6743\u4fe1\u606f\u4e14\u6388\u6743\u0041\u0050\u0049\u8bf7\u6c42\u9519\u8bef', 'rgba(100,\x20100,\x20100,\x200.4)', 'overflow:\x20hidden;display:flex;', 'width:50vw\x20!important;height:100vh\x20!important;', 'width:50vw\x20!important;height:100vh\x20!important;', 'width:100vw\x20!important;height:50vh\x20!important;', 'width:100vw\x20!important;height:50vh\x20!important;', 'width:50vw;height:100vh;', 'width:50vw;height:100vh;', 'overflow:\x20hidden;display:flex;', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAcW0lEQVRoQ71655Mcd5Jde1fed1V3V7vq6qrurvbeu/HeYPwMMAM3GHgQlgRoRILkLZfkLfd2dafdD4pQhPRBitA3fbi/TlkzIEACIEBSe4p40VHRUzWT75f5XmYWYLE52ddgd1NsjHz86YNsRdZz/ohGSSoqKqiooqEkHtEI1WBkjWCjhKRSYYWKq7RhCLVyuF6WK6WwpomlYrhWjfU6qUohVCqEYgnZ4qFsCKMVqqGE3hpO2H20h+CSRlaMKql83ksJCM1HlVipVucDEZubeS2kd+AtBLwkJSjcD//522wlnC6Ita7Wm8j5E6iUNAmEk0Q0RabzrJZjtSyTTDFJnU2nhExayGfFVkOplOR8LpDPB3NZES54WbJ4SIv7DDhKc345JkaUYqO5vjLxv/7nf/v3f/8/f/zun3LVBsaJduDporwkb/PSv5LGmwQYB+6VNO7Rx/emFluVVrzUVC4dr4saGtCxoI6FUng0QyppSs3QqkErOq1oTEJl4wqdUJlsNtCoRoBDLivlDFGSeYuXhuM3o4fP0wurh7B6MIsHrTUKjx9c/faPn3/+2YN/+urpcHJIibLVS23unVONvNVH2Tzv5/A6AauT8nEeLkqev7abrsiFWiSepisdxa8ioob4NSRsEEqellOElqfVLB2K09EELceJcIzUdFZNskmNBQKVYjCflZwYBA0ETFi9jAUAFx7S6iVsXtxLELVSaGayPD9TWVlsLS10cEGwYexwsvaXv34T15M2BBLyHg6vE3AimN3nCSb5dC0SSTERjQkomKRioQwOJQRJABrBlJmKSIZI5bi0wRuGX0/zCY2JximIPpXhMhkhlxMzGdGGEhYvBaFbvazVx5mfcO0hbT4TrJ8p5aRSPlDKSyChdiNeLstqSqhUQh99eP3kZFszVBvk4Z219DoBL+Nzkz6jEYfjF+MoL/v4iM+vIPECpVUZpUgJKgKQNDScNtWcyfJJnVN1DpIghfGERusGp2qmMIp5KZUW7QRjRSB6ANBg4MLmo82wfIQLJ2MJoZCX4M5mTW5Uw/miP5lm0gbX7eo7m6PxZA7nzZutHtpMhYs18fOA38gA6nPhvurASBVkMYr4Y4gQR8I6HTZwpUTFgYDik5IIHH9AR8MpMpTA40laVghZJYQQGtMo1WBjKRoIGDmhUYuyyaAvKDlYyU74bYgASbD5OOBgRyg7SjlxqlZLGBm+kPeXy4FiSVIzTEIH/vygn56drTVayUCEYUTeQ4CKoPYoq4v+acBvaMCFODEvEEim/YEIKimooKD5esx00lMdh9J4KIOFMwRUkZTEJAUTY2gwjodUXE6YBhVJk/EUrQCHLKtlWD1jqiKmi3gs4mCCwMEkgDBOnOGDooOg5SiXUOlInDSy/v7QGI6z3X5GzwjJFFsuR3qDTCxJZwqBkEKhDGpHwABIq5t6GfCbBHAvgyxuTVYbippiwDeNanTp3LBYjwc0LJIn9SabanKQioCpBFyIo/444o8ikIGwTkRSJrFgEoNGYZJJkopOqTqdybApg5c0yEbQ5Rddgt+Bsx6CcuOEnoaSo2MJUo7i5Wp8Zq65tjbo9dJyjPAHMEgvnEUwTmiGP5YiaQnsi7C4TVidZipeJ+DwkUTIN78x3jtcgWqOaKSS9U8vtbf35kI6ES1SxZ7UGIeKPVGtMpEsCd0tkDQ1HUiiUgIL6ThIHKwWUgflF0xg8BtiGpnQKE2nVRXIsKCZcCZoxymUIsF8oZOAcpI6A0mQo4SW8mspIZcPaGkuHMfh2bBKSDE0DC1IhzOCqoPocYsLs7gICPh1AjYPxSXQUIp//OxOvixDTYeS5NRS68btg1RJSrf4Sj9YH8qVQbDYD6SbfLohJCtsosKEs4QMdZUhJUgClFOSEKJIUIVUwDW0PzwOZ6GSEK6WZkIq7aAZN0HGNXBhMhjBIgkQNBWOE1GFqjc1Ix8CXYViOPz0jEBEJ8U4hrIo6ccsbogeP+2M1JslRNFhjAoitUEmUwxqBienyPF8fXK+WunEyoPQcCIxNanPzKaG04nGMFIaBPNDSWuyIQMXdZTXMCLmhWILqGeFhAfBfBMYpAIQUwkFVJ6ioxoZzfgRngnGaNCJAnWSNJlEFAIUrKbYcIKA8ovCzWkWilOMIWCJlB91oggTgk+fh0BOk4C/kQEn7SK9TBiNGWwwQcTBf3Sy3FHrXbXcjU3MqAvzmc3V0t5GdXO9ODmjdSajtUnZ6PmTLTZcIKQ0JhfpSJqAUw8mcaABQxTkIZBAhYgvlMDiOhFPk2GNyBRYJkgJEhrTIQ9UFMJVyXCChAvIHi+jUhyDoOFxkBkdQHEetXt9TgSBpgSAovWRpxzeIMCgko8L45EMmysGCxUppOERsJQcV2hKswv68mJ6c7Wwfa68vGxMz+mTs8naWC4OA8BBb3IxEEaRjBmkGTqIO44Ip4cHn1IclTUskSZiadA3VDMeVaGu8HiaAj5gYmIE2g4CJOF+cAV4FgrBgSFuEsFF8EbU4kIcpwTg5lia9EcxL3B4nYCb5BQ0mqKiOr0xnxt0Y3GYF+CPpalqJ7SynD6/WVqY1+cX0gtL6enF1MRssj4OV4ehXF9MtTmjF9AbXLJIyzoO4pYSpkfxYR+0c8gJeJqso6cAOwatY5CrMGhGwyBLcNhyyvQAqED4i3wCcVNeVPTBgVo9XqvbZ3F67R5vEBqOTEJCfBSk5Y0MODFM0rBwip4ZJS+cq1zfblSbEthlqigUatKV3frNC52DjTIkYdHkkJlbSPWn49VRqDQMAPJ9qTCQQNMQBLSOF3O4abUoF0FEFQmkUCmNBtJoMINBVwlncGiRkm7O6v4EEkhjAFFHAhmUkBFWRfxphIr6rG63xeWxejwWl8/q8gITmwfqBzXt6OcEaCGCGxW+Ug1cWK8cbVQOV4xclYUqypXFWkM+f654aauytVrYPWdyWF005uf0iZlEaxxpTkTyPbEAHHpSokRD6IKCwPj0AilMAMMFt4XukcEDBgYAJrE8GcrhJh8dAwJSBgUygQzmN1ABmBgIgFcRu89tcbqsLjcm+WweL9SSaUQmfk7AiaKFmqAY9P5i4fxKaWakNBoho8QpWSZflhrNcLsbWZjRt1eLh9uNizvNizuN3fXy8kJmOBlrj8PNoVzoSNWhnG0JcpYAX4IQzcEphfIq5qYQJ+r1Q1pSKPgVAMjAeUMqzuZcuBkgplF/CokUyEABlYt4MIcBK15BwVcQzssqiBNHLF7wULAgDBT7ioDdxfhhIkjj3XZ8aTIzbMdH/USjIRsFf64oVWvy9KQ+PaVd2m2dXOjduTS8e3l086h/uFnfXC7Mz+i9iWhrHG4M5epAzndFkHIwh0eKhF9DUT9i80LSPRanz+71MlEEjhngT5rcoGBYxcsnfJKBBk4Bz0bKpN9ApJzJIZTHw3kymifDOQLloXLOjh+H6CHsVwR8FBU3KD3Lb8wXTna667P563uduQkNhtu5idTKfK7bizVakY3V8vF++9JO82S/c3LQBQJbS/mNpcLcrNaGQhqFoc0ZLUEpM5ESCQToKOqmPXQcIWUzeg/pIwI+MQVHDhww4MCb8PGaDw47mMe0Bpuo0YEs1A8qZlEpi9JxjIiSwTSOsojF4YPSt/4Y/c8IkCKRLQq9duzcfOH+0fjmbvfmQXd3rTI11vdWq1urpWpDrlblk8Ph1fP98xvV6/vd44PuBSCwXFpbzM/Mqp3JSG0gl/rBbEc0On6lykQrZLCABwtmZOESEczibBQFl0NFhAwhwMSfNGuG1xA5h8ertNbi4Fl4KpBFAzkUHuSTmJ0kuAQGTmqxg3wRi9OsnJdhvyDg9DIBFS+UpLmhfmG99sHh6OGliRu7nQeXxpe3GhfW6ltrhXo30u+rN44GD69NX9nv3j0aLc0YWytF4LY0n5kGKU+EGyO5Pgrn+qFsN5BvS6k2n2yyapOJVAhIiJfyOBG3bFBcDINyAkm4cQ+oGTgAQygbuUIEgG0RM6Mv4mQUsSJgNZiLhgnUPH6r89XZn+EFAS9OF8v+Xis8P0rd3Os9f7j15Hjq1vn+8U774nbjwlZzPFarrdD2RvuD4+kPrkw+PJ56eHVqf622vVI+Od/fXinMw3AxFa+N5PIwlB+EMu2A0RHTbUFrcskGC0NUvi06vO6QTibKMDiRNpeXCZJqjU03hWiBFhI4HLMEZAwkWMYhen8KZOqxQNxQ8R5Tta+FfoYXBHCGHvej7Za8OJV5dmvp09sLn95evHs4uHM0fP54/8Hx3MKccXzQ/+jW4oc35h9dm75+oX/7cHCy1z3Z6x1ttc4t55bmUqNJpToMF/pBaGfpjpTuSkZfhONP1Jhs25+p+W0ut1Jish1/ridpRVHWOGggyYJAyzgto6G8mYFQCYckBPLQjmDkBOP3mhw8qNVFvgz6p3hBgOKYxUl1chSfn0h/8WDz8/vrz25CoLNffXjwv//HXw4udOamUo9vLn75aP0PT3ceXZ+5c3FwZbd9Zbd7uNXc36qfWysuLmQGEwrUT6EXTLUlreXXO/40TN0tFmB0RSXHWRxutciVhkEYPfL9QH0U0SsiF8HlIgEKkatEoIz584hUgIGKCOdIxA/H77OiKBB46/EDXhBAKHp3NbMxq6/N5T7/4Nzja3NPrs19dHPxPz3Y/tv3D68edEZDdXe5eudwfOfiRLsTXVvIXdntAKAh7G5Wt85VFhbSw2kFSijbhdIXlAantjjgoHcErcWnO/5MXbK5PWqFM7r+4kDK9GD0QbAAmA8ObuPPIsESHjKLBwsaOAjdgXmsiNfi9ZkcnG8/fsALAm6U3l4yDtdzK/P5ZxD33dXP760/hgw82f2Xr26CDK7s95/eWrpxoT8aJlrtSLcXBx1fPegdbNZXlnIzs/pgItYcRfLdQK4raR0+3RX0Nq93eNXUAK+1hMpI1mt+cKd8X4T5rzIKp5p+pU6HoWygYRXxWJWKVMhElQmrtN3rsTgAqNUBpf+zJfg1vCDg8rKHq4UbR+2t5fKzGwtf3Fn55MbCk+OZpyfzx3vdG+eHf//86OnJwtF2o9OLttux8Sh582gA8t3ZqMJkurFaGE+p7XG0PgznO5IZepvT26zWYuM1Jlal4w0m0eG0NpdoMMCtNAq0pqOpLqc0qMQpB7BOc1ltcYWWiLM+i91jdZgL13vxgoDNxe4u5G5f7u+vlp5en/v02uzHJ3OPLo7uHAzAVT85mf/+1vL9/eHOSmk0SMxOpgGXD7o3joaHe83z23XA7kZ5ddkYTsYLnUCqyUMomQ4PA7ZaBw50rMlEm0yyxaThyzaX7UJCgmqNVupUrErKJSJZYwywrAobM2jQusWOvAzx3fiRgJMZNBLPbk7f3m9/dW/lczCiG4vffLD2h5sLX16f/9cH6/98feHxxYlGI9xuRvfP1c5vNZ7cmr93MnX1fPvCdu1wp7G9UYLBrjeOgskUumK269eBQ4vPNHmtwaU6fKoL4GB308FVG7xSpmNlKl6l5DIRLZFqhdYrbChNBjQCjt/mfPXe4d14SYCVJG5jLv/tk82/frr/3YdbX9ya//Rk9tmlyY8vT/3bh1v/5fHGD093Tg56MCBd3mmtLeUf3Zh5dGP60n5zdSUHw+nqijE/qzcGMM+JhZ6Y7Zi7slphkhUm1/bDoJrt+TNtHhqCmZk2G69QChAoU6ECHiuScK0UaUHFMAE6LnjOqxDfjVcEHG5KFIUre+0vP1j562dH3zzcfHp16t7+4NZO7++fnP/i+uJ3z3a/erC+vVxamspsrBaPdlo3DvsH21Vo0ttrhY0lY2s5Wx+F4Phro1Cu60/XebVovrmA6VqrsmqVBRoQfboDsmZiJTJeJMNFPFo06weYwLgWzVFOMB8HtNtXIb4brwhAFTncTDmn3L88/dfnV7//6ODzWws3djp7C6Uf7m18fXPt7oXR8wcr945GK7NZmPM+uDS+sFU72q7vb1aAw4X14sFasTqAQUiAYU6vc1DQWpmNGGSqxmcaglpmIHqjx6t1M9xIASqHgElJqZovLYFhArRepCi/z+r4XRk46xQZLfbZ3XPffrT35e2Vbx9tfXwyszdf3F8sg5rvXBh+fW/lydXpxxfHT45GIPG7R8Nr+92d9dLecmF/pbA8nyp2pFI/kKwyEAosK/E8lWqAXkOFvgjfQIhgNWA7IF+gAWNzokxnm7xeZTMNHkQcyZGwB//uDJgIiIEn15b+7YtL//WbO3/+aP9PH+09uTi+uF6bGWrHO93PTuY/O5l7fnvp02sztw46l7frV3abB+vly9u1jeUsKBgIGE0BhAsc4Mi1KhiOWBoEYF1WKhS4qgbe2mDh1GERAx1nGlyh7TdqPOgEyFAhMH7vayG9BS7u5fXrBHCcv70/vHW8/MMnh9893PwDNARw1ZPZh4ejK1utbz5Yf3w8B0p4fnPhznmYt1uXdurn16uXt2rrS0ZjECp2RThOOMhwFocMwAgEpgRepNYoOHIoIbBXOP54idJhjAORlOhMnc93RK3G0iHY0D1W+3vtn3sXAaebvbbZzRpKNBL8/tHmx8fTjy+NP7k2+8+PNv7lw90/f7j9x4cb3z/d+eP9tadXJp5eGh7vtC5v1Q/Wi1PTic5EpDsRqQ2D6RYH5gMclBIFfqo1GbVOJxs0JCFZp6H6jYYAPBNFOg2TRUNQSjQGY4/dY7H+Wvt/iVcEnG6Tlt3Fbs2UjaTs9aFf3F55dm3m+k4Ljv/57dV//fTif//+zt+fX/zTJ/t/+Wj7u4fnvrgxd/9weGmjBtU/GMVmFrXBTBwWYrVMR7OkbOAqtKcODwUTBrHWqDO7hE+4IVlmUhXWqAtKnmLD+Gn0PpvjXVPDW/F6BgAESV9caZIE/vjSzDNz6C9eWCuDHX11c/lvz6+BvX73eOvPz/Z+eLr99YO1m4f9o6067JPj6fhwKlYbBKEklCIVzZGw1EMq4gWznOQsButlrERodSZRodN1DtwWCEDz8sehc7mtNszmePu8+W68SYBxepDNmbIeDxyu976+t3a0XV2ZTc9PpB4fTX52bf5PHx99eDzz4Ork09szdy4Prh2099bL09Pq5Exiak4BRcLphlK4+dIqBwZPB9OobGDhHAYcwjkc9t1sW8j3QBtCokgpBcpLeS1WEO7viR7wlgzkjOT3nxxNNlI0Izw8nFhbNCYmlIXJ9MlW6+OThU9vLT29sfDZncV7lwf3rg7Ob9dgnxxPxkdTSnMUKsHcn6fkDB7JEiBTHSY5820CHi0Q0M6g1tUCo1UYrcaYbfjUZz2412L7Dcb/Gt5CwOFmD86Njs81PT4mpUa3lvKtoTzuJy5uNO5fHD+7Pg9zHtAwN/odWAYq48lEfyLWmQgXuv7aMDCYUZJlVtbITJXPt/hYhYxmCDLgtXudNieUihthfFTIh/IekAEkgQ6i/2ACp8Dmupl8MuLyMOdmSt3J6HAYP1irAoEHVyY+vr7w5aPto932/Hxm61xxbk5rm7t8sNjxFzuiqJBWr9victp8LjaEshEfIXjoAGK1Q4ciIVYoGIvNC9sZEfRlG3yqwju8v9l8XuLtBOAvKWFxuqlBaSrR4OyiXukGpkfarYP+JzeXvri/9dXjnesXJy7ttY9269vrpcnpRG8yGstydo/PYvOBG1qscK4I+LppL+Zs/ON06aAtNty8webFRawyCOaaflYif4f/nOGXMsAaeuzmTsftZShG2F+rlgbS6QvT2qNrM3/7w+3P7m/dvTJ1cjiEKrq011yc15v9sNMLnQg3zcRBW+20FT4hrLd5i8VqcrB7veVeIN8StDwPX3pqFW9Gd5PiT+98L36RgM1JDhuZaMj8dQzHTs2qmRq/OJ05Oeg+vbP6569vPX+y9+j64u5G7WCrcrRfXV4y3AhhdfyqOR7oWawYGD8VIHJNodiQHC7GhQlOJojwwddufjfeQYB1uemVyYLHx8OJalog3eYaTflws3Hr/AD24/vHM9cOB+Oxur9ZPdit7G41Xd5fXQkOxmIlzEJy+bgUWahIdp/gWFxly2WnknaFtDf/QfuX8C4CAJ4POD3mhd1FJYu8UREWZ4zD5dLtw+EHl8f3Lo8PtxujKXVqTjMqMYvtV22xZ7DYSCgkKyr40hGfyMN449q+Wd9bdIRCdjrkQEX76WTwXryHwE+BURSMmc12eH4qdbzZvH1hcPfS+HCn1RnF+tNxLsS9p5Wa2vjZDVYHY3VB9TNWr2glZEtjTrj7wB1JuHsTWL7h8PAOt6mNd+M3EAAf1CtCoSW2BuHVBePmhd7F/c72Rg2GzfxARJl3FY9Z9BbzyH/6pcPDEizPBDg+xmMsa8d5WzJrybYsetmGiC5MQvmI08tzmYIL8f/0wZ/itxBwEIKCa3UWzL47ET2/VYPtfmJay/aE7mzER779+M+86LTiCYsFtdpfqJyWYUQNstVwHPa1llAeS/luoDRMkMGQDQ7eY5qH08NjhN8uqja3YD7l+NlvPsNvIGB3MYE0AVtVeRQojSRYf5cWM4ORojWY7IjjldcJnMYNVgOdC7HaPA6vB3zzbF20e2mcYz0c7UspSKlic7Nemicj5iu96ijY6sZjqoSQDMjA4ebsbhanzRQ5vT/+CRdcm/HYXdxvIABgoqRSo2H3y/aF3ECARbE3EeuNFfNFQxUO6WdVBIdtgRnT6w3qJGwziRYhVzAv9Ys6sXtYJ82zCpeq+uOGEAiDjtloPNyYCNeHIRj+4lVKUk0tCTGGDsAGbz712wjYXAwVpGI1ClZEc2tpMOkaN55O9ibisM4L0Z8TcAAB3Bfnkk06XiNCZYSN4w7vqxveCjjal9duhKV5od6N1gdhQeZcPnNdefnTM/xGAqfA/VQMVsEWn+qxMFdCQsazKtDQW5wbPXsLy5jR2zGLl+ZKQqJJyRU0VEJ45S1dFmJ6GRbQQxnWQ7zIEuXnfQQHWofPs2/exO8hALC7aFqmYEeB2jDafHscmZhSIVCjLwgJwkcjrIzFCnysISY6VLSFh2topMF4mVMt/jKgysGUMPpXdYAz/E4CZwDnCaZp8KVUjW125ESBiTdIBSJuEFqXLo7ExkRI69ByHZPLqAzt1vtOX3ewFqdodb2H5Gv4fyJwBi9Jh3KMUqHrnZBSpZNNLlYj9TajNdhIhYjWcLULGiDJKGV70Vx/1DE0MugPNpAKZ3W8v2e9Ff8AAmdwowwh0j6KtLt9PtonFwjzbXONDZdxpUmGSjjKoxhPYhxJBUkigCMsbvVyFo9knrrjt536T/DG/xf6h8Bqxx0eX6RAZusCLJDJKpOoU2qdTlQoWMESJSqYRSNZXEjQFiRgsfNWeOonr3reClhRnG7G5eGcHg76AHiu3Un7UOI/hMApwKdRKUlEchQs8mqDgWXfgKZb4eIVQi5ikBlWES1eyWqHm98VvcvLrMxVEYoadpNijIMG50ZoQsQIEVbqf1wJvR0O0mpHnV4PKSF+FYsV6XzHn2zQapuK10lMEiy2d01Q0Mh8NNPoxUrNSKUXXV8wjA6farKZDlceCeUJ/3g++h9M4EdAAQATl8+bqYjZNp9okIkGhQic1f6LjZkQubBBF5piqsEl83yqzrX64cLAD7ZWGgrDycjcnDqciPx/IvACDtoOW1IEEXQkUiGd6C+vby5Sa7Mw4RU6olpjpDSulbhUhzX6rN6ikk3SqLCpChvKof8XIZPccgsU3agAAAAASUVORK5CYII=', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAHvtJREFUaENdemeQpMd53hwIU06yZJpylf+IosqSXSYBXoBMigAOOGSANKUfqrKr6BJBmJTkKkklSyRFgAQOhwvE5cNezriMvbh593Y2797m3clhJ+eZL+c8M5+fng86s7z11nc9/fV0P/3286ae81lMKB0cNcUyTxd1hdc18dfF0CXTkA1d1jVJU0UIGoaumoZmW0bTsVpN2zJ1CHp0TdFUGaIqEsRroBMj8RVJ5BVZRPvxW3zLsU1M0m45rtvCR4yRJcGbTeBZCJbWNE6S6rLcMAxO11mOK/scLlyM+dlq2G0LtsErCoMXqkpDdJ23LMm2VMtUgF5VBCDAjE3baTnNltNu2i3HsrEeBOgBCG8fbwYNrA24wAcoAIQ28GGMt20PrjcYM2ADmF8UOI6lsT2Mwbca9TLP10qlZCoVhKTTIYjPqK87Yjgd89tmWZXLslgpV+KQSiVJ0zlsERtVZE4UaOgY62EVt+1C2k0Xa1kGgDexqidA4EEHJjyBA08gABRoF6880N6B4CMGABwEX0Q/3qITCuY5Bt9i6EYmnSgWMpVyjqYqwAAkEF92fRigK9mpjdhoubgaj82WK9FcPpDOrBeKEeCGyi1bth2NaLTVdqwm6ACsaBAVt6GiZrOD2HEsgHgM2oOCHg80tIg2BJ149fgjGoYiN02tbRsQtwWtO7LE5XOpjWS0kE9LIuvYutuGRgzb0qAtX3zdr9IBiw9m4kO57HS1HihVw+HoPDZJ1VOVaqzWSLVcQzMlgG43W23LbRotaJAcKz64hI5Oy9Z1VdUVBXxVZewBnYahaWC5pqAHu8SW2u0mhhngJsfRdMNTrakqtia3TNXWJCDTRFri6/HIKkUVwQenqWIJfBGDIW6LnLMvl16OrQ05YtQRg6nYYGrDTzGxGpUs5oOQUjVI8aliPa07qg2khmmptiGbQKIbsCTVdoBUMiy9Q5mWosmmbQA0EKMfWIESGwBuQeCwAY5j6lRjcXmJoiichioKUG0b+rPVpiaITLVW2qhX0qV8HMwUpJrrmujFyRA64mShNdvxNZsyV08UExMOv25wS+X08EZshGWj5WqgVAtUuVi2GizTKVXj3KbTNpsArSkm3ISu64QhjsswnG3bMlyFoliWRdSrKDQNU1Z7enrOnj3daNRkWeR5Ftuempras2ffL37x/kBfP+wMahZZKh5Zv3r5zNkTR6KhxUoxpSsssLquremiKDGgFoa1bQtqxsmAhz6wW+JKUi2aXutns2MWu1xM+zu4gxQXLTORPBXK16KCVOno43Med/QKWrgtsw1vYZqgB5ZxARcElySJ5/n5+fmPP/54cXH+k0+O7tu35/z5s7/85XtXrlwulSpg2/Wr197/5XuHDx149+c/OfHJobXVhZNdB0eHe0xNBP9AXzgruBGchsSxMs8pAq/LxNtCfOC+IbAWW3FNJr08UomPEbtMj6WTD2k6WKEiFTaRLq/XmVTbkYG7aVrEJdgGBAqGBcITaIoO3BBNM0RRBvpAIHD8+HFBEDx6QNMS9ApSdvzjYwEm0MZrwyfu27t73D8Gy4FKTFVrVKqGotq6QWjZcZSKzEPLvqZpmLJsCZzB1lwdTFlgsrMGu57feJhJjktyoc5kGCVXaSQUhVIlsmm4JE5gWRycLMiyDH4Tu7QdURSxDSg7Ho/v3bsXr4AeaMAKWJKHGFx32w6RDlDPOjvDyB9stOvY8fBaCDyUGEGoMS5eEs7rMi+ILKOKnKXJPkyNoZIg4kBshVEbmVJ4pp6cdtWN2EqfzOY0jVF0hhOrDaos8DRiBXHGTUs2gJquUzXswdY1TRKJ17PNaqW0+6MP67WKB+uxdMCRBtTktlueS0ZnC57bMWHEBHXbBbj3//FdqlCFtYhl2jXaLhwV/KcoW6LSUg1Xs3xwTvBbmu2qmkUUYEstoZRY7HeVeCk6Wk0HDJnVdF7RBadJ3JYXDuEf7Cbiig7huQbP1BxTadmaoQqqwp87e2J4qM/zhp5AzcD3OW7PIBC3LQOI0YDHfAx6eW7x0vHz4UeB5ZH5hb5ZOlZRypzDG67asmmtEMzO9Ez5KlxzLlCcWkol0nXw1W3plljMhvwOv8oXp5OrE22NRydCupeEdGIIfIWoaoLjSI7FUbUsogFSF9cFAUyqll+anzxycB/O1XOxHm6I90c6Ori9V22MIdvr7LDlHt175MiHnwx/Ojp6ZXL57vrp987eOnzz3sk7Pace3Dx0627Xg+nrs76ptcJ8XBhfLSeLsqJatg7nIpUzy+XkiMWu5sMzjkjDicKoVZWVRAZ5DdbDE6p12wrsR5exW65eTtZKiUYlXS4kEtG1n/3DX7v/FHoIsg6+zh8ifycRAOx2GzpuuUQwkiQITffo7k8Wh1aTk9nsZHXtbqI0w0QHE4t3lqeuTEcG4smRbKg36VtO0BPBxsPlSrio5+syJsCEEl/NxPwmHUgsjLQlxoUNgcQCjdM3RV6s1YVqRWfppgLOsbpQ5evZVGQlGlwopGO1YnpqfKTr6IEOYjCJREfQAIJATCaX4M7xqoOb+F4HlkoG4KXlXjj66eA1/1JPMDqUifRlUw8rscFMqD8RH0pDokOp+EjGtxApP4rT4yF6NafnmOZ8MLNRaNTr1ejaqEmFMyt+Lh/XeUYRWE3mLJl1LQUiVHLp4HJseS66Mof9VbKJai6ZT4bZStFUhOmxkZkJPyzkh2//z61bNz/zzNZ33nkb0JGU/Py9dzdv3rxt27b9+/fD1aQyG29+543Nm5/esuUbZ06dhaaD86Hzhy9NfDY5dGlk4srU0p21pfuBhbtrj24vTd98NNM9339+0IeQ4F9J+wP1maQ4tl4bnEtsFBCHtMiyv8nF9VogveJva6wqUK6rNgqRfGQ2F5rCU6GylkhloqHw4kIllTZ5wTWtlqbgTI4fOcjTFFzEyRNdGxuJrq5jTz/99bGx0f7Bvmf+67bJyfGTJ49/7an/ki/mwtHQjVvXY4no3/7tX+/Y8QI2Zsrqhz99d+Ruz8S9/rHuB5cPnrr2yZVbpz57cOn+wPXevqv31qeXfTiTR4H06FJudLU0E6rNrhfSRWQzbHJ9Lh8cNxuhzNqIazQMqRxd8xeSj7RGrCVmuUokG1tMRgK5ZLKaKhAHpNptBckUfL24f/dej8mE+rZ59+5t6HtpaeHg4QNbtm2G05iZmfrGlqdv3+32nJ1uah/t2fXGW68TRrWdk8cOldNJrpIXKgWTY4QS5apNEtdhDIDbavksHafmziwm59eygUhucWmdbjAyR7uanF2daQsZ+Gwqt1jemDKYEPLBcnIuvjaRja/mM7F0KllI54uxvCu7beR2ot2U7TtXui+dudABTTjb+6Dn+Wef++ijD/H5z9/+/uatTwHZ1PQY0J88fQJZgeM2T507+9SWzTdvd4PfMNmrVy4uz8/yVLVRzrOVUlsziZNGvijJxA24Ld/cyHxf92guzmyEKyvTq6vTC5GFlcxasM1IG48WXK5Wjy2xqVWznpCLAcQdKh2U60WuWpYYTuXUarpWjdaoOO2/PXbp2OVzR85d6Dp/bP8xD/GDe/ef2brt1KlTsDNY5N69u5966mtIaOceTf3xH3+zt78Hetu564PnX9g+ODwEG0U2BEzIVcqlHKk5NBlkI+EIiQhDyhmUDkgefbO3F8auTX26/8aNI7eHLg31nL334PSNax+fvrTr5GcHLw6cuT547lrvqcv3j1+4fuDkw6t3J7p7hq51P7j02cR9f//VgdvH7517/8K9I/fHLo8v9S6tjwfWptd2/3IPUqJEIgEG/+Rn/wAyTE5Ocgx768bNbVu2zs5MdX1y9I+e2ZpIxG7durFt25arVz/FmImJsc7ptH76k79HWEWlgzQQgRMEQyGD3AMRFKCRrvjgBRMjqfjwxuq9wNLt1ehgNNy3HB1YiQ8Ewj0rq7dnl25Nrt2ZC/euhgeCc7dm/ZeHJm6MTnWPD14cXOhZXrq/ttYdCN+NJIcS6elcfDYxP7LQdfD48vLq+OTE17c8BYMDE+AcJiYmoPsf/uDtbVs3Q7o/uwl8R48c2rL56W998482f+OpZ7ZtQSIQDgWQ+gEi1agBItJoPJEq4RWpcTpVJgEd7o/BFyZHkCOVNh4WUiMb2bGN3Hgm9TAZ749C0FOYyIf6wtGhJGT5QTA5mY+PZ8P+ZHAwmvXn0sPpzHg2NBwevj4Ckhzed2TXzo8ajQZOH4lBx3yIBXmKxPKe/ryPBNk/vYJqsY1SMY+kFKCR1dBUHSpHtoOvQMd4YpjPf2Vs+tbc5PXZR7dX1vvjq73RQF8o0Lce7A8EetcWuxdnrs3MfzaHdmQwlBhJhAeS2el6cDAZGIiER8ML9+ajQ+GF7kfTNyZ6zty/ffp2NpSFD1leXDlw4EC1XoGpAbRsKEBP9kBKwM8hQp3YAARtwEKyf/7cmbnZ6c7NAbJQEQ0AxTAI2WQnrGKkr//KvVsnr13vutpzsWfw6uCdM3cHLvXfOHr98oHzt4/f6L9wv/fsre6uC91Hz1ze/cm9Y1dnb0wvwc9f8w9fuHfho8P3T1wcvHin52z38NVeOlkj8VjHiZILhkgk9sGHOx/09/GKgNU66GFqn4MGQb0GhGWo/r6eXR9+sDA/B0yeAK5Ha7SxB288NI2Gr5rOaDSv0aJGyxavqw2ZOF1kPqi+cYBK26xzYi4jpuNOOV9fW1/vm5i42rNwdzAxNs1HI7mleVdSSQKpOnjaguZaJO8BfVFrI7cGs3ft/ujg4UNDI4OIJo9JAmnUq+NjoxcvnHvv3X+8d/c2VOvBAkoPIkgM0Gh7AmWDS9C6DyUayUiRrJDaqdkoU02t1dJcVMEtkA3QNUuuZouh6TYbt1Evrk3Gp/qTM8PB0QdUZFEqJFGqu8g6TRtqJEkbIUG7UxbBwaKwJUlppVIaHOr9eP+ek6c+qZSLeHfl00uHDu4H1mgk5NHA24l3+QRBD5wGSdY7tyXo8RSPho+mKjRVBZ+IFyQ1iIPqpIlhpquJBjaAAlih8tGlQTY3bVLLpdCwqxdctSIXoq7DIwBauqTpkti50ULiCtCemrEBcsfUuRCD0yXRzrU3kpFf7dvz7s9/1tf7wEOJpT0o0KvXA42iTbjebgI3FA/QaHTmQa3I+hSR0RUeblyXBYmjUdIgaiicgPBDbiR0rWWqriW4diOx1mdL4XzkoauVWmLDRVEONWiSbkgoERRNNC3VS0E93F4ZBjRQh21pjg1Hi3rRzmZS/tERL1LARWA82nAX2B4E6gQ4vAJ06BivgBI9UDx6sAH0+ADXVCUUfxJPiVwDe0DJiLpXk3hF5qChJlZqguNKLDAsM4FiakKioGPF0TS6VseMhq1YTclpqqalKCq5s4PmABWgoWmPi8SAHB2zEZW3m54ivVcAjQbEU/NjQQ+gYw8M3YCa0QBc7Apf9EkMY6vATCk8A6VaqogUFHmzZarNFilIyTWSY6MO0IVsLjnB1pcy8bFSZh3DYPXIflCMmTaHKsayBF0jN6uYGuYCZcOiVFVFwcvzvKLJXnHlCTTn8eHXvZ63DXzEDB5j0YkG0EMwBqUn0BPQbKOui6KhiKYiItaj1HNsDWiQgqGARRJDlmnbttqIB0c1Piwy68nIlKWRa0IBjJRpSSjzTIlnKjgrcAybwbnDEGVRQtWM+gx5nJfQId9/TAOIx1dgRQPnA3w4KPRjP2Tbne2h37sAwRNCQGPPkti5DZFFXSZ3ychPmi0DcE2UnqjlO5c9xP+ZgsHns+EJpRFOBMYcjYIZOIaJfZL7EEOBtJA0WuSOwtMiVjKgUQPgUR1LODSQBLr06EEU3LEBMkxXAcijL5D8f2yBgrEfb59gi0+WWGBCxYqvgQsdFmoovEmWSMwJRR1mhweW4ChcpRpbHDSYWD465bYlMMpUNZC7bemYA4hhuDA9z2iwTGclwjTMieS640AcqBY4oFqPFRAMhqAHT9DAw4dhEKDyBntUQSKFXfky6TjPNTAjpoCGOruHmyMlt0n+bMsi96QwcVsqMbmVenrW5qPp4Kjb5mEJcHcwZRgrhPg+iRcF+CZWkXms4WEiobBJbkdBRY5qwCN44DxAUDbWfaxaNDyN/rqycTKgIjaDBsRXreRTG9FaFQ6fBBsQCGGiZdltcr+BmhPG1CSXxwYnVWOl+JRBBSwuklwflJk0NO1AubIAo4SgYm86WImoEzbwOSk7iPGvoxlSgxFpFmtAbTgNT0cQj814evTwnAbk/227o2zPVaPfZ4sSUywU48FCfJUphQw26YppV0m7+oYrB93GmJC8mVs8Ghjbs7F0Sq2OulrcYQOuEKJiPem5M8npw5GH+6L+vbGJA/HJg8mZY7nFU6XVi/XQVbM84iqLrhMh0ky6atDlllwx5Oo1Q6iIjaxM502x2lQpR6YssQ69NDXGkmmNrylsBaILdV2mbEdpw6LaUB68XI2p53w2OA2y6g2LTTcy85n1gfx6X3L2emT0fMx/Kjdzrr56UUp9ZlX7bGo8G7gdeXQ7HxpWK8sWteiyM21qtN146DKjrfqIS5Gnlu+RUvcboRvp+fMbc2dXhw5Dko8uJuYuhCdPp5duiIX5pphy7YqrZJV6SCwHUXfaQratFG05bwo5CKgIMYWCymVtk7Jstt1EZoKj03FkPrdJuU7JlZNaZb4c7EnMfroxdZoN3XRyQ83MoBy+U1++mp0+Gx47uTF/UyjOu1bN1cqZ0Hho4W5k/lpo9kJo8vzSYFdw7HRo/Exg7ETgYRdQbsyeqwVu8Ik7RmHArgw2K0NuY6RZGVDSd0orlxNTJ0Kjx5LTp3OLl9OPyGbWx05lV25VY71KebrJrrT4QJNbd/h1Wwi5RqplZF2zpnBFHIKtcL5KYjA6fyU8dS69+CmX6LPK4MP97PyFyMMTmZkrfGTIAVAu5GoZk4qabEalC6ZQY6oJmUsZUgJR2bXyemO9kZpyhZjr5NpC2OWDbX7NqMxy6eHU/JXo1PmN+UuxyVMhf1dugTDHyPe69JjbGMVmyBE1xloNv14cYhN3sQ0ycoJIcPzk+tiJtckzmfB9nQm05QxOw9WqPjZ+wyj3muUBfCE1d3555ERt46FOB12r7FqUq9GuSrlK3eQrrsG3dFEV2KZpkJKzbaAmUsSioVYbpShVjrHVmC7kXZsmX3Q5nctYYt51aLfJtNSya1QhaiNMpcaTi7fWRs8Fx8GZazjbyOS5yPiZ+NTZ4sp1caPHKo00y6NEKiOt2qhRG40unFv2d8XnLuE8A/4zvsr65eTsmfjs+WLontlYcK2s69JthzVVuDMG/gG5KzwDvJ5joiRu8CyHopVnBQSMjq/oxJ22RlVy2Y1gtZDSZOS6hiohNFY0qWFqvKULqkRzdFkR8Upx5KLrNNwW9lZxVZx73m2V3VYRxq2XZ2uRvtT8tcjkhfDY6eDoyZXhruijCzYzZdT8WmnYlR+53LSPy0274gZ00DbqTbVuqsiZ6ojMssKrqkzu+ps20qAGVUYYskyFuB6WazRonhfhxolDJTmQCQ/LVvOFZAzoBboGM3dMSRYaZCqZZtmKqrKmJbFsyTX5lkZDXI1qq42mXHONhtvmXLPuWg3YTEsrGEJKo6MqFcGTyj6KPPpsYeT06vipldGjS0OHfGI9KdZzhkgjW2rbBlwyXCycPxIdwKKwHM/pJmIyNOoJ+T3OxfGzEt4itRCZBnyRo4hctZSOhyE8VfViDcfWGbrKsDWKrsC1Ig00TEQiuWUrbUtxm4rbMnBKTVOAa+OogsCUZL6sy0R3EE2qakLZdYS2XGrJqLDWTW7NNZM+VUCAUMjvewyrw7dTdQvnjgRHRGIJRZO4CKAImSADsm2Fl9vIqUwk7yT9ZDhWFGgolUQWC4Svb8RDqXikUs4jLgo8jQbSUcQOL2Qg91A1QZAZ7IHja6VyluWqmsa127qJwM9WsR+WKmkijdMzFQ4NlaujbSuMKdVVvtAy6j5SXCBbV3XXspEFGJidFWBvGtJ6BcmYKkmC3PnJFataJPnREaGQVnC86LSaJOI3DeDGIQg81aiXGboGdhfy6WIhl89lkO4h+JHMm2EVQUQUFESGl2hJ5WSNb7XNzu9ubLVSQKJG7EfiITJHQyxVIhd0bQdZDU4NFgXVtB3V5/1EBwEbFI6TWR4mB1ODyLKKgKsZKsSytWQi9sH7vxgaGBR5ofN7lqYZstXUdu/ZefnT8xRdhRkgFOObAIrMAZlj/4P7333jTRRBKi9iZpQ4AkPLEoeRyBq8cgb77KhDJfd0jsPV6+QkWJ5v0K7dBFaMgTqQeAE0iiyBriC4dH5rgkBlJpbSuQZL1WlF0YDY+wVWlDlVE1EjbfL5/vA//gFyP2TbUAL67z24vekJ36uvvoy0ATbq5WWgAZIEtAZ7e3Y8/xzydVL2WlbLgMBsDOTuYBoEeYj3RHIhcbwqShiJDBkwVEFBAobDQXZEGMXTQM9SlWwy7PMyQGQtnR9Tmq7dhr6AW+YF5PLIUZAHK4oE0xzsHwDo3/vdr/bc74X9ybKMVPLZ57/9+1/9yisvv2BDCXSdo2oZOJBGhXBOEUaG+/GKZerI7FSRwzZwsChNYUIoQ8HqSqGYjMaQ34I8tm6QX69lpeU0iT+1HXzEIUxN+1GGYnOYNp2MZJNRH0ogVB8MQ2mahnIfFCf5HfiNBJWkVyT3Jcmu7YAYTz7xhQ8/2Pmn3/sTKBs+JB6P//sv/86BfXvffPUlwFp6NPOHv/+VN17Z8Vv/6p/v2b0TAcg/OvStZ7ZkM8kv/dvfvN19A1mrIrBbnvp6943ruij/9P/8/df+03/+6ld+781XX8O6iiRv2rTpyKHDeI6Njb3+5ht79ux55pmt/+JfPrl121M0VS0Vs/lMolEt+Az4JkfHEwTVTAlgSFHYbpLiGXknSmLUnuSHntbEqP+LT3yhlMt/8YlN4fU1nPJf/q93frX7o4N797758svIPOPBYDoWk1k2vLr6BZ/Pte3ee3df3v4sctcffP9//PiHf44KOh4O4FW5lPv0wvlnv/0tWCqiwQvbn7t48Ty5w93k6+rqImWMrj334gtvfuct8DOdSXzxn216ONhXyGwgzUOE8kGXMDJFE4GbeCKFhXWDEqAs+R8HKOkMDaAxaGzkIdaDJf3vH//oJ3/3N7VS/l//xpOZeHzvzl1/8uZ3yD2j5Zw/efIv3n77u6+/8htP+FBxjg0PvPHyi6gVJv0jX/7t3wSFDu/f95d/8Q7IA6Dbn3923749u3btfPHF7XjCTQH0ysoK6ghRll557dW+gX74AKjv9dd2TPiHZPgolCOu7QNpQADsDYYPb4UThO2j7VUT6IeAHuD9o7kZcBqFw8z0JBrHjh7+0ds/ACsO7z/w6ouvgJF/9aMff++tN0cGeou5jSc3+eCzRwZ7Xnrh2/BXYMUffPV3e+52f3Pb5qHBfhQB3/vuf3vn7R+O+8f8D0dnpqaj4Qio7PP5QBJU74qivPbaawMDAzBoROLvvLFjanyIqhWBG8dFXB6MF7UdPJTndzAOAm8AKwREwIUXQzk5MjwIrHAR+PjqKy+hjQUx4NjBo6/teBXG9NL2569cvAAve/zYQZwJYvjs1MM3Xt0O0IYq7Pto5/f/+5/9h9/5ksDxKHZ37fzwpRd3lIslfKxVqsl4AnCf8G0CuSFYH2+nJ6cIBoV94bltI4P3QQw4bBikD9FKFVFU697/TSA+qFNXQtPAB68CNUMxNFV/ODIEoDgZbOn6tSvfePrrQI+PH+/+1cvbX4JvunXt6pM+31uvvfx3f/NXAI3F/CO9r+x4DpFS4qnQ+hI6jx3azzEsgOYy2R0vvPjb/+a3tj/3/Je/9O8SsThCJeYHDxmKRnrz4vYXpiYmMb+hcm+9vr3n3k2eqcidHweJpr1KFuKBBkpQAoAAGt+BjsEWUAibQSfaoA32gKNAD9wi26BkTkKwxOhaqZhOREEMoJT4eq2c4ZkakkRFZKBsrEd+j1RUKBI5ADQKTUPH3gVa5/9GaBC8JRcmmg7dQ19QcLW0UconkTDiGCuFrA/lMbgBTZNKtHN5B9AABDTAh+/ggNCAyuu1Cp5gCzYA9FgBB8KxNDy6gzPVdGybqdckjoZqQT7ghu8uF9K1cg5WD+hMvQJPAiid/BZuWQdQeE8cJwgN3HiFc0AnjgKCHoBBYlPKx6laHvkt26iCIT5y5QVpt6BjMATG2OE+gQs1Q6n4GoiLbXh2ibd4BR17e0MbcRShQWQ5WAUmgTLcJnw0B9AtWwPoainL0VVyXcjR5G7EMuCOoF1gJRcrn99Hm4CINnYC94onNkZijYaUvhKPLOOJvByTE3pgGWgXSgK5PXpgAqgTMwE6wAGoBxd78IjukYSwrXPj5kJJcPSaCrXjM/CCecgTcB6oGxB4c+l4pZiB1tsOzpNoAZN8HrM6FzQeakzuxX98BFZPOwir4cAiRxeR0IocOUbEXWKIAO1lAhDCkw5iDxBOH/RAAygxETo9KnuvPm9QhCH4LqaCYAbHgBfSIeAJqAxlQ9MkF29b8CRw0p59A7dHNnwEYjQ8wRLQCJ4QZFfRENRcQgYE0HAdlib/X1aCz1YLpppcAAAAAElFTkSuQmCC', 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer', 'pk.eyJ1IjoiZ2xiYW9wZW5nZmVpIiwiYSI6ImNrYW5hdTFsODA4eHIyeXA0NTQ1YW0wYmgifQ._BzDMNxzkU5tqrkYNw1Cmg', '\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0061\u0070\u0069\u002e\u0074\u0069\u0061\u006e\u0064\u0069\u0074\u0075\u002e\u0067\u006f\u0076\u002e\u0063\u006e\u002f\u0067\u0065\u006f\u0063\u006f\u0064\u0065\u0072\u003f\u0064\u0073\u003d\u007b\u0022\u006b\u0065\u0079\u0057\u006f\u0072\u0064\u0022\u003a\u0022', '\u0022\u007d\u0026\u0074\u006b\u003d\u0036\u0032\u0031\u0035\u0031\u0033\u0032\u0065\u0030\u0033\u0033\u0036\u0061\u0033\u0064\u0062\u0032\u0038\u0063\u0065\u0037\u0033\u0066\u0038\u0063\u0039\u0066\u0066\u0036\u0064\u0062\u0036', '\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0061\u0070\u0069\u002e\u0074\u0069\u0061\u006e\u0064\u0069\u0074\u0075\u002e\u0067\u006f\u0076\u002e\u0063\u006e\u002f\u0067\u0065\u006f\u0063\u006f\u0064\u0065\u0072\u003f\u0070\u006f\u0073\u0074\u0053\u0074\u0072\u003d\u007b\u0022\u006c\u006f\u006e\u0022\u003a', '\u002c\u0022\u0076\u0065\u0072\u0022\u003a\u0031\u007d\u0026\u0074\u0079\u0070\u0065\u003d\u0067\u0065\u006f\u0063\u006f\u0064\u0065\u0026\u0074\u006b\u003d\u0036\u0032\u0031\u0035\u0031\u0033\u0032\u0065\u0030\u0033\u0033\u0036\u0061\u0033\u0064\u0062\u0032\u0038\u0063\u0065\u0037\u0033\u0066\u0038\u0063\u0039\u0066\u0066\u0036\u0064\u0062\u0036', 'MeasuringAuxiliaryComponents', 'http://www.w3.org/1999/xhtml', 'Textures/LinkPulse.png', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', '\u0043\u0065\u0073\u0069\u0075\u006d\u0020\u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0064\u0065\u0066\u0069\u006e\u0065\u0064\u002c\u0020\u0070\u006c\u0065\u0061\u0073\u0065\u0020\u0069\u006e\u0063\u006c\u0075\u0064\u0065\u0020\u0022\u0043\u0065\u0073\u0069\u0075\u006d\u002e\u006a\u0073\u0022\u0020\u0066\u0069\u0072\u0073\u0074\u002e', 'Please\x20initialize\x20the\x20engine\x20API\x20first.', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20is\x20NOT\x20a\x20valid\x20drawing', 'The\x20featureId\x20is\x20NOT\x20a\x20valid\x20parameter.', '\u0073\u0065\u006c\u0065\u0063\u0074\u0046\u006c\u0061\u0073\u0068\u0043\u006f\u006c\u006f\u0072\u0073\u4e3a\u7a7a\u6216\u957f\u5ea6\u4e3a\u0030\uff0c\u81f3\u5c11\u9700\u8981\u4e24\u4e2a\u5341\u516d\u8fdb\u5236\u989c\u8272\u503c\u3002', '\u0022\u0020\u0020\u0020\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0064\u0069\u0073\u0070\u006c\u0061\u0079\u003a\u0020\u0062\u006c\u006f\u0063\u006b\u003b\u0020\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064\u002d\u0063\u006f\u006c\u006f\u0072\u003a\u0020\u0072\u0067\u0062\u0028\u0030\u002c\u0020\u0030\u002c\u0020\u0030\u0029\u003b\u0020\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u003a\u0020\u0030\u002e\u0038\u0038\u003b\u0022\u003e\u0020\u0020\u0020\u0020\u003c\u0069\u006d\u0061\u0067\u0065\u0020\u0068\u0072\u0065\u0066\u003d\u0022', '\u0022\u003e\u003c\u002f\u0069\u006d\u0061\u0067\u0065\u003e\u0020\u0020\u0020\u0020\u003c\u0072\u0065\u0063\u0074\u0020\u0077\u0069\u0064\u0074\u0068\u003d\u0022', '\u0022\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003a\u0020\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065\u003b\u0020\u0066\u0069\u006c\u006c\u003a\u0020\u006e\u006f\u006e\u0065\u003b\u0020\u0073\u0074\u0072\u006f\u006b\u0065\u003a\u0020', '\u003b\u0020\u0073\u0074\u0072\u006f\u006b\u0065\u002d\u0077\u0069\u0064\u0074\u0068\u003a\u0020\u0032\u0070\u0078\u003b\u0022\u003e\u0020\u0020\u0020\u0020\u003c\u002f\u0072\u0065\u0063\u0074\u003e\u0020\u0020\u0020\u0020\u003c\u0072\u0065\u0063\u0074\u0020\u0069\u0064\u003d\u0022', '\u0022\u0020\u0074\u0072\u0061\u006e\u0073\u0066\u006f\u0072\u006d\u003d\u0022\u0074\u0072\u0061\u006e\u0073\u006c\u0061\u0074\u0065\u0028', '\u0029\u0022\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0073\u0074\u0079\u006c\u0065\u003d\u0022\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003a\u0020\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065\u003b\u0020\u0064\u0069\u0073\u0070\u006c\u0061\u0079\u003a\u0020\u0062\u006c\u006f\u0063\u006b\u003b\u0020\u0066\u0069\u006c\u006c\u002d\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u003a\u0020\u0030\u002e\u0031\u003b\u0020\u0066\u0069\u006c\u006c\u003a\u0020', '\u003b\u0020\u0073\u0074\u0072\u006f\u006b\u0065\u002d\u0077\u0069\u0064\u0074\u0068\u003a\u0020\u0032\u0070\u0078\u003b\u0022\u003e\u0020\u0020\u0020\u0020\u003c\u002f\u0072\u0065\u0063\u0074\u003e\u003c\u002f\u0073\u0076\u0067\u003e', 'Parameter\x20id\x20is\x20NOT\x20a\x20valid\x20parameter!', 'Parameter\x20position\x20is\x20NOT\x20a\x20valid\x20parameter!', 'You\x20need\x20to\x20publish\x20a\x20version\x20to\x20get\x20the\x20version.', 'The\x20position\x20in\x20parameter\x20is\x20NOT\x20available!', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x27s\x20length\x20is\x20ZERO.', '\u53c2\u6570\u0020\u006f\u0070\u0074\u0069\u006f\u006e\u0073\u002e\u0072\u006f\u0074\u0061\u0074\u0065\u0020\u5fc5\u987b\u662f\u6570\u5b57', '\u0070\u006f\u0069\u006e\u0074\u0031\u0020\u6216\u0020\u0070\u006f\u0069\u006e\u0074\u0032\u0020\u6570\u636e\u7c7b\u578b\u6709\u8bef', '\u0070\u006f\u0069\u006e\u0074\u0031\u0020\u6216\u0020\u0070\u006f\u0069\u006e\u0074\u0032\u0020\u6570\u636e\u7c7b\u578b\u6709\u8bef', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'cesium-baseLayerPicker-dropDown', '\x20.cesium-widget>canvas', 'cesium-baseLayerPicker-dropDown', 'Right-click\x20to\x20finish', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'The\x20model\x20doesn\x27t\x20exist', 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAbCAYAAAH3zbSEAAAAAXNSR0IArs4c6QAAAn5JREFUSA29lr9uGkEQxu8A47MTKSf5j2RbjnDhAAUVVKbhBeiiNHmLPIxbt64i+QF4A3iBpEiUIkWUCEVBcSz/uXy/1S1aH3fxcoKM9LG7szv77c7MzhEEQRAKFWEutXkvCKoMqkmS3Foly+vCa6ugjdwBm907imoo+8QqwjCMavp5axVqzWTUarWuNKg6E/MurJvCS2F+lHR2Q+0XFkSiuU6VjxrRbaHg3OyyIJVut3sj7cHCjBTWOZ+zkzJKrLMa2UnGISvyJtAZy/F4vDDf6/VMUAaaOVyYDYKv6OpsPZ1Ok06nc6Hxs5yFharNfr9/qdmGkOvuIksTBjH/KVpQpJ9MJhF+fCha8ITe2EXcOU/+pdfGhrmQIC8E7mLuDEgzmwrufFGfI99iiIcJNv27FGqeliPuOhwOyekTwZu9KSPSeSAslRg8r7NljbhXLNBOBR/ZZhFOiRW7Tz4Wdo0y6QSmhrArfBd8xKzFcE+M33ws7Box7mN4qmh8sEqfVmXnFTHzjpuzaaWMkbEvbUg4ZjrzG7Uku49Qi2c4x01yH0PK4p013FJIfmWt4jg+H41G76SHpWzlyG5rxnwETqkaVFAeS7vdfi8duX8k8D0r7UfZ5gqbGtKUbKBxQ+CFLlWFtd5LcC+BfCHwQCkJPFDqifuB1rC0wAHwFiFK6KCoyb0fUQgIB8EDqwAeO9D+5MWesEHqQmyLXUv9mUC5XZXA8TzdjPYnt+QfxU6K3yiFVZMSPurljxSG9JjsdWUdYxEeC3VcC0zVVrtugQc+kyzN7M3cW6+iz/7iasJnWGH+n0JmcQJT4vj3t2Yx75Tsperwx9hm2DpuD5l9Gdd/AVIlXMI9fgkPAAAAAElFTkSuQmCC),\x20auto', '\u003c\u0073\u0074\u0079\u006c\u0065\u003e\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u002e\u006d\u0065\u0061\u0073\u0075\u0072\u0065\u0020\u007b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0070\u006c\u0061\u0079\u003a\u0020\u0069\u006e\u006c\u0069\u006e\u0065\u002d\u0062\u006c\u006f\u0063\u006b\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0062\u006f\u0072\u0064\u0065\u0072\u003a\u0020\u0032\u0070\u0078\u0020\u0073\u006f\u006c\u0069\u0064\u0020\u0023\u0066\u0066\u0066\u0066\u0066\u0066\u0036\u0036\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0062\u006f\u0072\u0064\u0065\u0072\u002d\u0072\u0061\u0064\u0069\u0075\u0073\u003a\u0020\u0033\u0070\u0078\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064\u002d\u0063\u006f\u006c\u006f\u0072\u003a\u0020\u0023\u0066\u0039\u0039\u0064\u0030\u0062\u0036\u0036\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0070\u0061\u0064\u0064\u0069\u006e\u0067\u003a\u0020\u0033\u0070\u0078\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003a\u0020\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0063\u006f\u006c\u006f\u0072\u003a\u0023\u0066\u0066\u0066\u0066\u0066\u0066\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0066\u006f\u006e\u0074\u002d\u0073\u0069\u007a\u0065\u003a\u0031\u0034\u0070\u0078\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0077\u0068\u0069\u0074\u0065\u002d\u0073\u0070\u0061\u0063\u0065\u003a\u0020\u006e\u006f\u0077\u0072\u0061\u0070\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u007d\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u003c\u002f\u0073\u0074\u0079\u006c\u0065\u003e\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u003c\u0064\u0069\u0076\u0020\u0063\u006c\u0061\u0073\u0073\u003d\u0022\u006d\u0065\u0061\u0073\u0075\u0072\u0065\u0022\u003e', 'Cannot\x20call\x20a\x20class\x20as\x20a\x20function', 'Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function', 'this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called', 'tileXYToNativeRectangle', 'http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46', 'http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020', 'http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={style}', 'tileWidth\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'tileHeight\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'maximumLevel\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'minimumLevel\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'tilingScheme\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'rectangle\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'requestImage\x20must\x20not\x20be\x20called\x20before\x20the\x20imagery\x20provider\x20is\x20ready.', 'https://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', 'https://webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}', 'https://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', 'https://p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg?version=400', 'https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid={style}&scene=0&version=347', 'https://t{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}', 'http://mt{s}.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile', 'http://mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galile', 'http://mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali', 'halfAngle\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x20zero.', 'this.radius\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x20zero.', 'options.stackPartitions\x20cannot\x20be\x20less\x20than\x201', 'options.slicePartitions\x20cannot\x20be\x20less\x20than\x200', 'options.subdivisions\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x20zero.', 'distanceDisplayCondition', '\u0061\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0020\u0076\u0065\u0063\u0034\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0061\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0020\u0076\u0065\u0063\u0033\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u003b\u000d\u000a\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u0050\u0072\u006f\u006a\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u002a\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u0020\u003d\u0020\u0028\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u0020\u002a\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0029\u002e\u0078\u0079\u007a\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u0020\u003d\u0020\u0028\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u0020\u002a\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0029\u002e\u0078\u0079\u007a\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0020\u002a\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u003b\u000d\u000a\u007d', '\u0023\u0069\u0066\u0064\u0065\u0066\u0020\u0047\u004c\u005f\u004f\u0045\u0053\u005f\u0073\u0074\u0061\u006e\u0064\u0061\u0072\u0064\u005f\u0064\u0065\u0072\u0069\u0076\u0061\u0074\u0069\u0076\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0023\u0065\u0078\u0074\u0065\u006e\u0073\u0069\u006f\u006e\u0020\u0047\u004c\u005f\u004f\u0045\u0053\u005f\u0073\u0074\u0061\u006e\u0064\u0061\u0072\u0064\u005f\u0064\u0065\u0072\u0069\u0076\u0061\u0074\u0069\u0076\u0065\u0073\u0020\u003a\u0020\u0065\u006e\u0061\u0062\u006c\u0065\u000d\u000a\u0023\u0065\u006e\u0064\u0069\u0066\u000d\u000a\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0062\u006f\u006f\u006c\u0020\u0075\u005f\u0073\u0068\u006f\u0077\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0062\u006f\u006f\u006c\u0020\u0075\u005f\u0073\u0068\u006f\u0077\u0054\u0068\u0072\u006f\u0075\u0067\u0068\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u003b\u000d\u000a\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0072\u0061\u0064\u0069\u0075\u0073\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0078\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0079\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0044\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0074\u0079\u0070\u0065\u003b\u000d\u000a\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0076\u0065\u0063\u0034\u0020\u0067\u0065\u0074\u0043\u006f\u006c\u006f\u0072\u0028\u0066\u006c\u006f\u0061\u0074\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u0045\u0043\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0020\u003d\u0020\u0028\u0063\u007a\u006d\u005f\u0069\u006e\u0076\u0065\u0072\u0073\u0065\u004d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u0020\u002a\u0020\u0076\u0065\u0063\u0034\u0028\u0070\u006f\u0069\u006e\u0074\u0045\u0043\u002c\u0020\u0031\u002e\u0030\u0029\u0029\u002e\u0078\u0079\u007a\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u0020\u003d\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0032\u0064\u0054\u0065\u0078\u0074\u0075\u0072\u0065\u0043\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u0028\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u0072\u0020\u003d\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0020\u002f\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u0020\u003d\u0020\u002d\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u0020\u003d\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0020\u003d\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u0076\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0020\u003d\u0020\u0075\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0044\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u002a\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0069\u0078\u0028\u0063\u007a\u006d\u005f\u0070\u0068\u006f\u006e\u0067\u0028\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u0029\u002c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0029\u002c\u0020\u0076\u0065\u0063\u0034\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u002c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0029\u002c\u0020\u0030\u002e\u0034\u0029\u003b\u000d\u000a\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0062\u006f\u006f\u006c\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0028\u0066\u006c\u006f\u0061\u0074\u0020\u0076\u0061\u006c\u0075\u0065\u002c\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0065\u0070\u0073\u0069\u006c\u006f\u006e\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0077\u0069\u0064\u0074\u0068\u0020\u003d\u0020\u0067\u0065\u0074\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0057\u0069\u0064\u0074\u0068\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u003d\u0020\u0077\u0069\u0064\u0074\u0068\u0020\u002a\u0020\u0065\u0070\u0073\u0069\u006c\u006f\u006e\u003b\u000d\u000a\u000d\u000a\u0023\u0069\u0066\u0064\u0065\u0066\u0020\u0047\u004c\u005f\u004f\u0045\u0053\u005f\u0073\u0074\u0061\u006e\u0064\u0061\u0072\u0064\u005f\u0064\u0065\u0072\u0069\u0076\u0061\u0074\u0069\u0076\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0064\u0065\u006c\u0074\u0061\u0020\u003d\u0020\u006d\u0061\u0078\u0028\u0061\u0062\u0073\u0028\u0064\u0046\u0064\u0078\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u0029\u002c\u0020\u0061\u0062\u0073\u0028\u0064\u0046\u0064\u0079\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u0029\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u0069\u0078\u0065\u006c\u0073\u0020\u003d\u0020\u0077\u0069\u0064\u0074\u0068\u0020\u002a\u0020\u0064\u0065\u006c\u0074\u0061\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0074\u0065\u006d\u0070\u0020\u003d\u0020\u0061\u0062\u0073\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0054\u0068\u0065\u0072\u0065\u0020\u0061\u0072\u0065\u0020\u0061\u0020\u0063\u006f\u0075\u0070\u006c\u0065\u0020\u0074\u0068\u0069\u006e\u0067\u0073\u0020\u0067\u006f\u0069\u006e\u0067\u0020\u006f\u006e\u0020\u0068\u0065\u0072\u0065\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0046\u0069\u0072\u0073\u0074\u0020\u0077\u0065\u0020\u0074\u0065\u0073\u0074\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0061\u0074\u0020\u0074\u0068\u0065\u0020\u0063\u0075\u0072\u0072\u0065\u006e\u0074\u0020\u0066\u0072\u0061\u0067\u006d\u0065\u006e\u0074\u0020\u0074\u006f\u0020\u0073\u0065\u0065\u0020\u0069\u0066\u0020\u0069\u0074\u0020\u0069\u0073\u0020\u0077\u0069\u0074\u0068\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0057\u0065\u0020\u0061\u006c\u0073\u006f\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0063\u0068\u0065\u0063\u006b\u0020\u0069\u0066\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u006f\u0066\u0020\u0061\u006e\u0020\u0061\u0064\u006a\u0061\u0063\u0065\u006e\u0074\u0020\u0070\u0069\u0078\u0065\u006c\u0020\u0069\u0073\u0020\u0077\u0069\u0074\u0068\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u002c\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0062\u0075\u0074\u0020\u0077\u0065\u0020\u0064\u006f\u006e\u0027\u0074\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0061\u0064\u006d\u0069\u0074\u0020\u0070\u006f\u0069\u006e\u0074\u0073\u0020\u0074\u0068\u0061\u0074\u0020\u0061\u0072\u0065\u0020\u006f\u0062\u0076\u0069\u006f\u0075\u0073\u006c\u0079\u0020\u006e\u006f\u0074\u0020\u006f\u006e\u0020\u0074\u0068\u0065\u0020\u0073\u0075\u0072\u0066\u0061\u0063\u0065\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0046\u006f\u0072\u0020\u0065\u0078\u0061\u006d\u0070\u006c\u0065\u002c\u0020\u0069\u0066\u0020\u0077\u0065\u0020\u0061\u0072\u0065\u0020\u006c\u006f\u006f\u006b\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u0022\u0076\u0061\u006c\u0075\u0065\u0022\u0020\u0074\u006f\u0020\u0062\u0065\u0020\u0063\u006c\u006f\u0073\u0065\u0020\u0074\u006f\u0020\u0030\u002c\u0020\u0062\u0075\u0074\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0069\u0073\u0020\u0031\u0020\u0061\u006e\u0064\u0020\u0074\u0068\u0065\u0020\u0061\u0064\u006a\u0061\u0063\u0065\u006e\u0074\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0069\u0073\u0020\u0032\u002c\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0074\u0068\u0065\u006e\u0020\u0074\u0068\u0065\u0020\u0064\u0065\u006c\u0074\u0061\u0020\u0077\u006f\u0075\u006c\u0064\u0020\u0062\u0065\u0020\u0031\u0020\u0061\u006e\u0064\u0020\u0022\u0074\u0065\u006d\u0070\u0020\u002d\u0020\u0064\u0065\u006c\u0074\u0061\u0022\u0020\u0077\u006f\u0075\u006c\u0064\u0020\u0062\u0065\u0020\u0022\u0031\u0020\u002d\u0020\u0031\u0022\u0020\u0077\u0068\u0069\u0063\u0068\u0020\u0069\u0073\u0020\u007a\u0065\u0072\u006f\u0020\u0065\u0076\u0065\u006e\u0020\u0074\u0068\u006f\u0075\u0067\u0068\u0020\u006e\u0065\u0069\u0074\u0068\u0065\u0072\u0020\u006f\u0066\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0074\u0068\u0065\u0020\u0070\u006f\u0069\u006e\u0074\u0073\u0020\u0069\u0073\u0020\u0063\u006c\u006f\u0073\u0065\u0020\u0074\u006f\u0020\u007a\u0065\u0072\u006f\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0074\u0065\u006d\u0070\u0020\u003c\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0026\u0026\u0020\u0074\u0065\u006d\u0070\u0020\u003c\u0020\u0070\u0069\u0078\u0065\u006c\u0073\u0020\u007c\u007c\u0020\u0028\u0064\u0065\u006c\u0074\u0061\u0020\u003c\u0020\u0031\u0030\u002e\u0030\u0020\u002a\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0026\u0026\u0020\u0074\u0065\u006d\u0070\u0020\u002d\u0020\u0064\u0065\u006c\u0074\u0061\u0020\u003c\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0026\u0026\u0020\u0074\u0065\u006d\u0070\u0020\u003c\u0020\u0070\u0069\u0078\u0065\u006c\u0073\u0029\u003b\u000d\u000a\u0023\u0065\u006c\u0073\u0065\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0061\u0062\u0073\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u0020\u003c\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u003b\u000d\u000a\u0023\u0065\u006e\u0064\u0069\u0066\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0076\u0065\u0063\u0034\u0020\u0073\u0068\u0061\u0064\u0065\u0028\u0062\u006f\u006f\u006c\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0020\u0028\u0075\u005f\u0073\u0068\u006f\u0077\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u0026\u0026\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0029\u000d\u000a\u0020\u0020\u0020\u0020\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0067\u0065\u0074\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0043\u006f\u006c\u006f\u0072\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0075\u005f\u0074\u0079\u0070\u0065\u0020\u003d\u003d\u0020\u0031\u002e\u0030\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0067\u0065\u0074\u004c\u0069\u006e\u0065\u0043\u006f\u006c\u006f\u0072\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0067\u0065\u0074\u0043\u006f\u006c\u006f\u0072\u0028\u0075\u005f\u0072\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u0029\u003b\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0066\u006c\u006f\u0061\u0074\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0053\u0075\u0072\u0066\u0061\u0063\u0065\u0046\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0063\u007a\u006d\u005f\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002c\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0020\u003d\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002e\u0069\u006e\u0076\u0065\u0072\u0073\u0065\u0052\u0061\u0064\u0069\u0069\u0020\u002a\u0020\u0070\u006f\u0069\u006e\u0074\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0064\u006f\u0074\u0028\u0073\u0063\u0061\u006c\u0065\u0064\u002c\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0029\u0020\u002d\u0020\u0031\u002e\u0030\u003b\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0056\u0065\u0072\u0074\u0065\u0078\u0057\u0043\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u005b\u0033\u005d\u002e\u0078\u0079\u007a\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0020\u0069\u006e\u0020\u006d\u006f\u0064\u0065\u006c\u0020\u0063\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0056\u0065\u0072\u0074\u0065\u0078\u0045\u0043\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u005b\u0033\u005d\u002e\u0078\u0079\u007a\u003b\u0020\u0020\u002f\u002f\u0020\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0020\u0069\u006e\u0020\u006d\u006f\u0064\u0065\u006c\u0020\u0063\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0076\u0065\u0063\u0033\u0020\u0070\u0069\u0078\u0044\u0069\u0072\u0020\u003d\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0058\u0020\u003d\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002e\u0078\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0059\u0020\u003d\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002e\u0079\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u005a\u0020\u003d\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002e\u007a\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u007a\u0044\u0069\u0072\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u002c\u0020\u0031\u002e\u0030\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u006c\u0069\u006e\u0065\u0058\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0058\u002c\u0020\u0030\u0020\u002c\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u005a\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u006c\u0069\u006e\u0065\u0059\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0030\u002c\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0059\u002c\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u005a\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0072\u0065\u0073\u0058\u0020\u003d\u0020\u0064\u006f\u0074\u0028\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u006c\u0069\u006e\u0065\u0058\u0029\u002c\u0020\u007a\u0044\u0069\u0072\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0072\u0065\u0073\u0058\u0020\u003c\u0020\u0063\u006f\u0073\u0028\u0075\u005f\u0078\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u0029\u002d\u0030\u002e\u0030\u0030\u0030\u0030\u0031\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0072\u0065\u0073\u0059\u0020\u003d\u0020\u0064\u006f\u0074\u0028\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u006c\u0069\u006e\u0065\u0059\u0029\u002c\u0020\u007a\u0044\u0069\u0072\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0072\u0065\u0073\u0059\u0020\u003c\u0020\u0063\u006f\u0073\u0028\u0075\u005f\u0079\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u0029\u002d\u0030\u002e\u0030\u0030\u0030\u0030\u0031\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0057\u0067\u0073\u0038\u0034\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0045\u0043\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0056\u0061\u006c\u0075\u0065\u0020\u003d\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0053\u0075\u0072\u0066\u0061\u0063\u0065\u0046\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002c\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u004f\u0063\u0063\u006c\u0075\u0064\u0065\u0064\u0020\u0062\u0079\u0020\u0074\u0068\u0065\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u003f\u000d\u000a\u0009\u0069\u0066\u0020\u0028\u0021\u0075\u005f\u0073\u0068\u006f\u0077\u0054\u0068\u0072\u006f\u0075\u0067\u0068\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0029\u000d\u000a\u0009\u007b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0044\u0069\u0073\u0063\u0061\u0072\u0064\u0020\u0069\u0066\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0050\u0045\u0052\u0046\u004f\u0052\u004d\u0041\u004e\u0043\u0045\u005f\u0049\u0044\u0045\u0041\u003a\u0020\u0041\u0020\u0063\u006f\u0061\u0072\u0073\u0065\u0020\u0063\u0068\u0065\u0063\u006b\u0020\u0066\u006f\u0072\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0069\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u0063\u006f\u0075\u006c\u0064\u0020\u0062\u0065\u0020\u0064\u006f\u006e\u0065\u0020\u006f\u006e\u0020\u0074\u0068\u0065\u0020\u0043\u0050\u0055\u0020\u0066\u0069\u0072\u0073\u0074\u002e\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u0069\u0066\u0020\u0028\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0056\u0061\u006c\u0075\u0065\u0020\u003c\u0020\u0030\u002e\u0030\u0029\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0044\u0069\u0073\u0063\u0061\u0072\u0064\u0020\u0069\u0066\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0027\u0073\u0020\u0073\u0068\u0061\u0064\u006f\u0077\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u0069\u0066\u0020\u0028\u0069\u006e\u0053\u0065\u006e\u0073\u006f\u0072\u0053\u0068\u0061\u0064\u006f\u0077\u0028\u0073\u0065\u006e\u0073\u006f\u0072\u0056\u0065\u0072\u0074\u0065\u0078\u0057\u0043\u002c\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002c\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u0029\u0029\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u004e\u006f\u0074\u0065\u0073\u003a\u0020\u0045\u0061\u0063\u0068\u0020\u0073\u0075\u0072\u0066\u0061\u0063\u0065\u0020\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0073\u0020\u0073\u0068\u006f\u0075\u006c\u0064\u0020\u0068\u0061\u0076\u0065\u0020\u0061\u006e\u0020\u0061\u0073\u0073\u006f\u0063\u0069\u0061\u0074\u0065\u0064\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0062\u0061\u0073\u0065\u0064\u0020\u006f\u006e\u0020\u0074\u0068\u0065\u0020\u0066\u006c\u006f\u0061\u0074\u0069\u006e\u0067\u0020\u0070\u006f\u0069\u006e\u0074\u0020\u0065\u0072\u0072\u006f\u0072\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u0062\u006f\u006f\u006c\u0020\u0069\u0073\u004f\u006e\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u003d\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0028\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0056\u0061\u006c\u0075\u0065\u002c\u0020\u0063\u007a\u006d\u005f\u0065\u0070\u0073\u0069\u006c\u006f\u006e\u0033\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0069\u0073\u004f\u006e\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u003d\u0020\u0066\u0061\u006c\u0073\u0065\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0069\u0066\u0028\u0028\u0072\u0065\u0073\u0058\u0020\u003e\u003d\u0020\u0030\u002e\u0038\u0020\u0026\u0026\u0020\u0072\u0065\u0073\u0058\u0020\u003c\u003d\u0020\u0030\u002e\u0038\u0031\u0029\u007c\u007c\u0028\u0072\u0065\u0073\u0059\u0020\u003e\u003d\u0020\u0030\u002e\u0038\u0020\u0026\u0026\u0020\u0072\u0065\u0073\u0059\u0020\u003c\u003d\u0020\u0030\u002e\u0038\u0031\u0029\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002a\u0069\u0066\u0028\u0066\u0061\u006c\u0073\u0065\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0046\u0072\u0061\u0067\u0043\u006f\u006c\u006f\u0072\u0020\u003d\u0020\u0076\u0065\u0063\u0034\u0028\u0031\u002e\u0030\u002c\u0030\u002e\u0030\u002c\u0030\u002e\u0030\u002c\u0031\u002e\u0030\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u0065\u006c\u0073\u0065\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0046\u0072\u0061\u0067\u0043\u006f\u006c\u006f\u0072\u0020\u003d\u0020\u0073\u0068\u0061\u0064\u0065\u0028\u0069\u0073\u004f\u006e\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u002a\u002f\u000d\u000a\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0046\u0072\u0061\u0067\u0043\u006f\u006c\u006f\u0072\u0020\u003d\u0020\u0073\u0068\u0061\u0064\u0065\u0028\u0069\u0073\u004f\u006e\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0029\u003b\u000d\u000a\u000d\u000a\u007d', '\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0076\u0065\u0063\u0034\u0020\u0075\u005f\u0069\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0043\u006f\u006c\u006f\u0072\u003b\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0069\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0057\u0069\u0064\u0074\u0068\u003b\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0076\u0065\u0063\u0034\u0020\u0075\u005f\u006c\u0069\u006e\u0065\u0043\u006f\u006c\u006f\u0072\u003b\u000a\u000a\u0062\u006f\u006f\u006c\u0020\u0069\u006e\u0053\u0065\u006e\u0073\u006f\u0072\u0053\u0068\u0061\u0064\u006f\u0077\u0028\u0076\u0065\u0063\u0033\u0020\u0063\u006f\u006e\u0065\u0056\u0065\u0072\u0074\u0065\u0078\u0057\u0043\u002c\u0020\u0063\u007a\u006d\u005f\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0045\u0043\u002c\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u0057\u0043\u0029\u000a\u007b\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0044\u0069\u0061\u0067\u006f\u006e\u0061\u006c\u0020\u006d\u0061\u0074\u0072\u0069\u0078\u0020\u0066\u0072\u006f\u006d\u0020\u0074\u0068\u0065\u0020\u0075\u006e\u0073\u0063\u0061\u006c\u0065\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0073\u0070\u0061\u0063\u0065\u0020\u0074\u006f\u0020\u0074\u0068\u0065\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0020\u0073\u0070\u0061\u0063\u0065\u002e\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0044\u0020\u003d\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0045\u0043\u002e\u0069\u006e\u0076\u0065\u0072\u0073\u0065\u0052\u0061\u0064\u0069\u0069\u003b\u000a\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0053\u0065\u006e\u0073\u006f\u0072\u0020\u0076\u0065\u0072\u0074\u0065\u0078\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0073\u0070\u0061\u0063\u0065\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0071\u0020\u003d\u0020\u0044\u0020\u002a\u0020\u0063\u006f\u006e\u0065\u0056\u0065\u0072\u0074\u0065\u0078\u0057\u0043\u003b\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0071\u004d\u0061\u0067\u006e\u0069\u0074\u0075\u0064\u0065\u0053\u0071\u0075\u0061\u0072\u0065\u0064\u0020\u003d\u0020\u0064\u006f\u0074\u0028\u0071\u002c\u0020\u0071\u0029\u003b\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0074\u0065\u0073\u0074\u0020\u003d\u0020\u0071\u004d\u0061\u0067\u006e\u0069\u0074\u0075\u0064\u0065\u0053\u0071\u0075\u0061\u0072\u0065\u0064\u0020\u002d\u0020\u0031\u002e\u0030\u003b\u000a\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0053\u0065\u006e\u0073\u006f\u0072\u0020\u0076\u0065\u0072\u0074\u0065\u0078\u0020\u0074\u006f\u0020\u0066\u0072\u0061\u0067\u006d\u0065\u006e\u0074\u0020\u0076\u0065\u0063\u0074\u006f\u0072\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0027\u0073\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0020\u0073\u0070\u0061\u0063\u0065\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0074\u0065\u006d\u0070\u0020\u003d\u0020\u0044\u0020\u002a\u0020\u0070\u006f\u0069\u006e\u0074\u0057\u0043\u0020\u002d\u0020\u0071\u003b\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0064\u0020\u003d\u0020\u0064\u006f\u0074\u0028\u0074\u0065\u006d\u0070\u002c\u0020\u0071\u0029\u003b\u000a\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0042\u0065\u0068\u0069\u006e\u0064\u0020\u0073\u0069\u006c\u0068\u006f\u0075\u0065\u0074\u0074\u0065\u0020\u0070\u006c\u0061\u006e\u0065\u0020\u0061\u006e\u0064\u0020\u0069\u006e\u0073\u0069\u0064\u0065\u0020\u0073\u0069\u006c\u0068\u006f\u0075\u0065\u0074\u0074\u0065\u0020\u0063\u006f\u006e\u0065\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0028\u0064\u0020\u003c\u0020\u002d\u0074\u0065\u0073\u0074\u0029\u0020\u0026\u0026\u0020\u0028\u0064\u0020\u002f\u0020\u006c\u0065\u006e\u0067\u0074\u0068\u0028\u0074\u0065\u006d\u0070\u0029\u0020\u003c\u0020\u002d\u0073\u0071\u0072\u0074\u0028\u0074\u0065\u0073\u0074\u0029\u0029\u003b\u000a\u007d\u000a\u000a\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u002f\u000a\u000a\u0076\u0065\u0063\u0034\u0020\u0067\u0065\u0074\u004c\u0069\u006e\u0065\u0043\u006f\u006c\u006f\u0072\u0028\u0029\u000a\u007b\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0075\u005f\u006c\u0069\u006e\u0065\u0043\u006f\u006c\u006f\u0072\u003b\u000a\u007d\u000a\u000a\u0076\u0065\u0063\u0034\u0020\u0067\u0065\u0074\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0043\u006f\u006c\u006f\u0072\u0028\u0029\u000a\u007b\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0075\u005f\u0069\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0043\u006f\u006c\u006f\u0072\u003b\u000a\u007d\u000a\u000a\u0066\u006c\u006f\u0061\u0074\u0020\u0067\u0065\u0074\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0057\u0069\u0064\u0074\u0068\u0028\u0029\u000a\u007b\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0075\u005f\u0069\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0057\u0069\u0064\u0074\u0068\u003b\u000a\u007d\u000a\u000a\u0076\u0065\u0063\u0032\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0032\u0064\u0054\u0065\u0078\u0074\u0075\u0072\u0065\u0043\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u0028\u0066\u006c\u006f\u0061\u0074\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0029\u000a\u007b\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0028\u0073\u002c\u0020\u0074\u0029\u0020\u0062\u006f\u0074\u0068\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0072\u0061\u006e\u0067\u0065\u0020\u005b\u0030\u002c\u0020\u0031\u005d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0074\u0020\u003d\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u002e\u007a\u0020\u002f\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u003b\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0073\u0020\u003d\u0020\u0031\u002e\u0030\u0020\u002b\u0020\u0028\u0061\u0074\u0061\u006e\u0028\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u002e\u0079\u002c\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u002e\u0078\u0029\u0020\u002f\u0020\u0063\u007a\u006d\u005f\u0074\u0077\u006f\u0050\u0069\u0029\u003b\u000a\u0020\u0020\u0020\u0020\u0073\u0020\u003d\u0020\u0073\u0020\u002d\u0020\u0066\u006c\u006f\u006f\u0072\u0028\u0073\u0029\u003b\u000a\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0076\u0065\u0063\u0032\u0028\u0073\u002c\u0020\u0074\u0029\u003b\u000a\u007d\u000a', '\u0023\u0069\u0066\u0064\u0065\u0066\u0020\u0047\u004c\u005f\u004f\u0045\u0053\u005f\u0073\u0074\u0061\u006e\u0064\u0061\u0072\u0064\u005f\u0064\u0065\u0072\u0069\u0076\u0061\u0074\u0069\u0076\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0023\u0065\u0078\u0074\u0065\u006e\u0073\u0069\u006f\u006e\u0020\u0047\u004c\u005f\u004f\u0045\u0053\u005f\u0073\u0074\u0061\u006e\u0064\u0061\u0072\u0064\u005f\u0064\u0065\u0072\u0069\u0076\u0061\u0074\u0069\u0076\u0065\u0073\u0020\u003a\u0020\u0065\u006e\u0061\u0062\u006c\u0065\u000d\u000a\u0023\u0065\u006e\u0064\u0069\u0066\u000d\u000a\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0062\u006f\u006f\u006c\u0020\u0075\u005f\u0073\u0068\u006f\u0077\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0062\u006f\u006f\u006c\u0020\u0075\u005f\u0073\u0068\u006f\u0077\u0054\u0068\u0072\u006f\u0075\u0067\u0068\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u003b\u000d\u000a\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0072\u0061\u0064\u0069\u0075\u0073\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0078\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u0079\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0075\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0044\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0076\u0065\u0063\u0034\u0020\u0075\u005f\u0063\u006f\u006c\u006f\u0072\u003b\u000d\u000a\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u003b\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0033\u0020\u0076\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0076\u0065\u0063\u0034\u0020\u0067\u0065\u0074\u0043\u006f\u006c\u006f\u0072\u0028\u0066\u006c\u006f\u0061\u0074\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u0045\u0043\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0020\u003d\u0020\u0028\u0063\u007a\u006d\u005f\u0069\u006e\u0076\u0065\u0072\u0073\u0065\u004d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u0020\u002a\u0020\u0076\u0065\u0063\u0034\u0028\u0070\u006f\u0069\u006e\u0074\u0045\u0043\u002c\u0020\u0031\u002e\u0030\u0029\u0029\u002e\u0078\u0079\u007a\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u0020\u003d\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0032\u0064\u0054\u0065\u0078\u0074\u0075\u0072\u0065\u0043\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u0028\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u0072\u0020\u003d\u0020\u0070\u006f\u0069\u006e\u0074\u004d\u0043\u0020\u002f\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0052\u0061\u0064\u0069\u0075\u0073\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u0020\u003d\u0020\u002d\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u0020\u003d\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0020\u003d\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u0076\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u0020\u003d\u0020\u0075\u005f\u006e\u006f\u0072\u006d\u0061\u006c\u0044\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u002a\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0045\u0043\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u0075\u005f\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0075\u005f\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0069\u0078\u0028\u0063\u007a\u006d\u005f\u0070\u0068\u006f\u006e\u0067\u0028\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0054\u006f\u0045\u0079\u0065\u0045\u0043\u0029\u002c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0029\u002c\u0020\u0076\u0065\u0063\u0034\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u002c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0029\u002c\u0020\u0030\u002e\u0034\u0029\u003b\u000d\u000a\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0062\u006f\u006f\u006c\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0028\u0066\u006c\u006f\u0061\u0074\u0020\u0076\u0061\u006c\u0075\u0065\u002c\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0065\u0070\u0073\u0069\u006c\u006f\u006e\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0077\u0069\u0064\u0074\u0068\u0020\u003d\u0020\u0067\u0065\u0074\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0057\u0069\u0064\u0074\u0068\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u003d\u0020\u0077\u0069\u0064\u0074\u0068\u0020\u002a\u0020\u0065\u0070\u0073\u0069\u006c\u006f\u006e\u003b\u000d\u000a\u000d\u000a\u0023\u0069\u0066\u0064\u0065\u0066\u0020\u0047\u004c\u005f\u004f\u0045\u0053\u005f\u0073\u0074\u0061\u006e\u0064\u0061\u0072\u0064\u005f\u0064\u0065\u0072\u0069\u0076\u0061\u0074\u0069\u0076\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0064\u0065\u006c\u0074\u0061\u0020\u003d\u0020\u006d\u0061\u0078\u0028\u0061\u0062\u0073\u0028\u0064\u0046\u0064\u0078\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u0029\u002c\u0020\u0061\u0062\u0073\u0028\u0064\u0046\u0064\u0079\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u0029\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u0069\u0078\u0065\u006c\u0073\u0020\u003d\u0020\u0077\u0069\u0064\u0074\u0068\u0020\u002a\u0020\u0064\u0065\u006c\u0074\u0061\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0074\u0065\u006d\u0070\u0020\u003d\u0020\u0061\u0062\u0073\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0054\u0068\u0065\u0072\u0065\u0020\u0061\u0072\u0065\u0020\u0061\u0020\u0063\u006f\u0075\u0070\u006c\u0065\u0020\u0074\u0068\u0069\u006e\u0067\u0073\u0020\u0067\u006f\u0069\u006e\u0067\u0020\u006f\u006e\u0020\u0068\u0065\u0072\u0065\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0046\u0069\u0072\u0073\u0074\u0020\u0077\u0065\u0020\u0074\u0065\u0073\u0074\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0061\u0074\u0020\u0074\u0068\u0065\u0020\u0063\u0075\u0072\u0072\u0065\u006e\u0074\u0020\u0066\u0072\u0061\u0067\u006d\u0065\u006e\u0074\u0020\u0074\u006f\u0020\u0073\u0065\u0065\u0020\u0069\u0066\u0020\u0069\u0074\u0020\u0069\u0073\u0020\u0077\u0069\u0074\u0068\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0057\u0065\u0020\u0061\u006c\u0073\u006f\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0063\u0068\u0065\u0063\u006b\u0020\u0069\u0066\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u006f\u0066\u0020\u0061\u006e\u0020\u0061\u0064\u006a\u0061\u0063\u0065\u006e\u0074\u0020\u0070\u0069\u0078\u0065\u006c\u0020\u0069\u0073\u0020\u0077\u0069\u0074\u0068\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u002c\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0062\u0075\u0074\u0020\u0077\u0065\u0020\u0064\u006f\u006e\u0027\u0074\u0020\u0077\u0061\u006e\u0074\u0020\u0074\u006f\u0020\u0061\u0064\u006d\u0069\u0074\u0020\u0070\u006f\u0069\u006e\u0074\u0073\u0020\u0074\u0068\u0061\u0074\u0020\u0061\u0072\u0065\u0020\u006f\u0062\u0076\u0069\u006f\u0075\u0073\u006c\u0079\u0020\u006e\u006f\u0074\u0020\u006f\u006e\u0020\u0074\u0068\u0065\u0020\u0073\u0075\u0072\u0066\u0061\u0063\u0065\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0046\u006f\u0072\u0020\u0065\u0078\u0061\u006d\u0070\u006c\u0065\u002c\u0020\u0069\u0066\u0020\u0077\u0065\u0020\u0061\u0072\u0065\u0020\u006c\u006f\u006f\u006b\u0069\u006e\u0067\u0020\u0066\u006f\u0072\u0020\u0022\u0076\u0061\u006c\u0075\u0065\u0022\u0020\u0074\u006f\u0020\u0062\u0065\u0020\u0063\u006c\u006f\u0073\u0065\u0020\u0074\u006f\u0020\u0030\u002c\u0020\u0062\u0075\u0074\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0069\u0073\u0020\u0031\u0020\u0061\u006e\u0064\u0020\u0074\u0068\u0065\u0020\u0061\u0064\u006a\u0061\u0063\u0065\u006e\u0074\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0069\u0073\u0020\u0032\u002c\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0074\u0068\u0065\u006e\u0020\u0074\u0068\u0065\u0020\u0064\u0065\u006c\u0074\u0061\u0020\u0077\u006f\u0075\u006c\u0064\u0020\u0062\u0065\u0020\u0031\u0020\u0061\u006e\u0064\u0020\u0022\u0074\u0065\u006d\u0070\u0020\u002d\u0020\u0064\u0065\u006c\u0074\u0061\u0022\u0020\u0077\u006f\u0075\u006c\u0064\u0020\u0062\u0065\u0020\u0022\u0031\u0020\u002d\u0020\u0031\u0022\u0020\u0077\u0068\u0069\u0063\u0068\u0020\u0069\u0073\u0020\u007a\u0065\u0072\u006f\u0020\u0065\u0076\u0065\u006e\u0020\u0074\u0068\u006f\u0075\u0067\u0068\u0020\u006e\u0065\u0069\u0074\u0068\u0065\u0072\u0020\u006f\u0066\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0074\u0068\u0065\u0020\u0070\u006f\u0069\u006e\u0074\u0073\u0020\u0069\u0073\u0020\u0063\u006c\u006f\u0073\u0065\u0020\u0074\u006f\u0020\u007a\u0065\u0072\u006f\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0074\u0065\u006d\u0070\u0020\u003c\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0026\u0026\u0020\u0074\u0065\u006d\u0070\u0020\u003c\u0020\u0070\u0069\u0078\u0065\u006c\u0073\u0020\u007c\u007c\u0020\u0028\u0064\u0065\u006c\u0074\u0061\u0020\u003c\u0020\u0031\u0030\u002e\u0030\u0020\u002a\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0026\u0026\u0020\u0074\u0065\u006d\u0070\u0020\u002d\u0020\u0064\u0065\u006c\u0074\u0061\u0020\u003c\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0026\u0026\u0020\u0074\u0065\u006d\u0070\u0020\u003c\u0020\u0070\u0069\u0078\u0065\u006c\u0073\u0029\u003b\u000d\u000a\u0023\u0065\u006c\u0073\u0065\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0061\u0062\u0073\u0028\u0076\u0061\u006c\u0075\u0065\u0029\u0020\u003c\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u003b\u000d\u000a\u0023\u0065\u006e\u0064\u0069\u0066\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0076\u0065\u0063\u0034\u0020\u0073\u0068\u0061\u0064\u0065\u0028\u0062\u006f\u006f\u006c\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0020\u0028\u0075\u005f\u0073\u0068\u006f\u0077\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u0026\u0026\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0029\u000d\u000a\u0020\u0020\u0020\u0020\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0067\u0065\u0074\u0049\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0043\u006f\u006c\u006f\u0072\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0067\u0065\u0074\u0043\u006f\u006c\u006f\u0072\u0028\u0075\u005f\u0072\u0061\u0064\u0069\u0075\u0073\u002c\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0045\u0043\u0029\u003b\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0066\u006c\u006f\u0061\u0074\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0053\u0075\u0072\u0066\u0061\u0063\u0065\u0046\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0063\u007a\u006d\u005f\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002c\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0069\u006e\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0020\u003d\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002e\u0069\u006e\u0076\u0065\u0072\u0073\u0065\u0052\u0061\u0064\u0069\u0069\u0020\u002a\u0020\u0070\u006f\u0069\u006e\u0074\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u0064\u006f\u0074\u0028\u0073\u0063\u0061\u006c\u0065\u0064\u002c\u0020\u0073\u0063\u0061\u006c\u0065\u0064\u0029\u0020\u002d\u0020\u0031\u002e\u0030\u003b\u000d\u000a\u007d\u000d\u000a\u000d\u000a\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0056\u0065\u0072\u0074\u0065\u0078\u0057\u0043\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u005b\u0033\u005d\u002e\u0078\u0079\u007a\u003b\u0020\u0020\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0020\u0069\u006e\u0020\u006d\u006f\u0064\u0065\u006c\u0020\u0063\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0056\u0065\u0072\u0074\u0065\u0078\u0045\u0043\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u005b\u0033\u005d\u002e\u0078\u0079\u007a\u003b\u0020\u0020\u002f\u002f\u0020\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0020\u0069\u006e\u0020\u006d\u006f\u0064\u0065\u006c\u0020\u0063\u006f\u006f\u0072\u0064\u0069\u006e\u0061\u0074\u0065\u0073\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0076\u0065\u0063\u0033\u0020\u0070\u0069\u0078\u0044\u0069\u0072\u0020\u003d\u0020\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0058\u0020\u003d\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002e\u0078\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0059\u0020\u003d\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002e\u0079\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u005a\u0020\u003d\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002e\u007a\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u007a\u0044\u0069\u0072\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u002c\u0020\u0031\u002e\u0030\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u006c\u0069\u006e\u0065\u0058\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0058\u002c\u0020\u0030\u0020\u002c\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u005a\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0033\u0020\u006c\u0069\u006e\u0065\u0059\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0030\u002c\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0059\u002c\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u005a\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0072\u0065\u0073\u0058\u0020\u003d\u0020\u0064\u006f\u0074\u0028\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u006c\u0069\u006e\u0065\u0058\u0029\u002c\u0020\u007a\u0044\u0069\u0072\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0072\u0065\u0073\u0058\u0020\u003c\u0020\u0063\u006f\u0073\u0028\u0075\u005f\u0078\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u0029\u0020\u002d\u0020\u0030\u002e\u0030\u0030\u0030\u0031\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0072\u0065\u0073\u0059\u0020\u003d\u0020\u0064\u006f\u0074\u0028\u006e\u006f\u0072\u006d\u0061\u006c\u0069\u007a\u0065\u0028\u006c\u0069\u006e\u0065\u0059\u0029\u002c\u0020\u007a\u0044\u0069\u0072\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0072\u0065\u0073\u0059\u0020\u003c\u0020\u0063\u006f\u0073\u0028\u0075\u005f\u0079\u0048\u0061\u006c\u0066\u0041\u006e\u0067\u006c\u0065\u0029\u002d\u0020\u0030\u002e\u0030\u0030\u0030\u0031\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0057\u0067\u0073\u0038\u0034\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0045\u0043\u0028\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0056\u0061\u006c\u0075\u0065\u0020\u003d\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0053\u0075\u0072\u0066\u0061\u0063\u0065\u0046\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002c\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u004f\u0063\u0063\u006c\u0075\u0064\u0065\u0064\u0020\u0062\u0079\u0020\u0074\u0068\u0065\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u003f\u000d\u000a\u0009\u0069\u0066\u0020\u0028\u0021\u0075\u005f\u0073\u0068\u006f\u0077\u0054\u0068\u0072\u006f\u0075\u0067\u0068\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0029\u000d\u000a\u0009\u007b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0044\u0069\u0073\u0063\u0061\u0072\u0064\u0020\u0069\u0066\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0050\u0045\u0052\u0046\u004f\u0052\u004d\u0041\u004e\u0043\u0045\u005f\u0049\u0044\u0045\u0041\u003a\u0020\u0041\u0020\u0063\u006f\u0061\u0072\u0073\u0065\u0020\u0063\u0068\u0065\u0063\u006b\u0020\u0066\u006f\u0072\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u0069\u006e\u0074\u0065\u0072\u0073\u0065\u0063\u0074\u0069\u006f\u006e\u0020\u0063\u006f\u0075\u006c\u0064\u0020\u0062\u0065\u0020\u0064\u006f\u006e\u0065\u0020\u006f\u006e\u0020\u0074\u0068\u0065\u0020\u0043\u0050\u0055\u0020\u0066\u0069\u0072\u0073\u0074\u002e\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u0069\u0066\u0020\u0028\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0056\u0061\u006c\u0075\u0065\u0020\u003c\u0020\u0030\u002e\u0030\u0029\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u0044\u0069\u0073\u0063\u0061\u0072\u0064\u0020\u0069\u0066\u0020\u0069\u006e\u0020\u0074\u0068\u0065\u0020\u0073\u0065\u006e\u0073\u006f\u0072\u0027\u0073\u0020\u0073\u0068\u0061\u0064\u006f\u0077\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u0069\u0066\u0020\u0028\u0069\u006e\u0053\u0065\u006e\u0073\u006f\u0072\u0053\u0068\u0061\u0064\u006f\u0077\u0028\u0073\u0065\u006e\u0073\u006f\u0072\u0056\u0065\u0072\u0074\u0065\u0078\u0057\u0043\u002c\u0020\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u002c\u0020\u0076\u005f\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0057\u0043\u0029\u0029\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0009\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u0020\u004e\u006f\u0074\u0065\u0073\u003a\u0020\u0045\u0061\u0063\u0068\u0020\u0073\u0075\u0072\u0066\u0061\u0063\u0065\u0020\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0073\u0020\u0073\u0068\u006f\u0075\u006c\u0064\u0020\u0068\u0061\u0076\u0065\u0020\u0061\u006e\u0020\u0061\u0073\u0073\u006f\u0063\u0069\u0061\u0074\u0065\u0064\u0020\u0074\u006f\u006c\u0065\u0072\u0061\u006e\u0063\u0065\u0020\u0062\u0061\u0073\u0065\u0064\u0020\u006f\u006e\u0020\u0074\u0068\u0065\u0020\u0066\u006c\u006f\u0061\u0074\u0069\u006e\u0067\u0020\u0070\u006f\u0069\u006e\u0074\u0020\u0065\u0072\u0072\u006f\u0072\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u0062\u006f\u006f\u006c\u0020\u0069\u0073\u004f\u006e\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0020\u003d\u0020\u0069\u0073\u004f\u006e\u0042\u006f\u0075\u006e\u0064\u0061\u0072\u0079\u0028\u0065\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0056\u0061\u006c\u0075\u0065\u002c\u0020\u0063\u007a\u006d\u005f\u0065\u0070\u0073\u0069\u006c\u006f\u006e\u0033\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0046\u0072\u0061\u0067\u0043\u006f\u006c\u006f\u0072\u0020\u003d\u0020\u0073\u0068\u0061\u0064\u0065\u0028\u0069\u0073\u004f\u006e\u0045\u006c\u006c\u0069\u0070\u0073\u006f\u0069\u0064\u0029\u003b\u000d\u000a\u000d\u000a\u007d', 'showSectorSegmentLines', 'entityCollection\x20is\x20required.', 'Assets/Textures/DotTransparent.png', 'Assets/Textures/ArrowTransparent.png', 'Assets/Textures/LinkPulse.png', 'PolylineTrailLinkType', 'Assets/Textures/LinkTrail.png', 'Assets/Textures/Flow1.png', 'Assets/Textures/Flow1.png', '\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0032\u0020\u0073\u0074\u0020\u003d\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0029\u002e\u0061\u0020\u003d\u003d\u0020\u0031\u002e\u0030\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u0065\u006c\u0073\u0065\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0031\u002e\u0030\u0020\u002d\u0020\u0066\u0072\u0061\u0063\u0074\u0028\u0074\u0069\u006d\u0065\u0020\u002d\u0020\u0073\u0074\u002e\u0073\u0029\u002c\u0020\u0073\u0074\u002e\u0074\u0029\u0029\u002e\u0061\u0020\u002a\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u006d\u0061\u0078\u0028\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0020\u002a\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u002a\u0020\u0033\u002e\u0030\u002c\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u003b\u000d\u000a\u007d', '\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0032\u0020\u0073\u0074\u0020\u003d\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0029\u002e\u0061\u0020\u003d\u003d\u0020\u0031\u002e\u0030\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u0065\u006c\u0073\u0065\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0031\u002e\u0030\u0020\u002d\u0020\u0066\u0072\u0061\u0063\u0074\u0028\u0074\u0069\u006d\u0065\u0020\u002d\u0020\u0073\u0074\u002e\u0073\u0029\u002c\u0020\u0073\u0074\u002e\u0074\u0029\u0029\u002e\u0061\u0020\u002a\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u006d\u0061\u0078\u0028\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0020\u002a\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u002a\u0020\u0031\u0030\u002e\u0030\u002c\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u003b\u000d\u000a\u007d', '\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0076\u0065\u0063\u0034\u0020\u0063\u006f\u006c\u006f\u0072\u003b\u000d\u000a\u0075\u006e\u0069\u0066\u006f\u0072\u006d\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0067\u006c\u006f\u0077\u0050\u006f\u0077\u0065\u0072\u003b\u000d\u000a\u000d\u000a\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0076\u005f\u0077\u0069\u0064\u0074\u0068\u003b\u000d\u000a\u000d\u000a\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0032\u0020\u0073\u0074\u0020\u003d\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0067\u006c\u006f\u0077\u0020\u003d\u0020\u0067\u006c\u006f\u0077\u0050\u006f\u0077\u0065\u0072\u0020\u002f\u0020\u0061\u0062\u0073\u0028\u0073\u0074\u002e\u0074\u0020\u002d\u0020\u0030\u002e\u0035\u0029\u0020\u002d\u0020\u0028\u0067\u006c\u006f\u0077\u0050\u006f\u0077\u0065\u0072\u0020\u002f\u0020\u0030\u002e\u0035\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0065\u006d\u0069\u0073\u0073\u0069\u006f\u006e\u0020\u003d\u0020\u006d\u0061\u0078\u0028\u0076\u0065\u0063\u0033\u0028\u0067\u006c\u006f\u0077\u0020\u002d\u0020\u0031\u002e\u0030\u0020\u002b\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0029\u002c\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0063\u006c\u0061\u006d\u0070\u0028\u0030\u002e\u0030\u002c\u0020\u0031\u002e\u0030\u002c\u0020\u0067\u006c\u006f\u0077\u0029\u0020\u002a\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u0020\u002a\u0020\u0073\u0074\u002e\u0073\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0065\u006d\u0069\u0073\u0073\u0069\u006f\u006e\u0020\u003d\u0020\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u003b\u000d\u000a\u007d\u000d\u000a', '\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0032\u0020\u0073\u0074\u0020\u003d\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0030\u002e\u0030\u002c\u0020\u0030\u002e\u0030\u0029\u0029\u002e\u0061\u0020\u003d\u003d\u0020\u0031\u002e\u0030\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u0065\u006c\u0073\u0065\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0073\u0074\u0029\u002e\u0061\u0020\u002a\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u002f\u002a\u0020\u0069\u0066\u0028\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0073\u0074\u0029\u002e\u0061\u0020\u003e\u0020\u0030\u002e\u0039\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u0076\u0065\u0063\u0033\u0028\u0031\u002e\u0030\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u0065\u006c\u0073\u0065\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u002a\u002f\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u006d\u0061\u0078\u0028\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u002a\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u002a\u0020\u0033\u002e\u0030\u002c\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u003b\u000d\u000a\u007d', '\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u000d\u000a\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u0031\u002e\u0035\u0020\u002a\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0032\u0020\u0073\u0074\u0020\u003d\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0064\u0069\u0073\u0020\u003d\u0020\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065\u0028\u0073\u0074\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0030\u002e\u0035\u002c\u0020\u0030\u002e\u0035\u0029\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0070\u0065\u0072\u0020\u003d\u0020\u0066\u0072\u0061\u0063\u0074\u0028\u0074\u0069\u006d\u0065\u0029\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0069\u0066\u0028\u0064\u0069\u0073\u0020\u003e\u0020\u0070\u0065\u0072\u0020\u002a\u0020\u0030\u002e\u0035\u0029\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u002f\u002f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0030\u002e\u0030\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0064\u0069\u0073\u0063\u0061\u0072\u0064\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u0065\u006c\u0073\u0065\u0020\u007b\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u0020\u0020\u002a\u0020\u0064\u0069\u0073\u0020\u002f\u0020\u0070\u0065\u0072\u0020\u002f\u0020\u0032\u002e\u0030\u003b\u000d\u000a\u0020\u0020\u0020\u0020\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u003b\u000d\u000a\u007d', 'Assets/Textures/20200824102248108.png', '\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u007b\u0020\u000d\u000a\u0020\u0063\u007a\u006d\u005f\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0067\u0065\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u004d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0028\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u0029\u003b\u0020\u000d\u000a\u0020\u0076\u0065\u0063\u0032\u0020\u0073\u0074\u0020\u003d\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u0049\u006e\u0070\u0075\u0074\u002e\u0073\u0074\u002a\u0072\u0065\u0070\u0065\u0061\u0074\u003b\u0020\u000d\u000a\u0020\u0020\u0020\u0076\u0065\u0063\u0034\u0020\u0063\u006f\u006c\u006f\u0072\u0049\u006d\u0061\u0067\u0065\u0020\u003d\u0020\u0074\u0065\u0078\u0074\u0075\u0072\u0065\u0032\u0044\u0028\u0069\u006d\u0061\u0067\u0065\u002c\u0020\u0076\u0065\u0063\u0032\u0028\u0066\u0072\u0061\u0063\u0074\u0028\u0073\u0074\u002e\u0073\u0020\u002d\u0020\u0074\u0069\u006d\u0065\u002a\u0072\u0065\u0070\u0065\u0061\u0074\u0029\u002c\u0020\u0066\u0072\u0061\u0063\u0074\u0028\u0073\u0074\u002e\u0074\u0029\u0029\u0029\u003b\u0020\u000d\u000a\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0061\u006c\u0070\u0068\u0061\u0020\u003d\u0063\u006f\u006c\u006f\u0072\u0049\u006d\u0061\u0067\u0065\u002e\u0061\u0020\u002a\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0061\u003b\u0020\u000d\u000a\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u002e\u0064\u0069\u0066\u0066\u0075\u0073\u0065\u0020\u003d\u0020\u0063\u006f\u006c\u006f\u0072\u002e\u0072\u0067\u0062\u0020\u003b\u0020\u000d\u000a\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u0020\u006d\u0061\u0074\u0065\u0072\u0069\u0061\u006c\u003b\u0020\u000d\u000a\u007d\u0020', 'position\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'normal\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'st\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'binormal\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'tangent\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'color\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'vertices\x20must\x20be\x20defined\x20and\x20be\x20equal\x20to\x203.', 'Either\x20positions\x20or\x20triangles\x20must\x20be\x20defined.', 'positions\x20must\x20be\x20defined\x20and\x20have\x20at\x20least\x20a\x20length\x20of\x203\x20and\x20the\x20length\x20must\x20be\x20a\x20multiple\x20of\x203.', 'colors\x20must\x20have\x20the\x20same\x20length\x20as\x20positions.', 'position\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'normal\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'st\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'binormal\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'tangent\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'color\x20must\x20be\x20defined\x20based\x20on\x20the\x20specified\x20vertex\x20format.', 'vertices\x20must\x20be\x20defined\x20and\x20be\x20equal\x20to\x203.', 'Either\x20positions\x20or\x20triangles\x20must\x20be\x20defined.', 'positions\x20must\x20be\x20defined\x20and\x20have\x20at\x20least\x20a\x20length\x20of\x203\x20and\x20the\x20length\x20must\x20be\x20a\x20multiple\x20of\x203.', 'colors\x20must\x20have\x20the\x20same\x20length\x20as\x20positions.', '\u002f\u002f\u0041\u0064\u0061\u0070\u0074\u0065\u0064\u0020\u0066\u0072\u006f\u006d\u0020\u0050\u0065\u0072\u0049\u006e\u0073\u0074\u0061\u006e\u0063\u0065\u0046\u006c\u0061\u0074\u0043\u006f\u006c\u006f\u0072\u0041\u0070\u0070\u0065\u0061\u0072\u0061\u006e\u0063\u0065\u0056\u0053\u002e\u0067\u006c\u0073\u006c\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0033\u0044\u0048\u0069\u0067\u0068\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0020\u0076\u0065\u0063\u0033\u0020\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0033\u0044\u004c\u006f\u0077\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0020\u0076\u0065\u0063\u0034\u0020\u0063\u006f\u006c\u006f\u0072\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0061\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0020\u0066\u006c\u006f\u0061\u0074\u0020\u0062\u0061\u0074\u0063\u0068\u0049\u0064\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0034\u0020\u0076\u005f\u0063\u006f\u006c\u006f\u0072\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0029\u0020\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u007b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0076\u0065\u0063\u0034\u0020\u0070\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u0063\u006f\u006d\u0070\u0075\u0074\u0065\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0028\u0029\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0076\u005f\u0063\u006f\u006c\u006f\u0072\u0020\u003d\u0020\u0063\u006f\u006c\u006f\u0072\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0020\u003d\u0020\u0063\u007a\u006d\u005f\u006d\u006f\u0064\u0065\u006c\u0056\u0069\u0065\u0077\u0050\u0072\u006f\u006a\u0065\u0063\u0074\u0069\u006f\u006e\u0052\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0054\u006f\u0045\u0079\u0065\u0020\u002a\u0020\u0070\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u007d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020', '\u002f\u002f\u0041\u0064\u0061\u0070\u0074\u0065\u0064\u0020\u0066\u0072\u006f\u006d\u0020\u0050\u0065\u0072\u0049\u006e\u0073\u0074\u0061\u006e\u0063\u0065\u0046\u006c\u0061\u0074\u0043\u006f\u006c\u006f\u0072\u0041\u0070\u0070\u0065\u0061\u0072\u0061\u006e\u0063\u0065\u0046\u0053\u002e\u0067\u006c\u0073\u006c\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0076\u0061\u0072\u0079\u0069\u006e\u0067\u0020\u0076\u0065\u0063\u0034\u0020\u0076\u005f\u0063\u006f\u006c\u006f\u0072\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0029\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u007b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0067\u006c\u005f\u0046\u0072\u0061\u0067\u0043\u006f\u006c\u006f\u0072\u0020\u003d\u0020\u0076\u005f\u0063\u006f\u006c\u006f\u0072\u003b\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u007d\u000a\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020\u0020', 'Assets/Textures/stone.png', 'px;\x20margin:\x200px;\x20display:\x20none;', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 'CesiumHeatmap\x20already\x20defined.', 'position:\x20absolute;top:\x2050px;left:\x2020px;z-index:\x20200;background:\x20transparent;', '\x20\x20\x20\x20 + \ No newline at end of file diff --git a/yanzhu-bigscreen/src/views/bimManage.vue b/yanzhu-bigscreen/src/views/bimManage.vue index abdbb725..b59e634a 100644 --- a/yanzhu-bigscreen/src/views/bimManage.vue +++ b/yanzhu-bigscreen/src/views/bimManage.vue @@ -61,7 +61,9 @@
开累完成(万元)
-
{{ prj.accumulatedCost }}
+
+ {{ prj.accumulatedCost }} +
@@ -71,16 +73,26 @@
-
人员
+
+ 人员 +
-
+
{{ wk.value }}
-
+
{{ wk.text }}
@@ -89,7 +101,12 @@
- +
@@ -101,13 +118,25 @@
- +
计划完成
- +
实际完成
@@ -123,7 +152,9 @@
-
{{ safetyInfo.safetyCount }}
+
+ {{ safetyInfo.safetyCount }} +
问题数
@@ -132,7 +163,9 @@
-
{{ safetyInfo.safetyRectifyCount }}
+
+ {{ safetyInfo.safetyRectifyCount }} +
整改数
@@ -141,7 +174,9 @@
-
{{ safetyInfo.safetyRectifyRate }}%
+
+ {{ safetyInfo.safetyRectifyRate }}% +
整改率
@@ -150,21 +185,32 @@
-
{{ safetyInfo.safetyTimeoutCount }}
+
+ {{ safetyInfo.safetyTimeoutCount }} +
超时数
-
项目全景
+
+ 项目全景 +