commit a286b5541fc9f58e887ab20f52ccb1c69a1abc0e Author: guangyin Date: Mon Sep 4 17:20:23 2023 +0800 feat:德邦化工demo 上传 diff --git a/.env.developmentLocal b/.env.developmentLocal new file mode 100644 index 0000000..4220c4c --- /dev/null +++ b/.env.developmentLocal @@ -0,0 +1,13 @@ +#开发环境 +NODE_ENV:"development" +# 页面标题 +VUE_APP_TITLE = 汉邦唐全真数字服务平台 +# UE4服务地址 +VUE_APP_PALYER_URL="192.168.1.66:8080" +# 服务地址 +VUE_APP_BASE_API_URL="/dev-api" +# 微前端地址 +VUE_APP_REMOTES_URL="http://119.45.158.12/common/" +# 当前应用部署地址 +VUE_APP_EXPOSES_URL="http://192.168.1.66:8081/" + diff --git a/.env.developmentUserGY b/.env.developmentUserGY new file mode 100644 index 0000000..e2f7e15 --- /dev/null +++ b/.env.developmentUserGY @@ -0,0 +1,13 @@ +#开发环境 +NODE_ENV:"development" +# 页面标题 +VUE_APP_TITLE = 汉邦唐全真数字服务平台 +# UE4服务地址 +VUE_APP_PALYER_URL="192.168.1.66:8080" +# 服务地址 +VUE_APP_BASE_API_URL="/dev-api" +# 微前端地址 +VUE_APP_REMOTES_URL="http://119.45.158.12/common/" +# 当前应用部署地址 +VUE_APP_EXPOSES_URL="http://192.168.2.72:8080" + diff --git a/.env.developmentView b/.env.developmentView new file mode 100644 index 0000000..96e93cb --- /dev/null +++ b/.env.developmentView @@ -0,0 +1,13 @@ +#开发环境 +NODE_ENV:"development" +# 页面标题 +VUE_APP_TITLE = 汉邦唐全真数字服务平台 +# UE4服务地址 +VUE_APP_PALYER_URL="172.16.0.77:8080" +# 服务地址 +VUE_APP_BASE_API_URL="/dev-api" +# 微前端地址 +VUE_APP_REMOTES_URL="http://119.45.158.12/common/" +# 当前应用部署地址 +VUE_APP_EXPOSES_URL="http://172.16.0.77/" + diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..d92bb39 --- /dev/null +++ b/.env.production @@ -0,0 +1,16 @@ +#生产环境 +NODE_ENV:"production" +# 页面标题 +VUE_APP_TITLE = 汉邦唐全真数字服务平台 +# UE4服务地址 +VUE_APP_PALYER_URL="172.16.0.77:8080" +# 服务地址 +VUE_APP_BASE_API_URL="/prod" +# 网关 +VUE_APP_GATEWAY_URL="/prod" +# 服务前缀 +VUE_APP_SERVICE_PREFIX= '{"park":"/park","system":"/system"}' +# 微前端地址 +VUE_APP_REMOTES_URL="http://119.45.158.12/common/" +# 当前应用部署地址 +VUE_APP_EXPOSES_URL="http://172.16.0.77/debang/" diff --git a/.env.productionLocal b/.env.productionLocal new file mode 100644 index 0000000..34c728c --- /dev/null +++ b/.env.productionLocal @@ -0,0 +1,16 @@ +#生产环境 +NODE_ENV:"production" +# 页面标题 +VUE_APP_TITLE = 汉邦唐全真数字服务平台 +# UE4服务地址 +VUE_APP_PALYER_URL="192.168.1.66:8080" +# 服务地址 +VUE_APP_BASE_API_URL="" +# 网关 +VUE_APP_GATEWAY_URL="/dev-api" +# 服务前缀 +VUE_APP_SERVICE_PREFIX= '{"park":"/park","system":"/system"}' +# 微前端地址 +VUE_APP_REMOTES_URL="http://119.45.158.12/common/" +# 当前应用部署地址 +VUE_APP_EXPOSES_URL="http://192.168.1.66/dev/debang/" diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..76fdca8 --- /dev/null +++ b/.env.test @@ -0,0 +1,12 @@ +#测试环境 +NODE_ENV:"development" +# 页面标题 +VUE_APP_TITLE = 汉邦唐全真数字服务平台 +# UE4服务地址 +VUE_APP_PALYER_URL="172.16.0.77:8080" +# 服务地址 +VUE_APP_BASE_API_URL="" +# 微前端地址 +VUE_APP_REMOTES_URL="http://192.168.2.99:8080" +# 当前应用部署地址 +VUE_APP_EXPOSES_URL="" \ No newline at end of file diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..c59bd1e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +ac.min.js \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a2377b --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +.DS_Store +node_modules +/dist +package-lock.json +/src/assets/common + + +# local env files +.env.development +# .env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/README.md b/README.md new file mode 100644 index 0000000..cbd65ca --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# hbt-template-ui + +## Project setup +``` +npm install +``` + +### Compiles and hot-reloads for development +``` +npm run serve +``` + +### 本框架采用ts与法 具体依赖vue-property-decorator +``` +see vue-property-decorator用法详解 (https://blog.csdn.net/weixin_44116302/article/details/111225763#PropSync_141) +``` + +### 采用模块联邦 +``` +远程引用需要先在global.d.ts中注册 +例:如需使用远程地图 +1.在global.d.ts中注册 declare module 'common/map'; +2.在页面中引用 +@Component({ + components:{MapComponent:()=>import("common/map") } +}) +3.在html中应用 +``` diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..e955840 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,5 @@ +module.exports = { + presets: [ + '@vue/cli-plugin-babel/preset' + ] +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..a7e062c --- /dev/null +++ b/package.json @@ -0,0 +1,90 @@ +{ + "name": "test", + "version": "0.1.0", + "private": true, + "scripts": { + "serve": "vue-cli-service serve --mode development", + "local": "vue-cli-service serve --mode developmentLocal", + "userGY": "vue-cli-service serve --mode developmentUserGY", + "build": "vue-cli-service build --mode production", + "buildLocal": "vue-cli-service build --mode productionLocal", + "test": "vue-cli-service build --mode test", + "lint": "vue-cli-service lint" + }, + "dependencies": { + "@turf/turf": "^6.5.0", + "@types/webpack-env": "^1.18.0", + "animate.css": "^4.1.1", + "axios": "^1.3.4", + "core-js": "^3.8.3", + "echarts": "^5.4.2", + "echarts-wordcloud": "^2.1.0", + "element-ui": "^2.15.13", + "file-saver": "^2.0.5", + "flv.js": "^1.6.2", + "hbt-common": "0.0.7", + "jquery": "^3.6.4", + "layui-layer": "^1.0.9", + "mockjs": "^1.1.0", + "moment": "^2.29.4", + "screenfull": "^6.0.2", + "video.js": "^8.3.0", + "videojs-contrib-hls": "^5.15.0", + "vue": "^2.6.14", + "vue-class-component": "^7.2.3", + "vue-json-excel": "^0.3.0", + "vue-property-decorator": "^9.1.2", + "vue-router": "^3.5.1", + "vuex": "^3.6.2" + }, + "devDependencies": { + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "@vue/cli-plugin-babel": "~5.0.0", + "@vue/cli-plugin-eslint": "~5.0.0", + "@vue/cli-plugin-router": "~5.0.0", + "@vue/cli-plugin-typescript": "~5.0.0", + "@vue/cli-plugin-vuex": "~5.0.0", + "@vue/cli-service": "~5.0.0", + "@vue/eslint-config-typescript": "^9.1.0", + "compression-webpack-plugin": "^5.0.2", + "eslint": "^7.32.0", + "eslint-plugin-vue": "^8.0.3", + "html-loader": "^4.2.0", + "sass": "^1.32.7", + "sass-loader": "^12.0.0", + "svg-sprite-loader": "^6.0.11", + "typescript": "~4.5.5", + "vue-template-compiler": "^2.6.14" + }, + "eslintConfig": { + "root": true, + "env": { + "node": true + }, + "extends": [ + "plugin:vue/essential", + "eslint:recommended", + "@vue/typescript/recommended" + ], + "parserOptions": { + "ecmaVersion": 2020 + }, + "rules": { + "@typescript-eslint/no-explicit-any": [ + "off" + ], + "vue/no-unused-components": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "off" + } + }, + "globals": { + "ue": true + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not dead" + ] +} diff --git a/public/ac.min.js b/public/ac.min.js new file mode 100644 index 0000000..9661997 --- /dev/null +++ b/public/ac.min.js @@ -0,0 +1,513 @@ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(v){var D=0;return function(){return D>>0,$jscomp.propertyToPolyfillSymbol[O]=$jscomp.IS_SYMBOL_NATIVE? +$jscomp.global.Symbol(O):$jscomp.POLYFILL_PREFIX+I+"$"+O),$jscomp.defineProperty(E,$jscomp.propertyToPolyfillSymbol[O],{configurable:!0,writable:!0,value:D})))};$jscomp.initSymbol=function(){};$jscomp.iteratorPrototype=function(v){v={next:v};v[Symbol.iterator]=function(){return this};return v};$jscomp.underscoreProtoCanBeSet=function(){var v={a:!0},D={};try{return D.__proto__=v,D.a}catch(I){}return!1}; +$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(v,D){v.__proto__=D;if(v.__proto__!==D)throw new TypeError(v+" is not extensible");return v}:null;$jscomp.makeIterator=function(v){var D="undefined"!=typeof Symbol&&Symbol.iterator&&v[Symbol.iterator];return D?D.call(v):$jscomp.arrayIterator(v)};$jscomp.generator={}; +$jscomp.generator.ensureIteratorResultIsObject_=function(v){if(!(v instanceof Object))throw new TypeError("Iterator result "+v+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null}; +$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(v){this.yieldResult=v}; +$jscomp.generator.Context.prototype.throw_=function(v){this.abruptCompletion_={exception:v,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(v){this.abruptCompletion_={return:v};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(v){this.abruptCompletion_={jumpTo:v};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(v,D){this.nextAddress=D;return{value:v}}; +$jscomp.generator.Context.prototype.yieldAll=function(v,D){v=$jscomp.makeIterator(v);var I=v.next();$jscomp.generator.ensureIteratorResultIsObject_(I);if(I.done)this.yieldResult=I.value,this.nextAddress=D;else return this.yieldAllIterator_=v,this.yield(I.value,D)};$jscomp.generator.Context.prototype.jumpTo=function(v){this.nextAddress=v};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0}; +$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(v,D){this.catchAddress_=v;void 0!=D&&(this.finallyAddress_=D)};$jscomp.generator.Context.prototype.setFinallyBlock=function(v){this.catchAddress_=0;this.finallyAddress_=v||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(v,D){this.nextAddress=v;this.catchAddress_=D||0}; +$jscomp.generator.Context.prototype.enterCatchBlock=function(v){this.catchAddress_=v||0;v=this.abruptCompletion_.exception;this.abruptCompletion_=null;return v};$jscomp.generator.Context.prototype.enterFinallyBlock=function(v,D,I){I?this.finallyContexts_[I]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=v||0;this.finallyAddress_=D||0}; +$jscomp.generator.Context.prototype.leaveFinallyBlock=function(v,D){D=this.finallyContexts_.splice(D||0)[0];if(D=this.abruptCompletion_=this.abruptCompletion_||D){if(D.isException)return this.jumpToErrorHandler_();void 0!=D.jumpTo&&this.finallyAddress_I&&(I=Math.max(I+O,0));Id?g:d},e)}return b(a,1)}function I(a){let b=a.length,c=Array(b),e;for(let d=0;de?e-48:(e&223)-65+10,c[d]=e;return c.reduce((d,h)=>16*d+h,0)}function E(a){if(void 0!=a){var b=[];if(/^(rgb|RGB)/.test(a)){a=a.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");for(let c of a)b.push(Number((Number(c)/255).toFixed(1)))}else if(/^#/.test(a)){if(/^#[0-9A-F]{3}$/i.test(a)){let c= +"#";a.replace(/[0-9A-F]/ig,function(e){c+=e+e});a=c}/^#[0-9A-F]{6}$/i.test(a)&&a.replace(/[0-9A-F]{2}/ig,function(c){c=I(c);b.push(Number((c/255).toFixed(1)))})}else a instanceof Array&&(b=a);3==b.length&&b.push(1);return b}}function O(a){if(void 0!=a){var b,c=D(a);2==c?b=[[a]]:3==c?b=[a]:4==c&&(b=a);if(b)for(let e of b)for(let d of e)for(let h of d)2==h.length&&h.push(0);return b}}function T(a){if(void 0!=a)return 1==D(a)?[a]:a}function F(a){return a instanceof Array?a:[a]}function K(a){let b=[]; +if(a instanceof Array)for(let c in a)b[c]=a[c].toString();else b=[a.toString()];return b}function S(a){switch(typeof a){case "undefined":return!0;case "string":if(0===a.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case "boolean":if(!a)return!0;break;case "number":if(isNaN(a))return!0;break;case "object":if(null===a||0===a.length)return!0;for(var b in a)return!1;return!0}return!1}function pa(a,b){for(a=a.toString();a.length=q?(e=g,a.apply(h,d),c&&(clearTimeout(c),c=null)):c||(c=setTimeout(()=>{e=+new Date;c=null;a.apply(h,d)},q))}}function Ha(a){switch(a){case da.StartingProcess:return"starting process...";case da.CheckingBusy:return"checking...";case da.ProcessStartFailed:return"process start failed!";case da.ProcessStarted:return"process started";case da.LoadingProject:return"loading project...";case da.ProjectLoaded:return"project loaded"}}function wa(a){"string"===typeof a&&(a=document.getElementById(a)); +return a}function Ia(a){return R.isIOSDevice&&R.isInWeixinBrowser?!1:a==sa.abnormal||a==sa.instance_disconnected}function aa(a,b){return void 0!==a&&null!==a?a:b}function xa(a){return a.keyCode===ea.Shift&&"ShiftRight"===a.code?ea.RightShift:a.keyCode===ea.Control&&"ControlRight"===a.code?ea.RightControl:a.keyCode===ea.Alt&&"AltRight"===a.code?ea.RightAlt:a.keyCode}var p={None:0,Camera_PlayAnimation:1,Camera_StopAnimation:2,Misc_EnterReportMode:3,Misc_ExitReportMode:4,Misc_SetDateTime:5,Camera_GetCamera:6, +Camera_SetState:7,Camera_Set:8,Camera_LookAtBBox:9,Coord_World2Screen:10,Coord_Screen2World:11,InfoTree_SetVisibility:12,InfoTree_Show:13,InfoTree_Hide:14,InfoTree_EnableXRay:15,InfoTree_DisableXRay:16,TileLayer_Add:17,HeatMap_Add:18,HeatMap_Update:19,HeatMap_AddPoints:20,HeatMap_RemovePoints:21,HeatMap_Delete:22,HeatMap_Show:23,HeatMap_Hide:24,HeatMap_Focus:25,HighlightArea_Add:26,HighlightArea_Delete:27,HighlightArea_Update:28,Polygon3D_Add:29,Polygon3D_Delete:30,Misc_AddImageButton:31,Misc_DeleteImageButton:32, +Misc_AddAnimatedImageButton:33,Settings_SetMainUIVisibility:34,Settings_SetMousePickMask:35,Tag_Add:36,Tag_Delete:37,Tag_Update:38,Tag_Clear:39,Tag_Focus:40,Beam_Add:41,Beam_Update:42,Beam_Delete:43,Beam_Clear:44,Beam_Focus:45,Beam_Show:350,Beam_Hide:351,Beam_ShowAll:352,Beam_HideAll:353,RadiationPoint_Add:46,RadiationPoint_Update:47,RadiationPoint_Delete:48,RadiationPoint_Clear:49,Polygon_Add:50,Polygon_Update:51,Polygon_Delete:52,Polygon_Clear:53,Polygon_Highlight:54,Polygon_StopHighlight:325,Polygon_Glow:55, +Polygon_Focus:56,Tag_FocusAll:57,Tag_Show:58,Tag_Hide:59,Tag_ShowAll:60,Tag_HideAll:61,RadiationPoint_Focus:62,RadiationPoint_FocusAll:63,RadiationPoint_Show:64,RadiationPoint_Hide:65,RadiationPoint_ShowAll:66,RadiationPoint_HideAll:67,Polygon_Show:68,Polygon_Hide:69,Polygon3D_Update:70,Polygon3D_Clear:71,Polygon3D_Focus:72,Polygon3D_Show:73,Polygon3D_Hide:74,Polygon3D_Highlight:75,Polygon3D_Glow:76,Polygon3D_StopGlow:77,HighlightArea_Clear:78,HighlightArea_Focus:79,HighlightArea_Show:80,HighlightArea_Hide:81, +Misc_GetVersion:82,TileLayer_Update:83,TileLayer_Delete:84,TileLayer_Focus:85,TileLayer_EnableXRay:86,TileLayer_DisableXRay:87,TileLayer_Show:88,TileLayer_Hide:89,Tag_Get:90,RadiationPoint_Get:91,Polygon_Get:92,Polygon3D_Get:93,HighlightArea_Get:94,TileLayer_Get:95,Beam_Get:96,HeatMap_Get:97,Settings_GetMapMode:98,Settings_SetMapMode:99,Settings_SetMapURL:100,Settings_SetWMTSLayerVisible:320,TileLayer_Actor_Show:101,TileLayer_Actor_Hide:102,TileLayer_Actor_Focus:103,TileLayer_Actor_Highlight:104, +TileLayer_Actor_StopHightlight:105,CustomObject_Add:106,CustomObject_Update:107,CustomObject_Delete:108,CustomObject_Get:109,CustomObject_Focus:110,CustomObject_Show:111,CustomObject_Hide:112,CustomObject_SetTintColor:326,HeatMap_Clear:113,CustomTag_Clear:39,CustomTag_Delete:37,CustomTag_Focus:40,CustomTag_FocusAll:57,CustomTag_Show:58,CustomTag_Hide:59,CustomTag_ShowAll:60,CustomTag_HideAll:61,CustomTag_Add:114,CustomTag_Update:115,CustomTag_Get:116,Polyline_Add:117,Polyline_Update:118,Polyline_Delete:119, +Polyline_Clear:120,Polyline_Focus:121,Polyline_Get:122,Polyline_Show:123,Polyline_Hide:124,Polyline_ShowAll:125,Polyline_HideAll:126,VideoProjection_Add:127,VideoProjection_Update:128,VideoProjection_Delete:129,VideoProjection_Show:130,VideoProjection_Hide:131,VideoProjection_Get:132,VideoProjection_Focus:133,Misc_PlayVideo:134,Misc_StopPlayVideo:135,Weather_SetParams:136,Weather_GetParams:137,Weather_SetDate:138,Weather_GetDate:139,ODLine_Add:140,ODLine_Update:141,ODLine_Delete:142,ODLine_Clear:143, +ODLine_Focus:144,ODLine_Get:145,ODLine_Show:146,ODLine_Hide:147,ODLine_ShowAll:148,ODLine_HideAll:149,Misc_SetWindowResolution:150,Misc_CallBPFunction:151,Settings_SetHighlightColor:152,InfoTree_ShowByGroupId:153,InfoTree_HideByGroupId:154,InfoTree_HighlightByGroupId:155,InfoTree_DeleteByGroupId:156,EditHelper_Start:157,EditHelper_Quit:158,EditHelper_Finish:159,EditHelper_SetParam:160,Settings_SetFovX:161,TileLayer_Actor_ShowAll:162,TileLayer_Actor_HideAll:163,CameraTour_Add:164,CameraTour_Update:165, +CameraTour_Play:166,CameraTour_Stop:167,CameraTour_Delete:168,Tag_PopupWindow_Show:169,Tag_PopupWindow_Hide:170,Tag_PopupWindow_ShowAll:171,Tag_PopupWindow_HideAll:172,Settings_SetOceanColor:173,Misc_ShowAllFoliages:174,Misc_HideAllFoliages:175,Tools_StartPolygonClip:176,Tools_StopClip:177,TileLayer_SetAllowClip:178,Panorama_Add:179,Panorama_Update:180,Panorama_Delete:181,Panorama_Clear:182,Panorama_Focus:183,Panorama_Get:184,Decal_Add:185,Decal_Update:186,Decal_Delete:187,Decal_Clear:188,Decal_Focus:189, +Decal_FocusAll:190,Decal_Get:191,Misc_PlayMovie:192,Misc_StopMovie:193,Tools_SetMeasurement:194,Tools_StartMeasurement:195,Tools_StopMeasurement:196,Viewshed_Add:197,Viewshed_Update:198,Viewshed_Focus:199,Viewshed_Delete:200,Viewshed_Clear:201,Viewshed_Get:202,TileLayer_SetStyle:203,Tools_LineIntersect:204,Coord_PCS2GCS:205,Coord_GCS2PCS:206,DynamicWater_Add:207,DynamicWater_Update:208,DynamicWater_Focus:209,DynamicWater_Delete:210,DynamicWater_Clear:211,DynamicWater_Get:212,DynamicWater_Show:213, +DynamicWater_Hide:214,Quit:215,TileLayer_Actor_Unhighlight:216,InfoTree_Get:217,Reset:218,SaveProject:225,CustomObject_Clear:219,CustomObject_Highlight:220,CustomObject_Unhighlight:221,CustomObject_StopHighlight:222,CustomObject_CallFunction:223,CustomObject_AddByTileLayer:224,Tools_StartPlaneClip:226,Tools_StopPlaneClip:228,Tools_StartVolumeClip:229,Tools_UpdateVolumeClip:230,Tools_StopVolumeClip:231,Tools_StartSkylineAnalysis:232,Tools_StopSkylineAnalysis:233,Tools_ExportSkyline:234,Tools_StartViewshedAnalysis:235, +Tools_StopViewshedAnalysis:236,Camera_Move:237,TileLayer_SetCollision:238,TileLayer_Modifier_Add:239,TileLayer_Modifier_Update:240,TileLayer_Modifier_Delete:241,TileLayer_Modifier_Clear:242,Misc_StartProcess:243,Settings_SetCampassVisible:244,Tools_StartGeometryEdit:245,Tools_StopGeometryEdit:246,Settings_SetEnableInteract:247,Camera_PauseAnimation:248,Camera_ResumeAnimation:249,Settings_SetInteractiveMode:250,CameraTour_Pause:251,CameraTour_Resume:252,Settings_SetTerrainAlpha:253,CustomMesh_Add:254, +CustomMesh_Delete:255,CustomMesh_Clear:256,CustomMesh_Update:257,CustomMesh_Get:258,CustomMesh_Focus:259,CustomMesh_Show:260,CustomMesh_Hide:261,CustomMesh_ShowAll:262,CustomMesh_HideAll:263,Settings_EnableCameraMovingEvent:264,Marker_Add:265,Marker_Update:266,Marker_Get:267,Marker_Delete:268,Marker_Clear:269,Marker_Focus:270,Marker_FocusAll:271,Marker_Show:272,Marker_Hide:273,Marker_ShowAll:274,Marker_HideAll:275,Marker_ShowPopupWindow:276,Marker_HidePopupWindow:277,Marker_ShowAllPopupWindow:278, +Marker_HideAllPopupWindow:279,TileLayer_SetViewportVisible:280,TileLayer_GetObjectIDs:281,Polygon3D_StopHighlight:282,Tools_StartFloodFill:283,Tools_StopFloodFill:284,FloodFill_Add:285,FloodFill_Delete:286,FloodFill_Clear:287,FloodFill_Update:288,FloodFill_Get:289,FloodFill_Focus:290,FloodFill_Show:291,FloodFill_Hide:292,FloodFill_ShowAll:293,FloodFill_HideAll:294,Cesium3DTile_Add:295,Cesium3DTile_Delete:296,Cesium3DTile_Clear:297,Cesium3DTile_Update:298,Cesium3DTile_Get:299,Cesium3DTile_Focus:300, +Cesium3DTile_Show:301,Cesium3DTile_Hide:302,Cesium3DTile_ShowAll:303,Cesium3DTile_HideAll:304,TileLayer_GetActorInfoFromDB:305,ShapeFileLayer_Add:306,ShapeFileLayer_Delete:307,ShapeFileLayer_Clear:308,ShapeFileLayer_Update:309,ShapeFileLayer_Get:310,ShapeFileLayer_Focus:311,ShapeFileLayer_Show:312,ShapeFileLayer_Hide:313,ShapeFileLayer_ShowAll:314,ShapeFileLayer_HideAll:315,ShapeFileLayer_OpenShapeFileLayer:316,Weather_SimulateTime:317,TileLayer_Actor_GetInfo:318,Camera_GetAnimationList:319,TileLayer_CutPolygon_Add:321, +TileLayer_CutPolygon_Update:322,TileLayer_CutPolygon_Delete:323,TileLayer_CutPolygon_Clear:324,Marker3D_Add:327,Marker3D_Delete:328,Marker3D_Clear:329,Marker3D_Update:330,Marker3D_Get:331,Marker3D_Focus:332,Marker3D_Show:333,Marker3D_Hide:334,Marker3D_ShowAll:335,Marker3D_HideAll:336,Camera_GetAnimationImage:337,Tools_ReplaceTexture:338,Tools_RestoreTexture:339,Light_Add:340,Light_Delete:341,Light_Update:343,Light_Get:344,Light_Clear:342,Light_Focus:345,Light_Show:346,Light_Hide:347,Light_ShowAll:348, +Light_HideAll:349,WaterMesh_Add:354,WaterMesh_Update:355,WaterMesh_Delete:356,WaterMesh_Clear:357,WaterMesh_Get:358,WaterMesh_Focus:359,WaterMesh_Show:360,WaterMesh_Hide:361,WaterMesh_ShowAll:362,WaterMesh_HideAll:363,CustomObject_StartMove:364,CustomObject_StopMove:365,CustomObject_OverrideMaterial:366,CustomObject_RestoreMaterial:367,Settings_SetReport:368,Settings_GetReport:369,Settings_SetControl:370,Settings_GetControl:371,Settings_SetPostProcess:372,Settings_GetPostProcess:373,Settings_SetCamera:374, +Settings_GetCamera:375,CustomObject_SetViewportVisible:376,WaterFlowField_Add:377,WaterFlowField_Update:378,WaterFlowField_Delete:379,WaterFlowField_Clear:380,WaterFlowField_Get:381,WaterFlowField_Focus:382,WaterFlowField_Show:383,WaterFlowField_Hide:384,TileLayer_SetViewHeightRange:385,Tools_StartVisiblityAnalysis:386,Tools_StopVisiblityAnalysis:387,Tools_StartViewDomeAnalysis:388,Tools_StopViewDomeAnalysis:389,Tools_StartCutFillAnalysis:390,Tools_StopCutFillAnalysis:391,Tools_StartSunshineAnalysis:392, +Tools_StopSunshineAnalysis:393,Tools_StartTerrainSlopeAnalysis:394,Tools_StopTerrainSlopeAnalysis:395,Tools_StartContourLineAnalysis:396,Tools_StopContourLineAnalysis:397,TileLayer_GetAllFlattenData:398,Marker_SetupPOIAttachment:399,HeatMap3D_Add:400,HeatMap3D_Update:401,HeatMap3D_Focus:402,HeatMap3D_Delete:403,HeatMap3D_Show:404,HeatMap3D_Hide:405,HeatMap3D_Get:406,HeatMap3D_Clear:407,ShapeFileLayer_HighlightFeature:408,ShapeFileLayer_UnHighlightFeature:409,ShapeFileLayer_FocusFeature:410,ShapeFileLayer_GetFeatureInfo:411, +Misc_EnterMultiViewport:412,Misc_ExitMultiViewport:413,Misc_SetActivateMultiViewport:414,Misc_GetActivateMultiViewport:415,Panorama_Enter:416,Panorama_Exit:417,Panorama_Switch:418,VTPKService_Get:419,VTPKService_Set:420,SimulateTest__:421,Settings_CursorAutoSync:422,InfoTree_Focus:423,Marker_ShowByGroupId:424,Marker_HideByGroupId:425,Marker_DeleteByGroupId:426,ImageryLayer_Init:427,ImageryLayer_Add:428,Camera_LockBBox:429,Camera_UnLockBBox:430,Settings_SetWMTSLayerOpacity:431,Camera_EnterEarthCapture:432, +Camera_ExitEarthCapture:433,Tools_AnalysisPopupAttributes:434,Tools_AnalysisCloseAttributes:435,ImageryLayer_Show:436,ImageryLayer_Hide:437,ImageryLayer_Delete:438,Settings_GetInteractiveMode:439,VideoProjection_Clear:440,Misc_UpdateMultiViewport:441,Misc_downloadPakFiles:442,Settings_SetCampassPosition:443,Polygon3D_ShowAll:444,Polygon3D_HideAll:445,GeoJSONLayer_Add:446,GeoJSONLayer_Show:447,GeoJSONLayer_Hide:448,GeoJSONLayer_Delete:449,Vehicle_Add:450,Vehicle_Update:451,Vehicle_AddWayPoints:452, +Vehicle_ClearWayPoints:453,Vehicle_Focus:454,Vehicle_Show:455,Vehicle_Hide:456,Vehicle_Get:457,Vehicle_Delete:458,Vehicle_Clear:459,Vehicle_MoveTo:460,Misc_ConvexHull2D:461,HeatMap_AddVoxels:462,TileLayer_GetCollision:463,TileLayer_SetPointSize:464,Misc_QueryActorOrMaterial:465,CustomObject_StartGlow:466,CustomObject_StopGlow:467,Coord_Transform:468,RegisterJsCommunication:469,UnRegisterJsCommunication:470,Vehicle_CallBatchFunction:471,Camera_FlyAround:472,Marker3D_ShowByGroupId:473,Marker3D_HideByGroupId:474, +Marker3D_DeleteByGroupId:475,Camera_EnterWorldAnimation:476,Camera_ExitWorldAnimation:477,TileLayer_SetDecalAttach:478,Command_End:1E4},ya=!1;(()=>{if(!ya){ya=!0;for(let a in p)p[p[a]]=a}})();const qa={MouseClick:1,MouseMove:2,MouseHover:4},ba={V1:1,V2:2,V3:4,V4:8,All:255};class Ja{constructor(a,b){this.id=a;this.visible=b}}class Ka{constructor(a,b,c,e){this.id=a.toString();this.coordinate=b;this.radius=c;this.heatValue=e}}class La{constructor(a,b,c,e,d,h,g,q,k,f,l,t,w,r){this.id=a.toString();this.coordinate= +b;this.imagePath=c;this.imageSize=e;this.url=d;this.text=h;this.range=g||[1,1E5];this.showLine=!!q;this.textColor=k||[0,0,0,1];this.textBackgroundColor=f||[1,1,1,.85];this.textBorderColor=l||[0,0,0,0];this.textRange=t||1E5;this.hoverImagePath=w;this.autoHidePopupWindow=r||!0}}class Ma{constructor(a,b,c){this.url=a;this.width=b;this.height=c}}class Na{constructor(a,b,c,e,d,h,g,q){this.id=a.toString();this.coordinate=b;this.contentURL=c.url;this.contentSize=[c.width,c.height];this.popupURL=e.url;this.popupSize= +[e.width,e.height];this.pivot=d;this.range=h;this.autoHidePopupWindow=g||!0;this.popupPos=q}}class Oa{constructor(a,b,c,e,d,h){this.id=a.toString();this.coordinates=O(b);this.color=E(c);this.heightRange=e;this.intensity=d;this.depthTest=h||!0}}class Pa{constructor(a,b,c,e,d,h,g,q){this.id=a.toString();this.x=b;this.y=c;this.width=e;this.height=d;this.normalImage=h;this.hoverImage=g;this.tooltip=q}}class Qa{constructor(a,b,c,e,d,h,g,q,k){this.id=a.toString();this.x=b;this.y=c;this.width=e;this.height= +d;this.imageSequecePath=h;this.imageSequeceLength=g;this.loop=!!q;this.interactable=!!k}}class Ra{constructor(a,b,c,e,d,h,g){this.id=a.toString();this.duration=b;this.thickness=c;this.interval=e;this.velocity=d;this.color=E(h);this.coordinates=g}}class Sa{constructor(a,b,c,e,d,h){this.id=a.toString();this.coordinate=b;this.radius=c;this.rippleNumber=e;this.color=E(d);this.brightness=h}}class Ta{constructor(a,b,c,e,d,h,g,q){this.id=a.toString();this.style=b;this.coordinates=O(c);this.color=E(e);this.height= +d;this.intensity=h;this.tillingX=g;this.tillingY=q}}class Ua{constructor(a,b,c,e,d,h,g,q,k,f){this.id=a.toString();this.color=E(b);this.coordinates=c;this.style=void 0==e?0:e;if(0>this.style||5this.style||10{this.isMainThreadBusy? +this._callNextForTimeout(5E3):this.callNext()},a)}}class Q{constructor(a,b,c){this.int=a;this.type=b;this.colorProps=c;this._useBatchUpdate=!1;this._tempUpdateData=[]}_checkCommand(a){a=this.type+a;let b=p[a];void 0==b&&this.int.logWithColor("red",`Invalid command: ${a}`);return b}_convertFilePath(a){return this.int.resourcesPath?a.replace("@path:",this.int.resourcesPath+"/"):a}_processProps(a){a=F(a);for(var b of a)for(let e in b)"string"==typeof b[e]&&b[e].startsWith("@path:")&&(b[e]=this._convertFilePath(b[e])); +for(let e of a)"string"!=typeof e.id&&(e.id=e.id.toString());if(this.colorProps){b=this.colorProps.split("|");for(var c of a)for(let e of b)c.hasOwnProperty(e)&&(c[e]=E(c[e]))}if(-1!=["Polygon","Polygon3D","HighlightArea","DynamicWater"].indexOf(this.type))for(let e of a)e.coordinates=O(e.coordinates);for(let e of a)e.hasOwnProperty("userData")&&(c=e.userData,this._isJsonString(c)&&(e.userData=c.replace(/"/g,"~!@~!@~!@")))}_isJsonString(a){try{return"string"===typeof a?(JSON.parse(a),!0):!1}catch(b){return!1}}_add(a, +b){this._processProps(a);return this.int.call({command:this._checkCommand("_Add"),data:F(a)},b)}_update(a,b){this._processProps(a);return this.int.call({command:this._checkCommand("_Update"),data:F(a)},b)}_delete(a,b){return this.int.call({command:this._checkCommand("_Delete"),ids:K(a)},b)}_clear(a){return this.int.call0(this._checkCommand("_Clear"),a)}_get(a,b){return this.int.call({command:this._checkCommand("_Get"),ids:K(a)},b)}_focus(a,b,c,e,d){"function"==typeof c&&(d=c,c=void 0);"function"== +typeof e&&(d=e,e=null);return this.int.call({command:this._checkCommand("_Focus"),ids:K(a),distance:b||0,flyTime:c,rotation:e},d)}_focusAll(a,b,c,e){"function"==typeof b&&(e=b,b=void 0);"function"==typeof c&&(e=c,c=null);return this.int.call({command:this._checkCommand("_FocusAll"),ids:[],distance:a||0,flyTime:b,rotation:c},e)}_show(a,b){return this.int.call({command:this._checkCommand("_Show"),ids:K(a)},b)}_showAll(a){return this.int.call0(this._checkCommand("_ShowAll"),a)}_hide(a,b){return this.int.call({command:this._checkCommand("_Hide"), +ids:K(a)},b)}_hideAll(a){return this.int.call0(this._checkCommand("_HideAll"),a)}_updateOneProp(a,b,c,e){if(this._useBatchUpdate){e=!1;for(var d of this._tempUpdateData)if(d.id==a.toString()){e=!0;d[b]=c;break}e||(e={},e.id=a.toString(),e[b]=c,this._tempUpdateData.push(e))}else return d={},d.id=a.toString(),d[b]=c,this.update(d,e)}updateBegin(){this._useBatchUpdate=!0;this._tempUpdateData=[]}updateEnd(a){a=this.update(this._tempUpdateData,a);this._tempUpdateData=null;this._useBatchUpdate=!1;return a}test(){alert("test")}} +class ib extends Q{constructor(a){super(a,"Beam","color")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}showAll(a){return super._showAll(a)}hideAll(a){return super._hideAll(a)}get(a,b){return super._get(a,b)}setDuration(a,b,c){return super._updateOneProp(a,"duration",b,c)}setThickness(a,b,c){return super._updateOneProp(a, +"thickness",b,c)}setInterval(a,b,c){return super._updateOneProp(a,"interval",b,c)}setVelocity(a,b,c){return super._updateOneProp(a,"velocity",b,c)}setColor(a,b,c){return super._updateOneProp(a,"color",E(b),c)}setCoordinates(a,b,c){return super._updateOneProp(a,"coordinates",b,c)}}class jb extends Q{constructor(a){super(a,"CameraTour")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}play(a,b){return this.int.call({command:p.CameraTour_Play, +ids:K(a)},b)}pause(a){return this.int.call0(p.CameraTour_Pause,a)}resume(a){return this.int.call0(p.CameraTour_Resume,a)}stop(a){return this.int.call({command:p.CameraTour_Stop},a)}setUserData(a,b,c){return super._updateOneProp(a,"userData",b,c)}setDuration(a,b,c){return super._updateOneProp(a,"duration",b,c)}setKeyFrames(a,b,c){return super._updateOneProp(a,"keyFrames",b,c)}setName(a,b,c){return super._updateOneProp(a,"name",b,c)}}class kb extends Q{constructor(a){super(a,"Cesium3DTile")}add(a,b){return super._add(a, +b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}showAll(a){return super._showAll(a)}hide(a,b){return super._hide(a,b)}hideAll(a){return super._hideAll(a)}get(a,b){return super._get(a,b)}setTileURL(a,b,c){return super._updateOneProp(a,"tileURL",b,c)}}class lb extends Q{constructor(a){super(a,"CustomMesh","color")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a, +b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}setCoordinates(a,b,c){return super._updateOneProp(a,"coordinates",b,c)}setIndices(a,b,c){return super._updateOneProp(a,"indices",b,c)}setColor(a,b,c){return super._updateOneProp(a,"color",b,c)}}class mb extends Q{constructor(a){super(a,"CustomObject")}add(a,b){return super._add(a, +b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d,h){"function"==typeof c&&(h=c,c=void 0);"function"==typeof e&&(h=e,e=null);"function"==typeof d&&(h=d,d=0);1a[3]||a[1]>a[4]||a[2]>a[5])return!1}else return!1;return!0}add(a,b,c,e,d,h,g,q,k,f,l){return this._checkBBox(b)? +"undefined"==typeof d||"function"==typeof d?this.int.call({command:p.HeatMap_Add,id:a.toString(),bbox:b,range:c,data:F(e),style:-1},l):0==d?this.int.call({command:p.HeatMap_Add,id:a.toString(),bbox:b,range:c,data:F(e),style:0,textureSize:h,opacityMode:g,opacityRange:q,blur:k,colors:f},l):this.int.call({command:p.HeatMap_Add,id:a.toString(),bbox:b,range:c,data:F(e),style:-1},l):(this.int.logWithColor("red","Invalid bbox value"),!1)}update(a,b,c,e,d){a={command:p.HeatMap_Update,id:a.toString()};if(b){if(!this._checkBBox(b))return this.int.logWithColor("red", +"Invalid bbox value"),!1;a.bbox=b}c&&(a.range=c);e&&(a.data=F(e));return this.int.call(a,d)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}addPoints(a,b,c){return this.int.call({command:p.HeatMap_AddPoints,id:a,data:F(b)},c)}removePoints(a,b,c){return this.int.call({command:p.HeatMap_RemovePoints,id:a,pointIds:F(b)},c)}setRange(a, +b,c){return this.int.call({command:p.HeatMap_Update,id:a,range:b},c)}setBBox(a,b,c){return this._checkBBox(b)?this.int.call({command:p.HeatMap_Update,id:a,bbox:b},c):(this.int.logWithColor("red","Invalid bbox value"),!1)}}class tb extends Q{constructor(a){super(a,"HeatMap3D")}_checkBBox(a){if(a instanceof Array){if(6!=a.length||a[0]>a[3]||a[1]>a[4]||a[2]>a[5])return!1}else return!1;return!0}add(a,b){return this.int.call({command:p.HeatMap3D_Add,data:F(a)},b)}addVoxels(a,b){return this.int.call({command:p.HeatMap_AddVoxels, +data:F(a)},b)}update(a,b){return this.int.call({command:p.HeatMap3D_Update,data:F(a)},b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}setDisplayMode(a,b,c){return this.int.call({command:p.HeatMap3D_Update,id:a,displayMode:b},c)}}class ub extends Q{constructor(a){super(a,"HighlightArea","color")}add(a,b){return super._add(a,b)}update(a, +b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}setColor(a,b,c){return super._updateOneProp(a,"color",E(b),c)}setCoordinates(a,b,c){return super._updateOneProp(a,"coordinates",b,c)}setHeightRange(a,b,c){return super._updateOneProp(a,"heightRange",b,c)}setIntensity(a,b,c){return super._updateOneProp(a, +"intensity",b,c)}setDepthTest(a,b,c){return super._updateOneProp(a,"depthTest",b,c)}}class vb extends Q{constructor(a){super(a,"ImageryLayer")}init(a,b){return this.int.call({command:p.ImageryLayer_Init,xmlPath:a.xmlUrl,layerName:a.layerName,tileMatrixName:a.tileMatrixName,ogcEPSG:a.ogcEPSG,cachePath:a.cachePath,mapMode:a.mapMode,renderMode:a.renderMode},b)}add(a,b){const c=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){return a instanceof Array?new Promise(e=>$jscomp.asyncExecutePromiseGeneratorFunction(function*(){let d; +for(let h of a)if(d=yield c.addOne(h,b),0!=d.result){e(d);break}e(d)})):c.addOne(a,b)})}addOne(a,b){return this.int.call({command:p.ImageryLayer_Add,id:a.id,url:a.url,xmlPath:a.xmlPath,layerName:a.layerName,tileMatrixName:a.tileMatrixName,ogcEPSG:a.ogcEPSG},b)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}delete(a,b){return super._delete(a,b)}}class wb extends Q{constructor(a){super(a,"Light","color")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a,b)}delete(a, +b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}showAll(a){return super._showAll(a)}hide(a,b){return super._hide(a,b)}hideAll(a){return super._hideAll(a)}get(a,b){return super._get(a,b)}}class xb extends Q{constructor(a){super(a,"Marker","fontColor|fontOutlineColor|textBackgroundColor|lineColor")}add(a,b){this._fixMarkerData(a);return super._add(a,b)}_fixMarkerProperty(a){a.textColor&&(a.fontColor=a.textColor); +a.url&&(a.popupURL=a.url);a.dispalyMode&&(a.displayMode=a.dispalyMode);S(a.displayMode)&&(a.displayMode=4);a.popupURL&&!a.popupSize&&(a.popupSize=[600,400]);0==a.showLine&&(a.lineSize=[0,0]);1!=a.showLine||null!=a.lineSize&&void 0!=a.lineSize||(a.lineSize=[2,100]);4==a.displayMode&&0{za="zh"===a?"zh":"en";ta={};a="zh"==za;for(let b in Aa){let c=Aa[b];ta[b]=a?c[0]:c[1]}for(let b of H.onLanguageChangedCallbacks)"function"==typeof b&&b()};H.getString=a=>ta[a];class Mb{constructor(a){this.int=a;this._useOldDataFormat=!1}useOldDataFormat(a){this._useOldDataFormat=a||!0}get(a){return this.int.call0(p.Camera_GetCamera,a)}_setByArray(a,b,c){return this.set(a[0],a[1],a[2],a[3],a[4],b,c)}_setByObject(a,b,c){return this.set(a.x,a.y,a.z,a.pitch,a.yaw,b,c)}set(a,b,c,e,d, +h,g){if(a instanceof Array&&5<=a.length)return this._setByArray(a,b,c);if("object"==typeof a&&a.hasOwnProperty("x"))return this._setByObject(a,b,c);"function"==typeof h&&(g=h,h=void 0);if(this._useOldDataFormat){let q=e;e=d;d=q}return this.int.call({command:p.Camera_Set,coordinate:[a,b,c],pitch:e||0,yaw:d||0,flyTime:h},g)}lookAt(a,b,c,e,d,h,g,q){"function"==typeof g&&(q=g,g=void 0);if(this._useOldDataFormat){let k=d;d=h;h=k}return this.int.call({command:p.Camera_Set,coordinate:[a,b,c],distance:e, +pitch:d||0,yaw:h||0,flyTime:g},q)}lookAtBBox(a,b,c,e,d){"function"==typeof e&&(d=e,e=void 0);if(this._useOldDataFormat){let h=b;b=c;c=h}return this.int.call({command:p.Camera_LookAtBBox,bbox:a,pitch:b||0,yaw:c||0,flyTime:e},d)}playAnimation(a,b){return this.int.call({command:p.Camera_PlayAnimation,id:a},b)}stopAnimation(a){return this.int.call0(p.Camera_StopAnimation,a)}pauseAnimation(a){return this.int.call0(p.Camera_PauseAnimation,a)}resumeAnimation(a){return this.int.call0(p.Camera_ResumeAnimation, +a)}getAnimationList(a){return this.int.call0(p.Camera_GetAnimationList,a)}getAnimationImage(a,b){return this.int.call({command:p.Camera_GetAnimationImage,name:a},b)}moveForward(a){return this.int.call({command:p.Camera_Move,moveForward:!0},a)}moveBackward(a){return this.int.call({command:p.Camera_Move,moveBackward:!0},a)}moveLeft(a){return this.int.call({command:p.Camera_Move,moveLeft:!0},a)}moveRight(a){return this.int.call({command:p.Camera_Move,moveRight:!0},a)}moveUp(a){return this.int.call({command:p.Camera_Move, +moveUp:!0},a)}moveDown(a){return this.int.call({command:p.Camera_Move,moveDown:!0},a)}turnLeft(a){return this.int.call({command:p.Camera_Move,turnLeft:!0},a)}turnRight(a){return this.int.call({command:p.Camera_Move,turnRight:!0},a)}turnUp(a){return this.int.call({command:p.Camera_Move,turnUp:!0},a)}turnDown(a){return this.int.call({command:p.Camera_Move,turnDown:!0},a)}stop(a){return this.int.call({command:p.Camera_Move,stop:!0},a)}getEulerAngle(a,b){const c=360/(2*Math.PI);let e=b[0]-a[0],d=b[1]- +a[1];return[Math.atan2(b[2]-a[2],Math.sqrt(e*e+d*d))*c,Math.atan2(e,d)*c-90,0]}lockByBBox(a,b){return this.int.call({command:p.Camera_LockBBox,bbox:a},b)}unlock(a){return this.int.call({command:p.Camera_UnLockBBox},a)}flyAround(a,b,c,e,d){return this.int.call({command:p.Camera_FlyAround,coordinate:a,rotation:b||[0,90,0],distance:c||1E3,time:e||10},d)}enterWorld(a){return this.int.call({command:p.Camera_ExitWorldAnimation},a)}exitWorld(a){return this.int.call({command:p.Camera_EnterWorldAnimation}, +a)}}class Nb{constructor(a){this.int=a}screen2World(a,b,c){return this.int.call({command:p.Coord_Screen2World,screenPosition:[a,b]},c)}world2Screen(a,b,c,e){return this.int.call({command:p.Coord_World2Screen,worldlocation:[a,b,c]},e)}gcs2pcs(a,b,c){"function"==typeof b&&(c=b);S(b)&&(b=1);if(1==b)return this.int.call({command:p.Coord_GCS2PCS,coordinates:T(a)},c);2==b?this.transform(T(a),2,0,c):3==b?this.transform(T(a),3,0,c):console.error("\u672a\u77e5\u5750\u6807\u7cfb\u7c7b\u578b")}pcs2gcs(a,b,c){"function"== +typeof b&&(c=b);S(b)&&(b=1);if(1==b)return this.int.call({command:p.Coord_PCS2GCS,coordinates:T(a)},c);2==b?this.transform(T(a),0,2,c):3==b?this.transform(T(a),0,3,c):console.error("\u672a\u77e5\u5750\u6807\u7cfb\u7c7b\u578b")}transform(a,b,c,e){return this.int.call({command:p.Coord_Transform,coordinates:T(a),src:b,dest:c},e)}}class Ob{constructor(a){this.int=a}start(a){return this.int.call0(p.EditHelper_Start,a)}cancel(a){return this.int.call0(p.EditHelper_Quit,a)}finish(a,b){return this.int.call({command:p.EditHelper_Finish, +withOffset:a||!0},b)}setParam(a,b,c,e){return this.int.call({command:p.EditHelper_SetParam,lineType:a,buildType:b,color:E(c)},e)}}class Pb{constructor(a){this.int=a}setVisibility(a,b){return this.int.call({command:p.InfoTree_SetVisibility,layers:F(a)},b)}show(a,b){return this.int.call({command:p.InfoTree_Show,ids:K(a)},b)}hide(a,b){return this.int.call({command:p.InfoTree_Hide,ids:K(a)},b)}enableXRay(a,b,c){return this.int.call({command:p.InfoTree_EnableXRay,ids:F(a),color:E(b)},c)}disableXRay(a, +b){return this.int.call({command:p.InfoTree_DisableXRay,ids:F(a)},b)}showByGroupId(a,b){return this.int.call({command:p.InfoTree_ShowByGroupId,ids:K(a)},b)}hideByGroupId(a,b){return this.int.call({command:p.InfoTree_HideByGroupId,ids:K(a)},b)}highlightByGroupId(a,b){return this.int.call({command:p.InfoTree_HighlightByGroupId,ids:K(a)},b)}deleteByGroupId(a,b){return this.int.call({command:p.InfoTree_DeleteByGroupId,ids:K(a)},b)}get(a){return this.int.call0(p.InfoTree_Get,a)}focus(a,b){return this.int.call({command:p.InfoTree_Focus, +ids:K(a)},b)}}class Qb{constructor(a){this.int=a;this.apiVersion="5.4";this.apiVersionServer=""}isApiVersionMatched(){return"5.4"==this.apiVersionServer}addImageButtons(a,b){return this.int.call({command:p.Misc_AddImageButton,data:F(a)},b)}deleteImageButtons(a,b){return this.int.call({command:p.Misc_DeleteImageButton,ids:K(a)},b)}addAnimatedImageButtons(a,b){return this.int.call({command:p.Misc_AddAnimatedImageButton,data:F(a)},b)}setApiVersionReceived(a){this.int.onApiVersionReceived=a}playVideo(a, +b,c,e,d,h,g){return this.int.call({command:p.Misc_PlayVideo,data:[{id:a.toString(),position:[b,c],size:[e,d],url:h}]},g)}stopPlayVideo(a,b){return this.int.call({command:p.Misc_StopPlayVideo,ids:K(a)},b)}playMovie(a,b,c){"function"==typeof b&&(c=b,b=!1);return this.int.call({command:p.Misc_PlayMovie,loop:b,url:a},c)}stopMovie(a){return this.int.call({command:p.Misc_StopMovie},a)}setWindowResolution(a,b,c){return this.int.call({command:p.Misc_SetWindowResolution,cx:a,cy:b,mode:0},c)}callBPFunction(a, +b){return this.int.call({command:p.Misc_CallBPFunction,data:F(a)},b)}enterReportMode(a){return this.int.call0(p.Misc_EnterReportMode)}exitReportMode(a){return this.int.call0(p.Misc_ExitReportMode,a)}showAllFoliages(a){return this.int.call0(p.Misc_ShowAllFoliages,a)}hideAllFoliages(a){return this.int.call0(p.Misc_HideAllFoliages,a)}startProcess(a,b,c,e){"function"==typeof c&&(e=c,c=!0);return this.int.call({command:p.Misc_StartProcess,appName:a,commandLine:b,visible:c},e)}enterMultiViewportMode(a, +b,c,e){if(null==b||void 0==b)b="#DEA309";if(null==c||void 0==c)c=2;return this.int.call({command:p.Misc_EnterMultiViewport,type:a,lineColor:E(b),lineThickness:c},e)}exitMultiViewportMode(a){return this.int.call({command:p.Misc_ExitMultiViewport},a)}setActiveViewport(a,b){return this.int.call({command:p.Misc_SetActivateMultiViewport,viewIndex:F(a)},b)}getActiveViewport(a){return this.int.call({command:p.Misc_GetActivateMultiViewport},a)}setMultiviewportInteractSync(a,b){this.setCameraFollow4Viewport(a, +b)}setCameraFollow4Viewport(a,b){return this.int.call({command:p.Misc_UpdateMultiViewport,moverTogether:a},b)}downloadPakFiles(a,b){return this.int.call({command:p.Misc_downloadPakFiles,ids:F(a)},b)}getConvexPolygon(a,b){return this.int.call({command:p.Misc_ConvexHull2D,data:F(a)},b)}getMaterial(a,b){return this.int.call({command:p.Misc_QueryActorOrMaterial,idOrPaths:F(a)},b)}getBPFunction(a,b){return this.int.call({command:p.Misc_QueryActorOrMaterial,idOrPaths:F(a)},b)}startPolygonClip(a,b,c){return this.int.tools.startPolygonClip(a, +b,c)}stopClip(a){return this.int.tools.stopClip(a)}playAnimation(a,b){return this.int.camera.playAnimation(a,b)}stopAnimation(a){return this.int.camera.stopAnimation(a)}setDateTime(a,b,c,e,d,h,g){return this.int.weather.setDateTime(a,b,c,e,d,h,g)}setQueryToolState(a,b){return this.int.call({"c.ommand":p.Settings_SetMousePickMask,mouseClick:a},b)}setCampassVisible(a,b){return this.int.settings.setCampassVisible(a,b)}setMainUIVisibility(a,b){return this.int.settings.setMainUIVisibility(a,b)}setMousePickMask(a, +b){return this.int.settings.setMousePickMask(a,b)}}class Rb{constructor(a){this.int=a}setMapMode(a,b,c){b=b||{};return this.int.call({command:p.Settings_SetMapMode,mode:a,serviceType:b.serviceType||0,coordType:b.coordType||0,mapPoint:b.mapPoint||[0,0],longitude:b.longitude||0,latitude:b.latitude||0,cache:b.cache||":memory:",style:b.style||"mapbox://styles/mapbox/streets-v10",groundHeight:b.groundHeight||0,renderMode:b.renderMode||0,decalMode:b.decalMode||1,serverURL:b.serverURL,coordOrder:b.coordOrder, +maxLevel:b.maxLevel},c)}getMapMode(a){return this.int.call0(p.Settings_GetMapMode,a)}setWMTSLayerVisible(a,b){this.setwmtsLayerVisible(a,b)}setwmtsLayerVisible(a,b){return this.int.call({command:p.Settings_SetWMTSLayerVisible,data:F(a)},b)}setWMTSLayerOpacity(a,b){return this.int.call({command:p.Settings_SetWMTSLayerOpacity,data:F(a)},b)}setMapURL(a,b){return this.int.call({command:p.Settings_SetMapURL,url:a},b)}highlightColor(a,b){return this.setHighlightColor(a,b)}setHighlightColor(a,b){return this.int.call({command:p.Settings_SetHighlightColor, +color:E(a)},b)}setFovX(a,b){return this.int.call({command:p.Settings_SetFovX,value:a},b)}setOceanColor(a,b){return this.int.call({command:p.Settings_SetOceanColor,color:E(a)},b)}setEnableInteract(a,b){return this.int.call({command:p.Settings_SetEnableInteract,enableInteract:a},b)}setInteractiveMode(a,b){return this.int.call({command:p.Settings_SetInteractiveMode,mode:a},b)}getInteractiveMode(a){return this.int.call({command:p.Settings_GetInteractiveMode},a)}setCampassVisible(a,b){return this.int.call({command:p.Settings_SetCampassVisible, +visible:a},b)}setCampassPosition(a,b,c){return this.int.call({command:p.Settings_SetCampassPosition,position:[a,b]},c)}restoreCampassPosition(a){this.setCampassPosition(-1,-1)}setMainUIVisibility(a,b){return this.int.call({command:p.Settings_SetMainUIVisibility,visible:a},b)}setMousePickMask(a,b){let c=!1,e=!1,d=!1;a&qa.MouseClick&&(c=!0);a&qa.MouseMove&&(e=!0);a&qa.MouseHover&&(d=!0);return this.int.call({command:p.Settings_SetMousePickMask,mouseClick:c,mouseMove:e,mouseHover:d},b)}setTerrainAlpha(a, +b){return this.int.call({command:p.Settings_SetTerrainAlpha,alpha:a},b)}setEnableCameraMovingEvent(a,b,c){return this.int.call({command:p.Settings_EnableCameraMovingEvent,bEnable:a,monitorThreshold:b},c)}setLabelLayer(a,b){return this.int.call({command:p.VTPKService_Set,vtpk:a},b)}getLabelLayer(a){return this.int.call({command:p.VTPKService_Get},a)}removeLabelLayer(a){return this.int.call({command:p.VTPKService_Set,vtpk:""},a)}setRenderedCursorVisible(a,b){this.setCursorAutoSync(a,b)}setCursorAutoSync(a, +b){return this.int.call({command:p.Settings_CursorAutoSync,useSoftwareCursor:a},b)}}class Sb{constructor(a){this.int=a}setReportMode(a,b,c,e){return this.int.call({command:p.Settings_SetReport,alignment:a,playMode:b,moveInOtherView:c},e)}getReportMode(a){return this.int.call({command:p.Settings_GetReport},a)}setControlMode(a,b,c,e,d){return this.int.call({command:p.Settings_SetControl,speed:a,yawSpeed:b,rotateSelf:c,useFemale:e},d)}getControlMode(a){return this.int.call({command:p.Settings_GetControl}, +a)}setPostProcessMode(a,b){let c=1E3,e=1E3;0<=a.terrainGlobalAlpha&&1>=a.terrainGlobalAlpha&&(c=1E3*a.terrainGlobalAlpha);0<=a.osgbGlobalAlpha&&1>=a.osgbGlobalAlpha&&(e=1E3*a.osgbGlobalAlpha);return this.int.call({command:p.Settings_SetPostProcess,contrast:a.contrast,saturation:a.saturation,lensFlareIntensity:a.lensFlareIntensity,ambientIntensity:a.ambientIntensity,bloomIntensity:a.bloomIntensity,lutMode:a.lutMode,lutIntensity:a.lutIntensity,darkCorner:a.darkCorner,screenPercentage:a.screenPercentage, +terrainGlobalAlpha:c,terrainGlobalLitStatus:a.terrainGlobalLitStatus,osgbGlobalLitStatus:a.osgbGlobalLitStatus,osgbGlobalAlpha:e,antiAliasing:a.antiAliasing,tonemapper:a.tonemapper,postProcessEffects:a.postProcessEffects,dofMode:a.dofMode,wireThickness:a.wireThickness,receiveDecalMode:a.receiveDecalMode},b)}getPostProcessMode(a){return this.int.call({command:p.Settings_GetPostProcess},a)}setCameraMode(a,b,c,e,d){e&&"function"==typeof e&&(d=e);return this.int.call({command:p.Settings_SetCamera,nearClipPlane:a, +fovH:b,minCamHeight:c,maxCamHeight:e},d)}getCameraMode(a){return this.int.call({command:p.Settings_GetCamera},a)}setMapMode(a,b,c){b=b||{};return this.int.call({command:p.Settings_SetMapMode,mode:a,serviceType:b.serviceType||0,coordType:b.coordType||0,mapPoint:b.mapPoint||[0,0],longitude:b.longitude||0,latitude:b.latitude||0,cache:b.cache||":memory:",style:b.style||"mapbox://styles/mapbox/streets-v10",groundHeight:b.groundHeight||0,renderMode:b.renderMode||0,decalMode:b.decalMode||1,serverURL:b.serverURL, +coordOrder:b.coordOrder,maxLevel:b.maxLevel},c)}getMapMode(a){return this.int.call0(p.Settings_GetMapMode,a)}}class Tb{constructor(a){this.int=a}startPolygonClip(a,b,c){return this.int.call({command:p.Tools_StartPolygonClip,data:F({id:"0",coordinates:O(a),toggleImageCut:b})},c)}startPlaneClip(a,b,c,e,d){return this.int.call({command:p.Tools_StartPlaneClip,location:a,rotation:b,isShowPlane:c,isEdit:e},d)}startVolumeClip(a,b,c,e,d,h){return this.int.call({command:p.Tools_StartVolumeClip,bbox:a,rotation:d, +value:b,isShowPlane:c,isEdit:e},h)}updateVolumeClip(a,b,c,e,d,h){return this.int.call({command:p.Tools_UpdateVolumeClip,bbox:a,rotation:d,value:b,isShowPlane:c,isEdit:e},h)}stopClip(a){return this.stopPolygonClip(a)}stopPolygonClip(a){return this.int.call0(p.Tools_StopClip,a)}stopPlaneClip(a){return this.int.call({command:p.Tools_StopPlaneClip},a)}stopVolumeClip(a){return this.int.call({command:p.Tools_StopVolumeClip},a)}setMeasurement(a,b,c){b=b||{};return this.int.call({command:p.Tools_SetMeasurement, +type:a,pointSize:b.pointSize,textSize:b.textSize,textColor:E(b.textColor),pointColor:E(b.pointColor),lineColor:E(b.lineColor),areaColor:E(b.areaColor),showCoordinateText:b.showCoordinateText},c)}startMeasurement(a){return this.int.call0(p.Tools_StartMeasurement,a)}stopMeasurement(a){return this.int.call0(p.Tools_StopMeasurement,a)}lineIntersect(a,b,c){return this.int.call({command:p.Tools_LineIntersect,data:[{start:a,end:b}],highPrecision:!1,returnDetails:!0},c)}linesIntersect(a,b,c,e){return this.int.call({command:p.Tools_LineIntersect, +data:F(a),highPrecision:b,returnDetails:c},e)}startGeometryEdit(a,b,c){return this.int.call({command:p.Tools_StartGeometryEdit,id:a,type:b},c)}stopGeometryEdit(a){return this.int.call0(p.Tools_StopGeometryEdit,a)}startSkylineAnalysis(a,b){a=a||{};a.outlineColor&&(a.outlineColor=E(a.outlineColor));a.sceneColor&&(a.sceneColor=E(a.sceneColor));a.skylineColor&&(a.skylineColor=E(a.skylineColor));a.backgroundColor&&(a.backgroundColor=E(a.backgroundColor));if(a.tileLayers){a.tileLayers=F(a.tileLayers);for(let c of a.tileLayers)c.hasOwnProperty("color")&& +(c.color=E(c.color))}a.command=p.Tools_StartSkylineAnalysis;return this.int.call(a,b)}stopSkylineAnalysis(a){return this.int.call0(p.Tools_StopSkylineAnalysis,a)}exportSkyline(a,b,c,e){c=c||{};c.skylineColor&&(c.skylineColor=E(c.skylineColor));c.backgroundColor&&(c.backgroundColor=E(c.backgroundColor));if(c.tileLayers){c.tileLayers=F(c.tileLayers);for(let d of c.tileLayer)d.hasOwnProperty("color")&&(d.color=E(d.color))}return this.int.call({command:p.Tools_ExportSkyline,path:a,size:b,skylineColor:c.skylineColor, +backgroundColor:c.backgroundColor},e)}startViewshedAnalysis(a,b){a=a||{};a.visibleColor&&(a.visibleColor=E(a.visibleColor));a.invisibleColor&&(a.invisibleColor=E(a.invisibleColor));a.command=p.Tools_StartViewshedAnalysis;return this.int.call(a,b)}stopViewshedAnalysis(a){return this.int.call0(p.Tools_StopViewshedAnalysis,a)}startVisiblityAnalysis(a,b){a=a||{};a.visibleColor&&(a.visibleColor=E(a.visibleColor));a.invisibleColor&&(a.invisibleColor=E(a.invisibleColor));a.command=p.Tools_StartVisiblityAnalysis; +return this.int.call(a,b)}stopVisiblityAnalysis(a){return this.int.call0(p.Tools_StopVisiblityAnalysis,a)}startViewDomeAnalysis(a,b){a=a||{};a.visibleColor&&(a.visibleColor=E(a.visibleColor));a.invisibleColor&&(a.invisibleColor=E(a.invisibleColor));a.command=p.Tools_StartViewDomeAnalysis;return this.int.call(a,b)}stopViewDomeAnalysis(a){return this.int.call0(p.Tools_StopViewDomeAnalysis,a)}startCutFillAnalysis(a,b){a=a||{};a.cutLineColor&&(a.cutLineColor=E(a.cutLineColor));a.fillLineColor&&(a.fillLineColor= +E(a.fillLineColor));a.cutPointColor&&(a.cutPointColor=E(a.cutPointColor));a.fillPointColor&&(a.fillPointColor=E(a.fillPointColor));a.gridColor&&(a.gridColor=E(a.gridColor));a.command=p.Tools_StartCutFillAnalysis;return this.int.call(a,b)}stopCutFillAnalysis(a){return this.int.call0(p.Tools_StopCutFillAnalysis,a)}startSunshineAnalysis(a,b){var c=/^(0?[0-9]|1[0-9]|[2][0-3]):(0?[0-9]|[1-5][0-9])$/;if(null==a||void 0==a)console.error("\u53c2\u6570\u4e0d\u80fd\u4e3a\u7a7a");else{let e=a.startTime,d=a.endTime; +if(null==e||""==e||null==d||""==d)console.error("\u65f6\u95f4\u53c2\u6570\u683c\u5f0f\u4e0d\u6b63\u786e");else if(e.match(c)&&d.match(c))if(e.split(":"))if(a.startHour=parseInt(e.split(":")[0]),a.startMinute=parseInt(e.split(":")[1]),d.split(":"))if(a.endHour=parseInt(d.split(":")[0]),a.endMinute=parseInt(d.split(":")[1]),a.startHour>a.endHour)console.error("\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u7ed3\u675f\u65f6\u95f4");else{if(a.startHour==a.endHour){if(a.startMinute==a.endMinute){console.error("\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u7b49\u4e8e\u7ed3\u675f\u65f6\u95f4"); +return}if(a.startMinute>a.endMinute){console.error("\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u7ed3\u675f\u65f6\u95f4");return}}S(a.groundElevation)||(c=a.groundElevation,!isNaN(parseFloat(c))&&isFinite(c)&&(a.undersideHeight=a.groundElevation,delete a.groundElevation));a.command=p.Tools_StartSunshineAnalysis;return this.int.call(a,b)}else console.error("\u53c2\u6570endTime\u65f6\u95f4\u683c\u5f0f\u4e0d\u6b63\u786e");else console.error("\u53c2\u6570startTime\u65f6\u95f4\u683c\u5f0f\u4e0d\u6b63\u786e"); +else console.error("\u65f6\u95f4\u53c2\u6570\u683c\u5f0f\u4e0d\u6b63\u786e")}}stopSunshineAnalysis(a){return this.int.call0(p.Tools_StopSunshineAnalysis,a)}startTerrainSlopeAnalysis(a,b){a.command=p.Tools_StartTerrainSlopeAnalysis;return this.int.call(a,b)}stopTerrainSlopeAnalysis(a){return this.int.call0(p.Tools_StopTerrainSlopeAnalysis,a)}startContourLineAnalysis(a,b){a.command=p.Tools_StartContourLineAnalysis;return this.int.call(a,b)}stopContourLineAnalysis(a){return this.int.call0(p.Tools_StopContourLineAnalysis, +a)}startFloodFill(a,b){a=a||{};a.color&&(a.color=E(a.color));a.command=p.Tools_StartFloodFill;return this.int.call(a,b)}stopFloodFill(a){return this.int.call0(p.Tools_StopFloodFill,a)}replaceTextureByVideo(a,b,c){return this.int.call({command:p.Tools_ReplaceTexture,texturePackage:a,newTexture:b,type:1},c)}replaceTextureByImage(a,b,c){return this.int.call({command:p.Tools_ReplaceTexture,texturePackage:a,newTexture:b,type:2},c)}replaceTextureByUrl(a,b,c){return this.int.call({command:p.Tools_ReplaceTexture, +texturePackage:a,newTexture:b,type:3},c)}restoreTexture(a,b){return this.int.call({command:p.Tools_RestoreTexture,ids:F(a)},b)}showPanel(a,b,c){this.showAnalysisPanel(a,b,c)}hidePanel(a){this.hideAnalysisPanel(a)}showAnalysisPanel(a,b,c){return this.int.call({command:p.Tools_AnalysisPopupAttributes,type:a,position:b},c)}hideAnalysisPanel(a){return this.int.call({command:p.Tools_AnalysisCloseAttributes},a)}}class Ub{constructor(a){this.int=a}getParams(a){return this.int.call0(p.Weather_GetParams,a)}_setParam(a, +b){return this.int.call({command:p.Weather_SetParams,data:a},b)}setDateTime(a,b,c,e,d,h,g){return this.int.call({command:p.Weather_SetDate,year:a,month:b,day:c,hour:e,minute:d,daynightLoop:h},g)}getDateTime(a){return this.int.call0(p.Weather_GetDate,a)}simulateTime(a,b,c,e){let d=0,h=0,g=0,q=0;a instanceof Array?(0this.sendApi(c))}setHost(a,b){this.url=`ws://${a}:${b}`}connectWebSocket(){if(!this.player){this.log(`Connecting: ${this.url}`);if("undefined"==typeof window)this.websocket=new (require("ws"))(this.url);else{if(!("WebSocket"in window)){console.error("Not Support WebSocket!");return}this.websocket=new WebSocket(this.url)}this.websocket.onopen= +()=>this.onConnectionOpen();this.websocket.onmessage=a=>this.onConnectionMessage(a.data);this.websocket.onclose=a=>this.onConnectionClose(a);this.websocket.onerror=a=>this.onConnectionError(a)}}setEventCallback(a){this.options.onEvent=a}destroy(){this.isDestroyed=!0;this.player&&this.player.destroy();this.websocket&&(this.websocket.close(),this.websocket=null)}reset(a){return this.call0(p.Reset,a)}saveProject(a){return this.call0(p.SaveProject,a)}registerTick(a,b,c){b=b||{};"__execute__"!=a&&(b.func= +"tick");this.call({command:p.RegisterJsCommunication,id:this.tickMarkerId,url:a,func:b.func,x:b.x||4,y:b.y||4,width:b.width||400,height:b.height||300,visible:b.visible||!1},c)}removeTick(a){this.call({command:p.UnRegisterJsCommunication,ids:[this.tickMarkerId]},a)}showTickWindow(a,b){this.isCalledInCEF?ue.dtspoi.showtickwindow(a):a?this.registerTick("__show__",{},b):this.registerTick("",{},b)}executeJsInTickPage(a,b){this.registerTick("__execute__",{func:a},b)}getVersion(){return"5.4.0508"}initInterface(){this.camera= +new Mb(this);this.coord=new Nb(this);this.layers=this.infoTree=new Pb(this);this.ct=this.cameraTour=new jb(this);this.tl=this.tileLayer=new Hb(this);this.tag=new Gb(this);this.marker=new xb(this);this.marker3d=new yb(this);this.ctag=this.customTag=new nb(this);this.rp=this.radiationPoint=new Eb(this);this.cm=this.customMesh=new lb(this);this.wm=this.waterMesh=new Lb(this);this.waterFlowField=new Kb(this);this.wff=this.WaterFlowField;this.line=this.polyline=new Db(this);this.ol=this.odline=new zb(this); +this.p3d=this.polygon3d=new Cb(this);this.polygon=new Bb(this);this.hm=this.heatmap=new sb(this);this.hm3d=this.heatmap3d=new tb(this);this.beam=new ib(this);this.ha=this.highlightArea=new ub(this);this.co=this.customObject=new mb(this);this.vp=this.videoProjection=new Jb(this);this.panorama=new Ab(this);this.decal=new ob(this);this.dw=this.dynamicWater=new pb(this);this.ff=this.floodFill=new qb(this);this.c3d=this.cesium3DTileset=new kb(this);this.shapeFile=this.shp=this.shapeFileLayer=new Fb(this); +this.light=new wb(this);this.imagery=this.imageryLayer=new vb(this);this.geoJSON=this.geoJSONLayer=new rb(this);this.vc=this.vehicle=new Ib(this);this.misc=new Qb(this);this.tools=new Tb(this);this.settings=new Rb(this);this.weather=new Ub(this);this.eh=this.editHelper=new Ob(this);this.sp=this.settingsPanel=new Sb(this)}_getCallbackIndex(){return++this.callbackIndex}call0(a,b){return this.call({command:a},b)}call(a,b){if(!this.isConnected)return this.logWithColor("red","Not connected!"),b?void 0: +Promise.reject("Not connected!");if(void 0==a.command||a.command==p.None)return this.logWithColor("red","command is undefined or None"),b?void 0:Promise.reject("command is undefined or None");a.timestamp=Date.now();a.callbackIndex=this._getCallbackIndex();a.__command=p[a.command]||"Unknown";a.__version=this.getVersion();null===b&&(a.__noResponse=!0);let c=a.command+"_"+a.callbackIndex;b&&"function"==typeof b&&(this.callbackMap[c]=b);if(this.isCalledInCEF&&null===b)return delete a.__noResponse,this.callbackMap[c]= +null,this.sendApi(a),a;let e=JSON.stringify(a);this.log("");this.logWithColor("RoyalBlue",`Request: ${p[a.command]||"Unknown"}`,!0);this.logWithColor("green","\uff08"+(new Date(a.timestamp)).toLocaleTimeString()+"\uff09");this.logWithColor("gray",`${e}`);if(b||null===b)this.apiQueue.push(a);else return new Promise(d=>{this.callbackMap[c]=d;this.apiQueue.push(a)})}sendApi(a){this.isCalledInCEF?ue.dtspoi.execute(JSON.stringify(a)):this.player?this.player.sendApi(a):this.sendStringByWS(a)}sendStringByWS(a){if(a){a= +JSON.stringify(a);var b=a.length;if(16777216>=b)this.websocket.send(a);else{var c=Math.ceil(b/16777216),e=[];for(let d=0;dthis.savedCamera=b.camera)}}onReady(){if("function"==typeof this.options.onReady)this.options.onReady();this.call({command:p.Misc_GetVersion});if(this.player)this.player.onApiReady()}log(a,b,c){if("function"==typeof this.options.onLog)this.options.onLog(a,b,c)}logWithColor(a,b,c){this.log(b,c,a)}onConnectionOpen(){this.isConnected=!0;this.logWithColor("blue","Connected!")}onConnectionClose(a){this.isConnected=!1;this.logWithColor("red",`Connection closed! code: ${a.code|| +"-"}, reason: ${1006==a.code?H.getString("Disconnect"):a.reason||a.message||"-"}`);this.log("");this.logWithColor("SpringGreen","Reconnecting...");this.isDestroyed||this.player||this.connectWebSocket()}onConnectionError(a){console.error("WebSocket error observed")}onConnectionMessage(a,b){a=a.replace(/~!@~!@~!@/g,'\\"');this.log("");let c=null;try{c=JSON.parse(a)}catch(d){this.isCalledInCEF?(document.writeln(d.message),document.writeln("
"),document.writeln(a)):(console.error(d.message),this.log("Response: [Unknown]")); +return}if(c.command==p.Misc_GetVersion){this.misc.apiVersionServer=c.version||c.versionType;if("5.4"!=this.misc.apiVersionServer){var e=H.getString("VersionMismatch").format("5.4",this.misc.apiVersionServer);console.warn(e);"undefined"!=typeof window&&alert(e)}if("function"==typeof this.options.onApiVersion)this.options.onApiVersion(this.misc.apiVersionServer)}if(c.command)this.apiQueue.callNext(c.callbackIndex),e=Date.now()-c.timestamp,this.logWithColor("RoyalBlue",`Response: ${p[c.command]||"Unknown"}`, +!0),this.logWithColor("green",` (${H.getString("TimeConsuming")}${e}ms)`),this.logWithColor("gray",`${H.getString("RequestTime")}${(new Date(c.timestamp)).toLocaleTimeString()}`,!0),this.logWithColor("gray",` ${H.getString("ResponseTime")}${(new Date(Date.now())).toLocaleTimeString()}`,!0),this.logWithColor("gray",` ${H.getString("MessageLength")}${a.length}`),a=c.command+"_"+c.callbackIndex,(e=this.callbackMap[a])?(e(c),delete this.callbackMap[a]):null===e&&"function"===typeof tick_next&&tick_next(c, +b);else if(c.eventtype)if(this.log("Response: Event"),"CompleteInitialization"==c.eventtype)this.log("The initialization is complete, now you can call the interfaces in onReady callback function."),this.initialCameraPosition=c.InitialCamera,c.ResourcesPath&&(this.resourcesPath=c.ResourcesPath,this.log("ResourcesPath:"+this.resourcesPath)),this.onReady();else if("NodeConfiguration"==c.eventtype)this.resourcesPath=c.ResourcesPath,this.log("ResourcesPath:"+this.resourcesPath);else if("MainThreadBusy"== +c.eventtype)this.apiQueue.onMainThreadBusy(c),this.player&&this.player.onMainThreadBusy(c);else{if("function"==typeof this.options.onEvent)this.options.onEvent(c)}else this.log("Response: [Unknown]");b=JSON.stringify(c,(d,h)=>h instanceof Array?JSON.stringify(h):h,"\t").replace(/"\[/g,"[").replace(/\]"/g,"]").replace(/\\"/g,'"').replace(/""/g,'"');this.logWithColor("gray",b)}quit(){return this.call0(p.Quit)}test(a,b,c){return this.call({command:p.SimulateTest__,type:a,int32Val:b},c)}}const V={WS_Disconnected:0, +WS_Connecting:1,WS_Connected:2,RTC_Opened:3,Video_LoadedMetaData:4,OnReady:5},da={StartingProcess:0,CheckingBusy:1,ConfirmBusy:2,ProcessStartFailed:3,ProcessStarted:4,LoadingProject:5,ProjectLoaded:6};class Vb{constructor(){"undefined"!=typeof navigator&&(this.isUnix="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform||-1!=navigator.platform.indexOf("Linux"),this.isChrome=-1!=navigator.userAgent.indexOf("Chrome"),this.isMobileDevice= +/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),this.isIOSDevice=/iPhone|iPad|iPod/i.test(navigator.userAgent),this.isSafari=/Safari/i.test(navigator.userAgent),this.isAndroidDevice=/Android/i.test(navigator.userAgent),this.isInWeixinBrowser)}fullscreen(a){a&&(a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen:a.webkitRequestFullscreen&&a.webkitRequestFullscreen())}exitFullscreen(){document.exitFullscreen? +document.exitFullscreen():document.msExitFullscreen||(document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen())}isFullscreen(){return document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen}isFunction(a){return"function"==typeof a}}var R=new Vb;const sa={abnormal:1006,invalid_message:1008,no_free_instance:1013,out_of_control:4E3,instance_disconnected:4001,instance_not_found:4002,instance_start_failed:4003,webrtc_connection_error:4004, +one_client_allowed:4005,timeout:4006,iid_required:4007,locked:4008,invalid_project:4009,kicked:4100,syncing_data:4101,instance_killed_by_user:4102,invalid_password:4103,nodeservice_stopped:4105,instance_is_busy:4107,ip_not_authorized:4108,invalid_token:4109};aa.EMPTY_OBJECT=Object.freeze({});class ka{}ka.doParamsCompatibility=a=>{a.apiOptions=a.apiOptions||{};a.events=a.events||{};a.ui=a.ui||{};"undefined"!=typeof a.showMarker&&(a.showStatus=a.showMarker,delete a.showMarker);"undefined"!=typeof a.actionEventHander&& +(a.onaction=a.actionEventHander,delete a.actionEventHander);"undefined"!=typeof a.useBuiltinCursor&&(a.useBuiltinCursors=a.useBuiltinCursor,delete a.useBuiltinCursor);"undefined"!=typeof a.keyEventReceiver&&(a.keyEventTarget=a.keyEventReceiver,delete a.keyEventReceiver);"undefined"!=typeof a.ui.debugTouchPanel&&(a.ui.debugEventsPanel=a.ui.debugTouchPanel,delete a.ui.debugTouchPanel);var b=(c,e)=>{let d=a[c];d&&(a.events[e]=d,delete a[c])};b("onclose","onConnClose");b("onloaded","onVideoLoaded");b("onvideostatus", +"onRtcStatsReport");b("onaction","mouseKeyListener");b=(c,e)=>{let d=a.events.mouseKeyListener[c];d&&(a.events.mouseKeyListener[e]=d,delete a.events.mouseKeyListener[c])};a.events.mouseKeyListener&&(b("onmouseenter","onMouseEnter"),b("onmouseleave","onMouseLeave"),b("onmousemove","onMouseMove"),b("onmousedown","onMouseDown"),b("onmouseup","onMouseUp"),b("onkeydown","onKeyDown"),b("onkeyup","onKeyUp"),b("onkeypress","onKeyPress"));b=(c,e)=>{"undefined"!=typeof a[c]&&(a.ui[e]=a[c],delete a[c])};b("showStartupInfo", +"startupInfo");b("showStatus","statusButton");b("showFullscreenButton","fullscreenButton");b("showHomeButton","homeButton");b("showTaskList","taskListBar")};ka.setDefaultParamValues=a=>{a.keyEventTarget=aa(a.keyEventTarget,"video");a.useBuiltinCursors=aa(a.useBuiltinCursors,!0);a.ui.startupInfo=aa(a.ui.startupInfo,!0);a.ui.statusIndicator=aa(a.ui.statusIndicator,!0);a.ui.statusButton=aa(a.ui.statusButton,!1);a.ui.fullscreenButton=aa(a.ui.fullscreenButton,!1);a.ui.homeButton=aa(a.ui.homeButton,!1); +a.ui.taskListBar=aa(a.ui.taskListBar,1);a.ui.debugEventsPanel=aa(a.ui.debugEventsPanel,!1);a.offer=1};ka.processParams=a=>{ka.doParamsCompatibility(a);ka.setDefaultParamValues(a)};class Wb{constructor(a){this.options=a;this.checkParamsMap=new Map}resetInteractTimestamp(a){this.timeOfLastInteraction=a}connect(a){window.WebSocket=window.WebSocket||window.MozWebSocket;window.WebSocket?(this.websocket=new WebSocket(a),this.websocket.onopen=()=>{if(this.options.onopen)this.options.onopen();setInterval(()=> +{this.timeOfLastInteraction&&this.send({type:"ping",time:this.timeOfLastInteraction})},3E3)},this.websocket.onmessage=b=>{if(b=JSON.parse(b.data)){switch(b.type){case "checkParamsResult":this.onCheckParamsResponse(b);return;case "detectResponse":this.send(b);return}if(this.options.onmessage)this.options.onmessage(b)}},this.websocket.onerror=b=>{if(this.options.onerror)this.options.onerror(b)},this.websocket.onclose=b=>{this.websocket=void 0;if(this.options.onclose)this.options.onclose(b)}):alert("Your browser does not support WebSocket")}isOpened(){return this.websocket&& +1===this.websocket.readyState}send(a){a&&this.isOpened()&&this.websocket.send(JSON.stringify(a))}close(a){console.log(`call SignallingConnection.close: ${a||" "}`);this.isOpened()&&(this.websocket.close(a),this.websocket=null)}sendReady(){this.send({type:"ready"})}sendCandidate(a){a.candidate&&a.candidate.candidate&&this.send({type:"iceCandidate",candidate:a.candidate})}sendOffer(a,b){this.send({type:"offer",sdp:a,hasVideo:b})}updateParams(a){this.send({type:"updateParams",data:a})}checkParams(a){a.timestamp= +Date.now();return new Promise(b=>{this.checkParamsMap[a.timestamp]=b;this.send({type:"checkParams",data:a});this.timerOfCheckParams=setTimeout(()=>{let c=this.checkParamsMap[a.timestamp];c&&(delete this.checkParamsMap[a.timestamp],c(null))},1E3)})}onCheckParamsResponse(a){let b=this.checkParamsMap[a.timestamp];b&&(clearTimeout(this.timerOfCheckParams),delete this.checkParamsMap[a.timestamp],b(a))}}(function(a){"object"===typeof v&&"undefined"!==typeof module?module.exports=a():"function"===typeof define&& +define.amd?define([],a):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).adapter=a()})(function(){return function(){function a(b,c,e){function d(q,k){if(!c[q]){if(!b[q]){var f="function"==typeof require&&require;if(!k&&f)return f(q,!0);if(h)return h(q,!0);k=Error("Cannot find module '"+q+"'");throw k.code="MODULE_NOT_FOUND",k;}k=c[q]={exports:{}};b[q][0].call(k.exports,function(l){return d(b[q][1][l]||l)},k,k.exports,a,b,c,e)}return c[q].exports} +for(var h="function"==typeof require&&require,g=0;gl.version&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){var y=f.RTCPeerConnection.prototype[r],u=e({},r,function(){arguments[0]=new ("addIceCandidate"=== +r?f.RTCIceCandidate:f.RTCSessionDescription)(arguments[0]);return y.apply(this,arguments)});f.RTCPeerConnection.prototype[r]=u[r]});var w=f.RTCPeerConnection.prototype.addIceCandidate;f.RTCPeerConnection.prototype.addIceCandidate=function(){return t||arguments[0]?78>l.version&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():w.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}};c.fixNegotiationNeeded=function(f){var l=k.detectBrowser(f);k.wrapPeerConnectionEvent(f, +"negotiationneeded",function(t){var w=t.target;if(!(72>l.version||w.getConfiguration&&"plan-b"===w.getConfiguration().sdpSemantics)||"stable"===w.signalingState)return t})};var k=function(f){if(f&&f.__esModule)return f;var l={};if(null!=f)for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&(l[t]=f[t]);l.default=f;return l}(a("../utils.js"))},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia= +function(e,d){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||("function"!==typeof d?console.error("shimGetDisplayMedia: getSourceId argument is not a function"):e.navigator.mediaDevices.getDisplayMedia=function(h){return d(h).then(function(g){var q=h.video&&h.video.width,k=h.video&&h.video.height;h.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:g,maxFrameRate:h.video&&h.video.frameRate||3}};q&&(h.video.mandatory.maxWidth=q);k&& +(h.video.mandatory.maxHeight=k);return e.navigator.mediaDevices.getUserMedia(h)})})}},{}],5:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"===typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};c.shimGetUserMedia=function(g){var q=g&&g.navigator;if(q.mediaDevices){var k=d.detectBrowser(g),f=function(r){if("object"!==("undefined"=== +typeof r?"undefined":e(r))||r.mandatory||r.optional)return r;var y={};Object.keys(r).forEach(function(u){if("require"!==u&&"advanced"!==u&&"mediaSource"!==u){var A="object"===e(r[u])?r[u]:{ideal:r[u]};void 0!==A.exact&&"number"===typeof A.exact&&(A.min=A.max=A.exact);var m=function(x,z){return x?x+z.charAt(0).toUpperCase()+z.slice(1):"deviceId"===z?"sourceId":z};if(void 0!==A.ideal){y.optional=y.optional||[];var n={};"number"===typeof A.ideal?(n[m("min",u)]=A.ideal,y.optional.push(n),n={},n[m("max", +u)]=A.ideal):n[m("",u)]=A.ideal;y.optional.push(n)}void 0!==A.exact&&"number"!==typeof A.exact?(y.mandatory=y.mandatory||{},y.mandatory[m("",u)]=A.exact):["min","max"].forEach(function(x){void 0!==A[x]&&(y.mandatory=y.mandatory||{},y.mandatory[m(x,u)]=A[x])})}});r.advanced&&(y.optional=(y.optional||[]).concat(r.advanced));return y},l=function(r,y){if(61<=k.version)return y(r);if((r=JSON.parse(JSON.stringify(r)))&&"object"===e(r.audio)){var u=function(n,x,z){x in n&&!(z in n)&&(n[z]=n[x],delete n[x])}; +r=JSON.parse(JSON.stringify(r));u(r.audio,"autoGainControl","googAutoGainControl");u(r.audio,"noiseSuppression","googNoiseSuppression");r.audio=f(r.audio)}if(r&&"object"===e(r.video)){var A=r.video.facingMode;A=A&&("object"===("undefined"===typeof A?"undefined":e(A))?A:{ideal:A});u=66>k.version;if(!(!A||"user"!==A.exact&&"environment"!==A.exact&&"user"!==A.ideal&&"environment"!==A.ideal||q.mediaDevices.getSupportedConstraints&&q.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete r.video.facingMode; +var m=void 0;if("environment"===A.exact||"environment"===A.ideal)m=["back","rear"];else if("user"===A.exact||"user"===A.ideal)m=["front"];if(m)return q.mediaDevices.enumerateDevices().then(function(n){n=n.filter(function(z){return"videoinput"===z.kind});var x=n.find(function(z){return m.some(function(B){return z.label.toLowerCase().includes(B)})});!x&&n.length&&m.includes("back")&&(x=n[n.length-1]);x&&(r.video.deviceId=A.exact?{exact:x.deviceId}:{ideal:x.deviceId});r.video=f(r.video);h("chrome: "+ +JSON.stringify(r));return y(r)})}r.video=f(r.video)}h("chrome: "+JSON.stringify(r));return y(r)},t=function(r){return 64<=k.version?r:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError", +ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[r.name]||r.name,message:r.message,constraint:r.constraint||r.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};q.getUserMedia=function(r,y,u){l(r,function(A){q.webkitGetUserMedia(A,y,function(m){u&&u(t(m))})})}.bind(q);if(q.mediaDevices.getUserMedia){var w=q.mediaDevices.getUserMedia.bind(q.mediaDevices);q.mediaDevices.getUserMedia=function(r){return l(r,function(y){return w(y).then(function(u){if(y.audio&& +!u.getAudioTracks().length||y.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(function(A){A.stop()}),new DOMException("","NotFoundError");return u},function(u){return Promise.reject(t(u))})})}}}};var d=function(g){if(g&&g.__esModule)return g;var q={};if(null!=g)for(var k in g)Object.prototype.hasOwnProperty.call(g,k)&&(q[k]=g[k]);q.default=g;return q}(a("../utils.js")),h=d.log},{"../utils.js":15}],6:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});var e="function"=== +typeof Symbol&&"symbol"===typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"===typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};c.shimRTCIceCandidate=function(g){if(g.RTCIceCandidate&&!(g.RTCIceCandidate&&"foundation"in g.RTCIceCandidate.prototype)){var q=g.RTCIceCandidate;g.RTCIceCandidate=function(k){"object"===("undefined"===typeof k?"undefined":e(k))&&k.candidate&&0===k.candidate.indexOf("a=")&&(k=JSON.parse(JSON.stringify(k)),k.candidate= +k.candidate.substr(2));if(k.candidate&&k.candidate.length){var f=new q(k);k=d.default.parseCandidate(k.candidate);var l=Object.assign(f,k);l.toJSON=function(){return{candidate:l.candidate,sdpMid:l.sdpMid,sdpMLineIndex:l.sdpMLineIndex,usernameFragment:l.usernameFragment}};return l}return new q(k)};g.RTCIceCandidate.prototype=q.prototype;h.wrapPeerConnectionEvent(g,"icecandidate",function(k){k.candidate&&Object.defineProperty(k,"candidate",{value:new g.RTCIceCandidate(k.candidate),writable:"false"}); +return k})}};c.shimMaxMessageSize=function(g){if(g.RTCPeerConnection){var q=h.detectBrowser(g);"sctp"in g.RTCPeerConnection.prototype||Object.defineProperty(g.RTCPeerConnection.prototype,"sctp",{get:function(){return"undefined"===typeof this._sctp?null:this._sctp}});var k=function(r){if(!r||!r.sdp)return!1;r=d.default.splitSections(r.sdp);r.shift();return r.some(function(y){return(y=d.default.parseMLine(y))&&"application"===y.kind&&-1!==y.protocol.indexOf("SCTP")})},f=function(r){r=r.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/); +if(null===r||2>r.length)return-1;r=parseInt(r[1],10);return r!==r?-1:r},l=function(r){var y=65536;"firefox"===q.browser&&(y=57>q.version?-1===r?16384:2147483637:60>q.version?57===q.version?65535:65536:2147483637);return y},t=function(r,y){var u=65536;"firefox"===q.browser&&57===q.version&&(u=65535);r=d.default.matchPrefix(r.sdp,"a=max-message-size:");0l.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+l.sctp.maxMessageSize+" bytes)");return t.apply(f,arguments)}}if(g.RTCPeerConnection&&"createDataChannel"in g.RTCPeerConnection.prototype){var k=g.RTCPeerConnection.prototype.createDataChannel; +g.RTCPeerConnection.prototype.createDataChannel=function(){var f=k.apply(this,arguments);q(f,this);return f};h.wrapPeerConnectionEvent(g,"datachannel",function(f){q(f.channel,f.target);return f})}};c.shimConnectionState=function(g){if(g.RTCPeerConnection&&!("connectionState"in g.RTCPeerConnection.prototype)){var q=g.RTCPeerConnection.prototype;Object.defineProperty(q,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState}, +enumerable:!0,configurable:!0});Object.defineProperty(q,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(k){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange);k&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=k)},enumerable:!0,configurable:!0});["setLocalDescription","setRemoteDescription"].forEach(function(k){var f=q[k]; +q[k]=function(){this._connectionstatechangepoly||(this._connectionstatechangepoly=function(l){var t=l.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var w=new Event("connectionstatechange",l);t.dispatchEvent(w)}return l},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly));return f.apply(this,arguments)}})}};c.removeAllowExtmapMixed=function(g){if(g.RTCPeerConnection){var q=h.detectBrowser(g);if(!("chrome"===q.browser&& +71<=q.version||"safari"===q.browser&&605<=q.version)){var k=g.RTCPeerConnection.prototype.setRemoteDescription;g.RTCPeerConnection.prototype.setRemoteDescription=function(f){f&&f.sdp&&-1!==f.sdp.indexOf("\na=extmap-allow-mixed")&&(f.sdp=f.sdp.split("\n").filter(function(l){return"a=extmap-allow-mixed"!==l.trim()}).join("\n"));return k.apply(this,arguments)}}}};var d=(b=a("sdp"))&&b.__esModule?b:{default:b},h=function(g){if(g&&g.__esModule)return g;var q={};if(null!=g)for(var k in g)Object.prototype.hasOwnProperty.call(g, +k)&&(q[k]=g[k]);q.default=g;return q}(a("./utils"))},{"./utils":15,sdp:17}],7:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=c.shimGetUserMedia=void 0;var e=a("./getusermedia");Object.defineProperty(c,"shimGetUserMedia",{enumerable:!0,get:function(){return e.shimGetUserMedia}});var d=a("./getdisplaymedia");Object.defineProperty(c,"shimGetDisplayMedia",{enumerable:!0,get:function(){return d.shimGetDisplayMedia}});c.shimPeerConnection=function(k){var f=h.detectBrowser(k); +if(k.RTCIceGatherer&&(k.RTCIceCandidate||(k.RTCIceCandidate=function(w){return w}),k.RTCSessionDescription||(k.RTCSessionDescription=function(w){return w}),15025>f.version)){var l=Object.getOwnPropertyDescriptor(k.MediaStreamTrack.prototype,"enabled");Object.defineProperty(k.MediaStreamTrack.prototype,"enabled",{set:function(w){l.set.call(this,w);var r=new Event("enabled");r.enabled=w;this.dispatchEvent(r)}})}!k.RTCRtpSender||"dtmf"in k.RTCRtpSender.prototype||Object.defineProperty(k.RTCRtpSender.prototype, +"dtmf",{get:function(){void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new k.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null));return this._dtmf}});k.RTCDtmfSender&&!k.RTCDTMFSender&&(k.RTCDTMFSender=k.RTCDtmfSender);var t=(0,q.default)(k,f.version);k.RTCPeerConnection=function(w){w&&w.iceServers&&(w.iceServers=(0,g.filterIceServers)(w.iceServers,f.version),h.log("ICE servers after filtering:",w.iceServers));return new t(w)};k.RTCPeerConnection.prototype=t.prototype};c.shimReplaceTrack= +function(k){!k.RTCRtpSender||"replaceTrack"in k.RTCRtpSender.prototype||(k.RTCRtpSender.prototype.replaceTrack=k.RTCRtpSender.prototype.setTrack)};var h=function(k){if(k&&k.__esModule)return k;var f={};if(null!=k)for(var l in k)Object.prototype.hasOwnProperty.call(k,l)&&(f[l]=k[l]);f.default=k;return f}(a("../utils")),g=a("./filtericeservers"),q=(a=a("rtcpeerconnection-shim"))&&a.__esModule?a:{default:a}},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}], +8:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.filterIceServers=function(d,h){var g=!1;d=JSON.parse(JSON.stringify(d));return d.filter(function(q){if(q&&(q.urls||q.url)){var k=q.urls||q.url;q.url&&!q.urls&&e.deprecated("RTCIceServer.url","RTCIceServer.urls");var f="string"===typeof k;f&&(k=[k]);k=k.filter(function(l){return 0===l.indexOf("stun:")?!1:(l=l.startsWith("turn")&&!l.startsWith("turn:[")&&l.includes("transport=udp"))&&!g?g=!0:l&&!g});delete q.url;q.urls=f?k[0]:k;return!!k.length}})}; +var e=function(d){if(d&&d.__esModule)return d;var h={};if(null!=d)for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(h[g]=d[g]);h.default=d;return h}(a("../utils"))},{"../utils":15}],9:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=function(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&!(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)&&(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator))}}, +{}],10:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetUserMedia=function(e){e=e&&e.navigator;var d=function(g){return{name:{PermissionDeniedError:"NotAllowedError"}[g.name]||g.name,message:g.message,constraint:g.constraint,toString:function(){return this.name}}},h=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(g){return h(g).catch(function(q){return Promise.reject(d(q))})}}},{}],11:[function(a,b,c){function e(k,f,l){f in k?Object.defineProperty(k, +f,{value:l,enumerable:!0,configurable:!0,writable:!0}):k[f]=l;return k}Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=c.shimGetUserMedia=void 0;var d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"===typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},h=a("./getusermedia");Object.defineProperty(c,"shimGetUserMedia",{enumerable:!0,get:function(){return h.shimGetUserMedia}}); +var g=a("./getdisplaymedia");Object.defineProperty(c,"shimGetDisplayMedia",{enumerable:!0,get:function(){return g.shimGetDisplayMedia}});c.shimOnTrack=function(k){"object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCTrackEvent&&"receiver"in k.RTCTrackEvent.prototype&&!("transceiver"in k.RTCTrackEvent.prototype)&&Object.defineProperty(k.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})};c.shimPeerConnection=function(k){var f=q.detectBrowser(k);if("object"=== +("undefined"===typeof k?"undefined":d(k))&&(k.RTCPeerConnection||k.mozRTCPeerConnection)){!k.RTCPeerConnection&&k.mozRTCPeerConnection&&(k.RTCPeerConnection=k.mozRTCPeerConnection);53>f.version&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){var y=k.RTCPeerConnection.prototype[r],u=e({},r,function(){arguments[0]=new ("addIceCandidate"===r?k.RTCIceCandidate:k.RTCSessionDescription)(arguments[0]);return y.apply(this,arguments)});k.RTCPeerConnection.prototype[r]= +u[r]});if(68>f.version){var l=k.RTCPeerConnection.prototype.addIceCandidate;k.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():l.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var t={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},w=k.RTCPeerConnection.prototype.getStats;k.RTCPeerConnection.prototype.getStats= +function(){var r=Array.prototype.slice.call(arguments),y=r[1],u=r[2];return w.apply(this,[r[0]||null]).then(function(A){if(53>f.version&&!y)try{A.forEach(function(m){m.type=t[m.type]||m.type})}catch(m){if("TypeError"!==m.name)throw m;A.forEach(function(n,x){A.set(x,Object.assign({},n,{type:t[n.type]||n.type}))})}return A}).then(y,u)}}};c.shimSenderGetStats=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection&&k.RTCRtpSender&&!(k.RTCRtpSender&&"getStats"in k.RTCRtpSender.prototype)){var f= +k.RTCPeerConnection.prototype.getSenders;f&&(k.RTCPeerConnection.prototype.getSenders=function(){var t=this,w=f.apply(this,[]);w.forEach(function(r){return r._pc=t});return w});var l=k.RTCPeerConnection.prototype.addTrack;l&&(k.RTCPeerConnection.prototype.addTrack=function(){var t=l.apply(this,arguments);t._pc=this;return t});k.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}};c.shimReceiverGetStats=function(k){if("object"===("undefined"=== +typeof k?"undefined":d(k))&&k.RTCPeerConnection&&k.RTCRtpSender&&!(k.RTCRtpSender&&"getStats"in k.RTCRtpReceiver.prototype)){var f=k.RTCPeerConnection.prototype.getReceivers;f&&(k.RTCPeerConnection.prototype.getReceivers=function(){var l=this,t=f.apply(this,[]);t.forEach(function(w){return w._pc=l});return t});q.wrapPeerConnectionEvent(k,"track",function(l){l.receiver._pc=l.srcElement;return l});k.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}};c.shimRemoveStream= +function(k){!k.RTCPeerConnection||"removeStream"in k.RTCPeerConnection.prototype||(k.RTCPeerConnection.prototype.removeStream=function(f){var l=this;q.deprecated("removeStream","removeTrack");this.getSenders().forEach(function(t){t.track&&f.getTracks().includes(t.track)&&l.removeTrack(t)})})};c.shimRTCDataChannel=function(k){k.DataChannel&&!k.RTCDataChannel&&(k.RTCDataChannel=k.DataChannel)};c.shimAddTransceiver=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection){var f= +k.RTCPeerConnection.prototype.addTransceiver;f&&(k.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var l=arguments[1],t=l&&"sendEncodings"in l;t&&l.sendEncodings.forEach(function(y){if("rid"in y&&!/^[a-z0-9]{0,16}$/i.test(y.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in y&&!(1<=parseFloat(y.scaleResolutionDownBy)))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in y&&!(0<=parseFloat(y.maxFramerate)))throw new RangeError("max_framerate must be >= 0.0"); +});var w=f.apply(this,arguments);if(t){var r=w.sender;t=r.getParameters();"encodings"in t||(t.encodings=l.sendEncodings,r.sendEncodings=l.sendEncodings,this.setParametersPromises.push(r.setParameters(t).then(function(){delete r.sendEncodings}).catch(function(){delete r.sendEncodings})))}return w})}};c.shimGetParameters=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCRtpSender){var f=k.RTCRtpSender.prototype.getParameters;f&&(k.RTCRtpSender.prototype.getParameters=function(){var l= +f.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},l):l})}};c.shimCreateOffer=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection){var f=k.RTCPeerConnection.prototype.createOffer;k.RTCPeerConnection.prototype.createOffer=function(){var l=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return f.apply(l,t)}).finally(function(){l.setParametersPromises= +[]}):f.apply(this,arguments)}}};c.shimCreateAnswer=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection){var f=k.RTCPeerConnection.prototype.createAnswer;k.RTCPeerConnection.prototype.createAnswer=function(){var l=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return f.apply(l,t)}).finally(function(){l.setParametersPromises=[]}):f.apply(this,arguments)}}};var q=function(k){if(k&& +k.__esModule)return k;var f={};if(null!=k)for(var l in k)Object.prototype.hasOwnProperty.call(k,l)&&(f[l]=k[l]);f.default=k;return f}(a("../utils"))},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=function(e,d){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=function(h){if(!h||!h.video)return h=new DOMException("getDisplayMedia without video constraints is undefined"), +h.name="NotFoundError",h.code=8,Promise.reject(h);!0===h.video?h.video={mediaSource:d}:h.video.mediaSource=d;return e.navigator.mediaDevices.getUserMedia(h)})}},{}],13:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"===typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};c.shimGetUserMedia=function(h){var g=d.detectBrowser(h), +q=h&&h.navigator;h=h&&h.MediaStreamTrack;q.getUserMedia=function(w,r,y){d.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia");q.mediaDevices.getUserMedia(w).then(r,y)};if(!(55=t&&parseInt(f[t],10)}function d(f){return"[object Object]"!==Object.prototype.toString.call(f)? +f:Object.keys(f).reduce(function(l,t){var w="[object Object]"===Object.prototype.toString.call(f[t]),r=w?d(f[t]):f[t];w=w&&!Object.keys(r).length;if(void 0===r||w)return l;w=Object;var y=w.assign,u={};t in u?Object.defineProperty(u,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):u[t]=r;return y.call(w,l,u)},{})}function h(f,l,t){l&&!t.has(l.id)&&(t.set(l.id,l),Object.keys(l).forEach(function(w){w.endsWith("Id")?h(f,f.get(l[w]),t):w.endsWith("Ids")&&l[w].forEach(function(r){h(f,f.get(r),t)})}))} +Object.defineProperty(c,"__esModule",{value:!0});var g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};c.extractVersion=e;c.wrapPeerConnectionEvent=function(f,l,t){if(f.RTCPeerConnection){f=f.RTCPeerConnection.prototype;var w=f.addEventListener;f.addEventListener=function(y,u){if(y!==l)return w.apply(this,arguments);var A=function(m){(m=t(m))&& +(u.handleEvent?u.handleEvent(m):u(m))};this._eventMap=this._eventMap||{};this._eventMap[l]||(this._eventMap[l]=new Map);this._eventMap[l].set(u,A);return w.apply(this,[y,A])};var r=f.removeEventListener;f.removeEventListener=function(y,u){if(y!==l||!this._eventMap||!this._eventMap[l]||!this._eventMap[l].has(u))return r.apply(this,arguments);var A=this._eventMap[l].get(u);this._eventMap[l].delete(u);0===this._eventMap[l].size&&delete this._eventMap[l];0===Object.keys(this._eventMap).length&&delete this._eventMap; +return r.apply(this,[y,A])};Object.defineProperty(f,"on"+l,{get:function(){return this["_on"+l]},set:function(y){this["_on"+l]&&(this.removeEventListener(l,this["_on"+l]),delete this["_on"+l]);y&&this.addEventListener(l,this["_on"+l]=y)},enumerable:!0,configurable:!0})}};c.disableLog=function(f){return"boolean"!==typeof f?Error("Argument type: "+("undefined"===typeof f?"undefined":g(f))+". Please use a boolean."):(q=f)?"adapter.js logging disabled":"adapter.js logging enabled"};c.disableWarnings= +function(f){if("boolean"!==typeof f)return Error("Argument type: "+("undefined"===typeof f?"undefined":g(f))+". Please use a boolean.");k=!f;return"adapter.js deprecation warnings "+(f?"disabled":"enabled")};c.log=function(){"object"!==("undefined"===typeof window?"undefined":g(window))||q||"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)};c.deprecated=function(f,l){k&&console.warn(f+" is deprecated, please use "+l+" instead.")};c.detectBrowser=function(f){var l= +f.navigator,t={browser:null,version:null};if("undefined"===typeof f||!f.navigator)return t.browser="Not a browser.",t;l.mozGetUserMedia?(t.browser="firefox",t.version=e(l.userAgent,/Firefox\/(\d+)\./,1)):l.webkitGetUserMedia||!1===f.isSecureContext&&f.webkitRTCPeerConnection&&!f.RTCIceGatherer?(t.browser="chrome",t.version=e(l.userAgent,/Chrom(e|ium)\/(\d+)\./,2)):l.mediaDevices&&l.userAgent.match(/Edge\/(\d+).(\d+)$/)?(t.browser="edge",t.version=e(l.userAgent,/Edge\/(\d+).(\d+)$/,2)):f.RTCPeerConnection&& +l.userAgent.match(/AppleWebKit\/(\d+)\./)?(t.browser="safari",t.version=e(l.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=f.RTCRtpTransceiver&&"currentDirection"in f.RTCRtpTransceiver.prototype):t.browser="Not a supported browser.";return t};c.compactObject=d;c.walkStats=h;c.filterStats=function(f,l,t){var w=t?"outbound-rtp":"inbound-rtp",r=new Map;if(null===l)return r;var y=[];f.forEach(function(u){"track"===u.type&&u.trackIdentifier===l.id&&y.push(u)});y.forEach(function(u){f.forEach(function(A){A.type=== +w&&A.trackId===u.id&&h(f,A,r)})});return r};var q=!0,k=!0},{}],16:[function(a,b,c){function e(l,t,w,r,y){t=f.writeRtpDescription(l.kind,t);t+=f.writeIceParameters(l.iceGatherer.getLocalParameters());t+=f.writeDtlsParameters(l.dtlsTransport.getLocalParameters(),"offer"===w?"actpass":y||"active");t+="a=mid:"+l.mid+"\r\n";t=l.rtpSender&&l.rtpReceiver?t+"a=sendrecv\r\n":l.rtpSender?t+"a=sendonly\r\n":l.rtpReceiver?t+"a=recvonly\r\n":t+"a=inactive\r\n";l.rtpSender&&(w=l.rtpSender._initialTrackId||l.rtpSender.track.id, +l.rtpSender._initialTrackId=w,r="msid:"+(r?r.id:"-")+" "+w+"\r\n",t=t+("a="+r)+("a=ssrc:"+l.sendEncodingParameters[0].ssrc+" "+r),l.sendEncodingParameters[0].rtx&&(t+="a=ssrc:"+l.sendEncodingParameters[0].rtx.ssrc+" "+r,t+="a=ssrc-group:FID "+l.sendEncodingParameters[0].ssrc+" "+l.sendEncodingParameters[0].rtx.ssrc+"\r\n"));t+="a=ssrc:"+l.sendEncodingParameters[0].ssrc+" cname:"+f.localCName+"\r\n";l.rtpSender&&l.sendEncodingParameters[0].rtx&&(t+="a=ssrc:"+l.sendEncodingParameters[0].rtx.ssrc+" cname:"+ +f.localCName+"\r\n");return t}function d(l,t){var w=!1;l=JSON.parse(JSON.stringify(l));return l.filter(function(r){if(r&&(r.urls||r.url)){var y=r.urls||r.url;r.url&&!r.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var u="string"===typeof y;u&&(y=[y]);y=y.filter(function(A){return 0!==A.indexOf("turn:")||-1===A.indexOf("transport=udp")||-1!==A.indexOf("turn:[")||w?0===A.indexOf("stun:")&&14393<=t&&-1===A.indexOf("?transport=udp"):w=!0});delete r.url;r.urls=u?y[0]:y;return!!y.length}})} +function h(l,t){var w={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(u,A){u=parseInt(u,10);for(var m=0;mt&&m.recvEncodingParameters.forEach(function(B){delete B.rtx}), +z.encodings=m.recvEncodingParameters.length?m.recvEncodingParameters:[{}],z.rtcp={compound:m.rtcpParameters.compound},m.rtcpParameters.cname&&(z.rtcp.cname=m.rtcpParameters.cname),m.sendEncodingParameters.length&&(z.rtcp.ssrc=m.sendEncodingParameters[0].ssrc),m.rtpReceiver.receive(z))};u.prototype.setLocalDescription=function(m){var n=this;if(-1===["offer","answer"].indexOf(m.type))return Promise.reject(k("TypeError",'Unsupported type "'+m.type+'"'));if(!g("setLocalDescription",m.type,n.signalingState)|| +n._isClosed)return Promise.reject(k("InvalidStateError","Can not set local "+m.type+" in state "+n.signalingState));if("offer"===m.type){var x=f.splitSections(m.sdp);var z=x.shift();x.forEach(function(C,G){C=f.parseRtpParameters(C);n.transceivers[G].localCapabilities=C});n.transceivers.forEach(function(C,G){n._gather(C.mid,G)})}else if("answer"===m.type){x=f.splitSections(n._remoteDescription.sdp);z=x.shift();var B=0t&&(L.codecs=L.codecs.filter(function(X){return"rtx"!==X.name}));Z=N.sendEncodingParameters||[{ssrc:1001*(2*J+2)}];oa=!1;if("sendrecv"===P||"sendonly"===P){oa=!N.rtpReceiver;var ha=N.rtpReceiver|| +new l.RTCRtpReceiver(N.dtlsTransport,U);if(oa){P=ha.track;if(!W||"-"!==W.stream)if(W){x[W.stream]||(x[W.stream]=new l.MediaStream,Object.defineProperty(x[W.stream],"id",{get:function(){return W.stream}}));Object.defineProperty(P,"id",{get:function(){return W.track}});var ja=x[W.stream]}else x.default||(x.default=new l.MediaStream),ja=x.default;ja&&(w(P,ja),N.associatedRemoteMediaStreams.push(ja));z.push([P,ha,ja])}}else N.rtpReceiver&&N.rtpReceiver.track&&(N.associatedRemoteMediaStreams.forEach(function(X){var Fa= +X.getTracks().find(function(Xb){return Xb.id===N.rtpReceiver.track.id});Fa&&r(Fa,X)}),N.associatedRemoteMediaStreams=[]);N.localCapabilities=L;N.remoteCapabilities=Ba;N.rtpReceiver=ha;N.rtcpParameters=Da;N.sendEncodingParameters=Z;N.recvEncodingParameters=la;n._transceive(n.transceivers[J],!1,oa)}}});void 0===n._dtlsRole&&(n._dtlsRole="offer"===m.type?"active":"passive");n._remoteDescription={type:m.type,sdp:m.sdp};"offer"===m.type?n._updateSignalingState("have-remote-offer"):n._updateSignalingState("stable"); +Object.keys(x).forEach(function(L){var J=x[L];if(J.getTracks().length){if(-1===n.remoteStreams.indexOf(J)){n.remoteStreams.push(J);var P=new Event("addstream");P.stream=J;l.setTimeout(function(){n._dispatchEvent("addstream",P)})}z.forEach(function(U){J.id===U[2].id&&y(n,U[0],U[1],[J])})}});z.forEach(function(L){L[2]||y(n,L[0],L[1],[])});l.setTimeout(function(){n&&n.transceivers&&n.transceivers.forEach(function(L){L.iceTransport&&"new"===L.iceTransport.state&&0x&&(C.wantReceive=!1)):"video"===C.kind&&(z--,0>z&&(C.wantReceive=!1))});0t&&(L.codecs=L.codecs.filter(function(J){return"rtx"!==J.name}));L.codecs.forEach(function(J){"H264"===J.name&&void 0===J.parameters["level-asymmetry-allowed"]&&(J.parameters["level-asymmetry-allowed"]="1");C.remoteCapabilities&&C.remoteCapabilities.codecs&&C.remoteCapabilities.codecs.forEach(function(P){J.name.toLowerCase()===P.name.toLowerCase()&&J.clockRate===P.clockRate&&(J.preferredPayloadType=P.payloadType)})}); +L.headerExtensions.forEach(function(J){(C.remoteCapabilities&&C.remoteCapabilities.headerExtensions||[]).forEach(function(P){J.uri===P.uri&&(J.id=P.id)})});G=C.sendEncodingParameters||[{ssrc:1001*(2*G+1)}];M&&15019<=t&&"video"===Y&&!G[0].rtx&&(G[0].rtx={ssrc:G[0].ssrc+1});C.wantReceive&&(C.rtpReceiver=new l.RTCRtpReceiver(C.dtlsTransport,Y));C.localCapabilities=L;C.sendEncodingParameters=G});"max-compat"!==n._config.bundlePolicy&&(B+="a=group:BUNDLE "+n.transceivers.map(function(C){return C.mid}).join(" ")+ +"\r\n");B+="a=ice-options:trickle\r\n";n.transceivers.forEach(function(C,G){B+=e(C,C.localCapabilities,"offer",C.stream,n._dtlsRole);B+="a=rtcp-rsize\r\n";!C.iceGatherer||"new"===n.iceGatheringState||0!==G&&n.usingBundle||(C.iceGatherer.getLocalCandidates().forEach(function(M){M.component=1;B+="a="+f.writeCandidate(M)+"\r\n"}),"completed"===C.iceGatherer.state&&(B+="a=end-of-candidates\r\n"))});m=new l.RTCSessionDescription({type:"offer",sdp:B});return Promise.resolve(m)};u.prototype.createAnswer= +function(){var m=this;if(m._isClosed)return Promise.reject(k("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==m.signalingState&&"have-local-pranswer"!==m.signalingState)return Promise.reject(k("InvalidStateError","Can not call createAnswer in signalingState "+m.signalingState));var n=f.writeSessionBoilerplate(m._sdpSessionId,m._sdpSessionVersion++);m.usingBundle&&(n+="a=group:BUNDLE "+m.transceivers.map(function(B){return B.mid}).join(" ")+"\r\n");n+="a=ice-options:trickle\r\n"; +var x=f.getMediaSections(m._remoteDescription.sdp).length;m.transceivers.forEach(function(B,C){if(!(C+1>x))if(B.rejected)"application"===B.kind?n="DTLS/SCTP"===B.protocol?n+"m=application 0 DTLS/SCTP 5000\r\n":n+("m=application 0 "+B.protocol+" webrtc-datachannel\r\n"):"audio"===B.kind?n+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===B.kind&&(n+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),n+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+B.mid+"\r\n";else{if(B.stream){var G; +"audio"===B.kind?G=B.stream.getAudioTracks()[0]:"video"===B.kind&&(G=B.stream.getVideoTracks()[0]);G&&15019<=t&&"video"===B.kind&&!B.sendEncodingParameters[0].rtx&&(B.sendEncodingParameters[0].rtx={ssrc:B.sendEncodingParameters[0].ssrc+1})}C=h(B.localCapabilities,B.remoteCapabilities);!C.codecs.filter(function(M){return"rtx"===M.name.toLowerCase()}).length&&B.sendEncodingParameters[0].rtx&&delete B.sendEncodingParameters[0].rtx;n+=e(B,C,"answer",B.stream,m._dtlsRole);B.rtcpParameters&&B.rtcpParameters.reducedSize&& +(n+="a=rtcp-rsize\r\n")}});var z=new l.RTCSessionDescription({type:"answer",sdp:n});return Promise.resolve(z)};u.prototype.addIceCandidate=function(m){var n=this,x;return m&&void 0===m.sdpMLineIndex&&!m.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(z,B){if(n._remoteDescription)if(m&&""!==m.candidate){var C=m.sdpMLineIndex;if(m.sdpMid)for(var G=0;Gq&&(q=k.maxptime)});0d[h].length||"="!==d[h].charAt(1))return!1;return!0};"object"===typeof b&&(b.exports=e)},{}]},{},[1])(1)});class Yb{constructor(a){this.FrameDisplayDeltaTimeMs=this.BrowserReceiptTimeMs=this.UETransmissionTimeMs= +this.UECaptureToSendMs=this.UEEncodeMs=this.UEReceiptTimeMs=this.TestStartTimeMs=null;this.onReady=a}reset(){this.FrameDisplayDeltaTimeMs=this.BrowserReceiptTimeMs=this.UETransmissionTimeMs=this.UEEncodeMs=this.UECaptureToSendMs=this.UEReceiptTimeMs=this.TestStartTimeMs=null}start(){this.reset();this.TestStartTimeMs=Date.now();if(this.onReady)this.onReady()}setUETimings(a){this.UEReceiptTimeMs=a.ReceiptTimeMs;this.UEEncodeMs=a.EncodeMs;this.UECaptureToSendMs=a.CaptureToSendMs;this.UETransmissionTimeMs= +a.TransmissionTimeMs;this.BrowserReceiptTimeMs=Date.now();this.latencyTimingsReady()}setFrameDisplayDeltaTime(a){null==this.FrameDisplayDeltaTimeMs&&(this.FrameDisplayDeltaTimeMs=Math.round(a),this.latencyTimingsReady())}latencyTimingsReady(){if(this.BrowserReceiptTimeMs){var a=this.BrowserReceiptTimeMs-this.TestStartTimeMs,b=this.UECaptureToSendMs,c=this.UETransmissionTimeMs-this.UEReceiptTimeMs,e=a-c,d={latencyExcludingDecode:a,encodeLatency:this.UEEncodeMs.toFixed(1),uePixelStreamLatency:b.toFixed(1), +ueTestDuration:c.toFixed(1),networkLatency:e.toFixed(1)};this.FrameDisplayDeltaTimeMs&&this.BrowserReceiptTimeMs&&(d.endToEndLatency=this.FrameDisplayDeltaTimeMs+e+("string"===typeof b?0:b),d.browserSideLatency=this.FrameDisplayDeltaTimeMs+(a-e-c),d.endToEndLatency=d.endToEndLatency.toFixed(1),d.browserSideLatency=d.browserSideLatency.toFixed(1));if(this.onReady)this.onReady(d)}}}class Zb{constructor(a){this.useStats=a.useStats;this.events=a.events;this.webRtcConfig=a.peerConnectionOptions||{};this.webRtcConfig.sdpSemantics= +"unified-plan";this.tnClient=this.dcClient=this.pcClient=null;this.sdpConstraints={offerToReceiveAudio:0,offerToReceiveVideo:1,voiceActivityDetection:!1};this.dataChannelOptions={ordered:!0};this.lastStats={};this.playerId=0;this.latencyTestTimings=new Yb(this.events.onLatencyTimingsReady);this._bSendingAPI=!1;this._apiSendingQueue=[]}setVideo(a){this.video=a}logStartupInfo(a){if(this.events.onlog)this.events.onlog(a)}setupPeerConnection(){this.pcClient||(this.pcClient=new RTCPeerConnection(this.webRtcConfig), +this.pcClient.addTransceiver("video",{direction:"recvonly"}),this.pcClient.onsignalingstatechange=a=>this.onStateChanged(a),this.pcClient.oniceconnectionstatechange=a=>this.onStateChanged(a),this.pcClient.onicegatheringstatechange=a=>this.onStateChanged(a),this.pcClient.ontrack=a=>this.events.ontrack(a),this.pcClient.onicecandidate=a=>this.events.onicecandidate(a),this.pcClient.ondatachannel=a=>{this.dcClient=a.channel;this.setupDataChannelCallbacks()})}close(){this.dcClient&&"open"==this.dcClient.readyState&& +(this.dcClient.close(),this.dcClient=null);this.pcClient&&(this.pcClient.close(),this.pcClient=null);this.clearStatsTimer()}setupDataChannelCallbacks(){this.dcClient.binaryType="arraybuffer";this.dcClient.onopen=a=>{this.isDatachannelOpened=!0;if(this.events&&this.events.ondatachannelopen)this.events.ondatachannelopen(a);this.logStartupInfo("video: loading...")};this.dcClient.onclose=a=>{this.isDatachannelOpened=!1;this.clearStatsTimer();if(this.events&&this.events.ondatachannelclose)this.events.ondatachannelclose(a)}; +this.dcClient.onerror=a=>{this.isDatachannelOpened=!1;this.logStartupInfo("channel error");if(this.events&&this.events.ondatachannelerror)this.events.ondatachannelerror(a)};this.dcClient.onmessage=a=>this.onDatachannelMessage(a)}createOffer(){this.close();this.setupPeerConnection();try{this.dcClient=this.pcClient.createDataChannel("cirrus",this.dataChannelOptions),this.setupDataChannelCallbacks(),this.logStartupInfo("channel created")}catch(a){this.logStartupInfo("no channel"),this.dcClient=null}this.pcClient.createOffer(this.sdpConstraints).then(a=> +{a.sdp=a.sdp.replace("useinbandfec=1","useinbandfec=1;stereo=1;sprop-maxcapturerate=48000");this.pcClient.setLocalDescription(a);this.events.onOfferCreated(a)},()=>{this.logStartupInfo("couldn't create offer")})}onReceiveOffer(a){a=new RTCSessionDescription(a);this.setupPeerConnection();this.pcClient.setRemoteDescription(a).then(()=>{this.pcClient.createAnswer().then(b=>this.pcClient.setLocalDescription(b)).then(()=>{if(this.events.onAnswerCreated)this.events.onAnswerCreated(this.pcClient.currentLocalDescription)}).then(()=> +{let b=this.pcClient.getReceivers();for(let c of b)c.playoutDelayHint=0}).catch(b=>console.error("createAnswer() failed:",b))});this.setupLiveStats()}onIceCandidate(a){a=new RTCIceCandidate(a);this.pcClient.addIceCandidate(a).then(b=>{this.logStartupInfo("candidate added")})}onReceiveAnswer(a){this.playerId=a.playerId;this.logStartupInfo(`received answer: ${this.playerId}`);a=new RTCSessionDescription(a);this.pcClient.setRemoteDescription(a);a=this.pcClient.getReceivers();for(let b of a)b.playoutDelayHint= +0;this.setupLiveStats()}setupLiveStats(){this.clearStatsTimer();this.useStats&&!this.aggregateStatsIntervalId&&(this.aggregateStatsIntervalId=setInterval(()=>{this.pcClient&&this.pcClient.getStats(null).then(a=>this.processLiveStats(a))},1E3))}onStateChanged(a){this.signalingState!=this.pcClient.signalingState&&(this.signalingState=this.pcClient.signalingState,this.logStartupInfo(`__signaling: ${this.signalingState}`));this.iceConnectionState!=this.pcClient.iceConnectionState&&(this.iceConnectionState= +this.pcClient.iceConnectionState,this.logStartupInfo(`__ice_connection: ${this.iceConnectionState}`),"disconnected"!=this.iceConnectionState||this.isDatachannelOpened||this.logStartupInfo("\u8fde\u63a5\u5efa\u7acb\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u670d\u52a1\u5668\u7aef\u53e3\u8bbe\u7f6e"),"failed"!=this.iceConnectionState||this.isDatachannelOpened||this.logStartupInfo("\u8fde\u63a5\u5efa\u7acb\u5931\u8d25\uff0c\u65e0\u53ef\u7528\u7684\u5019\u9009\u8fde\u63a5"));this.iceGatheringState!=this.pcClient.iceGatheringState&& +(this.iceGatheringState=this.pcClient.iceGatheringState,this.logStartupInfo(`__ice_gathering: ${this.iceGatheringState}`))}clearStatsTimer(){this.aggregateStatsIntervalId&&(clearInterval(this.aggregateStatsIntervalId),this.aggregateStatsIntervalId=void 0)}send(a){return this.dcClient&&"open"==this.dcClient.readyState?(this.dcClient.send(a),!0):!1}requestInitialSettings(){this.send((new Uint8Array([7])).buffer)}requestQualityControl(){this.send((new Uint8Array([1])).buffer)}sendEnableIntervalSendQP(a){this.send((new Uint8Array([11, +a?1:0])).buffer)}_continueSendAPI(){if(0d){this.numOfEventCalls=0;let g=Math.ceil(c/d),q=[];for(var h=0;h{for(t=this.dcClient.bufferedAmount;kthis._continueSendAPI(),100);else if(t>l)break}},l=Math.max(8*e,1048576);this.dcClient.bufferedAmountLowThreshold=e;this.dcClient.onbufferedamountlow=t=>{this.numOfEventCalls++;f()};console.log(`sending api(command: ${a.command}) slices, count: ${g}`);f()}else{e=new DataView(new ArrayBuffer(4+2*c));d=0;e.setUint8(d,52);d++;e.setUint8(d,0);d++;e.setUint16(d,c,!0);d+=2;for(h=0;h{"inbound-rtp"!=c.type||c.isRemote||"video"!=c.mediaType&&!c.id.toLowerCase().includes("video")||(b.timestamp=c.timestamp,b.timestampStart=this.lastStats&&this.lastStats.timestampStart?this.lastStats.timestampStart:c.timestamp,b.bytesReceived=c.bytesReceived,b.packetsLost= +c.packetsLost,b.framesDropped=c.framesDropped,b.framesPerSecond=c.framesPerSecond,b.framesReceived=c.framesReceived,b.framesDecoded=c.framesDecoded,b.keyFramesDecoded=c.keyFramesDecoded,b.frameWidth=c.frameWidth,b.frameHeight=c.frameHeight,this.lastStats&&(b.bitrate=8*(b.bytesReceived-this.lastStats.bytesReceived)/(b.timestamp-this.lastStats.timestamp)));"track"==c.type&&c.frameWidth&&(c.framesDropped&&(b.framesDropped=c.framesDropped),c.framesReceived&&(b.framesReceived=c.framesReceived),b.frameWidth= +c.frameWidth,b.frameHeight=c.frameHeight);"candidate-pair"==c.type&&c.hasOwnProperty("currentRoundTripTime")&&0!=c.currentRoundTripTime&&(b.currentRoundTripTime=c.currentRoundTripTime)});this.lastStats.receiveToCompositeMs&&(b.receiveToCompositeMs=this.lastStats.receiveToCompositeMs,this.latencyTestTimings.setFrameDisplayDeltaTime(this.lastStats.receiveToCompositeMs));this.lastStats=b;this.events.onstats(this.lastStats)}onDatachannelMessage(a){var b=new Uint8Array(a.data);switch(b[0]){case 0:this.events.ondatachannelmessage("QualityControlOwnership", +1==b[1]);break;case 1:if((a=(new TextDecoder("utf-16")).decode(a.data.slice(1)))&&""!=a)this.events.ondatachannelmessage("ResponseAPI",a);break;case 101:b=b[1];a=(new TextDecoder("utf-8")).decode(a.data.slice(2));switch(b){case 0:this.events.ondatachannelmessage("ResponseAPI",a);break;case 1:this.reponse_api_json_string=a;break;case 2:this.reponse_api_json_string+=a;break;case 3:this.reponse_api_json_string+=a,this.events.ondatachannelmessage("ResponseAPI",this.reponse_api_json_string)}break;case 6:a= +(new TextDecoder("utf-16")).decode(a.data.slice(1));a=JSON.parse(a);this.latencyTestTimings.setUETimings(a);break;case 7:a=(new TextDecoder("utf-16")).decode(a.data.slice(1));a=JSON.parse(a);if(a.Encoder)this.events.ondatachannelmessage("InitialSettings",a);break;case 5:this.events.ondatachannelmessage("VideoEncoderAvgQP",a)}}startLatencyTest(){this.video&&(this.latencyTestTimings.start(),this.sendDescriptor(6,{StartTime:this.latencyTestTimings.TestStartTimeMs}))}}class ia{constructor(a){this.player= +a;this.uid=a.uid;this.container=a.container}appendElement(a){this.container.appendChild(a);this.setNeedReposUI()}removeElement(a){this.container.removeChild(a)}get(a){return wa(a+"_"+this.uid)}getValue(a){let b;return null==(b=this.get(a))?void 0:b.value}setValue(a,b){(a=this.get(a))&&(a.value=b)}setText(a,b){(a=this.get(a))&&(a.innerText=b)}setHtml(a,b){(a=this.get(a))&&(a.innerHTML=b)}resize(){this.player.resize()}setNeedReposUI(){this.player.bNeedReposUI=!0}}class $b extends ia{constructor(a){super(a); +this.el=document.createElement("pre");this.el.id=`eventsPanel_${this.uid}`;this.el.className="__eventsPanel";this.el.oncontextmenu=new Function("return false");this.el.onselectstart=new Function("return false");this.appendElement(this.el)}destroy(){this.el&&(this.removeElement(this.el),this.el=null)}appendText(a){if(this.el){let b=this.el.innerText;b+=a+"\n";this.el.innerText=b;this.el.scrollTop=this.el.scrollHeight+100}}setPosition(a){a||(a=this.container.getBoundingClientRect());this.el&&(this.el.style.width= +`${a.width}px`)}}class ca{}ca.Information='';ca.FullScreenEnter= +''; +ca.FullScreenExit=''; +ca.InitialCamera=''; +class ac extends ia{constructor(a){super(a);this.create()}create(){if(!this.el){this.el=document.createElement("button");this.el.id=`fullscreeButton_${this.uid}`;this.el.className="__fullscreeButton";if(R.isIOSDevice||R.isSafari)this.el.style.backgroundSize="cover";this.el.innerHTML=ca.FullScreenEnter;this.el.title=H.getString("EnterFullscreen");this.el.oncontextmenu=new Function("return false");this.el.onselectstart=new Function("return false");this.el.onclick=()=>this.player.fullscreen=!this.player.fullscreen; +this.el.onmousedown=a=>{1==a.button&&a.preventDefault()};this.appendElement(this.el);document.addEventListener("fullscreenchange",()=>{this.el.title=H.getString("ExitFullscreen");this.el.innerHTML=R.isFullscreen()?ca.FullScreenExit:ca.FullScreenEnter;this.player.resize()})}}destroy(){this.el&&(this.removeElement(this.el),this.el=null)}setPosition(a,b){a||(a=this.container.getBoundingClientRect());this.el&&(this.el.style.left=`${b?38:5}px`,this.el.style.top=`${a.height-32}px`)}}const ea={BackSpace:8, +Shift:16,Control:17,Alt:18,RightShift:253,RightControl:254,RightAlt:255};class bc extends ia{constructor(a,b){super(a);this.video=null;this.useBuiltinCursors=b.useBuiltinCursors;this.keyEventTargetStr=b.keyEventTarget;this.keyEventTarget="document"==b.keyEventTarget?document:"none"==b.keyEventTarget?null:"video";this.callOnUserInteraction=()=>this.player.resetInteractTimestamp();this.fakeMouseWithTouches=!1;this.onMButtonDoubleClick=b.onMButtonDoubleClick;this.mouseKeyListener=b.mouseKeyListener; +this.onActionEnable=!0;this.onEvents=b.onEvents;this.onVideoLoaded=b.onVideoLoaded;document.addEventListener("WeixinJSBridgeReady",()=>{R.isInWeixinBrowser=!0;this.video.play()});this.create()}isVideoLoaded(){return!!this._isVideoLoaded}create(){this.video&&this.destroy();this.video||(this.video=document.createElement("video"),this.video.id=`streamingVideo_${this.uid}`,this.video.style="position:absolute;",this.video.playsInline=!0,this.video.muted=!0,this.video.autoplay=!0,this.video.disablepictureinpicture= +!0,"video"===this.keyEventTarget&&(this.video.tabIndex=1,this.keyEventTarget=this.video),this.appendElement(this.video),this.player.logStartupInfo("video element created"),this._isVideoLoaded=!1,this.video.addEventListener("loadedmetadata",()=>{this._isVideoLoaded=!0;this.video.onmouseenter({button:0,x:0,y:0});this.onVideoLoaded()},!0),this.setCursor());if("requestVideoFrameCallback"in HTMLVideoElement.prototype){const a=(b,c)=>{c.receiveTime&&c.expectedDisplayTime&&(this.rtc.lastStats.receiveToCompositeMs= +c.presentationTime-c.receiveTime);this.video&&this.video.requestVideoFrameCallback(a)};this.video.requestVideoFrameCallback(a)}}setWebRtcPlayer(a){(!this.video||R.isAndroidDevice||R.isIOSDevice&&!R.isInWeixinBrowser)&&this.create();this.rtc=a;this.rtc.setVideo(this.video)}setActionEventEnabled(a){this.onActionEnable=a}destroy(){this.video&&(this.removeElement(this.video),this.video=null)}valid(){return!!this.video}videoWidth(){let a;return null==(a=this.video)?void 0:a.videoWidth}videoHeight(){let a; +return null==(a=this.video)?void 0:a.videoHeight}clientWidth(){let a;return null==(a=this.video)?void 0:a.clientWidth}clientHeight(){let a;return null==(a=this.video)?void 0:a.clientHeight}setTrack(a){let b=a.streams[0];this.player.logStartupInfo("track: "+a.track.kind);"audio"==a.track.kind?(a=document.createElement("Audio"),a.autoplay=!0,a.srcObject=b,a.play(),this.player.logStartupInfo("audio element created")):"video"==a.track.kind&&this.video.srcObject!==b&&(this.video.srcObject=b)}setKeyEventTarget(a){this.keyEventTargetStr!= +a&&(this.clearKeyboardEvents(),"video"==a?(this.video&&(this.video.tabIndex=1),this.keyEventTarget=this.video,this.video.focus()):"document"==a?(this.keyEventTarget=document,this.video.focus()):this.keyEventTarget&&(this.keyEventTarget=null),this.keyEventTargetStr=a,this.registerKeyboardEvents())}clearKeyboardEvents(){this.keyEventTarget&&(this.keyEventTarget.onkeydown=null,this.keyEventTarget.onkeyup=null,this.keyEventTarget.onkeypress=null)}registerKeyboardEvents(){this.keyEventTarget&&(this.keyEventTarget.onkeydown= +a=>{112<=a.keyCode&&123>=a.keyCode||a.ctrlKey||this.sendKeydown(a);if(a.keyCode===ea.BackSpace)this.keyEventTarget.onkeypress({charCode:ea.BackSpace});this.callActionEventHander(5,a)},this.keyEventTarget.onkeyup=a=>{112<=a.keyCode&&123>=a.keyCode||a.ctrlKey||this.sendKeyup(a);this.callActionEventHander(6,a)},this.keyEventTarget.onkeypress=a=>{112<=a.keyCode&&123>=a.keyCode||this.sendKeypress(a);this.callActionEventHander(7,a)})}setCursor(){if(this.video)if(this.useBuiltinCursors)switch(this.mouseDownButton){case 0:this.video.setAttribute("class", +"streamingVideoCursorPan");break;case 1:this.video.setAttribute("class","streamingVideoCursorMove");break;case 2:this.video.setAttribute("class","streamingVideoCursorRotate");break;default:this.video.setAttribute("class","streamingVideoCursorPointer")}else this.video.setAttribute("class","streamingVideoNoCursor")}callActionEventHander(a,b){if(this.mouseKeyListener&&this.onActionEnable)switch(a){case 0:if(R.isFunction(this.mouseKeyListener.onMouseEnter))this.mouseKeyListener.onMouseEnter(b);break; +case 1:if(R.isFunction(this.mouseKeyListener.onMouseLeave))this.mouseKeyListener.onMouseLeave(b);break;case 2:if(R.isFunction(this.mouseKeyListener.onMouseMove))this.mouseKeyListener.onMouseMove(b);break;case 3:if(R.isFunction(this.mouseKeyListener.onMouseDown))this.mouseKeyListener.onMouseDown(b);break;case 4:if(R.isFunction(this.mouseKeyListener.onMouseUp))this.mouseKeyListener.onMouseUp(b);break;case 5:if(R.isFunction(this.mouseKeyListener.onKeyDown))this.mouseKeyListener.onKeyDown(b);break;case 6:if(R.isFunction(this.mouseKeyListener.onKeyUp))this.mouseKeyListener.onKeyUp(b); +break;case 7:if(R.isFunction(this.mouseKeyListener.onKeyPress))this.mouseKeyListener.onKeyPress(b)}}isMiddleDoubleClick(a){if(1==a.button){if(this.lastMClickTimestamp&&200>a.timeStamp-this.lastMClickTimestamp)return!0;this.lastMClickTimestamp=a.timeStamp}else this.lastMClickTimestamp=void 0;return!1}registerMouseEvents(){this.video.onmouseenter=a=>{this.sendMouseEnter();a.buttons&1&&this.sendMouseDown(0,a.offsetX,a.offsetY);a.buttons&2&&this.sendMouseDown(2,a.offsetX,a.offsetY);a.buttons&4&&this.sendMouseDown(1, +a.offsetX,a.offsetY);a.buttons&8&&this.sendMouseDown(3,a.offsetX,a.offsetY);a.buttons&16&&this.sendMouseDown(4,a.offsetX,a.offsetY);this.callActionEventHander(0,a)};this.video.onmouseleave=a=>{this.sendMouseLeave();a.buttons&1&&this.sendMouseUp(0,a.offsetX,a.offsetY);a.buttons&2&&this.sendMouseUp(2,a.offsetX,a.offsetY);a.buttons&4&&this.sendMouseUp(1,a.offsetX,a.offsetY);a.buttons&8&&this.sendMouseUp(3,a.offsetX,a.offsetYy);a.buttons&16&&this.sendMouseUp(4,a.offsetX,a.offsetY);this.callActionEventHander(1, +a)};this.video.onmousemove=a=>{this.sendMouseMove(a.offsetX,a.offsetY,a.movementX,a.movementY);a.preventDefault();if(0==this.mouseDownButton||2==this.mouseDownButton)this.setCursor(),this.mouseDownButton=void 0;this.callActionEventHander(2,a)};this.video.onmousedown=a=>{this.keyEventTarget==this.video&&this.video.focus();this.sendMouseEnter();this.isMiddleDoubleClick(a)&&this.onMButtonDoubleClick?(this.onMButtonDoubleClick(a.offsetX,a.offsetY),a.preventDefault()):(this.mouseDownButton=a.button,this.sendMouseDown(a.button, +a.offsetX,a.offsetY),a.preventDefault(),0!=a.button&&2!=a.button&&this.setCursor(),this.callActionEventHander(3,a))};this.video.onmouseup=a=>{this.mouseDownButton=void 0;this.sendMouseUp(a.button,a.offsetX,a.offsetY);a.preventDefault();this.setCursor();this.callActionEventHander(4,a)};this.video.oncontextmenu=a=>{a.preventDefault()};"onmousewheel"in this.video?this.video.addEventListener("mousewheel",a=>{this.sendMouseWheel(a.wheelDelta,a.offsetX,a.offsetY);a.preventDefault()},{passive:!1}):this.video.addEventListener("DOMMouseScroll", +a=>{this.sendMouseWheel(-120*a.detail,a.offsetX,a.offsetY);a.preventDefault()},!1)}registerTouchEvents(){this.ongoingTouches=[];this.copyTouch=({identifier:b,clientX:c,clientY:e,force:d})=>({identifier:b,clientX:c,clientY:e,force:d});this.ongoingTouchIndexById=b=>{for(let c=0;c{let c=this.container.getBoundingClientRect(); +if(void 0===a){let e=b.changedTouches[0];a={id:e.identifier,x:e.clientX-c.left,y:e.clientY-c.top};this.video.onmouseenter(b);this.sendMouseDown(0,a.x,a.y)}b.preventDefault()},{passive:!1});this.video.addEventListener("touchend",b=>{let c=this.container.getBoundingClientRect();for(let e=0;e{var c=this.container.getBoundingClientRect();for(var e=0;e{b.preventDefault();null==this||this.onEvents(`ongoingTouches: ${this.ongoingTouches.length}, touches: ${b.touches.length}, changedTouches: ${b.changedTouches.length}`);this.ongoingTouches.length>b.touches.length- +b.changedTouches.length&&(this.onEvents&&this.onEvents(H.getString("TriggerSysTouch")),this.sendTouch(81,this.ongoingTouches),this.ongoingTouches=[]);b=b.changedTouches;for(let c=0;c{b.preventDefault();b=b.changedTouches;this.sendTouch(81,b);for(let c=0;c{b.preventDefault();this.sendTouch(82,b.touches)},{passive:!1})}resize(a){this.playerAspectRatio=this.container.clientHeight/this.container.clientWidth;this.videoAspectRatio=a?this.playerAspectRatio:this.videoHeight()/this.videoWidth()}normalizeAndQuantizeUnsigned(a,b){if(this.playerAspectRatio>this.videoAspectRatio){let c=this.playerAspectRatio/this.videoAspectRatio;a/=this.container.clientWidth;b=c*(b/this.container.clientHeight-.5)+.5}else a=this.videoAspectRatio/ +this.playerAspectRatio*(a/this.container.clientWidth-.5)+.5,b/=this.container.clientHeight;return 0>a||1b||1this.videoAspectRatio){let c=this.playerAspectRatio/this.videoAspectRatio;a/=.5*this.container.clientWidth;b=c*b/(.5*this.container.clientHeight);return{x:32767*a,y:32767*b}}return{x:this.videoAspectRatio/this.playerAspectRatio*a/(.5*this.container.clientWidth)*32767, +y:b/(.5*this.container.clientHeight)*32767}}sendTouch(a,b){this.callOnUserInteraction();var c=new DataView(new ArrayBuffer(2+10*b.length));c.setUint8(0,a);c.setUint8(1,b.length);let e=2,d=[];for(let h=0;hl?null==this||this.onEvents("can't figure out which touch to continue"):(c.setUint16(e,f.x,!0),e+=2,c.setUint16(e,f.y, +!0),e+=2,c.setInt32(e,l,!0),e+=4,c.setUint8(e,255*g.force,!0),e+=1,c.setUint8(e,f.inRange?1:0,!0),e+=1,this.onEvents&&d.push(`{${l} (${parseInt(q)},${parseInt(k)})->(${parseInt(f.x)},${parseInt(f.y)}) ${255*g.force} ${f.inRange?1:0}}`))}this.rtc.send(c.buffer);this.onEvents&&(c="",80==a?c="start":82==a?c="move":81==a&&(c="end"),a=`[${c}] N${b.length} ${d.join(",")}}`,this.onEvents(a))}sendKeydown(a){this.callOnUserInteraction();let b=xa(a),c;null==(c=this.onEvents)||c.call(this,`Send KeyDown, Code:${b}, Repeat:${a.repeat}`); +this.rtc.send((new Uint8Array([60,b,a.repeat])).buffer)}sendKeyup(a){this.callOnUserInteraction();a=xa(a);let b;null==(b=this.onEvents)||b.call(this,`Send KeyUp:${a}`);this.rtc.send((new Uint8Array([61,a])).buffer)}sendKeypress(a){this.callOnUserInteraction();var b;null==(b=this.onEvents)||b.call(this,`Send KeyPress:${a.charCode}`);b=new DataView(new ArrayBuffer(3));b.setUint8(0,62);b.setUint16(1,a.charCode,!0);this.rtc.send(b.buffer)}sendMouseEnter(){this.callOnUserInteraction();var a;null==(a=this.onEvents)|| +a.call(this,"Send MouseEnter");a=new DataView(new ArrayBuffer(1));a.setUint8(0,70);this.rtc.send(a.buffer)}sendMouseLeave(){this.callOnUserInteraction();var a;null==(a=this.onEvents)||a.call(this,"Send MouseLeave");a=new DataView(new ArrayBuffer(1));a.setUint8(0,71);this.rtc.send(a.buffer)}sendMouseMove(a,b,c,e){this.callOnUserInteraction();if(this.normalizeAndQuantizeUnsigned){var d;null==(d=this.onEvents)||d.call(this,`Send MouseMove, X:${a}, Y:${b}, DeltaX:${c}, DeltaY:${e}`);a=this.normalizeAndQuantizeUnsigned(a, +b);c=this.normalizeAndQuantizeSigned(c,e);e=new DataView(new ArrayBuffer(9));e.setUint8(0,74);e.setUint16(1,a.x,!0);e.setUint16(3,a.y,!0);e.setInt16(5,c.x,!0);e.setInt16(7,c.y,!0);this.rtc.send(e.buffer)}}sendMouseDown(a,b,c){this.callOnUserInteraction();if(this.normalizeAndQuantizeUnsigned){var e;null==(e=this.onEvents)||e.call(this,`Send MouseDown, Button:${a}, X:${b}, Y:${c}`);b=this.normalizeAndQuantizeUnsigned(b,c);c=new DataView(new ArrayBuffer(6));c.setUint8(0,72);c.setUint8(1,a);c.setUint16(2, +b.x,!0);c.setUint16(4,b.y,!0);this.rtc.send(c.buffer)}}sendMouseUp(a,b,c){if(this.normalizeAndQuantizeUnsigned){var e;null==(e=this.onEvents)||e.call(this,`Send MouseUp, Button:${a}, X:${b}, Y:${c}`);b=this.normalizeAndQuantizeUnsigned(b,c);c=new DataView(new ArrayBuffer(6));c.setUint8(0,73);c.setUint8(1,a);c.setUint16(2,b.x,!0);c.setUint16(4,b.y,!0);this.rtc.send(c.buffer)}}sendMouseWheel(a,b,c){this.callOnUserInteraction();if(this.normalizeAndQuantizeUnsigned){var e;null==(e=this.onEvents)||e.call(this, +`Send MouseWheel, Delta:${a}, X:${b}, Y:${c}`);b=this.normalizeAndQuantizeUnsigned(b,c);c=new DataView(new ArrayBuffer(7));c.setUint8(0,75);c.setInt16(1,a,!0);c.setUint16(3,b.x,!0);c.setUint16(5,b.y,!0);this.rtc.send(c.buffer)}}}class cc extends ia{constructor(a,b,c){super(a);this.updateConnectionCount(b);this.createButton(c)}createButton(a){if(!this.elButton){this.elButton=document.createElement("button");this.elButton.id=`liveStatusSwitchButton_${this.uid}`;this.elButton.innerHTML=ca.Information; +this.elButton.title=a;this.elButton.className="__liveStatusSwitchButton";if(R.isIOSDevice||R.isSafari)this.elButton.style.backgroundSize="cover";this.elButton.oncontextmenu=new Function("return false");this.elButton.onselectstart=new Function("return false");this.elButton.onclick=()=>this.setPanelVisible();this.elButton.onmousedown=b=>{1==b.button&&b.preventDefault()};this.appendElement(this.elButton)}}createPanel(){if(!this.elPanel){var a=''+ +``+``+``+ +``+``+``+``+ +``+``+``+ +``+``+``+"
${H.getString("ConnInfo")}1-1${H.getString("Close")}
${H.getString("Duration")}00:00:00
${H.getString("Resolution")}1920 x 1080
${H.getString("Received")}0 kB
${H.getString("ReceivedFrames")}0
${H.getString("Dropped")}0 / 0
${H.getString("DecodingTime")}
${H.getString("DecodeFrames")}0 / 0
${H.getString("Bitrate")}-
${H.getString("FPS")}- / -
${H.getString("QP")}0
${H.getString("MaxQP")}
${H.getString("MaxBitrate")}
"; +this.elPanel=document.createElement("div");this.elPanel.innerHTML=a;this.elPanel.id=`liveStatusPanel_${this.uid}`;this.elPanel.className="__liveStatusPanel __fadeinComp";this.elPanel.oncontextmenu=new Function("return false");this.elPanel.onselectstart=new Function("return false");this.appendElement(this.elPanel);this.get("i_hide_panel").onclick=()=>this.setPanelVisible();for(a=29;40>=a;a++)this.get("i_settings_maxQP").add(new Option(a,a));this.get("i_settings_maxQP").onchange=()=>{let b={encodeMaxQP:this.getValue("i_settings_maxQP")}; +this.player.rtc.updateParams(b);this.player.signallingConnection.updateParams(b);this.get("i_settings_maxQP").blur()};for(a=10;100>=a;a+=5)this.get("i_settings_maxBitrate").add(new Option(a,a));this.get("i_settings_maxBitrate").onchange=()=>{let b={maxBitrate:this.getValue("i_settings_maxBitrate")};this.player.rtc.updateParams(b);this.player.signallingConnection.updateParams(b);this.get("i_settings_maxBitrate").blur()}}}setPosition(a){a||(a=this.container.getBoundingClientRect());this.elButton&&(this.elButton.style.top= +`${a.height-32}px`);if(this.elPanel)if(this.customPosX&&this.customPosY)this.elPanel.style.left=this.customPosX+"px",this.elPanel.style.top=this.customPosY+"px";else{let b=this.elPanel.getBoundingClientRect();this.elPanel.style.left="5px";this.elPanel.style.top=`${a.height-b.height-42}px`}}destroy(){this.updateLatencyTestUI=!1;this.visible&&this.setPanelVisible();this.elPanel&&(this.removeElement(this.elPanel),this.elPanel=null);this.elButton&&(this.removeElement(this.elButton),this.elButton=null)}setPanelVisible(a, +b){this.customPosX=a;this.customPosY=b;if(this.elPanel)if("none"==this.elPanel.style.display)this.updateConnectionCount(),this.elPanel.style.display="block",this.elPanel.className="__liveStatusPanel __fadeinComp",this.visible=!0,this.player.rtc.sendEnableIntervalSendQP(!0);else{this.elPanel.className="__liveStatusPanel __fadeoutComp";setTimeout(()=>{this.visible=!1;this.elPanel.style.display="none";this.player.rtc.sendEnableIntervalSendQP(!1);this.setNeedReposUI();this.resize()},500);return}else this.createPanel(), +this.visible=!0,this.resize(),this.updateConnectionCount(),this.player.rtc.requestInitialSettings(),this.player.rtc.sendEnableIntervalSendQP(!0);this.setNeedReposUI();this.resize()}adjustMaxQP(a){return 18==a?(this.get("i_settings_maxQP")&&this.get("i_settings_maxQP").add(new Option(18,18)),18):0>a?40:0<=a&&29>a?29:40a?10:100e);d++)e/=1E3,c=b[d];this.setText("i_bytesReceived", +this.formatNumber(e)+" "+c);this.setText("i_framesReceived",this.processValue(a.framesReceived));this.setText("i_framesDecoded",a.framesDecoded);this.setText("i_keyframesDecoded",this.processValue(a.keyFramesDecoded));this.updateVideoFramerate(this.formatNumber(a.framesPerSecond));this.updateBitrate(a.bitrate);this.setText("i_packetsLost",this.processValue(a.packetsLost));this.setText("i_frameDropped",this.processValue(a.framesDropped));this.setText("i_compositeTime",this.formatNumber(a.receiveToCompositeMs, +1))}}updateVideoFramerate(a){let b=this.get("i_framerateVideo");b.style.color=10>a?"red":20>a?"orange":"rgb(128,255,0)";b.innerText=a}updateBitrate(a){let b=this.get("i_bitrate");a?1E3a?"red":1E3>a?"orange":"rgb(128,255,0)",b.innerText=this.formatNumber(a)+" kbps"):b.innerText="-"}updateInitialSettings(a){let b=this.adjustMaxQP(a.Encoder.MaxQP);this.setValue("i_settings_maxQP",b);a=this.adjustMaxBitrate(a.WebRTC.MaxBitrate/ +1E3/1E3);this.setValue("i_settings_maxBitrate",a)}updateQPAndRenderFPS(a,b){let c=this.get("i_qp");c.style.color=35this.setVisible(!1),500)}setDelayClear(a){this.bDelayClear= +a}log(a){if(this.el){if(this.bDelayClear)this.bDelayClear=!1,this.el.innerText=a+"\n";else{let b=this.el.innerText;b+=a+"\n";this.el.innerText=b}this.el.scrollTop=this.el.scrollHeight+100}}setPosition(a){a||(a=this.container.getBoundingClientRect());this.el&&(this.el.style.height=`${a.height-20}px`)}}class ec extends ia{constructor(a){super(a);this.create()}create(){this.el||(this.el=document.createElement("i"),this.el.id=`statusIndicator_${this.uid}`,this.el.className="__statusIndicator",this.appendElement(this.el))}destroy(){this.el&& +(this.removeElement(this.el),this.el=null)}setStatus(a){let b="Red",c=this.get("statusIndicator");switch(a){case V.WS_Disconnected:b="Red";c&&(c.style.display="inline-block");break;case V.WS_Connecting:b="RGB(200,200,200)";break;case V.WS_Connected:b="Yellow";break;case V.RTC_Opened:b="RGB(0,128,255)";break;case V.OnReady:b="RGB(0,255,0)",this.hide()}this.lastStatus=a;c&&(c.style.backgroundColor=b)}hide(){let a=this.get("statusIndicator");a&&(a.style.display="none")}}class fc{constructor(){this.css("@keyframes __fadeoutframes {0%{opacity:1;} 100%{opacity:0;}}.__fadeoutComp {animation-duration:600ms; animation-name:__fadeoutframes;}@keyframes __fadeinframes {0%{opacity:0;} 100%{opacity:0.65;}}.__fadeinComp {animation-duration:100ms; animation-name:__fadeinframes;}@keyframes twinkling{0%{opacity:0;}100%{opacity:1;}}.__statusIndicator {position:absolute;display:block;left:5px;top:5px;width:6px;height:6px;border-radius:50%;background-color:red;animation:twinkling 0.25s infinite ease-in-out;}.__startupInfoPanel { position:absolute;left:3px;top:0px;width:400px;background-color:transparent !important;text-shadow:black 0.1em 0.1em 0.2em;color:white;font-family:Verdana;font-size:12px !important;overflow:auto;}.__liveStatusPanel {position:absolute;left:5px;top:10px;width:164px;height:300px;background-color:rgba(50,50,50,0.8);color:#00FF00;font-family:Verdana;font-size:10px;box-shadow:0px 0px 5px 5px rgba(200,200,200,0.5);-moz-border-radius:8px;-webkit-border-radius:8px;}.__liveStatusPanel a:link { color: rgb(0,255,128); text-decoration: none; }.__liveStatusPanel a:hover { color: yellow; background:transparent; }.__liveStatusPanel input {background:transparent; border:1px solid gray; color: #00FF00;}.__liveStatusPanel select {background:transparent; border:1px solid gray; color: #00FF00;}.__liveStatusPanel option {background:#333; color: #00FF00;}.__liveStatusSwitchButton{position:absolute;padding:0;left:6px;width:26px;height:26px;opacity:0.65;cursor:pointer;background-size:conver;}.__fullscreeButton {position:absolute;padding:0;left:38px;width:26px;height:26px;opacity:0.65;cursor:pointer;background-size:conver;}.__viewHomeButton {position:absolute;padding:0;left:70px;width:26px;height:26px;opacity:0.65;cursor:pointer;background-size:conver;}.__taskWaiting {position:absolute;z-index:30;text-align:center;padding-left:5px;text-shadow:black 0.1em 0.1em 0.2em;color:lime;font-family:Verdana;font-size:12px !important;overflow:hidden;display:none;}.__eventsPanel {position:absolute;left:3px;top:0px;width:600px;height:200px;background-color:rgba(64,64,64,0.5) !important;text-shadow:black 0.1em 0.1em 0.2em;color:white;font-family:Verdana;font-size:12px !important;overflow:auto;}.streamingVideoNoCursor {width:100%;height:100%;}.streamingVideoCursorMove {width:100%;height:100%;cursor:move;}.streamingVideoCursorPan {width:100%;height:100%;cursor:url(data:application/octet-stream;base64,AAACAAEAICAAAA8ADwCoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////8AAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////////////////////////////////4B///+Af///AH///gA///wAP//8AB///gAf//8AH//+AB///gA///8k///////////////////////////////////////////////////////////////////////w==),auto;}.streamingVideoCursorPointer {width:100%;height:100%;cursor:url(data:application/octet-stream;base64,AAACAAEAICAAAA0ACACoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////////////////////////////////4B///+Af///AH///gA///wAP//8AB//+AAf//AAD//wAA//+AAP//4AD//+AF///gT///4f///+H////h////8////////////////////////////////////////w==),auto;}.streamingVideoCursorRotate {width:100%;height:100%;cursor:url(data:application/octet-stream;base64,AAACAAEAICAAAA8ADwCoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAD///////////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////8AAAD///8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////////////////////////////////4B///+Af///AH//hgAh/wwAMP4cABh+HgAYfh8AGH4eABh+HgA4eAck4BwP//A+H//4fz///P/////////////////////////////////////////////////////w==),auto;}")}css(a){let b= +document.createElement("style");try{b.appendChild(document.createTextNode(a))}catch(c){b.styleSheet.cssText=a}(a=document.getElementsByTagName("head")[0])?a.appendChild(b):console.error("[Cloud] No head element found, cannot create css.")}}class gc extends ia{constructor(a){super(a);this.elContainer=document.createElement("div");this.elContainer.id=`taskWaiting_${this.uid}`;this.elContainer.className="__taskWaiting";this.elContainer.oncontextmenu=new Function("return false");this.elContainer.onselectstart= +new Function("return false");this.appendElement(this.elContainer);this.elText=document.createElement("div");this.elText.style.marginBottom="15px";this.elText.innerText="dddd";this.elContainer.appendChild(this.elText);this.elButton=document.createElement("input");this.elButton.type="button";this.elButton.value=H.getString("RestartInstNow");this.elButton.onclick=()=>{this.player.setInstanceOptions({iid:this.player.options.iid,reset:!0})};this.elContainer.appendChild(this.elButton);H.onLanguageChangedCallbacks.push(()=> +{this.elButton.value=H.getString("RestartInstNow")});this.setMode(0)}setMode(a){this._mode=a;0===a?this.elContainer.style.background="transparent":(this.elContainer.style.background="rgba(64,64,64,0.5)",this.elContainer.style.height="26px",this.elContainer.style.lineHeight="26px")}destroy(){this.elContainer&&(this.removeElement(this.elContainer),this.elContainer=null)}updateText(a){this.elText&&(this.elText.innerText=a,this.show())}show(){this.elContainer.className="__taskWaiting";this.elContainer.style.display= +"block"}hide(){this.elContainer.className="__taskWaiting __fadeoutComp";setTimeout(()=>this.elContainer.style.display="none",500)}setPosition(a,b,c,e){if(this.elContainer)if(a||(a=this.container.getBoundingClientRect()),0==this._mode){var d=a.width/2-150;0>d&&(d=10);this.elContainer.style.left=d+"px";this.elContainer.style.top=a.height/2+"px"}else d=0,b&&d++,c&&d++,e&&d++,a=a.height-32,this.elContainer.style.left=(0==d?5:1==d?38:2==d?70:102)+"px",this.elContainer.style.top=a+"px"}}class hc extends ia{constructor(a){super(a); +this.create()}create(){if(!this.el){var a=[];a.push(H.getString("LeftClickTip"));a.push(H.getString("RightClickTip"));a.push(H.getString("MiddleClickTip"));a=a.join("\n");this.el=document.createElement("button");this.el.id=`viewHomeButton_${this.uid}`;this.el.className="__viewHomeButton";if(R.isIOSDevice||R.isSafari)this.el.style.backgroundSize="cover";this.el.innerHTML=ca.InitialCamera;this.el.title=a;this.el.oncontextmenu=new Function("return false");this.el.onselectstart=new Function("return false"); +this.el.onclick=b=>this.player.viewHome(0);this.el.onmousedown=b=>{0!=b.button&&this.player.viewHome(b.button);b.preventDefault()};this.appendElement(this.el)}}destroy(){this.el&&(this.removeElement(this.el),this.el=null)}setPosition(a,b,c){a||(a=this.container.getBoundingClientRect());if(this.el){let e=5;if(b&&c)e=70;else if(b||c)e=38;this.el.style.left=e+"px";this.el.style.top=`${a.height-32}px`}}}var va=0;class ic{constructor(a,b){if(a){this.host=a;this.options=b;ka.processParams(this.options); +H.setLanguage();this.uid=++va;this.options.apiOptions.player=this;this.api=new ra(null,this.options.apiOptions);if(this.options.domId)if(a=wa(this.options.domId))this.container=document.createElement("div"),this.container.style="position:relative;width:100%;height:100%;",a.innerHTML="",a.appendChild(this.container);else if("loading"==document.readyState){console.error(H.getString("DomLoading"));return}if(this.hasVideo=!!this.container)this.styleManager=new fc,this.createWidgetsInConstructor(),this.canAdaptiveResolution= +!1,this.lastResizeTime=Date.now(),this.orientationChangeTimeout=void 0;this.constructUrlAndConnect();this.resetInteractTimestamp()}else console.error("[DigitalTwinPlayer] The parameter `host` cannot be empty!")}constructUrlAndConnect(){this.logStartupInfo(`host: ${this.host}`);this.useHttps="https:"==location.protocol||this.options.useHttps;this.url=`${this.useHttps?"wss":"ws"}://${this.host}/player?hasVideo=${this.hasVideo}`;this.options.offer&&(this.url+="&offer=1");this.options.iid&&(this.url+= +"&iid="+this.options.iid);this.options.pid&&(this.url+="&pid="+this.options.pid);this.options.password&&(this.url+="&password="+this.options.password);if("object"==typeof this.options.urlExtraInfo)for(let a in this.options.urlExtraInfo)this.url+="&"+a+"="+this.options.urlExtraInfo[a];this.options.reset&&(this.url+="&reset=1",this.options.reset=!1);setTimeout(()=>this.connectSignallingServer(),200)}callEvent(a,b,c){a=this.options.events[a];"function"==typeof a&&a(b,c)}getHost(){return this.host}getAPI(){return this.api}getInstanceInfo(){return this.paramInfo}getVideoElement(){let a; +return null==(a=this.htmlVideo)?void 0:a.video}getVideoElementSize(){let a=this.getVideoElement();return{width:null==a?void 0:a.clientWidth,height:null==a?void 0:a.clientHeight}}getVideoStreamSize(){return{width:this.htmlVideo.videoWidth(),height:this.htmlVideo.videoHeight()}}getVideoSize(){return this.getVideoStreamSize()}screen2World(a,b,c){let e=this.getVideoElementSize(),d=this.getVideoStreamSize(),h=0,g=0,q=d.height/d.width;e.height/e.width>q?g=-(e.width*q-e.height)/2:h=-(e.height/q-e.width)/ +2;a=d.width/(e.width-2*h)*(a-h);b=d.height/(e.height-2*g)*(b-g);return this.getAPI().coord.screen2World(a,b,c)}world2Screen(a,b,c,e){const d=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){let h=yield __g.coord.world2Screen(a,b,c,e),g=d.getVideoElementSize(),q=d.getVideoStreamSize(),k=0,f=0,l=q.height/q.width;g.height/g.width>l?f=-(g.width*l-g.height)/2:k=-(g.height/l-g.width)/2;h.screenPosition=[h.screenPosition[0]/(q.width/(g.width-2*k))+k,h.screenPosition[1]/(q.height/(g.height- +2*f))+f];return h})}setResolution(a,b){if(this.streamerAdaptive){window.devicePixelRatio&&(a*=window.devicePixelRatio,b*=window.devicePixelRatio);if(4096this.streamerResX||b>this.streamerResY)&&(b=a/b,b>=this.streamerResX/this.streamerResY?(a=this.streamerResX,b=this.streamerResX/b):(a=this.streamerResY*b,b=this.streamerResY));a=Math.floor(a);b=Math.floor(b);var c=this.htmlVideo.videoWidth(), +e=this.htmlVideo.videoHeight();if(a!=c&&a+1!=c&&a-1!=c||b!=e&&b+1!=e&&b-1!=e){if(this.lastWidth&&this.lastHeight&&(c=Math.abs(this.lastWidth-a),e=Math.abs(this.lastHeight-b),(0!=c||0!=e)&&4>c&&4>e))return;this.lastWidth=a;this.lastHeight=b;this.rtc&&this.rtc.updateRenderResolution(a,b);return[a,b]}}}destroy(a){console.log(`call DigitalTwinPlayer.destroy: ${a||" "}`);if(!this.isDestroyed){va--;this.isDestroyed=!0;this.destroyReason=a;var b;null==(b=this.rtc)||b.close();var c;null==(c=this.signallingConnection)|| +c.close()}}setKeyEventTarget(a){let b;null==(b=this.htmlVideo)||b.setKeyEventTarget(a)}setKeyEventReceiver(a){this.setKeyEventTarget(a)}resize(){if(this.container){this.rect=this.container.getBoundingClientRect();if(this.bNeedReposUI||!this.oldRect||this.oldRect.width!=this.rect.width||this.oldRect.height!=this.rect.height){this.bNeedReposUI=!1;this.oldRect=this.rect;let b;null==(b=this.startupInfo)||b.setPosition(this.rect);let c;null==(c=this.liveStatus)||c.setPosition(this.rect);let e;null==(e= +this.fullscreenButton)||e.setPosition(this.rect,this.options.ui.statusButton);let d;null==(d=this.homeButton)||d.setPosition(this.rect,this.options.ui.statusButton,this.options.ui.fullscreenButton);let h;null==(h=this.taskListBar)||h.setPosition(this.rect,this.options.ui.statusButton,this.options.ui.fullscreenButton,this.options.ui.homeButton)}if(this.htmlVideo.valid()){this.canAdaptiveResolution&&(console.warn("set res..."),this.setResolution(this.htmlVideo.clientWidth(),this.htmlVideo.clientHeight())); +var a;null==(a=this.htmlVideo)||a.resize(this.streamerAdaptive&&this.canAdaptiveResolution)}}}setInstanceOptions(a){const b=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var c=a.pid==b.options.pid&&a.iid==b.options.iid||!a.pid&&a.iid==b.options.iid||!a.iid&&a.pid==b.options.pid;if(c&&!a.reset)b.api.log("setInstanceOptions: no change.");else{if(!c){c=(!a.iid||a.iid==b.options.iid)&&a.pid!=b.options.pid;if(b.streamerLocked&&c){b.api.log(H.getString("CannotChangeProject"));return}c= +yield b.signallingConnection.checkParams(a);if(null!==c){if(!1===c.iid){b.api.log(`iid(${a.iid})${H.getString("InstanceNotExist")}`);return}if(!1===c.pid){b.api.log(`pid(${a.pid})${H.getString("ProjectNotExist")}`);return}}}b.destroy();b.options.iid=a.iid;b.options.pid=a.pid;b.options.reset=a.reset;b.constructUrlAndConnect()}})}set fullscreen(a){a?R.fullscreen(this.container):R.exitFullscreen()}get fullscreen(){return!!document.fullscreenElement}setActionEventEnabled(a){let b;null==(b=this.htmlVideo)|| +b.setActionEventEnabled(a)}onApiReady(){this.setStatus(V.OnReady);let a;null==(a=this.signallingConnection)||a.sendReady();1==this.options.ui.mainUI?this.api.settings.setMainUIVisibility(!0):0==this.options.ui.mainUI&&this.api.settings.setMainUIVisibility(!1);1==this.options.ui.campass?this.api.settings.setCampassVisible(!0):0==this.options.ui.campass&&this.api.settings.setCampassVisible(!1)}sendApi(a){if(a){let b;null==(b=this.rtc)||b.sendApi(a)}}onMainThreadBusy(a){if(1===a.busy){let b="BUSY! ", +c=this.api.apiQueue.queueSize(),e=this.api.apiQueue.dataSize();0{if(Date.now()-this.timeOfLastInteraction> +6E4*this.kickOutInMinutes){let g=H.getString("DisconnectForIdle");this.destroy(g);console.warn(g);clearInterval(h)}},2E4)}this.nodeInfoArray=[`${H.getString("NodeInfo")}`];e&&this.nodeInfoArray.push(`\t${H.getString("Host")}`+e);c&&this.nodeInfoArray.push(`\t${H.getString("HostAddress")}`+c);b&&this.nodeInfoArray.push(`\t\u3000${H.getString("Project")}`+b);this.options.pid&&this.nodeInfoArray.push(`\t${H.getString("ProjectId")}`+this.options.pid);this.nodeInfoArray.push(`\t${H.getString("IID")}`+ +this.options.iid);this.nodeInfoArray.push(`\t${H.getString("Adaptive")}`+this.streamerAdaptive);this.nodeInfoArray.push(`\t${H.getString("LimitMaxRes")}`+this.streamerLimitMaxResolution);this.nodeInfoArray.push(`\t${H.getString("Resolution")}${this.streamerResX}x${this.streamerResY}`);let d;null==(d=this.liveStatus)||d.updateButtonTip(this.nodeInfoArray.join("\n"));this.api.log(this.nodeInfoArray.join("\n\t"))}logStartupInfo(a){if(a){var b=new Date;a=`[${pa(b.getHours(),2)+":"+pa(b.getMinutes(),2)+ +":"+pa(b.getSeconds(),2)+"."+pa(b.getMilliseconds(),3)}] ${a}`;var c;null==(c=this.startupInfo)||c.log(a);1{let b;return null==(b=this.eventsPanel)? +void 0:b.appendText(a)},onVideoLoaded:()=>{this.logStartupInfo("video: loadedmetadata");this.createWidgets();this.callEvent("onVideoLoaded");this.resize()},onMButtonDoubleClick:(a,b)=>{let c;null==(c=this.liveStatus)||c.setPanelVisible(a,b)}});this.options.ui.statusIndicator&&(this.statusIndicator=new ec(this));this.options.ui.startupInfo&&(this.startupInfo=new dc(this),this.logStartupInfo("sdk version: "+this.api.getVersion()),this.logStartupInfo("uid: "+this.uid));this.resizeObserver=new ResizeObserver(Ga(()=> +this.resize(),500));this.resizeObserver.observe(this.container)}createWidgets(){this.options.ui.statusButton&&(this.liveStatus=new cc(this,this.playerCount,this.nodeInfoArray.join("\n")));this.options.ui.fullscreenButton&&(this.fullscreenButton=new ac(this));this.options.ui.homeButton&&(this.homeButton=new hc(this));this.taskListBar&&this.taskListBar.setMode(1)}destroyWidgets(){this.liveStatus&&(this.liveStatus.destroy(),this.liveStatus=null);this.fullscreenButton&&(this.fullscreenButton.destroy(), +this.fullscreenButton=null);this.homeButton&&(this.homeButton.destroy(),this.homeButton=null);this.eventsPanel&&(this.eventsPanel.destroy(),this.eventsPanel=null);this.taskListBar&&(this.taskListBar.destroy(),this.taskListBar=null)}isQualityController(){return this.bQualityController}initWebRtcPlayer(a){H.setLanguage(a.language);this.rtc=new Zb({useStats:this.hasVideo&&(this.options.ui.statusButton||this.options.events.onRtcStatsReport),peerConnectionOptions:a.peerConnectionOptions,events:{onlog:b=> +this.logStartupInfo(b),ontrack:b=>{let c;null==(c=this.htmlVideo)||c.setTrack(b)},onicecandidate:b=>{let c;return null==(c=this.signallingConnection)?void 0:c.sendCandidate(b)},onOfferCreated:b=>{let c;return null==(c=this.signallingConnection)?void 0:c.sendOffer(b.sdp,this.hasVideo)},onAnswerCreated:b=>{let c;return null==(c=this.signallingConnection)?void 0:c.send(b)},onstats:b=>{let c;null==(c=this.liveStatus)||c.updateWebRtcStats(b);this.callEvent("onRtcStatsReport",b)},ondatachannelopen:()=> +{this.setStatus(V.RTC_Opened);this.hasVideo&&(this.rtc.requestQualityControl(),this.liveStatus&&this.rtc.requestInitialSettings());this.api.onConnectionOpen()},ondatachannelclose:b=>this.api.onConnectionClose(b),ondatachannelerror:b=>this.api.onConnectionClose(b.error),ondatachannelmessage:(b,c)=>{switch(b){case "ResponseAPI":this.api.onConnectionMessage(c);break;case "InitialSettings":let e;null==(e=this.liveStatus)||e.updateInitialSettings(c);break;case "VideoEncoderAvgQP":let d;if(null==(d=this.liveStatus)? +0:d.visible)b=(new TextDecoder("utf-16")).decode(c.data.slice(1)),(b=JSON.parse(b))&&this.liveStatus.updateQPAndRenderFPS(b.qp,b.renderFPS);break;case "QualityControlOwnership":this.bQualityController=c;let h;null==(h=this.liveStatus)||h.updatePlayerId()}}}});this.hasVideo&&this.htmlVideo.setWebRtcPlayer(this.rtc);this.logStartupInfo("setting up...");this.options.offer&&this.rtc.createOffer();this.hasVideo&&(this.htmlVideo.registerKeyboardEvents(),this.htmlVideo.registerMouseEvents(),this.htmlVideo.registerTouchEvents())}connectSignallingServer(){this.setStatus(V.WS_Connecting); +this.signallingConnection=new Wb({onopen:()=>this.setStatus(V.WS_Connected),onclose:a=>this.handleSignallingClose(a),onerror:()=>{this.setStatus(V.WS_Disconnected)},onmessage:a=>{switch(a.type){case "config":this.initWebRtcPlayer(a);break;case "answer":this.playerId=a.playerId;this.rtc&&this.rtc.onReceiveAnswer(a);break;case "offer":this.playerId=a.playerId;this.rtc&&this.rtc.onReceiveOffer(a);break;case "iceCandidate":this.rtc&&this.rtc.onIceCandidate(a.candidate);break;case "paramInfo":this.receiveParamInfo(a); +break;case "status":this.handleSignallingMessage_Status(a);break;case "playerCount":this.handleSignallingMessage_PlayerCount(a)}}});this.signallingConnection.connect(this.url)}handleSignallingClose(a){this.destroyWidgets();this.callEvent("onConnClose",a);this.startupInfo&&this.startupInfo.setVisible(!0);this.api.onConnectionClose(a);this.rtc&&this.rtc.close();let b="";this.isDestroyed?(b=H.getString("Destroyed"),b=this.destroyReason?b+(": "+this.destroyReason):b+"."):(b="closed: ",a.code&&(b+=a.code), +a.reason?b+=" "+a.reason:1006==a.code&&(b+=" "+H.getString("Disconnect")));this.setStatus(V.WS_Disconnected,b);Ia(a.code)||this.destroy();this.isDestroyed||(this.logStartupInfo(H.getString("Reconnect5s")),this.startupInfo.setDelayClear(!0),setTimeout(()=>this.connectSignallingServer(),5E3));a.code==sa.instance_is_busy&&confirm(H.getString("RestartAndRetry"))&&this.setInstanceOptions({iid:this.busyIId,reset:!0})}handleSignallingMessage_Status(a){let b=Ha(a.state);b&&this.logStartupInfo(b);a.state=== +da.StartFailed?(console.error(a.info),this.options.ui.startupInfo&&setTimeout(()=>alert(a.info),500)):a.state==da.ConfirmBusy&&(this.busyIId=a.info)}handleSignallingMessage_PlayerCount(a){this.playerCount=a.count;let b;null==(b=this.liveStatus)||b.updateConnectionCount(this.playerCount);(this.canAdaptiveResolution=1===a.count)&&this.resize()}}v.APIErrorCode={OK:0,InvalidParameters:1,InternalError:2,ResourceNotFound:3,AcpProjWKTNotSet:4,CoordinateConversionFailed:5,IDExists:6,InvalidRequestType:7, +InvalidRequestString:8,NoCommand:9,DataTypeNotSupport:10,InvalidOperation:11,ProjectNotOpened:12,CodeMax:65535};v.ActionMode={None:0,Follow:1,FollowBehindAndAbove:2,FollowBehind:3,FollowAbove:4,FollowBellow:5,FollowLeft:6,FollowRight:7};v.AnimatedImageButtonData=Qa;v.BPFuncParamType={Bool:0,UInt8:1,Int32:2,Float:3,Double:4,String:5,Color:6,Vector2D:7,Vector:8,Rotator:9,IntArray:10,StringArray:11,VectorArray:12,Coordinate:13,CoordinateArray:14,FloatArray:15};v.BPFunctionData=db;v.BeamData=Ra;v.CameraTourData= +fb;v.CameraTourKeyFrame=eb;v.CloudStatus=V;v.Color={LightPink:"RGB(255,182,193)",Pink:"RGB(255,192,203)",Crimson:"RGB(220,20,60)",LavenderBlush:"RGB(255,240,245)",PaleVioletRed:"RGB(219,112,147)",HotPink:"RGB(255,105,180)",DeepPink:"RGB(255,20,147)",MediumVioletRed:"RGB(199,21,133)",Orchid:"RGB(218,112,214)",Thistle:"RGB(216,191,216)",plum:"RGB(221,160,221)",Violet:"RGB(238,130,238)",Magenta:"RGB(255,0,255)",Fuchsia:"RGB(255,0,255)",DarkMagenta:"RGB(139,0,139)",Purple:"RGB(128,0,128)",MediumOrchid:"RGB(186,85,211)", +DarkVoilet:"RGB(148,0,211)",DarkOrchid:"RGB(153,50,204)",Indigo:"RGB(75,0,130)",BlueViolet:"RGB(138,43,226)",MediumPurple:"RGB(147,112,219)",MediumSlateBlue:"RGB(123,104,238)",SlateBlue:"RGB(106,90,205)",DarkSlateBlue:"RGB(72,61,139)",Lavender:"RGB(230,230,250)",GhostWhite:"RGB(248,248,255)",Blue:"RGB(0,0,255)",MediumBlue:"RGB(0,0,205)",MidnightBlue:"RGB(25,25,112)",DarkBlue:"RGB(0,0,139)",Navy:"RGB(0,0,128)",RoyalBlue:"RGB(65,105,225)",CornflowerBlue:"RGB(100,149,237)",LightSteelBlue:"RGB(176,196,222)", +LightSlateGray:"RGB(119,136,153)",SlateGray:"RGB(112,128,144)",DoderBlue:"RGB(30,144,255)",AliceBlue:"RGB(240,248,255)",SteelBlue:"RGB(70,130,180)",LightSkyBlue:"RGB(135,206,250)",SkyBlue:"RGB(135,206,235)",DeepSkyBlue:"RGB(0,191,255)",LightBLue:"RGB(173,216,230)",PowDerBlue:"RGB(176,224,230)",CadetBlue:"RGB(95,158,160)",Azure:"RGB(240,255,255)",LightCyan:"RGB(225,255,255)",PaleTurquoise:"RGB(175,238,238)",Cyan:"RGB(0,255,255)",Aqua:"RGB(212,242,231)",DarkTurquoise:"RGB(0,206,209)",DarkSlateGray:"RGB(47,79,79)", +DarkCyan:"RGB(0,139,139)",Teal:"RGB(0,128,128)",MediumTurquoise:"RGB(72,209,204)",LightSeaGreen:"RGB(32,178,170)",Turquoise:"RGB(64,224,208)",Auqamarin:"RGB(127,255,170)",MediumAquamarine:"RGB(0,250,154)",MediumSpringGreen:"RGB(0,255,127)",MintCream:"RGB(245,255,250)",SpringGreen:"RGB(60,179,113)",SeaGreen:"RGB(46,139,87)",Honeydew:"RGB(240,255,240)",LightGreen:"RGB(144,238,144)",PaleGreen:"RGB(152,251,152)",DarkSeaGreen:"RGB(143,188,143)",LimeGreen:"RGB(50,205,50)",Lime:"RGB(0,255,0)",ForestGreen:"RGB(34,139,34)", +Green:"RGB(0,128,0)",DarkGreen:"RGB(0,100,0)",Chartreuse:"RGB(127,255,0)",LawnGreen:"RGB(124,252,0)",GreenYellow:"RGB(173,255,47)",OliveDrab:"RGB(85,107,47)",Beige:"RGB(245,245,220)",LightGoldenrodYellow:"RGB(250,250,210)",Ivory:"RGB(255,255,240)",LightYellow:"RGB(255,255,224)",Yellow:"RGB(255,255,0)",Olive:"RGB(128,128,0)",DarkKhaki:"RGB(189,183,107)",LemonChiffon:"RGB(255,250,205)",PaleGodenrod:"RGB(238,232,170)",Khaki:"RGB(240,230,140)",Gold:"RGB(255,215,0)",Cornislk:"RGB(255,248,220)",GoldEnrod:"RGB(218,165,32)", +FloralWhite:"RGB(255,250,240)",OldLace:"RGB(253,245,230)",Wheat:"RGB(245,222,179)",Moccasin:"RGB(255,228,181)",Orange:"RGB(255,165,0)",PapayaWhip:"RGB(255,239,213)",BlanchedAlmond:"RGB(255,235,205)",NavajoWhite:"RGB(255,222,173)",AntiqueWhite:"RGB(250,235,215)",Tan:"RGB(210,180,140)",BrulyWood:"RGB(222,184,135)",Bisque:"RGB(255,228,196)",DarkOrange:"RGB(255,140,0)",Linen:"RGB(250,240,230)",Peru:"RGB(205,133,63)",PeachPuff:"RGB(255,218,185)",SandyBrown:"RGB(244,164,96)",Chocolate:"RGB(210,105,30)", +SaddleBrown:"RGB(139,69,19)",SeaShell:"RGB(255,245,238)",Sienna:"RGB(160,82,45)",LightSalmon:"RGB(255,160,122)",Coral:"RGB(255,127,80)",OrangeRed:"RGB(255,69,0)",DarkSalmon:"RGB(233,150,122)",Tomato:"RGB(255,99,71)",MistyRose:"RGB(255,228,225)",Salmon:"RGB(250,128,114)",Snow:"RGB(255,250,250)",LightCoral:"RGB(240,128,128)",RosyBrown:"RGB(188,143,143)",IndianRed:"RGB(205,92,92)",Red:"RGB(255,0,0)",Brown:"RGB(165,42,42)",FireBrick:"RGB(178,34,34)",DarkRed:"RGB(139,0,0)",Maroon:"RGB(128,0,0)",White:"RGB(255,255,255)", +WhiteSmoke:"RGB(245,245,245)",Gainsboro:"RGB(220,220,220)",LightGrey:"RGB(211,211,211)",Silver:"RGB(192,192,192)",DarkGray:"RGB(169,169,169)",Gray:"RGB(128,128,128)",DimGray:"RGB(105,105,105)",Black:"RGB(0,0,0)"};v.CommandType=p;v.CustomObjectData=$a;v.CustomObjectData2=ab;v.CustomTagData=Na;v.DecalData=Ya;v.DigitalTwinAPI=ra;v.DigitalTwinPlayer=ic;v.DynamicWaterData=cb;v.HeatMapPointData=Ka;v.HighlightAreaData=Oa;v.ImageButtonData=Pa;v.LayerVisibleData=Ja;v.MapMode={Campass:0,SmallMap:1,BigMap:2}; +v.MeasurementMode={Coordinate:1,Linear:2,Horizontal:3,Vertical:4,MultiPoint:5,TerrainArea:6};v.MousePickMask=qa;v.ODLineData=Va;v.PanelType={ViewshedAnalysis:0,SkylineAnalysis:1,ViewDomeAnalysis:2,VisiblityAnalysis:3,FloodFillAnalysis:4,SolarAnalysis:5,CutFillAnalysis:6,TerrainSlopeAnalysi:7,ContourLineAnalysis:8};v.PanoramaData=Xa;v.Polygon3DData=Ta;v.Polygon3DStyle={Wave:0,LoopLine:1,Gradual:2,DynamicGradual:3,WaveTransparent:4,WideWave:5,RotateArrow:6,RotateLine:7,RotateGradual:8,SingleColor:9, +SingleColorWithLight:10};v.PolygonData=Wa;v.PolygonStyle={SingleColor:0,CirclePoint:1,Volumn:2,Gradual:3,DynamicGradual:4,WaveTransparent:5,WideWave:6,RotateArrow:7,RotateLine:8,RotateGradual:9,OnTerrain:10};v.PolylineData=Ua;v.PolylineStyle={Arrow:0,Arrow1:1,Flow:2,Beam:3,Normal:4,OnTerrain:5,DottedNormal:6,DottedCircle:7};v.RadiationPointData=Sa;v.RendererType={SimpleRenderer:0,UniqueValueRenderer:1,ClassBreaksRenderer:2};v.TagData=La;v.TileLayerActorData=fa;v.TileLayerData=Za;v.VERSION="5.4";v.VehicleViewMode= +{FirstPerson:0,ThirdPerson:1};v.VideoProjectionData=bb;v.Viewport=ba;v.WaterFlowFieldStyle={HeatMap:0,Water:1};v.WebUIData=Ma;v.__onCefResponse=function(a,b){if(ua)ua.onConnectionMessage(a,b)};Object.defineProperty(v,"__esModule",{value:!0});return v}({}); +(()=>{if("undefined"!=typeof module&&module.exports)module.exports=acapi;else if("function"==typeof define&&define.amd)define(function(){return acapi});else{window.AcApiVersion=acapi.VERSION;acapi.AirCityAPI=acapi.DigitalTwinAPI;acapi.AirCityPlayer=acapi.DigitalTwinPlayer;for(let v in acapi)"VERSION"!=v&&(window[v]=acapi[v]);acapi.DigitalTwinAPI.__onApiConstructed=v=>window.__g=v}})(); diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..74859eb Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..488e080 --- /dev/null +++ b/public/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + +
+ + + diff --git a/public/output.m3u8 b/public/output.m3u8 new file mode 100644 index 0000000..9749bd2 --- /dev/null +++ b/public/output.m3u8 @@ -0,0 +1,25 @@ +#EXTM3U +#EXT-X-VERSION:3 +#EXT-X-TARGETDURATION:4 +#EXT-X-MEDIA-SEQUENCE:41 +#EXTINF:4.000000, +output41.ts +#EXTINF:4.000000, +output42.ts +#EXTINF:4.000000, +output43.ts +#EXTINF:4.000000, +output44.ts +#EXTINF:4.000000, +output45.ts +#EXTINF:4.000000, +output46.ts +#EXTINF:4.000000, +output47.ts +#EXTINF:4.000000, +output48.ts +#EXTINF:4.000000, +output49.ts +#EXTINF:2.840000, +output50.ts +#EXT-X-ENDLIST diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..e5a10a8 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,72 @@ + + + diff --git a/src/assets/ac.min.js b/src/assets/ac.min.js new file mode 100644 index 0000000..9661997 --- /dev/null +++ b/src/assets/ac.min.js @@ -0,0 +1,513 @@ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(v){var D=0;return function(){return D>>0,$jscomp.propertyToPolyfillSymbol[O]=$jscomp.IS_SYMBOL_NATIVE? +$jscomp.global.Symbol(O):$jscomp.POLYFILL_PREFIX+I+"$"+O),$jscomp.defineProperty(E,$jscomp.propertyToPolyfillSymbol[O],{configurable:!0,writable:!0,value:D})))};$jscomp.initSymbol=function(){};$jscomp.iteratorPrototype=function(v){v={next:v};v[Symbol.iterator]=function(){return this};return v};$jscomp.underscoreProtoCanBeSet=function(){var v={a:!0},D={};try{return D.__proto__=v,D.a}catch(I){}return!1}; +$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(v,D){v.__proto__=D;if(v.__proto__!==D)throw new TypeError(v+" is not extensible");return v}:null;$jscomp.makeIterator=function(v){var D="undefined"!=typeof Symbol&&Symbol.iterator&&v[Symbol.iterator];return D?D.call(v):$jscomp.arrayIterator(v)};$jscomp.generator={}; +$jscomp.generator.ensureIteratorResultIsObject_=function(v){if(!(v instanceof Object))throw new TypeError("Iterator result "+v+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null}; +$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(v){this.yieldResult=v}; +$jscomp.generator.Context.prototype.throw_=function(v){this.abruptCompletion_={exception:v,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(v){this.abruptCompletion_={return:v};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(v){this.abruptCompletion_={jumpTo:v};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(v,D){this.nextAddress=D;return{value:v}}; +$jscomp.generator.Context.prototype.yieldAll=function(v,D){v=$jscomp.makeIterator(v);var I=v.next();$jscomp.generator.ensureIteratorResultIsObject_(I);if(I.done)this.yieldResult=I.value,this.nextAddress=D;else return this.yieldAllIterator_=v,this.yield(I.value,D)};$jscomp.generator.Context.prototype.jumpTo=function(v){this.nextAddress=v};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0}; +$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(v,D){this.catchAddress_=v;void 0!=D&&(this.finallyAddress_=D)};$jscomp.generator.Context.prototype.setFinallyBlock=function(v){this.catchAddress_=0;this.finallyAddress_=v||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(v,D){this.nextAddress=v;this.catchAddress_=D||0}; +$jscomp.generator.Context.prototype.enterCatchBlock=function(v){this.catchAddress_=v||0;v=this.abruptCompletion_.exception;this.abruptCompletion_=null;return v};$jscomp.generator.Context.prototype.enterFinallyBlock=function(v,D,I){I?this.finallyContexts_[I]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=v||0;this.finallyAddress_=D||0}; +$jscomp.generator.Context.prototype.leaveFinallyBlock=function(v,D){D=this.finallyContexts_.splice(D||0)[0];if(D=this.abruptCompletion_=this.abruptCompletion_||D){if(D.isException)return this.jumpToErrorHandler_();void 0!=D.jumpTo&&this.finallyAddress_I&&(I=Math.max(I+O,0));Id?g:d},e)}return b(a,1)}function I(a){let b=a.length,c=Array(b),e;for(let d=0;de?e-48:(e&223)-65+10,c[d]=e;return c.reduce((d,h)=>16*d+h,0)}function E(a){if(void 0!=a){var b=[];if(/^(rgb|RGB)/.test(a)){a=a.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");for(let c of a)b.push(Number((Number(c)/255).toFixed(1)))}else if(/^#/.test(a)){if(/^#[0-9A-F]{3}$/i.test(a)){let c= +"#";a.replace(/[0-9A-F]/ig,function(e){c+=e+e});a=c}/^#[0-9A-F]{6}$/i.test(a)&&a.replace(/[0-9A-F]{2}/ig,function(c){c=I(c);b.push(Number((c/255).toFixed(1)))})}else a instanceof Array&&(b=a);3==b.length&&b.push(1);return b}}function O(a){if(void 0!=a){var b,c=D(a);2==c?b=[[a]]:3==c?b=[a]:4==c&&(b=a);if(b)for(let e of b)for(let d of e)for(let h of d)2==h.length&&h.push(0);return b}}function T(a){if(void 0!=a)return 1==D(a)?[a]:a}function F(a){return a instanceof Array?a:[a]}function K(a){let b=[]; +if(a instanceof Array)for(let c in a)b[c]=a[c].toString();else b=[a.toString()];return b}function S(a){switch(typeof a){case "undefined":return!0;case "string":if(0===a.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case "boolean":if(!a)return!0;break;case "number":if(isNaN(a))return!0;break;case "object":if(null===a||0===a.length)return!0;for(var b in a)return!1;return!0}return!1}function pa(a,b){for(a=a.toString();a.length=q?(e=g,a.apply(h,d),c&&(clearTimeout(c),c=null)):c||(c=setTimeout(()=>{e=+new Date;c=null;a.apply(h,d)},q))}}function Ha(a){switch(a){case da.StartingProcess:return"starting process...";case da.CheckingBusy:return"checking...";case da.ProcessStartFailed:return"process start failed!";case da.ProcessStarted:return"process started";case da.LoadingProject:return"loading project...";case da.ProjectLoaded:return"project loaded"}}function wa(a){"string"===typeof a&&(a=document.getElementById(a)); +return a}function Ia(a){return R.isIOSDevice&&R.isInWeixinBrowser?!1:a==sa.abnormal||a==sa.instance_disconnected}function aa(a,b){return void 0!==a&&null!==a?a:b}function xa(a){return a.keyCode===ea.Shift&&"ShiftRight"===a.code?ea.RightShift:a.keyCode===ea.Control&&"ControlRight"===a.code?ea.RightControl:a.keyCode===ea.Alt&&"AltRight"===a.code?ea.RightAlt:a.keyCode}var p={None:0,Camera_PlayAnimation:1,Camera_StopAnimation:2,Misc_EnterReportMode:3,Misc_ExitReportMode:4,Misc_SetDateTime:5,Camera_GetCamera:6, +Camera_SetState:7,Camera_Set:8,Camera_LookAtBBox:9,Coord_World2Screen:10,Coord_Screen2World:11,InfoTree_SetVisibility:12,InfoTree_Show:13,InfoTree_Hide:14,InfoTree_EnableXRay:15,InfoTree_DisableXRay:16,TileLayer_Add:17,HeatMap_Add:18,HeatMap_Update:19,HeatMap_AddPoints:20,HeatMap_RemovePoints:21,HeatMap_Delete:22,HeatMap_Show:23,HeatMap_Hide:24,HeatMap_Focus:25,HighlightArea_Add:26,HighlightArea_Delete:27,HighlightArea_Update:28,Polygon3D_Add:29,Polygon3D_Delete:30,Misc_AddImageButton:31,Misc_DeleteImageButton:32, +Misc_AddAnimatedImageButton:33,Settings_SetMainUIVisibility:34,Settings_SetMousePickMask:35,Tag_Add:36,Tag_Delete:37,Tag_Update:38,Tag_Clear:39,Tag_Focus:40,Beam_Add:41,Beam_Update:42,Beam_Delete:43,Beam_Clear:44,Beam_Focus:45,Beam_Show:350,Beam_Hide:351,Beam_ShowAll:352,Beam_HideAll:353,RadiationPoint_Add:46,RadiationPoint_Update:47,RadiationPoint_Delete:48,RadiationPoint_Clear:49,Polygon_Add:50,Polygon_Update:51,Polygon_Delete:52,Polygon_Clear:53,Polygon_Highlight:54,Polygon_StopHighlight:325,Polygon_Glow:55, +Polygon_Focus:56,Tag_FocusAll:57,Tag_Show:58,Tag_Hide:59,Tag_ShowAll:60,Tag_HideAll:61,RadiationPoint_Focus:62,RadiationPoint_FocusAll:63,RadiationPoint_Show:64,RadiationPoint_Hide:65,RadiationPoint_ShowAll:66,RadiationPoint_HideAll:67,Polygon_Show:68,Polygon_Hide:69,Polygon3D_Update:70,Polygon3D_Clear:71,Polygon3D_Focus:72,Polygon3D_Show:73,Polygon3D_Hide:74,Polygon3D_Highlight:75,Polygon3D_Glow:76,Polygon3D_StopGlow:77,HighlightArea_Clear:78,HighlightArea_Focus:79,HighlightArea_Show:80,HighlightArea_Hide:81, +Misc_GetVersion:82,TileLayer_Update:83,TileLayer_Delete:84,TileLayer_Focus:85,TileLayer_EnableXRay:86,TileLayer_DisableXRay:87,TileLayer_Show:88,TileLayer_Hide:89,Tag_Get:90,RadiationPoint_Get:91,Polygon_Get:92,Polygon3D_Get:93,HighlightArea_Get:94,TileLayer_Get:95,Beam_Get:96,HeatMap_Get:97,Settings_GetMapMode:98,Settings_SetMapMode:99,Settings_SetMapURL:100,Settings_SetWMTSLayerVisible:320,TileLayer_Actor_Show:101,TileLayer_Actor_Hide:102,TileLayer_Actor_Focus:103,TileLayer_Actor_Highlight:104, +TileLayer_Actor_StopHightlight:105,CustomObject_Add:106,CustomObject_Update:107,CustomObject_Delete:108,CustomObject_Get:109,CustomObject_Focus:110,CustomObject_Show:111,CustomObject_Hide:112,CustomObject_SetTintColor:326,HeatMap_Clear:113,CustomTag_Clear:39,CustomTag_Delete:37,CustomTag_Focus:40,CustomTag_FocusAll:57,CustomTag_Show:58,CustomTag_Hide:59,CustomTag_ShowAll:60,CustomTag_HideAll:61,CustomTag_Add:114,CustomTag_Update:115,CustomTag_Get:116,Polyline_Add:117,Polyline_Update:118,Polyline_Delete:119, +Polyline_Clear:120,Polyline_Focus:121,Polyline_Get:122,Polyline_Show:123,Polyline_Hide:124,Polyline_ShowAll:125,Polyline_HideAll:126,VideoProjection_Add:127,VideoProjection_Update:128,VideoProjection_Delete:129,VideoProjection_Show:130,VideoProjection_Hide:131,VideoProjection_Get:132,VideoProjection_Focus:133,Misc_PlayVideo:134,Misc_StopPlayVideo:135,Weather_SetParams:136,Weather_GetParams:137,Weather_SetDate:138,Weather_GetDate:139,ODLine_Add:140,ODLine_Update:141,ODLine_Delete:142,ODLine_Clear:143, +ODLine_Focus:144,ODLine_Get:145,ODLine_Show:146,ODLine_Hide:147,ODLine_ShowAll:148,ODLine_HideAll:149,Misc_SetWindowResolution:150,Misc_CallBPFunction:151,Settings_SetHighlightColor:152,InfoTree_ShowByGroupId:153,InfoTree_HideByGroupId:154,InfoTree_HighlightByGroupId:155,InfoTree_DeleteByGroupId:156,EditHelper_Start:157,EditHelper_Quit:158,EditHelper_Finish:159,EditHelper_SetParam:160,Settings_SetFovX:161,TileLayer_Actor_ShowAll:162,TileLayer_Actor_HideAll:163,CameraTour_Add:164,CameraTour_Update:165, +CameraTour_Play:166,CameraTour_Stop:167,CameraTour_Delete:168,Tag_PopupWindow_Show:169,Tag_PopupWindow_Hide:170,Tag_PopupWindow_ShowAll:171,Tag_PopupWindow_HideAll:172,Settings_SetOceanColor:173,Misc_ShowAllFoliages:174,Misc_HideAllFoliages:175,Tools_StartPolygonClip:176,Tools_StopClip:177,TileLayer_SetAllowClip:178,Panorama_Add:179,Panorama_Update:180,Panorama_Delete:181,Panorama_Clear:182,Panorama_Focus:183,Panorama_Get:184,Decal_Add:185,Decal_Update:186,Decal_Delete:187,Decal_Clear:188,Decal_Focus:189, +Decal_FocusAll:190,Decal_Get:191,Misc_PlayMovie:192,Misc_StopMovie:193,Tools_SetMeasurement:194,Tools_StartMeasurement:195,Tools_StopMeasurement:196,Viewshed_Add:197,Viewshed_Update:198,Viewshed_Focus:199,Viewshed_Delete:200,Viewshed_Clear:201,Viewshed_Get:202,TileLayer_SetStyle:203,Tools_LineIntersect:204,Coord_PCS2GCS:205,Coord_GCS2PCS:206,DynamicWater_Add:207,DynamicWater_Update:208,DynamicWater_Focus:209,DynamicWater_Delete:210,DynamicWater_Clear:211,DynamicWater_Get:212,DynamicWater_Show:213, +DynamicWater_Hide:214,Quit:215,TileLayer_Actor_Unhighlight:216,InfoTree_Get:217,Reset:218,SaveProject:225,CustomObject_Clear:219,CustomObject_Highlight:220,CustomObject_Unhighlight:221,CustomObject_StopHighlight:222,CustomObject_CallFunction:223,CustomObject_AddByTileLayer:224,Tools_StartPlaneClip:226,Tools_StopPlaneClip:228,Tools_StartVolumeClip:229,Tools_UpdateVolumeClip:230,Tools_StopVolumeClip:231,Tools_StartSkylineAnalysis:232,Tools_StopSkylineAnalysis:233,Tools_ExportSkyline:234,Tools_StartViewshedAnalysis:235, +Tools_StopViewshedAnalysis:236,Camera_Move:237,TileLayer_SetCollision:238,TileLayer_Modifier_Add:239,TileLayer_Modifier_Update:240,TileLayer_Modifier_Delete:241,TileLayer_Modifier_Clear:242,Misc_StartProcess:243,Settings_SetCampassVisible:244,Tools_StartGeometryEdit:245,Tools_StopGeometryEdit:246,Settings_SetEnableInteract:247,Camera_PauseAnimation:248,Camera_ResumeAnimation:249,Settings_SetInteractiveMode:250,CameraTour_Pause:251,CameraTour_Resume:252,Settings_SetTerrainAlpha:253,CustomMesh_Add:254, +CustomMesh_Delete:255,CustomMesh_Clear:256,CustomMesh_Update:257,CustomMesh_Get:258,CustomMesh_Focus:259,CustomMesh_Show:260,CustomMesh_Hide:261,CustomMesh_ShowAll:262,CustomMesh_HideAll:263,Settings_EnableCameraMovingEvent:264,Marker_Add:265,Marker_Update:266,Marker_Get:267,Marker_Delete:268,Marker_Clear:269,Marker_Focus:270,Marker_FocusAll:271,Marker_Show:272,Marker_Hide:273,Marker_ShowAll:274,Marker_HideAll:275,Marker_ShowPopupWindow:276,Marker_HidePopupWindow:277,Marker_ShowAllPopupWindow:278, +Marker_HideAllPopupWindow:279,TileLayer_SetViewportVisible:280,TileLayer_GetObjectIDs:281,Polygon3D_StopHighlight:282,Tools_StartFloodFill:283,Tools_StopFloodFill:284,FloodFill_Add:285,FloodFill_Delete:286,FloodFill_Clear:287,FloodFill_Update:288,FloodFill_Get:289,FloodFill_Focus:290,FloodFill_Show:291,FloodFill_Hide:292,FloodFill_ShowAll:293,FloodFill_HideAll:294,Cesium3DTile_Add:295,Cesium3DTile_Delete:296,Cesium3DTile_Clear:297,Cesium3DTile_Update:298,Cesium3DTile_Get:299,Cesium3DTile_Focus:300, +Cesium3DTile_Show:301,Cesium3DTile_Hide:302,Cesium3DTile_ShowAll:303,Cesium3DTile_HideAll:304,TileLayer_GetActorInfoFromDB:305,ShapeFileLayer_Add:306,ShapeFileLayer_Delete:307,ShapeFileLayer_Clear:308,ShapeFileLayer_Update:309,ShapeFileLayer_Get:310,ShapeFileLayer_Focus:311,ShapeFileLayer_Show:312,ShapeFileLayer_Hide:313,ShapeFileLayer_ShowAll:314,ShapeFileLayer_HideAll:315,ShapeFileLayer_OpenShapeFileLayer:316,Weather_SimulateTime:317,TileLayer_Actor_GetInfo:318,Camera_GetAnimationList:319,TileLayer_CutPolygon_Add:321, +TileLayer_CutPolygon_Update:322,TileLayer_CutPolygon_Delete:323,TileLayer_CutPolygon_Clear:324,Marker3D_Add:327,Marker3D_Delete:328,Marker3D_Clear:329,Marker3D_Update:330,Marker3D_Get:331,Marker3D_Focus:332,Marker3D_Show:333,Marker3D_Hide:334,Marker3D_ShowAll:335,Marker3D_HideAll:336,Camera_GetAnimationImage:337,Tools_ReplaceTexture:338,Tools_RestoreTexture:339,Light_Add:340,Light_Delete:341,Light_Update:343,Light_Get:344,Light_Clear:342,Light_Focus:345,Light_Show:346,Light_Hide:347,Light_ShowAll:348, +Light_HideAll:349,WaterMesh_Add:354,WaterMesh_Update:355,WaterMesh_Delete:356,WaterMesh_Clear:357,WaterMesh_Get:358,WaterMesh_Focus:359,WaterMesh_Show:360,WaterMesh_Hide:361,WaterMesh_ShowAll:362,WaterMesh_HideAll:363,CustomObject_StartMove:364,CustomObject_StopMove:365,CustomObject_OverrideMaterial:366,CustomObject_RestoreMaterial:367,Settings_SetReport:368,Settings_GetReport:369,Settings_SetControl:370,Settings_GetControl:371,Settings_SetPostProcess:372,Settings_GetPostProcess:373,Settings_SetCamera:374, +Settings_GetCamera:375,CustomObject_SetViewportVisible:376,WaterFlowField_Add:377,WaterFlowField_Update:378,WaterFlowField_Delete:379,WaterFlowField_Clear:380,WaterFlowField_Get:381,WaterFlowField_Focus:382,WaterFlowField_Show:383,WaterFlowField_Hide:384,TileLayer_SetViewHeightRange:385,Tools_StartVisiblityAnalysis:386,Tools_StopVisiblityAnalysis:387,Tools_StartViewDomeAnalysis:388,Tools_StopViewDomeAnalysis:389,Tools_StartCutFillAnalysis:390,Tools_StopCutFillAnalysis:391,Tools_StartSunshineAnalysis:392, +Tools_StopSunshineAnalysis:393,Tools_StartTerrainSlopeAnalysis:394,Tools_StopTerrainSlopeAnalysis:395,Tools_StartContourLineAnalysis:396,Tools_StopContourLineAnalysis:397,TileLayer_GetAllFlattenData:398,Marker_SetupPOIAttachment:399,HeatMap3D_Add:400,HeatMap3D_Update:401,HeatMap3D_Focus:402,HeatMap3D_Delete:403,HeatMap3D_Show:404,HeatMap3D_Hide:405,HeatMap3D_Get:406,HeatMap3D_Clear:407,ShapeFileLayer_HighlightFeature:408,ShapeFileLayer_UnHighlightFeature:409,ShapeFileLayer_FocusFeature:410,ShapeFileLayer_GetFeatureInfo:411, +Misc_EnterMultiViewport:412,Misc_ExitMultiViewport:413,Misc_SetActivateMultiViewport:414,Misc_GetActivateMultiViewport:415,Panorama_Enter:416,Panorama_Exit:417,Panorama_Switch:418,VTPKService_Get:419,VTPKService_Set:420,SimulateTest__:421,Settings_CursorAutoSync:422,InfoTree_Focus:423,Marker_ShowByGroupId:424,Marker_HideByGroupId:425,Marker_DeleteByGroupId:426,ImageryLayer_Init:427,ImageryLayer_Add:428,Camera_LockBBox:429,Camera_UnLockBBox:430,Settings_SetWMTSLayerOpacity:431,Camera_EnterEarthCapture:432, +Camera_ExitEarthCapture:433,Tools_AnalysisPopupAttributes:434,Tools_AnalysisCloseAttributes:435,ImageryLayer_Show:436,ImageryLayer_Hide:437,ImageryLayer_Delete:438,Settings_GetInteractiveMode:439,VideoProjection_Clear:440,Misc_UpdateMultiViewport:441,Misc_downloadPakFiles:442,Settings_SetCampassPosition:443,Polygon3D_ShowAll:444,Polygon3D_HideAll:445,GeoJSONLayer_Add:446,GeoJSONLayer_Show:447,GeoJSONLayer_Hide:448,GeoJSONLayer_Delete:449,Vehicle_Add:450,Vehicle_Update:451,Vehicle_AddWayPoints:452, +Vehicle_ClearWayPoints:453,Vehicle_Focus:454,Vehicle_Show:455,Vehicle_Hide:456,Vehicle_Get:457,Vehicle_Delete:458,Vehicle_Clear:459,Vehicle_MoveTo:460,Misc_ConvexHull2D:461,HeatMap_AddVoxels:462,TileLayer_GetCollision:463,TileLayer_SetPointSize:464,Misc_QueryActorOrMaterial:465,CustomObject_StartGlow:466,CustomObject_StopGlow:467,Coord_Transform:468,RegisterJsCommunication:469,UnRegisterJsCommunication:470,Vehicle_CallBatchFunction:471,Camera_FlyAround:472,Marker3D_ShowByGroupId:473,Marker3D_HideByGroupId:474, +Marker3D_DeleteByGroupId:475,Camera_EnterWorldAnimation:476,Camera_ExitWorldAnimation:477,TileLayer_SetDecalAttach:478,Command_End:1E4},ya=!1;(()=>{if(!ya){ya=!0;for(let a in p)p[p[a]]=a}})();const qa={MouseClick:1,MouseMove:2,MouseHover:4},ba={V1:1,V2:2,V3:4,V4:8,All:255};class Ja{constructor(a,b){this.id=a;this.visible=b}}class Ka{constructor(a,b,c,e){this.id=a.toString();this.coordinate=b;this.radius=c;this.heatValue=e}}class La{constructor(a,b,c,e,d,h,g,q,k,f,l,t,w,r){this.id=a.toString();this.coordinate= +b;this.imagePath=c;this.imageSize=e;this.url=d;this.text=h;this.range=g||[1,1E5];this.showLine=!!q;this.textColor=k||[0,0,0,1];this.textBackgroundColor=f||[1,1,1,.85];this.textBorderColor=l||[0,0,0,0];this.textRange=t||1E5;this.hoverImagePath=w;this.autoHidePopupWindow=r||!0}}class Ma{constructor(a,b,c){this.url=a;this.width=b;this.height=c}}class Na{constructor(a,b,c,e,d,h,g,q){this.id=a.toString();this.coordinate=b;this.contentURL=c.url;this.contentSize=[c.width,c.height];this.popupURL=e.url;this.popupSize= +[e.width,e.height];this.pivot=d;this.range=h;this.autoHidePopupWindow=g||!0;this.popupPos=q}}class Oa{constructor(a,b,c,e,d,h){this.id=a.toString();this.coordinates=O(b);this.color=E(c);this.heightRange=e;this.intensity=d;this.depthTest=h||!0}}class Pa{constructor(a,b,c,e,d,h,g,q){this.id=a.toString();this.x=b;this.y=c;this.width=e;this.height=d;this.normalImage=h;this.hoverImage=g;this.tooltip=q}}class Qa{constructor(a,b,c,e,d,h,g,q,k){this.id=a.toString();this.x=b;this.y=c;this.width=e;this.height= +d;this.imageSequecePath=h;this.imageSequeceLength=g;this.loop=!!q;this.interactable=!!k}}class Ra{constructor(a,b,c,e,d,h,g){this.id=a.toString();this.duration=b;this.thickness=c;this.interval=e;this.velocity=d;this.color=E(h);this.coordinates=g}}class Sa{constructor(a,b,c,e,d,h){this.id=a.toString();this.coordinate=b;this.radius=c;this.rippleNumber=e;this.color=E(d);this.brightness=h}}class Ta{constructor(a,b,c,e,d,h,g,q){this.id=a.toString();this.style=b;this.coordinates=O(c);this.color=E(e);this.height= +d;this.intensity=h;this.tillingX=g;this.tillingY=q}}class Ua{constructor(a,b,c,e,d,h,g,q,k,f){this.id=a.toString();this.color=E(b);this.coordinates=c;this.style=void 0==e?0:e;if(0>this.style||5this.style||10{this.isMainThreadBusy? +this._callNextForTimeout(5E3):this.callNext()},a)}}class Q{constructor(a,b,c){this.int=a;this.type=b;this.colorProps=c;this._useBatchUpdate=!1;this._tempUpdateData=[]}_checkCommand(a){a=this.type+a;let b=p[a];void 0==b&&this.int.logWithColor("red",`Invalid command: ${a}`);return b}_convertFilePath(a){return this.int.resourcesPath?a.replace("@path:",this.int.resourcesPath+"/"):a}_processProps(a){a=F(a);for(var b of a)for(let e in b)"string"==typeof b[e]&&b[e].startsWith("@path:")&&(b[e]=this._convertFilePath(b[e])); +for(let e of a)"string"!=typeof e.id&&(e.id=e.id.toString());if(this.colorProps){b=this.colorProps.split("|");for(var c of a)for(let e of b)c.hasOwnProperty(e)&&(c[e]=E(c[e]))}if(-1!=["Polygon","Polygon3D","HighlightArea","DynamicWater"].indexOf(this.type))for(let e of a)e.coordinates=O(e.coordinates);for(let e of a)e.hasOwnProperty("userData")&&(c=e.userData,this._isJsonString(c)&&(e.userData=c.replace(/"/g,"~!@~!@~!@")))}_isJsonString(a){try{return"string"===typeof a?(JSON.parse(a),!0):!1}catch(b){return!1}}_add(a, +b){this._processProps(a);return this.int.call({command:this._checkCommand("_Add"),data:F(a)},b)}_update(a,b){this._processProps(a);return this.int.call({command:this._checkCommand("_Update"),data:F(a)},b)}_delete(a,b){return this.int.call({command:this._checkCommand("_Delete"),ids:K(a)},b)}_clear(a){return this.int.call0(this._checkCommand("_Clear"),a)}_get(a,b){return this.int.call({command:this._checkCommand("_Get"),ids:K(a)},b)}_focus(a,b,c,e,d){"function"==typeof c&&(d=c,c=void 0);"function"== +typeof e&&(d=e,e=null);return this.int.call({command:this._checkCommand("_Focus"),ids:K(a),distance:b||0,flyTime:c,rotation:e},d)}_focusAll(a,b,c,e){"function"==typeof b&&(e=b,b=void 0);"function"==typeof c&&(e=c,c=null);return this.int.call({command:this._checkCommand("_FocusAll"),ids:[],distance:a||0,flyTime:b,rotation:c},e)}_show(a,b){return this.int.call({command:this._checkCommand("_Show"),ids:K(a)},b)}_showAll(a){return this.int.call0(this._checkCommand("_ShowAll"),a)}_hide(a,b){return this.int.call({command:this._checkCommand("_Hide"), +ids:K(a)},b)}_hideAll(a){return this.int.call0(this._checkCommand("_HideAll"),a)}_updateOneProp(a,b,c,e){if(this._useBatchUpdate){e=!1;for(var d of this._tempUpdateData)if(d.id==a.toString()){e=!0;d[b]=c;break}e||(e={},e.id=a.toString(),e[b]=c,this._tempUpdateData.push(e))}else return d={},d.id=a.toString(),d[b]=c,this.update(d,e)}updateBegin(){this._useBatchUpdate=!0;this._tempUpdateData=[]}updateEnd(a){a=this.update(this._tempUpdateData,a);this._tempUpdateData=null;this._useBatchUpdate=!1;return a}test(){alert("test")}} +class ib extends Q{constructor(a){super(a,"Beam","color")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}showAll(a){return super._showAll(a)}hideAll(a){return super._hideAll(a)}get(a,b){return super._get(a,b)}setDuration(a,b,c){return super._updateOneProp(a,"duration",b,c)}setThickness(a,b,c){return super._updateOneProp(a, +"thickness",b,c)}setInterval(a,b,c){return super._updateOneProp(a,"interval",b,c)}setVelocity(a,b,c){return super._updateOneProp(a,"velocity",b,c)}setColor(a,b,c){return super._updateOneProp(a,"color",E(b),c)}setCoordinates(a,b,c){return super._updateOneProp(a,"coordinates",b,c)}}class jb extends Q{constructor(a){super(a,"CameraTour")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}play(a,b){return this.int.call({command:p.CameraTour_Play, +ids:K(a)},b)}pause(a){return this.int.call0(p.CameraTour_Pause,a)}resume(a){return this.int.call0(p.CameraTour_Resume,a)}stop(a){return this.int.call({command:p.CameraTour_Stop},a)}setUserData(a,b,c){return super._updateOneProp(a,"userData",b,c)}setDuration(a,b,c){return super._updateOneProp(a,"duration",b,c)}setKeyFrames(a,b,c){return super._updateOneProp(a,"keyFrames",b,c)}setName(a,b,c){return super._updateOneProp(a,"name",b,c)}}class kb extends Q{constructor(a){super(a,"Cesium3DTile")}add(a,b){return super._add(a, +b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}showAll(a){return super._showAll(a)}hide(a,b){return super._hide(a,b)}hideAll(a){return super._hideAll(a)}get(a,b){return super._get(a,b)}setTileURL(a,b,c){return super._updateOneProp(a,"tileURL",b,c)}}class lb extends Q{constructor(a){super(a,"CustomMesh","color")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a, +b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}setCoordinates(a,b,c){return super._updateOneProp(a,"coordinates",b,c)}setIndices(a,b,c){return super._updateOneProp(a,"indices",b,c)}setColor(a,b,c){return super._updateOneProp(a,"color",b,c)}}class mb extends Q{constructor(a){super(a,"CustomObject")}add(a,b){return super._add(a, +b)}update(a,b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d,h){"function"==typeof c&&(h=c,c=void 0);"function"==typeof e&&(h=e,e=null);"function"==typeof d&&(h=d,d=0);1a[3]||a[1]>a[4]||a[2]>a[5])return!1}else return!1;return!0}add(a,b,c,e,d,h,g,q,k,f,l){return this._checkBBox(b)? +"undefined"==typeof d||"function"==typeof d?this.int.call({command:p.HeatMap_Add,id:a.toString(),bbox:b,range:c,data:F(e),style:-1},l):0==d?this.int.call({command:p.HeatMap_Add,id:a.toString(),bbox:b,range:c,data:F(e),style:0,textureSize:h,opacityMode:g,opacityRange:q,blur:k,colors:f},l):this.int.call({command:p.HeatMap_Add,id:a.toString(),bbox:b,range:c,data:F(e),style:-1},l):(this.int.logWithColor("red","Invalid bbox value"),!1)}update(a,b,c,e,d){a={command:p.HeatMap_Update,id:a.toString()};if(b){if(!this._checkBBox(b))return this.int.logWithColor("red", +"Invalid bbox value"),!1;a.bbox=b}c&&(a.range=c);e&&(a.data=F(e));return this.int.call(a,d)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}addPoints(a,b,c){return this.int.call({command:p.HeatMap_AddPoints,id:a,data:F(b)},c)}removePoints(a,b,c){return this.int.call({command:p.HeatMap_RemovePoints,id:a,pointIds:F(b)},c)}setRange(a, +b,c){return this.int.call({command:p.HeatMap_Update,id:a,range:b},c)}setBBox(a,b,c){return this._checkBBox(b)?this.int.call({command:p.HeatMap_Update,id:a,bbox:b},c):(this.int.logWithColor("red","Invalid bbox value"),!1)}}class tb extends Q{constructor(a){super(a,"HeatMap3D")}_checkBBox(a){if(a instanceof Array){if(6!=a.length||a[0]>a[3]||a[1]>a[4]||a[2]>a[5])return!1}else return!1;return!0}add(a,b){return this.int.call({command:p.HeatMap3D_Add,data:F(a)},b)}addVoxels(a,b){return this.int.call({command:p.HeatMap_AddVoxels, +data:F(a)},b)}update(a,b){return this.int.call({command:p.HeatMap3D_Update,data:F(a)},b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}setDisplayMode(a,b,c){return this.int.call({command:p.HeatMap3D_Update,id:a,displayMode:b},c)}}class ub extends Q{constructor(a){super(a,"HighlightArea","color")}add(a,b){return super._add(a,b)}update(a, +b){return super._update(a,b)}delete(a,b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}get(a,b){return super._get(a,b)}setColor(a,b,c){return super._updateOneProp(a,"color",E(b),c)}setCoordinates(a,b,c){return super._updateOneProp(a,"coordinates",b,c)}setHeightRange(a,b,c){return super._updateOneProp(a,"heightRange",b,c)}setIntensity(a,b,c){return super._updateOneProp(a, +"intensity",b,c)}setDepthTest(a,b,c){return super._updateOneProp(a,"depthTest",b,c)}}class vb extends Q{constructor(a){super(a,"ImageryLayer")}init(a,b){return this.int.call({command:p.ImageryLayer_Init,xmlPath:a.xmlUrl,layerName:a.layerName,tileMatrixName:a.tileMatrixName,ogcEPSG:a.ogcEPSG,cachePath:a.cachePath,mapMode:a.mapMode,renderMode:a.renderMode},b)}add(a,b){const c=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){return a instanceof Array?new Promise(e=>$jscomp.asyncExecutePromiseGeneratorFunction(function*(){let d; +for(let h of a)if(d=yield c.addOne(h,b),0!=d.result){e(d);break}e(d)})):c.addOne(a,b)})}addOne(a,b){return this.int.call({command:p.ImageryLayer_Add,id:a.id,url:a.url,xmlPath:a.xmlPath,layerName:a.layerName,tileMatrixName:a.tileMatrixName,ogcEPSG:a.ogcEPSG},b)}show(a,b){return super._show(a,b)}hide(a,b){return super._hide(a,b)}delete(a,b){return super._delete(a,b)}}class wb extends Q{constructor(a){super(a,"Light","color")}add(a,b){return super._add(a,b)}update(a,b){return super._update(a,b)}delete(a, +b){return super._delete(a,b)}clear(a){return super._clear(a)}focus(a,b,c,e,d){return super._focus(a,b,c,e,d)}show(a,b){return super._show(a,b)}showAll(a){return super._showAll(a)}hide(a,b){return super._hide(a,b)}hideAll(a){return super._hideAll(a)}get(a,b){return super._get(a,b)}}class xb extends Q{constructor(a){super(a,"Marker","fontColor|fontOutlineColor|textBackgroundColor|lineColor")}add(a,b){this._fixMarkerData(a);return super._add(a,b)}_fixMarkerProperty(a){a.textColor&&(a.fontColor=a.textColor); +a.url&&(a.popupURL=a.url);a.dispalyMode&&(a.displayMode=a.dispalyMode);S(a.displayMode)&&(a.displayMode=4);a.popupURL&&!a.popupSize&&(a.popupSize=[600,400]);0==a.showLine&&(a.lineSize=[0,0]);1!=a.showLine||null!=a.lineSize&&void 0!=a.lineSize||(a.lineSize=[2,100]);4==a.displayMode&&0{za="zh"===a?"zh":"en";ta={};a="zh"==za;for(let b in Aa){let c=Aa[b];ta[b]=a?c[0]:c[1]}for(let b of H.onLanguageChangedCallbacks)"function"==typeof b&&b()};H.getString=a=>ta[a];class Mb{constructor(a){this.int=a;this._useOldDataFormat=!1}useOldDataFormat(a){this._useOldDataFormat=a||!0}get(a){return this.int.call0(p.Camera_GetCamera,a)}_setByArray(a,b,c){return this.set(a[0],a[1],a[2],a[3],a[4],b,c)}_setByObject(a,b,c){return this.set(a.x,a.y,a.z,a.pitch,a.yaw,b,c)}set(a,b,c,e,d, +h,g){if(a instanceof Array&&5<=a.length)return this._setByArray(a,b,c);if("object"==typeof a&&a.hasOwnProperty("x"))return this._setByObject(a,b,c);"function"==typeof h&&(g=h,h=void 0);if(this._useOldDataFormat){let q=e;e=d;d=q}return this.int.call({command:p.Camera_Set,coordinate:[a,b,c],pitch:e||0,yaw:d||0,flyTime:h},g)}lookAt(a,b,c,e,d,h,g,q){"function"==typeof g&&(q=g,g=void 0);if(this._useOldDataFormat){let k=d;d=h;h=k}return this.int.call({command:p.Camera_Set,coordinate:[a,b,c],distance:e, +pitch:d||0,yaw:h||0,flyTime:g},q)}lookAtBBox(a,b,c,e,d){"function"==typeof e&&(d=e,e=void 0);if(this._useOldDataFormat){let h=b;b=c;c=h}return this.int.call({command:p.Camera_LookAtBBox,bbox:a,pitch:b||0,yaw:c||0,flyTime:e},d)}playAnimation(a,b){return this.int.call({command:p.Camera_PlayAnimation,id:a},b)}stopAnimation(a){return this.int.call0(p.Camera_StopAnimation,a)}pauseAnimation(a){return this.int.call0(p.Camera_PauseAnimation,a)}resumeAnimation(a){return this.int.call0(p.Camera_ResumeAnimation, +a)}getAnimationList(a){return this.int.call0(p.Camera_GetAnimationList,a)}getAnimationImage(a,b){return this.int.call({command:p.Camera_GetAnimationImage,name:a},b)}moveForward(a){return this.int.call({command:p.Camera_Move,moveForward:!0},a)}moveBackward(a){return this.int.call({command:p.Camera_Move,moveBackward:!0},a)}moveLeft(a){return this.int.call({command:p.Camera_Move,moveLeft:!0},a)}moveRight(a){return this.int.call({command:p.Camera_Move,moveRight:!0},a)}moveUp(a){return this.int.call({command:p.Camera_Move, +moveUp:!0},a)}moveDown(a){return this.int.call({command:p.Camera_Move,moveDown:!0},a)}turnLeft(a){return this.int.call({command:p.Camera_Move,turnLeft:!0},a)}turnRight(a){return this.int.call({command:p.Camera_Move,turnRight:!0},a)}turnUp(a){return this.int.call({command:p.Camera_Move,turnUp:!0},a)}turnDown(a){return this.int.call({command:p.Camera_Move,turnDown:!0},a)}stop(a){return this.int.call({command:p.Camera_Move,stop:!0},a)}getEulerAngle(a,b){const c=360/(2*Math.PI);let e=b[0]-a[0],d=b[1]- +a[1];return[Math.atan2(b[2]-a[2],Math.sqrt(e*e+d*d))*c,Math.atan2(e,d)*c-90,0]}lockByBBox(a,b){return this.int.call({command:p.Camera_LockBBox,bbox:a},b)}unlock(a){return this.int.call({command:p.Camera_UnLockBBox},a)}flyAround(a,b,c,e,d){return this.int.call({command:p.Camera_FlyAround,coordinate:a,rotation:b||[0,90,0],distance:c||1E3,time:e||10},d)}enterWorld(a){return this.int.call({command:p.Camera_ExitWorldAnimation},a)}exitWorld(a){return this.int.call({command:p.Camera_EnterWorldAnimation}, +a)}}class Nb{constructor(a){this.int=a}screen2World(a,b,c){return this.int.call({command:p.Coord_Screen2World,screenPosition:[a,b]},c)}world2Screen(a,b,c,e){return this.int.call({command:p.Coord_World2Screen,worldlocation:[a,b,c]},e)}gcs2pcs(a,b,c){"function"==typeof b&&(c=b);S(b)&&(b=1);if(1==b)return this.int.call({command:p.Coord_GCS2PCS,coordinates:T(a)},c);2==b?this.transform(T(a),2,0,c):3==b?this.transform(T(a),3,0,c):console.error("\u672a\u77e5\u5750\u6807\u7cfb\u7c7b\u578b")}pcs2gcs(a,b,c){"function"== +typeof b&&(c=b);S(b)&&(b=1);if(1==b)return this.int.call({command:p.Coord_PCS2GCS,coordinates:T(a)},c);2==b?this.transform(T(a),0,2,c):3==b?this.transform(T(a),0,3,c):console.error("\u672a\u77e5\u5750\u6807\u7cfb\u7c7b\u578b")}transform(a,b,c,e){return this.int.call({command:p.Coord_Transform,coordinates:T(a),src:b,dest:c},e)}}class Ob{constructor(a){this.int=a}start(a){return this.int.call0(p.EditHelper_Start,a)}cancel(a){return this.int.call0(p.EditHelper_Quit,a)}finish(a,b){return this.int.call({command:p.EditHelper_Finish, +withOffset:a||!0},b)}setParam(a,b,c,e){return this.int.call({command:p.EditHelper_SetParam,lineType:a,buildType:b,color:E(c)},e)}}class Pb{constructor(a){this.int=a}setVisibility(a,b){return this.int.call({command:p.InfoTree_SetVisibility,layers:F(a)},b)}show(a,b){return this.int.call({command:p.InfoTree_Show,ids:K(a)},b)}hide(a,b){return this.int.call({command:p.InfoTree_Hide,ids:K(a)},b)}enableXRay(a,b,c){return this.int.call({command:p.InfoTree_EnableXRay,ids:F(a),color:E(b)},c)}disableXRay(a, +b){return this.int.call({command:p.InfoTree_DisableXRay,ids:F(a)},b)}showByGroupId(a,b){return this.int.call({command:p.InfoTree_ShowByGroupId,ids:K(a)},b)}hideByGroupId(a,b){return this.int.call({command:p.InfoTree_HideByGroupId,ids:K(a)},b)}highlightByGroupId(a,b){return this.int.call({command:p.InfoTree_HighlightByGroupId,ids:K(a)},b)}deleteByGroupId(a,b){return this.int.call({command:p.InfoTree_DeleteByGroupId,ids:K(a)},b)}get(a){return this.int.call0(p.InfoTree_Get,a)}focus(a,b){return this.int.call({command:p.InfoTree_Focus, +ids:K(a)},b)}}class Qb{constructor(a){this.int=a;this.apiVersion="5.4";this.apiVersionServer=""}isApiVersionMatched(){return"5.4"==this.apiVersionServer}addImageButtons(a,b){return this.int.call({command:p.Misc_AddImageButton,data:F(a)},b)}deleteImageButtons(a,b){return this.int.call({command:p.Misc_DeleteImageButton,ids:K(a)},b)}addAnimatedImageButtons(a,b){return this.int.call({command:p.Misc_AddAnimatedImageButton,data:F(a)},b)}setApiVersionReceived(a){this.int.onApiVersionReceived=a}playVideo(a, +b,c,e,d,h,g){return this.int.call({command:p.Misc_PlayVideo,data:[{id:a.toString(),position:[b,c],size:[e,d],url:h}]},g)}stopPlayVideo(a,b){return this.int.call({command:p.Misc_StopPlayVideo,ids:K(a)},b)}playMovie(a,b,c){"function"==typeof b&&(c=b,b=!1);return this.int.call({command:p.Misc_PlayMovie,loop:b,url:a},c)}stopMovie(a){return this.int.call({command:p.Misc_StopMovie},a)}setWindowResolution(a,b,c){return this.int.call({command:p.Misc_SetWindowResolution,cx:a,cy:b,mode:0},c)}callBPFunction(a, +b){return this.int.call({command:p.Misc_CallBPFunction,data:F(a)},b)}enterReportMode(a){return this.int.call0(p.Misc_EnterReportMode)}exitReportMode(a){return this.int.call0(p.Misc_ExitReportMode,a)}showAllFoliages(a){return this.int.call0(p.Misc_ShowAllFoliages,a)}hideAllFoliages(a){return this.int.call0(p.Misc_HideAllFoliages,a)}startProcess(a,b,c,e){"function"==typeof c&&(e=c,c=!0);return this.int.call({command:p.Misc_StartProcess,appName:a,commandLine:b,visible:c},e)}enterMultiViewportMode(a, +b,c,e){if(null==b||void 0==b)b="#DEA309";if(null==c||void 0==c)c=2;return this.int.call({command:p.Misc_EnterMultiViewport,type:a,lineColor:E(b),lineThickness:c},e)}exitMultiViewportMode(a){return this.int.call({command:p.Misc_ExitMultiViewport},a)}setActiveViewport(a,b){return this.int.call({command:p.Misc_SetActivateMultiViewport,viewIndex:F(a)},b)}getActiveViewport(a){return this.int.call({command:p.Misc_GetActivateMultiViewport},a)}setMultiviewportInteractSync(a,b){this.setCameraFollow4Viewport(a, +b)}setCameraFollow4Viewport(a,b){return this.int.call({command:p.Misc_UpdateMultiViewport,moverTogether:a},b)}downloadPakFiles(a,b){return this.int.call({command:p.Misc_downloadPakFiles,ids:F(a)},b)}getConvexPolygon(a,b){return this.int.call({command:p.Misc_ConvexHull2D,data:F(a)},b)}getMaterial(a,b){return this.int.call({command:p.Misc_QueryActorOrMaterial,idOrPaths:F(a)},b)}getBPFunction(a,b){return this.int.call({command:p.Misc_QueryActorOrMaterial,idOrPaths:F(a)},b)}startPolygonClip(a,b,c){return this.int.tools.startPolygonClip(a, +b,c)}stopClip(a){return this.int.tools.stopClip(a)}playAnimation(a,b){return this.int.camera.playAnimation(a,b)}stopAnimation(a){return this.int.camera.stopAnimation(a)}setDateTime(a,b,c,e,d,h,g){return this.int.weather.setDateTime(a,b,c,e,d,h,g)}setQueryToolState(a,b){return this.int.call({"c.ommand":p.Settings_SetMousePickMask,mouseClick:a},b)}setCampassVisible(a,b){return this.int.settings.setCampassVisible(a,b)}setMainUIVisibility(a,b){return this.int.settings.setMainUIVisibility(a,b)}setMousePickMask(a, +b){return this.int.settings.setMousePickMask(a,b)}}class Rb{constructor(a){this.int=a}setMapMode(a,b,c){b=b||{};return this.int.call({command:p.Settings_SetMapMode,mode:a,serviceType:b.serviceType||0,coordType:b.coordType||0,mapPoint:b.mapPoint||[0,0],longitude:b.longitude||0,latitude:b.latitude||0,cache:b.cache||":memory:",style:b.style||"mapbox://styles/mapbox/streets-v10",groundHeight:b.groundHeight||0,renderMode:b.renderMode||0,decalMode:b.decalMode||1,serverURL:b.serverURL,coordOrder:b.coordOrder, +maxLevel:b.maxLevel},c)}getMapMode(a){return this.int.call0(p.Settings_GetMapMode,a)}setWMTSLayerVisible(a,b){this.setwmtsLayerVisible(a,b)}setwmtsLayerVisible(a,b){return this.int.call({command:p.Settings_SetWMTSLayerVisible,data:F(a)},b)}setWMTSLayerOpacity(a,b){return this.int.call({command:p.Settings_SetWMTSLayerOpacity,data:F(a)},b)}setMapURL(a,b){return this.int.call({command:p.Settings_SetMapURL,url:a},b)}highlightColor(a,b){return this.setHighlightColor(a,b)}setHighlightColor(a,b){return this.int.call({command:p.Settings_SetHighlightColor, +color:E(a)},b)}setFovX(a,b){return this.int.call({command:p.Settings_SetFovX,value:a},b)}setOceanColor(a,b){return this.int.call({command:p.Settings_SetOceanColor,color:E(a)},b)}setEnableInteract(a,b){return this.int.call({command:p.Settings_SetEnableInteract,enableInteract:a},b)}setInteractiveMode(a,b){return this.int.call({command:p.Settings_SetInteractiveMode,mode:a},b)}getInteractiveMode(a){return this.int.call({command:p.Settings_GetInteractiveMode},a)}setCampassVisible(a,b){return this.int.call({command:p.Settings_SetCampassVisible, +visible:a},b)}setCampassPosition(a,b,c){return this.int.call({command:p.Settings_SetCampassPosition,position:[a,b]},c)}restoreCampassPosition(a){this.setCampassPosition(-1,-1)}setMainUIVisibility(a,b){return this.int.call({command:p.Settings_SetMainUIVisibility,visible:a},b)}setMousePickMask(a,b){let c=!1,e=!1,d=!1;a&qa.MouseClick&&(c=!0);a&qa.MouseMove&&(e=!0);a&qa.MouseHover&&(d=!0);return this.int.call({command:p.Settings_SetMousePickMask,mouseClick:c,mouseMove:e,mouseHover:d},b)}setTerrainAlpha(a, +b){return this.int.call({command:p.Settings_SetTerrainAlpha,alpha:a},b)}setEnableCameraMovingEvent(a,b,c){return this.int.call({command:p.Settings_EnableCameraMovingEvent,bEnable:a,monitorThreshold:b},c)}setLabelLayer(a,b){return this.int.call({command:p.VTPKService_Set,vtpk:a},b)}getLabelLayer(a){return this.int.call({command:p.VTPKService_Get},a)}removeLabelLayer(a){return this.int.call({command:p.VTPKService_Set,vtpk:""},a)}setRenderedCursorVisible(a,b){this.setCursorAutoSync(a,b)}setCursorAutoSync(a, +b){return this.int.call({command:p.Settings_CursorAutoSync,useSoftwareCursor:a},b)}}class Sb{constructor(a){this.int=a}setReportMode(a,b,c,e){return this.int.call({command:p.Settings_SetReport,alignment:a,playMode:b,moveInOtherView:c},e)}getReportMode(a){return this.int.call({command:p.Settings_GetReport},a)}setControlMode(a,b,c,e,d){return this.int.call({command:p.Settings_SetControl,speed:a,yawSpeed:b,rotateSelf:c,useFemale:e},d)}getControlMode(a){return this.int.call({command:p.Settings_GetControl}, +a)}setPostProcessMode(a,b){let c=1E3,e=1E3;0<=a.terrainGlobalAlpha&&1>=a.terrainGlobalAlpha&&(c=1E3*a.terrainGlobalAlpha);0<=a.osgbGlobalAlpha&&1>=a.osgbGlobalAlpha&&(e=1E3*a.osgbGlobalAlpha);return this.int.call({command:p.Settings_SetPostProcess,contrast:a.contrast,saturation:a.saturation,lensFlareIntensity:a.lensFlareIntensity,ambientIntensity:a.ambientIntensity,bloomIntensity:a.bloomIntensity,lutMode:a.lutMode,lutIntensity:a.lutIntensity,darkCorner:a.darkCorner,screenPercentage:a.screenPercentage, +terrainGlobalAlpha:c,terrainGlobalLitStatus:a.terrainGlobalLitStatus,osgbGlobalLitStatus:a.osgbGlobalLitStatus,osgbGlobalAlpha:e,antiAliasing:a.antiAliasing,tonemapper:a.tonemapper,postProcessEffects:a.postProcessEffects,dofMode:a.dofMode,wireThickness:a.wireThickness,receiveDecalMode:a.receiveDecalMode},b)}getPostProcessMode(a){return this.int.call({command:p.Settings_GetPostProcess},a)}setCameraMode(a,b,c,e,d){e&&"function"==typeof e&&(d=e);return this.int.call({command:p.Settings_SetCamera,nearClipPlane:a, +fovH:b,minCamHeight:c,maxCamHeight:e},d)}getCameraMode(a){return this.int.call({command:p.Settings_GetCamera},a)}setMapMode(a,b,c){b=b||{};return this.int.call({command:p.Settings_SetMapMode,mode:a,serviceType:b.serviceType||0,coordType:b.coordType||0,mapPoint:b.mapPoint||[0,0],longitude:b.longitude||0,latitude:b.latitude||0,cache:b.cache||":memory:",style:b.style||"mapbox://styles/mapbox/streets-v10",groundHeight:b.groundHeight||0,renderMode:b.renderMode||0,decalMode:b.decalMode||1,serverURL:b.serverURL, +coordOrder:b.coordOrder,maxLevel:b.maxLevel},c)}getMapMode(a){return this.int.call0(p.Settings_GetMapMode,a)}}class Tb{constructor(a){this.int=a}startPolygonClip(a,b,c){return this.int.call({command:p.Tools_StartPolygonClip,data:F({id:"0",coordinates:O(a),toggleImageCut:b})},c)}startPlaneClip(a,b,c,e,d){return this.int.call({command:p.Tools_StartPlaneClip,location:a,rotation:b,isShowPlane:c,isEdit:e},d)}startVolumeClip(a,b,c,e,d,h){return this.int.call({command:p.Tools_StartVolumeClip,bbox:a,rotation:d, +value:b,isShowPlane:c,isEdit:e},h)}updateVolumeClip(a,b,c,e,d,h){return this.int.call({command:p.Tools_UpdateVolumeClip,bbox:a,rotation:d,value:b,isShowPlane:c,isEdit:e},h)}stopClip(a){return this.stopPolygonClip(a)}stopPolygonClip(a){return this.int.call0(p.Tools_StopClip,a)}stopPlaneClip(a){return this.int.call({command:p.Tools_StopPlaneClip},a)}stopVolumeClip(a){return this.int.call({command:p.Tools_StopVolumeClip},a)}setMeasurement(a,b,c){b=b||{};return this.int.call({command:p.Tools_SetMeasurement, +type:a,pointSize:b.pointSize,textSize:b.textSize,textColor:E(b.textColor),pointColor:E(b.pointColor),lineColor:E(b.lineColor),areaColor:E(b.areaColor),showCoordinateText:b.showCoordinateText},c)}startMeasurement(a){return this.int.call0(p.Tools_StartMeasurement,a)}stopMeasurement(a){return this.int.call0(p.Tools_StopMeasurement,a)}lineIntersect(a,b,c){return this.int.call({command:p.Tools_LineIntersect,data:[{start:a,end:b}],highPrecision:!1,returnDetails:!0},c)}linesIntersect(a,b,c,e){return this.int.call({command:p.Tools_LineIntersect, +data:F(a),highPrecision:b,returnDetails:c},e)}startGeometryEdit(a,b,c){return this.int.call({command:p.Tools_StartGeometryEdit,id:a,type:b},c)}stopGeometryEdit(a){return this.int.call0(p.Tools_StopGeometryEdit,a)}startSkylineAnalysis(a,b){a=a||{};a.outlineColor&&(a.outlineColor=E(a.outlineColor));a.sceneColor&&(a.sceneColor=E(a.sceneColor));a.skylineColor&&(a.skylineColor=E(a.skylineColor));a.backgroundColor&&(a.backgroundColor=E(a.backgroundColor));if(a.tileLayers){a.tileLayers=F(a.tileLayers);for(let c of a.tileLayers)c.hasOwnProperty("color")&& +(c.color=E(c.color))}a.command=p.Tools_StartSkylineAnalysis;return this.int.call(a,b)}stopSkylineAnalysis(a){return this.int.call0(p.Tools_StopSkylineAnalysis,a)}exportSkyline(a,b,c,e){c=c||{};c.skylineColor&&(c.skylineColor=E(c.skylineColor));c.backgroundColor&&(c.backgroundColor=E(c.backgroundColor));if(c.tileLayers){c.tileLayers=F(c.tileLayers);for(let d of c.tileLayer)d.hasOwnProperty("color")&&(d.color=E(d.color))}return this.int.call({command:p.Tools_ExportSkyline,path:a,size:b,skylineColor:c.skylineColor, +backgroundColor:c.backgroundColor},e)}startViewshedAnalysis(a,b){a=a||{};a.visibleColor&&(a.visibleColor=E(a.visibleColor));a.invisibleColor&&(a.invisibleColor=E(a.invisibleColor));a.command=p.Tools_StartViewshedAnalysis;return this.int.call(a,b)}stopViewshedAnalysis(a){return this.int.call0(p.Tools_StopViewshedAnalysis,a)}startVisiblityAnalysis(a,b){a=a||{};a.visibleColor&&(a.visibleColor=E(a.visibleColor));a.invisibleColor&&(a.invisibleColor=E(a.invisibleColor));a.command=p.Tools_StartVisiblityAnalysis; +return this.int.call(a,b)}stopVisiblityAnalysis(a){return this.int.call0(p.Tools_StopVisiblityAnalysis,a)}startViewDomeAnalysis(a,b){a=a||{};a.visibleColor&&(a.visibleColor=E(a.visibleColor));a.invisibleColor&&(a.invisibleColor=E(a.invisibleColor));a.command=p.Tools_StartViewDomeAnalysis;return this.int.call(a,b)}stopViewDomeAnalysis(a){return this.int.call0(p.Tools_StopViewDomeAnalysis,a)}startCutFillAnalysis(a,b){a=a||{};a.cutLineColor&&(a.cutLineColor=E(a.cutLineColor));a.fillLineColor&&(a.fillLineColor= +E(a.fillLineColor));a.cutPointColor&&(a.cutPointColor=E(a.cutPointColor));a.fillPointColor&&(a.fillPointColor=E(a.fillPointColor));a.gridColor&&(a.gridColor=E(a.gridColor));a.command=p.Tools_StartCutFillAnalysis;return this.int.call(a,b)}stopCutFillAnalysis(a){return this.int.call0(p.Tools_StopCutFillAnalysis,a)}startSunshineAnalysis(a,b){var c=/^(0?[0-9]|1[0-9]|[2][0-3]):(0?[0-9]|[1-5][0-9])$/;if(null==a||void 0==a)console.error("\u53c2\u6570\u4e0d\u80fd\u4e3a\u7a7a");else{let e=a.startTime,d=a.endTime; +if(null==e||""==e||null==d||""==d)console.error("\u65f6\u95f4\u53c2\u6570\u683c\u5f0f\u4e0d\u6b63\u786e");else if(e.match(c)&&d.match(c))if(e.split(":"))if(a.startHour=parseInt(e.split(":")[0]),a.startMinute=parseInt(e.split(":")[1]),d.split(":"))if(a.endHour=parseInt(d.split(":")[0]),a.endMinute=parseInt(d.split(":")[1]),a.startHour>a.endHour)console.error("\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u7ed3\u675f\u65f6\u95f4");else{if(a.startHour==a.endHour){if(a.startMinute==a.endMinute){console.error("\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u7b49\u4e8e\u7ed3\u675f\u65f6\u95f4"); +return}if(a.startMinute>a.endMinute){console.error("\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u7ed3\u675f\u65f6\u95f4");return}}S(a.groundElevation)||(c=a.groundElevation,!isNaN(parseFloat(c))&&isFinite(c)&&(a.undersideHeight=a.groundElevation,delete a.groundElevation));a.command=p.Tools_StartSunshineAnalysis;return this.int.call(a,b)}else console.error("\u53c2\u6570endTime\u65f6\u95f4\u683c\u5f0f\u4e0d\u6b63\u786e");else console.error("\u53c2\u6570startTime\u65f6\u95f4\u683c\u5f0f\u4e0d\u6b63\u786e"); +else console.error("\u65f6\u95f4\u53c2\u6570\u683c\u5f0f\u4e0d\u6b63\u786e")}}stopSunshineAnalysis(a){return this.int.call0(p.Tools_StopSunshineAnalysis,a)}startTerrainSlopeAnalysis(a,b){a.command=p.Tools_StartTerrainSlopeAnalysis;return this.int.call(a,b)}stopTerrainSlopeAnalysis(a){return this.int.call0(p.Tools_StopTerrainSlopeAnalysis,a)}startContourLineAnalysis(a,b){a.command=p.Tools_StartContourLineAnalysis;return this.int.call(a,b)}stopContourLineAnalysis(a){return this.int.call0(p.Tools_StopContourLineAnalysis, +a)}startFloodFill(a,b){a=a||{};a.color&&(a.color=E(a.color));a.command=p.Tools_StartFloodFill;return this.int.call(a,b)}stopFloodFill(a){return this.int.call0(p.Tools_StopFloodFill,a)}replaceTextureByVideo(a,b,c){return this.int.call({command:p.Tools_ReplaceTexture,texturePackage:a,newTexture:b,type:1},c)}replaceTextureByImage(a,b,c){return this.int.call({command:p.Tools_ReplaceTexture,texturePackage:a,newTexture:b,type:2},c)}replaceTextureByUrl(a,b,c){return this.int.call({command:p.Tools_ReplaceTexture, +texturePackage:a,newTexture:b,type:3},c)}restoreTexture(a,b){return this.int.call({command:p.Tools_RestoreTexture,ids:F(a)},b)}showPanel(a,b,c){this.showAnalysisPanel(a,b,c)}hidePanel(a){this.hideAnalysisPanel(a)}showAnalysisPanel(a,b,c){return this.int.call({command:p.Tools_AnalysisPopupAttributes,type:a,position:b},c)}hideAnalysisPanel(a){return this.int.call({command:p.Tools_AnalysisCloseAttributes},a)}}class Ub{constructor(a){this.int=a}getParams(a){return this.int.call0(p.Weather_GetParams,a)}_setParam(a, +b){return this.int.call({command:p.Weather_SetParams,data:a},b)}setDateTime(a,b,c,e,d,h,g){return this.int.call({command:p.Weather_SetDate,year:a,month:b,day:c,hour:e,minute:d,daynightLoop:h},g)}getDateTime(a){return this.int.call0(p.Weather_GetDate,a)}simulateTime(a,b,c,e){let d=0,h=0,g=0,q=0;a instanceof Array?(0this.sendApi(c))}setHost(a,b){this.url=`ws://${a}:${b}`}connectWebSocket(){if(!this.player){this.log(`Connecting: ${this.url}`);if("undefined"==typeof window)this.websocket=new (require("ws"))(this.url);else{if(!("WebSocket"in window)){console.error("Not Support WebSocket!");return}this.websocket=new WebSocket(this.url)}this.websocket.onopen= +()=>this.onConnectionOpen();this.websocket.onmessage=a=>this.onConnectionMessage(a.data);this.websocket.onclose=a=>this.onConnectionClose(a);this.websocket.onerror=a=>this.onConnectionError(a)}}setEventCallback(a){this.options.onEvent=a}destroy(){this.isDestroyed=!0;this.player&&this.player.destroy();this.websocket&&(this.websocket.close(),this.websocket=null)}reset(a){return this.call0(p.Reset,a)}saveProject(a){return this.call0(p.SaveProject,a)}registerTick(a,b,c){b=b||{};"__execute__"!=a&&(b.func= +"tick");this.call({command:p.RegisterJsCommunication,id:this.tickMarkerId,url:a,func:b.func,x:b.x||4,y:b.y||4,width:b.width||400,height:b.height||300,visible:b.visible||!1},c)}removeTick(a){this.call({command:p.UnRegisterJsCommunication,ids:[this.tickMarkerId]},a)}showTickWindow(a,b){this.isCalledInCEF?ue.dtspoi.showtickwindow(a):a?this.registerTick("__show__",{},b):this.registerTick("",{},b)}executeJsInTickPage(a,b){this.registerTick("__execute__",{func:a},b)}getVersion(){return"5.4.0508"}initInterface(){this.camera= +new Mb(this);this.coord=new Nb(this);this.layers=this.infoTree=new Pb(this);this.ct=this.cameraTour=new jb(this);this.tl=this.tileLayer=new Hb(this);this.tag=new Gb(this);this.marker=new xb(this);this.marker3d=new yb(this);this.ctag=this.customTag=new nb(this);this.rp=this.radiationPoint=new Eb(this);this.cm=this.customMesh=new lb(this);this.wm=this.waterMesh=new Lb(this);this.waterFlowField=new Kb(this);this.wff=this.WaterFlowField;this.line=this.polyline=new Db(this);this.ol=this.odline=new zb(this); +this.p3d=this.polygon3d=new Cb(this);this.polygon=new Bb(this);this.hm=this.heatmap=new sb(this);this.hm3d=this.heatmap3d=new tb(this);this.beam=new ib(this);this.ha=this.highlightArea=new ub(this);this.co=this.customObject=new mb(this);this.vp=this.videoProjection=new Jb(this);this.panorama=new Ab(this);this.decal=new ob(this);this.dw=this.dynamicWater=new pb(this);this.ff=this.floodFill=new qb(this);this.c3d=this.cesium3DTileset=new kb(this);this.shapeFile=this.shp=this.shapeFileLayer=new Fb(this); +this.light=new wb(this);this.imagery=this.imageryLayer=new vb(this);this.geoJSON=this.geoJSONLayer=new rb(this);this.vc=this.vehicle=new Ib(this);this.misc=new Qb(this);this.tools=new Tb(this);this.settings=new Rb(this);this.weather=new Ub(this);this.eh=this.editHelper=new Ob(this);this.sp=this.settingsPanel=new Sb(this)}_getCallbackIndex(){return++this.callbackIndex}call0(a,b){return this.call({command:a},b)}call(a,b){if(!this.isConnected)return this.logWithColor("red","Not connected!"),b?void 0: +Promise.reject("Not connected!");if(void 0==a.command||a.command==p.None)return this.logWithColor("red","command is undefined or None"),b?void 0:Promise.reject("command is undefined or None");a.timestamp=Date.now();a.callbackIndex=this._getCallbackIndex();a.__command=p[a.command]||"Unknown";a.__version=this.getVersion();null===b&&(a.__noResponse=!0);let c=a.command+"_"+a.callbackIndex;b&&"function"==typeof b&&(this.callbackMap[c]=b);if(this.isCalledInCEF&&null===b)return delete a.__noResponse,this.callbackMap[c]= +null,this.sendApi(a),a;let e=JSON.stringify(a);this.log("");this.logWithColor("RoyalBlue",`Request: ${p[a.command]||"Unknown"}`,!0);this.logWithColor("green","\uff08"+(new Date(a.timestamp)).toLocaleTimeString()+"\uff09");this.logWithColor("gray",`${e}`);if(b||null===b)this.apiQueue.push(a);else return new Promise(d=>{this.callbackMap[c]=d;this.apiQueue.push(a)})}sendApi(a){this.isCalledInCEF?ue.dtspoi.execute(JSON.stringify(a)):this.player?this.player.sendApi(a):this.sendStringByWS(a)}sendStringByWS(a){if(a){a= +JSON.stringify(a);var b=a.length;if(16777216>=b)this.websocket.send(a);else{var c=Math.ceil(b/16777216),e=[];for(let d=0;dthis.savedCamera=b.camera)}}onReady(){if("function"==typeof this.options.onReady)this.options.onReady();this.call({command:p.Misc_GetVersion});if(this.player)this.player.onApiReady()}log(a,b,c){if("function"==typeof this.options.onLog)this.options.onLog(a,b,c)}logWithColor(a,b,c){this.log(b,c,a)}onConnectionOpen(){this.isConnected=!0;this.logWithColor("blue","Connected!")}onConnectionClose(a){this.isConnected=!1;this.logWithColor("red",`Connection closed! code: ${a.code|| +"-"}, reason: ${1006==a.code?H.getString("Disconnect"):a.reason||a.message||"-"}`);this.log("");this.logWithColor("SpringGreen","Reconnecting...");this.isDestroyed||this.player||this.connectWebSocket()}onConnectionError(a){console.error("WebSocket error observed")}onConnectionMessage(a,b){a=a.replace(/~!@~!@~!@/g,'\\"');this.log("");let c=null;try{c=JSON.parse(a)}catch(d){this.isCalledInCEF?(document.writeln(d.message),document.writeln("
"),document.writeln(a)):(console.error(d.message),this.log("Response: [Unknown]")); +return}if(c.command==p.Misc_GetVersion){this.misc.apiVersionServer=c.version||c.versionType;if("5.4"!=this.misc.apiVersionServer){var e=H.getString("VersionMismatch").format("5.4",this.misc.apiVersionServer);console.warn(e);"undefined"!=typeof window&&alert(e)}if("function"==typeof this.options.onApiVersion)this.options.onApiVersion(this.misc.apiVersionServer)}if(c.command)this.apiQueue.callNext(c.callbackIndex),e=Date.now()-c.timestamp,this.logWithColor("RoyalBlue",`Response: ${p[c.command]||"Unknown"}`, +!0),this.logWithColor("green",` (${H.getString("TimeConsuming")}${e}ms)`),this.logWithColor("gray",`${H.getString("RequestTime")}${(new Date(c.timestamp)).toLocaleTimeString()}`,!0),this.logWithColor("gray",` ${H.getString("ResponseTime")}${(new Date(Date.now())).toLocaleTimeString()}`,!0),this.logWithColor("gray",` ${H.getString("MessageLength")}${a.length}`),a=c.command+"_"+c.callbackIndex,(e=this.callbackMap[a])?(e(c),delete this.callbackMap[a]):null===e&&"function"===typeof tick_next&&tick_next(c, +b);else if(c.eventtype)if(this.log("Response: Event"),"CompleteInitialization"==c.eventtype)this.log("The initialization is complete, now you can call the interfaces in onReady callback function."),this.initialCameraPosition=c.InitialCamera,c.ResourcesPath&&(this.resourcesPath=c.ResourcesPath,this.log("ResourcesPath:"+this.resourcesPath)),this.onReady();else if("NodeConfiguration"==c.eventtype)this.resourcesPath=c.ResourcesPath,this.log("ResourcesPath:"+this.resourcesPath);else if("MainThreadBusy"== +c.eventtype)this.apiQueue.onMainThreadBusy(c),this.player&&this.player.onMainThreadBusy(c);else{if("function"==typeof this.options.onEvent)this.options.onEvent(c)}else this.log("Response: [Unknown]");b=JSON.stringify(c,(d,h)=>h instanceof Array?JSON.stringify(h):h,"\t").replace(/"\[/g,"[").replace(/\]"/g,"]").replace(/\\"/g,'"').replace(/""/g,'"');this.logWithColor("gray",b)}quit(){return this.call0(p.Quit)}test(a,b,c){return this.call({command:p.SimulateTest__,type:a,int32Val:b},c)}}const V={WS_Disconnected:0, +WS_Connecting:1,WS_Connected:2,RTC_Opened:3,Video_LoadedMetaData:4,OnReady:5},da={StartingProcess:0,CheckingBusy:1,ConfirmBusy:2,ProcessStartFailed:3,ProcessStarted:4,LoadingProject:5,ProjectLoaded:6};class Vb{constructor(){"undefined"!=typeof navigator&&(this.isUnix="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform||-1!=navigator.platform.indexOf("Linux"),this.isChrome=-1!=navigator.userAgent.indexOf("Chrome"),this.isMobileDevice= +/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),this.isIOSDevice=/iPhone|iPad|iPod/i.test(navigator.userAgent),this.isSafari=/Safari/i.test(navigator.userAgent),this.isAndroidDevice=/Android/i.test(navigator.userAgent),this.isInWeixinBrowser)}fullscreen(a){a&&(a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen:a.webkitRequestFullscreen&&a.webkitRequestFullscreen())}exitFullscreen(){document.exitFullscreen? +document.exitFullscreen():document.msExitFullscreen||(document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen())}isFullscreen(){return document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen}isFunction(a){return"function"==typeof a}}var R=new Vb;const sa={abnormal:1006,invalid_message:1008,no_free_instance:1013,out_of_control:4E3,instance_disconnected:4001,instance_not_found:4002,instance_start_failed:4003,webrtc_connection_error:4004, +one_client_allowed:4005,timeout:4006,iid_required:4007,locked:4008,invalid_project:4009,kicked:4100,syncing_data:4101,instance_killed_by_user:4102,invalid_password:4103,nodeservice_stopped:4105,instance_is_busy:4107,ip_not_authorized:4108,invalid_token:4109};aa.EMPTY_OBJECT=Object.freeze({});class ka{}ka.doParamsCompatibility=a=>{a.apiOptions=a.apiOptions||{};a.events=a.events||{};a.ui=a.ui||{};"undefined"!=typeof a.showMarker&&(a.showStatus=a.showMarker,delete a.showMarker);"undefined"!=typeof a.actionEventHander&& +(a.onaction=a.actionEventHander,delete a.actionEventHander);"undefined"!=typeof a.useBuiltinCursor&&(a.useBuiltinCursors=a.useBuiltinCursor,delete a.useBuiltinCursor);"undefined"!=typeof a.keyEventReceiver&&(a.keyEventTarget=a.keyEventReceiver,delete a.keyEventReceiver);"undefined"!=typeof a.ui.debugTouchPanel&&(a.ui.debugEventsPanel=a.ui.debugTouchPanel,delete a.ui.debugTouchPanel);var b=(c,e)=>{let d=a[c];d&&(a.events[e]=d,delete a[c])};b("onclose","onConnClose");b("onloaded","onVideoLoaded");b("onvideostatus", +"onRtcStatsReport");b("onaction","mouseKeyListener");b=(c,e)=>{let d=a.events.mouseKeyListener[c];d&&(a.events.mouseKeyListener[e]=d,delete a.events.mouseKeyListener[c])};a.events.mouseKeyListener&&(b("onmouseenter","onMouseEnter"),b("onmouseleave","onMouseLeave"),b("onmousemove","onMouseMove"),b("onmousedown","onMouseDown"),b("onmouseup","onMouseUp"),b("onkeydown","onKeyDown"),b("onkeyup","onKeyUp"),b("onkeypress","onKeyPress"));b=(c,e)=>{"undefined"!=typeof a[c]&&(a.ui[e]=a[c],delete a[c])};b("showStartupInfo", +"startupInfo");b("showStatus","statusButton");b("showFullscreenButton","fullscreenButton");b("showHomeButton","homeButton");b("showTaskList","taskListBar")};ka.setDefaultParamValues=a=>{a.keyEventTarget=aa(a.keyEventTarget,"video");a.useBuiltinCursors=aa(a.useBuiltinCursors,!0);a.ui.startupInfo=aa(a.ui.startupInfo,!0);a.ui.statusIndicator=aa(a.ui.statusIndicator,!0);a.ui.statusButton=aa(a.ui.statusButton,!1);a.ui.fullscreenButton=aa(a.ui.fullscreenButton,!1);a.ui.homeButton=aa(a.ui.homeButton,!1); +a.ui.taskListBar=aa(a.ui.taskListBar,1);a.ui.debugEventsPanel=aa(a.ui.debugEventsPanel,!1);a.offer=1};ka.processParams=a=>{ka.doParamsCompatibility(a);ka.setDefaultParamValues(a)};class Wb{constructor(a){this.options=a;this.checkParamsMap=new Map}resetInteractTimestamp(a){this.timeOfLastInteraction=a}connect(a){window.WebSocket=window.WebSocket||window.MozWebSocket;window.WebSocket?(this.websocket=new WebSocket(a),this.websocket.onopen=()=>{if(this.options.onopen)this.options.onopen();setInterval(()=> +{this.timeOfLastInteraction&&this.send({type:"ping",time:this.timeOfLastInteraction})},3E3)},this.websocket.onmessage=b=>{if(b=JSON.parse(b.data)){switch(b.type){case "checkParamsResult":this.onCheckParamsResponse(b);return;case "detectResponse":this.send(b);return}if(this.options.onmessage)this.options.onmessage(b)}},this.websocket.onerror=b=>{if(this.options.onerror)this.options.onerror(b)},this.websocket.onclose=b=>{this.websocket=void 0;if(this.options.onclose)this.options.onclose(b)}):alert("Your browser does not support WebSocket")}isOpened(){return this.websocket&& +1===this.websocket.readyState}send(a){a&&this.isOpened()&&this.websocket.send(JSON.stringify(a))}close(a){console.log(`call SignallingConnection.close: ${a||" "}`);this.isOpened()&&(this.websocket.close(a),this.websocket=null)}sendReady(){this.send({type:"ready"})}sendCandidate(a){a.candidate&&a.candidate.candidate&&this.send({type:"iceCandidate",candidate:a.candidate})}sendOffer(a,b){this.send({type:"offer",sdp:a,hasVideo:b})}updateParams(a){this.send({type:"updateParams",data:a})}checkParams(a){a.timestamp= +Date.now();return new Promise(b=>{this.checkParamsMap[a.timestamp]=b;this.send({type:"checkParams",data:a});this.timerOfCheckParams=setTimeout(()=>{let c=this.checkParamsMap[a.timestamp];c&&(delete this.checkParamsMap[a.timestamp],c(null))},1E3)})}onCheckParamsResponse(a){let b=this.checkParamsMap[a.timestamp];b&&(clearTimeout(this.timerOfCheckParams),delete this.checkParamsMap[a.timestamp],b(a))}}(function(a){"object"===typeof v&&"undefined"!==typeof module?module.exports=a():"function"===typeof define&& +define.amd?define([],a):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).adapter=a()})(function(){return function(){function a(b,c,e){function d(q,k){if(!c[q]){if(!b[q]){var f="function"==typeof require&&require;if(!k&&f)return f(q,!0);if(h)return h(q,!0);k=Error("Cannot find module '"+q+"'");throw k.code="MODULE_NOT_FOUND",k;}k=c[q]={exports:{}};b[q][0].call(k.exports,function(l){return d(b[q][1][l]||l)},k,k.exports,a,b,c,e)}return c[q].exports} +for(var h="function"==typeof require&&require,g=0;gl.version&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){var y=f.RTCPeerConnection.prototype[r],u=e({},r,function(){arguments[0]=new ("addIceCandidate"=== +r?f.RTCIceCandidate:f.RTCSessionDescription)(arguments[0]);return y.apply(this,arguments)});f.RTCPeerConnection.prototype[r]=u[r]});var w=f.RTCPeerConnection.prototype.addIceCandidate;f.RTCPeerConnection.prototype.addIceCandidate=function(){return t||arguments[0]?78>l.version&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():w.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}};c.fixNegotiationNeeded=function(f){var l=k.detectBrowser(f);k.wrapPeerConnectionEvent(f, +"negotiationneeded",function(t){var w=t.target;if(!(72>l.version||w.getConfiguration&&"plan-b"===w.getConfiguration().sdpSemantics)||"stable"===w.signalingState)return t})};var k=function(f){if(f&&f.__esModule)return f;var l={};if(null!=f)for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&(l[t]=f[t]);l.default=f;return l}(a("../utils.js"))},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia= +function(e,d){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||("function"!==typeof d?console.error("shimGetDisplayMedia: getSourceId argument is not a function"):e.navigator.mediaDevices.getDisplayMedia=function(h){return d(h).then(function(g){var q=h.video&&h.video.width,k=h.video&&h.video.height;h.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:g,maxFrameRate:h.video&&h.video.frameRate||3}};q&&(h.video.mandatory.maxWidth=q);k&& +(h.video.mandatory.maxHeight=k);return e.navigator.mediaDevices.getUserMedia(h)})})}},{}],5:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"===typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};c.shimGetUserMedia=function(g){var q=g&&g.navigator;if(q.mediaDevices){var k=d.detectBrowser(g),f=function(r){if("object"!==("undefined"=== +typeof r?"undefined":e(r))||r.mandatory||r.optional)return r;var y={};Object.keys(r).forEach(function(u){if("require"!==u&&"advanced"!==u&&"mediaSource"!==u){var A="object"===e(r[u])?r[u]:{ideal:r[u]};void 0!==A.exact&&"number"===typeof A.exact&&(A.min=A.max=A.exact);var m=function(x,z){return x?x+z.charAt(0).toUpperCase()+z.slice(1):"deviceId"===z?"sourceId":z};if(void 0!==A.ideal){y.optional=y.optional||[];var n={};"number"===typeof A.ideal?(n[m("min",u)]=A.ideal,y.optional.push(n),n={},n[m("max", +u)]=A.ideal):n[m("",u)]=A.ideal;y.optional.push(n)}void 0!==A.exact&&"number"!==typeof A.exact?(y.mandatory=y.mandatory||{},y.mandatory[m("",u)]=A.exact):["min","max"].forEach(function(x){void 0!==A[x]&&(y.mandatory=y.mandatory||{},y.mandatory[m(x,u)]=A[x])})}});r.advanced&&(y.optional=(y.optional||[]).concat(r.advanced));return y},l=function(r,y){if(61<=k.version)return y(r);if((r=JSON.parse(JSON.stringify(r)))&&"object"===e(r.audio)){var u=function(n,x,z){x in n&&!(z in n)&&(n[z]=n[x],delete n[x])}; +r=JSON.parse(JSON.stringify(r));u(r.audio,"autoGainControl","googAutoGainControl");u(r.audio,"noiseSuppression","googNoiseSuppression");r.audio=f(r.audio)}if(r&&"object"===e(r.video)){var A=r.video.facingMode;A=A&&("object"===("undefined"===typeof A?"undefined":e(A))?A:{ideal:A});u=66>k.version;if(!(!A||"user"!==A.exact&&"environment"!==A.exact&&"user"!==A.ideal&&"environment"!==A.ideal||q.mediaDevices.getSupportedConstraints&&q.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete r.video.facingMode; +var m=void 0;if("environment"===A.exact||"environment"===A.ideal)m=["back","rear"];else if("user"===A.exact||"user"===A.ideal)m=["front"];if(m)return q.mediaDevices.enumerateDevices().then(function(n){n=n.filter(function(z){return"videoinput"===z.kind});var x=n.find(function(z){return m.some(function(B){return z.label.toLowerCase().includes(B)})});!x&&n.length&&m.includes("back")&&(x=n[n.length-1]);x&&(r.video.deviceId=A.exact?{exact:x.deviceId}:{ideal:x.deviceId});r.video=f(r.video);h("chrome: "+ +JSON.stringify(r));return y(r)})}r.video=f(r.video)}h("chrome: "+JSON.stringify(r));return y(r)},t=function(r){return 64<=k.version?r:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError", +ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[r.name]||r.name,message:r.message,constraint:r.constraint||r.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};q.getUserMedia=function(r,y,u){l(r,function(A){q.webkitGetUserMedia(A,y,function(m){u&&u(t(m))})})}.bind(q);if(q.mediaDevices.getUserMedia){var w=q.mediaDevices.getUserMedia.bind(q.mediaDevices);q.mediaDevices.getUserMedia=function(r){return l(r,function(y){return w(y).then(function(u){if(y.audio&& +!u.getAudioTracks().length||y.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(function(A){A.stop()}),new DOMException("","NotFoundError");return u},function(u){return Promise.reject(t(u))})})}}}};var d=function(g){if(g&&g.__esModule)return g;var q={};if(null!=g)for(var k in g)Object.prototype.hasOwnProperty.call(g,k)&&(q[k]=g[k]);q.default=g;return q}(a("../utils.js")),h=d.log},{"../utils.js":15}],6:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});var e="function"=== +typeof Symbol&&"symbol"===typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"===typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};c.shimRTCIceCandidate=function(g){if(g.RTCIceCandidate&&!(g.RTCIceCandidate&&"foundation"in g.RTCIceCandidate.prototype)){var q=g.RTCIceCandidate;g.RTCIceCandidate=function(k){"object"===("undefined"===typeof k?"undefined":e(k))&&k.candidate&&0===k.candidate.indexOf("a=")&&(k=JSON.parse(JSON.stringify(k)),k.candidate= +k.candidate.substr(2));if(k.candidate&&k.candidate.length){var f=new q(k);k=d.default.parseCandidate(k.candidate);var l=Object.assign(f,k);l.toJSON=function(){return{candidate:l.candidate,sdpMid:l.sdpMid,sdpMLineIndex:l.sdpMLineIndex,usernameFragment:l.usernameFragment}};return l}return new q(k)};g.RTCIceCandidate.prototype=q.prototype;h.wrapPeerConnectionEvent(g,"icecandidate",function(k){k.candidate&&Object.defineProperty(k,"candidate",{value:new g.RTCIceCandidate(k.candidate),writable:"false"}); +return k})}};c.shimMaxMessageSize=function(g){if(g.RTCPeerConnection){var q=h.detectBrowser(g);"sctp"in g.RTCPeerConnection.prototype||Object.defineProperty(g.RTCPeerConnection.prototype,"sctp",{get:function(){return"undefined"===typeof this._sctp?null:this._sctp}});var k=function(r){if(!r||!r.sdp)return!1;r=d.default.splitSections(r.sdp);r.shift();return r.some(function(y){return(y=d.default.parseMLine(y))&&"application"===y.kind&&-1!==y.protocol.indexOf("SCTP")})},f=function(r){r=r.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/); +if(null===r||2>r.length)return-1;r=parseInt(r[1],10);return r!==r?-1:r},l=function(r){var y=65536;"firefox"===q.browser&&(y=57>q.version?-1===r?16384:2147483637:60>q.version?57===q.version?65535:65536:2147483637);return y},t=function(r,y){var u=65536;"firefox"===q.browser&&57===q.version&&(u=65535);r=d.default.matchPrefix(r.sdp,"a=max-message-size:");0l.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+l.sctp.maxMessageSize+" bytes)");return t.apply(f,arguments)}}if(g.RTCPeerConnection&&"createDataChannel"in g.RTCPeerConnection.prototype){var k=g.RTCPeerConnection.prototype.createDataChannel; +g.RTCPeerConnection.prototype.createDataChannel=function(){var f=k.apply(this,arguments);q(f,this);return f};h.wrapPeerConnectionEvent(g,"datachannel",function(f){q(f.channel,f.target);return f})}};c.shimConnectionState=function(g){if(g.RTCPeerConnection&&!("connectionState"in g.RTCPeerConnection.prototype)){var q=g.RTCPeerConnection.prototype;Object.defineProperty(q,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState}, +enumerable:!0,configurable:!0});Object.defineProperty(q,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(k){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange);k&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=k)},enumerable:!0,configurable:!0});["setLocalDescription","setRemoteDescription"].forEach(function(k){var f=q[k]; +q[k]=function(){this._connectionstatechangepoly||(this._connectionstatechangepoly=function(l){var t=l.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var w=new Event("connectionstatechange",l);t.dispatchEvent(w)}return l},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly));return f.apply(this,arguments)}})}};c.removeAllowExtmapMixed=function(g){if(g.RTCPeerConnection){var q=h.detectBrowser(g);if(!("chrome"===q.browser&& +71<=q.version||"safari"===q.browser&&605<=q.version)){var k=g.RTCPeerConnection.prototype.setRemoteDescription;g.RTCPeerConnection.prototype.setRemoteDescription=function(f){f&&f.sdp&&-1!==f.sdp.indexOf("\na=extmap-allow-mixed")&&(f.sdp=f.sdp.split("\n").filter(function(l){return"a=extmap-allow-mixed"!==l.trim()}).join("\n"));return k.apply(this,arguments)}}}};var d=(b=a("sdp"))&&b.__esModule?b:{default:b},h=function(g){if(g&&g.__esModule)return g;var q={};if(null!=g)for(var k in g)Object.prototype.hasOwnProperty.call(g, +k)&&(q[k]=g[k]);q.default=g;return q}(a("./utils"))},{"./utils":15,sdp:17}],7:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=c.shimGetUserMedia=void 0;var e=a("./getusermedia");Object.defineProperty(c,"shimGetUserMedia",{enumerable:!0,get:function(){return e.shimGetUserMedia}});var d=a("./getdisplaymedia");Object.defineProperty(c,"shimGetDisplayMedia",{enumerable:!0,get:function(){return d.shimGetDisplayMedia}});c.shimPeerConnection=function(k){var f=h.detectBrowser(k); +if(k.RTCIceGatherer&&(k.RTCIceCandidate||(k.RTCIceCandidate=function(w){return w}),k.RTCSessionDescription||(k.RTCSessionDescription=function(w){return w}),15025>f.version)){var l=Object.getOwnPropertyDescriptor(k.MediaStreamTrack.prototype,"enabled");Object.defineProperty(k.MediaStreamTrack.prototype,"enabled",{set:function(w){l.set.call(this,w);var r=new Event("enabled");r.enabled=w;this.dispatchEvent(r)}})}!k.RTCRtpSender||"dtmf"in k.RTCRtpSender.prototype||Object.defineProperty(k.RTCRtpSender.prototype, +"dtmf",{get:function(){void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new k.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null));return this._dtmf}});k.RTCDtmfSender&&!k.RTCDTMFSender&&(k.RTCDTMFSender=k.RTCDtmfSender);var t=(0,q.default)(k,f.version);k.RTCPeerConnection=function(w){w&&w.iceServers&&(w.iceServers=(0,g.filterIceServers)(w.iceServers,f.version),h.log("ICE servers after filtering:",w.iceServers));return new t(w)};k.RTCPeerConnection.prototype=t.prototype};c.shimReplaceTrack= +function(k){!k.RTCRtpSender||"replaceTrack"in k.RTCRtpSender.prototype||(k.RTCRtpSender.prototype.replaceTrack=k.RTCRtpSender.prototype.setTrack)};var h=function(k){if(k&&k.__esModule)return k;var f={};if(null!=k)for(var l in k)Object.prototype.hasOwnProperty.call(k,l)&&(f[l]=k[l]);f.default=k;return f}(a("../utils")),g=a("./filtericeservers"),q=(a=a("rtcpeerconnection-shim"))&&a.__esModule?a:{default:a}},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}], +8:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.filterIceServers=function(d,h){var g=!1;d=JSON.parse(JSON.stringify(d));return d.filter(function(q){if(q&&(q.urls||q.url)){var k=q.urls||q.url;q.url&&!q.urls&&e.deprecated("RTCIceServer.url","RTCIceServer.urls");var f="string"===typeof k;f&&(k=[k]);k=k.filter(function(l){return 0===l.indexOf("stun:")?!1:(l=l.startsWith("turn")&&!l.startsWith("turn:[")&&l.includes("transport=udp"))&&!g?g=!0:l&&!g});delete q.url;q.urls=f?k[0]:k;return!!k.length}})}; +var e=function(d){if(d&&d.__esModule)return d;var h={};if(null!=d)for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(h[g]=d[g]);h.default=d;return h}(a("../utils"))},{"../utils":15}],9:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=function(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&!(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)&&(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator))}}, +{}],10:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetUserMedia=function(e){e=e&&e.navigator;var d=function(g){return{name:{PermissionDeniedError:"NotAllowedError"}[g.name]||g.name,message:g.message,constraint:g.constraint,toString:function(){return this.name}}},h=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(g){return h(g).catch(function(q){return Promise.reject(d(q))})}}},{}],11:[function(a,b,c){function e(k,f,l){f in k?Object.defineProperty(k, +f,{value:l,enumerable:!0,configurable:!0,writable:!0}):k[f]=l;return k}Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=c.shimGetUserMedia=void 0;var d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"===typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},h=a("./getusermedia");Object.defineProperty(c,"shimGetUserMedia",{enumerable:!0,get:function(){return h.shimGetUserMedia}}); +var g=a("./getdisplaymedia");Object.defineProperty(c,"shimGetDisplayMedia",{enumerable:!0,get:function(){return g.shimGetDisplayMedia}});c.shimOnTrack=function(k){"object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCTrackEvent&&"receiver"in k.RTCTrackEvent.prototype&&!("transceiver"in k.RTCTrackEvent.prototype)&&Object.defineProperty(k.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})};c.shimPeerConnection=function(k){var f=q.detectBrowser(k);if("object"=== +("undefined"===typeof k?"undefined":d(k))&&(k.RTCPeerConnection||k.mozRTCPeerConnection)){!k.RTCPeerConnection&&k.mozRTCPeerConnection&&(k.RTCPeerConnection=k.mozRTCPeerConnection);53>f.version&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){var y=k.RTCPeerConnection.prototype[r],u=e({},r,function(){arguments[0]=new ("addIceCandidate"===r?k.RTCIceCandidate:k.RTCSessionDescription)(arguments[0]);return y.apply(this,arguments)});k.RTCPeerConnection.prototype[r]= +u[r]});if(68>f.version){var l=k.RTCPeerConnection.prototype.addIceCandidate;k.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():l.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var t={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},w=k.RTCPeerConnection.prototype.getStats;k.RTCPeerConnection.prototype.getStats= +function(){var r=Array.prototype.slice.call(arguments),y=r[1],u=r[2];return w.apply(this,[r[0]||null]).then(function(A){if(53>f.version&&!y)try{A.forEach(function(m){m.type=t[m.type]||m.type})}catch(m){if("TypeError"!==m.name)throw m;A.forEach(function(n,x){A.set(x,Object.assign({},n,{type:t[n.type]||n.type}))})}return A}).then(y,u)}}};c.shimSenderGetStats=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection&&k.RTCRtpSender&&!(k.RTCRtpSender&&"getStats"in k.RTCRtpSender.prototype)){var f= +k.RTCPeerConnection.prototype.getSenders;f&&(k.RTCPeerConnection.prototype.getSenders=function(){var t=this,w=f.apply(this,[]);w.forEach(function(r){return r._pc=t});return w});var l=k.RTCPeerConnection.prototype.addTrack;l&&(k.RTCPeerConnection.prototype.addTrack=function(){var t=l.apply(this,arguments);t._pc=this;return t});k.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}};c.shimReceiverGetStats=function(k){if("object"===("undefined"=== +typeof k?"undefined":d(k))&&k.RTCPeerConnection&&k.RTCRtpSender&&!(k.RTCRtpSender&&"getStats"in k.RTCRtpReceiver.prototype)){var f=k.RTCPeerConnection.prototype.getReceivers;f&&(k.RTCPeerConnection.prototype.getReceivers=function(){var l=this,t=f.apply(this,[]);t.forEach(function(w){return w._pc=l});return t});q.wrapPeerConnectionEvent(k,"track",function(l){l.receiver._pc=l.srcElement;return l});k.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}};c.shimRemoveStream= +function(k){!k.RTCPeerConnection||"removeStream"in k.RTCPeerConnection.prototype||(k.RTCPeerConnection.prototype.removeStream=function(f){var l=this;q.deprecated("removeStream","removeTrack");this.getSenders().forEach(function(t){t.track&&f.getTracks().includes(t.track)&&l.removeTrack(t)})})};c.shimRTCDataChannel=function(k){k.DataChannel&&!k.RTCDataChannel&&(k.RTCDataChannel=k.DataChannel)};c.shimAddTransceiver=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection){var f= +k.RTCPeerConnection.prototype.addTransceiver;f&&(k.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var l=arguments[1],t=l&&"sendEncodings"in l;t&&l.sendEncodings.forEach(function(y){if("rid"in y&&!/^[a-z0-9]{0,16}$/i.test(y.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in y&&!(1<=parseFloat(y.scaleResolutionDownBy)))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in y&&!(0<=parseFloat(y.maxFramerate)))throw new RangeError("max_framerate must be >= 0.0"); +});var w=f.apply(this,arguments);if(t){var r=w.sender;t=r.getParameters();"encodings"in t||(t.encodings=l.sendEncodings,r.sendEncodings=l.sendEncodings,this.setParametersPromises.push(r.setParameters(t).then(function(){delete r.sendEncodings}).catch(function(){delete r.sendEncodings})))}return w})}};c.shimGetParameters=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCRtpSender){var f=k.RTCRtpSender.prototype.getParameters;f&&(k.RTCRtpSender.prototype.getParameters=function(){var l= +f.apply(this,arguments);return"sendEncodings"in this?Object.assign({},{encodings:this.sendEncodings},l):l})}};c.shimCreateOffer=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection){var f=k.RTCPeerConnection.prototype.createOffer;k.RTCPeerConnection.prototype.createOffer=function(){var l=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return f.apply(l,t)}).finally(function(){l.setParametersPromises= +[]}):f.apply(this,arguments)}}};c.shimCreateAnswer=function(k){if("object"===("undefined"===typeof k?"undefined":d(k))&&k.RTCPeerConnection){var f=k.RTCPeerConnection.prototype.createAnswer;k.RTCPeerConnection.prototype.createAnswer=function(){var l=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return f.apply(l,t)}).finally(function(){l.setParametersPromises=[]}):f.apply(this,arguments)}}};var q=function(k){if(k&& +k.__esModule)return k;var f={};if(null!=k)for(var l in k)Object.prototype.hasOwnProperty.call(k,l)&&(f[l]=k[l]);f.default=k;return f}(a("../utils"))},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});c.shimGetDisplayMedia=function(e,d){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=function(h){if(!h||!h.video)return h=new DOMException("getDisplayMedia without video constraints is undefined"), +h.name="NotFoundError",h.code=8,Promise.reject(h);!0===h.video?h.video={mediaSource:d}:h.video.mediaSource=d;return e.navigator.mediaDevices.getUserMedia(h)})}},{}],13:[function(a,b,c){Object.defineProperty(c,"__esModule",{value:!0});var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"===typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};c.shimGetUserMedia=function(h){var g=d.detectBrowser(h), +q=h&&h.navigator;h=h&&h.MediaStreamTrack;q.getUserMedia=function(w,r,y){d.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia");q.mediaDevices.getUserMedia(w).then(r,y)};if(!(55=t&&parseInt(f[t],10)}function d(f){return"[object Object]"!==Object.prototype.toString.call(f)? +f:Object.keys(f).reduce(function(l,t){var w="[object Object]"===Object.prototype.toString.call(f[t]),r=w?d(f[t]):f[t];w=w&&!Object.keys(r).length;if(void 0===r||w)return l;w=Object;var y=w.assign,u={};t in u?Object.defineProperty(u,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):u[t]=r;return y.call(w,l,u)},{})}function h(f,l,t){l&&!t.has(l.id)&&(t.set(l.id,l),Object.keys(l).forEach(function(w){w.endsWith("Id")?h(f,f.get(l[w]),t):w.endsWith("Ids")&&l[w].forEach(function(r){h(f,f.get(r),t)})}))} +Object.defineProperty(c,"__esModule",{value:!0});var g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};c.extractVersion=e;c.wrapPeerConnectionEvent=function(f,l,t){if(f.RTCPeerConnection){f=f.RTCPeerConnection.prototype;var w=f.addEventListener;f.addEventListener=function(y,u){if(y!==l)return w.apply(this,arguments);var A=function(m){(m=t(m))&& +(u.handleEvent?u.handleEvent(m):u(m))};this._eventMap=this._eventMap||{};this._eventMap[l]||(this._eventMap[l]=new Map);this._eventMap[l].set(u,A);return w.apply(this,[y,A])};var r=f.removeEventListener;f.removeEventListener=function(y,u){if(y!==l||!this._eventMap||!this._eventMap[l]||!this._eventMap[l].has(u))return r.apply(this,arguments);var A=this._eventMap[l].get(u);this._eventMap[l].delete(u);0===this._eventMap[l].size&&delete this._eventMap[l];0===Object.keys(this._eventMap).length&&delete this._eventMap; +return r.apply(this,[y,A])};Object.defineProperty(f,"on"+l,{get:function(){return this["_on"+l]},set:function(y){this["_on"+l]&&(this.removeEventListener(l,this["_on"+l]),delete this["_on"+l]);y&&this.addEventListener(l,this["_on"+l]=y)},enumerable:!0,configurable:!0})}};c.disableLog=function(f){return"boolean"!==typeof f?Error("Argument type: "+("undefined"===typeof f?"undefined":g(f))+". Please use a boolean."):(q=f)?"adapter.js logging disabled":"adapter.js logging enabled"};c.disableWarnings= +function(f){if("boolean"!==typeof f)return Error("Argument type: "+("undefined"===typeof f?"undefined":g(f))+". Please use a boolean.");k=!f;return"adapter.js deprecation warnings "+(f?"disabled":"enabled")};c.log=function(){"object"!==("undefined"===typeof window?"undefined":g(window))||q||"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)};c.deprecated=function(f,l){k&&console.warn(f+" is deprecated, please use "+l+" instead.")};c.detectBrowser=function(f){var l= +f.navigator,t={browser:null,version:null};if("undefined"===typeof f||!f.navigator)return t.browser="Not a browser.",t;l.mozGetUserMedia?(t.browser="firefox",t.version=e(l.userAgent,/Firefox\/(\d+)\./,1)):l.webkitGetUserMedia||!1===f.isSecureContext&&f.webkitRTCPeerConnection&&!f.RTCIceGatherer?(t.browser="chrome",t.version=e(l.userAgent,/Chrom(e|ium)\/(\d+)\./,2)):l.mediaDevices&&l.userAgent.match(/Edge\/(\d+).(\d+)$/)?(t.browser="edge",t.version=e(l.userAgent,/Edge\/(\d+).(\d+)$/,2)):f.RTCPeerConnection&& +l.userAgent.match(/AppleWebKit\/(\d+)\./)?(t.browser="safari",t.version=e(l.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=f.RTCRtpTransceiver&&"currentDirection"in f.RTCRtpTransceiver.prototype):t.browser="Not a supported browser.";return t};c.compactObject=d;c.walkStats=h;c.filterStats=function(f,l,t){var w=t?"outbound-rtp":"inbound-rtp",r=new Map;if(null===l)return r;var y=[];f.forEach(function(u){"track"===u.type&&u.trackIdentifier===l.id&&y.push(u)});y.forEach(function(u){f.forEach(function(A){A.type=== +w&&A.trackId===u.id&&h(f,A,r)})});return r};var q=!0,k=!0},{}],16:[function(a,b,c){function e(l,t,w,r,y){t=f.writeRtpDescription(l.kind,t);t+=f.writeIceParameters(l.iceGatherer.getLocalParameters());t+=f.writeDtlsParameters(l.dtlsTransport.getLocalParameters(),"offer"===w?"actpass":y||"active");t+="a=mid:"+l.mid+"\r\n";t=l.rtpSender&&l.rtpReceiver?t+"a=sendrecv\r\n":l.rtpSender?t+"a=sendonly\r\n":l.rtpReceiver?t+"a=recvonly\r\n":t+"a=inactive\r\n";l.rtpSender&&(w=l.rtpSender._initialTrackId||l.rtpSender.track.id, +l.rtpSender._initialTrackId=w,r="msid:"+(r?r.id:"-")+" "+w+"\r\n",t=t+("a="+r)+("a=ssrc:"+l.sendEncodingParameters[0].ssrc+" "+r),l.sendEncodingParameters[0].rtx&&(t+="a=ssrc:"+l.sendEncodingParameters[0].rtx.ssrc+" "+r,t+="a=ssrc-group:FID "+l.sendEncodingParameters[0].ssrc+" "+l.sendEncodingParameters[0].rtx.ssrc+"\r\n"));t+="a=ssrc:"+l.sendEncodingParameters[0].ssrc+" cname:"+f.localCName+"\r\n";l.rtpSender&&l.sendEncodingParameters[0].rtx&&(t+="a=ssrc:"+l.sendEncodingParameters[0].rtx.ssrc+" cname:"+ +f.localCName+"\r\n");return t}function d(l,t){var w=!1;l=JSON.parse(JSON.stringify(l));return l.filter(function(r){if(r&&(r.urls||r.url)){var y=r.urls||r.url;r.url&&!r.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var u="string"===typeof y;u&&(y=[y]);y=y.filter(function(A){return 0!==A.indexOf("turn:")||-1===A.indexOf("transport=udp")||-1!==A.indexOf("turn:[")||w?0===A.indexOf("stun:")&&14393<=t&&-1===A.indexOf("?transport=udp"):w=!0});delete r.url;r.urls=u?y[0]:y;return!!y.length}})} +function h(l,t){var w={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(u,A){u=parseInt(u,10);for(var m=0;mt&&m.recvEncodingParameters.forEach(function(B){delete B.rtx}), +z.encodings=m.recvEncodingParameters.length?m.recvEncodingParameters:[{}],z.rtcp={compound:m.rtcpParameters.compound},m.rtcpParameters.cname&&(z.rtcp.cname=m.rtcpParameters.cname),m.sendEncodingParameters.length&&(z.rtcp.ssrc=m.sendEncodingParameters[0].ssrc),m.rtpReceiver.receive(z))};u.prototype.setLocalDescription=function(m){var n=this;if(-1===["offer","answer"].indexOf(m.type))return Promise.reject(k("TypeError",'Unsupported type "'+m.type+'"'));if(!g("setLocalDescription",m.type,n.signalingState)|| +n._isClosed)return Promise.reject(k("InvalidStateError","Can not set local "+m.type+" in state "+n.signalingState));if("offer"===m.type){var x=f.splitSections(m.sdp);var z=x.shift();x.forEach(function(C,G){C=f.parseRtpParameters(C);n.transceivers[G].localCapabilities=C});n.transceivers.forEach(function(C,G){n._gather(C.mid,G)})}else if("answer"===m.type){x=f.splitSections(n._remoteDescription.sdp);z=x.shift();var B=0t&&(L.codecs=L.codecs.filter(function(X){return"rtx"!==X.name}));Z=N.sendEncodingParameters||[{ssrc:1001*(2*J+2)}];oa=!1;if("sendrecv"===P||"sendonly"===P){oa=!N.rtpReceiver;var ha=N.rtpReceiver|| +new l.RTCRtpReceiver(N.dtlsTransport,U);if(oa){P=ha.track;if(!W||"-"!==W.stream)if(W){x[W.stream]||(x[W.stream]=new l.MediaStream,Object.defineProperty(x[W.stream],"id",{get:function(){return W.stream}}));Object.defineProperty(P,"id",{get:function(){return W.track}});var ja=x[W.stream]}else x.default||(x.default=new l.MediaStream),ja=x.default;ja&&(w(P,ja),N.associatedRemoteMediaStreams.push(ja));z.push([P,ha,ja])}}else N.rtpReceiver&&N.rtpReceiver.track&&(N.associatedRemoteMediaStreams.forEach(function(X){var Fa= +X.getTracks().find(function(Xb){return Xb.id===N.rtpReceiver.track.id});Fa&&r(Fa,X)}),N.associatedRemoteMediaStreams=[]);N.localCapabilities=L;N.remoteCapabilities=Ba;N.rtpReceiver=ha;N.rtcpParameters=Da;N.sendEncodingParameters=Z;N.recvEncodingParameters=la;n._transceive(n.transceivers[J],!1,oa)}}});void 0===n._dtlsRole&&(n._dtlsRole="offer"===m.type?"active":"passive");n._remoteDescription={type:m.type,sdp:m.sdp};"offer"===m.type?n._updateSignalingState("have-remote-offer"):n._updateSignalingState("stable"); +Object.keys(x).forEach(function(L){var J=x[L];if(J.getTracks().length){if(-1===n.remoteStreams.indexOf(J)){n.remoteStreams.push(J);var P=new Event("addstream");P.stream=J;l.setTimeout(function(){n._dispatchEvent("addstream",P)})}z.forEach(function(U){J.id===U[2].id&&y(n,U[0],U[1],[J])})}});z.forEach(function(L){L[2]||y(n,L[0],L[1],[])});l.setTimeout(function(){n&&n.transceivers&&n.transceivers.forEach(function(L){L.iceTransport&&"new"===L.iceTransport.state&&0x&&(C.wantReceive=!1)):"video"===C.kind&&(z--,0>z&&(C.wantReceive=!1))});0t&&(L.codecs=L.codecs.filter(function(J){return"rtx"!==J.name}));L.codecs.forEach(function(J){"H264"===J.name&&void 0===J.parameters["level-asymmetry-allowed"]&&(J.parameters["level-asymmetry-allowed"]="1");C.remoteCapabilities&&C.remoteCapabilities.codecs&&C.remoteCapabilities.codecs.forEach(function(P){J.name.toLowerCase()===P.name.toLowerCase()&&J.clockRate===P.clockRate&&(J.preferredPayloadType=P.payloadType)})}); +L.headerExtensions.forEach(function(J){(C.remoteCapabilities&&C.remoteCapabilities.headerExtensions||[]).forEach(function(P){J.uri===P.uri&&(J.id=P.id)})});G=C.sendEncodingParameters||[{ssrc:1001*(2*G+1)}];M&&15019<=t&&"video"===Y&&!G[0].rtx&&(G[0].rtx={ssrc:G[0].ssrc+1});C.wantReceive&&(C.rtpReceiver=new l.RTCRtpReceiver(C.dtlsTransport,Y));C.localCapabilities=L;C.sendEncodingParameters=G});"max-compat"!==n._config.bundlePolicy&&(B+="a=group:BUNDLE "+n.transceivers.map(function(C){return C.mid}).join(" ")+ +"\r\n");B+="a=ice-options:trickle\r\n";n.transceivers.forEach(function(C,G){B+=e(C,C.localCapabilities,"offer",C.stream,n._dtlsRole);B+="a=rtcp-rsize\r\n";!C.iceGatherer||"new"===n.iceGatheringState||0!==G&&n.usingBundle||(C.iceGatherer.getLocalCandidates().forEach(function(M){M.component=1;B+="a="+f.writeCandidate(M)+"\r\n"}),"completed"===C.iceGatherer.state&&(B+="a=end-of-candidates\r\n"))});m=new l.RTCSessionDescription({type:"offer",sdp:B});return Promise.resolve(m)};u.prototype.createAnswer= +function(){var m=this;if(m._isClosed)return Promise.reject(k("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==m.signalingState&&"have-local-pranswer"!==m.signalingState)return Promise.reject(k("InvalidStateError","Can not call createAnswer in signalingState "+m.signalingState));var n=f.writeSessionBoilerplate(m._sdpSessionId,m._sdpSessionVersion++);m.usingBundle&&(n+="a=group:BUNDLE "+m.transceivers.map(function(B){return B.mid}).join(" ")+"\r\n");n+="a=ice-options:trickle\r\n"; +var x=f.getMediaSections(m._remoteDescription.sdp).length;m.transceivers.forEach(function(B,C){if(!(C+1>x))if(B.rejected)"application"===B.kind?n="DTLS/SCTP"===B.protocol?n+"m=application 0 DTLS/SCTP 5000\r\n":n+("m=application 0 "+B.protocol+" webrtc-datachannel\r\n"):"audio"===B.kind?n+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===B.kind&&(n+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),n+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+B.mid+"\r\n";else{if(B.stream){var G; +"audio"===B.kind?G=B.stream.getAudioTracks()[0]:"video"===B.kind&&(G=B.stream.getVideoTracks()[0]);G&&15019<=t&&"video"===B.kind&&!B.sendEncodingParameters[0].rtx&&(B.sendEncodingParameters[0].rtx={ssrc:B.sendEncodingParameters[0].ssrc+1})}C=h(B.localCapabilities,B.remoteCapabilities);!C.codecs.filter(function(M){return"rtx"===M.name.toLowerCase()}).length&&B.sendEncodingParameters[0].rtx&&delete B.sendEncodingParameters[0].rtx;n+=e(B,C,"answer",B.stream,m._dtlsRole);B.rtcpParameters&&B.rtcpParameters.reducedSize&& +(n+="a=rtcp-rsize\r\n")}});var z=new l.RTCSessionDescription({type:"answer",sdp:n});return Promise.resolve(z)};u.prototype.addIceCandidate=function(m){var n=this,x;return m&&void 0===m.sdpMLineIndex&&!m.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(z,B){if(n._remoteDescription)if(m&&""!==m.candidate){var C=m.sdpMLineIndex;if(m.sdpMid)for(var G=0;Gq&&(q=k.maxptime)});0d[h].length||"="!==d[h].charAt(1))return!1;return!0};"object"===typeof b&&(b.exports=e)},{}]},{},[1])(1)});class Yb{constructor(a){this.FrameDisplayDeltaTimeMs=this.BrowserReceiptTimeMs=this.UETransmissionTimeMs= +this.UECaptureToSendMs=this.UEEncodeMs=this.UEReceiptTimeMs=this.TestStartTimeMs=null;this.onReady=a}reset(){this.FrameDisplayDeltaTimeMs=this.BrowserReceiptTimeMs=this.UETransmissionTimeMs=this.UEEncodeMs=this.UECaptureToSendMs=this.UEReceiptTimeMs=this.TestStartTimeMs=null}start(){this.reset();this.TestStartTimeMs=Date.now();if(this.onReady)this.onReady()}setUETimings(a){this.UEReceiptTimeMs=a.ReceiptTimeMs;this.UEEncodeMs=a.EncodeMs;this.UECaptureToSendMs=a.CaptureToSendMs;this.UETransmissionTimeMs= +a.TransmissionTimeMs;this.BrowserReceiptTimeMs=Date.now();this.latencyTimingsReady()}setFrameDisplayDeltaTime(a){null==this.FrameDisplayDeltaTimeMs&&(this.FrameDisplayDeltaTimeMs=Math.round(a),this.latencyTimingsReady())}latencyTimingsReady(){if(this.BrowserReceiptTimeMs){var a=this.BrowserReceiptTimeMs-this.TestStartTimeMs,b=this.UECaptureToSendMs,c=this.UETransmissionTimeMs-this.UEReceiptTimeMs,e=a-c,d={latencyExcludingDecode:a,encodeLatency:this.UEEncodeMs.toFixed(1),uePixelStreamLatency:b.toFixed(1), +ueTestDuration:c.toFixed(1),networkLatency:e.toFixed(1)};this.FrameDisplayDeltaTimeMs&&this.BrowserReceiptTimeMs&&(d.endToEndLatency=this.FrameDisplayDeltaTimeMs+e+("string"===typeof b?0:b),d.browserSideLatency=this.FrameDisplayDeltaTimeMs+(a-e-c),d.endToEndLatency=d.endToEndLatency.toFixed(1),d.browserSideLatency=d.browserSideLatency.toFixed(1));if(this.onReady)this.onReady(d)}}}class Zb{constructor(a){this.useStats=a.useStats;this.events=a.events;this.webRtcConfig=a.peerConnectionOptions||{};this.webRtcConfig.sdpSemantics= +"unified-plan";this.tnClient=this.dcClient=this.pcClient=null;this.sdpConstraints={offerToReceiveAudio:0,offerToReceiveVideo:1,voiceActivityDetection:!1};this.dataChannelOptions={ordered:!0};this.lastStats={};this.playerId=0;this.latencyTestTimings=new Yb(this.events.onLatencyTimingsReady);this._bSendingAPI=!1;this._apiSendingQueue=[]}setVideo(a){this.video=a}logStartupInfo(a){if(this.events.onlog)this.events.onlog(a)}setupPeerConnection(){this.pcClient||(this.pcClient=new RTCPeerConnection(this.webRtcConfig), +this.pcClient.addTransceiver("video",{direction:"recvonly"}),this.pcClient.onsignalingstatechange=a=>this.onStateChanged(a),this.pcClient.oniceconnectionstatechange=a=>this.onStateChanged(a),this.pcClient.onicegatheringstatechange=a=>this.onStateChanged(a),this.pcClient.ontrack=a=>this.events.ontrack(a),this.pcClient.onicecandidate=a=>this.events.onicecandidate(a),this.pcClient.ondatachannel=a=>{this.dcClient=a.channel;this.setupDataChannelCallbacks()})}close(){this.dcClient&&"open"==this.dcClient.readyState&& +(this.dcClient.close(),this.dcClient=null);this.pcClient&&(this.pcClient.close(),this.pcClient=null);this.clearStatsTimer()}setupDataChannelCallbacks(){this.dcClient.binaryType="arraybuffer";this.dcClient.onopen=a=>{this.isDatachannelOpened=!0;if(this.events&&this.events.ondatachannelopen)this.events.ondatachannelopen(a);this.logStartupInfo("video: loading...")};this.dcClient.onclose=a=>{this.isDatachannelOpened=!1;this.clearStatsTimer();if(this.events&&this.events.ondatachannelclose)this.events.ondatachannelclose(a)}; +this.dcClient.onerror=a=>{this.isDatachannelOpened=!1;this.logStartupInfo("channel error");if(this.events&&this.events.ondatachannelerror)this.events.ondatachannelerror(a)};this.dcClient.onmessage=a=>this.onDatachannelMessage(a)}createOffer(){this.close();this.setupPeerConnection();try{this.dcClient=this.pcClient.createDataChannel("cirrus",this.dataChannelOptions),this.setupDataChannelCallbacks(),this.logStartupInfo("channel created")}catch(a){this.logStartupInfo("no channel"),this.dcClient=null}this.pcClient.createOffer(this.sdpConstraints).then(a=> +{a.sdp=a.sdp.replace("useinbandfec=1","useinbandfec=1;stereo=1;sprop-maxcapturerate=48000");this.pcClient.setLocalDescription(a);this.events.onOfferCreated(a)},()=>{this.logStartupInfo("couldn't create offer")})}onReceiveOffer(a){a=new RTCSessionDescription(a);this.setupPeerConnection();this.pcClient.setRemoteDescription(a).then(()=>{this.pcClient.createAnswer().then(b=>this.pcClient.setLocalDescription(b)).then(()=>{if(this.events.onAnswerCreated)this.events.onAnswerCreated(this.pcClient.currentLocalDescription)}).then(()=> +{let b=this.pcClient.getReceivers();for(let c of b)c.playoutDelayHint=0}).catch(b=>console.error("createAnswer() failed:",b))});this.setupLiveStats()}onIceCandidate(a){a=new RTCIceCandidate(a);this.pcClient.addIceCandidate(a).then(b=>{this.logStartupInfo("candidate added")})}onReceiveAnswer(a){this.playerId=a.playerId;this.logStartupInfo(`received answer: ${this.playerId}`);a=new RTCSessionDescription(a);this.pcClient.setRemoteDescription(a);a=this.pcClient.getReceivers();for(let b of a)b.playoutDelayHint= +0;this.setupLiveStats()}setupLiveStats(){this.clearStatsTimer();this.useStats&&!this.aggregateStatsIntervalId&&(this.aggregateStatsIntervalId=setInterval(()=>{this.pcClient&&this.pcClient.getStats(null).then(a=>this.processLiveStats(a))},1E3))}onStateChanged(a){this.signalingState!=this.pcClient.signalingState&&(this.signalingState=this.pcClient.signalingState,this.logStartupInfo(`__signaling: ${this.signalingState}`));this.iceConnectionState!=this.pcClient.iceConnectionState&&(this.iceConnectionState= +this.pcClient.iceConnectionState,this.logStartupInfo(`__ice_connection: ${this.iceConnectionState}`),"disconnected"!=this.iceConnectionState||this.isDatachannelOpened||this.logStartupInfo("\u8fde\u63a5\u5efa\u7acb\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u670d\u52a1\u5668\u7aef\u53e3\u8bbe\u7f6e"),"failed"!=this.iceConnectionState||this.isDatachannelOpened||this.logStartupInfo("\u8fde\u63a5\u5efa\u7acb\u5931\u8d25\uff0c\u65e0\u53ef\u7528\u7684\u5019\u9009\u8fde\u63a5"));this.iceGatheringState!=this.pcClient.iceGatheringState&& +(this.iceGatheringState=this.pcClient.iceGatheringState,this.logStartupInfo(`__ice_gathering: ${this.iceGatheringState}`))}clearStatsTimer(){this.aggregateStatsIntervalId&&(clearInterval(this.aggregateStatsIntervalId),this.aggregateStatsIntervalId=void 0)}send(a){return this.dcClient&&"open"==this.dcClient.readyState?(this.dcClient.send(a),!0):!1}requestInitialSettings(){this.send((new Uint8Array([7])).buffer)}requestQualityControl(){this.send((new Uint8Array([1])).buffer)}sendEnableIntervalSendQP(a){this.send((new Uint8Array([11, +a?1:0])).buffer)}_continueSendAPI(){if(0d){this.numOfEventCalls=0;let g=Math.ceil(c/d),q=[];for(var h=0;h{for(t=this.dcClient.bufferedAmount;kthis._continueSendAPI(),100);else if(t>l)break}},l=Math.max(8*e,1048576);this.dcClient.bufferedAmountLowThreshold=e;this.dcClient.onbufferedamountlow=t=>{this.numOfEventCalls++;f()};console.log(`sending api(command: ${a.command}) slices, count: ${g}`);f()}else{e=new DataView(new ArrayBuffer(4+2*c));d=0;e.setUint8(d,52);d++;e.setUint8(d,0);d++;e.setUint16(d,c,!0);d+=2;for(h=0;h{"inbound-rtp"!=c.type||c.isRemote||"video"!=c.mediaType&&!c.id.toLowerCase().includes("video")||(b.timestamp=c.timestamp,b.timestampStart=this.lastStats&&this.lastStats.timestampStart?this.lastStats.timestampStart:c.timestamp,b.bytesReceived=c.bytesReceived,b.packetsLost= +c.packetsLost,b.framesDropped=c.framesDropped,b.framesPerSecond=c.framesPerSecond,b.framesReceived=c.framesReceived,b.framesDecoded=c.framesDecoded,b.keyFramesDecoded=c.keyFramesDecoded,b.frameWidth=c.frameWidth,b.frameHeight=c.frameHeight,this.lastStats&&(b.bitrate=8*(b.bytesReceived-this.lastStats.bytesReceived)/(b.timestamp-this.lastStats.timestamp)));"track"==c.type&&c.frameWidth&&(c.framesDropped&&(b.framesDropped=c.framesDropped),c.framesReceived&&(b.framesReceived=c.framesReceived),b.frameWidth= +c.frameWidth,b.frameHeight=c.frameHeight);"candidate-pair"==c.type&&c.hasOwnProperty("currentRoundTripTime")&&0!=c.currentRoundTripTime&&(b.currentRoundTripTime=c.currentRoundTripTime)});this.lastStats.receiveToCompositeMs&&(b.receiveToCompositeMs=this.lastStats.receiveToCompositeMs,this.latencyTestTimings.setFrameDisplayDeltaTime(this.lastStats.receiveToCompositeMs));this.lastStats=b;this.events.onstats(this.lastStats)}onDatachannelMessage(a){var b=new Uint8Array(a.data);switch(b[0]){case 0:this.events.ondatachannelmessage("QualityControlOwnership", +1==b[1]);break;case 1:if((a=(new TextDecoder("utf-16")).decode(a.data.slice(1)))&&""!=a)this.events.ondatachannelmessage("ResponseAPI",a);break;case 101:b=b[1];a=(new TextDecoder("utf-8")).decode(a.data.slice(2));switch(b){case 0:this.events.ondatachannelmessage("ResponseAPI",a);break;case 1:this.reponse_api_json_string=a;break;case 2:this.reponse_api_json_string+=a;break;case 3:this.reponse_api_json_string+=a,this.events.ondatachannelmessage("ResponseAPI",this.reponse_api_json_string)}break;case 6:a= +(new TextDecoder("utf-16")).decode(a.data.slice(1));a=JSON.parse(a);this.latencyTestTimings.setUETimings(a);break;case 7:a=(new TextDecoder("utf-16")).decode(a.data.slice(1));a=JSON.parse(a);if(a.Encoder)this.events.ondatachannelmessage("InitialSettings",a);break;case 5:this.events.ondatachannelmessage("VideoEncoderAvgQP",a)}}startLatencyTest(){this.video&&(this.latencyTestTimings.start(),this.sendDescriptor(6,{StartTime:this.latencyTestTimings.TestStartTimeMs}))}}class ia{constructor(a){this.player= +a;this.uid=a.uid;this.container=a.container}appendElement(a){this.container.appendChild(a);this.setNeedReposUI()}removeElement(a){this.container.removeChild(a)}get(a){return wa(a+"_"+this.uid)}getValue(a){let b;return null==(b=this.get(a))?void 0:b.value}setValue(a,b){(a=this.get(a))&&(a.value=b)}setText(a,b){(a=this.get(a))&&(a.innerText=b)}setHtml(a,b){(a=this.get(a))&&(a.innerHTML=b)}resize(){this.player.resize()}setNeedReposUI(){this.player.bNeedReposUI=!0}}class $b extends ia{constructor(a){super(a); +this.el=document.createElement("pre");this.el.id=`eventsPanel_${this.uid}`;this.el.className="__eventsPanel";this.el.oncontextmenu=new Function("return false");this.el.onselectstart=new Function("return false");this.appendElement(this.el)}destroy(){this.el&&(this.removeElement(this.el),this.el=null)}appendText(a){if(this.el){let b=this.el.innerText;b+=a+"\n";this.el.innerText=b;this.el.scrollTop=this.el.scrollHeight+100}}setPosition(a){a||(a=this.container.getBoundingClientRect());this.el&&(this.el.style.width= +`${a.width}px`)}}class ca{}ca.Information='';ca.FullScreenEnter= +''; +ca.FullScreenExit=''; +ca.InitialCamera=''; +class ac extends ia{constructor(a){super(a);this.create()}create(){if(!this.el){this.el=document.createElement("button");this.el.id=`fullscreeButton_${this.uid}`;this.el.className="__fullscreeButton";if(R.isIOSDevice||R.isSafari)this.el.style.backgroundSize="cover";this.el.innerHTML=ca.FullScreenEnter;this.el.title=H.getString("EnterFullscreen");this.el.oncontextmenu=new Function("return false");this.el.onselectstart=new Function("return false");this.el.onclick=()=>this.player.fullscreen=!this.player.fullscreen; +this.el.onmousedown=a=>{1==a.button&&a.preventDefault()};this.appendElement(this.el);document.addEventListener("fullscreenchange",()=>{this.el.title=H.getString("ExitFullscreen");this.el.innerHTML=R.isFullscreen()?ca.FullScreenExit:ca.FullScreenEnter;this.player.resize()})}}destroy(){this.el&&(this.removeElement(this.el),this.el=null)}setPosition(a,b){a||(a=this.container.getBoundingClientRect());this.el&&(this.el.style.left=`${b?38:5}px`,this.el.style.top=`${a.height-32}px`)}}const ea={BackSpace:8, +Shift:16,Control:17,Alt:18,RightShift:253,RightControl:254,RightAlt:255};class bc extends ia{constructor(a,b){super(a);this.video=null;this.useBuiltinCursors=b.useBuiltinCursors;this.keyEventTargetStr=b.keyEventTarget;this.keyEventTarget="document"==b.keyEventTarget?document:"none"==b.keyEventTarget?null:"video";this.callOnUserInteraction=()=>this.player.resetInteractTimestamp();this.fakeMouseWithTouches=!1;this.onMButtonDoubleClick=b.onMButtonDoubleClick;this.mouseKeyListener=b.mouseKeyListener; +this.onActionEnable=!0;this.onEvents=b.onEvents;this.onVideoLoaded=b.onVideoLoaded;document.addEventListener("WeixinJSBridgeReady",()=>{R.isInWeixinBrowser=!0;this.video.play()});this.create()}isVideoLoaded(){return!!this._isVideoLoaded}create(){this.video&&this.destroy();this.video||(this.video=document.createElement("video"),this.video.id=`streamingVideo_${this.uid}`,this.video.style="position:absolute;",this.video.playsInline=!0,this.video.muted=!0,this.video.autoplay=!0,this.video.disablepictureinpicture= +!0,"video"===this.keyEventTarget&&(this.video.tabIndex=1,this.keyEventTarget=this.video),this.appendElement(this.video),this.player.logStartupInfo("video element created"),this._isVideoLoaded=!1,this.video.addEventListener("loadedmetadata",()=>{this._isVideoLoaded=!0;this.video.onmouseenter({button:0,x:0,y:0});this.onVideoLoaded()},!0),this.setCursor());if("requestVideoFrameCallback"in HTMLVideoElement.prototype){const a=(b,c)=>{c.receiveTime&&c.expectedDisplayTime&&(this.rtc.lastStats.receiveToCompositeMs= +c.presentationTime-c.receiveTime);this.video&&this.video.requestVideoFrameCallback(a)};this.video.requestVideoFrameCallback(a)}}setWebRtcPlayer(a){(!this.video||R.isAndroidDevice||R.isIOSDevice&&!R.isInWeixinBrowser)&&this.create();this.rtc=a;this.rtc.setVideo(this.video)}setActionEventEnabled(a){this.onActionEnable=a}destroy(){this.video&&(this.removeElement(this.video),this.video=null)}valid(){return!!this.video}videoWidth(){let a;return null==(a=this.video)?void 0:a.videoWidth}videoHeight(){let a; +return null==(a=this.video)?void 0:a.videoHeight}clientWidth(){let a;return null==(a=this.video)?void 0:a.clientWidth}clientHeight(){let a;return null==(a=this.video)?void 0:a.clientHeight}setTrack(a){let b=a.streams[0];this.player.logStartupInfo("track: "+a.track.kind);"audio"==a.track.kind?(a=document.createElement("Audio"),a.autoplay=!0,a.srcObject=b,a.play(),this.player.logStartupInfo("audio element created")):"video"==a.track.kind&&this.video.srcObject!==b&&(this.video.srcObject=b)}setKeyEventTarget(a){this.keyEventTargetStr!= +a&&(this.clearKeyboardEvents(),"video"==a?(this.video&&(this.video.tabIndex=1),this.keyEventTarget=this.video,this.video.focus()):"document"==a?(this.keyEventTarget=document,this.video.focus()):this.keyEventTarget&&(this.keyEventTarget=null),this.keyEventTargetStr=a,this.registerKeyboardEvents())}clearKeyboardEvents(){this.keyEventTarget&&(this.keyEventTarget.onkeydown=null,this.keyEventTarget.onkeyup=null,this.keyEventTarget.onkeypress=null)}registerKeyboardEvents(){this.keyEventTarget&&(this.keyEventTarget.onkeydown= +a=>{112<=a.keyCode&&123>=a.keyCode||a.ctrlKey||this.sendKeydown(a);if(a.keyCode===ea.BackSpace)this.keyEventTarget.onkeypress({charCode:ea.BackSpace});this.callActionEventHander(5,a)},this.keyEventTarget.onkeyup=a=>{112<=a.keyCode&&123>=a.keyCode||a.ctrlKey||this.sendKeyup(a);this.callActionEventHander(6,a)},this.keyEventTarget.onkeypress=a=>{112<=a.keyCode&&123>=a.keyCode||this.sendKeypress(a);this.callActionEventHander(7,a)})}setCursor(){if(this.video)if(this.useBuiltinCursors)switch(this.mouseDownButton){case 0:this.video.setAttribute("class", +"streamingVideoCursorPan");break;case 1:this.video.setAttribute("class","streamingVideoCursorMove");break;case 2:this.video.setAttribute("class","streamingVideoCursorRotate");break;default:this.video.setAttribute("class","streamingVideoCursorPointer")}else this.video.setAttribute("class","streamingVideoNoCursor")}callActionEventHander(a,b){if(this.mouseKeyListener&&this.onActionEnable)switch(a){case 0:if(R.isFunction(this.mouseKeyListener.onMouseEnter))this.mouseKeyListener.onMouseEnter(b);break; +case 1:if(R.isFunction(this.mouseKeyListener.onMouseLeave))this.mouseKeyListener.onMouseLeave(b);break;case 2:if(R.isFunction(this.mouseKeyListener.onMouseMove))this.mouseKeyListener.onMouseMove(b);break;case 3:if(R.isFunction(this.mouseKeyListener.onMouseDown))this.mouseKeyListener.onMouseDown(b);break;case 4:if(R.isFunction(this.mouseKeyListener.onMouseUp))this.mouseKeyListener.onMouseUp(b);break;case 5:if(R.isFunction(this.mouseKeyListener.onKeyDown))this.mouseKeyListener.onKeyDown(b);break;case 6:if(R.isFunction(this.mouseKeyListener.onKeyUp))this.mouseKeyListener.onKeyUp(b); +break;case 7:if(R.isFunction(this.mouseKeyListener.onKeyPress))this.mouseKeyListener.onKeyPress(b)}}isMiddleDoubleClick(a){if(1==a.button){if(this.lastMClickTimestamp&&200>a.timeStamp-this.lastMClickTimestamp)return!0;this.lastMClickTimestamp=a.timeStamp}else this.lastMClickTimestamp=void 0;return!1}registerMouseEvents(){this.video.onmouseenter=a=>{this.sendMouseEnter();a.buttons&1&&this.sendMouseDown(0,a.offsetX,a.offsetY);a.buttons&2&&this.sendMouseDown(2,a.offsetX,a.offsetY);a.buttons&4&&this.sendMouseDown(1, +a.offsetX,a.offsetY);a.buttons&8&&this.sendMouseDown(3,a.offsetX,a.offsetY);a.buttons&16&&this.sendMouseDown(4,a.offsetX,a.offsetY);this.callActionEventHander(0,a)};this.video.onmouseleave=a=>{this.sendMouseLeave();a.buttons&1&&this.sendMouseUp(0,a.offsetX,a.offsetY);a.buttons&2&&this.sendMouseUp(2,a.offsetX,a.offsetY);a.buttons&4&&this.sendMouseUp(1,a.offsetX,a.offsetY);a.buttons&8&&this.sendMouseUp(3,a.offsetX,a.offsetYy);a.buttons&16&&this.sendMouseUp(4,a.offsetX,a.offsetY);this.callActionEventHander(1, +a)};this.video.onmousemove=a=>{this.sendMouseMove(a.offsetX,a.offsetY,a.movementX,a.movementY);a.preventDefault();if(0==this.mouseDownButton||2==this.mouseDownButton)this.setCursor(),this.mouseDownButton=void 0;this.callActionEventHander(2,a)};this.video.onmousedown=a=>{this.keyEventTarget==this.video&&this.video.focus();this.sendMouseEnter();this.isMiddleDoubleClick(a)&&this.onMButtonDoubleClick?(this.onMButtonDoubleClick(a.offsetX,a.offsetY),a.preventDefault()):(this.mouseDownButton=a.button,this.sendMouseDown(a.button, +a.offsetX,a.offsetY),a.preventDefault(),0!=a.button&&2!=a.button&&this.setCursor(),this.callActionEventHander(3,a))};this.video.onmouseup=a=>{this.mouseDownButton=void 0;this.sendMouseUp(a.button,a.offsetX,a.offsetY);a.preventDefault();this.setCursor();this.callActionEventHander(4,a)};this.video.oncontextmenu=a=>{a.preventDefault()};"onmousewheel"in this.video?this.video.addEventListener("mousewheel",a=>{this.sendMouseWheel(a.wheelDelta,a.offsetX,a.offsetY);a.preventDefault()},{passive:!1}):this.video.addEventListener("DOMMouseScroll", +a=>{this.sendMouseWheel(-120*a.detail,a.offsetX,a.offsetY);a.preventDefault()},!1)}registerTouchEvents(){this.ongoingTouches=[];this.copyTouch=({identifier:b,clientX:c,clientY:e,force:d})=>({identifier:b,clientX:c,clientY:e,force:d});this.ongoingTouchIndexById=b=>{for(let c=0;c{let c=this.container.getBoundingClientRect(); +if(void 0===a){let e=b.changedTouches[0];a={id:e.identifier,x:e.clientX-c.left,y:e.clientY-c.top};this.video.onmouseenter(b);this.sendMouseDown(0,a.x,a.y)}b.preventDefault()},{passive:!1});this.video.addEventListener("touchend",b=>{let c=this.container.getBoundingClientRect();for(let e=0;e{var c=this.container.getBoundingClientRect();for(var e=0;e{b.preventDefault();null==this||this.onEvents(`ongoingTouches: ${this.ongoingTouches.length}, touches: ${b.touches.length}, changedTouches: ${b.changedTouches.length}`);this.ongoingTouches.length>b.touches.length- +b.changedTouches.length&&(this.onEvents&&this.onEvents(H.getString("TriggerSysTouch")),this.sendTouch(81,this.ongoingTouches),this.ongoingTouches=[]);b=b.changedTouches;for(let c=0;c{b.preventDefault();b=b.changedTouches;this.sendTouch(81,b);for(let c=0;c{b.preventDefault();this.sendTouch(82,b.touches)},{passive:!1})}resize(a){this.playerAspectRatio=this.container.clientHeight/this.container.clientWidth;this.videoAspectRatio=a?this.playerAspectRatio:this.videoHeight()/this.videoWidth()}normalizeAndQuantizeUnsigned(a,b){if(this.playerAspectRatio>this.videoAspectRatio){let c=this.playerAspectRatio/this.videoAspectRatio;a/=this.container.clientWidth;b=c*(b/this.container.clientHeight-.5)+.5}else a=this.videoAspectRatio/ +this.playerAspectRatio*(a/this.container.clientWidth-.5)+.5,b/=this.container.clientHeight;return 0>a||1b||1this.videoAspectRatio){let c=this.playerAspectRatio/this.videoAspectRatio;a/=.5*this.container.clientWidth;b=c*b/(.5*this.container.clientHeight);return{x:32767*a,y:32767*b}}return{x:this.videoAspectRatio/this.playerAspectRatio*a/(.5*this.container.clientWidth)*32767, +y:b/(.5*this.container.clientHeight)*32767}}sendTouch(a,b){this.callOnUserInteraction();var c=new DataView(new ArrayBuffer(2+10*b.length));c.setUint8(0,a);c.setUint8(1,b.length);let e=2,d=[];for(let h=0;hl?null==this||this.onEvents("can't figure out which touch to continue"):(c.setUint16(e,f.x,!0),e+=2,c.setUint16(e,f.y, +!0),e+=2,c.setInt32(e,l,!0),e+=4,c.setUint8(e,255*g.force,!0),e+=1,c.setUint8(e,f.inRange?1:0,!0),e+=1,this.onEvents&&d.push(`{${l} (${parseInt(q)},${parseInt(k)})->(${parseInt(f.x)},${parseInt(f.y)}) ${255*g.force} ${f.inRange?1:0}}`))}this.rtc.send(c.buffer);this.onEvents&&(c="",80==a?c="start":82==a?c="move":81==a&&(c="end"),a=`[${c}] N${b.length} ${d.join(",")}}`,this.onEvents(a))}sendKeydown(a){this.callOnUserInteraction();let b=xa(a),c;null==(c=this.onEvents)||c.call(this,`Send KeyDown, Code:${b}, Repeat:${a.repeat}`); +this.rtc.send((new Uint8Array([60,b,a.repeat])).buffer)}sendKeyup(a){this.callOnUserInteraction();a=xa(a);let b;null==(b=this.onEvents)||b.call(this,`Send KeyUp:${a}`);this.rtc.send((new Uint8Array([61,a])).buffer)}sendKeypress(a){this.callOnUserInteraction();var b;null==(b=this.onEvents)||b.call(this,`Send KeyPress:${a.charCode}`);b=new DataView(new ArrayBuffer(3));b.setUint8(0,62);b.setUint16(1,a.charCode,!0);this.rtc.send(b.buffer)}sendMouseEnter(){this.callOnUserInteraction();var a;null==(a=this.onEvents)|| +a.call(this,"Send MouseEnter");a=new DataView(new ArrayBuffer(1));a.setUint8(0,70);this.rtc.send(a.buffer)}sendMouseLeave(){this.callOnUserInteraction();var a;null==(a=this.onEvents)||a.call(this,"Send MouseLeave");a=new DataView(new ArrayBuffer(1));a.setUint8(0,71);this.rtc.send(a.buffer)}sendMouseMove(a,b,c,e){this.callOnUserInteraction();if(this.normalizeAndQuantizeUnsigned){var d;null==(d=this.onEvents)||d.call(this,`Send MouseMove, X:${a}, Y:${b}, DeltaX:${c}, DeltaY:${e}`);a=this.normalizeAndQuantizeUnsigned(a, +b);c=this.normalizeAndQuantizeSigned(c,e);e=new DataView(new ArrayBuffer(9));e.setUint8(0,74);e.setUint16(1,a.x,!0);e.setUint16(3,a.y,!0);e.setInt16(5,c.x,!0);e.setInt16(7,c.y,!0);this.rtc.send(e.buffer)}}sendMouseDown(a,b,c){this.callOnUserInteraction();if(this.normalizeAndQuantizeUnsigned){var e;null==(e=this.onEvents)||e.call(this,`Send MouseDown, Button:${a}, X:${b}, Y:${c}`);b=this.normalizeAndQuantizeUnsigned(b,c);c=new DataView(new ArrayBuffer(6));c.setUint8(0,72);c.setUint8(1,a);c.setUint16(2, +b.x,!0);c.setUint16(4,b.y,!0);this.rtc.send(c.buffer)}}sendMouseUp(a,b,c){if(this.normalizeAndQuantizeUnsigned){var e;null==(e=this.onEvents)||e.call(this,`Send MouseUp, Button:${a}, X:${b}, Y:${c}`);b=this.normalizeAndQuantizeUnsigned(b,c);c=new DataView(new ArrayBuffer(6));c.setUint8(0,73);c.setUint8(1,a);c.setUint16(2,b.x,!0);c.setUint16(4,b.y,!0);this.rtc.send(c.buffer)}}sendMouseWheel(a,b,c){this.callOnUserInteraction();if(this.normalizeAndQuantizeUnsigned){var e;null==(e=this.onEvents)||e.call(this, +`Send MouseWheel, Delta:${a}, X:${b}, Y:${c}`);b=this.normalizeAndQuantizeUnsigned(b,c);c=new DataView(new ArrayBuffer(7));c.setUint8(0,75);c.setInt16(1,a,!0);c.setUint16(3,b.x,!0);c.setUint16(5,b.y,!0);this.rtc.send(c.buffer)}}}class cc extends ia{constructor(a,b,c){super(a);this.updateConnectionCount(b);this.createButton(c)}createButton(a){if(!this.elButton){this.elButton=document.createElement("button");this.elButton.id=`liveStatusSwitchButton_${this.uid}`;this.elButton.innerHTML=ca.Information; +this.elButton.title=a;this.elButton.className="__liveStatusSwitchButton";if(R.isIOSDevice||R.isSafari)this.elButton.style.backgroundSize="cover";this.elButton.oncontextmenu=new Function("return false");this.elButton.onselectstart=new Function("return false");this.elButton.onclick=()=>this.setPanelVisible();this.elButton.onmousedown=b=>{1==b.button&&b.preventDefault()};this.appendElement(this.elButton)}}createPanel(){if(!this.elPanel){var a=''+ +``+``+``+ +``+``+``+``+ +``+``+``+ +``+``+``+"
${H.getString("ConnInfo")}1-1${H.getString("Close")}
${H.getString("Duration")}00:00:00
${H.getString("Resolution")}1920 x 1080
${H.getString("Received")}0 kB
${H.getString("ReceivedFrames")}0
${H.getString("Dropped")}0 / 0
${H.getString("DecodingTime")}
${H.getString("DecodeFrames")}0 / 0
${H.getString("Bitrate")}-
${H.getString("FPS")}- / -
${H.getString("QP")}0
${H.getString("MaxQP")}
${H.getString("MaxBitrate")}
"; +this.elPanel=document.createElement("div");this.elPanel.innerHTML=a;this.elPanel.id=`liveStatusPanel_${this.uid}`;this.elPanel.className="__liveStatusPanel __fadeinComp";this.elPanel.oncontextmenu=new Function("return false");this.elPanel.onselectstart=new Function("return false");this.appendElement(this.elPanel);this.get("i_hide_panel").onclick=()=>this.setPanelVisible();for(a=29;40>=a;a++)this.get("i_settings_maxQP").add(new Option(a,a));this.get("i_settings_maxQP").onchange=()=>{let b={encodeMaxQP:this.getValue("i_settings_maxQP")}; +this.player.rtc.updateParams(b);this.player.signallingConnection.updateParams(b);this.get("i_settings_maxQP").blur()};for(a=10;100>=a;a+=5)this.get("i_settings_maxBitrate").add(new Option(a,a));this.get("i_settings_maxBitrate").onchange=()=>{let b={maxBitrate:this.getValue("i_settings_maxBitrate")};this.player.rtc.updateParams(b);this.player.signallingConnection.updateParams(b);this.get("i_settings_maxBitrate").blur()}}}setPosition(a){a||(a=this.container.getBoundingClientRect());this.elButton&&(this.elButton.style.top= +`${a.height-32}px`);if(this.elPanel)if(this.customPosX&&this.customPosY)this.elPanel.style.left=this.customPosX+"px",this.elPanel.style.top=this.customPosY+"px";else{let b=this.elPanel.getBoundingClientRect();this.elPanel.style.left="5px";this.elPanel.style.top=`${a.height-b.height-42}px`}}destroy(){this.updateLatencyTestUI=!1;this.visible&&this.setPanelVisible();this.elPanel&&(this.removeElement(this.elPanel),this.elPanel=null);this.elButton&&(this.removeElement(this.elButton),this.elButton=null)}setPanelVisible(a, +b){this.customPosX=a;this.customPosY=b;if(this.elPanel)if("none"==this.elPanel.style.display)this.updateConnectionCount(),this.elPanel.style.display="block",this.elPanel.className="__liveStatusPanel __fadeinComp",this.visible=!0,this.player.rtc.sendEnableIntervalSendQP(!0);else{this.elPanel.className="__liveStatusPanel __fadeoutComp";setTimeout(()=>{this.visible=!1;this.elPanel.style.display="none";this.player.rtc.sendEnableIntervalSendQP(!1);this.setNeedReposUI();this.resize()},500);return}else this.createPanel(), +this.visible=!0,this.resize(),this.updateConnectionCount(),this.player.rtc.requestInitialSettings(),this.player.rtc.sendEnableIntervalSendQP(!0);this.setNeedReposUI();this.resize()}adjustMaxQP(a){return 18==a?(this.get("i_settings_maxQP")&&this.get("i_settings_maxQP").add(new Option(18,18)),18):0>a?40:0<=a&&29>a?29:40a?10:100e);d++)e/=1E3,c=b[d];this.setText("i_bytesReceived", +this.formatNumber(e)+" "+c);this.setText("i_framesReceived",this.processValue(a.framesReceived));this.setText("i_framesDecoded",a.framesDecoded);this.setText("i_keyframesDecoded",this.processValue(a.keyFramesDecoded));this.updateVideoFramerate(this.formatNumber(a.framesPerSecond));this.updateBitrate(a.bitrate);this.setText("i_packetsLost",this.processValue(a.packetsLost));this.setText("i_frameDropped",this.processValue(a.framesDropped));this.setText("i_compositeTime",this.formatNumber(a.receiveToCompositeMs, +1))}}updateVideoFramerate(a){let b=this.get("i_framerateVideo");b.style.color=10>a?"red":20>a?"orange":"rgb(128,255,0)";b.innerText=a}updateBitrate(a){let b=this.get("i_bitrate");a?1E3a?"red":1E3>a?"orange":"rgb(128,255,0)",b.innerText=this.formatNumber(a)+" kbps"):b.innerText="-"}updateInitialSettings(a){let b=this.adjustMaxQP(a.Encoder.MaxQP);this.setValue("i_settings_maxQP",b);a=this.adjustMaxBitrate(a.WebRTC.MaxBitrate/ +1E3/1E3);this.setValue("i_settings_maxBitrate",a)}updateQPAndRenderFPS(a,b){let c=this.get("i_qp");c.style.color=35this.setVisible(!1),500)}setDelayClear(a){this.bDelayClear= +a}log(a){if(this.el){if(this.bDelayClear)this.bDelayClear=!1,this.el.innerText=a+"\n";else{let b=this.el.innerText;b+=a+"\n";this.el.innerText=b}this.el.scrollTop=this.el.scrollHeight+100}}setPosition(a){a||(a=this.container.getBoundingClientRect());this.el&&(this.el.style.height=`${a.height-20}px`)}}class ec extends ia{constructor(a){super(a);this.create()}create(){this.el||(this.el=document.createElement("i"),this.el.id=`statusIndicator_${this.uid}`,this.el.className="__statusIndicator",this.appendElement(this.el))}destroy(){this.el&& +(this.removeElement(this.el),this.el=null)}setStatus(a){let b="Red",c=this.get("statusIndicator");switch(a){case V.WS_Disconnected:b="Red";c&&(c.style.display="inline-block");break;case V.WS_Connecting:b="RGB(200,200,200)";break;case V.WS_Connected:b="Yellow";break;case V.RTC_Opened:b="RGB(0,128,255)";break;case V.OnReady:b="RGB(0,255,0)",this.hide()}this.lastStatus=a;c&&(c.style.backgroundColor=b)}hide(){let a=this.get("statusIndicator");a&&(a.style.display="none")}}class fc{constructor(){this.css("@keyframes __fadeoutframes {0%{opacity:1;} 100%{opacity:0;}}.__fadeoutComp {animation-duration:600ms; animation-name:__fadeoutframes;}@keyframes __fadeinframes {0%{opacity:0;} 100%{opacity:0.65;}}.__fadeinComp {animation-duration:100ms; animation-name:__fadeinframes;}@keyframes twinkling{0%{opacity:0;}100%{opacity:1;}}.__statusIndicator {position:absolute;display:block;left:5px;top:5px;width:6px;height:6px;border-radius:50%;background-color:red;animation:twinkling 0.25s infinite ease-in-out;}.__startupInfoPanel { position:absolute;left:3px;top:0px;width:400px;background-color:transparent !important;text-shadow:black 0.1em 0.1em 0.2em;color:white;font-family:Verdana;font-size:12px !important;overflow:auto;}.__liveStatusPanel {position:absolute;left:5px;top:10px;width:164px;height:300px;background-color:rgba(50,50,50,0.8);color:#00FF00;font-family:Verdana;font-size:10px;box-shadow:0px 0px 5px 5px rgba(200,200,200,0.5);-moz-border-radius:8px;-webkit-border-radius:8px;}.__liveStatusPanel a:link { color: rgb(0,255,128); text-decoration: none; }.__liveStatusPanel a:hover { color: yellow; background:transparent; }.__liveStatusPanel input {background:transparent; border:1px solid gray; color: #00FF00;}.__liveStatusPanel select {background:transparent; border:1px solid gray; color: #00FF00;}.__liveStatusPanel option {background:#333; color: #00FF00;}.__liveStatusSwitchButton{position:absolute;padding:0;left:6px;width:26px;height:26px;opacity:0.65;cursor:pointer;background-size:conver;}.__fullscreeButton {position:absolute;padding:0;left:38px;width:26px;height:26px;opacity:0.65;cursor:pointer;background-size:conver;}.__viewHomeButton {position:absolute;padding:0;left:70px;width:26px;height:26px;opacity:0.65;cursor:pointer;background-size:conver;}.__taskWaiting {position:absolute;z-index:30;text-align:center;padding-left:5px;text-shadow:black 0.1em 0.1em 0.2em;color:lime;font-family:Verdana;font-size:12px !important;overflow:hidden;display:none;}.__eventsPanel {position:absolute;left:3px;top:0px;width:600px;height:200px;background-color:rgba(64,64,64,0.5) !important;text-shadow:black 0.1em 0.1em 0.2em;color:white;font-family:Verdana;font-size:12px !important;overflow:auto;}.streamingVideoNoCursor {width:100%;height:100%;}.streamingVideoCursorMove {width:100%;height:100%;cursor:move;}.streamingVideoCursorPan {width:100%;height:100%;cursor:url(data:application/octet-stream;base64,AAACAAEAICAAAA8ADwCoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////8AAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////////////////////////////////4B///+Af///AH///gA///wAP//8AB///gAf//8AH//+AB///gA///8k///////////////////////////////////////////////////////////////////////w==),auto;}.streamingVideoCursorPointer {width:100%;height:100%;cursor:url(data:application/octet-stream;base64,AAACAAEAICAAAA0ACACoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////////////////////////////////4B///+Af///AH///gA///wAP//8AB//+AAf//AAD//wAA//+AAP//4AD//+AF///gT///4f///+H////h////8////////////////////////////////////////w==),auto;}.streamingVideoCursorRotate {width:100%;height:100%;cursor:url(data:application/octet-stream;base64,AAACAAEAICAAAA8ADwCoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAD///////////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAD///////////////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////////8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////////////////////8AAAD///8AAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////////////////////////////////////4B///+Af///AH//hgAh/wwAMP4cABh+HgAYfh8AGH4eABh+HgA4eAck4BwP//A+H//4fz///P/////////////////////////////////////////////////////w==),auto;}")}css(a){let b= +document.createElement("style");try{b.appendChild(document.createTextNode(a))}catch(c){b.styleSheet.cssText=a}(a=document.getElementsByTagName("head")[0])?a.appendChild(b):console.error("[Cloud] No head element found, cannot create css.")}}class gc extends ia{constructor(a){super(a);this.elContainer=document.createElement("div");this.elContainer.id=`taskWaiting_${this.uid}`;this.elContainer.className="__taskWaiting";this.elContainer.oncontextmenu=new Function("return false");this.elContainer.onselectstart= +new Function("return false");this.appendElement(this.elContainer);this.elText=document.createElement("div");this.elText.style.marginBottom="15px";this.elText.innerText="dddd";this.elContainer.appendChild(this.elText);this.elButton=document.createElement("input");this.elButton.type="button";this.elButton.value=H.getString("RestartInstNow");this.elButton.onclick=()=>{this.player.setInstanceOptions({iid:this.player.options.iid,reset:!0})};this.elContainer.appendChild(this.elButton);H.onLanguageChangedCallbacks.push(()=> +{this.elButton.value=H.getString("RestartInstNow")});this.setMode(0)}setMode(a){this._mode=a;0===a?this.elContainer.style.background="transparent":(this.elContainer.style.background="rgba(64,64,64,0.5)",this.elContainer.style.height="26px",this.elContainer.style.lineHeight="26px")}destroy(){this.elContainer&&(this.removeElement(this.elContainer),this.elContainer=null)}updateText(a){this.elText&&(this.elText.innerText=a,this.show())}show(){this.elContainer.className="__taskWaiting";this.elContainer.style.display= +"block"}hide(){this.elContainer.className="__taskWaiting __fadeoutComp";setTimeout(()=>this.elContainer.style.display="none",500)}setPosition(a,b,c,e){if(this.elContainer)if(a||(a=this.container.getBoundingClientRect()),0==this._mode){var d=a.width/2-150;0>d&&(d=10);this.elContainer.style.left=d+"px";this.elContainer.style.top=a.height/2+"px"}else d=0,b&&d++,c&&d++,e&&d++,a=a.height-32,this.elContainer.style.left=(0==d?5:1==d?38:2==d?70:102)+"px",this.elContainer.style.top=a+"px"}}class hc extends ia{constructor(a){super(a); +this.create()}create(){if(!this.el){var a=[];a.push(H.getString("LeftClickTip"));a.push(H.getString("RightClickTip"));a.push(H.getString("MiddleClickTip"));a=a.join("\n");this.el=document.createElement("button");this.el.id=`viewHomeButton_${this.uid}`;this.el.className="__viewHomeButton";if(R.isIOSDevice||R.isSafari)this.el.style.backgroundSize="cover";this.el.innerHTML=ca.InitialCamera;this.el.title=a;this.el.oncontextmenu=new Function("return false");this.el.onselectstart=new Function("return false"); +this.el.onclick=b=>this.player.viewHome(0);this.el.onmousedown=b=>{0!=b.button&&this.player.viewHome(b.button);b.preventDefault()};this.appendElement(this.el)}}destroy(){this.el&&(this.removeElement(this.el),this.el=null)}setPosition(a,b,c){a||(a=this.container.getBoundingClientRect());if(this.el){let e=5;if(b&&c)e=70;else if(b||c)e=38;this.el.style.left=e+"px";this.el.style.top=`${a.height-32}px`}}}var va=0;class ic{constructor(a,b){if(a){this.host=a;this.options=b;ka.processParams(this.options); +H.setLanguage();this.uid=++va;this.options.apiOptions.player=this;this.api=new ra(null,this.options.apiOptions);if(this.options.domId)if(a=wa(this.options.domId))this.container=document.createElement("div"),this.container.style="position:relative;width:100%;height:100%;",a.innerHTML="",a.appendChild(this.container);else if("loading"==document.readyState){console.error(H.getString("DomLoading"));return}if(this.hasVideo=!!this.container)this.styleManager=new fc,this.createWidgetsInConstructor(),this.canAdaptiveResolution= +!1,this.lastResizeTime=Date.now(),this.orientationChangeTimeout=void 0;this.constructUrlAndConnect();this.resetInteractTimestamp()}else console.error("[DigitalTwinPlayer] The parameter `host` cannot be empty!")}constructUrlAndConnect(){this.logStartupInfo(`host: ${this.host}`);this.useHttps="https:"==location.protocol||this.options.useHttps;this.url=`${this.useHttps?"wss":"ws"}://${this.host}/player?hasVideo=${this.hasVideo}`;this.options.offer&&(this.url+="&offer=1");this.options.iid&&(this.url+= +"&iid="+this.options.iid);this.options.pid&&(this.url+="&pid="+this.options.pid);this.options.password&&(this.url+="&password="+this.options.password);if("object"==typeof this.options.urlExtraInfo)for(let a in this.options.urlExtraInfo)this.url+="&"+a+"="+this.options.urlExtraInfo[a];this.options.reset&&(this.url+="&reset=1",this.options.reset=!1);setTimeout(()=>this.connectSignallingServer(),200)}callEvent(a,b,c){a=this.options.events[a];"function"==typeof a&&a(b,c)}getHost(){return this.host}getAPI(){return this.api}getInstanceInfo(){return this.paramInfo}getVideoElement(){let a; +return null==(a=this.htmlVideo)?void 0:a.video}getVideoElementSize(){let a=this.getVideoElement();return{width:null==a?void 0:a.clientWidth,height:null==a?void 0:a.clientHeight}}getVideoStreamSize(){return{width:this.htmlVideo.videoWidth(),height:this.htmlVideo.videoHeight()}}getVideoSize(){return this.getVideoStreamSize()}screen2World(a,b,c){let e=this.getVideoElementSize(),d=this.getVideoStreamSize(),h=0,g=0,q=d.height/d.width;e.height/e.width>q?g=-(e.width*q-e.height)/2:h=-(e.height/q-e.width)/ +2;a=d.width/(e.width-2*h)*(a-h);b=d.height/(e.height-2*g)*(b-g);return this.getAPI().coord.screen2World(a,b,c)}world2Screen(a,b,c,e){const d=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){let h=yield __g.coord.world2Screen(a,b,c,e),g=d.getVideoElementSize(),q=d.getVideoStreamSize(),k=0,f=0,l=q.height/q.width;g.height/g.width>l?f=-(g.width*l-g.height)/2:k=-(g.height/l-g.width)/2;h.screenPosition=[h.screenPosition[0]/(q.width/(g.width-2*k))+k,h.screenPosition[1]/(q.height/(g.height- +2*f))+f];return h})}setResolution(a,b){if(this.streamerAdaptive){window.devicePixelRatio&&(a*=window.devicePixelRatio,b*=window.devicePixelRatio);if(4096this.streamerResX||b>this.streamerResY)&&(b=a/b,b>=this.streamerResX/this.streamerResY?(a=this.streamerResX,b=this.streamerResX/b):(a=this.streamerResY*b,b=this.streamerResY));a=Math.floor(a);b=Math.floor(b);var c=this.htmlVideo.videoWidth(), +e=this.htmlVideo.videoHeight();if(a!=c&&a+1!=c&&a-1!=c||b!=e&&b+1!=e&&b-1!=e){if(this.lastWidth&&this.lastHeight&&(c=Math.abs(this.lastWidth-a),e=Math.abs(this.lastHeight-b),(0!=c||0!=e)&&4>c&&4>e))return;this.lastWidth=a;this.lastHeight=b;this.rtc&&this.rtc.updateRenderResolution(a,b);return[a,b]}}}destroy(a){console.log(`call DigitalTwinPlayer.destroy: ${a||" "}`);if(!this.isDestroyed){va--;this.isDestroyed=!0;this.destroyReason=a;var b;null==(b=this.rtc)||b.close();var c;null==(c=this.signallingConnection)|| +c.close()}}setKeyEventTarget(a){let b;null==(b=this.htmlVideo)||b.setKeyEventTarget(a)}setKeyEventReceiver(a){this.setKeyEventTarget(a)}resize(){if(this.container){this.rect=this.container.getBoundingClientRect();if(this.bNeedReposUI||!this.oldRect||this.oldRect.width!=this.rect.width||this.oldRect.height!=this.rect.height){this.bNeedReposUI=!1;this.oldRect=this.rect;let b;null==(b=this.startupInfo)||b.setPosition(this.rect);let c;null==(c=this.liveStatus)||c.setPosition(this.rect);let e;null==(e= +this.fullscreenButton)||e.setPosition(this.rect,this.options.ui.statusButton);let d;null==(d=this.homeButton)||d.setPosition(this.rect,this.options.ui.statusButton,this.options.ui.fullscreenButton);let h;null==(h=this.taskListBar)||h.setPosition(this.rect,this.options.ui.statusButton,this.options.ui.fullscreenButton,this.options.ui.homeButton)}if(this.htmlVideo.valid()){this.canAdaptiveResolution&&(console.warn("set res..."),this.setResolution(this.htmlVideo.clientWidth(),this.htmlVideo.clientHeight())); +var a;null==(a=this.htmlVideo)||a.resize(this.streamerAdaptive&&this.canAdaptiveResolution)}}}setInstanceOptions(a){const b=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var c=a.pid==b.options.pid&&a.iid==b.options.iid||!a.pid&&a.iid==b.options.iid||!a.iid&&a.pid==b.options.pid;if(c&&!a.reset)b.api.log("setInstanceOptions: no change.");else{if(!c){c=(!a.iid||a.iid==b.options.iid)&&a.pid!=b.options.pid;if(b.streamerLocked&&c){b.api.log(H.getString("CannotChangeProject"));return}c= +yield b.signallingConnection.checkParams(a);if(null!==c){if(!1===c.iid){b.api.log(`iid(${a.iid})${H.getString("InstanceNotExist")}`);return}if(!1===c.pid){b.api.log(`pid(${a.pid})${H.getString("ProjectNotExist")}`);return}}}b.destroy();b.options.iid=a.iid;b.options.pid=a.pid;b.options.reset=a.reset;b.constructUrlAndConnect()}})}set fullscreen(a){a?R.fullscreen(this.container):R.exitFullscreen()}get fullscreen(){return!!document.fullscreenElement}setActionEventEnabled(a){let b;null==(b=this.htmlVideo)|| +b.setActionEventEnabled(a)}onApiReady(){this.setStatus(V.OnReady);let a;null==(a=this.signallingConnection)||a.sendReady();1==this.options.ui.mainUI?this.api.settings.setMainUIVisibility(!0):0==this.options.ui.mainUI&&this.api.settings.setMainUIVisibility(!1);1==this.options.ui.campass?this.api.settings.setCampassVisible(!0):0==this.options.ui.campass&&this.api.settings.setCampassVisible(!1)}sendApi(a){if(a){let b;null==(b=this.rtc)||b.sendApi(a)}}onMainThreadBusy(a){if(1===a.busy){let b="BUSY! ", +c=this.api.apiQueue.queueSize(),e=this.api.apiQueue.dataSize();0{if(Date.now()-this.timeOfLastInteraction> +6E4*this.kickOutInMinutes){let g=H.getString("DisconnectForIdle");this.destroy(g);console.warn(g);clearInterval(h)}},2E4)}this.nodeInfoArray=[`${H.getString("NodeInfo")}`];e&&this.nodeInfoArray.push(`\t${H.getString("Host")}`+e);c&&this.nodeInfoArray.push(`\t${H.getString("HostAddress")}`+c);b&&this.nodeInfoArray.push(`\t\u3000${H.getString("Project")}`+b);this.options.pid&&this.nodeInfoArray.push(`\t${H.getString("ProjectId")}`+this.options.pid);this.nodeInfoArray.push(`\t${H.getString("IID")}`+ +this.options.iid);this.nodeInfoArray.push(`\t${H.getString("Adaptive")}`+this.streamerAdaptive);this.nodeInfoArray.push(`\t${H.getString("LimitMaxRes")}`+this.streamerLimitMaxResolution);this.nodeInfoArray.push(`\t${H.getString("Resolution")}${this.streamerResX}x${this.streamerResY}`);let d;null==(d=this.liveStatus)||d.updateButtonTip(this.nodeInfoArray.join("\n"));this.api.log(this.nodeInfoArray.join("\n\t"))}logStartupInfo(a){if(a){var b=new Date;a=`[${pa(b.getHours(),2)+":"+pa(b.getMinutes(),2)+ +":"+pa(b.getSeconds(),2)+"."+pa(b.getMilliseconds(),3)}] ${a}`;var c;null==(c=this.startupInfo)||c.log(a);1{let b;return null==(b=this.eventsPanel)? +void 0:b.appendText(a)},onVideoLoaded:()=>{this.logStartupInfo("video: loadedmetadata");this.createWidgets();this.callEvent("onVideoLoaded");this.resize()},onMButtonDoubleClick:(a,b)=>{let c;null==(c=this.liveStatus)||c.setPanelVisible(a,b)}});this.options.ui.statusIndicator&&(this.statusIndicator=new ec(this));this.options.ui.startupInfo&&(this.startupInfo=new dc(this),this.logStartupInfo("sdk version: "+this.api.getVersion()),this.logStartupInfo("uid: "+this.uid));this.resizeObserver=new ResizeObserver(Ga(()=> +this.resize(),500));this.resizeObserver.observe(this.container)}createWidgets(){this.options.ui.statusButton&&(this.liveStatus=new cc(this,this.playerCount,this.nodeInfoArray.join("\n")));this.options.ui.fullscreenButton&&(this.fullscreenButton=new ac(this));this.options.ui.homeButton&&(this.homeButton=new hc(this));this.taskListBar&&this.taskListBar.setMode(1)}destroyWidgets(){this.liveStatus&&(this.liveStatus.destroy(),this.liveStatus=null);this.fullscreenButton&&(this.fullscreenButton.destroy(), +this.fullscreenButton=null);this.homeButton&&(this.homeButton.destroy(),this.homeButton=null);this.eventsPanel&&(this.eventsPanel.destroy(),this.eventsPanel=null);this.taskListBar&&(this.taskListBar.destroy(),this.taskListBar=null)}isQualityController(){return this.bQualityController}initWebRtcPlayer(a){H.setLanguage(a.language);this.rtc=new Zb({useStats:this.hasVideo&&(this.options.ui.statusButton||this.options.events.onRtcStatsReport),peerConnectionOptions:a.peerConnectionOptions,events:{onlog:b=> +this.logStartupInfo(b),ontrack:b=>{let c;null==(c=this.htmlVideo)||c.setTrack(b)},onicecandidate:b=>{let c;return null==(c=this.signallingConnection)?void 0:c.sendCandidate(b)},onOfferCreated:b=>{let c;return null==(c=this.signallingConnection)?void 0:c.sendOffer(b.sdp,this.hasVideo)},onAnswerCreated:b=>{let c;return null==(c=this.signallingConnection)?void 0:c.send(b)},onstats:b=>{let c;null==(c=this.liveStatus)||c.updateWebRtcStats(b);this.callEvent("onRtcStatsReport",b)},ondatachannelopen:()=> +{this.setStatus(V.RTC_Opened);this.hasVideo&&(this.rtc.requestQualityControl(),this.liveStatus&&this.rtc.requestInitialSettings());this.api.onConnectionOpen()},ondatachannelclose:b=>this.api.onConnectionClose(b),ondatachannelerror:b=>this.api.onConnectionClose(b.error),ondatachannelmessage:(b,c)=>{switch(b){case "ResponseAPI":this.api.onConnectionMessage(c);break;case "InitialSettings":let e;null==(e=this.liveStatus)||e.updateInitialSettings(c);break;case "VideoEncoderAvgQP":let d;if(null==(d=this.liveStatus)? +0:d.visible)b=(new TextDecoder("utf-16")).decode(c.data.slice(1)),(b=JSON.parse(b))&&this.liveStatus.updateQPAndRenderFPS(b.qp,b.renderFPS);break;case "QualityControlOwnership":this.bQualityController=c;let h;null==(h=this.liveStatus)||h.updatePlayerId()}}}});this.hasVideo&&this.htmlVideo.setWebRtcPlayer(this.rtc);this.logStartupInfo("setting up...");this.options.offer&&this.rtc.createOffer();this.hasVideo&&(this.htmlVideo.registerKeyboardEvents(),this.htmlVideo.registerMouseEvents(),this.htmlVideo.registerTouchEvents())}connectSignallingServer(){this.setStatus(V.WS_Connecting); +this.signallingConnection=new Wb({onopen:()=>this.setStatus(V.WS_Connected),onclose:a=>this.handleSignallingClose(a),onerror:()=>{this.setStatus(V.WS_Disconnected)},onmessage:a=>{switch(a.type){case "config":this.initWebRtcPlayer(a);break;case "answer":this.playerId=a.playerId;this.rtc&&this.rtc.onReceiveAnswer(a);break;case "offer":this.playerId=a.playerId;this.rtc&&this.rtc.onReceiveOffer(a);break;case "iceCandidate":this.rtc&&this.rtc.onIceCandidate(a.candidate);break;case "paramInfo":this.receiveParamInfo(a); +break;case "status":this.handleSignallingMessage_Status(a);break;case "playerCount":this.handleSignallingMessage_PlayerCount(a)}}});this.signallingConnection.connect(this.url)}handleSignallingClose(a){this.destroyWidgets();this.callEvent("onConnClose",a);this.startupInfo&&this.startupInfo.setVisible(!0);this.api.onConnectionClose(a);this.rtc&&this.rtc.close();let b="";this.isDestroyed?(b=H.getString("Destroyed"),b=this.destroyReason?b+(": "+this.destroyReason):b+"."):(b="closed: ",a.code&&(b+=a.code), +a.reason?b+=" "+a.reason:1006==a.code&&(b+=" "+H.getString("Disconnect")));this.setStatus(V.WS_Disconnected,b);Ia(a.code)||this.destroy();this.isDestroyed||(this.logStartupInfo(H.getString("Reconnect5s")),this.startupInfo.setDelayClear(!0),setTimeout(()=>this.connectSignallingServer(),5E3));a.code==sa.instance_is_busy&&confirm(H.getString("RestartAndRetry"))&&this.setInstanceOptions({iid:this.busyIId,reset:!0})}handleSignallingMessage_Status(a){let b=Ha(a.state);b&&this.logStartupInfo(b);a.state=== +da.StartFailed?(console.error(a.info),this.options.ui.startupInfo&&setTimeout(()=>alert(a.info),500)):a.state==da.ConfirmBusy&&(this.busyIId=a.info)}handleSignallingMessage_PlayerCount(a){this.playerCount=a.count;let b;null==(b=this.liveStatus)||b.updateConnectionCount(this.playerCount);(this.canAdaptiveResolution=1===a.count)&&this.resize()}}v.APIErrorCode={OK:0,InvalidParameters:1,InternalError:2,ResourceNotFound:3,AcpProjWKTNotSet:4,CoordinateConversionFailed:5,IDExists:6,InvalidRequestType:7, +InvalidRequestString:8,NoCommand:9,DataTypeNotSupport:10,InvalidOperation:11,ProjectNotOpened:12,CodeMax:65535};v.ActionMode={None:0,Follow:1,FollowBehindAndAbove:2,FollowBehind:3,FollowAbove:4,FollowBellow:5,FollowLeft:6,FollowRight:7};v.AnimatedImageButtonData=Qa;v.BPFuncParamType={Bool:0,UInt8:1,Int32:2,Float:3,Double:4,String:5,Color:6,Vector2D:7,Vector:8,Rotator:9,IntArray:10,StringArray:11,VectorArray:12,Coordinate:13,CoordinateArray:14,FloatArray:15};v.BPFunctionData=db;v.BeamData=Ra;v.CameraTourData= +fb;v.CameraTourKeyFrame=eb;v.CloudStatus=V;v.Color={LightPink:"RGB(255,182,193)",Pink:"RGB(255,192,203)",Crimson:"RGB(220,20,60)",LavenderBlush:"RGB(255,240,245)",PaleVioletRed:"RGB(219,112,147)",HotPink:"RGB(255,105,180)",DeepPink:"RGB(255,20,147)",MediumVioletRed:"RGB(199,21,133)",Orchid:"RGB(218,112,214)",Thistle:"RGB(216,191,216)",plum:"RGB(221,160,221)",Violet:"RGB(238,130,238)",Magenta:"RGB(255,0,255)",Fuchsia:"RGB(255,0,255)",DarkMagenta:"RGB(139,0,139)",Purple:"RGB(128,0,128)",MediumOrchid:"RGB(186,85,211)", +DarkVoilet:"RGB(148,0,211)",DarkOrchid:"RGB(153,50,204)",Indigo:"RGB(75,0,130)",BlueViolet:"RGB(138,43,226)",MediumPurple:"RGB(147,112,219)",MediumSlateBlue:"RGB(123,104,238)",SlateBlue:"RGB(106,90,205)",DarkSlateBlue:"RGB(72,61,139)",Lavender:"RGB(230,230,250)",GhostWhite:"RGB(248,248,255)",Blue:"RGB(0,0,255)",MediumBlue:"RGB(0,0,205)",MidnightBlue:"RGB(25,25,112)",DarkBlue:"RGB(0,0,139)",Navy:"RGB(0,0,128)",RoyalBlue:"RGB(65,105,225)",CornflowerBlue:"RGB(100,149,237)",LightSteelBlue:"RGB(176,196,222)", +LightSlateGray:"RGB(119,136,153)",SlateGray:"RGB(112,128,144)",DoderBlue:"RGB(30,144,255)",AliceBlue:"RGB(240,248,255)",SteelBlue:"RGB(70,130,180)",LightSkyBlue:"RGB(135,206,250)",SkyBlue:"RGB(135,206,235)",DeepSkyBlue:"RGB(0,191,255)",LightBLue:"RGB(173,216,230)",PowDerBlue:"RGB(176,224,230)",CadetBlue:"RGB(95,158,160)",Azure:"RGB(240,255,255)",LightCyan:"RGB(225,255,255)",PaleTurquoise:"RGB(175,238,238)",Cyan:"RGB(0,255,255)",Aqua:"RGB(212,242,231)",DarkTurquoise:"RGB(0,206,209)",DarkSlateGray:"RGB(47,79,79)", +DarkCyan:"RGB(0,139,139)",Teal:"RGB(0,128,128)",MediumTurquoise:"RGB(72,209,204)",LightSeaGreen:"RGB(32,178,170)",Turquoise:"RGB(64,224,208)",Auqamarin:"RGB(127,255,170)",MediumAquamarine:"RGB(0,250,154)",MediumSpringGreen:"RGB(0,255,127)",MintCream:"RGB(245,255,250)",SpringGreen:"RGB(60,179,113)",SeaGreen:"RGB(46,139,87)",Honeydew:"RGB(240,255,240)",LightGreen:"RGB(144,238,144)",PaleGreen:"RGB(152,251,152)",DarkSeaGreen:"RGB(143,188,143)",LimeGreen:"RGB(50,205,50)",Lime:"RGB(0,255,0)",ForestGreen:"RGB(34,139,34)", +Green:"RGB(0,128,0)",DarkGreen:"RGB(0,100,0)",Chartreuse:"RGB(127,255,0)",LawnGreen:"RGB(124,252,0)",GreenYellow:"RGB(173,255,47)",OliveDrab:"RGB(85,107,47)",Beige:"RGB(245,245,220)",LightGoldenrodYellow:"RGB(250,250,210)",Ivory:"RGB(255,255,240)",LightYellow:"RGB(255,255,224)",Yellow:"RGB(255,255,0)",Olive:"RGB(128,128,0)",DarkKhaki:"RGB(189,183,107)",LemonChiffon:"RGB(255,250,205)",PaleGodenrod:"RGB(238,232,170)",Khaki:"RGB(240,230,140)",Gold:"RGB(255,215,0)",Cornislk:"RGB(255,248,220)",GoldEnrod:"RGB(218,165,32)", +FloralWhite:"RGB(255,250,240)",OldLace:"RGB(253,245,230)",Wheat:"RGB(245,222,179)",Moccasin:"RGB(255,228,181)",Orange:"RGB(255,165,0)",PapayaWhip:"RGB(255,239,213)",BlanchedAlmond:"RGB(255,235,205)",NavajoWhite:"RGB(255,222,173)",AntiqueWhite:"RGB(250,235,215)",Tan:"RGB(210,180,140)",BrulyWood:"RGB(222,184,135)",Bisque:"RGB(255,228,196)",DarkOrange:"RGB(255,140,0)",Linen:"RGB(250,240,230)",Peru:"RGB(205,133,63)",PeachPuff:"RGB(255,218,185)",SandyBrown:"RGB(244,164,96)",Chocolate:"RGB(210,105,30)", +SaddleBrown:"RGB(139,69,19)",SeaShell:"RGB(255,245,238)",Sienna:"RGB(160,82,45)",LightSalmon:"RGB(255,160,122)",Coral:"RGB(255,127,80)",OrangeRed:"RGB(255,69,0)",DarkSalmon:"RGB(233,150,122)",Tomato:"RGB(255,99,71)",MistyRose:"RGB(255,228,225)",Salmon:"RGB(250,128,114)",Snow:"RGB(255,250,250)",LightCoral:"RGB(240,128,128)",RosyBrown:"RGB(188,143,143)",IndianRed:"RGB(205,92,92)",Red:"RGB(255,0,0)",Brown:"RGB(165,42,42)",FireBrick:"RGB(178,34,34)",DarkRed:"RGB(139,0,0)",Maroon:"RGB(128,0,0)",White:"RGB(255,255,255)", +WhiteSmoke:"RGB(245,245,245)",Gainsboro:"RGB(220,220,220)",LightGrey:"RGB(211,211,211)",Silver:"RGB(192,192,192)",DarkGray:"RGB(169,169,169)",Gray:"RGB(128,128,128)",DimGray:"RGB(105,105,105)",Black:"RGB(0,0,0)"};v.CommandType=p;v.CustomObjectData=$a;v.CustomObjectData2=ab;v.CustomTagData=Na;v.DecalData=Ya;v.DigitalTwinAPI=ra;v.DigitalTwinPlayer=ic;v.DynamicWaterData=cb;v.HeatMapPointData=Ka;v.HighlightAreaData=Oa;v.ImageButtonData=Pa;v.LayerVisibleData=Ja;v.MapMode={Campass:0,SmallMap:1,BigMap:2}; +v.MeasurementMode={Coordinate:1,Linear:2,Horizontal:3,Vertical:4,MultiPoint:5,TerrainArea:6};v.MousePickMask=qa;v.ODLineData=Va;v.PanelType={ViewshedAnalysis:0,SkylineAnalysis:1,ViewDomeAnalysis:2,VisiblityAnalysis:3,FloodFillAnalysis:4,SolarAnalysis:5,CutFillAnalysis:6,TerrainSlopeAnalysi:7,ContourLineAnalysis:8};v.PanoramaData=Xa;v.Polygon3DData=Ta;v.Polygon3DStyle={Wave:0,LoopLine:1,Gradual:2,DynamicGradual:3,WaveTransparent:4,WideWave:5,RotateArrow:6,RotateLine:7,RotateGradual:8,SingleColor:9, +SingleColorWithLight:10};v.PolygonData=Wa;v.PolygonStyle={SingleColor:0,CirclePoint:1,Volumn:2,Gradual:3,DynamicGradual:4,WaveTransparent:5,WideWave:6,RotateArrow:7,RotateLine:8,RotateGradual:9,OnTerrain:10};v.PolylineData=Ua;v.PolylineStyle={Arrow:0,Arrow1:1,Flow:2,Beam:3,Normal:4,OnTerrain:5,DottedNormal:6,DottedCircle:7};v.RadiationPointData=Sa;v.RendererType={SimpleRenderer:0,UniqueValueRenderer:1,ClassBreaksRenderer:2};v.TagData=La;v.TileLayerActorData=fa;v.TileLayerData=Za;v.VERSION="5.4";v.VehicleViewMode= +{FirstPerson:0,ThirdPerson:1};v.VideoProjectionData=bb;v.Viewport=ba;v.WaterFlowFieldStyle={HeatMap:0,Water:1};v.WebUIData=Ma;v.__onCefResponse=function(a,b){if(ua)ua.onConnectionMessage(a,b)};Object.defineProperty(v,"__esModule",{value:!0});return v}({}); +(()=>{if("undefined"!=typeof module&&module.exports)module.exports=acapi;else if("function"==typeof define&&define.amd)define(function(){return acapi});else{window.AcApiVersion=acapi.VERSION;acapi.AirCityAPI=acapi.DigitalTwinAPI;acapi.AirCityPlayer=acapi.DigitalTwinPlayer;for(let v in acapi)"VERSION"!=v&&(window[v]=acapi[v]);acapi.DigitalTwinAPI.__onApiConstructed=v=>window.__g=v}})(); diff --git a/src/assets/fonts/DIN-Regular.otf b/src/assets/fonts/DIN-Regular.otf new file mode 100644 index 0000000..cb5f1c5 Binary files /dev/null and b/src/assets/fonts/DIN-Regular.otf differ diff --git a/src/assets/fonts/三极韵律圆体.ttf b/src/assets/fonts/三极韵律圆体.ttf new file mode 100644 index 0000000..f5fe806 Binary files /dev/null and b/src/assets/fonts/三极韵律圆体.ttf differ diff --git a/src/assets/fonts/微软雅黑.ttf b/src/assets/fonts/微软雅黑.ttf new file mode 100644 index 0000000..ea3c090 Binary files /dev/null and b/src/assets/fonts/微软雅黑.ttf differ diff --git a/src/assets/icons/png/admin-title-icon.png b/src/assets/icons/png/admin-title-icon.png new file mode 100644 index 0000000..59382be Binary files /dev/null and b/src/assets/icons/png/admin-title-icon.png differ diff --git a/src/assets/icons/png/alert-icon.png b/src/assets/icons/png/alert-icon.png new file mode 100644 index 0000000..eed6790 Binary files /dev/null and b/src/assets/icons/png/alert-icon.png differ diff --git a/src/assets/icons/png/back-icon.png b/src/assets/icons/png/back-icon.png new file mode 100644 index 0000000..d5248b2 Binary files /dev/null and b/src/assets/icons/png/back-icon.png differ diff --git a/src/assets/icons/png/car-icon.png b/src/assets/icons/png/car-icon.png new file mode 100644 index 0000000..bd84c0c Binary files /dev/null and b/src/assets/icons/png/car-icon.png differ diff --git a/src/assets/icons/png/duty-icon.png b/src/assets/icons/png/duty-icon.png new file mode 100644 index 0000000..f851608 Binary files /dev/null and b/src/assets/icons/png/duty-icon.png differ diff --git a/src/assets/icons/png/env/env-title-bg.png b/src/assets/icons/png/env/env-title-bg.png new file mode 100644 index 0000000..dfb6ba1 Binary files /dev/null and b/src/assets/icons/png/env/env-title-bg.png differ diff --git a/src/assets/icons/png/env/env-title-icon.png b/src/assets/icons/png/env/env-title-icon.png new file mode 100644 index 0000000..7356a7b Binary files /dev/null and b/src/assets/icons/png/env/env-title-icon.png differ diff --git a/src/assets/icons/png/logo.png b/src/assets/icons/png/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/src/assets/icons/png/logo.png differ diff --git a/src/assets/icons/png/message-icon.png b/src/assets/icons/png/message-icon.png new file mode 100644 index 0000000..f17961c Binary files /dev/null and b/src/assets/icons/png/message-icon.png differ diff --git a/src/assets/icons/png/point-icon.png b/src/assets/icons/png/point-icon.png new file mode 100644 index 0000000..813c53d Binary files /dev/null and b/src/assets/icons/png/point-icon.png differ diff --git a/src/assets/icons/png/point.png b/src/assets/icons/png/point.png new file mode 100644 index 0000000..be3aa15 Binary files /dev/null and b/src/assets/icons/png/point.png differ diff --git a/src/assets/icons/png/power-icon.png b/src/assets/icons/png/power-icon.png new file mode 100644 index 0000000..9885844 Binary files /dev/null and b/src/assets/icons/png/power-icon.png differ diff --git a/src/assets/icons/png/video-icon.png b/src/assets/icons/png/video-icon.png new file mode 100644 index 0000000..bdd18b8 Binary files /dev/null and b/src/assets/icons/png/video-icon.png differ diff --git a/src/assets/icons/svg/404.svg b/src/assets/icons/svg/404.svg new file mode 100644 index 0000000..6df5019 --- /dev/null +++ b/src/assets/icons/svg/404.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/blind-plate.svg b/src/assets/icons/svg/blind-plate.svg new file mode 100644 index 0000000..6f2eaa6 --- /dev/null +++ b/src/assets/icons/svg/blind-plate.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/mangbanchoudu + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/bounds.svg b/src/assets/icons/svg/bounds.svg new file mode 100644 index 0000000..a917e66 --- /dev/null +++ b/src/assets/icons/svg/bounds.svg @@ -0,0 +1,29 @@ + + + icon/20px/层级图标/电子围栏 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/break-road.svg b/src/assets/icons/svg/break-road.svg new file mode 100644 index 0000000..71d07cf --- /dev/null +++ b/src/assets/icons/svg/break-road.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/duanlu + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/car.svg b/src/assets/icons/svg/car.svg new file mode 100644 index 0000000..ae5bc2b --- /dev/null +++ b/src/assets/icons/svg/car.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/车辆定位 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/check-point.svg b/src/assets/icons/svg/check-point.svg new file mode 100644 index 0000000..bf8e8bb --- /dev/null +++ b/src/assets/icons/svg/check-point.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/卡口设施 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/company.svg b/src/assets/icons/svg/company.svg new file mode 100644 index 0000000..1e7d543 --- /dev/null +++ b/src/assets/icons/svg/company.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/dangrous.svg b/src/assets/icons/svg/dangrous.svg new file mode 100644 index 0000000..5a3df8c --- /dev/null +++ b/src/assets/icons/svg/dangrous.svg @@ -0,0 +1,20 @@ + + + icon/20px/层级图标/重大危险源 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/dangrousFile.svg b/src/assets/icons/svg/dangrousFile.svg new file mode 100644 index 0000000..3672f77 --- /dev/null +++ b/src/assets/icons/svg/dangrousFile.svg @@ -0,0 +1,25 @@ + + + icon/32/企业应急档案 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/duty.svg b/src/assets/icons/svg/duty.svg new file mode 100644 index 0000000..bb20fe5 --- /dev/null +++ b/src/assets/icons/svg/duty.svg @@ -0,0 +1,19 @@ + + + 值守平台 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/empty-car.svg b/src/assets/icons/svg/empty-car.svg new file mode 100644 index 0000000..8428e34 --- /dev/null +++ b/src/assets/icons/svg/empty-car.svg @@ -0,0 +1,19 @@ + + + icon/20px/层级图标/空载车辆 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/envFile.svg b/src/assets/icons/svg/envFile.svg new file mode 100644 index 0000000..049ccf5 --- /dev/null +++ b/src/assets/icons/svg/envFile.svg @@ -0,0 +1,28 @@ + + + icon/32/企业环保档案 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/fixed.svg b/src/assets/icons/svg/fixed.svg new file mode 100644 index 0000000..d2e8012 --- /dev/null +++ b/src/assets/icons/svg/fixed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/forbid-space.svg b/src/assets/icons/svg/forbid-space.svg new file mode 100644 index 0000000..7d5bf8f --- /dev/null +++ b/src/assets/icons/svg/forbid-space.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/shouxiankongjian + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/four-color.svg b/src/assets/icons/svg/four-color.svg new file mode 100644 index 0000000..b3d39a5 --- /dev/null +++ b/src/assets/icons/svg/four-color.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/icons/svg/four-color2.svg b/src/assets/icons/svg/four-color2.svg new file mode 100644 index 0000000..b3d39a5 --- /dev/null +++ b/src/assets/icons/svg/four-color2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/icons/svg/fq-wrw.svg b/src/assets/icons/svg/fq-wrw.svg new file mode 100644 index 0000000..0960f2f --- /dev/null +++ b/src/assets/icons/svg/fq-wrw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/fs-wrw.svg b/src/assets/icons/svg/fs-wrw.svg new file mode 100644 index 0000000..1c3c41d --- /dev/null +++ b/src/assets/icons/svg/fs-wrw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/fullScreen.svg b/src/assets/icons/svg/fullScreen.svg new file mode 100644 index 0000000..70a0d53 --- /dev/null +++ b/src/assets/icons/svg/fullScreen.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/gas-env.svg b/src/assets/icons/svg/gas-env.svg new file mode 100644 index 0000000..c70dd34 --- /dev/null +++ b/src/assets/icons/svg/gas-env.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/gas-monitor.svg b/src/assets/icons/svg/gas-monitor.svg new file mode 100644 index 0000000..fb2a254 --- /dev/null +++ b/src/assets/icons/svg/gas-monitor.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/气体监测 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/ground-env.svg b/src/assets/icons/svg/ground-env.svg new file mode 100644 index 0000000..329621c --- /dev/null +++ b/src/assets/icons/svg/ground-env.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/heatmap.svg b/src/assets/icons/svg/heatmap.svg new file mode 100644 index 0000000..65233cc --- /dev/null +++ b/src/assets/icons/svg/heatmap.svg @@ -0,0 +1,24 @@ + + + 切片 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/heavy-car.svg b/src/assets/icons/svg/heavy-car.svg new file mode 100644 index 0000000..feb835d --- /dev/null +++ b/src/assets/icons/svg/heavy-car.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/重载车辆 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/hidden-dangrous.svg b/src/assets/icons/svg/hidden-dangrous.svg new file mode 100644 index 0000000..b7d6002 --- /dev/null +++ b/src/assets/icons/svg/hidden-dangrous.svg @@ -0,0 +1,13 @@ + + + icon/20px/层级图标/ct_yinhuan + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/hide.svg b/src/assets/icons/svg/hide.svg new file mode 100644 index 0000000..e088914 --- /dev/null +++ b/src/assets/icons/svg/hide.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/high-sky.svg b/src/assets/icons/svg/high-sky.svg new file mode 100644 index 0000000..0825f9e --- /dev/null +++ b/src/assets/icons/svg/high-sky.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/gaokong + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/hoisting.svg b/src/assets/icons/svg/hoisting.svg new file mode 100644 index 0000000..85fff5f --- /dev/null +++ b/src/assets/icons/svg/hoisting.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/diaozhuang + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/icon_car_0.svg b/src/assets/icons/svg/icon_car_0.svg new file mode 100644 index 0000000..7dcc578 --- /dev/null +++ b/src/assets/icons/svg/icon_car_0.svg @@ -0,0 +1,34 @@ + + + icon/32/访客车辆 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/icon_car_1.svg b/src/assets/icons/svg/icon_car_1.svg new file mode 100644 index 0000000..86fe81d --- /dev/null +++ b/src/assets/icons/svg/icon_car_1.svg @@ -0,0 +1,31 @@ + + + icon/32/普通车辆 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/icon_car_2.svg b/src/assets/icons/svg/icon_car_2.svg new file mode 100644 index 0000000..81d7e17 --- /dev/null +++ b/src/assets/icons/svg/icon_car_2.svg @@ -0,0 +1,30 @@ + + + icon/32/危化品车辆 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/infoFile.svg b/src/assets/icons/svg/infoFile.svg new file mode 100644 index 0000000..9190e40 --- /dev/null +++ b/src/assets/icons/svg/infoFile.svg @@ -0,0 +1,23 @@ + + + icon/32/企业基本信息 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/layer.svg b/src/assets/icons/svg/layer.svg new file mode 100644 index 0000000..c0b2dda --- /dev/null +++ b/src/assets/icons/svg/layer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/make-ground.svg b/src/assets/icons/svg/make-ground.svg new file mode 100644 index 0000000..89d4944 --- /dev/null +++ b/src/assets/icons/svg/make-ground.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/dongtu + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/manage.svg b/src/assets/icons/svg/manage.svg new file mode 100644 index 0000000..c839aef --- /dev/null +++ b/src/assets/icons/svg/manage.svg @@ -0,0 +1,23 @@ + + + 进入后台 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/normal.svg b/src/assets/icons/svg/normal.svg new file mode 100644 index 0000000..28f1a38 --- /dev/null +++ b/src/assets/icons/svg/normal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/peo.svg b/src/assets/icons/svg/peo.svg new file mode 100644 index 0000000..65f4827 --- /dev/null +++ b/src/assets/icons/svg/peo.svg @@ -0,0 +1,20 @@ + + + 切片 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/plan-line.svg b/src/assets/icons/svg/plan-line.svg new file mode 100644 index 0000000..b75764b --- /dev/null +++ b/src/assets/icons/svg/plan-line.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/规划线 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/powerFile.svg b/src/assets/icons/svg/powerFile.svg new file mode 100644 index 0000000..7e23b57 --- /dev/null +++ b/src/assets/icons/svg/powerFile.svg @@ -0,0 +1,18 @@ + + + icon/32/企业能源档案 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/qxs-jk.svg b/src/assets/icons/svg/qxs-jk.svg new file mode 100644 index 0000000..ce2f33f --- /dev/null +++ b/src/assets/icons/svg/qxs-jk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/real-line.svg b/src/assets/icons/svg/real-line.svg new file mode 100644 index 0000000..7735195 --- /dev/null +++ b/src/assets/icons/svg/real-line.svg @@ -0,0 +1,19 @@ + + + icon/20px/层级图标/实控线 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/safe-building.svg b/src/assets/icons/svg/safe-building.svg new file mode 100644 index 0000000..b05aef2 --- /dev/null +++ b/src/assets/icons/svg/safe-building.svg @@ -0,0 +1,16 @@ + + + icon/20px/层级图标/应急设施 + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/safe-goods.svg b/src/assets/icons/svg/safe-goods.svg new file mode 100644 index 0000000..4e145d1 --- /dev/null +++ b/src/assets/icons/svg/safe-goods.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/应急物资 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/safe-line.svg b/src/assets/icons/svg/safe-line.svg new file mode 100644 index 0000000..451f0aa --- /dev/null +++ b/src/assets/icons/svg/safe-line.svg @@ -0,0 +1,16 @@ + + + icon/20px/层级图标/安全线 + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/safe-route.svg b/src/assets/icons/svg/safe-route.svg new file mode 100644 index 0000000..81e6554 --- /dev/null +++ b/src/assets/icons/svg/safe-route.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/疏散路线 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/safeFile.svg b/src/assets/icons/svg/safeFile.svg new file mode 100644 index 0000000..2cd9527 --- /dev/null +++ b/src/assets/icons/svg/safeFile.svg @@ -0,0 +1,18 @@ + + + icon/32/企业安全档案 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/show.svg b/src/assets/icons/svg/show.svg new file mode 100644 index 0000000..1e12287 --- /dev/null +++ b/src/assets/icons/svg/show.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/speed.svg b/src/assets/icons/svg/speed.svg new file mode 100644 index 0000000..a7bfb79 --- /dev/null +++ b/src/assets/icons/svg/speed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/tail-spin.svg b/src/assets/icons/svg/tail-spin.svg new file mode 100644 index 0000000..423591f --- /dev/null +++ b/src/assets/icons/svg/tail-spin.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/icons/svg/tc_cheliang.svg b/src/assets/icons/svg/tc_cheliang.svg new file mode 100644 index 0000000..bd697cc --- /dev/null +++ b/src/assets/icons/svg/tc_cheliang.svg @@ -0,0 +1,9 @@ + + + icon/16/tc_cheliang + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tc_ranliao.svg b/src/assets/icons/svg/tc_ranliao.svg new file mode 100644 index 0000000..6a04b20 --- /dev/null +++ b/src/assets/icons/svg/tc_ranliao.svg @@ -0,0 +1,7 @@ + + + icon/16/tc_ranliao + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tc_renyuan.svg b/src/assets/icons/svg/tc_renyuan.svg new file mode 100644 index 0000000..14439ec --- /dev/null +++ b/src/assets/icons/svg/tc_renyuan.svg @@ -0,0 +1,9 @@ + + + icon/16/tc_renyuan + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tc_yongdian.svg b/src/assets/icons/svg/tc_yongdian.svg new file mode 100644 index 0000000..ec16908 --- /dev/null +++ b/src/assets/icons/svg/tc_yongdian.svg @@ -0,0 +1,7 @@ + + + icon/16/tc_yongdian + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tc_yongshui.svg b/src/assets/icons/svg/tc_yongshui.svg new file mode 100644 index 0000000..6ebe34e --- /dev/null +++ b/src/assets/icons/svg/tc_yongshui.svg @@ -0,0 +1,7 @@ + + + icon/16/tc_yongshui + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tc_zhengqi.svg b/src/assets/icons/svg/tc_zhengqi.svg new file mode 100644 index 0000000..41c28c2 --- /dev/null +++ b/src/assets/icons/svg/tc_zhengqi.svg @@ -0,0 +1,7 @@ + + + icon/16/tc_zhengqi + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/tz-wrw.svg b/src/assets/icons/svg/tz-wrw.svg new file mode 100644 index 0000000..1fde56c --- /dev/null +++ b/src/assets/icons/svg/tz-wrw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/use-e.svg b/src/assets/icons/svg/use-e.svg new file mode 100644 index 0000000..c960260 --- /dev/null +++ b/src/assets/icons/svg/use-e.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/linshiyongdian + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/use-fire.svg b/src/assets/icons/svg/use-fire.svg new file mode 100644 index 0000000..ab6eb7b --- /dev/null +++ b/src/assets/icons/svg/use-fire.svg @@ -0,0 +1,15 @@ + + + icon/20px/层级图标/donghuo + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/video.svg b/src/assets/icons/svg/video.svg new file mode 100644 index 0000000..96e8c3a --- /dev/null +++ b/src/assets/icons/svg/video.svg @@ -0,0 +1,18 @@ + + + icon/20px/层级图标/视频监控 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/svg/water-env.svg b/src/assets/icons/svg/water-env.svg new file mode 100644 index 0000000..3256918 --- /dev/null +++ b/src/assets/icons/svg/water-env.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/img/angleMark.png b/src/assets/img/angleMark.png new file mode 100644 index 0000000..cdd33d2 Binary files /dev/null and b/src/assets/img/angleMark.png differ diff --git a/src/assets/img/avatar.jpg b/src/assets/img/avatar.jpg new file mode 100644 index 0000000..150c17b Binary files /dev/null and b/src/assets/img/avatar.jpg differ diff --git a/src/assets/img/bar_chart_bg.png b/src/assets/img/bar_chart_bg.png new file mode 100644 index 0000000..b47614f Binary files /dev/null and b/src/assets/img/bar_chart_bg.png differ diff --git a/src/assets/img/big-img.png b/src/assets/img/big-img.png new file mode 100644 index 0000000..c70b72a Binary files /dev/null and b/src/assets/img/big-img.png differ diff --git a/src/assets/img/big_bg.png b/src/assets/img/big_bg.png new file mode 100644 index 0000000..2460421 Binary files /dev/null and b/src/assets/img/big_bg.png differ diff --git a/src/assets/img/blue-warning-bg.png b/src/assets/img/blue-warning-bg.png new file mode 100644 index 0000000..1baf6c9 Binary files /dev/null and b/src/assets/img/blue-warning-bg.png differ diff --git a/src/assets/img/close/bo.png b/src/assets/img/close/bo.png new file mode 100644 index 0000000..ebc689f Binary files /dev/null and b/src/assets/img/close/bo.png differ diff --git a/src/assets/img/code.jpg b/src/assets/img/code.jpg new file mode 100644 index 0000000..d4d1db5 Binary files /dev/null and b/src/assets/img/code.jpg differ diff --git a/src/assets/img/dealBg.png b/src/assets/img/dealBg.png new file mode 100644 index 0000000..c00b9c2 Binary files /dev/null and b/src/assets/img/dealBg.png differ diff --git a/src/assets/img/default-icon.png b/src/assets/img/default-icon.png new file mode 100644 index 0000000..11bf80c Binary files /dev/null and b/src/assets/img/default-icon.png differ diff --git a/src/assets/img/default-pop-img.png b/src/assets/img/default-pop-img.png new file mode 100644 index 0000000..6b1be22 Binary files /dev/null and b/src/assets/img/default-pop-img.png differ diff --git a/src/assets/img/eme/arrow.png b/src/assets/img/eme/arrow.png new file mode 100644 index 0000000..2e400c9 Binary files /dev/null and b/src/assets/img/eme/arrow.png differ diff --git a/src/assets/img/eme/eme_Fireaxe.png b/src/assets/img/eme/eme_Fireaxe.png new file mode 100644 index 0000000..7e91926 Binary files /dev/null and b/src/assets/img/eme/eme_Fireaxe.png differ diff --git a/src/assets/img/eme/eme_extinguisher.png b/src/assets/img/eme/eme_extinguisher.png new file mode 100644 index 0000000..9e91088 Binary files /dev/null and b/src/assets/img/eme/eme_extinguisher.png differ diff --git a/src/assets/img/eme/eme_medicinebag.png b/src/assets/img/eme/eme_medicinebag.png new file mode 100644 index 0000000..2336af2 Binary files /dev/null and b/src/assets/img/eme/eme_medicinebag.png differ diff --git a/src/assets/img/eme/fuzi.png b/src/assets/img/eme/fuzi.png new file mode 100644 index 0000000..9e04bb0 Binary files /dev/null and b/src/assets/img/eme/fuzi.png differ diff --git a/src/assets/img/eme/mhq.png b/src/assets/img/eme/mhq.png new file mode 100644 index 0000000..80358b9 Binary files /dev/null and b/src/assets/img/eme/mhq.png differ diff --git a/src/assets/img/eme/wz.png b/src/assets/img/eme/wz.png new file mode 100644 index 0000000..bf5a03a Binary files /dev/null and b/src/assets/img/eme/wz.png differ diff --git a/src/assets/img/eme/xfz-icon.png b/src/assets/img/eme/xfz-icon.png new file mode 100644 index 0000000..8a2d758 Binary files /dev/null and b/src/assets/img/eme/xfz-icon.png differ diff --git a/src/assets/img/energy/dian.png b/src/assets/img/energy/dian.png new file mode 100644 index 0000000..1fed5df Binary files /dev/null and b/src/assets/img/energy/dian.png differ diff --git a/src/assets/img/energy/energyCardBg.png b/src/assets/img/energy/energyCardBg.png new file mode 100644 index 0000000..37b0ff6 Binary files /dev/null and b/src/assets/img/energy/energyCardBg.png differ diff --git a/src/assets/img/energy/energyTitle.png b/src/assets/img/energy/energyTitle.png new file mode 100644 index 0000000..c23cbd8 Binary files /dev/null and b/src/assets/img/energy/energyTitle.png differ diff --git a/src/assets/img/energy/green-arr.png b/src/assets/img/energy/green-arr.png new file mode 100644 index 0000000..709dac3 Binary files /dev/null and b/src/assets/img/energy/green-arr.png differ diff --git a/src/assets/img/energy/mei.png b/src/assets/img/energy/mei.png new file mode 100644 index 0000000..402b05e Binary files /dev/null and b/src/assets/img/energy/mei.png differ diff --git a/src/assets/img/energy/red-arr.png b/src/assets/img/energy/red-arr.png new file mode 100644 index 0000000..27338f8 Binary files /dev/null and b/src/assets/img/energy/red-arr.png differ diff --git a/src/assets/img/energy/shui.png b/src/assets/img/energy/shui.png new file mode 100644 index 0000000..f0a40bc Binary files /dev/null and b/src/assets/img/energy/shui.png differ diff --git a/src/assets/img/energy/zq.png b/src/assets/img/energy/zq.png new file mode 100644 index 0000000..eaa99ab Binary files /dev/null and b/src/assets/img/energy/zq.png differ diff --git a/src/assets/img/env/BenzeneExceedance.png b/src/assets/img/env/BenzeneExceedance.png new file mode 100644 index 0000000..7082b14 Binary files /dev/null and b/src/assets/img/env/BenzeneExceedance.png differ diff --git a/src/assets/img/env/EthanolExceedance.png b/src/assets/img/env/EthanolExceedance.png new file mode 100644 index 0000000..ba7fe4a Binary files /dev/null and b/src/assets/img/env/EthanolExceedance.png differ diff --git a/src/assets/img/env/HCLExceedance.png b/src/assets/img/env/HCLExceedance.png new file mode 100644 index 0000000..1a7f1d9 Binary files /dev/null and b/src/assets/img/env/HCLExceedance.png differ diff --git a/src/assets/img/env/NOExceedance.png b/src/assets/img/env/NOExceedance.png new file mode 100644 index 0000000..a7a7530 Binary files /dev/null and b/src/assets/img/env/NOExceedance.png differ diff --git a/src/assets/img/env/clean-count.png b/src/assets/img/env/clean-count.png new file mode 100644 index 0000000..ef59223 Binary files /dev/null and b/src/assets/img/env/clean-count.png differ diff --git a/src/assets/img/env/clean-year.png b/src/assets/img/env/clean-year.png new file mode 100644 index 0000000..542eb7b Binary files /dev/null and b/src/assets/img/env/clean-year.png differ diff --git a/src/assets/img/env/clean.png b/src/assets/img/env/clean.png new file mode 100644 index 0000000..7ef15a5 Binary files /dev/null and b/src/assets/img/env/clean.png differ diff --git a/src/assets/img/env/count.png b/src/assets/img/env/count.png new file mode 100644 index 0000000..5575c7a Binary files /dev/null and b/src/assets/img/env/count.png differ diff --git a/src/assets/img/env/cycle-bg.png b/src/assets/img/env/cycle-bg.png new file mode 100644 index 0000000..2befa6e Binary files /dev/null and b/src/assets/img/env/cycle-bg.png differ diff --git a/src/assets/img/env/formaldehydeExcessRate.png b/src/assets/img/env/formaldehydeExcessRate.png new file mode 100644 index 0000000..b1863f8 Binary files /dev/null and b/src/assets/img/env/formaldehydeExcessRate.png differ diff --git a/src/assets/img/env/gas-year.png b/src/assets/img/env/gas-year.png new file mode 100644 index 0000000..fa14e6e Binary files /dev/null and b/src/assets/img/env/gas-year.png differ diff --git a/src/assets/img/env/gas.png b/src/assets/img/env/gas.png new file mode 100644 index 0000000..b95cd17 Binary files /dev/null and b/src/assets/img/env/gas.png differ diff --git a/src/assets/img/env/methanolExceedance.png b/src/assets/img/env/methanolExceedance.png new file mode 100644 index 0000000..9248362 Binary files /dev/null and b/src/assets/img/env/methanolExceedance.png differ diff --git a/src/assets/img/env/waste-year.png b/src/assets/img/env/waste-year.png new file mode 100644 index 0000000..487a4f3 Binary files /dev/null and b/src/assets/img/env/waste-year.png differ diff --git a/src/assets/img/env/waste.png b/src/assets/img/env/waste.png new file mode 100644 index 0000000..d0fb1da Binary files /dev/null and b/src/assets/img/env/waste.png differ diff --git a/src/assets/img/env/waterImg.png b/src/assets/img/env/waterImg.png new file mode 100644 index 0000000..15a6df2 Binary files /dev/null and b/src/assets/img/env/waterImg.png differ diff --git a/src/assets/img/heatmap.png b/src/assets/img/heatmap.png new file mode 100644 index 0000000..526d318 Binary files /dev/null and b/src/assets/img/heatmap.png differ diff --git a/src/assets/img/index_video_1.png b/src/assets/img/index_video_1.png new file mode 100644 index 0000000..bcd4a9c Binary files /dev/null and b/src/assets/img/index_video_1.png differ diff --git a/src/assets/img/index_video_2.png b/src/assets/img/index_video_2.png new file mode 100644 index 0000000..16f9f37 Binary files /dev/null and b/src/assets/img/index_video_2.png differ diff --git a/src/assets/img/index_video_3.png b/src/assets/img/index_video_3.png new file mode 100644 index 0000000..c1efc36 Binary files /dev/null and b/src/assets/img/index_video_3.png differ diff --git a/src/assets/img/index_video_4.png b/src/assets/img/index_video_4.png new file mode 100644 index 0000000..6b9235a Binary files /dev/null and b/src/assets/img/index_video_4.png differ diff --git a/src/assets/img/index_video_5.png b/src/assets/img/index_video_5.png new file mode 100644 index 0000000..5a68f08 Binary files /dev/null and b/src/assets/img/index_video_5.png differ diff --git a/src/assets/img/index_video_6.png b/src/assets/img/index_video_6.png new file mode 100644 index 0000000..5c31018 Binary files /dev/null and b/src/assets/img/index_video_6.png differ diff --git a/src/assets/img/index_video_7.png b/src/assets/img/index_video_7.png new file mode 100644 index 0000000..b593f79 Binary files /dev/null and b/src/assets/img/index_video_7.png differ diff --git a/src/assets/img/index_video_8.png b/src/assets/img/index_video_8.png new file mode 100644 index 0000000..7f5fe0c Binary files /dev/null and b/src/assets/img/index_video_8.png differ diff --git a/src/assets/img/large-title-bg.png b/src/assets/img/large-title-bg.png new file mode 100644 index 0000000..ac7c90d Binary files /dev/null and b/src/assets/img/large-title-bg.png differ diff --git a/src/assets/img/loading.png b/src/assets/img/loading.png new file mode 100644 index 0000000..9b2a583 Binary files /dev/null and b/src/assets/img/loading.png differ diff --git a/src/assets/img/logo.png b/src/assets/img/logo.png new file mode 100644 index 0000000..fd8e007 Binary files /dev/null and b/src/assets/img/logo.png differ diff --git a/src/assets/img/long_line.png b/src/assets/img/long_line.png new file mode 100644 index 0000000..a0c7564 Binary files /dev/null and b/src/assets/img/long_line.png differ diff --git a/src/assets/img/middle_line.png b/src/assets/img/middle_line.png new file mode 100644 index 0000000..0bccaf7 Binary files /dev/null and b/src/assets/img/middle_line.png differ diff --git a/src/assets/img/orange-warning-bg.png b/src/assets/img/orange-warning-bg.png new file mode 100644 index 0000000..7be1040 Binary files /dev/null and b/src/assets/img/orange-warning-bg.png differ diff --git a/src/assets/img/park/lighting-icon.png b/src/assets/img/park/lighting-icon.png new file mode 100644 index 0000000..addf052 Binary files /dev/null and b/src/assets/img/park/lighting-icon.png differ diff --git a/src/assets/img/park/yichuli.png b/src/assets/img/park/yichuli.png new file mode 100644 index 0000000..230d07d Binary files /dev/null and b/src/assets/img/park/yichuli.png differ diff --git a/src/assets/img/permitBg.png b/src/assets/img/permitBg.png new file mode 100644 index 0000000..9ef1d45 Binary files /dev/null and b/src/assets/img/permitBg.png differ diff --git a/src/assets/img/person.png b/src/assets/img/person.png new file mode 100644 index 0000000..8db5bc1 Binary files /dev/null and b/src/assets/img/person.png differ diff --git a/src/assets/img/phone-gray.png b/src/assets/img/phone-gray.png new file mode 100644 index 0000000..3924067 Binary files /dev/null and b/src/assets/img/phone-gray.png differ diff --git a/src/assets/img/phone.png b/src/assets/img/phone.png new file mode 100644 index 0000000..0a71a07 Binary files /dev/null and b/src/assets/img/phone.png differ diff --git a/src/assets/img/red-warning-bg.png b/src/assets/img/red-warning-bg.png new file mode 100644 index 0000000..239363d Binary files /dev/null and b/src/assets/img/red-warning-bg.png differ diff --git a/src/assets/img/safety/company.png b/src/assets/img/safety/company.png new file mode 100644 index 0000000..f263b6e Binary files /dev/null and b/src/assets/img/safety/company.png differ diff --git a/src/assets/img/safety/fxx.png b/src/assets/img/safety/fxx.png new file mode 100644 index 0000000..2a2ed5e Binary files /dev/null and b/src/assets/img/safety/fxx.png differ diff --git a/src/assets/img/safety/shigong.png b/src/assets/img/safety/shigong.png new file mode 100644 index 0000000..ef3edae Binary files /dev/null and b/src/assets/img/safety/shigong.png differ diff --git a/src/assets/img/safety/zdwxy.png b/src/assets/img/safety/zdwxy.png new file mode 100644 index 0000000..98cbb5a Binary files /dev/null and b/src/assets/img/safety/zdwxy.png differ diff --git a/src/assets/img/search-icon.png b/src/assets/img/search-icon.png new file mode 100644 index 0000000..8611db4 Binary files /dev/null and b/src/assets/img/search-icon.png differ diff --git a/src/assets/img/short_line.png b/src/assets/img/short_line.png new file mode 100644 index 0000000..dd318ee Binary files /dev/null and b/src/assets/img/short_line.png differ diff --git a/src/assets/img/subTitle.png b/src/assets/img/subTitle.png new file mode 100644 index 0000000..9105e61 Binary files /dev/null and b/src/assets/img/subTitle.png differ diff --git a/src/assets/img/yellow-warning-bg.png b/src/assets/img/yellow-warning-bg.png new file mode 100644 index 0000000..d1e7e73 Binary files /dev/null and b/src/assets/img/yellow-warning-bg.png differ diff --git a/src/assets/style/pageCommon.component.scss b/src/assets/style/pageCommon.component.scss new file mode 100644 index 0000000..0567b2d --- /dev/null +++ b/src/assets/style/pageCommon.component.scss @@ -0,0 +1,3558 @@ +@mixin side-container { + display: flex; + flex-direction: column; + justify-content: space-between; + &.margin-top-50 { + margin-top: 50px; + } + &.margin-top-92 { + margin-top: 92px; + } + &.margin-top-40 { + margin-top: 40px; + } + .content-block { + height: 170px; + } + width: 330px; + //height: 100%; +} + +//滚动条样式 +@mixin scrollStyle($width) { + &::-webkit-scrollbar { + width: $width !important; + height: 100% !important; + } + &::-webkit-scrollbar-thumb { + border-radius: 2px; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); + background: rgba(255, 255, 255, 0.68); + } + &::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); + -webkit-border-radius: 2px; + background: transparent; + } +} + +.line-chart { + height: 100px; +} + +.env-left { + @include side-container; + +} + +.env-right { + @include side-container; + height: 100%; + + .margin-top-20 { + margin-top: 20px; + } + + .right-top { + display: flex; + justify-content: space-between; + padding: 16px 0 10px 9px; + + &-item { + display: flex; + flex-direction: column; + cursor: pointer; + + .value { + color: #7FB0FF; + font-family: 'logo'; + } + + .level { + color: #e8e8e8; + font-family: 'logo'; + + .point { + width: 6px; + height: 6px; + border-radius: 50%; + display: inline-block; + margin-right: 4px; + position: relative; + top: -2px; + } + + .yellow { + background: #D0DE78; + } + + .green { + background: #88E29F; + } + + .blue { + background: #0646b5; + } + + .orange { + background-color: #ff7000 + } + + .red { + background-color: #b90303 + } + + .zi { + background-color: #ad22be + } + } + + .label { + color: #e8e8e8; + font-family: 'logo'; + font-size: 14px; + text-align: center; + } + + &-sub { + width: 104px; + background: url("~@/assets/img/middle_line.png") no-repeat 50% 50%; + background-position: bottom; + padding-bottom: 12px; + margin-bottom: 9px; + text-align: center; + } + } + } + + .right-middle { + display: flex; + flex-wrap: wrap; + + .square-box { + width: 110px; + height: 70px; + background-size: cover; + padding: 13px 0 13px 0; + text-align: left; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + margin-right: 7px; + + b { + font-size: 24px; + font-family: DINPro; + color: #ffffff; + } + + img { + margin-right: 10px; + width: 26px; + height: 26px; + } + + .text-style { + font-size: 12px; + width: 73px; + } + + .icon-style { + position: relative; + top: 4px; + } + + &:nth-child(3n) { + width: 88px; + margin-left: 0; + + .text-style { + font-size: 12px; + width: 50px; + } + } + } + } + + .cycle-box { + padding-top: 30px; + } + + .right-cycle-box-con { + margin-bottom: 30px; + + .right-cycle-box { + background: url("~@/assets/img/env/cycle-bg.png") 50% 50% no-repeat; + width: 65px; + height: 65px; + background-size: cover; + text-align: center; + margin-right: 67px; + margin-bottom: 14px; + + .con-style-top { + height: 50%; + line-height: 2.4; + font-size: 16px; + font-weight: bold; + } + + .con-style-bottom { + height: 50%; + line-height: 2; + color: #BBBBBB; + } + + } + + &:nth-child(3n) { + .right-cycle-box { + margin-right: 0; + } + } + + &:nth-child(n+4) { + margin-bottom: 0; + } + + .word-ellipsis { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 64px; + color: #BBBBBB; + font-size: 12px; + } + + } +} + +.box-content { + display: flex; + flex-direction: column; + height: 1px; + flex: 1.78; + pointer-events: auto; +} + + +.d-flex { + display: flex; +} + +.flex-direction-column { + flex-direction: column; +} + +.flex-1 { + flex: 1; +} + +.flex-wrap { + flex-wrap: wrap; +} + +.flex-align-center { + align-items: center; +} + +.is-justify-start { + justify-content: start; +} + +.is-justify-center { + justify-content: center; +} + +.is-justify-space-between { + justify-content: space-between; +} + +.is-justify-space-around { + justify-content: space-around; +} + +.equipment-content { + padding: 30px 0 0 40px; +} + +.env-small-label { + font-family: "logo"; + font-size: 14px; +} + +.env-number-stlye { + font-family: number; + font-weight: bold; + font-size: 20px; +} + +.radio-style { + width: 240px; + margin: 10px auto 0; + + .el-radio-group { + display: flex; + justify-content: space-between; + } + + .el-radio-button__orig-radio + .el-radio-button__inner { + width: 70px; + height: 24px; + border-radius: 12px 12px 12px 12px; + font-size: 12px; + color: #ffffff; + border: 1px solid rgba(255, 255, 255, 0); + background: transparent; + text-align: center; + margin-bottom: 5px; + padding: 0; + line-height: 22px; + font-family: "logo"; + + &:focus { + border: none; + } + } + + .el-radio-button__orig-radio:checked + .el-radio-button__inner { + background: rgba(208, 208, 208, 0.4); + border: 1px solid #ffffff; + padding: 0; + } + + &-two-btns { + width: 170px; + } + + &-auto { + width: 100%; + } +} + +.tabs-style { + width: 100%; + margin: 10px auto 0; + + .el-radio-group { + display: flex; + justify-content: space-between; + } + + .el-radio-button__orig-radio + .el-radio-button__inner { + width: 78px; + height: 24px; + font-size: 12px; + color: #ffffff; + background: transparent; + border-radius: 4px 4px 0px 0px; + text-align: center; + margin-bottom: 5px; + padding: 0; + line-height: 22px; + border: none; + box-shadow: none; + + &:focus { + border: none; + box-shadow: none; + } + } + + .el-radio-button__orig-radio:checked + .el-radio-button__inner { + background: linear-gradient(180deg, #E8E8E8 0%, rgba(232, 232, 232, 0) 100%); + border: none; + box-shadow: none; + padding: 0; + } + +} + +@mixin imgStyle { + width: 28px; + height: 22px; + background-size: cover; + margin: 5px auto; +} + +.formaldehydeExcessRate { + background: url("~@/assets/img/env/formaldehydeExcessRate.png") 50% 50% no-repeat; + @include imgStyle +} + +.methanolExceedance { + background: url("~@/assets/img/env/methanolExceedance.png") 50% 50% no-repeat; + @include imgStyle +} + +.NOExceedance { + background: url("~@/assets/img/env/NOExceedance.png") 50% 50% no-repeat; + @include imgStyle +} + + +.HCLExceedance { + background: url("~@/assets/img/env/HCLExceedance.png") 50% 50% no-repeat; + @include imgStyle +} + +.BenzeneExceedance { + background: url("~@/assets/img/env/BenzeneExceedance.png") 50% 50% no-repeat; + @include imgStyle +} + +.EthanolExceedance { + background: url("~@/assets/img/env/EthanolExceedance.png") 50% 50% no-repeat; + @include imgStyle +} + +.env-left, .env-right { + .card-box { + display: flex; + flex-wrap: wrap; + padding-top: 40px; + @mixin commonItemStyle { + display: flex; + flex-direction: column; + text-align: center; + margin-bottom: 15px; + cursor: pointer; + &-top { + padding-bottom: 7px; + font-family: 'logo'; + width: 50px; + background: url("~@/assets/img/short_line.png") 50% 50% no-repeat; + background-position: bottom; + margin-bottom: 7px; + } + &-top-long { + padding-bottom: 7px; + font-family: 'logo'; + width: 105px; + background: url("~@/assets/img/long_line.png") 50% 50% no-repeat; + background-position: bottom; + margin-bottom: 7px; + } + &-bottom { + font-family: 'logo'; + } + } + + &-item { + @include commonItemStyle; + margin-right: 80px; + + &:nth-child(3n) { + margin-right: 0; + } + + /* + &-top{ + padding-bottom: 7px; + font-family: 'logo'; + width: 50px; + background: url("~@/assets/img/short_line.png") 50% 50% no-repeat; + background-position: bottom; + margin-bottom: 7px; + } + &-bottom{ + font-family: 'logo'; + }*/ + + } + + &-item-2 { + @include commonItemStyle; + margin-right: 20px; + margin-bottom: 0; + + &:nth-child(2n) { + margin-right: 0; + } + } + + &-item-4 { + @include commonItemStyle; + margin-right: 40px; + + &:nth-child(4n) { + margin-right: 0; + } + } + + &-item-5 { + @include commonItemStyle; + margin-right: 20px; + + &:nth-child(5n) { + margin-right: 0; + } + } + } +} + +.left-part { + padding-top: 100px; + height: 100%; +} + +.line-chart-air, .bar-chart-air { + height: 168px; + flex: 1; +} + +.right-pie-chart { + height: 230px; + background: url('~@/assets/img/bar_chart_bg.png') 35% 50% no-repeat; +} + +.right-pie-chart-water { + height: 230px; + background: url('~@/assets/img/bar_chart_bg.png') 35% 50% no-repeat; +} + +.margin-top-23 { + margin-top: 23px; +} + +.linear-gradient { + position: relative; + height: 16px; + flex: 1; + + .line { + position: absolute; + width: 100%; + height: 10px; + top: 3px; + background: linear-gradient(90deg, rgba(157, 213, 172, 1) 0%, rgba(106, 205, 132, 1) 20%, rgba(197, 195, 122, 1) 20%, rgba(204, 217, 117, 1) 40%, rgba(202, 147, 85, 1) 40%, rgba(209, 93, 93, 1) 60%, rgba(208, 83, 145, 1) 60%, rgba(78, 13, 88, 1) 80%, rgba(75, 43, 43, 1) 80%, rgba(46, 6, 6, 1) 100%); + } + + .shu { + width: 1px; + background: #FFFFFF; + height: 16px; + position: absolute; + left: 40%; + } + + .background { + position: absolute; + height: 10px; + top: 3px; + background: #979797; + left: 40%; + width: 60%; + + } +} + +.air-bar-style { + display: flex; +} + +.air-number-style { + font-family: 'DINPro'; + font-size: 12px; + color: #FFFFFF; + width: 30px; + padding-left: 8px; + flex: 0; +} + +.air-top5-content { + width: 100%; + margin-top: 20px; + cursor: pointer; + + p { + font-size: 12px; + margin-bottom: 6px; + } + +} + +.right-bar-chart { + height: 600px; + //flex: 1; +} + +.hidden-bar-chart-top { + height: 400px; + +} + +.d-flex { + position: relative; + + .chartPart { + flex: 1; + height: 200px; + position: relative; + + .charts-style { + height: 240px; + } + } + + .chart-bg-center { + position: absolute; + border-radius: 50%; + width: 90px; + height: 90px; + background-color: transparent; + left: 25.5%; + margin-top: 30.5%; + z-index: 10; + } + + + .cod { + background: #B8ECFF; + + &-border { + border: 5px solid #B8ECFF; + } + } + + .ph { + background: #07D1FF; + + &-border { + border: 5px solid #07D1FF; + } + } + + .rjy { + background: #3078EA; + + &-border { + border: 5px solid #3078EA; + } + } + + .gmsj { + background: #83D37B; + + &-border { + border: 5px solid #83D37B; + } + } + + .shxyl { + background: #E4E24F; + + &-border { + border: 5px solid #E4E24F; + } + } + + .ad { + background: #D3A83B; + + &-border { + border: 5px solid #D3A83B; + } + } + + .hff { + background: #FFC1C1; + + &-border { + border: 5px solid #FFC1C1; + } + } + + .hg { + background: #FF3D3D; + + &-border { + border: 5px solid #FF3D3D; + } + } + + .pb { + background: #E93AFF; + + &-border { + border: 5px solid #E93AFF; + } + } + + .oil { + background: #6800C4; + + &-border { + border: 5px solid #6800C4; + } + } +} + +.flex-1-1-0 { + flex: 1 1 0; +} + +.flex-0 { + flex: 0; +} + +.img-con { + position: relative; + padding: 8px; + margin-top: 30px; + @mixin angleMark { + position: absolute; + width: 8px; + height: 8px; + background: url("~@/assets/img/angleMark.png") no-repeat; + } + + .left-top-m { + @include angleMark; + top: 0; + left: 0; + transform: rotate(90deg); + } + + .left-bottom-m { + @include angleMark; + bottom: 4px; + left: 0; + } + + .right-top-m { + @include angleMark; + right: 0; + top: 0; + transform: rotate(-180deg); + } + + .right-bottom-m { + @include angleMark; + right: 0; + bottom: 4px; + transform: rotate(270deg); + } +} + +.typePart { + width: 30%; + margin-top: 32px; + + .el-radio-button__orig-radio + .el-radio-button__inner { + width: 124px; + height: 22px; + border-radius: 8px 8px 8px 8px; + opacity: 1; + font-size: 12px; + color: #ffffff; + border: 0; + line-height: 3px; + background: transparent; + text-align: left; + padding-left: 20px; + } + + .el-radio-button__orig-radio:checked + .el-radio-button__inner { + background: rgba(208, 208, 208, 0.4); + opacity: 1; + border: 1px solid #B8ECFF; + font-size: 12px; + color: #ffffff; + line-height: 4px; + + } + + .check-box-color { + width: 12px; + height: 8px; + border-radius: 4px; + display: inline-block; + margin-right: 10px; + } + + .check-box-text { + display: inline-block; + } + + +} + +.bar-chart-gas { + height: 412px; +} + +.gas-left-bar-con { + height: 700px; +} + +.margin-top-30 { + margin-top: 30px; +} + +.margin-bottom-30 { + margin-bottom: 30px; +} + +.height-auto { + height: auto; +} + +.padding-top-20 { + padding-top: 20px !important; +} + +.risk-box { + display: flex; + margin-top: 20px; + margin-bottom: 14px; + + .risk-item { + display: flex; + align-items: center; + + p:nth-child(2) { + font-size: 12px; + } + } +} + +.zdwxy { + width: 32px; + height: 32px; + background: url("~@/assets/img/safety/zdwxy.png") no-repeat; + margin-right: 18px; +} + +.fxx { + width: 32px; + height: 32px; + background: url("~@/assets/img/safety/fxx.png") no-repeat; + margin-right: 18px; +} + +.company-icon { + width: 32px; + height: 32px; + background: url("~@/assets/img/safety/company.png") no-repeat; + margin-right: 14px; +} + +.sg-icon { + width: 32px; + height: 32px; + background: url("~@/assets/img/safety/shigong.png") no-repeat; + margin-right: 14px; +} + +.font-size-20 { + font-size: 20px; +} + +.font-size-16 { + font-size: 16px; +} + +.font-size-14 { + font-size: 14px; +} + +.risk-pie-chart { + width: 48%; + height: 146px; + flex: 1; +} + +.spe-bar-chart-top { + height: 276px; + flex: 1; +} + +.spe-bar-chart-bottom { + height: 300px; + flex: 1; +} + +.risk-line-chart { + height: 168px; + flex: 1; +} + +.risk-title { + display: flex; + background: rgba(128, 128, 128, 0.8); + margin-top: 20px; + + &-item { + flex: 2; + //padding-left: 30px; + height: 34px; + font-size: 14px; + color: #E8E8E8; + line-height: 34px; + text-align: center; + + &:nth-child(n+2) { + flex: 1; + } + } +} + +.risk-list { + height: 100%; + overflow-y: auto; + @include scrollStyle(2px); + + &-box { + display: flex; + background: none; + opacity: 0; + + &-item { + //width: 50%; + //padding-left: 30px; + flex: 2; + text-align: center; + height: 34px; + font-size: 12px; + color: #E8E8E8; + line-height: 34px; + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; + white-space: nowrap; + cursor: pointer; + + &:nth-child(n+2) { + flex: 1; + } + } + + &:nth-child(2n) { + background: rgba(128, 128, 128, 0.3); + } + } +} + +.risk-pie-chart-all { + width: 100%; + height: 1px; + flex: 1; +} + +.risk-line-chart-all { + height: 190px; + width: 100%; + flex: 1; +} + +.flex-15 { + flex: 1.5; +} + +.cycle-icon { + width: 13px; + height: 13px; + border-radius: 50%; + background: #FFFFFF; + margin-right: 14px; + margin-left: 8px; +} + +.level-1 { + background: #DD7171; +} + +.level-1-text { + color: #DD7171; +} + +.level-2 { + background: #F6974D; +} + +.level-2-text { + color: #F6974D; +} + +.level-3 { + background: #F3D262; +} + +.level-3-text { + color: #F3D262; +} + +.level-4 { + background: #7FB0FF; +} + +.level-4-text { + color: #7FB0FF; +} + +.align-items-center { + align-items: center; +} + +.risk-info { + font-size: 14px; + + .content-style { + margin-bottom: 20px; + display: flex; + + span { + &:first-child { + width: 27%; + } + + &:last-child { + width: 73%; + } + + } + + + .hazard-style { + cursor: pointer; + color: #7FB0FF; + } + + .bg-gray { + width: 100%; + height: 186px; + padding: 30px 20px; + background: rgba(255, 255, 255, 0.2); + + div:first-child { + margin-bottom: 23px; + display: flex; + } + + .inside-con { + display: flex; + justify-content: space-between; + align-items: center; + + ul { + flex: 1; + + li { + display: flex; + justify-content: space-between; + font-size: 14px; + margin-bottom: 20px; + + span:first-child { + width: 40%; + } + + span:last-child { + width: 70%; + } + + &:last-child { + margin-bottom: 0; + } + } + } + + } + } + } + + &.hidden { + .content-style { + span { + &:first-child { + width: 30%; + } + + &:last-child { + width: 70%; + } + + } + + &.col-3 { + .cycle-icon { + width: 10px; + height: 10px; + } + + .red { + color: #DD7171; + } + + .red-bg { + background: #DD7171; + } + + span { + display: flex; + align-items: center; + + &:first-child { + width: 30%; + } + + &:last-child { + width: 30%; + } + + &:nth-child(2) { + width: 40%; + } + } + } + + .link-style { + color: #7FB0FF; + cursor: pointer; + } + } + } +} + +.specification-card { + padding: 0 16px; + margin-top: 16px; + height: 710px; + @include scrollStyle(2px); + overflow-y: auto; + + .mgb10 { + margin-bottom: 10px; + color: #FFF; + display: flex; + flex-wrap: wrap; + + span { + align-self: flex-start; + width: 70px; + flex: none + } + + .el-button--small { + padding: 0; + color: #58BFFF; + } + } + + .inner-title { + position: relative; + font-size: 14px; + color: #FFF9E9; + padding-left: 4px; + margin: 20px 0 10px; + /* &::before{ + content: ""; + display: block; + width: 6px; + height: 8px; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + background: #FFC001; + border-radius: 3px; + }*/ + } + + .label-group { + width: 100%; + border: 1px solid #E8E8E8; + color: #FFF9E9; + font-size: 12px; + display: flex; + + &.half { + width: 50%; + } + + &.third { + width: 33.3%; + } + + .label { + min-width: 130px; + padding: 0 20px; + border-right: 1px solid #E8E8E8; + background: rgba(128, 128, 128, 0.6); + display: flex; + align-items: center; + justify-content: center; + } + + .content-block { + width: 1px; + flex: 1; + //line-height: 100%; + padding: 10px 20px; + } + } +} + +.safe { + @mixin font-style { + font-size: 12px; + font-weight: 400; + cursor: default; + } + + .el-step__head.is-finish { + border-color: #7FB0FF; + } + + .el-step__title.is-finish { + color: #7FB0FF; + @include font-style; + } + + .is-finish { + .el-step__icon.is-text { + background: #7FB0FF; + } + + .el-step__icon-inner { + font-weight: bold; + color: rgb(34 34 34); + line-height: 14px; + background-clip: text; + text-fill-color: rgba(153, 153, 153, 0.55); + } + } + + .el-step__head.is-process { + border-color: #E8E8E8; + } + + .el-step__title.is-process { + color: #E8E8E8; + @include font-style; + } + + .is-process { + .el-step__icon.is-text { + background: #E8E8E8; + } + + .el-step__icon-inner { + font-weight: bold; + color: rgb(34 34 34); + line-height: 14px; + background-clip: text; + text-fill-color: rgba(153, 153, 153, 0.55); + } + } + + .el-step__head.is-wait { + border-color: #999999; + } + + .el-step__title.is-wait { + color: #999999; + @include font-style; + } + + .is-wait { + .el-step__icon.is-text { + background: transparent; + } + + .el-step__icon-inner { + font-weight: bold; + color: rgba(153, 153, 153, 1); + line-height: 14px; + background-clip: text; + text-fill-color: rgba(153, 153, 153, 0.55); + } + } + + .el-step.is-center .el-step__line { + left: 68%; + right: -33%; + top: 14px; + } + + .el-step__icon { + width: 30px; + height: 30px; + } +} + +.el-collapse { + border: none; + + .el-collapse-item__header, .el-collapse-item__wrap { + background: transparent; + color: #A5A6A8; + font-size: 16px; + + .el-collapse-item__content { + color: #A5A6A8; + } + } + + .el-collapse-item__header { + border-bottom: 1px solid #A5A6A8; + } + + .el-collapse-item__wrap { + border: none; + } + + .el-collapse-item__arrow { + margin: 0 8px; + } + + .el-icon-arrow-right:before { + content: "\e790"; + } + + .el-collapse-item__arrow.is-active { + transform: rotate(180deg); + } + + .avatar-style { + //width: 88px; + height: 132px; + margin-right: 16px; + } + + .item-content { + padding-top: 20px; + color: #FFFFFF; + align-items: center; + + .collapse-top { + display: flex; + align-items: center; + + span { + font-size: 14px; + + &:first-child { + font-size: 20px; + } + } + } + + .collapse-bottom { + margin-top: 40px; + display: flex; + flex-wrap: wrap; + + span { + width: 50%; + margin-bottom: 20px; + + &:nth-child(n+3) { + margin-bottom: 0; + } + } + } + } + + .info-content { + display: flex; + flex-wrap: wrap; + color: #FFFFFF; + margin-top: 20px; + + span { + width: 33%; + margin-bottom: 20px; + + &:nth-child(n+4) { + margin-bottom: 0; + } + } + } + + .order-content { + margin-top: 20px; + + h3 { + color: #FFFFFF; + font-size: 16px; + font-weight: 400; + margin-bottom: 20px; + } + + img.code { + width: 88px; + height: 88px; + border: 3px solid #ffffff; + border-radius: 5px; + margin-right: 20px; + } + + &-item { + border-bottom: 1px solid #D8D8D8; + margin-bottom: 20px; + + span { + width: 50%; + margin-bottom: 20px; + } + } + + .margin-bottom-10 { + margin-bottom: 10px; + } + } + + .card-info { + position: relative; + + &-book { + position: absolute; + top: 15px; + right: 0; + color: #7DAEFF; + display: flex; + align-items: center; + cursor: pointer; + + img { + position: relative; + top: 2px; + } + } + + .el-collapse-item__header { + font-size: 14px; + } + + .el-collapse .el-collapse-item__header { + border: none; + } + } + + .goods-info { + border: 1px solid rgba(212, 229, 255, 0.3); + margin-top: 6px; + padding: 20px; + + span { + width: 50%; + margin-bottom: 20px; + + &:nth-child(2n), &:last-child { + margin-bottom: 0; + } + } + + } + +} + +.margin-left-40 { + margin-left: 40px; +} + +.margin-left-0 { + margin-left: 0; +} + +.tabs-energy { + display: flex; + margin: 0 auto; + text-align: center; + font-size: 14px; + + &-item { + cursor: pointer; + + &-text { + padding: 5px 10px; + } + + .under-line { + width: 40%; + height: 1px; + border: 1px solid transparent; + margin: 0 auto; + } + + .active { + border: 1px solid #FFFFFF; + } + } + +} + +.subTitle { + width: 330px; + height: 50px; + background: url("~@/assets/img/subTitle.png") no-repeat bottom; + text-align: center; + line-height: 50px; + font-size: 18px; + +} + +.two-item-line { + width: 50%; + text-align: center; + color: #FFFFFF; + padding: 23px 26px 10px 26px; + + .num-style { + padding-bottom: 8px; + border-bottom: 1px solid #D8D8D8; + font-size: 20px; + } + + .text-style { + margin-top: 8px; + font-size: 14px; + color: rgba(255, 255, 255, 0.8); + } +} + +.sub-title-legend { + width: 100%; + text-align: center; + padding: 10px 0; + padding-bottom: 0; + font-size: 12px; + color: rgba(255, 255, 255, 0.8); + margin-top: 10px; +} + +.energyRightTitle { + width: 332px; + height: 42px; + background: url("~@/assets/img/energy/energyTitle.png") no-repeat 50% 50%; + line-height: 42px; + font-size: 14px; + padding: 0 12px; + +} + +.center-box { + position: absolute; + left: -300%; + display: flex; + top: 0; + + &-card-bg { + width: 264px; + height: 148px; + background: url("~@/assets/img/energy/energyCardBg.png") no-repeat 50% 50%; + padding: 8px 16px; + } + + &-card-title { + font-size: 14px; + text-align: center; + color: rgba(255, 255, 255, 0.73); + display: flex; + align-items: center; + justify-content: center; + + & > img { + margin-right: 4px; + } + } + + &-card-bottom { + font-size: 12px; + color: rgba(255, 255, 255, 0.73); + margin-top: 12px; + + > div { + display: flex; + align-items: center; + } + } + +} + +.center-box-park { + position: absolute; + left: -290%; + display: flex; + + &-card-title { + font-size: 20px; + text-align: center; + } + + &-card-bg-park { + width: 241px; + height: 120px; + background: rgba(0, 0, 0, 0.5); + border-radius: 4px 4px 4px 4px; + padding: 20px 30px; + margin-right: 20px; + + &:last-child { + margin-right: 0; + } + } + + &-card-bottom { + font-size: 12px; + color: rgba(255, 255, 255, 0.73); + margin-top: 12px; + + > div { + display: flex; + align-items: center; + + img { + width: 32px; + height: 32px; + margin-right: 13px; + } + + .num-style { + font-family: DINPro; + font-size: 20px; + color: #FFFFFF; + text-shadow: 1px 1px 2px #C2EDFF; + } + } + } +} + +.four-items { + left: -332%; +} + +.company-list { + height: 200px; + overflow-y: auto; + @include scrollStyle(2px); + +} + +.company-list-box { + border-left: 4px solid #ffffff; + background: rgba(255, 255, 255, 0.15); + width: 330px; + height: 72px; + padding: 12px 32px; + margin-top: 5px; + font-size: 14px; + + .top { + margin-bottom: 5px; + } +} + +.steam-right-chart { + height: 300px; +} + +.group-title { + margin-bottom: 12px; + font-size: 16px; +} + +.group-title-plan { + margin-bottom: 2px; + font-size: 16px; + margin-top: 20px; +} + + +.personList { + font-size: 14px; + + & > div { + display: flex; + + .has-border { + border: 1px solid #cccccc; + margin-right: -1px; + margin-bottom: -1px; + } + } + + .head-style { + background: rgba(255, 255, 255, 0.15); + width: 106px; + padding: 5px 20px; + } + + &-content { + padding: 5px 20px; + width: 79%; + } +} + +.env-right .right-top-item .value.white-color { + color: #FFFFFF; + font-size: 20px; +} + +.env-right .right-top-item .level .point.red.large { + background: #FF5959; + width: 8px; + height: 8px; + top: -14px; +} + +.line-chart-emergency { + height: 100%; +} + +.last-time { + font-size: 14px; + margin-top: 20px; + margin-bottom: 20px; +} + +.blue-button { + width: 328px; + height: 34px; + background: #7FB0FF; + border-radius: 18px; + color: #000000; + text-align: center; + line-height: 34px; + cursor: pointer; +} + +.emergency-part { + .charts-box { + width: 100%; + height: 1px; + flex: 1; + display: flex; + align-items: center; + justify-content: center; + position: relative; + + .text { + font-size: 16px; + font-weight: 500; + color: rgba($color: $font-color, $alpha: 0.9); + line-height: 22px; + text-align: center; + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + + .count { + font-size: 32px; + color: $font-color; + line-height: 45px; + } + } + } + + .pop-box { + width: 450px; + border-radius: 4px 4px 4px 4px; + opacity: 1; + border: 1px solid #FFFFFF; + background: rgba($color: #000000, $alpha: 0.8); + color: #E8E8E8; + padding: 30px; + font-size: 14px; + position: absolute; + + top: 40%; + transform: translate(-50%, -50%); + + .border { + width: 8px; + height: 8px; + position: absolute; + border-left: 1px solid #FFF; + border-top: 1px solid #FFF; + + &.l-t { + top: 10px; + left: 10px; + } + + &.r-t { + top: 10px; + right: 10px; + transform: rotate(90deg); + } + + &.r-b { + bottom: 10px; + right: 10px; + transform: rotate(180deg); + } + + &.l-b { + bottom: 10px; + left: 10px; + transform: rotate(270deg); + } + } + + .title { + font-size: 16px; + border-bottom: 1px solid #B1B1B1; + padding-bottom: 8px; + } + + .close { + position: absolute; + cursor: pointer; + right: 20px; + top: 20px; + color: #FFF; + font-size: 26px; + } + + .item-radius-style { + .el-input__inner { + background: rgba(0, 0, 0, 0.5); + border-radius: 20px; + border: 1px solid rgba(255, 255, 255, 0.6); + color: #d7d7d7; + } + + .el-textarea__inner { + color: #d7d7d7; + background: rgba(0, 0, 0, 0.5); + border-radius: 5px; + border: 1px solid rgba(255, 255, 255, 0.6); + } + + } + + .item-radius-style.el-select { + width: 100%; + } + + .el-form-item__label { + color: #FFFFFF; + } + + .btn-group { + justify-content: space-evenly; + + .btn-style { + width: 96px; + height: 34px; + background: rgba(255, 255, 255, 0.15); + border-radius: 17px; + border: 1px solid #FFFFFF; + text-align: center; + line-height: 34px; + cursor: pointer; + } + + .cancel { + background: rgba(255, 255, 255, 0); + } + } + + @mixin commonTableStyle { + span { + padding: 10px; + + &:first-child, &:nth-child(3), &:nth-child(4), &:nth-child(5) { + width: 160px; + } + + &:nth-child(2) { + width: 320px; + } + + &:last-child { + width: 240px; + } + } + } + + .head { + margin-top: 20px; + display: flex; + @include commonTableStyle; + background: rgba(216, 216, 216, 0.3); + + span { + border: 1px solid #7B7974; + margin-left: -1px; + } + } + + .tbody { + max-height: 400px; + overflow-y: auto; + @include scrollStyle(2px); + + .tr { + cursor: pointer; + display: flex; + @include commonTableStyle; + + &:nth-child(2n) { + background: rgba(216, 216, 216, 0.1); + } + } + } + + .el-pagination { + text-align: right; + margin-top: 10px; + } + + .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li { + background-color: transparent; + border: 1px solid #ffffff; + color: #FFFFFF; + + &:hover { + color: #FFFFFF; + } + } + + .el-pagination.is-background .el-pager li:not(.disabled).active { + background-color: rgba(216, 216, 216, 0.3); + } + } + + .left-position { + left: 270%; + } + + .right-position { + width: 306px; + left: -170%; + } + + .right-log-position { + width: 1200px; + left: -170%; + } +} + +.plan-card { + width: 330px; + height: 192px; + position: relative; + border: 1px solid rgba(255, 255, 255, 0.7); + background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%); + border-radius: 6px; + padding: 28px 32px; + padding-top: 10px; + + .border { + width: 8px; + height: 8px; + position: absolute; + border-left: 1px solid #FFF; + border-top: 1px solid #FFF; + + &.l-t { + top: 10px; + left: 10px; + } + + &.r-t { + top: 10px; + right: 10px; + transform: rotate(90deg); + } + + &.r-b { + bottom: 10px; + right: 10px; + transform: rotate(180deg); + } + + &.l-b { + bottom: 10px; + left: 10px; + transform: rotate(270deg); + } + } + + ul.plan li { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 14px; + margin-bottom: 20px; + + &:last-child { + //margin-bottom: 0; + } + + img { + margin-right: 5px; + } + + .duty-name-box { + width: 50px; + } + } + + .position-icon { + width: 16px; + height: 16px; + background: url("~@/assets/icons/png/point.png"); + margin-left: 8px; + } + + .plan-btn { + width: 64px; + height: 24px; + background: rgba(255, 255, 255, 0.15); + border-radius: 16px; + border: 1px solid #FFFFFF; + cursor: pointer; + text-align: center; + font-size: 14px; + margin-right: 8px; + } + + .phone-btn { + width: 90px; + height: 24px; + background: rgba(255, 255, 255, 0.15); + border-radius: 16px; + border: 1px solid #FFFFFF; + cursor: pointer; + text-align: center; + font-size: 14px; + margin-left: 8px; + display: flex; + align-items: center; + padding-left: 6px; + } + + .el-timeline-item { + .el-timeline-item__content { + color: #FFFFFF; + } + + &:nth-child(n+2) { + .el-timeline-item__content { + color: #7B7974; + } + } + } + +} + + +.plan-head { + margin-top: 16px; + display: flex; + font-size: 14px; + align-items: center; + + span.span-item { + padding: 2px 10px; + flex: 1; + + &:first-child { + flex: 5; + } + } + + span.span-item-2 { + padding: 10px; + + &:first-child { + width: 130px; + padding-left: 20px; + } + + &:nth-child(2) { + width: auto; + } + } + + span.span-item-3 { + padding: 10px; + width: 80px; + + &:first-child { + width: 150px; + padding-left: 20px; + } + + } + + span.span-item-half { + padding: 10px; + width: 50%; + } + + background: rgba(216, 216, 216, 0.3); +} + +.plan-head-tbody { + font-size: 14px; + pointer-events: auto; + + .tr { + display: flex; + cursor: pointer; + + span.span-item { + padding: 6px 10px; + flex: 1; + + &:first-child { + flex: 5; + } + + &:nth-child(2) { + width: 150px; + } + } + + span.span-item-2 { + padding: 10px; + + &:first-child { + width: 130px; + padding-left: 20px; + } + + &:nth-child(2) { + width: auto; + } + } + + span.span-item-3 { + padding: 10px; + width: 80px; + + &:first-child { + width: 150px; + padding-left: 20px; + } + + + } + + span.span-item-half { + padding: 10px; + width: 50%; + } + + &:nth-child(2n) { + background: rgba(216, 216, 216, 0.1); + } + } +} + +.green-check { + .el-checkbox__label { + color: #ffffff; + font-size: 14px; + } + + .el-checkbox__inner { + border-radius: 50%; + width: 14px; + height: 14px; + } + + .el-checkbox__input.is-checked .el-checkbox__inner { + background-color: #80ED30; + border-color: #80ED30; + } + + .el-checkbox__input.is-checked + .el-checkbox__label { + color: #ffffff; + } + + .el-checkbox__inner::after { + border-color: #000000; + } + + .el-checkbox__input.is-checked .el-checkbox__inner::after { + //border: 1px solid #000; + } +} + +.plan-center { + position: absolute; + left: 150%; + + .progress-center { + width: 840px; + height: 60px; + background: rgba(0, 0, 0, 0.7); + box-shadow: 0px 10px 20px -10px rgba(0, 0, 0, 0.5); + border-radius: 41px; + border: 2px solid #FFAA59; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 20px; + + .middle { + width: 420px; + display: flex; + flex-direction: column; + align-items: center; + } + + .center-btn { + width: 92px; + height: 32px; + background: rgba(255, 169, 0, 0.15); + border-radius: 16px; + border: 1px solid #FFA900; + font-size: 14px; + text-align: center; + line-height: 32px; + color: #FFA900; + cursor: pointer; + justify-content: center; + + i.el-icon-switch-button { + margin-right: 5px; + } + } + + .orange { + background-color: #FFA900; + display: inline-block; + margin-right: 8px; + } + + .center-btn.white-color { + background-color: #FFA900; + } + + .cycle-box { + border: 2px solid rgba(255, 255, 255, 0.4); + border-radius: 50%; + width: 18px; + height: 18px; + display: flex; + align-items: center; + justify-content: center; + } + + .line { + width: 80px; + height: 1px; + border: 1px solid rgba(255, 255, 255, 0.4); + } + + .active { + border-color: #FFA900; + color: #FFA900; + + &.bg-orange { + background: #FFA900; + + i.el-icon-check { + color: rgba(0, 0, 0, 0.7); + font-weight: bold; + } + } + } + + .white-color { + i.el-icon-switch-button, span { + color: #FFFFFF; + } + } + + .progress-title { + font-size: 12px; + color: rgba(255, 255, 255, 0.4); + + span { + margin-top: 5px; + + &:nth-child(2) { + margin-left: 130px; + margin-right: 130px; + } + } + } + } +} + +svg.loading-icon { + width: 10px; + height: 10px; +} + +.person-icon { + width: 32px; + height: 32px; + background: url("~@/assets/img/env/count.png") no-repeat; + margin-right: 14px; +} + +.radio-box { + display: flex; + justify-content: center; + + span { + cursor: pointer; + width: 96px; + height: 24px; + border-radius: 12px; + border: 1px solid rgba(255, 255, 255, 0); + font-size: 12px; + text-align: center; + line-height: 22px; + } + + span.active { + border-color: #FFFFFF; + } +} + +.group-title-plan-search { + margin-bottom: 2px; + font-size: 16px; + margin-top: 20px; + display: flex; + justify-content: space-between; + align-items: center; + + & > span { + width: 150px; + } + + .item-radius-style { + .el-input__inner { + background: rgba(0, 0, 0, 0.5); + border-radius: 20px; + border: 1px solid rgba(255, 255, 255, 0.6); + color: #d7d7d7; + } + + .el-textarea__inner { + color: #d7d7d7; + background: rgba(0, 0, 0, 0.5); + border-radius: 5px; + border: 1px solid rgba(255, 255, 255, 0.6); + } + + .el-icon-search { + cursor: pointer; + } + + } + +} + +.short-report { + height: 22px; + font-size: 16px; + font-weight: bold; + color: #FFFFFF; + line-height: 22px; + text-align: center; + text-shadow: 0 0 2px #9EC3FF; + margin-bottom: 5px; +} + +.short-report-line { + width: 186px; + height: 3px; + margin: 2px auto; + background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0) 100%); + +} + +.short-card { + position: relative; + + .border { + width: 8px; + height: 8px; + position: absolute; + border-left: 1px solid #FFF; + border-top: 1px solid #FFF; + + &.l-t { + top: -4px; + left: -4px; + } + + &.r-t { + top: -4px; + right: -4px; + transform: rotate(90deg); + } + + &.r-b { + bottom: -4px; + right: -4px; + transform: rotate(180deg); + } + + &.l-b { + bottom: -4px; + left: -4px; + transform: rotate(270deg); + } + } + + &-bg { + height: 36px; + background: rgba(255, 255, 255, 0.1); + padding: 0 15px; + + .orange { + background: #FFA900; + margin-left: 0; + } + + .text { + color: rgba(255, 255, 255, 0.8); + font-size: 14px; + } + + .count { + font-size: 14px; + } + } +} + +.margin-top-0 { + margin-top: 0; +} + +.margin-bottom-20 { + margin-bottom: 20px; +} + +.task-list { + height: 400px; + overflow-y: auto; + @include scrollStyle(2px); + + .task-item { + width: 330px; + height: 92px; + background: rgba(0, 0, 0, 0.5); + border-radius: 6px; + margin-bottom: 10px; + font-size: 14px; + padding: 8px 16px; + cursor: pointer; + + &-top { + align-items: start; + } + } +} + +.text-left { + text-align: right; +} + +.margin-top-16 { + margin-top: 16px; +} + +.margin-top-12 { + margin-top: 12px; +} + +.link { + position: relative; + display: block; + padding: 1px; + font-size: 12px; + font-weight: bold; + text-decoration: none; + color: #7DAEFF; +} + +.link:after, +.link:before { + content: ""; + display: block; + position: absolute; + -webkit-transition: all 0.5s ease-in-out; + transition: all 0.5s ease-in-out; + left: 20px; +} + +.link:before { + top: -7px; + width: 0; + height: 0; + left: 56px; + border-width: 8px; + border-style: solid; + border-color: transparent transparent transparent #7DAEFF; +} + +.link:after { + top: 50%; + right: 1em; + width: 40px; + height: 0.2em; + -webkit-transform: translate(0, -0.1em); + transform: translate(0, -0.1em); + background-color: #7DAEFF; +} + +.goods-part { + .search-style { + .el-input__inner { + border-radius: 20px; + background: transparent; + color: #FFFFFF; + + &:focus { + border-color: #FFFFFF; + } + } + } + + .goods-item { + width: 48px; + height: 48px; + background-color: rgba(0, 0, 0, 0.5); + border-radius: 4px; + border: 1px solid #666666; + margin-right: 4px; + margin-bottom: 4px; + + &-inside { + width: 42px; + height: 42px; + background-color: rgba(255, 255, 255, 0.15); + + .bg { + position: absolute; + bottom: 2px; + width: 88%; + height: 4px; + padding: 1px; + margin: 0 5px; + border-radius: 4px; + background-color: #131313; + display: flex; + align-items: center; + } + + .bg-line { + background-color: #131313; + } + + .inner { + height: 100%; + border-radius: 4px; + transition: all 0.5s cubic-bezier(0, 0.64, 0.36, 1); + } + + .line { + width: 80%; + background-color: rgba(255, 255, 255, 0.4); + } + + + } + } + + .red { + background-color: rgba(255, 89, 89, 0.3) !important; + border-color: rgba(255, 89, 89, 0.3); + } + + .red-line { + background-color: rgba(255, 89, 89, 0.7) !important; + } + + .red-border { + border-color: rgba(255, 89, 89, 0.3); + } + + .orange { + background-color: rgba(255, 158, 55, 0.3); + border-color: rgba(255, 158, 55, 0.3); + } + + .orange-line { + background-color: rgba(255, 158, 55, 0.7) !important; + } + + .orange-border { + border-color: rgba(255, 158, 55, 0.3); + } + + .yellow { + background-color: rgba(255, 237, 98, 0.3); + border-color: rgba(255, 237, 98, 0.3); + } + + .yellow-line { + background-color: rgba(255, 237, 98, 0.7) !important; + } + + .yellow-border { + border-color: rgba(255, 237, 98, 0.3); + } + + .blue { + background-color: rgba(125, 174, 255, 0.3); + border-color: rgba(125, 174, 255, 0.3); + } + + .blue-line { + background-color: rgba(125, 174, 255, 0.7) !important; + } + + .blue-border { + border-color: rgba(125, 174, 255, 0.3); + } + +} + +.line-gray { + width: 40px; + height: 1px; + border: 1px solid rgba(255, 255, 255, 0.1); + position: relative; + right: -62px; +} + +.line-blue { + width: 80px; + height: 1px; + border: 1px solid #7DAEFF; + position: relative; + margin-left: 10px; +} + +.round-style { + width: 12px; + height: 12px; + border: 2px solid rgba(255, 255, 255, 0.4); + border-radius: 50%; + margin-left: 72px; + margin-right: 6px; +} + +.is-judgment { + margin-left: 0; +} + +.is-justify-space-center { + justify-content: center; +} + +.red-bag { + width: 40px; + height: 18px; + background: #FF5959; + border-radius: 9px; + color: #FFFFFF; + text-align: center; + line-height: 18px; + font-size: 12px; +} + +.tooltip { + .left-icon { + margin-right: 16px; + } + + .content { + width: 128px; + display: flex; + flex-direction: column; + justify-content: space-between; + + p { + font-size: 12px; + } + + .title { + font-size: 14px; + } + } +} + +.el-tooltip__popper.is-dark { + background: rgba(0, 0, 0, 0.8); + box-shadow: 0px 10px 10px -4px rgba(0, 0, 0, 0.8); + border-radius: 4px; + border: 1px solid #666666; +} + +.tooltip-line { + &.bg { + width: 100%; + height: 8px; + border-radius: 4px; + background-color: rgba(255, 255, 255, 0.15); + display: flex; + align-items: center; + margin-top: 8px; + } + + &.bg-line { + background-color: rgba(255, 255, 255, 0.15); + + .inner { + height: 100%; + border-radius: 4px; + transition: all 0.5s cubic-bezier(0, 0.64, 0.36, 1); + } + + .line { + width: 80%; + background-color: rgba(255, 255, 255, 0.4); + } + + .red-line { + background-color: rgba(255, 89, 89, 0.7) !important; + } + + .orange-line { + background-color: rgba(255, 158, 55, 0.7) !important; + } + + .yellow-line { + background-color: rgba(255, 237, 98, 0.7) !important; + } + + .blue-line { + background-color: rgba(125, 174, 255, 0.7) !important; + } + } + + +} + +.text-right { + text-align: right; +} + +.padding-right { + &-30 { + padding-right: 30px !important; + } +} + +.is-justify-content-end { + justify-content: flex-end; +} + +.goods-part { + .cycle-icon { + background: rgba(255, 255, 255, 0.7); + + &.red { + background-color: rgba(255, 89, 89, 1); + } + + &.orange { + background-color: rgba(255, 158, 55, 1); + } + + &.yellow { + background-color: rgba(255, 237, 98, 1); + } + + &.blue { + background-color: rgba(125, 174, 255, 1); + } + } +} + +.statistics-item { + width: 48.5%; + height: 40px; + background: rgba(255, 255, 255, 0.1); + margin-bottom: 12px; + font-size: 14px; +} + +.emergency-part .pop-box.left-list-position { + width: 960px; + left: 280%; + z-index: 9999999; + + & .head span:first-child, + & .head span:nth-child(4), + & .head span:nth-child(5) { + width: 250px; + } + + & .tbody .tr span:first-child, + & .tbody .tr span:nth-child(4), + & .tbody .tr span:nth-child(5) { + width: 250px; + } + + & .head span:nth-child(2), & .tbody .tr span:nth-child(2), + & .head span:nth-child(3), + & .tbody .tr span:nth-child(3) { + width: 150px; + } + + .cycle-icon { + background: rgba(255, 255, 255, 0.7); + + &.red { + background-color: rgba(255, 89, 89, 1); + } + + &.orange { + background-color: rgba(255, 158, 55, 1); + } + + &.yellow { + background-color: rgba(255, 237, 98, 1); + } + + &.blue { + background-color: rgba(125, 174, 255, 1); + } + } + + .pop-list-style { + align-items: center; + + .blue { + background: transparent; + } + } + + .search-style { + width: 300px; + + .el-input__inner { + border-radius: 20px; + background: transparent; + color: #FFFFFF; + + &:focus { + border-color: #FFFFFF; + } + } + } + + .blue { + color: #7DAEFF; + cursor: pointer; + } +} + + +@keyframes rotate { + 0% { + -webkit-transform: rotate(0deg); + } + 25% { + -webkit-transform: rotate(90deg); + } + 50% { + -webkit-transform: rotate(180deg); + } + 75% { + -webkit-transform: rotate(270deg); + } + 100% { + -webkit-transform: rotate(360deg); + } +} + +.loading { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + background: #333333; + + + div { + display: flex; + align-items: center; + justify-content: center; + } + + img { + animation: rotate 1s linear infinite; + } +} + +.yellow { + background: #D0DE78; +} + +.green { + background: #88E29F; +} + +.blue { + background: #0646b5; +} + +.orange { + background-color: #ff7000 +} + +.red { + background-color: #b90303 +} + +.margin-top-10 { + margin-top: 10px; +} + +.margin-bottom-13 { + margin-bottom: 13px; +} + +.margin-bottom-16 { + margin-bottom: 16px; +} + +.car-box { + height: 1px; + flex: 1; +} + +.duty-box { + height: 121px; +} + +.eqBox { + height: 200px; +} + +.fire-point { + &-item { + cursor: pointer; + + &-item { + font-size: 14px; + border: 1px solid #707070; + width: 214px; + height: 34px; + line-height: 34px; + box-sizing: border-box; + padding-left: 12px; + text-align: center; + + &.bg-gyay { + background: rgba(255, 255, 255, 0.15); + } + + &:last-child { + width: 117px; + border-left: 0; + background: rgba(42, 42, 42, 0.41); + } + } + + &:nth-child(n+1) { + .fire-point-item-item { + border-top: 0; + + &:last-child { + border-left: 0; + } + } + } + } + + .red-text { + color: #FF5959; + } + + .green-text { + color: #80ED30; + } +} + +@mixin cycleCommon { + width: 10px; + height: 10px; + border-radius: 50%; + margin-right: 8px; + display: inline-block; +} + +i.green-cycle { + background: #80ED30; + @include cycleCommon; +} + +i.orange-cycle { + background: #FFA900; + @include cycleCommon; +} + +i.red-cycle { + background: #FF5959; + @include cycleCommon; +} + +.waring-list-con { + height: 302px; + overflow-y: auto; + @include scrollStyle(2px); + flex: 1; +} + +.img-box { + width: 331px; +} + +.el-checkbox__label { + color: #FFFFFF; +} + +.center-right { + width: calc(100% - 880px); +} + +.center-right-bg { + justify-content: center; + position: absolute; + bottom: 0px; + z-index: 8; + left: 50%; + transform: translateX(-50%); + //width: calc(100% - 880px); + height: 350px; + width: 100%; + margin: 0 auto; + padding: 30px; + background: linear-gradient(180deg, rgba(51, 51, 51, 0) 0%, rgba(0, 0, 0, 1) 100%); + //background: repeating-linear-gradient(180deg, rgba(51, 51, 51, 0) 0%, rgba(11, 11, 11, 0.5) 51%, rgba(0, 0, 0, 0.8) 100%), + // repeating-linear-gradient(-90deg, rgba(11, 11, 11, 0.5) 0%, rgba(11, 11, 11, 0.2) 51%, rgba(0, 0, 0, 0) 100%), + // repeating-linear-gradient(90deg, rgba(51, 51, 51, 0) 0%, rgba(11, 11, 11, 0.2) 51%, rgba(51, 51, 51, 0.2) 100%); +} + +.power-item { + + width: 1px; + flex: 1; + height: 70px; + background-size: cover; + padding: 13px 0 13px 0; + text-align: left; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + margin-right: 7px; + + b { + font-size: 24px; + font-family: DINPro; + color: #ffffff; + } + + img { + margin-right: 10px; + width: 26px; + height: 26px; + } + + .text-style { + font-size: 12px; + width: 80px; + } + + .icon-style { + position: relative; + top: 4px; + } + + &:nth-child(3n) { + //width: 88px; + margin-left: 0; + + .text-style { + font-size: 12px; + //width: 50px; + } + } + +} + +.wd-100 { + width: 100%; +} + +.center-right { + .charts-box { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + position: relative; + + .text { + font-size: 16px; + font-weight: 500; + color: rgba($color: $font-color, $alpha: 0.9); + line-height: 22px; + text-align: center; + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + + .count { + font-size: 32px; + color: $font-color; + line-height: 45px; + } + } + } + + .text-center { + text-align: center; + } + + .static { + width: 252px; + height: 56px; + padding: 0 10px; + display: flex; + justify-content: space-between; + align-items: center; + background: rgba($color: $bg-color, $alpha: 0.1); + color: rgba($color: $font-color, $alpha: 0.8); + font-size: 14px; + position: relative; + + .border { + width: 8px; + height: 8px; + border-top: 1px solid rgba($color: $bg-color, $alpha: 0.9); + border-left: 1px solid rgba($color: $bg-color, $alpha: 0.9); + position: absolute; + + &.l-t { + left: -3px; + top: -3px; + } + + &.r-t { + right: -3px; + top: -3px; + transform: rotate(90deg); + } + + &.r-b { + right: -3px; + bottom: -3px; + right: -3px; + transform: rotate(180deg); + } + + &.l-b { + left: -3px; + bottom: -3px; + right: -3px; + transform: rotate(270deg); + } + } + + .count { + color: $font-color; + } + } +} + +.green-text { + color: #80ED30; +} + +.yellow-text { + color: #D1C71E; +} + +.red-text { + color: #F96161; +} + +.padding-0-15 { + padding: 0 15px; +} + +.margin-bottom-24 { + margin-bottom: 24px; +} + +.el-button.link-style { + color: #7DAEFF; +} + + +.pop-box { + width: 450px; + border-radius: 4px 4px 4px 4px; + opacity: 1; + border: 1px solid #FFFFFF; + background: rgba($color: #000000, $alpha: 0.8); + color: #E8E8E8; + padding: 30px; + font-size: 14px; + position: absolute; + + top: 40%; + transform: translate(-50%, -50%); + + .border { + width: 8px; + height: 8px; + position: absolute; + border-left: 1px solid #FFF; + border-top: 1px solid #FFF; + + &.l-t { + top: 10px; + left: 10px; + } + + &.r-t { + top: 10px; + right: 10px; + transform: rotate(90deg); + } + + &.r-b { + bottom: 10px; + right: 10px; + transform: rotate(180deg); + } + + &.l-b { + bottom: 10px; + left: 10px; + transform: rotate(270deg); + } + } + + .title { + font-size: 16px; + border-bottom: 1px solid #B1B1B1; + padding-bottom: 8px; + } + + .close { + position: absolute; + cursor: pointer; + right: 20px; + top: 20px; + color: #FFF; + font-size: 26px; + } + + .item-radius-style { + .el-input__inner { + background: rgba(0, 0, 0, 0.5); + border-radius: 20px; + border: 1px solid rgba(255, 255, 255, 0.6); + color: #d7d7d7; + } + + .el-textarea__inner { + color: #d7d7d7; + background: rgba(0, 0, 0, 0.5); + border-radius: 5px; + border: 1px solid rgba(255, 255, 255, 0.6); + } + + } + + .item-radius-style.el-select { + width: 100%; + } + + .el-form-item__label { + color: #FFFFFF; + } + + .btn-group { + justify-content: space-evenly; + + .btn-style { + width: 96px; + height: 34px; + background: rgba(255, 255, 255, 0.15); + border-radius: 17px; + border: 1px solid #FFFFFF; + text-align: center; + line-height: 34px; + cursor: pointer; + } + + .cancel { + background: rgba(255, 255, 255, 0); + } + } + + @mixin commonTableStyle { + span { + padding: 10px; + + &:first-child, &:nth-child(3), &:nth-child(4), &:nth-child(5) { + width: 160px; + } + + &:nth-child(2) { + width: 320px; + } + + &:last-child { + width: 240px; + } + } + } + + .head { + margin-top: 20px; + display: flex; + @include commonTableStyle; + background: rgba(216, 216, 216, 0.3); + + span { + border: 1px solid #7B7974; + margin-left: -1px; + } + } + + .tbody { + max-height: 400px; + overflow-y: auto; + @include scrollStyle(2px); + + .tr { + cursor: pointer; + display: flex; + @include commonTableStyle; + + &:nth-child(2n) { + background: rgba(216, 216, 216, 0.1); + } + } + } + + .el-pagination { + text-align: right; + margin-top: 10px; + } + + .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li { + background-color: transparent; + border: 1px solid #ffffff; + color: #FFFFFF; + + &:hover { + color: #FFFFFF; + } + } + + .el-pagination.is-background .el-pager li:not(.disabled).active { + background-color: rgba(216, 216, 216, 0.3); + } +} + +.margin-left-20 { + margin-left: 20px; +} + +.search-btn-blue { + height: 34px; + background: #7DAEFF; + border-radius: 17px; + font-size: 14px; + cursor: pointer; +} + +.reset-btn-transparent { + width: 100px; + height: 34px; + border-radius: 17px; + font-size: 14px; + border: 1px solid #FFFFFF; +} + +.batch-btn { + //width: 73px; + height: 40px; + background: #7DAEFF; + border-radius: 4px; + text-align: center; + line-height: 40px; + padding-left: 10px; + padding-right: 10px; + cursor: pointer; +} + +.popInfo { + font-size: 16px; + justify-content: space-between; +} + +.margin-top-20 { + margin-top: 20px; +} + +.margin-left-30 { + margin-left: 30px; +} + +.selector-style { + .el-input__inner { + background: rgba(0, 0, 0, 0.5); + border-radius: 8px; + border: 1px solid rgba(255, 255, 255, 0.6); + color: #d7d7d7; + } +} + +.pop-box-card { + width: 375px; + height: 192px; + border-radius: 6px; + opacity: 1; + border: 1px solid #FFFFFF; + background: rgba($color: #000000, $alpha: 0.8); + color: #E8E8E8; + padding: 30px; + font-size: 14px; + position: relative; + + .border { + width: 8px; + height: 8px; + position: absolute; + border-left: 1px solid #FFF; + border-top: 1px solid #FFF; + + &.l-t { + top: 10px; + left: 10px; + } + + &.r-t { + top: 10px; + right: 10px; + transform: rotate(90deg); + } + + &.r-b { + bottom: 10px; + right: 10px; + transform: rotate(180deg); + } + + &.l-b { + bottom: 10px; + left: 10px; + transform: rotate(270deg); + } + } +} + +.margin-bottom-48 { + margin-bottom: 48px; +} + +.pop-box-card.margin-bottom-48:nth-child(n+4) { + margin-bottom: 0; +} +.calendar-box,.video-box{ + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%,-50%); +} +.video-box{ + img{ + cursor: pointer; + } +} +.duty-calendar { + width: 1378px; + background: rgba(0, 0, 0, 0.3); + padding: 62px; + box-sizing: border-box; + .el-calendar{ + background-color: rgba(216, 216, 216, 0.1); + .el-calendar-table thead th{ + color: #FFFFFF; + } + .el-calendar__title{ + color: #FFFFFF; + font-size: 20px; + } + .el-calendar-table td.is-selected,.el-calendar-table .el-calendar-day:hover{ + background-color: rgba(0, 0, 0, 0.6); + } + .el-calendar__button-group{ + .el-button{ + background: transparent; + border-color: #FFFFFF; + color: #FFFFFF; + } + } + .el-calendar-table .el-calendar-day{ + height: 64px; + } + } +} +.admin-card-box{ + background: #FFFFFF; + border-radius: 4px; + border: 1px solid #EEEEEE; + padding: 24px; + box-sizing: border-box; + .title{ + img{ + margin-right: 8px; + } + .admin-title-text{ + font-size: 20px; + font-weight: 600; + color: rgba(0,0,0,0.8); + } + } + +} +.flex-end{ + justify-content: flex-end; +} +.back { + cursor: pointer; + color: #FFF; + z-index: 9999; + width: 100px; + height: 34px; + display: flex; + align-items: center; + justify-content: center; + border: 1px solid #FFF; + border-radius: 17px; + + i.back-icon { + background: url("~@/assets/icons/png/back-icon.png"); + width: 14px; + height: 14px; + background-repeat: no-repeat; + background-size: contain; + } + + i { + margin-right: 10px; + } + + +} diff --git a/src/assets/video/camera.mp4 b/src/assets/video/camera.mp4 new file mode 100644 index 0000000..acb08b5 Binary files /dev/null and b/src/assets/video/camera.mp4 differ diff --git a/src/bootstrap.ts b/src/bootstrap.ts new file mode 100644 index 0000000..8b65d7a --- /dev/null +++ b/src/bootstrap.ts @@ -0,0 +1,123 @@ +import Vue from 'vue' +import App from './App.vue' +import router from './router' +import store from './store' +import ElementUI from 'element-ui'; +import 'element-ui/lib/theme-chalk/index.css'; +import SvgComponent from "hbt-common/components/common/svg.component.vue" +import EchartsComponent from "hbt-common/components/common/echarts.component.vue" +import "@/assets/common/icons"; +import 'animate.css'; +import Mock from "mockjs" +import { MockData } from './mock'; +import 'echarts-wordcloud'; +import JsonExcel from 'vue-json-excel' + +Vue.component('downloadExcel', JsonExcel) + +Vue.config.productionTip = false; +document.title = process.env.VUE_APP_TITLE || '汉邦唐全真数字服务平台'; + +// if(process.env.NODE_ENV==="development"){ + Mock.mock(/getPeopleList/, "get", MockData.getPeopleList()); + Mock.mock(/getExpertList/, "get", MockData.getPeopleList()); + Mock.mock(/getCarList/, "get", MockData.getCarList()); + Mock.mock(/getStopCarList/, "get", MockData.getStopCarList()); + Mock.mock(/getBlackCarList/, "get", MockData.getBlackCarList()); + Mock.mock(/getCameraList/, "get", MockData.getCameraList()); + Mock.mock(/getCompanyList/, "get", MockData.getCompanyList()); + Mock.mock(/getBounds/, "get", MockData.getBounds()); + Mock.mock(/getRealBounds/, "get", MockData.getRealBounds()); + Mock.mock(/getSafeBounds/, "get", MockData.getSafeBounds()); + Mock.mock(/getPlanBounds/, "get", MockData.getPlanBounds()); + Mock.mock(/getSafeLine/, "get", MockData.getSafeLine()); + Mock.mock(/getRiskList/, "get", MockData.getRiskList()); + Mock.mock(/getRiskDetail/, "post", (options)=>MockData.getRiskDetail(options)); + Mock.mock(/getSepList/, "get", MockData.getSepList()); + Mock.mock(/getHiddenList/, "get", MockData.hiddenList()); + Mock.mock(/getGasData/, "get", MockData.getRandomGasData()); + Mock.mock(/getRoilData/, "get", MockData.getRandomData()); + Mock.mock(/getBadGasData/, "get", MockData.getRandomData()); + Mock.mock(/getCleanWaterData/, "get", MockData.getRandomData()); + Mock.mock(/getWaterEnvData/, "get", MockData.getRandomData()); + Mock.mock(/getTzWrwData/, "get", MockData.getRandomData()); + Mock.mock(/getBadWaterData/, "get", MockData.getRandomData()); + Mock.mock(/getDangrousWorkData/, "get", MockData.getDangrousWork()); + Mock.mock(/getFourList/, "get", MockData.getFourList()); + Mock.mock(/getParkFourList/, "get", MockData.getFourList2()); + Mock.mock(/getCheckPoint/, "get", MockData.getCheckPoint()); + Mock.mock(/getStoreList/, "get", MockData.getStoreList()); + Mock.mock(/getBuildingList/, "get", MockData.getBuildingList()); + Mock.mock(/getDangrous/, "get", MockData.getDangrous()); + Mock.mock(/getWaringList/, "get", MockData.getWarningList()); + Mock.mock(/getHiddenDangrous/, "get", MockData.getHiddenDangrous()); + + +// } + +// 批量引入本地svg +const svgs = require.context("./assets/icons/svg",false,/\.svg$/); +const requireAll = (requireContext:any) => { + requireContext.keys().map(requireContext); +} +requireAll(svgs) + +// 全局注册组件 +Vue.component("hbt-svg",SvgComponent) +Vue.component("hbt-echarts",EchartsComponent) +Vue.directive("runNumber",{ + bind:(el,binding)=>{ + const num = binding.value; + // 2s 加载完 + let step = 0; + const add = ()=>{ + el.innerText ="" + Math.round(Math.random() * num); + step++; + if(step<10){ + setTimeout(()=>{ + add(); + },50) + }else{ + el.innerText ="" + num; + step=0; + } + } + add(); + }, + update:(el,binding)=>{ + const num = binding.value; + // 2s 加载完 + let step = 0; + const add = ()=>{ + el.innerText ="" + Math.round(Math.random() * num); + step++; + if(step<10){ + setTimeout(()=>{ + add(); + },50) + }else{ + el.innerText ="" + num; + step=0; + } + } + add(); + }, + unbind:(el,binding)=>{ + // + } +}) +Vue.directive("list",{ + bind:(el,binding)=>{ + const timer = (binding.value+1)*100 + setTimeout(()=>{ + el.classList.add("animate__fadeInRight") + },timer) + }, +}) + +Vue.use(ElementUI); +new Vue({ + router, + store, + render: h => h(App) +}).$mount('#app') diff --git a/src/components/center/centerSide.component.html b/src/components/center/centerSide.component.html new file mode 100644 index 0000000..da2eaf4 --- /dev/null +++ b/src/components/center/centerSide.component.html @@ -0,0 +1,74 @@ +
+
+ + 企业消防力量分布 + +
+
+
+
+ +
+
+
+ + {{ single.num }} + +
+
{{ single.label }}
+
+
+
+ +
+
+
+ + 全场重点消防监控报警 + +
+
+
+
+
{{ count }}%
+ 设备在线 +
+ +
+
+
+ 在线监测 50 +
+
+ 总监测点 63 +
+
+
+ +
+
+
+
+
+
+ 已处理报警75 +
+
+
+
+
+
+ 未处理报警75 +
+
+
+
+
+
+ 逾期处理75 +
+
+
+
+
diff --git a/src/components/center/centerSide.component.ts b/src/components/center/centerSide.component.ts new file mode 100644 index 0000000..f096ea6 --- /dev/null +++ b/src/components/center/centerSide.component.ts @@ -0,0 +1,104 @@ +import {Component, Emit, Vue} from 'vue-property-decorator'; +import template from "./centerSide.component.html" +import TitleComponent from "@/components/title.component.vue" + +import("@/assets/style/pageCommon.component.scss") + + +Component.registerHooks([ + 'beforeRouteLeave', +]); +@Component({ + template, + components: { + TitleComponent, + + }, +}) +export default class CenterSideComponent extends Vue { + //标题图片 + imgSrc = require("@/assets/icons/png/env/env-title-icon.png"); + imgPowerSrc = require("@/assets/icons/png/power-icon.png"); + imgAlertSrc = require("@/assets/icons/png/alert-icon.png"); + iconImg3 = require("@/assets/img/env/count.png"); + count = 0 + public timer:any; + public colors = [ + {color: '#FF5959', percentage: 20}, + {color: '#FF5959', percentage: 40}, + {color: '#FFA900', percentage: 60}, + {color: '#80ED30', percentage: 80}, + {color: '#80ED30', percentage: 100} + ]; + powerList = [ + [ + { + label: '消防人员(人)', + num: 34 + },{ + label: '消防车辆(辆)', + num: 4 + },{ + label: '消防设施(个)', + num: 54 + } + ], + [{ + label: '火灾报警点(个)', + num: 20 + },{ + label: '应急物资(套)', + num: 340 + },{ + label: '重大危险源(个)', + num: 2 + }], + [{ + label: '储罐(个)', + num: 24 + },{ + label: '重大危险源(个)', + num: 4 + },{ + label: '', + num: 0 + }] + ] + + mounted() { + this.timer = setInterval(()=>{ + + this.getCount(80) + },4000) + } + public textFormat(data){ + return "" + } + public getCount(data){ + this.count = 0; + setTimeout(()=>{ + const timer = setInterval(()=>{ + if(this.count +
+
+ +
+ 返回 +
+ +
+
+
批量操作
+
+ + + +
+ + 搜索 +
+
+ 重置 +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
×
+
+
+
+
+ +
+ +
+
报警位置:危化品仓库二楼
+
设备名称:厂区管廊
+
监控设备:1#枪机
+
报警类型:烟火报警
+
报警时间:2023-05-10
+
报警状态:待处理
+
受理人:陈桥七
+
报警推送:已推送
+
+
+
+
+ +
+
+ + +
+ + + diff --git a/src/components/companyFile/detail.component.vue b/src/components/companyFile/detail.component.vue new file mode 100644 index 0000000..5a36a34 --- /dev/null +++ b/src/components/companyFile/detail.component.vue @@ -0,0 +1,616 @@ + + + diff --git a/src/components/companyFile/echarts.ts b/src/components/companyFile/echarts.ts new file mode 100644 index 0000000..49ac376 --- /dev/null +++ b/src/components/companyFile/echarts.ts @@ -0,0 +1,104 @@ +const carOpt = { + series: [ + { + type: 'gauge', + startAngle: 180, + endAngle: 0, + center: ['50%', '75%'], + radius: '100%', + min: 0, + max: 1, + splitNumber: 8, + axisLine: { + lineStyle: { + width: 4, + color: [ + [0.25, '#FF6E76'], + [0.5, '#FDDD60'], + [0.75, '#58D9F9'], + [1, '#7CFFB2'] + ] + } + }, + pointer: { + icon: 'path://M12.8,0.7l12,40.1H0.7L12.8,0.7z', + length: '12%', + width: 20, + offsetCenter: [0, '-50%'], + itemStyle: { + color: 'inherit' + } + }, + axisTick: { + length: 6, + lineStyle: { + color: '#FFF', + width: 1 + } + }, + splitLine: { + length: 10, + lineStyle: { + color: '#FFF', + width: 3 + } + }, + axisLabel: { + color: '#FFF', + fontSize: 12, + distance: -30, + rotate: 'tangential', + }, + title: { + offsetCenter: [0, '-10%'], + fontSize: 12, + color:"#FFF" + }, + detail: { + fontSize: 16, + offsetCenter: [0, '-35%'], + valueAnimation: true, + color: 'inherit' + }, + data: [ + { + value: 0.7, + name: 'Grade Rating' + } + ] + } + ] +} + +const wordOpt = { + tooltip: { + show:false + }, + series: [{ + type: 'wordCloud', + gridSize: 20, + sizeRange: [12, 50], + rotationRange: [0, 0], + shape: 'circle', + textStyle: { + normal: { + color: function () { + return 'rgb(' + [ + Math.round(Math.random() * 255), + Math.round(Math.random() * 255), + Math.round(Math.random() * 255) + ].join(',') + ')'; + } + }, + emphasis: { + } + }, + data: [ + // ... + ] + }] +}; + export default{ + carOpt, + wordOpt + } \ No newline at end of file diff --git a/src/components/companyFile/left.component.vue b/src/components/companyFile/left.component.vue new file mode 100644 index 0000000..5153fee --- /dev/null +++ b/src/components/companyFile/left.component.vue @@ -0,0 +1,307 @@ + + + diff --git a/src/components/companyFile/pic.component.vue b/src/components/companyFile/pic.component.vue new file mode 100644 index 0000000..ca50eee --- /dev/null +++ b/src/components/companyFile/pic.component.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/components/companyFile/right.component.vue b/src/components/companyFile/right.component.vue new file mode 100644 index 0000000..2be07c5 --- /dev/null +++ b/src/components/companyFile/right.component.vue @@ -0,0 +1,316 @@ + + + diff --git a/src/components/dealPopUp.component.vue b/src/components/dealPopUp.component.vue new file mode 100644 index 0000000..82f619c --- /dev/null +++ b/src/components/dealPopUp.component.vue @@ -0,0 +1,155 @@ + + + + diff --git a/src/components/header.component.vue b/src/components/header.component.vue new file mode 100644 index 0000000..78ff27f --- /dev/null +++ b/src/components/header.component.vue @@ -0,0 +1,334 @@ + + + diff --git a/src/components/largePopUp.component.vue b/src/components/largePopUp.component.vue new file mode 100644 index 0000000..711cf65 --- /dev/null +++ b/src/components/largePopUp.component.vue @@ -0,0 +1,180 @@ + + + + diff --git a/src/components/leftSide/leftSide.component.html b/src/components/leftSide/leftSide.component.html new file mode 100644 index 0000000..0017334 --- /dev/null +++ b/src/components/leftSide/leftSide.component.html @@ -0,0 +1,66 @@ +
+
+ + 今日消防值班人员 + +
+
+
+
+
+

带班领导陈远航 139308897887

+ +
    +
  • +
    + + {{ item.name }} +
    + {{ item.tel }} + {{ item.job }} +
  • +
+
+
+
+
+ + 车辆信息 + +
+ 车辆类型 + 备战 + 巡检 + 故障 + 保养 + 合计 +
+ +
+
+ {{ item.title }} + {{ item.bz }} + {{ item.xj }} + {{ item.gz }} + {{ item.by }} + {{ item.total }} +
+
+
+
+
+ + 重点区域火灾报警点位 + +
+ +
+
+
{{item.label}}
+
{{item.status === 0?'报警':'正常'}}
+
+
+
+
+
+
diff --git a/src/components/leftSide/leftSide.component.ts b/src/components/leftSide/leftSide.component.ts new file mode 100644 index 0000000..992c3fd --- /dev/null +++ b/src/components/leftSide/leftSide.component.ts @@ -0,0 +1,481 @@ +import {Component, Emit, Prop, Vue} from 'vue-property-decorator'; +import template from "./leftSide.component.html" + + +import TitleComponent from "@/components/title.component.vue" +import WarningListComponent from "@/components/warningList.component.vue" +import ScrollBoxComponent from "@/components/scrollBox.component.vue" +import * as turf from '@turf/turf' +import Mock from "mockjs" +import moment from "moment" + +import("@/assets/style/pageCommon.component.scss") + + +Component.registerHooks([ + 'beforeRouteLeave', +]); +@Component({ + template, + components: { + TitleComponent, + WarningListComponent, + ScrollBoxComponent + }, +}) +export default class LeftSideComponent extends Vue { + //传入的报警信息详情 + @Prop({ + default: ()=> { + return { + "typeName": "火灾", + "content": "北京汉邦唐化工厂区发生火灾", + "levelName": "二级", + "levelClass": "level-2-text", + "levelClassIcon": "level-2", + "time": "2023-05-15 15:21:35", + "address": "工厂厂房", + "reporter": "蒋丽", + "tableHeader": [ + { + "prop": "name", + "label": "摄像头名称" + }, + { + "prop": "type", + "label": "类型" + }, + { + "prop": "distance", + "label": "距离 (m)" + } + ], + "tableData": [ + { + "type": "简型摄像头", + "distance": "10", + "name": "1号摄像头" + }, + { + "type": "简型摄像头", + "distance": "20", + "name": "2号摄像头" + }, + { + "type": "简型摄像头", + "distance": "22", + "name": "3号摄像头" + }, + { + "type": "简型摄像头", + "distance": "10", + "name": "4号摄像头" + }, + { + "type": "简型摄像头", + "distance": "20", + "name": "5号摄像头" + }, + { + "type": "简型摄像头", + "distance": "22", + "name": "6号摄像头" + } + ], + "title": "火灾爆炸", + "info": "北京汉邦唐化工厂区发生火灾", + "level": "1", + "type": "fire", + "tel": 13231475537, + "id": "110000197911038403", + "position": [ + 13312990.72, + 4098613.12, + 0.51 + ] + } + } + }) info!: any; + //标题左侧图标 + imgSrc = require("@/assets/icons/png/env/env-title-icon.png"); + imgDutySrc = require("@/assets/icons/png/duty-icon.png"); + imgCarSrc = require("@/assets/icons/png/car-icon.png"); + imgPointSrc = require("@/assets/icons/png/point-icon.png"); + + currentCompany = false + popObj: any = { + popTitle: '报警记录', + type: '', + title: '风险点异常', + info: '', + time: '', + address: '', + level: '', + typeName: "", + reporter: "", + tel: "", + position: [], + content: "", + typeId: "", + id: '' + + } + typeList = [ + { + label: '气体泄露', + value: 'normal', + level: 2, + id: 1 + }, { + label: '火灾爆炸', + value: 'fire', + level: 1, + id: 2 + }, { + label: '气液泄露', + value: 'normal', + level: 1, + id: 3 + }, { + label: '安全事故', + value: 'normal', + level: 2, + id: 4 + }, { + label: '自然灾害', + value: 'normal', + level: 3, + id: 5 + }, + ] + eqList =[ + { + label:'乙烯装置01-Y-001', + status:1, + },{ + label:'乙烯装置02-W-098', + status:0, + },{ + label:'芳烃装置03-R-012', + status:1, + },{ + label:'硝基苯胺04-Q-034', + status:0, + },{ + label:'硝基苯胺04-T-001', + status:1, + },{ + label:'邻苯甲酚09-Y-129', + status:0, + },{ + label:'二氯苯胺10-Y-09', + status:0, + }, + ] + levelClass = 'level-1'; + levelName = '一级'; + level = 1; + cardText = 'level-1-text'; + dutyList = [ + {name:'刘月明',tel:'139308897887',job:'指挥员'}, + {name:'王建民',tel:'139308897887',job:'指挥员'}, + {name:'李璇',tel:'139308897887',job:'指挥员'}, + {name:'刘月明',tel:'139308897887',job:'指挥员'}, + {name:'王建民',tel:'139308897887',job:'指挥员'}, + {name:'李璇',tel:'139308897887',job:'指挥员'} + ] + tableData = [ + { + title: '水罐消防车', + bz: '1', + xj: '2', + gz: '0', + by: '0', + total: '3', + }, { + title: '抢险救援车', + bz: '2', + xj: '0', + gz: '1', + by: '1', + total: '4', + }, { + title: '干粉泡沫联用车', + bz: '1', + xj: '2', + gz: '0', + by: '0', + total: '3', + }, { + title: '泡沫运输车', + bz: '2', + xj: '0', + gz: '1', + by: '1', + total: '4', + },{ + title: '重型泡沫消防车', + bz: '2', + xj: '0', + gz: '1', + by: '1', + total: '4', + },{ + title: '举高喷射消防车', + bz: '1', + xj: '1', + gz: '1', + by: '1', + total: '4', + },{ + title: '化学洗消消防车', + bz: '3', + xj: '0', + gz: '1', + by: '1', + total: '5', + },{ + title: '大跨度消防车', + bz: '0', + xj: '0', + gz: '1', + by: '1', + total: '2', + },{ + title: '干粉消防车', + bz: '0', + xj: '0', + gz: '1', + by: '1', + total: '2', + },{ + title: '云梯消防车', + bz: '1', + xj: '0', + gz: '1', + by: '1', + total: '3', + },{ + title: '槽罐车', + bz: '1', + xj: '0', + gz: '2', + by: '1', + total: '4', + },{ + title: '多功能救护车', + bz: '1', + xj: '0', + gz: '2', + by: '1', + total: '4', + },{ + title: '后勤保障车', + bz: '1', + xj: '0', + gz: '2', + by: '1', + total: '4', + } + ] + tableDataExpert = [ + { + person: '黄勇军, 程宇航,蔡宝惠', + area: '火灾救援', + checked: false, + }, { + person: '林子涵,吴琳芳,梁博雅', + area: '医疗救助', + checked: false, + }, { + person: '陶春华,邓思琪,张锐毅', + area: '医疗组', + checked: false, + }, + ] + tableDataVicinity = [ + { + position: '人民广场东北方向…', + distance: '10', + name: '一号站', + checked: false, + }, { + position: '人民广场西南方向…', + distance: '20', + name: '四号站', + checked: false, + }, { + position: '人民广场西北方向…', + distance: '30', + name: '二号站', + checked: false, + }, + ] + // 当前进度条 + active = 1 + + get dataList() { + return this.$store.state.warningList.filter(item => item.model === 'eme') + } + + //下一步操作 + nextStep() { + if (this.active < 3) { + this.active++ + } + this.gotoNext() + } + + @Emit('gotoNext') + gotoNext() { + // + } + + changeLevel(type) { + if (type === 'up') { + if (this.level === 1) { + return + } + this.level-- + + } else if (type === 'down') { + if (this.level === 4) { + return + } + this.level++ + } + const nameList = { + 1: '一级', + 2: '二级', + 3: '三级', + 4: '四级', + } + this.levelName = nameList[this.level] + this.levelClass = `level-${this.level}` + this.cardText = `level-${this.level}-text` + } + + setData(val, type) { + if (type === 'typeName') { + const find = this.typeList.find(item => item.id == val) as any + this.popObj.level = find.level + this.popObj.title = find.label + this.popObj.type = find.value + } + this.popObj[type] = val + } + + //展示告警信息 + showWaring(item) { + const levelMap = { + 1:'一级', + 2:'二级', + 3:'三级', + 4:'四级', + } + const levelClassMap = { + 4:'blue', + 3:'yellow', + 2:'orange', + 1:'red', + } + this.getItem(Object.assign(item,{ + level:item.level, + levelClass:levelClassMap[item.level], + levelName:levelMap[item.level], + equipment:'园区2号监测点', + tableHeader:[ + { + 'prop': 'alarmSubject', + 'label': '告警主体', + 'width': '90px', + }, { + 'prop': 'COD', + 'label': 'COD', + }, { + 'prop': 'standard', + 'label': '标准值', + }, + ], + tableData: [{ + 'alarmSubject': '排放量', + 'COD': '456m3', + 'standard': '466m3', + }, { + 'alarmSubject': '排放浓度', + 'COD': '2.6mg/L', + 'standard': '2.5mg/L', + }, { + 'alarmSubject': '排放时间', + 'COD': '2023.3.31 05:03:45', + 'standard': '8:00-22:00', + }, { + 'alarmSubject': '排放浓度', + 'COD': '2.6mg/L', + 'standard': '2.5mg/L', + }, { + 'alarmSubject': '排放时间', + 'COD': '2023.3.31 05:03:45', + 'standard': '8:00-22:00', + }] + })) + } + //点击告警信息 + @Emit() + getItem(item) { + // console.log('item', item) + } + + count = 1 + + + mounted() { + + } + + destroyed() { + + } + + + + changeClose() { + console.log(1) + } + + addManual() { + this.currentCompany = true + } + + submitWaring() { + this.popObj.id = Mock.mock("@id"); + if (this.popObj.type === 'normal') { + this.popObj.position = turf.randomPosition([ + 13312995.84, + 4098177.2800000003, + 13313096.96, + 4098754.88, + ]); + } else if (this.popObj.type === 'fire') { + this.popObj.position = [13312990.72, 4098613.12, 0.51] + } + this.popObj.time = moment().subtract(0, "days").format("YYYY-MM-DD HH:mm:ss") + + this.$store.commit("upDateWaringList", [this.popObj]) + this.currentCompany = false + } + + //点击点位 + @Emit('changePoint') + changePoint(item) { + console.log(item) +// + } + //点击点位 + @Emit('changeMore') + changeMore(item) { + console.log(item) +// + } +} + diff --git a/src/components/map.component.vue b/src/components/map.component.vue new file mode 100644 index 0000000..b5e49f0 --- /dev/null +++ b/src/components/map.component.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/components/permitPopUp.component.vue b/src/components/permitPopUp.component.vue new file mode 100644 index 0000000..bef4457 --- /dev/null +++ b/src/components/permitPopUp.component.vue @@ -0,0 +1,86 @@ + + + + diff --git a/src/components/pop.component.vue b/src/components/pop.component.vue new file mode 100644 index 0000000..03d2026 --- /dev/null +++ b/src/components/pop.component.vue @@ -0,0 +1,33 @@ + + + + diff --git a/src/components/rightList.component.vue b/src/components/rightList.component.vue new file mode 100644 index 0000000..2deb398 --- /dev/null +++ b/src/components/rightList.component.vue @@ -0,0 +1,150 @@ + + + diff --git a/src/components/rightSide/rightSide.component.html b/src/components/rightSide/rightSide.component.html new file mode 100644 index 0000000..03d0dba --- /dev/null +++ b/src/components/rightSide/rightSide.component.html @@ -0,0 +1,23 @@ +
+
+ + 报警信息 + +
+ +
+
+
+ + 全场重点消防监控 + +
2#氧化反应器R-2222
+
+ +
+
4#氧化反应器R-2224
+
+ +
+
+
diff --git a/src/components/rightSide/rightSide.component.ts b/src/components/rightSide/rightSide.component.ts new file mode 100644 index 0000000..83f3100 --- /dev/null +++ b/src/components/rightSide/rightSide.component.ts @@ -0,0 +1,102 @@ +import {Component, Emit, Vue} from 'vue-property-decorator'; +import template from "./rightSide.component.html" +import TitleComponent from "@/components/title.component.vue" +import WarningListComponent from "@/components/warningList.component.vue" +import {getPreviousDay} from "@/utils/utils"; +import("@/assets/style/pageCommon.component.scss") + + +Component.registerHooks([ + 'beforeRouteLeave', +]); +@Component({ + template, + components: { + TitleComponent, + WarningListComponent + }, +}) +export default class RightSideComponent extends Vue { + //标题图片 + imgSrc = require("@/assets/icons/png/env/env-title-icon.png"); + imgMsgSrc = require("@/assets/icons/png/message-icon.png"); + imgVideoSrc = require("@/assets/icons/png/video-icon.png"); + + mounted() { + + } + get dataList() { + // return this.$store.state.warningList.filter(item => item.model === 'env') + return this.$store.state.eventList + } + //展示告警信息 + showWaring(item) { + + const levelMap = { + 1:'一级', + 2:'二级', + 3:'三级', + 4:'四级', + } + const levelClassMap = { + 4:'blue', + 3:'yellow', + 2:'orange', + 1:'red', + } + console.log(item) + this.getItem(Object.assign(item, { + level: item.level, + levelClass: levelClassMap[item.level], + levelName: levelMap[item.level], + equipment: '北区广场10号监测仪', + tableHeader: [ + { + 'prop': 'alarmSubject', + 'label': '告警主体', + 'width': '90px', + }, { + 'prop': 'COD', + 'label': 'COD', + }, { + 'prop': 'standard', + 'label': '标准值', + }, + ], + tableData: [{ + 'alarmSubject': '排放量', + 'COD': '456m3', + 'standard': '466m3', + }, { + 'alarmSubject': '排放浓度', + 'COD': '2.6mg/L', + 'standard': '2.5mg/L', + }, { + 'alarmSubject': '排放时间', + 'COD': getPreviousDay(item.time), + 'standard': '8:00-22:00', + }] + })) + } + //点击告警信息 + @Emit('getItem') + getItem(item) { + // console.log('item', item) + } + @Emit('changeMore') + changeMore(e){ + + } + @Emit('openPopVideo') + openPopVideo(e){ + + } + beforeDestroy() { + + } + destroyed() { + + } + +} + diff --git a/src/components/scrollBox.component.vue b/src/components/scrollBox.component.vue new file mode 100644 index 0000000..01bc798 --- /dev/null +++ b/src/components/scrollBox.component.vue @@ -0,0 +1,134 @@ + + + + + + + + + diff --git a/src/components/scrollNumber.component.vue b/src/components/scrollNumber.component.vue new file mode 100644 index 0000000..d44cb7a --- /dev/null +++ b/src/components/scrollNumber.component.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/components/title.component.vue b/src/components/title.component.vue new file mode 100644 index 0000000..c97bd70 --- /dev/null +++ b/src/components/title.component.vue @@ -0,0 +1,129 @@ + + + + diff --git a/src/components/warningDetail.component.vue b/src/components/warningDetail.component.vue new file mode 100644 index 0000000..e0a7aca --- /dev/null +++ b/src/components/warningDetail.component.vue @@ -0,0 +1,118 @@ + + + diff --git a/src/components/warningList.component.vue b/src/components/warningList.component.vue new file mode 100644 index 0000000..3970225 --- /dev/null +++ b/src/components/warningList.component.vue @@ -0,0 +1,136 @@ + + + diff --git a/src/dataDemo/index b/src/dataDemo/index new file mode 100644 index 0000000..7faabd8 --- /dev/null +++ b/src/dataDemo/index @@ -0,0 +1,15 @@ +//智慧化工园区总体介绍 +export const indexPageData = { + "parkIntroduction": '上海青浦工业园区是1995年11月25日,经上海市人民政府批准成立的九大市级工业开发区之一,目前规划面积56.2平方公里。园区不仅位于长三角"之"字型经济圈的交接处,是上海通往江苏、浙江两省的交汇点,而且也是长三角制造业产业带的中心,具有承东启西、东联西进产业带的枢纽作用和对长三角、华东地区的辐射作用。\n' + + '经过20多年的开发建设,上海青浦工业园区已经成为全区经济发展的重要增长极,2016年,园区的规模工业产值、就业人口和税收收入分别占全区的1/2、1/3和1/4; 已经成为全市投资环境最好的区域之一,世界500强和行业龙头企业纷纷在园区投资落户。目前,已形成了以德国海德堡为代表的印刷传媒产业,以日立电梯为代表的精密机械产业,以腾讯云计算为代表的电子信息产业,以高田汽配为代表的汽车零部件产业,以日本尤妮佳为代表的纺织新材料产业等主导产业格局。同时,一批研发中心、技术服务中心等与园区制造业相关的配套生产性服务业也初具雏形,综合配套能力不断提升,产城联动效应逐步显现。', + "menu": [ + {menuName: '一园一档', path: '/front/oneGardenAndOneGear',imgName:'yyyd'}, + {menuName: '一企一档', path: '/front/oneGearPerEnterprise',imgName:'yqyd'}, + {menuName: '智慧安监', path: '/front/smartSafetySupervision',imgName:'zhaj'}, + {menuName: '智慧环保', path: '/front/smartAndEnvironmentallyFriendly',imgName:'zhhb'}, + {menuName: '智慧应急', path: '/front/smartEmergency',imgName:'zhyj'}, + {menuName: '封闭园区', path: '/front/closedCampus',imgName:'fbyq'}, + {menuName: '智慧能源', path: '/front/smartEnergy',imgName:'zhny'}, + {menuName: '智慧管廊', path: '/',imgName:'zhgl'}, + ] +} diff --git a/src/dataDemo/mockData.js b/src/dataDemo/mockData.js new file mode 100644 index 0000000..5929f1e --- /dev/null +++ b/src/dataDemo/mockData.js @@ -0,0 +1,1315 @@ +let Mock = require('mockjs') +let dateFunction = function () { + let now = new Date(this.now); + now.setTime(now.getTime() + this.fromNowOn * 24 * 60 * 60 * 1000); + let sub = now; + let year = sub.getFullYear() < 10 ? '0' + sub.getFullYear() : sub.getFullYear(); + let month = sub.getMonth() + 1 < 10 ? '0' + sub.getMonth() : sub.getMonth(); + let day = sub.getDate() < 10 ? '0' + sub.getDate() : sub.getDate(); + if (month == '00') { + month = '12' + year = year - 1 + } + return month + '-' + day; +} +let dateTimeFunction = function () { + let now = new Date(this.now); + now.setTime(now.getTime() + this.fromNowOn * 24 * 60 * 60 * 1000); + let sub = now; + let year = sub.getFullYear() < 10 ? '0' + sub.getFullYear() : sub.getFullYear(); + let month = sub.getMonth() + 1 < 10 ? '0' + sub.getMonth() : sub.getMonth(); + let day = sub.getDate() < 10 ? '0' + sub.getDate() : sub.getDate(); + let HH = sub.getHours() < 10 ? '0' + sub.getHours() : sub.getHours(); + let mm = sub.getMinutes() < 10 ? '0' + sub.getMinutes() : sub.getMinutes(); + let ss = sub.getSeconds() < 10 ? '0' + sub.getSeconds() : sub.getSeconds(); + if (month == '00') { + month = '12' + year = year - 1 + } + return year + '-' + month + '-' + day + ' ' + HH + ':' + mm + ':' + ss; +} +let dateFunctionHour = function () { + let now = new Date(this.now); + now.setTime(now.getTime() + this.fromNowOn * 60 * 60 * 1000); + let sub = now; + let HH = sub.getHours() < 10 ? '0' + sub.getHours() : sub.getHours(); + let mm = sub.getMinutes() < 10 ? '0' + sub.getMinutes() : sub.getMinutes(); + let ss = sub.getSeconds() < 10 ? '0' + sub.getSeconds() : sub.getSeconds(); + return HH + ':' + mm ; +} +export let data1 = Mock.mock({ + 'data|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': 31, + 'date': dateFunction + } + ] +}) + +export let data2 = Mock.mock({ + 'data|30': [ + { + "value|15-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': 31, + 'date': dateFunctionHour + } + ] +}) + +export let data5 = Mock.mock({ + 'data|30': [ + { + "value|25-200": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': 31, + 'date': dateFunctionHour + } + ] +}) + +export const dataSep = Mock.mock({ + 'data|10': [{ + 'data|30': + [{ + "value|15-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + }] + }] +}) + +export const yearData = { + "CO": "22", + "O3": "34", + "SO2": "11", + "NO2": "24", + "PM2.5": "15", + "PM10": "40", +} +// 指标:甲醛、甲醇、CL2、NO、HF、HCL\HCN\BR2\C4H80\C3H5CLO\MACHS\HBR\C3H3N\乙醇 +export const yearData1 = { + "甲醛": "21", + "甲醇": "14", + "CL2": "18", + "HF": "32", + "CO": "22", + "NO": "10", + "HCL": "42", + "HCN": "31", + "BR2": "21", + "C4H80": "33", + // "C3H5CLO": "10", + "MACHS": "25", + "HBR": "13", + "C3H3N": "41", + "乙醇": "15", +} +//特征污染物指标卡 +export const sepCardData = { + "甲醛": "21", + "甲醇": "14", + "CL2": "18", + "HF": "32", + "BR2": "22", + "NO": "10", + "HCL": "42", + "HCN": "31", + // "BR2": "21", + // "C4H80": "33", + // "C3H5CLO": "10", + // "MACHS": "25", + // "HBR": "13", + // "C3H3N": "41", + // "乙醇": "15", +} +// 指标:COD\PH、溶解氧、高锰酸钾、生化需氧量、氨氮挥发酚、汞、铅、石油 +export const yearData2 = { + "COD": "21", + "PH": "14", + "溶解酶": "18", + "高锰酸钾": "32", + "生化需氧量": "22", + "氨氮": "10", + "挥发酚": "42", + "汞": "14", + "铅": "21", + "石油": "17", +} +// 指标:多环芳烃\VOC\SVOC\PH\镉\汞\砷\铅 +export const yearData3 = { + "多环芳烃": "21", + "VOC": "14", + "SVOC": "18", + "PH": "32", + "镉": "22", + "汞": "10", + "铅": "42", + "砷": "21", +} +export const data3 = { + "data": [ + {type: 'PH',name:'PH', value: ""}, + {type: 'PAHs',name: 'PAHs', value: "0"}, + {type: 'SVOC',name: 'SVOC', value: "0"}, + {type: 'VOC', name: 'VOC', value: "30"}, + {type: '镉',name: '镉', value: "60"}, + {type: '汞',name: '汞', value: "20"}, + {type: '砷',name: '砷', value: "20"}, + {type: '铅',name: '铅', value: "20"}, + ] +} +export const data3ForAir = { + "data": [ + {type: 'CO',name:'CO', value: ""}, + {type: 'O3',name: 'O3', value: "0"}, + {type: 'SO2',name: 'SO2', value: "0"}, + {type: 'NO2', name: 'NO2', value: "30"}, + {type: 'PM2.5',name: 'PM2.5', value: "60"}, + {type: 'PM10',name: 'PM10', value: "20"} + ] +} +export const data3ForSpecial = { + "data": [ + {type: '甲醛',name:'甲醛', value: ""}, + {type: '甲醇',name: '甲醇', value: "0"}, + {type: '氯气',name: '氯气', value: "0"}, + {type: 'NO', name: 'NO', value: "30"}, + {type: 'HF',name: 'HF', value: "60"}, + {type: 'HCL',name: 'HCL', value: "20"}, + {type: '苯系物',name: '苯系物', value: "20"}, + {type: '乙醇',name: '乙醇', value: "20"}, + ] +} +export const data3ForWater = { + "data": [ + {type: 'COD',name:'COD', value: ""}, + {type: 'PH',name: 'PH', value: "0"}, + {type: '溶解氧',name: '溶解氧', value: "0"}, + {type: 'KMnO4', name: 'KMnO4', value: "30"}, + {type: '氨氮',name: '氨氮', value: "60"}, + {type: '汞',name: '汞', value: "20"}, + {type: 'BOD5',name: 'BOD5', value: "20"}, + {type: '铅',name: '铅', value: "20"}, + {type: '挥发酚',name: '挥发酚', value: "20"}, + {type: '石油',name: '石油', value: "20"}, + ] +} + +export const top10 = { + "data": [ + {type: '2号区3号库AAA监测点', value: 76}, + {type: '2号区3号库BBB监测点', value: 50}, + {type: '2号区3号库CCC监测点', value: 40}, + {type: '2号区3号库DDD监测点', value: 30}, + {type: '2号区3号库EEE监测点', value: 20}, + ] +} +export const airDetail = { + "data": [ + {type: '当前AQI值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前CO值', value: "25", level: '优', class: 'greenTxt'}, + {type: '当前O3值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '当前SO2值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '当前NO2值', value: "80", level: '严重', class: 'redTxt'}, + {type: '当前PM2.5值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前PM10值', value: "60", level: '中度', class: 'purpleTxt'}, + ] +} + +export const waterDetail = { + "data": [ + {type: '当前COD值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前PH值', value: "25", level: '优', class: 'greenTxt'}, + {type: '当前溶解氧值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '当前高锰酸钾值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '当前生化需氧量值', value: "80", level: '严重', class: 'redTxt'}, + {type: '当前汞值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前氨氮值', value: "60", level: '中度', class: 'purpleTxt'}, + {type: '当前挥发酚值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前铅值', value: "25", level: '优', class: 'greenTxt'}, + {type: '当前石油值', value: "40", level: '良', class: 'yellowTxt'}, + ] +} + +export const soilDetail = { + "data": [ + {type: '最新PH值', value: "20", level: '优', class: 'greenTxt'}, + {type: '最新多环芳烃值', value: "25", level: '优', class: 'greenTxt'}, + {type: '最新SVOC值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '最新VOC值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '最新镉值', value: "80", level: '严重', class: 'redTxt'}, + {type: '最新汞值', value: "20", level: '优', class: 'greenTxt'}, + {type: '最新砷值', value: "60", level: '中度', class: 'purpleTxt'}, + {type: '最新铅值', value: "20", level: '优', class: 'greenTxt'}, + ] +} +//特征污染物数据 +export const characterDetail = { + "data": [ + {type: '当前甲醛值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前甲醇值', value: "25", level: '优', class: 'greenTxt'}, + {type: '当前CL2值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '当前NO值', value: "40", level: '良', class: 'yellowTxt'}, + {type: '当前HF值', value: "80", level: '严重', class: 'redTxt'}, + {type: '当前HCL值', value: "20", level: '优', class: 'greenTxt'}, + {type: '当前HCN值', value: "60", level: '中度', class: 'purpleTxt'}, + {type: '当前BR2值', value: "20", level: '优', class: 'greenTxt'}, + /*{type: '当前C4H80值', value: "20",level:'优',class:'greenTxt'}, + {type: '当前C3H5CLO值', value: "20",level:'优',class:'greenTxt'}, + {type: '当前MACHS值', value: "20",level:'优',class:'greenTxt'}, + {type: '当前HBR值', value: "20",level:'优',class:'greenTxt'}, + {type: '当前C3H3N值', value: "20",level:'优',class:'greenTxt'}, + {type: '当前乙醇值', value: "20",level:'优',class:'greenTxt'},*/ + ] +} +export let dataForDay = Mock.mock({ + 'data|6': [{ + 'dataList|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + "name|+1": [ + "CO", + "O3", + "SO2", + "NO2", + "PM2.5", + "PM10", + ] + }] +}) + +export let dataForHour = Mock.mock({ + 'data|6': [{ + 'dataList|30': [ + { + "value|20-50": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + "CO", + "O3", + "SO2", + "NO2", + "PM2.5", + "PM10", + ] + }] + +}) +export let dataForSoilDay = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + "PH", + "PAHs", + "SVOC", + "VOC", + "镉", + "汞", + "砷", + "铅", + ] + }] +}) + +export let dataForSoilHour = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|10-50": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + "PH", + "PAHs", + "SVOC", + "VOC", + "镉", + "汞", + "砷", + "铅", + ] + }] + +}) +export let dataForSpecialDay = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + "甲醛", + "甲醇", + "氯气", + "NO", + "HF", + "HCL", + "苯系物", + "乙醇", + ] + }] +}) + +export let dataForSpecialHour = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|10-50": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + "甲醛", + "甲醇", + "氯气", + "NO", + "HF", + "HCL", + "苯系物", + "乙醇", + ] + }] + +}) +export let dataForWaterDay = Mock.mock({ + 'data|10': [{ + 'dataList|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + 'COD', + 'PH', + '溶解氧', + 'KMnO4', + '氨氮', + '汞', + 'BOD5', + '铅', + '挥发酚', + '石油' + ] + }] +}) + +export let dataForWaterHour = Mock.mock({ + 'data|10': [{ + 'dataList|30': [ + { + "value|10-50": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + 'smooth':true, + 'label': { + 'show': true, + 'position':'top', + 'color':'#ffffff', + 'borderWidth':0 + }, + "name|+1": [ + 'COD', + 'PH', + '溶解氧', + 'KMnO4', + '氨氮', + '汞', + 'BOD5', + '铅', + '挥发酚', + '石油' + ] + }] + +}) + +export let dataForHour1 = Mock.mock({ + 'data|8': [{ + 'data|6': [{ + 'dataList|30': [ + { + "value|1-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + "name|+1": [ + "CO", + "O3", + "SO2", + "NO2", + "PM2.5", + "PM10", + ] + }] + }] +}) + +export let dataForBar = Mock.mock({ + 'data|8': [{ + 'data|6': [{ + "value|1-100": 1, + "type|+1": [ + "CO", + "O3", + "SO2", + "NO2", + "PM2.5", + "PM10", + ] + }] + }] +}) + +// 图例:COD\PH、溶解氧、高锰酸钾、生化需氧量、氨氮挥发酚、汞、铅、石油 +export let dataForWaterLineHour = Mock.mock({ + 'data|9': [{ + 'dataList|30': [ + { + "value|1-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + "name|+1": [ + "COD", + "PH", + "溶解氧", + "高锰酸钾", + "生化需氧量", + "氨氮挥发酚", + "汞", + "铅", + "石油", + ] + }] +}) + +export const dataForWaterLineHour1 = Mock.mock({ + 'data|9': [ + { + 'data|9': + [{ + 'dataList|30': [ + { + "value|1-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + "name|+1": [ + "COD", + "PH", + "溶解氧", + "高锰酸钾", + "生化需氧量", + "氨氮挥发酚", + "汞", + "铅", + "石油", + ] + }] + }] +}) + +export let dataForWaterLineDay = Mock.mock({ + 'data|9': [{ + 'dataList|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + "name|+1": [ + "COD", + "PH", + "溶解氧", + "高锰酸钾", + "生化需氧量", + "氨氮挥发酚", + "汞", + "铅", + "石油", + ] + }] +}) +const colorMap = { + "COD": "cod", + "PH": "ph", + "溶解氧": "rjy", + "KMnO4": "gmsj", + "BOD5": "shxyl", + "氨氮": "ad", + "挥发酚": "hff", + "汞": "hg", + "铅": "pb", + "石油": "oil", +} +export const dataForWaterBar = Mock.mock({ + "data|10": [ + { + "type|+1": [ + "COD", + "PH", + "溶解氧", + "KMnO4", + "BOD5", + "氨氮", + "挥发酚", + "汞", + "铅", + "石油", + ], + "name|+1": [ + "COD", + "PH", + "溶解氧", + "KMnO4", + "BOD5", + "氨氮", + "挥发酚", + "汞", + "铅", + "石油", + ], + "value|1-100": 1, + "value1": function () { + return 100 - this.value * 1 + }, + "color": function () { + return colorMap[this.name] + }, + } + + ] +}) +export const dataForWaterBar1 = Mock.mock({ + "data|9": [{ + "data|9": + [{ + "type|+1": [ + "COD", + "PH", + "溶解氧", + "高锰酸钾", + "生化需氧量", + "氨氮", + "挥发酚", + "汞", + "铅", + "石油", + ], + "name|+1": [ + "COD", + "PH", + "溶解氧", + "高锰酸钾", + "生化需氧量", + "氨氮", + "挥发酚", + "汞", + "铅", + "石油", + ], + "value|1-100": 1, + "value1": function () { + return 100 - this.value * 1 + }, + "color": function () { + return colorMap[this.name] + }, + }] + + }] +}) + +export const airPointData = Mock.mock({ + "data|9": [ + { + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn': -31, + 'date': dateTimeFunction, + 'subAttr': '当前AQI', + 'subValue|15-80': 1, + 'attrList': { + "当前CO值|15-80": 1, + "当前O3值|15-80": 1, + "当前SO2值|15-80": 1, + "当前NO2值|15-80": 1, + "当前PM2.5值|15-80": 1, + "当前PM10值|15-80": 1, + } + } + ] +}) +export const waterPointData = Mock.mock({ + "data|9": [ + { + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn': -31, + 'date': dateTimeFunction, + 'subAttr': '水体污染指数', + 'subValue|15-80': 1, + 'attrList': { + "当前COD值|15-80": 1, + "当前PH值|15-80": 1, + "当前溶解氧值|15-80": 1, + "当前高锰酸钾值|15-80": 1, + "当前生化需氧量值|15-80": 1, + "当前汞值|15-80": 1, + "当前氨氮值|15-80": 1, + "当前挥发酚值|15-80": 1, + "当前铅值|15-80": 1, + "当前石油值|15-80": 1, + } + } + ] +}) +export const soilPointData = Mock.mock({ + "data|9": [ + { + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn': -31, + 'date': dateTimeFunction, + 'subAttr': 'CPI指数', + 'subValue|15-80': 1, + 'attrList': { + "最新PH值|15-80": 1, + "最新多环芳烃值|15-80": 1, + "最新SVOC值|15-80": 1, + "最新VOC值|15-80": 1, + "最新镉值|15-80": 1, + "最新汞值|15-80": 1, + "最新砷值|15-80": 1, + "最新铅值|15-80": 1 + } + } + ] +}) +export const sepPointData = Mock.mock({ + "data|9": [ + { + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn': -31, + 'date': dateTimeFunction, + 'subAttr': '特征污染物', + 'subValue': '未超标', + 'attrList': { + "当前甲醛值|15-80": 1, + "当前甲醇值|15-80": 1, + "当前CL2值|15-80": 1, + "当前NO值|15-80": 1, + "当前HF值|15-80": 1, + "当前HCL值|15-80": 1, + "当前HCN值|15-80": 1, + "当前BR2值|15-80": 1 + } + } + ] +}) + + +// 图例:COD\PH、溶解氧、高锰酸钾、生化需氧量、氨氮挥发酚、汞、铅、石油 +export let sepLineHour = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|1-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + "name|+1": [ + "甲醛", + "甲醇", + "CL2", + "HF", + "BR2", + "NO", + "HCL", + "HCN" + ] + }] +}) +export let sepLineHour1 = Mock.mock({ + 'data|8': [{ + 'data|8': [{ + 'dataList|30': [ + { + "value|1-100": 1, + 'now|+1': '@now("yyyy-MM-dd HH:mm:ss")', + 'fromNowOn|+1': -31, + 'date': dateFunctionHour + } + ], + 'type': 'line', + "name|+1": [ + "甲醛", + "甲醇", + "CL2", + "HF", + "BR2", + "NO", + "HCL", + "HCN" + ] + }] + }] +}) +export let sepLineDay = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + "name|+1": [ + "甲醛", + "甲醇", + "CL2", + "HF", + "BR2", + "NO", + "HCL", + "HCN" + ] + }] +}) + + +//特征污染物柱状图 +export const data4 = Mock.mock({ + 'data|8': [{ + "value|1-100": 1, + "type|+1": [ + "甲醛", + "甲醇", + "CL2", + "HF", + "BR2", + "NO", + "HCL", + "HCN" + ] + }] +}) +//特征污染物柱状图 +export const dataSepBar = Mock.mock({ + 'data|8': [{ + 'data|8': [{ + "value|1-100": 1, + "type|+1": [ + "甲醛", + "甲醇", + "CL2", + "HF", + "BR2", + "NO", + "HCL", + "HCN" + ] + }] + }] +}) +//污染源随机数据池 +export const radomPool = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|20-90": 1, + + } + ] + } + ] +}) + +//污染源日均数据 +export let pollutionLineDay = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|20-90": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源超限统计 +export let overrunData = Mock.mock({ + 'data|8': [{ + 'dataList|12': [ + { + "value|0-20": 1, + } + ], + 'type': 'line', + }] +}) + + +//智慧能源用水日统计 +export let waterDailyData = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|300-800": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源抄水表 +export let waterDataDaily = Mock.mock({ + 'data|20': [{ + 'dataList|20': [ + { + "value|300-800.0-2": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源节水目标 +export let waterConservation = Mock.mock({ + 'data|8': [ + { + "value|300-500": 1, + } + ], + 'type': 'line', + +}) + +//智慧能源抄电表 +export let electricityDataDaily = Mock.mock({ + 'data|20': [{ + 'dataList|20': [ + { + "value|10000-40000.0-1": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源减排目标 +export let conservationTarget = Mock.mock({ + 'data|20': [ + { + "value|100-150": 1, + } + ], + 'type': 'line', + +}) + +//智慧能源抄电表 +export let conservationAnalysis = Mock.mock({ + 'data|8': [{ + 'dataList|13': [ + { + "value|200-300": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源抄燃气表 +export let gasDataDaily = Mock.mock({ + 'data|20': [{ + 'dataList|20': [ + { + "value|40-4000.0-2": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源抄蒸汽表 +export let steamDataDaily = Mock.mock({ + 'data|20': [{ + 'dataList|20': [ + { + "value|40-100.0-2": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用水月统计 +export let waterMonthlyData = Mock.mock({ + 'data|8': [{ + 'dataList|12': [ + { + "value|900-24000": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用电日统计 +export let electricityDailyData = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|1-4": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用电月统计 +export let electricityMonthlyData = Mock.mock({ + 'data|8': [{ + 'dataList|12': [ + { + "value|30-120": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用电量 +export let electricityUsedData = Mock.mock({ + 'data|8': [{ + 'dataList|13': [ + { + "value|1-4": 1, + } + ], + 'type': 'line', + }] +}) + + +//智慧能源用燃气日统计 +export let gasDailyData = Mock.mock({ + 'data|8': [{ + 'dataList|30': [ + { + "value|40-4000": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用燃气月统计 +export let gasMonthlyData = Mock.mock({ + 'data|8': [{ + 'dataList|12': [ + { + "value|1200-120000": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源首页用燃气园区日统计 +export let gasDailyIndexData = Mock.mock({ + 'data|8': [{ + 'dataList|12': [ + { + "value|4000-5000": 1, + } + ], + 'type': 'line', + }] +}) +//智慧能源首页用燃气园月日统计 +export let gasMonthlyIndexData = Mock.mock({ + 'data|8': [{ + 'dataList|12': [ + { + "value|12-15": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用蒸汽日统计 +export let steamDailyData = Mock.mock({ + 'data|20': [{ + 'dataList|30': [ + { + "value|40-100": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源用蒸汽月统计 +export let steamMonthlyData = Mock.mock({ + 'data|20': [{ + 'dataList|12': [ + { + "value|1200-3000": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源首页用蒸汽园区日统计 +export let steamDailyIndexData = Mock.mock({ + 'data|20': [{ + 'dataList|30': [ + { + "value|200-300": 1, + } + ], + 'type': 'line', + }] +}) + +//智慧能源首页用蒸汽园区月统计 +export let steamMonthlyIndexData = Mock.mock({ + 'data|20': [{ + 'dataList|12': [ + { + "value|6000-9000": 1, + } + ], + 'type': 'line', + }] +}) + + +//生成30日 +export let getDay30 = Mock.mock({ + 'data': [{ + 'date': function () { + let category = []; + let dottedBase = +new Date(); + for (let i = 0; i < 32; i++) { + let sub = new Date((dottedBase += 1000 * 3600 * 24)); + let year = sub.getFullYear() < 10 ? '0' + sub.getFullYear() : sub.getFullYear(); + let month = sub.getMonth() + 1 < 10 ? '0' + (sub.getMonth() + 1) : (sub.getMonth() + 1); + let day = sub.getDate() < 10 ? '0' + sub.getDate() : sub.getDate(); + if (month == '00') { + month = '12' + year = year - 1 + } + category.push([month, day].join("-")); + + } + return category; + + } + + }] + +}) + + +export let dataForGas1 = Mock.mock({ + 'data|2': [{ + 'data|6': [ + { + "value|30-200": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth': true, + "name|+1": [ + "COD", + "氨氮" + ] + }] +}) + +export let dataForGas2 = Mock.mock({ + 'data|2': [{ + 'data|6': [ + { + "value|30-200": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth': true, + "name|+1": [ + "COD", + "氨氮" + ] + }] +}) +export let dataForClean1 = Mock.mock({ + 'data|4': [{ + 'data|6': [ + { + "value|30-200": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth': true, + "name|+1": [ + "COD", + "氨氮", + "VOS", + "石油类" + ] + }] +}) + +export let dataForClean2 = Mock.mock({ + 'data|4': [{ + 'data|6': [ + { + "value|30-200": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth': true, + "name|+1": [ + "COD", + "氨氮", + "VOS", + "石油类" + ] + }] +}) +export let dataForEnergyIndex = Mock.mock({ + 'data|4': [{ + 'data|13': [ + { + "value|500-2500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ], + 'type': 'line', + 'smooth': true, + "name|+1": [ + "石油", + "天然气", + "煤炭", + "煤气" + ] + }] +}) diff --git a/src/dataDemo/smartAndEnvironmentallyFriendlyData.js b/src/dataDemo/smartAndEnvironmentallyFriendlyData.js new file mode 100644 index 0000000..ab226ea --- /dev/null +++ b/src/dataDemo/smartAndEnvironmentallyFriendlyData.js @@ -0,0 +1,131 @@ +let Mock = require('mockjs') +let dateFunction = function () { + let now = new Date(this.now); + now.setTime(now.getTime() + this.fromNowOn * 24 * 60 * 60 * 1000); + let sub = now; + let year = sub.getFullYear() < 10 ? '0' + sub.getFullYear() : sub.getFullYear(); + let month = sub.getMonth() + 1 < 10 ? '0' + sub.getMonth() : sub.getMonth(); + let day = sub.getDate() < 10 ? '0' + sub.getDate() : sub.getDate(); + if (month == '00') { + month = '12' + year = year - 1 + } + return month + '-' + day; +} +let data1 = Mock.mock({ + 'data|30': [ + { + "value|10-200": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ] +}) + +let data2 = Mock.mock({ + 'data|30': [ + { + "value|10-100": 1, + "value2|10-100": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ] +}) +let data3 = Mock.mock({ + 'data|30': [ + { + "value|10-100": 1, + "value2|10-100": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': -31, + 'date': dateFunction + } + ] +}) +//智慧环保页面数据 +export const smartAndEnvironmentallyFriendlyData = { + "daysMonitored": "566",//监测天数 + //大气环境质量 -start + "atmosphericEnvironmentalQuality": { + "aqi": 20,//空气质量指数AQI:取值范围0至正无穷 0-50=优 51-100=良 101-150=轻度污染 151-200=中度污染 201-300=重度污染+蓝色预警 301-400=严重污染+黄色预警 401-500=严重污染+橙色预警 500以上=严重污染+红色预警 + "excellentRate": "75",//优良率 + "alerts": "3",//预警次数 + "data": data1 + }, + //大气环境质量 -end + //水环境质量 -start + "waterQuality": { + "typeOfWaterBody": "Ⅳ", + "comprehensivePollutionIndex": 0.2, + "data": data2 + }, + //水环境质量 -end + //特征污染物监测 -start + "characteristicContaminants": { + "formaldehydeExcessRate": "10",//甲醛超标率 + "methanolExceedance": "22",//甲醇超标率 + // "chlorineGasExcessRate": "33%",//氯气超标率 + "NOExceedance": "36",//一氧化氮超标率 + // "HFExceedance": "26%",//氟化氢超标率 + "BenzeneExceedance": "17",//苯系物超标率 + "HCLExceedance": "52",//氯化氢超标率 + "EthanolExceedance": "27",//乙醇超标率 + }, + //特征污染物监测 -end + //土壤环境质量 -start + "soilEnvironmentalQuality": { + "CPIPollutionIndex": '0.7',//土壤CPI污染指数 + "NemeroPollutionIndex": '2',//内梅罗污染指数 + "QualityEvaluation": 'Ⅰ',//土壤质量评价 + "data":data3 + }, + //土壤环境质量 -end + //监测类型 -start + "typeOfMonitoring": [ + {"label": '大气环境', "value": 'air', "isChecked": false}, + {"label": '水环境', "value": 'water', "isChecked": false}, + {"label": '土壤环境', "value": 'soil', "isChecked": false}, + {"label": '特征污染物', "value": 'spe', "isChecked": false}, + {"label": '废气污染源', "value": 'gas', "isChecked": false}, + {"label": '废水污染源', "value": 'waste', "isChecked": false}, + {"label": '清下水监控', "value": 'clean', "isChecked": false} + ], + //监测类型 -end + //污染源监控 -start + "contaminationSourceMonitoring": { + //企业废气排放监控 + "enterpriseExhaustEmissionMonitoring": { + //废气排放总量 + "totalExhaustEmissions": 545, + //废气污染源 + "exhaustGasPollutionSource": '21', + //排放超标次数 + "numberOfTimesEmissionsExceedStandards": '12' + }, + //废水水排放监测 + "wastewaterWaterDischargeMonitoring": { + //废水排放总量 + "totalEmissions": 642, + //废水污染源 + "sourcesOfWastewaterPollution": '9', + //排放超标次数 + "numberOfTimesEmissionsExceedStandards": '9' + }, + //清下水排放监测 + "cleanSewerDischargeMonitoring": { + //清下水排放总量 + "totalEmissions": 573, + //废水污染源 + "pollutionSources": '12', + //排放超标次数 + "numberOfTimesEmissionsExceedStandards": '7' + }, + } + //污染源监控 -end + + +} + diff --git a/src/dataDemo/smartSafetySupervisionData b/src/dataDemo/smartSafetySupervisionData new file mode 100644 index 0000000..462ef57 --- /dev/null +++ b/src/dataDemo/smartSafetySupervisionData @@ -0,0 +1,78 @@ +let Mock = require('mockjs') +let dateFunction = function () { + let now = new Date(this.now); + now.setTime(now.getTime() - this.fromNowOn * 24 * 60 * 60 * 1000); + let sub = now; + let year = sub.getFullYear() < 10 ? '0' + sub.getFullYear() : sub.getFullYear(); + let month = sub.getMonth() + 1 < 10 ? '0' + sub.getMonth() : sub.getMonth(); + let day = sub.getDate() < 10 ? '0' + sub.getDate() : sub.getDate(); + if (month == '00') { + month = '12' + year = year - 1 + } + return year + '-' + month + '-' + day; +} +let data1 = Mock.mock({ + 'data|30': [ + { + "value|1-500": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': 1, + 'date': dateFunction + } + ] +}) + +let data2 = Mock.mock({ + 'data|30': [ + { + "value|1-100": 1, + "value2|1-100": 1, + 'now|+1': '@now("yyyy-MM-dd")', + 'fromNowOn|+1': 1, + 'date': dateFunction + } + ] +}) + + + +//智慧安监页面数据 +export const smartSafetySupervisionData = { + 'safeProductionDays': 1120,//安全生产天数 + 'hazard':{ + 'storagePoint':89,//危险品存储点 + 'craft':74,//危险工艺 + }, + 'business':{ + 'underManagement':88,//在管企业数 + 'employee':3022,//企业总员工数 + 'car':726, + }, + 'work':{ + 'running':3,//进行中特殊作业 + 'business':2,//进行特殊作业企业 + 'recorded':53,//已备案特殊作业 + 'history':300,//历史特殊作业 + }, + + 'pitfall' :{ + 'check':238,//待验收 + 'rectify':211,//待整改 + 'rectifing':11,//整改中 + 'cancel':1077,//已消除 + }, + + 'dangerousWorkData': [ + {value: 1048, name: '断路'}, + {value: 735, name: '动土'}, + {value: 580, name: '受限空间'}, + {value: 484, name: '高处'}, + {value: 300, name: '吊装'}, + {value: 300, name: '动火'}, + {value: 300, name: '盲板抽堵'}, + {value: 300, name: '设备检维修'}, + {value: 300, name: '临时用电'}, + ], + + } diff --git a/src/global.d.ts b/src/global.d.ts new file mode 100644 index 0000000..1597711 --- /dev/null +++ b/src/global.d.ts @@ -0,0 +1,8 @@ + +declare module 'common/notFound'; +declare module 'common/map'; +declare module 'common/index'; +declare module 'file-saver' +declare module 'videojs-contrib-hls' +declare module 'video.js' + diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..47a6744 --- /dev/null +++ b/src/main.ts @@ -0,0 +1 @@ +import("./bootstrap") diff --git a/src/mock/bounds.ts b/src/mock/bounds.ts new file mode 100644 index 0000000..0787b6e --- /dev/null +++ b/src/mock/bounds.ts @@ -0,0 +1,47 @@ +export default [[[ + 13312756.48, + 4098385.2800000003, + 6.031601562500001 +],[ + 13312829.44, + 4098457.6, + 5.40009765625 +],[ + 13312739.84, + 4098548.16, + 5.40005859375 +],[ + 13312668.16, + 4098478.4, + 5.4001171875 +]],[[ + 13312928, + 4098465.92, + 8.60546875 +],[ + 13313026.56, + 4098550.08, + 8.472421875 +],[ + 13313066.24, + 4098509.44, + 8.4935546875 +],[ + 13313164.8, + 4098602.88, + 6.0297656250000005 +],[ + 13312977.92, + 4098790.72, + 6.1410156250000005 +],[ + 13312793.6, + 4098625.2800000003, + 10.571015625 +],[ + 13312958.72, + 4098458.88, + 8.350625 +] + +]] \ No newline at end of file diff --git a/src/mock/dangrous.ts b/src/mock/dangrous.ts new file mode 100644 index 0000000..7dde82b --- /dev/null +++ b/src/mock/dangrous.ts @@ -0,0 +1,75 @@ +export default [ + [ + [ + 13312856.32, + 4098289.92, + 0.50998046875 + ],[ + 13312933.120000001, + 4098206.72, + 0.61 + ],[ + 13312962, + 4098238.5, + 0.027461051940918 + ],[ + 13312884.48, + 4098315.2, + 0.50998046875 + ] + ],[ + [ + 13313146.88, + 4098282.24, + 0.5 + ],[ + 13313168.64, + 4098260.48, + 0.5 + ],[ + 13313264.64, + 4098348.48, + 0.5 + ],[ + 13313239.040000001, + 4098373.7600000002, + 0.5 + ] + ],[ + [ + 13312925.44, + 4098457.92, + 0.610009765625 + ],[ + 13312876.8, + 4098416.3200000003, + 0.510009765625 + ],[ + 13312902.4, + 4098388.16, + 0.51 + ],[ + 13312951.040000001, + 4098432.96, + 0.61001953125 + ] + ],[ + [ + 13313053.44, + 4098577.2800000003, + 0.51005859375 + ],[ + 13313031.68, + 4098556.48, + 0.51001953125 + ],[ + 13313050.88, + 4098534.72, + 0.50998046875 + ],[ + 13313073.92, + 4098554.56, + 0.51 + ] + ] +] \ No newline at end of file diff --git a/src/mock/four.ts b/src/mock/four.ts new file mode 100644 index 0000000..02da892 --- /dev/null +++ b/src/mock/four.ts @@ -0,0 +1,141 @@ +export default [[ + [ + 13312657.92, + 4098489.6, + 0.5 + ],[ + 13312757.76, + 4098383.68, + 0.5 + ],[ + 13312834.56, + 4098460.48, + 0.5 + ],[ + 13312737.280000001, + 4098564.48, + 0.5 + ] +],[ + [ + 13313146.88, + 4098282.24, + 0.5 + ],[ + 13313168.64, + 4098260.48, + 0.5 + ],[ + 13313264.64, + 4098348.48, + 0.5 + ],[ + 13313239.040000001, + 4098373.7600000002, + 0.5 + ] +],[ + [ + 13312839.68, + 4098664.64, + 0.5 + ],[ + 13312897.280000001, + 4098604.8000000003, + 0.5 + ],[ + 13312976.64, + 4098674.56, + 0.5 + ],[ + 13312919.040000001, + 4098737.2800000003, + 0.5 + ] +],[ + [ + 13313043.200000001, + 4098523.2, + 0.5 + ],[ + 13313148.16, + 4098411.2, + 0.5 + ],[ + 13313187.84, + 4098447.68, + 0.5 + ],[ + 13313091.84, + 4098564.48, + 0.5 + ] +],[ + [ + 13312828.16, + 4098450.24, + 0.509990234375 + ], [ + 13312898.56, + 4098370.56, + 5.8978515625000005 + ],[ + 13312824.32, + 4098296, + 5.038583984375 + ],[ + 13312753.92, + 4098369.2800000003, + 0.4 + ] +],[ + [ + 13313082.88, + 4098403.52, + 0.51 + ], + [ + 13313149.44, + 4098332.16, + 0.51 + ],[ + 13313107.200000001, + 4098295.36, + 0.51 + ],[ + 13313044.48, + 4098361.92, + 0.55 + ] +],[ + [ + 13312956.16, + 4098419.2, + 6.64896484375 + ], + [ + 13313135.36, + 4098232.96, + 0.70001953125 + ], + [ + 13313022.72, + 4098126.08, + 0.61 + ], + [ + 13312963.84, + 4098170.24, + 0.51 + ], + [ + 13312998.4, + 4098204.8000000003, + 0.50998046875 + ], + [ + 13312876.8, + 4098333.44, + 0.51 + ] +]] diff --git a/src/mock/four2.ts b/src/mock/four2.ts new file mode 100644 index 0000000..a0cf8d0 --- /dev/null +++ b/src/mock/four2.ts @@ -0,0 +1,97 @@ +export default [ + [ + [ + 13313480.96, + 4098062.72, + 0.5001806640625001 + ], + [ + 13313443.84, + 4098032.3200000003, + 0.5001757812500001 + ], + [ + 13313285.120000001, + 4098202.24, + 0.50015625 + ], + [ + 13313323.52, + 4098232.3200000003, + 0.500146484375 + ] + ], [ + [ + 13313445.120000001, + 4098029.12, + 0.500166015625 + ], [ + 13313406.72, + 4097993.92, + 0.5001757812500001 + ], [ + 13313245.44, + 4098166.4, + 0.5001513671875 + ], [ + 13313281.280000001, + 4098205.12, + 0.5001611328125 + ] + ], [ + [ + 13313411.84, + 4097988.8000000003, + 0.500166015625 + ], [ + 13313338.88, + 4097923.8400000003, + 0.500146484375 + ], [ + 13313136.64, + 4098145.6, + 0.500126953125 + ], [ + 13313205.76, + 4098211.8400000003, + 0.50015625 + ] + ] + ,[ + [ + 13313478.4, + 4098273.92, + 0.50013671875 + ],[ + 13313423.36, + 4098223.04, + 0.65521484375 + ],[ + 13313514.24, + 4098124.48, + 0.50033203125 + ],[ + 13313537.280000001, + 4098209.92, + 0.5001757812500001 + ] + ],[ + [ + 13313425.92, + 4097972.8000000003, + 0.5001171875 + ],[ + 13313346.56, + 4097895.36, + 0.40001953125 + ],[ + 13313431.040000001, + 4097805.7600000002, + 0.4 + ],[ + 13313468.16, + 4097920.96, + 0.4 + ] + ] +] diff --git a/src/mock/index.ts b/src/mock/index.ts new file mode 100644 index 0000000..c16031b --- /dev/null +++ b/src/mock/index.ts @@ -0,0 +1,3365 @@ +import Mock from "mockjs" +import moment from "moment" +import * as turf from '@turf/turf' +import bounds from "./bounds"; +import realBounds from "./real"; +import safeBounds from "./safe"; +import planBounds from "./plan"; +import line from "./line"; +// import {mockData, detail, sepList, hiddenDangerList, hiddenList} from "@/components/safety/risk/left/mockData.js"; +import four from "./four"; +import four2 from "./four2"; +import dangrous from "./dangrous"; +import {goodsDataList} from "@/views/admin/morkData.js"; + +export class MockData { + public static getPeopleList() { + const data = [] as any; + for (let i = 0; i < 20; i++) { + data.push({ + id: Mock.mock("@id"), + name: Mock.mock("@cname"), + job: "安全顾问", + position: turf.randomPosition([119.588709, 34.514257, 119.596724, 34.520382]), + time: moment().subtract(Math.floor(Math.random() * 30), "minutes").format("YYYY-MM-DD HH:mm:ss"), + tel: Mock.mock("@integer(13200000000, 13299999999)") + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + public static getGoodsList() { + const data = [] as any; + for (let i = 0; i < 9; i++) { + data.push({ + id: Mock.mock("@id"), + position: turf.randomPosition([119.588709, 34.514257, 119.596724, 34.520382]), + time: moment().subtract(Math.floor(Math.random() * 30), "minutes").format("YYYY-MM-DD HH:mm:ss"), + dataType:'goods', + coordinateType:1, + ...goodsDataList[i] + + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getCameraList() { + const data = [] as any; + const positions = [[ + 13312915.200000001, + 4098598.08, + 0.51 + ], [ + 13313086.72, + 4098442.24, + 0.51001953125 + ], [ + 13312961.280000001, + 4098238.72, + 0.5099609375 + ], [ + 13312853.76, + 4098298.88, + 0.5099609375 + ], [ + 13312756.48, + 4098408.96, + 0.51 + ], [ + 13312967.68, + 4098156.48, + 0.6099609375 + ], [ + 13313036.8, + 4098762.24, + 0.51 + ], [ + 13312883.200000001, + 4098757.7600000002, + 0.4 + ], [ + 13313327.36, + 4098413.12, + 0.51 + ], [ + 13312756.48, + 4098400.96, + 0.51 + ]] + const typeList = ["热成像摄像机", "红外球形摄像机", "高空瞭望摄像机"] + //turf.randomPosition([119.588709 ,34.514257,119.596724,34.520382]), + for (let i = 0; i < 10; i++) { + data.push({ + id: Mock.mock("@id"), + position: positions[i], + remark: typeList[i % 3], + type: i % 4, + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getCompanyList() { + const data = [] as any + const typeList = ['华南石化广东石油化工有限公司', '山东华鲁恒升化工有限公司','上海锦江国际集团有限公司','江苏常泰华信化工有限公司','河北宣化龙盛化工有限公司'] + const areaList = [[[ + 13312797.44, + 4098625.6, + 0.400078125 + ], [ + 13312634.88, + 4098467.8400000003, + 0.400078125 + ], [ + 13312825.6, + 4098269.12, + 0.4 + ], [ + 13312852.48, + 4098290.56, + 0.6099218750000001 + ], [ + 13313027.84, + 4098100.8000000003, + 0.4000390625 + ], [ + 13313169.92, + 4098240, + 0.4000390625 + ]], [[ + 13312771.84, + 4098628.48, + 5.8119531250000005 + ], [ + 13312986.88, + 4098841.6, + 0.399921875 + ], [ + 13313376, + 4098431.36, + 0.399921875 + ], [ + 13313145.6, + 4098222.4, + 0.400078125 + ] + + ]]; + const positionList = [[ + 13312874.24, + 4098367.68, + 20 + ], [ + 13313114.88, + 4098505.92, + 20 + ]] + const startDate = '2011-01-01'; + const endDate = '2022-01-01'; + Mock.Random.extend({ + constellation: function(date) { + var constellations = ['2011-01-01', '2011-02-01', '2011-03-01', '2011-04-01', '2011-05-01', '2011-06-02', '2011-07-07', '2011-08-01', '2011-09-01', '2013-02-09', '2014-01-01', '2012-01-01'] + return this.pick(constellations) + } + }) + for (let i = 0; i < 5; i++) { + // const randomDate = Mock.Random.date(startDate, endDate); + data.push({ + id: Mock.mock("@id"), + position: positionList[i % 5], + area: areaList[i % 5], + name: typeList[i % 5], + peopleCount: 100, + date: Mock.mock('@CONSTELLATION'), + master: Mock.mock("@cname"), + city: Mock.mock("@city(true)"), + address: Mock.mock("@county(true)") + }) + + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getFourList() { + const data = [] as any; + const areaList = four; + const possibleValues = [1, 2, 3, 4]; + for (let i = 0; i < areaList.length; i++) { + data.push({ + id: Mock.mock("@id"), + position: turf.center(turf.points(areaList[i])).geometry.coordinates, + area: areaList[i], + name: "危化区" + (i + 1), + level:possibleValues[i%4] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getFourList2() { + const data = [] as any; + const areaList = four2; + for (let i = 0; i < areaList.length; i++) { + let name = '' + if (i<=2){ + name = "停车区"+(i + 1) + }else if(i === 3){ + name = '侯检区' + }else if (i === 4){ + name = '休息区' + }else{ + name = "停车区"+(i + 1) + } + data.push({ + id: Mock.mock("@id"), + position: turf.center(turf.points(areaList[i])).geometry.coordinates, + area: areaList[i], + name: name + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + + public static getCheckPoint() { + const data = [] as any; + const points = [[ + 13312962.56, + 4098166.4, + 0.50998046875 + ], [ + 13313314.56, + 4098401.6, + 5.5896484375 + ], [ + 13312739.84, + 4098371.2, + 0.400009765625 + ], [ + 13312806.4, + 4098604.48, + 7.02779296875 + ]]; + const nameList = ['华南石化广东石油化工有限公司', '山东华鲁恒升化工有限公司','上海锦江国际集团有限公司','江苏常泰华信化工有限公司','河北宣化龙盛化工有限公司'] + for (let i = 0; i < points.length; i++) { + data.push({ + id: Mock.mock("@id"), + position: points[i], + name: nameList[i % 2], + remark: ['出口', '进口'][i % 2] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getStoreList() { + const points = [[ + 13312875.52, + 4098452.8000000003, + 24.715585937500002 + ], [ + 13313103.36, + 4098514.24, + 37.52975830078125 + ]]; + const data = [] as any; + for (let i = 0; i < points.length; i++) { + data.push({ + id: Mock.mock("@id"), + position: points[i], + name: i < 1 ? "上海锦江国际集团有限公司仓库" : "江苏常泰华信化工有限公司仓库", + remark: "70%" + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getBuildingList() { + const remarkList = ["避难所", "消防站", "气防站", "防空洞"]; + const points = [[ + 13312805.120000001, + 4098358.72, + 10.280234375000001 + ], [ + 13312769.280000001, + 4098483.52, + 8.729609375 + ], [ + 13312807.68, + 4098549.12, + 15.363359375 + ], [ + 13312970.24, + 4098203.8400000003, + 6.366074218750001 + ], [ + 13312910.08, + 4098531.52, + 16.74486328125 + ], [ + 13313018.88, + 4098431.04, + 7.350400390625 + ], [ + 13313209.6, + 4098483.2, + 10.4424609375 + ], [ + 13313276.16, + 4098580.8000000003, + 3.9199951171875003 + ]]; + const data = [] as any; + for (let i = 0; i < points.length; i++) { + data.push({ + id: Mock.mock("@id"), + position: points[i], + name: i < 4 ? "华南石化广东石油化工有限公司" : "江苏常泰华信化工有限公司", + remark: remarkList[i % 4] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + + public static getDangrous() { + const data = [] as any; + const areaList = dangrous; + const typeList = ["危化工艺", "危化品", "易爆品"]; + const levelList = ["三级", "二级", "一级"]; + const statusList = ["进行中", "已关停"]; + for (let i = 0; i < areaList.length; i++) { + data.push({ + id: Mock.mock("@id"), + position: turf.center(turf.points(areaList[i])).geometry.coordinates, + area: areaList[i], + type: typeList[i % 3], + level: levelList[i % 3], + name: "罐体区" + (i + 1), + status: statusList[i % 2] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + + public static getStopCarList() { + const plateList = ["粤A12345", "京B56789", "沪C24680", "川D13579", "鲁E90817", "苏F62549", "浙G73821", "皖H45921", "闽J02734", "湘K25290", "赣L99375", "豫M46873", "鄂N50873", "桂P27645", "黑R61298", "甘S03145", "陕T74860", "渝U48536", "晋V71658", "贵W13780"]; + const typeList = ["重载", "空载"]; + const positions = [[ + 13313457.92, + 4098071.36, + 0.500166015625 + ], [ + 13313451.52, + 4098065.92, + 0.5001757812500001 + ], [ + 13313446.4, + 4098060.48, + 0.5001757812500001 + ], [ + 13313438.72, + 4098070.4, + 0.5001757812500001 + ], [ + 13313432.32, + 4098065.2800000003, + 0.5001757812500001 + ], [ + 13313377.280000001, + 4098079.36, + 0.50015625 + ], [ + 13313370.88, + 4098074.24, + 0.50015625 + ], [ + 13313360.64, + 4098064.96, + 0.50015625 + ], [ + 13313363.200000001, + 4098083.8400000003, + 0.50015625 + ], [ + 13313356.8, + 4098079.04, + 0.500146484375 + ],[ + 13313351.68, + 4098073.92, + 0.500166015625 + ],[ + 13313341.44, + 4098046.4, + 0.50015625 + ],[ + 13313336.32, + 4098041.2800000003, + 0.5001757812500001 + ],[ + 13313329.92, + 4098035.8400000003, + 0.5001757812500001 + ],[ + 13313300.48, + 4098026.56, + 0.50015625 + ],[ + 13313294.08, + 4098021.12, + 0.50015625 + ],[ + 13313287.68, + 4098016.3200000003, + 0.5001757812500001 + ]] + const data = [] as any; + for (let i = 0; i < positions.length; i++) { + data.push({ + id: Mock.mock("@id"), + time: moment().subtract(Math.floor(Math.random() * 30), "minutes").format("YYYY-MM-DD HH:mm:ss"), + startTime: "7:00", + endTime: "8:00", + position: positions[i], + rotation:[0,138,0], + scale:[1.3,1.3,1.3], + plate: plateList[i], + type: typeList[i < 5 ? 0 : 1] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getRandomData() { + const data = [] as any; + for (let i = 0; i < 5; i++) { + data.push({ + id: Mock.mock("@id"), + position: turf.randomPosition([119.588709, 34.514257, 119.596724, 34.520382]), + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + public static getRandomGasData() { + const data = [] as any; + for (let i = 0; i < 5; i++) { + data.push({ + id: Mock.mock("@id"), + position: turf.randomPosition([119.588709, 34.514257, 119.596724, 34.520382]), + }) + } + const parkData=[ + [ + 13313318.4, + 4098195.84, + ], + [ + 13313361.92, + 4098153.92, + ], + [ + 13313401.6, + 4098107.2, + ], + [ + 13313448.96, + 4098057.6, + ], + [ + 13313274.88, + 4098167.04, + ], + [ + 13313322.24, + 4098117.12, + ], + [ + 13313367.04, + 4098067.52, + ], + [ + 13313409.28, + 4098023.04, + ], + [ + 13313373.44, + 4097989.44, + ], + [ + 13313340.16, + 4097959.04, + ], + [ + 13313292.8, + 4098008.96, + ], + [ + 13313280, + 4098088.64, + ], + [ + 13313248, + 4098058.88, + ], + [ + 13313246.72, + 4098124.80 + ], + [ + 13313213.44, + 4098094.08, + ], + [ + 13313199.36, + 4098174.08, + ], + [ + 13313167.36, + 4098143.68, + ], + [ + 13313459.20, + 4098177.92, + ], + [ + 13313474.56, + 4098159.36, + ], + [ + 13313384.96, + 4097916.48, + ], + [ + 13313416.96, + 4097849.92, + ], + [ + 13313454.08, + 4097896.64, + ] + ] + for (let i = 0; i < parkData.length; i++) { + data.push({ + id: Mock.mock("@id"), + position: parkData[i], + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getDangrousWork() { + const typeList = ['华南石化广东石油化工有限公司', '山东华鲁恒升化工有限公司','上海锦江国际集团有限公司','江苏常泰华信化工有限公司','河北宣化龙盛化工有限公司'] + const nameList = ["动火", "高空", "吊装", "临时用电", "受限空间", "盲板抽堵"]; + const nameList2 = ["断路", "动土"]; + const data = [] as any; + const positions = [[[ + 13312903.68, + 4098505.6, + 0.4 + ], [ + 13312883.200000001, + 4098492.16, + 0.5099609375 + ], [ + 13312902.4, + 4098471.36, + 0.7631250000000005 + ], [ + 13312921.6, + 4098486.4, + 0.3999609375 + ]], [[ + 13312864, + 4098649.2800000003, + 0.1734375 + ], [ + 13312826.88, + 4098614.08, + 0.59904296875 + ], [ + 13312872.96, + 4098566.08, + 0.51 + ], [ + 13312910.08, + 4098600.3200000003, + 0.51001953125 + ]]] + for (let i = 0; i < nameList2.length; i++) { + data.push({ + id: Mock.mock("@id"), + area: positions[i], + enterprise: typeList[i % 2], + "operationLevel": i + 1, + operationContent: "在园区实控线内" + nameList[i % 2] + "作业", + "operationStart": "2023-09-24 00:00:00", + "operationEnd": "2024-01-28 23:23:00", + "operationSite": "西陵峡三路128号-12-4", + operationType: nameList2[i % 2], + position: turf.center(turf.points(positions[i])).geometry.coordinates, + name: nameList2[i % 2] + }) + } + for (let i = 0; i < nameList.length * 3; i++) { + data.push({ + id: Mock.mock("@id"), + position: turf.randomPosition([ + 13312995.84, + 4098177.2800000003, + 13313096.96, + 4098754.88, + ]), + operationContent: "在园区实控线内" + nameList[i % 6] + "作业", + operationType: nameList[i % 6], + enterprise: typeList[i % 2], + "operationLevel": (i % 3) + 1, + "operationStart": "2023-09-24 00:00:00", + "operationEnd": "2024-01-28 23:23:00", + "operationSite": "西陵峡三路128号-12-4", + name: nameList[i % 6] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getCarList() { + const plateList = ["苏A7E8U6", "苏A3X4K5", "苏J8868P", "苏A7E8U6", "苏A9H2K0"]; + const typeList = ["罐车", "挂车", "油车"]; + const data = [] as any; + for (let i = 0; i < 20; i++) { + data.push({ + id: Mock.mock("@id"), + time: moment().subtract(Math.floor(Math.random() * 30), "minutes").format("YYYY-MM-DD HH:mm:ss"), + startTime: "7:00", + endTime: "8:00", + position: turf.randomPosition([119.588709, 34.514257, 119.596724, 34.520382]), + plate: plateList[i % 5], + remark: typeList[i % 3], + type: i % 2 + + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getBounds() { + const areaList = bounds + const data = [] as any; + for (let i = 0; i < 10; i++) { + data.push({ + id: Mock.mock("@id"), + area: areaList[i % 2], + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getRealBounds() { + const data = [] as any; + for (let i = 0; i < 1; i++) { + data.push({ + id: Mock.mock("@id"), + area: realBounds, + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getSafeBounds() { + const data = [] as any; + for (let i = 0; i < 1; i++) { + data.push({ + id: Mock.mock("@id"), + area: safeBounds, + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getPlanBounds() { + const data = [] as any; + for (let i = 0; i < 1; i++) { + data.push({ + id: Mock.mock("@id"), + area: planBounds, + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getSafeLine() { + const data = [] as any; + for (let i = 0; i < 2; i++) { + data.push({ + id: Mock.mock("@id"), + positions: line[i % 2], + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getBlackCarList() { + const plateList = ["苏A7E8U6", "苏A3X4K5", "苏J8868P", "苏A7E8U6", "苏A9H2K0"]; + + const data = [] as any; + for (let i = 0; i < 5; i++) { + data.push({ + id: Mock.mock("@id"), + time: moment().subtract(Math.floor(Math.random() * 30), "minutes").format("YYYY-MM-DD HH:mm:ss"), + plate: plateList[i % 5] + }) + } + return Mock.mock({ + code: 0, + message: "成功", + data, + }) + } + + public static getRiskList() { + const data = {}; + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static getRiskDetail(options) { + const params = JSON.parse(options.body); + const id = Mock.mock("@id") + const personName = Mock.mock("@cname") + const phone = Mock.mock("@integer(13200000000, 13299999999)") + const addr = Mock.mock('@county(true)') + const colorMap = { + 1:{ + name:'一级风险', + color:'red' + }, + 2:{ + name:'二级风险', + color:'orange' + }, + 3:{ + name:'三级风险', + color:'yellow' + }, + 4:{ + name:'四级风险', + color:'blue' + } + } + const titleName = colorMap[params.level].name + const data = { + ...{}, ...{ + id, + "name": params.name, + "level": params.level, + "responsiblePerson": personName, + personName, + phone, + titleName, + iconColor:colorMap[params.level].color, + addr + } + }; + + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static getSepList() { + const data = {}; + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static hiddenList() { + const data = {}; + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static getHiddenDangrous() { + const data = [{},{}].map((item, i) => { + Object.assign(item, { + time: moment().subtract(i, "days").format("YYYY-MM-DD HH:mm:ss"), + position: turf.randomPosition([ + 13312995.84, + 4098177.2800000003, + 13313096.96, + 4098754.88, + ]), + head: Mock.mock("@cname"), + phone: Mock.mock("@integer(13200000000, 13299999999)"), + enterprise: '联化科', + risk: '管廊管道破裂', + reportingDate: moment().subtract(i, "days").format("YYYY-MM-DD HH:mm:ss"), + inspector: Mock.mock("@cname"), + hiddenDangerDetails: '南区6号管廊巡检过程中存在少量裂缝,目前未发现泄露', + rectificationMeasure: '整改措施:需要尽快进行管道评估,\n' + + '并根据评估结果,实施修复工作', + period: moment().subtract(i, "days").format("YYYY年M月DD日"), + remark: '管廊修复工作必须提前发布园\n' + + '区公告,并发函通知相关使用企业', + status: 1, + }) + return item + }); + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static getWarningList() { + /* { + type:"fire", + id:new Date().getTime()+"", + typeName:"火灾", + position:[13312990.72, 4098613.12, 0.51], + reporter:"张三", + content:"星星化工厂区设施发生火灾" + + }*/ + const data = [ + //环保 + { + title: '环境告警', + model: 'env', + time: '', + level: '2', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '大气环境指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '1', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '水体污染指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '3', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '土壤污染指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '4', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '特征污染物浓度超标' + }, + { + title: '排放超标', + model: 'env', + time: '', + level: '1', + type: 'normal', + typeName: '排放超标', + reporter: '', + tel: '', + content: '排放浓度超标' + }, + { + title: '排放超标', + model: 'env', + time: '', + level: '4', + type: 'normal', + typeName: '排放超标', + reporter: '', + tel: '', + content: '排放量超标' + }, + { + title: '超时排放', + model: 'env', + time: '', + level: '3', + type: 'normal', + typeName: '超时排放', + reporter: '', + tel: '', + content: '非排放时段排污' + }, + //安监 + { + title: '风险告警', + model: 'safe', + time: '', + level: '3', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '设备监测数值异常' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '1', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员未佩戴安全帽(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '1', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员高处作业未悬挂安全锁(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '4', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员禁烟区吸烟(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '进行特殊作业未设置安全标志(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员未穿戴安全背心(AI识别)' + }, + { + title: '整改超时', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '整改超时', + reporter: '', + tel: '', + content: '隐患整改超过最后期限' + }, + { + title: '作业超时', + model: 'safe', + time: '', + level: '4', + type: 'normal', + typeName: '作业超时', + reporter: '', + tel: '', + content: '备案时间内未完成作业' + }, + //封闭 + { + title: '人员告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '人员告警', + reporter: '', + tel: '', + content: '人员滞留' + }, + { + title: '人员告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '人员告警', + reporter: '', + tel: '', + content: '电子围栏-人员非法进入' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '4', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆滞留' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '电子围栏-车辆非法进入' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆超速' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆偏离路线' + }, + { + title: '周界告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '周界告警', + reporter: '', + tel: '', + content: '人员越界' + }, + { + title: '周界告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '周界告警', + reporter: '', + tel: '', + content: '车辆越界' + }, + { + title: '卡口告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '卡口告警', + reporter: '', + tel: '', + content: '人员闯关' + }, + { + title: '卡口告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '卡口告警', + reporter: '', + tel: '', + content: '车辆闯关' + }, + { + title: '气体泄漏', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '气体泄漏', + reporter: '', + tel: '', + content: '危化品车辆停车场危险气体浓度超标' + }, + //应急 + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '高空坠落' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '物体打击' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '触电事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '坍塌事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '机械伤害事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '高空坠落' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '有毒气体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '易燃易爆气体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '有毒液体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '易燃液体泄露' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '设施设备着火' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '油库着火' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '爆炸' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '地震预警' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '洪水预警' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '台风预警' + }, + { + title: '交通阻塞', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '交通事故' + }, + { + title: '交通阻塞', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '道路拥堵' + }, + { + title: '人员聚集', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '人员聚集', + reporter: '', + tel: '', + content: '人员踩踏事故预警' + }, + //能源 + { + title: '用电超标', + model: 'eng', + time: '', + level: '4', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过实时阈值' + }, + { + title: '用电超标', + model: 'eng', + time: '', + level: '4', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过日阈值' + }, + { + title: '用电超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过月阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过实时阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过日阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过月阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '2', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过实时阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过日阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '2', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过月阈值' + }, + //公共 + { + title: '设备离线', + model: 'all', + time: '', + level: '4', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'A区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '4', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'B区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '3', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'C区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '3', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'D区视频监控设备离线' + }, + //环保 + { + title: '环境告警', + model: 'env', + time: '', + level: '2', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '大气环境指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '1', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '水体污染指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '3', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '土壤污染指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '4', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '特征污染物浓度超标' + }, + { + title: '排放超标', + model: 'env', + time: '', + level: '1', + type: 'normal', + typeName: '排放超标', + reporter: '', + tel: '', + content: '排放浓度超标' + }, + { + title: '排放超标', + model: 'env', + time: '', + level: '4', + type: 'normal', + typeName: '排放超标', + reporter: '', + tel: '', + content: '排放量超标' + }, + { + title: '超时排放', + model: 'env', + time: '', + level: '3', + type: 'normal', + typeName: '超时排放', + reporter: '', + tel: '', + content: '非排放时段排污' + }, + //安监 + { + title: '风险告警', + model: 'safe', + time: '', + level: '3', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '设备监测数值异常' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '1', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员未佩戴安全帽(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '1', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员高处作业未悬挂安全锁(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '4', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员禁烟区吸烟(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '进行特殊作业未设置安全标志(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员未穿戴安全背心(AI识别)' + }, + { + title: '整改超时', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '整改超时', + reporter: '', + tel: '', + content: '隐患整改超过最后期限' + }, + { + title: '作业超时', + model: 'safe', + time: '', + level: '4', + type: 'normal', + typeName: '作业超时', + reporter: '', + tel: '', + content: '备案时间内未完成作业' + }, + //封闭 + { + title: '人员告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '人员告警', + reporter: '', + tel: '', + content: '人员滞留' + }, + { + title: '人员告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '人员告警', + reporter: '', + tel: '', + content: '电子围栏-人员非法进入' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '4', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆滞留' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '电子围栏-车辆非法进入' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆超速' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆偏离路线' + }, + { + title: '周界告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '周界告警', + reporter: '', + tel: '', + content: '人员越界' + }, + { + title: '周界告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '周界告警', + reporter: '', + tel: '', + content: '车辆越界' + }, + { + title: '卡口告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '卡口告警', + reporter: '', + tel: '', + content: '人员闯关' + }, + { + title: '卡口告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '卡口告警', + reporter: '', + tel: '', + content: '车辆闯关' + }, + { + title: '气体泄漏', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '气体泄漏', + reporter: '', + tel: '', + content: '危化品车辆停车场危险气体浓度超标' + }, + //应急 + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '高空坠落' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '物体打击' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '触电事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '坍塌事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '机械伤害事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '高空坠落' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '有毒气体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '易燃易爆气体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '有毒液体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '易燃液体泄露' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '设施设备着火' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '油库着火' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '爆炸' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '地震预警' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '洪水预警' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '台风预警' + }, + { + title: '交通阻塞', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '交通事故' + }, + { + title: '交通阻塞', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '道路拥堵' + }, + { + title: '人员聚集', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '人员聚集', + reporter: '', + tel: '', + content: '人员踩踏事故预警' + }, + //能源 + { + title: '用电超标', + model: 'eng', + time: '', + level: '4', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过实时阈值' + }, + { + title: '用电超标', + model: 'eng', + time: '', + level: '4', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过日阈值' + }, + { + title: '用电超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过月阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过实时阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过日阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过月阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '2', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过实时阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过日阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '2', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过月阈值' + }, + //公共 + { + title: '设备离线', + model: 'all', + time: '', + level: '4', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'A区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '4', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'B区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '3', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'C区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '3', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'D区视频监控设备离线' + }, + //环保 + { + title: '环境告警', + model: 'env', + time: '', + level: '2', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '大气环境指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '1', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '水体污染指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '3', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '土壤污染指数超标' + }, + { + title: '环境告警', + model: 'env', + time: '', + level: '4', + type: 'normal', + typeName: '环境告警', + reporter: '', + tel: '', + content: '特征污染物浓度超标' + }, + { + title: '排放超标', + model: 'env', + time: '', + level: '1', + type: 'normal', + typeName: '排放超标', + reporter: '', + tel: '', + content: '排放浓度超标' + }, + { + title: '排放超标', + model: 'env', + time: '', + level: '4', + type: 'normal', + typeName: '排放超标', + reporter: '', + tel: '', + content: '排放量超标' + }, + { + title: '超时排放', + model: 'env', + time: '', + level: '3', + type: 'normal', + typeName: '超时排放', + reporter: '', + tel: '', + content: '非排放时段排污' + }, + //安监 + { + title: '风险告警', + model: 'safe', + time: '', + level: '3', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '设备监测数值异常' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '1', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员未佩戴安全帽(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '1', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员高处作业未悬挂安全锁(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '4', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员禁烟区吸烟(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '进行特殊作业未设置安全标志(AI识别)' + }, + { + title: '风险告警', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '风险告警', + reporter: '', + tel: '', + content: '人员未穿戴安全背心(AI识别)' + }, + { + title: '整改超时', + model: 'safe', + time: '', + level: '2', + type: 'normal', + typeName: '整改超时', + reporter: '', + tel: '', + content: '隐患整改超过最后期限' + }, + { + title: '作业超时', + model: 'safe', + time: '', + level: '4', + type: 'normal', + typeName: '作业超时', + reporter: '', + tel: '', + content: '备案时间内未完成作业' + }, + //封闭 + { + title: '人员告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '人员告警', + reporter: '', + tel: '', + content: '人员滞留' + }, + { + title: '人员告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '人员告警', + reporter: '', + tel: '', + content: '电子围栏-人员非法进入' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '4', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆滞留' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '电子围栏-车辆非法进入' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆超速' + }, + { + title: '车辆告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '车辆告警', + reporter: '', + tel: '', + content: '车辆偏离路线' + }, + { + title: '周界告警', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '周界告警', + reporter: '', + tel: '', + content: '人员越界' + }, + { + title: '周界告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '周界告警', + reporter: '', + tel: '', + content: '车辆越界' + }, + { + title: '卡口告警', + model: 'close', + time: '', + level: '2', + type: 'normal', + typeName: '卡口告警', + reporter: '', + tel: '', + content: '人员闯关' + }, + { + title: '卡口告警', + model: 'close', + time: '', + level: '3', + type: 'normal', + typeName: '卡口告警', + reporter: '', + tel: '', + content: '车辆闯关' + }, + { + title: '气体泄漏', + model: 'close', + time: '', + level: '1', + type: 'normal', + typeName: '气体泄漏', + reporter: '', + tel: '', + content: '危化品车辆停车场危险气体浓度超标' + }, + //应急 + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '高空坠落' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '物体打击' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '触电事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '坍塌事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '机械伤害事故' + }, + { + title: '安全事故', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '安全事故', + reporter: '', + tel: '', + content: '高空坠落' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '有毒气体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '易燃易爆气体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '有毒液体泄露' + }, + { + title: '气液泄露', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '气液泄露', + reporter: '', + tel: '', + content: '易燃液体泄露' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '设施设备着火' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '2', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '油库着火' + }, + { + title: '火灾爆炸', + model: 'eme', + time: '', + level: '1', + type: 'normal', + typeName: '火灾爆炸', + reporter: '', + tel: '', + content: '爆炸' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '地震预警' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '洪水预警' + }, + { + title: '自然灾害', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '台风预警' + }, + { + title: '交通阻塞', + model: 'eme', + time: '', + level: '3', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '交通事故' + }, + { + title: '交通阻塞', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '自然灾害', + reporter: '', + tel: '', + content: '道路拥堵' + }, + { + title: '人员聚集', + model: 'eme', + time: '', + level: '4', + type: 'normal', + typeName: '人员聚集', + reporter: '', + tel: '', + content: '人员踩踏事故预警' + }, + //能源 + { + title: '用电超标', + model: 'eng', + time: '', + level: '4', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过实时阈值' + }, + { + title: '用电超标', + model: 'eng', + time: '', + level: '4', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过日阈值' + }, + { + title: '用电超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用电超标', + reporter: '', + tel: '', + content: '用电量超过月阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过实时阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过日阈值' + }, + { + title: '用水超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '用水超标', + reporter: '', + tel: '', + content: '用水量超过月阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '2', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过实时阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '3', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过日阈值' + }, + { + title: '燃料超标', + model: 'eng', + time: '', + level: '2', + type: 'normal', + typeName: '燃料超标', + reporter: '', + tel: '', + content: '燃料量超过月阈值' + }, + //公共 + { + title: '设备离线', + model: 'all', + time: '', + level: '4', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'A区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '4', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'B区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '3', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'C区视频监控设备离线' + }, + { + title: '设备离线', + model: 'all', + time: '', + level: '3', + type: 'normal', + typeName: '设备离线', + reporter: '', + tel: '', + content: 'D区视频监控设备离线' + }].map((item: any) => { + item.id = Mock.mock("@id"); + if (item.type === 'normal') { + item.position = turf.randomPosition([ + 13312995.84, + 4098177.2800000003, + 13313096.96, + 4098754.88, + ]); + } else if (item.type === 'fire') { + item.position = [13312990.72, 4098613.12, 0.51] + } + item.device = Math.floor(Math.random()*100)+'号监测仪' + item.info = item.content + item.reporter = Mock.mock("@cname") + item.tel = Mock.mock("@integer(13200000000, 13299999999)") + item.time = moment().subtract(0, "days").format("YYYY-MM-DD HH:mm:ss") + + return item + }); + const i = Math.floor(Math.random() * (data.length-1)) + 1 + return Mock.mock({ + code: 200, + message: "成功", + data: [data[i]], + }) + } + + public static deviceList() { + const nameList = [ + "2号区3号库监测点", + "1号区13号库监测点", + "22号区4号库监测点", + "12号区33号库监测点", + "12号区3号库监测点", + "22号区32号库监测点", + "6号区3号库监测点", + "8号区2号库监测点", + "6号区9号库监测点", + "7号区1号库监测点", + "2号区3号库监测点", + "1号区13号库监测点", + "22号区4号库监测点", + "12号区33号库监测点", + "12号区3号库监测点", + "22号区32号库监测点", + "6号区3号库监测点", + "8号区2号库监测点", + "6号区9号库监测点", + "7号区1号库监测点", + "2号区3号库监测点", + "1号区13号库监测点", + "22号区4号库监测点", + "12号区33号库监测点", + "12号区3号库监测点", + "22号区32号库监测点", + "6号区3号库监测点", + "8号区2号库监测点", + "6号区9号库监测点", + "7号区1号库监测点", + "2号区3号库监测点", + "1号区13号库监测点", + "22号区4号库监测点", + "12号区33号库监测点", + "12号区3号库监测点", + "22号区32号库监测点", + "6号区3号库监测点", + "8号区2号库监测点", + "6号区9号库监测点", + "7号区1号库监测点", + ] + const values = [90, 80, 70, 60, 55, 50, 46, 40, 30, 20,90, 80, 70, 60, 55, 50, 46, 40, 30, 20,90, 80, 70, 60, 55, 50, 46, 40, 30, 20,90, 80, 70, 60, 55, 50, 46, 40, 30, 20]; + const data = { + nameList, + values + }; + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static xkz() { + + const data = [ + { + id: '12987122', + name: 'C区排放口', + type: 'COD', + unit: '3.2', + year1: 1075, + year2: 2075, + year3: 2275, + }, { + id: '12987123', + name: 'C区排放口', + type: '氨氮', + unit: '4.43', + year1: 1075, + year2: 2075, + year3: 2275, + }, { + id: '12987124', + name: 'C区排放口', + type: '氨氮', + unit: '4.43', + year1: 1075, + year2: 2075, + year3: 2275, + }, { + id: '12987125', + name: 'C区排放口', + type: '氨氮', + unit: '1.43', + year1: 1275, + year2: 2775, + year3: 2175, + }, { + id: '12987126', + name: 'C区排放口', + type: '氨氮', + unit: '2.43', + year1: 1275, + year2: 2375, + year3: 2575, + }]; + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static dangerSourceDetail() { + + const data = { + "id": "954e5e6f-91c5-46d1-a085-ad0e6cdae10c", + "mainResponsiblePersonId": "14acb7b9-83b2-4231-8eb2-d65f90ee49c8", + "mainResponsiblePerson": "璩筠月", + "technologyResponsiblePersonId": "18c563b8-9e7e-4055-b4d0-333e30dfe70b", + "technologyResponsiblePerson": "殳淑美", + "operateResponsiblePersonId": "1e3d6d39-6fa8-43ec-9577-cb734ede549c", + "operateResponsiblePerson": "况毅强", + "name": "氯气瓶仓库单元", + "riskFactor": "易燃易爆", + "consequence": "气体泄漏,导致燃烧爆炸,人员伤亡", + "remark": "气体泄漏,导致燃烧爆炸,人员伤亡", + "level": 3, + "controlMeasures": "1.采用密封存储容器,定期检修\r2.安装高精度气体泄漏检测仪器,及时预警", + "unifiedCoding": "BA京110115〔2019〕007号", + "unitType": 0, + "memorySpace": "14", + "enterprise": "中石油兰州石化榆林化工有限公司", + "hazardousChemicalsName": "氯气" + }; + return Mock.mock({ + code: 200, + message: "成功", + data, + }) + } + + public static getEventList() { + /* { + type:"fire", + id:new Date().getTime()+"", + typeName:"火灾", + position:[13312990.72, 4098613.12, 0.51], + reporter:"张三", + content:"星星化工厂区设施发生火灾" + + }*/ + + const data = [ + { + title: '高空坠落', + info: '物体高空坠落', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "安全事故", + reporter: "", + tel: "", + content: "物体高空坠落" + }, { + title: '自然灾害', + info: '台风预警', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "自然灾害", + reporter: "", + tel: "", + content: "台风预警" + },{ + title: '自然灾害', + info: '台风预警', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "自然灾害", + reporter: "", + tel: "", + content: "台风预警" + },{ + title: '交通阻塞', + info: '交通事故', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "交通阻塞", + reporter: "", + tel: "", + content: "交通阻塞" + },{ + title: '交通阻塞', + info: '交通事故', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "交通阻塞", + reporter: "", + tel: "", + content: "交通阻塞" + },{ + title: '交通阻塞', + info: '交通事故', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "交通阻塞", + reporter: "", + tel: "", + content: "交通阻塞" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, + { + title: '坍塌事故', + info: '建筑坍塌及时处理', + time: '2023年1月20日 14:33:33', + level: '1', + type: "normal", + typeName: "坍塌事故", + reporter: "", + tel: "", + content: "建筑坍塌及时处理" + }, + { + title: '气液泄露', + info: 'NO气体泄露', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "气液泄露", + reporter: "", + tel: "", + content: "NO气体泄露" + }, + { + title: '火灾爆炸', + info: '富土康厂区火灾爆炸', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾爆炸", + reporter: "", + tel: "", + content: "富土康厂区火灾爆炸" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, { + title: '高空坠落', + info: '物体高空坠落', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "安全事故", + reporter: "", + tel: "", + content: "物体高空坠落" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, + { + title: '坍塌事故', + info: '建筑坍塌及时处理', + time: '2023年1月20日 14:33:33', + level: '1', + type: "normal", + typeName: "坍塌事故", + reporter: "", + tel: "", + content: "建筑坍塌及时处理" + }, + { + title: '气液泄露', + info: 'NO气体泄露', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "气液泄露", + reporter: "", + tel: "", + content: "NO气体泄露" + }, + { + title: '火灾爆炸', + info: '富土康厂区火灾爆炸', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾爆炸", + reporter: "", + tel: "", + content: "富土康厂区火灾爆炸" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, { + title: '高空坠落', + info: '物体高空坠落', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "安全事故", + reporter: "", + tel: "", + content: "物体高空坠落" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, + { + title: '坍塌事故', + info: '建筑坍塌及时处理', + time: '2023年1月20日 14:33:33', + level: '1', + type: "normal", + typeName: "坍塌事故", + reporter: "", + tel: "", + content: "建筑坍塌及时处理" + }, + { + title: '气液泄露', + info: 'NO气体泄露', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "气液泄露", + reporter: "", + tel: "", + content: "NO气体泄露" + }, + { + title: '火灾爆炸', + info: '富土康厂区火灾爆炸', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "火灾爆炸", + reporter: "", + tel: "", + content: "富土康厂区火灾爆炸" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, { + title: '高空坠落', + info: '物体高空坠落', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "安全事故", + reporter: "", + tel: "", + content: "物体高空坠落" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, + { + title: '坍塌事故', + info: '建筑坍塌及时处理', + time: '2023年1月20日 14:33:33', + level: '1', + type: "normal", + typeName: "坍塌事故", + reporter: "", + tel: "", + content: "建筑坍塌及时处理" + }, + { + title: '气液泄露', + info: 'NO气体泄露', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "气液泄露", + reporter: "", + tel: "", + content: "NO气体泄露" + }, + { + title: '火灾爆炸', + info: '富土康厂区火灾爆炸', + time: '2023年1月20日 14:33:33', + level: '2', + type: "normal", + typeName: "火灾爆炸", + reporter: "", + tel: "", + content: "富土康厂区火灾爆炸" + }, + { + title: '火灾爆炸', + info: '星星化工厂区设施发生火灾', + time: '2023年1月20日 14:33:33', + level: '1', + type: "fire", + typeName: "火灾", + reporter: "", + tel: "", + content: "星星化工厂区设施发生火灾" + }, + ].map((item: any,index:number) => { + item.id = Mock.mock("@id"); + if (item.type === 'normal') { + item.position = turf.randomPosition([ + 13312995.84, + 4098177.2800000003, + 13313096.96, + 4098754.88, + ]); + } else if (item.type === 'fire') { + item.position = [13312990.72, 4098613.12, 0.51] + } + item.reporter = Mock.mock("@cname") + item.tel = Mock.mock("@integer(13200000000, 13299999999)") + item.time = moment().subtract(0, "days").format("YYYY-MM-DD HH:mm:ss") + item.address = '危化品仓库二楼' + item.point = '自动终端报警' + item.number = 'CV-01/U8-98-892' + return item + }); + const i = Math.floor(Math.random() * (data.length-1)) + 1 + return Mock.mock({ + code: 200, + message: "成功", + data: [data[i]], + }) + } + public static riskItem(){ + return {"id":"954e5e6f-91c5-46d1-a085-ad0e6cdae10c","mainResponsiblePersonId":"14acb7b9-83b2-4231-8eb2-d65f90ee49c8","mainResponsiblePerson":"璩筠月","technologyResponsiblePersonId":"18c563b8-9e7e-4055-b4d0-333e30dfe70b","technologyResponsiblePerson":"殳淑美","operateResponsiblePersonId":"1e3d6d39-6fa8-43ec-9577-cb734ede549c","operateResponsiblePerson":"况毅强","name":"氯气瓶仓库单元","riskFactor":"易燃易爆","consequence":"气体泄漏,导致燃烧爆炸,人员伤亡","remark":"气体泄漏,导致燃烧爆炸,人员伤亡","level":1,"controlMeasures":"1.采用密封存储容器,定期检修\r2.安装高精度气体泄漏检测仪器,及时预警","unifiedCoding":"BA京110115〔2019〕007号","unitType":0,"memorySpace":"14","enterprise":"中石油兰州石化榆林化工有限公司","hazardousChemicalsName":"氯气"} + } +} diff --git a/src/mock/layer.ts b/src/mock/layer.ts new file mode 100644 index 0000000..9b6511f --- /dev/null +++ b/src/mock/layer.ts @@ -0,0 +1,377 @@ +enum COLOR { + // 围栏 + BOUNDS = "#F669FF", + // 实控线 + REALLINE = "#00C8FF", + // 规划线 + PLANLINE = "#FFA900", + // 安全线 + SAFELINE = "#80ED30", + // 四色图-绿 + GREEN = "#80ED30", + // 四色图-橙色 + ORANGE = "#ffa900", + // 四色图-蓝 + BLUE = "#7DAEFF", + // 四色图-黄 + YELLOW = "#DBE02B", + // 四色图-红 + RED = "#FF5959" +} + +export default [{ + name: "在管企业", + ids: [] as string[], + type: "areaMarker", + value: "company", + colors: ["#0a5fff", "#5e93fd"], + selected: false, + pages: ["parkFile", "companyFile", "closePark", "smartSafetySupervision", "smartEnvironment", "smartEnergy", "gasConsumption", "electricityConsumption", "waterConsumption", "steamConsumption"] +}, { + name: "视频监控", + ids: [] as string[], + type: "marker", + urls: [ + "@path:camera_0.png", + "@path:camera_1.png", + "@path:camera_2.png", + "@path:camera_3.png", + ], + value: "video", + selected: false, + pages: ["parkFile", "smartEmergency", "closePark", "peopleCar", "dangrousCar", "boundsManager", "smartSafetySupervision"] +}, { + name: "电子围栏", + ids: [] as string[], + type: "area", + value: "bounds", + color: COLOR.BOUNDS, + selected: false, + pages: ["closePark", "peopleCar"] +}, { + name: "人员热力图", + ids: [] as string[], + type: "heatmap", + value: "heatmap", + selected: false, + pages: [] +}, { + name: "人员定位", + ids: [] as string[], + type: "moveMarker", + value: "peo", + url: "@path:people.png", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/VehicleLibrary/Exhibition/重型货车_01", + coordinateType: 1, + selected: false, + pages: ["closePark", "peopleCar", "smartSafetySupervision", "smartEmergency"] +}, { + name: "人员热力图", + ids: [] as string[], + type: "heatmap", + value: "heatmap", + coordinateType: 1, + selected: false, + pages: ["smartEmergency"] +}, { + name: "车辆定位", + ids: [] as string[], + type: "moveMarker", + value: "car", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/VehicleLibrary/Exhibition/重型货车_01", + urls: [ + "@path:car.png", + "@path:d-car.png", + "@path:d-car.png", + ], + coordinateType: 1, + selected: false, + pages: ["closePark", "peopleCar", "smartSafetySupervision", "smartEmergency"] +}, { + name: "重载车辆", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/ObjectLibrary/Exhibition/汉邦唐/罐车", + value: "heavy-car", + scale: [3, 3, 3], + selected: false, + pages: ["closePark", "dangrousCar"] +}, { + name: "空载车辆", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/ObjectLibrary/Exhibition/汉邦唐/罐车", + value: "empty-car", + scale: [3, 3, 3], + selected: false, + pages: ["closePark", "dangrousCar"] +}, { + name: "疏散路线", + ids: [] as string[], + type: "line", + color: COLOR.GREEN, + value: "safe-route", + selected: false, + pages: ["dangrousCar"] +}, +// { +// name:"气体监测", +// ids:[] as string[], +// type:"", +// value:"gas-monitor", +// selected:false, +// pages:["dangrousCar"] +// }, + { + name: "重大危险源", + ids: [] as string[], + type: "areaMarker", + value: "dangrous", + color: "#FFF", + colors: [], + selected: false, + pages: ["parkFile", "smartSafetySupervision", "smartEmergency"] + }, { + name: "风险四色图", + ids: [] as string[], + type: "areaMarker", + value: "four-color", + colors: [COLOR.RED, COLOR.ORANGE, COLOR.YELLOW, COLOR.BLUE, COLOR.RED, COLOR.ORANGE, COLOR.YELLOW, COLOR.BLUE], + selected: false, + pages: ["parkFile", "smartSafetySupervision", "risk"] + }, { + name: "风险四色图", + ids: [] as string[], + type: "areaMarker", + value: "four-color2", + colors: [COLOR.YELLOW, COLOR.RED, COLOR.YELLOW, COLOR.ORANGE, COLOR.BLUE, COLOR.ORANGE, COLOR.YELLOW, COLOR.BLUE], + selected: false, + pages: ["dangrousCar"] + }, { + name: "应急设施", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_D_2", + value: "safe-building", + scale: [3, 3, 3], + selected: false, + pages: ["parkFile", "smartEmergency", "goods"] + }, { + name: "物资仓库", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_C_5", + value: "safe-goods", + scale: [3, 3, 3], + selected: false, + pages: ["parkFile", "smartEmergency", "goods"] + }, { + name: "实控线", + ids: [] as string[], + type: "area", + value: "real-line", + color: COLOR.REALLINE, + selected: false, + pages: ["parkFile", "boundsManager"] + }, { + name: "安全线", + ids: [] as string[], + type: "area", + value: "safe-line", + color: COLOR.SAFELINE, + selected: false, + pages: ["parkFile", "boundsManager"] + }, { + name: "规划线", + ids: [] as string[], + type: "area", + value: "plan-line", + color: COLOR.PLANLINE, + selected: false, + pages: ["parkFile", "boundsManager"] + }, { + name: "卡口设施", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_D_2", + value: "check-point", + scale: [3, 3, 3], + selected: false, + pages: ["boundsManager"] + }, { + name: "动火", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_A_1", + value: "use-fire", + scale: [3, 3, 3], + selected: false, + pages: ["dangerousWork"] + }, { + name: "断路", + ids: [] as string[], + type: "areaMarker", + value: "break-road", + selected: false, + color: "#000", + pages: ["dangerousWork"] + }, { + name: "高空", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_A_1", + value: "high-sky", + scale: [3, 3, 3], + selected: false, + pages: ["dangerousWork"] + }, { + name: "吊装", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_A_1", + value: "hoisting", + scale: [3, 3, 3], + selected: false, + pages: ["dangerousWork"] + }, { + name: "动土", + ids: [] as string[], + type: "areaMarker", + value: "make-ground", + selected: false, + color: "#efaf00", + pages: ["dangerousWork"] + }, { + name: "临时用电", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_A_1", + value: "use-e", + scale: [3, 3, 3], + selected: false, + pages: ["dangerousWork"] + }, { + name: "受限空间", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_A_1", + value: "forbid-space", + scale: [3, 3, 3], + selected: false, + pages: ["dangerousWork"] + }, { + name: "盲板抽堵", + ids: [] as string[], + type: "model", + pakFilePath: "@path:DTS_Library_V5.4.pak", + assetPath: "/JC_CustomAssets/EffectLibrary/Exhibition/3DUI/3D_UI_A_1", + value: "blind-plate", + scale: [3, 3, 3], + selected: false, + pages: ["dangerousWork"] + }, { + name: "大气环境", + ids: [] as string[], + type: "marker", + value: "gas-env", + hasText: true, + coordinateType: 1, + url: "@path:mp_atmosphere.png", + selected: false, + pages: ["smartEnvironment", "airQuality", "dangrousCar"] + }, { + name: "土壤环境", + ids: [] as string[], + type: "marker", + value: "ground-env", + coordinateType: 1, + hasText: true, + url: "@path:mp_soil.png", + selected: false, + pages: ["smartEnvironment", "soilQuality"] + }, { + name: "废气污染源", + ids: [] as string[], + type: "marker", + url: "@path:mp_fluegas.png", + value: "fq-wrw", + coordinateType: 1, + hasText: true, + selected: false, + pages: ["smartEnvironment", "gas"] + }, { + name: "清下水监控", + ids: [] as string[], + type: "marker", + coordinateType: 1, + hasText: true, + url: "@path:mp_purewater.png", + value: "qxs-jk", + selected: false, + pages: ["smartEnvironment", "clean"] + }, { + name: "水环境", + ids: [] as string[], + type: "marker", + coordinateType: 1, + url: "@path:mp_water.png", + value: "water-env", + hasText: true, + selected: false, + pages: ["smartEnvironment", "waterQuality"] + }, { + name: "特征污染物", + ids: [] as string[], + type: "marker", + coordinateType: 1, + hasText: true, + url: "@path:mp_contaminant.png", + value: "tz-wrw", + selected: false, + pages: ["smartEnvironment", "characteristicContaminants"] + }, { + name: "废水污染源", + ids: [] as string[], + type: "marker", + coordinateType: 1, + hasText: true, + url: "@path:mp_fluewater.png", + value: "fs-wrw", + selected: false, + pages: ["smartEnvironment", "waste"] + }, { + name: "隐患治理", + ids: [] as string[], + type: "marker", + url: "@path:dt_yinhuan.png", + value: "hidden-dangrous", + selected: false, + pages: ["pitfall"] + }, { + name: "物资点位", + ids: [] as string[], + type: "marker", + coordinateType: 1, + url: "@path:goods.png", + value: "goods-point", + selected: false, + }, { + name: "消防设备分布", + ids: [] as string[], + type: "marker", + url: "@path:eq.png", + value: "eq", + selected: false, + }] diff --git a/src/mock/line.ts b/src/mock/line.ts new file mode 100644 index 0000000..cbad63d --- /dev/null +++ b/src/mock/line.ts @@ -0,0 +1,63 @@ +export default[ + [[ + 13313007.36, + 4098545.92, + 1 + ],[ + 13313047.040000001, + 4098509.12, + 0.50984375 + ],[ + 13313094.4, + 4098544.96, + 1 + ],[ + 13313141.76, + 4098497.2800000003, + 1 + ],[ + 13313192.96, + 4098545.2800000003, + 1 + ],[ + 13313130.24, + 4098629.12, + 1 + ],[ + 13313104.64, + 4098693.12, + 1 + ],[ + 13313082.88, + 4098749.44, + 1 + ],[ + 13313052.16, + 4098779.8400000003, + 1 + ],[ + 13313081.6, + 4098823.04, + 1 + ]],[[ + 13312802.56, + 4098473.92, + 1 + ],[ + 13312913.92, + 4098365.7600000002, + 1 + ],[ + 13312875.52, + 4098313.2800000003, + 1 + ],[ + 13313004.8, + 4098176, + 1 + ],[ + 13312966.4, + 4098140.48, + 1 + ]] +] \ No newline at end of file diff --git a/src/mock/nav.ts b/src/mock/nav.ts new file mode 100644 index 0000000..d7f069a --- /dev/null +++ b/src/mock/nav.ts @@ -0,0 +1,115 @@ +export default [{ + label: "一园一档", + value: "parkFile", + layers:["real-line","plan-line","safe-line"], + children: [{ + label: "首页概览", + value: "parkFile", + }] +},{ + label: "一企一档", + value: "companyFile", + children: [{ + label: "首页概览", + value: "companyFile" + }] +},{ + label: "智慧环保", + value: "smartEnvironment", + children: [{ + label: "首页概览", + value: "smartEnvironment" + }, { + label: "大气环境", + value: "airQuality" + }, { + label: "水环境", + value: "waterQuality" + }, { + label: "土壤环境", + value: "soilQuality" + }, { + label: "特征污染物", + value: "characteristicContaminants" + }, { + label: "废气监测", + value: "gas" + }, { + label: "废水监测", + value: "waste" + }, { + label: "清下水", + value: "clean" + }] +}, { + label: "智慧安监", + value: "smartSafetySupervision", + layers:["four-color","dangrous"], + children: [{ + label: "首页概览", + value: "smartSafetySupervision", + }, + { + label: "风险管控", + value: "risk" + }, + /* { + label:"重大危险源", + value:"hazard" + },*/ + { + label: "隐患治理", + value: "pitfall" + }, + { + label: "特殊作业", + value: "dangerousWork" + }] +}, { + label: "智慧应急", + value: "smartEmergency", + layers:["video","heatmap"], + children: [{ + label: "首页概览", + value: "smartEmergency", + }, { + label: "物资盘点", + value: "goods" + }] +}, { + label: "封闭园区", + value: "closePark", + layers:["peo","car","bounds"], + children: [{ + label: "首页概览", + value: "closePark", + }, { + label: "人车管理", + value: "peopleCar" + }, { + label: "危化车辆", + value: "dangrousCar" + }, { + label: "周界管理", + value: "boundsManager" + }] +}, { + label: "智慧能源", + value: "smartEnergy", + children: [{ + label: "首页概览", + value: "smartEnergy" + }, { + label: "燃料一张图", + value: "gasConsumption" + }, { + label: "电力一张图", + value: "electricityConsumption" + }, { + label: "水务一张图", + value: "waterConsumption" + }, { + label: "蒸汽一张图", + value: "steamConsumption" + }] +}] diff --git a/src/mock/plan.ts b/src/mock/plan.ts new file mode 100644 index 0000000..8101682 --- /dev/null +++ b/src/mock/plan.ts @@ -0,0 +1,19 @@ +export default [[ + 13312624.64, + 4098459.2, + 0.4 +],[ + 13312988.16, + 4098051.52, + 0.4 +],[ + 13312719.36, + 4097784.3200000003, + 0.4 +],[ + 13312346.88, + 4098189.12, + 0.400078125 +] + +] \ No newline at end of file diff --git a/src/mock/real.ts b/src/mock/real.ts new file mode 100644 index 0000000..e877df6 --- /dev/null +++ b/src/mock/real.ts @@ -0,0 +1,23 @@ +export default [[ + 13312554.24, + 4098441.2800000003, + 0.4 +],[ + 13313066.24, + 4098892.48, + 0.476328125 +],[ + 13313446.4, + 4098451.52, + 0.4000390625 +],[ + 13312994.56, + 4098064.96, + 0.3999609375 +],[ + 13312628.48, + 4098448.3200000003, + 0.39998046875 +] + +] \ No newline at end of file diff --git a/src/mock/safe.ts b/src/mock/safe.ts new file mode 100644 index 0000000..1fe5fca --- /dev/null +++ b/src/mock/safe.ts @@ -0,0 +1,19 @@ +export default [[ + 13312145.92, + 4098379.8400000003, + 0.39984375 +],[ + 13312945.92, + 4097631.04, + 0.39984375 +],[ + 13314124.8, + 4098650.24, + 0.39984375 +],[ + 13313205.76, + 4099659.2, + 0.4 +] + +] \ No newline at end of file diff --git a/src/models/index.ts b/src/models/index.ts new file mode 100644 index 0000000..77de3a8 --- /dev/null +++ b/src/models/index.ts @@ -0,0 +1,44 @@ +interface ActionResult { + /** + * code: 状态码, 0成功, 1一般业务异常, -1其他异常, -2授权异常, 令牌错误或令牌过期 + */ + code: number, + /** + * message: 错误消息 + */ + message?: string; + /** + * message: 错误消息 + */ + msg?: string; + /** + * data: 数据 + */ + data: T; +} +interface PagedResult { + /** + * 总笔数 + */ + totalRecords: number; + /** + * 总页数 + */ + totalPages: number; + /** + * 页码 + */ + pageNumber: number; + /** + * 每页笔数 + */ + pageSize: number; + /** + * 分页数据 + */ + datas: T[]; +} +interface loginModel{ + access_token:string, + expires_in:number +} diff --git a/src/models/line.option.ts b/src/models/line.option.ts new file mode 100644 index 0000000..1cdd63c --- /dev/null +++ b/src/models/line.option.ts @@ -0,0 +1,37 @@ +export default class LineOption{ + // 主键 + public id:string; + // 分组id + public groupId?:string; + // 用户自定义数据 + public userData?:string; + // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,2为火星坐标系(GCJ02),3为百度坐标系(BD09),默认值:0 + public coordinateType?:number; + // 坐标点数组 + public coordinate?:[number,number,number][]; + // 可视范围: [近裁距离, 远裁距离],取值范围: [任意负值, 任意正值] + public range?:[number,number]; + // 线宽,单位:米,默认值20 + public thickness?:number; + // 颜色值,支持四种格式 + public color?:string; + // 亮度,取值范围:[0~1000],默认值:0.5 + public intensity?:number; + // 流速,取值范围:[0~1.0],默认值:0.5 + public flowRate?:number; + // 折线样式,箭头/光流/贴地/实线/虚线等,取值范围:[0~7] + public style?:number; + // 可选参数,材质贴图平铺比例,和PolylineStyle取值有关,目前仅部分样式支持此参数,从起始位置开始平铺,超过的部分会按此比例生成新的区域,类似CSS的repeat。如果这个值 <= 0 使用自动计算按Polyline长度比例平铺, >0使用用户输入的值去平铺 + public tiling?:number; + // 可选参数,自定义材质路径,即资源库PAK文件里材质文件的路径,设置自定义材质参数后style相关参数会失效 + public material?:string; + // 样式,0:直线, 1:曲线,注意:设置为曲线坐标点多的时候会非常影响添加添加效率 + public shape:number; + // 选参数,仅在设置自定义材质路径后生效,自定义材质数值类型参数,包含name/value键值对的数组,其中value为数值,格式示例:[{"name":"不透明度","value":0.5},{"name":"UV重复","value":1.0}] + public scalarParameters?:any[]; + // 可选参数,仅在设置自定义材质路径后生效,自定义材质矢量类型参数,包含name/value键值对的数组,其中value为数组,格式示例:[{"name":"color1","value":[1,1,1,1]},{"name":"color2","value":[1,0,0,1]}] + public vectorParameters?:any[]; + // 是否做深度检测,默认为true,true会被遮挡,false不会被遮挡 + public depthTest?:boolean; + +} \ No newline at end of file diff --git a/src/models/marker.option.ts b/src/models/marker.option.ts new file mode 100644 index 0000000..3ae967b --- /dev/null +++ b/src/models/marker.option.ts @@ -0,0 +1,87 @@ +export default class MarkerOption{ + // 主键 + public id:string; + // 分组id + public groupId?:string; + // 用户数据 + public userData?:string; + // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,2为火星坐标系(GCJ02),3为百度坐标系(BD09),默认值:0 + public coordinateType?:number; + // 标注点的位置坐标: [x, y, z] + public coordinate?:[number,number,number]; + // 锚点: [x, y],设置Marker的整体偏移,取值规则和imageSize设置的宽高有关,图片的左上角会对准标注点的坐标位置。示例设置规则:x=-imageSize.width/2,y=imageSize.height + public anchors?:[number,number]; + // 可视范围: [近裁距离, 远裁距离],默认值: [10, 10000] + public range?:[number,number]; + // 文本可视范围: [近裁距离, 远裁距离],默认值: [100, 6000] + public textRange?:[number,number]; + // 图片的尺寸: [width, height], 默认值[32,32] + public imageSize?:[number,number]; + // 图片是否固定尺寸,取值范围:false 自适应,近大远小,true 固定尺寸,默认值:false + public fixedSize?:boolean; + // 图片路径,支持gif动图,支持本地路径和网络路径 + public imagePath?:string; + // 鼠标悬停时显示的图片路径,支持gif动图,支持本地路径和网络路径 + public hoverImagePath?:string; + // 鼠标悬停时显示的图片尺寸: [width, height], 默认值:[0,0] 使用图片自身的尺寸,注意:如果设置的值比imageSize尺寸小,则默认使用imageSize的尺寸。 + public hoverImageSize?:[number,number]; + // 显示的文字 + public text?:string; + // 是否打开文字展开动画效果,默认值:true + public useTextAnimation?:boolean; + // 文本偏移: [x, y],默认值:[0,0] + public textOffset?:[number,number]; + // 字体大小,默认值:12 + public fontSize?:number; + // 字体轮廓线大小,默认值:1 + public fontOutlineSize?:number; + // 文本背景颜色,默认值白色[1, 1, 1, 0.85],支持四种格式 + public textBackgroundColor?:string; + // 字体颜色,默认值:黑色Color.Black,支持四种格式, + public fontColor?:string; + // 字体轮廓线颜色,默认值:黑色Color.Black,支持四种格式 + public fontOutlineColor?:string; + // 弹窗背景颜色, [1.0,1.0,1.0,0.1] ,支持四种格式, + public popupBackgroundColor?:string; + // 弹窗HTML链接或者视频文件路径,也支持rtsp协议实时视频流 + public popupURL?:string; + // 弹窗大小: [width, height],默认值:[600,400] + public popupSize?:[number,number]; + // 弹窗偏移: [x, y],默认值:[0,0] + public popupOffset?:[number,number]; + // 标注点下方是否显示垂直牵引线,默认不显示:false + public showLine?:boolean; + // 牵引线粗细[width, height],默认值:[0,0],如果要显示牵引线,需要将该属性设置成非0值 + public lineSize?:[number,number]; + // 牵引线颜色,默认值:白色,支持四种格式 + public lineColor?:string; + // 牵引线偏移: [x, y],默认值:[0,0] + public lineOffset?:[number,number]; + // 是否自动关闭弹出窗口,默认值:true + public autoHidePopupWindow?:boolean; + // 自动判断下方是否有物体,设置正确高度,默认值:false + public autoHeight?:boolean; + // 显示模式,取值说明如下: + + // 0:相机移动不显示,参与避让聚合 + + // 1:相机移动时显示,参与避让聚合 + + // 2:相机移动时显示,不参与避让聚合 + + // 3:相机移动时不显示,不参与避让聚合 + + // 4:智能模式,根据当前相机高度自动适配以上模式,类似金字塔lod加载效果,内置默认规则:range范围的1%内取值2,大于1%小于10%取值1,大于10%取值0 + public displayMode?:number; + // 智能模式时的显示模式切换时range参数的首段比例,仅在displayMode=4时生效,取值范围:[0.01~1.0),默认值0.01,示例:如果range=[1,1000],则在[1,10]范围内dislayMode=2 + public autoDisplayModeSwitchFirstRatio?:number; + // 智能模式时的显示模式切换时range参数的第二段比例,仅在displayMode=4时生效,取值范围:[0.01~1.0),默认值0.1,示例:如果range=[1,1000],则在[10,100]范围内dislayMode=1,大于100则dislayMode=1 + public autoDisplayModeSwitchSecondRatio?:number; + // 聚合时是否根据图片路径(imagePath)分类聚合显示,即当多个marker的imagePath路径参数相同时按路径对marker分类聚合 + public clusterByImage?:boolean; + // 避让优先级,默认值:0 + public priority?:number; + // 是否参与遮挡剔除 + public occlusionCull?:boolean; + +} \ No newline at end of file diff --git a/src/models/polygon.option.ts b/src/models/polygon.option.ts new file mode 100644 index 0000000..1599a96 --- /dev/null +++ b/src/models/polygon.option.ts @@ -0,0 +1,37 @@ +export default class PolygonOption{ + // 主键 + public id:string; + // 分组id + public groupId?:string; + // 用户自定义数据 + public userData?:string; + // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,2为火星坐标系(GCJ02),3为百度坐标系(BD09),默认值:0 + public coordinateType?:number; + // 多边形坐标数组 + public coordinate?:[number,number,number][] | [number,number,number][][]; + // 颜色值,支持四种格式, + public color?:string; + // 3D多边形的高度,取值范围:[任意正数] + public height?:number; + // 亮度,取值范围:[0~1000] + public intensity?:number; + // 3DPolygon的样式,参考 + public style?:number; + // 可选参数,仅当3DPolygon的样式支持贴图显示时,设置贴图横向平铺,取值范围:[任意数值] + public tillingX?:number; + // 可选参数,仅当3DPolygon的样式支持贴图显示时,设置贴图纵向平铺,取值范围:[任意数值] + public tillingY?:number; + // 可选参数,自定义材质路径,即资源库PAK文件里材质文件的路径,设置自定义材质参数后style相关参数会失效 + public material?:string; + // 可选参数,仅在设置自定义材质路径后生效,自定义材质数值类型参数,包含name/value键值对的数组,其中value为数值,格式示例:[{"name":"不透明度","value":0.5},{"name":"UV重复","value":1.0}] + public scalarParameters?:any[]; + // 可选参数,仅在设置自定义材质路径后生效,自定义材质矢量类型参数,包含name/value键值对的数组,其中value为数组,格式示例:[{"name":"color1","value":[1,1,1,1]},{"name":"color2","value":[1,0,0,1]}] + public vectorParameters?:any[]; + // 可选参数,设置自定义材质路径后生效,是否生成顶面,默认:true + public generateTop?:boolean; + // 可选参数,设置自定义材质路径后生效,是否生成侧面,默认:true + public generateSide?:boolean; + // 可选参数,设置自定义材质路径后生效,是否生成底面,默认:true + public generateBottom?:boolean; + +} \ No newline at end of file diff --git a/src/models/radar.option.ts b/src/models/radar.option.ts new file mode 100644 index 0000000..94308a4 --- /dev/null +++ b/src/models/radar.option.ts @@ -0,0 +1,23 @@ +export default class RadarOption{ + // 主键 + public id:string; + // 分组id + public groupId?:string; + // 用户自定义数据 + public userData?:string; + // 坐标系类型,取值范围:0为Projection类型,1为WGS84类型,2为火星坐标系(GCJ02),3为百度坐标系(BD09),默认值:0 + public coordinateType?:number; + // 多边形坐标数组 + public coordinate?:[number,number,number]; + // 颜色值,支持四种格式, + public color?:string; + // 辐射圈的半径,取值范围:[0~500000],单位:米 + public radius?:number; + // 亮度,取值范围:[0~1000] + public intensity?:number; + // 波纹数量,取值范围:[0~5],单位:个 + public rippleNumber?:number; + // 自动判断下方是否有物体,设置正确高度,默认值:false + public autoHeight?:boolean; + +} \ No newline at end of file diff --git a/src/popup/pop.component.vue b/src/popup/pop.component.vue new file mode 100644 index 0000000..e83c415 --- /dev/null +++ b/src/popup/pop.component.vue @@ -0,0 +1,185 @@ + + + diff --git a/src/router/index.ts b/src/router/index.ts new file mode 100644 index 0000000..8548f6a --- /dev/null +++ b/src/router/index.ts @@ -0,0 +1,69 @@ +import Vue from 'vue' +import VueRouter, { RouteConfig } from 'vue-router' +import OverviewComponent from '@/views/overview.component' +import AdminComponent from '@/views/admin/admin.component.vue' +import TjfxComponent from '@/views/admin/tjfx/tjfx.component.vue' +import JkComponent from '@/views/admin/jk/jk.component.vue' +import DutyComponent from '@/views/admin/duty/duty.component.vue' +import CarComponent from '@/views/admin/car/car.component.vue' +import GoodsComponent from '@/views/admin/goods/goods.component.vue' +import EqComponent from '@/views/admin/eq/eq.component.vue' +import PopupComponent from "@/popup/pop.component.vue" + +Vue.use(VueRouter) +const routes: Array = [ + + { + path: '/', + name: 'index', + redirect:"/home", + }, + { + path: '/home', + name: 'indexComponent', + component:OverviewComponent + }, { + path: '/admin', + name: 'admin', + redirect:'/tjfx', + component:AdminComponent, + children:[ + { + path: '/tjfx', + name: 'tjfx', + component:TjfxComponent + },{ + path: '/jk', + name: 'jk', + component:JkComponent + },{ + path: '/duty', + name: 'duty', + component:DutyComponent + },{ + path: '/car', + name: 'car', + component:CarComponent + },{ + path: '/goods', + name: 'goods', + component:GoodsComponent + },{ + path: '/eq', + name: 'eq', + component:EqComponent + }, + ] + }, + { + path: '/popup', + name: 'popup', + component: PopupComponent + }, + +] + +const router = new VueRouter({ + routes, +}) +export default router diff --git a/src/service/close.service.ts b/src/service/close.service.ts new file mode 100644 index 0000000..320e976 --- /dev/null +++ b/src/service/close.service.ts @@ -0,0 +1,27 @@ +import HttpService from "hbt-common/service/http.service" +import type { AxiosResponse } from 'axios' +export default class CloseService extends HttpService{ + constructor(){ + super({}) + } + public getPeopleList(params?: any):Promise>>{ + const url = '/getPeopleList'; + return this.get(url,params) + } + public getCarList(params?: any):Promise>>{ + const url = '/getCarList'; + return this.get(url,params) + } + public getStopCarList(params?: any):Promise>>{ + const url = '/getStopCarList'; + return this.get(url,params) + } + public getBlackCarList(params?: any):Promise>>{ + const url = '/getBlackCarList'; + return this.get(url,params) + } + public getCameraList(params?: any):Promise>>{ + const url = '/getCameraList'; + return this.get(url,params) + } +} diff --git a/src/service/park.service.ts b/src/service/park.service.ts new file mode 100644 index 0000000..a8494e5 --- /dev/null +++ b/src/service/park.service.ts @@ -0,0 +1,97 @@ +import HttpService from "hbt-common/service/http.service" +import type { AxiosResponse } from 'axios' +export default class ParkFileService extends HttpService{ + constructor(){ + super({}) + } + public getExpertList(params?: any):Promise>>{ + const url = '/getPeopleList'; + return this.get(url,params) + } + public getCompanyList(params?: any):Promise>>{ + const url = '/getCompanyList'; + return this.get(url,params) + } + public getBounds(params?: any):Promise>>{ + const url = '/getBounds'; + return this.get(url,params) + } + public getRealBounds(params?: any):Promise>>{ + const url = '/getRealBounds'; + return this.get(url,params) + } + public getSafeBounds(params?: any):Promise>>{ + const url = '/getSafeBounds'; + return this.get(url,params) + } + public getPlanBounds(params?: any):Promise>>{ + const url = '/getPlanBounds'; + return this.get(url,params) + } + public getSafeLine(params?: any):Promise>>{ + const url = '/getSafeLine'; + return this.get(url,params) + } + public getGasData(params?: any):Promise>>{ + const url = '/getGasData'; + return this.get(url,params) + } + public getRoilData(params?: any):Promise>>{ + const url = '/getRoilData'; + return this.get(url,params) + } + public getBadGasData(params?: any):Promise>>{ + const url = '/getBadGasData'; + return this.get(url,params) + } + public getCleanWaterData(params?: any):Promise>>{ + const url = '/getCleanWaterData'; + return this.get(url,params) + } + public getWaterEnvData(params?: any):Promise>>{ + const url = '/getWaterEnvData'; + return this.get(url,params) + } + public getTzWrwData(params?: any):Promise>>{ + const url = '/getTzWrwData'; + return this.get(url,params) + } + public getBadWaterData(params?: any):Promise>>{ + const url = '/getBadWaterData'; + return this.get(url,params) + } + public getFourList(params?: any):Promise>>{ + const url = '/getFourList'; + return this.get(url,params) + } + public getFourList2(params?: any):Promise>>{ + const url = '/getParkFourList'; + return this.get(url,params) + } + public getCheckPoint(params?: any):Promise>>{ + const url = '/getCheckPoint'; + return this.get(url,params) + } + public getBuildingList(params?: any):Promise>>{ + const url = '/getBuildingList'; + return this.get(url,params) + } + public getStoreList(params?: any):Promise>>{ + const url = '/getStoreList'; + return this.get(url,params) + } + public getDangrous(params?: any):Promise>>{ + const url = '/getDangrous'; + return this.get(url,params) + } + // 获取动火 + public getDangrousWorkData(params?: any):Promise>>{ + const url = '/getDangrousWorkData'; + return this.get(url,params) + } + + public getHiddenDangrous(params?: any):Promise>>{ + const url = '/getHiddenDangrous'; + return this.get(url,params) + } +} diff --git a/src/service/risk.service.ts b/src/service/risk.service.ts new file mode 100644 index 0000000..208fa17 --- /dev/null +++ b/src/service/risk.service.ts @@ -0,0 +1,28 @@ +import HttpService from "hbt-common/service/http.service" +import type { AxiosResponse } from 'axios' +export default class RiskService extends HttpService{ + constructor(){ + super({}) + } + public getRiskList(params?: any):Promise>>{ + const url = '/getRiskList'; + return this.get(url,params) + } + public getRiskDetail(params?: any):Promise>>{ + const url = '/getRiskDetail'; + return this.post(url,params,{},false) + } + public getSepList(params?: any):Promise>>{ + const url = '/getSepList'; + return this.get(url,{},false) + } + public getHiddenDangerList(params?: any):Promise>>{ + const url = '/getHiddenDangerList'; + return this.get(url,{},false) + } + public getHiddenList(params?: any):Promise>>{ + const url = '/getHiddenList'; + return this.get(url,{},false) + } + +} diff --git a/src/shims-tsx.d.ts b/src/shims-tsx.d.ts new file mode 100644 index 0000000..64fc0a8 --- /dev/null +++ b/src/shims-tsx.d.ts @@ -0,0 +1,11 @@ +import Vue, { VNode } from 'vue' + +declare global { + namespace JSX { + interface Element extends VNode {} + interface ElementClass extends Vue {} + interface IntrinsicElements { + [elem: string]: any + } + } +} diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts new file mode 100644 index 0000000..008dfaf --- /dev/null +++ b/src/shims-vue.d.ts @@ -0,0 +1,12 @@ +declare module '*.vue' { + import Vue from 'vue' + export default Vue +} +declare module '*.scss' { + const css:string + export default css +} +declare module '*.html' { + const html:string + export default html +} diff --git a/src/store/index.ts b/src/store/index.ts new file mode 100644 index 0000000..066c00f --- /dev/null +++ b/src/store/index.ts @@ -0,0 +1,73 @@ +import Vue from 'vue' +import Vuex from 'vuex' + +Vue.use(Vuex) + +export default new Vuex.Store({ + state: { + warningList: [], + eventList: [], + peopleList:[], + companyList:[], + carList:[], + cameraList:[], + hiddenDangrousList:[], + dangrousWorkList:[], + groundEnvList:[], + specialEnvList:[], + dangrousList:[], + safeGoods:[], + }, + getters: { + }, + mutations: { + setPeopleList(state,data){ + state.peopleList = data; + }, + setCompanyList(state,data){ + state.companyList = data; + }, + setCarList(state,data){ + state.carList = data; + }, + setCameraList(state,data){ + state.cameraList = data; + }, + upDateWaringList(state:any,data){ + state.warningList = [...data,...state.warningList]; + + }, + setHiddenDangrousList(state:any,data){ + state.hiddenDangrousList = data; + }, + setDangrousWorkList(state:any,data){ + state.dangrousWorkList = data; + }, + setGroundEnvList(state:any,data){ + state.groundEnvList = data; + }, + setSpecialEnvList(state:any,data){ + state.specialEnvList = data; + }, + upDateEventList(state:any,data){ + if (state.eventList.length === 50){ + const temp = [...data,...state.eventList]; + temp.pop() + state.eventList = temp; + }else{ + state.eventList = [...data,...state.eventList]; + } + + }, + setDangrousList(state:any,data){ + state.dangrousList = data; + }, + setSafeGoods(state:any,data){ + state.safeGoods = data; + }, + }, + actions: { + }, + modules: { + } +}) diff --git a/src/utils/echarts.ts b/src/utils/echarts.ts new file mode 100644 index 0000000..5bedb2f --- /dev/null +++ b/src/utils/echarts.ts @@ -0,0 +1,304 @@ +const closeLineOpt = { + color:["#FADFA4","#947FEA"], + tooltip: { + trigger: 'axis', + backgroundColor:"rgba(0,0,0,0.6)", + borderWidth:0, + textStyle:{ + color:"rgba(255,255,255,0.8)", + }, + axisPointer: { + // Use axis to trigger tooltip + type: 'line' // 'shadow' as default; can also be 'line' or 'shadow' + } + }, + legend: { + itemWidth:10, + itemHeight:10, + icon:"roundRect", + textStyle:{ + color:"rgba(255,255,255,0.8)", + fontSize:10 + }, + top:30, + }, + grid: { + left: '3%', + right: '2%', + top:65, + bottom: 20, + containLabel: true + }, + xAxis: { + type: 'category', + axisLine:{ + lineStyle:{ + color:"#999" + } + }, + axisLabel:{ + color:"rgba(255,255,255,0.8)", + // interval:0, + }, + splitLine:{ + show:true, + lineStyle:{ + color:"#D4E5FF", + opacity:0.16, + } + }, + data: [1, 2, 3,4,5,6,7,8,9,10,11,12].map(item=>item+"月") + }, + yAxis: [{ + type: 'value', + axisLine:{ + lineStyle:{ + color:"#999" + } + }, + splitLine:{ + show:true, + lineStyle:{ + color:"#D4E5FF", + opacity:0.16, + } + }, + axisLabel:{ + color:"rgba(255,255,255,0.8)", + }, + }], + series: [ + { + name: '入场车辆', + type: 'line', + symbol:"circle", + data: [320, 302, 301, 334,220, 182, 191, 234,150, 212, 201, 154] + }, + { + name: '出场车辆', + symbol:"circle", + type: 'line', + data: [120, 132, 101, 134,820, 832, 901, 934,320, 302, 301, 334] + } + ] +} +const closeBarOpt = { + color:["#7DAEFF"], + tooltip: { + trigger: 'axis', + backgroundColor:"rgba(0,0,0,0.6)", + borderWidth:0, + textStyle:{ + color:"rgba(255,255,255,0.8)", + }, + axisPointer: { + // Use axis to trigger tooltip + type: 'line' // 'shadow' as default; can also be 'line' or 'shadow' + } + }, + grid: { + left: '3%', + right: '4.5%', + top:15, + bottom: 15, + containLabel: true + }, + xAxis: { + axisLine:{ + lineStyle:{ + color:"#999" + } + }, + axisLabel:{ + color:"rgba(255,255,255,0.8)", + interval:0, + formatter:"{value}%" + }, + splitLine:{ + show:true, + lineStyle:{ + color:"#D4E5FF", + opacity:0.16, + } + }, + max: 100 + }, + yAxis: [{ + type: 'category', + axisLine:{ + lineStyle:{ + color:"#999" + } + }, + axisLabel:{ + color:"rgba(255,255,255,0.8)", + interval:0, + }, + splitLine:{ + show:true, + lineStyle:{ + color:"#D4E5FF", + opacity:0.16, + } + }, + data: ["车辆识别仪","人脸识别仪","筒机","半球机","球机","热成像"], + // animationDuration: 300, + // animationDurationUpdate: 300, + }], + series: [ + { + realtimeSort: true, + type: 'bar', + data:[65,32,73,81,90,100], + } + ], + // animationDuration: 0, + // animationDurationUpdate: 3000, + // animationEasing: 'linear', + // animationEasingUpdate: 'linear' + }; + +const closePieOpt = { + title: { + text: '设备告警树', + top:"42%", + left:"11%", + textStyle: { + fontSize: 20, + fontWeight: '500', + color: '#FFF', + }, + }, + tooltip: { + trigger: 'item' + }, + legend: { + orient: 'vertical', + right: '0%', + top: 'bottom', + height:100, + itemWidth: 10, + itemHeight: 10, + data: [ + {value: 100, name: '气体检测仪'}, + {value: 100, name: '车辆定位卡'}, + {value: 100, name: '人员定位卡'}, + {value: 100, name: '摄像头'}, + ], + textStyle: { + overflow:"truncate", + color: 'rgba(255,255,255,0.8)', + }, + }, + series: [ + { + type: 'pie', + selectedMode: 'single', + selectedOffset: 10, + center:["28%","50%"], + radius: [55, 80], + data: [ + {value: 100, name: '气体检测仪'}, + {value: 2, name: ''}, + {value: 100, name: '车辆定位卡'}, + {value: 2, name: ''}, + {value: 100, name: '人员定位卡'}, + {value: 2, name: ''}, + {value: 100, name: '摄像头'}, + {value: 2, name: ''}, + ], + color: ['#7FB0FF',null, '#947FEA',null, '#C9FFD7',null, '#FADFA4',null, '#FFFFFF',null], + emphasis: { + label:{ + show: false + }, + itemStyle: { + // shadowBlur: 10, + shadowOffsetX: 0, + // borderWidth:5, + // borderColor:"rgba(255,255,255,0)", + shadowColor: 'rgba(0, 0, 0, 0.5)' + } + }, + itemStyle: { + // borderWidth:5, + // borderColor:"rgba(0,0,0)" + + }, + select: { + label:{ + show:true, + color:"#FFF", + formatter:"{c}" + } + }, + labelLine: { + show: false + }, + label: { + position:"inside", + show: false + }, + tooltip:{ + backgroundColor:'rgba(0,0,0,0.4)', + textStyle:{ + color:'#ffffff' + } + + } + } + ], + animationDuration: 0, + animationDurationUpdate: 3000, + animationEasing: 'linear', + animationEasingUpdate: 'linear' +} + + +const radarOpt = { + color: ['rgba(127,176,255,0.6)'], + tooltip: { + trigger: 'item', + backgroundColor:"rgba(0,0,0,0.6)", + borderWidth:0, + textStyle:{ + color:"rgba(255,255,255,0.8)", + }, + }, + radar: { + indicator: [ + { text: '爆炸品', max: 150 }, + { text: '压缩气体', max: 150 }, + { text: '强氧化剂', max: 150 }, + { text: '腐蚀品', max: 120 }, + { text: '易燃液体', max: 108 }, + ], + center: ['50%', '50%'], + radius: 100, + axisName: { + color: '#fff', + borderRadius: 3, + padding: [3, 5] + } + }, + series: [ + { + type: 'radar', + data: [ + { + value: [100, 93, 50, 90, 70], + name: '危化品类型', + areaStyle: {} + } + ] + } + ] +}; + + +export default { + closeLineOpt, + closePieOpt, + closeBarOpt, + radarOpt +} diff --git a/src/utils/player.ts b/src/utils/player.ts new file mode 100644 index 0000000..77df970 --- /dev/null +++ b/src/utils/player.ts @@ -0,0 +1,189 @@ + +import MarkerOption from '@/models/marker.option.js' +import PolygonOption from '@/models/polygon.option.js'; +import * as acapi from '../../public/ac.min.js' +// import acapi from 'ac.min.js' +export default class PlayerUtils{ + public api:any; + public initPlayer(domId,iid?){ + const player = new acapi.DigitalTwinPlayer(process.env.VUE_APP_PALYER_URL,{ + domId, + iid, + // reset:true, + apiOptions:{ + onReady: this.onReady, + onLog: this.onLog, //可选参数,日志输出回调函数 + onEvent: this.onEvent + }, + ui:{ + startupInfo:true, + mainUI:false + }, + + events: { + onVideoLoaded: this.onLoad, //可选参数,视频流加载成功回调函数 + onConnClose: this.onClose, //可选参数,连接断开回调函数 + mouseKeyListener:{ + onMouseEnter:this.onMouseEnter, + onMouseLeave:this.onMouseLeave, + onMouseMove:this.onMouseMove, + onMouseDown:this.onMouseDown, + onMouseUp:this.onMouseUp, + onKeyDown:this.onKeyDown, + onKeyUp:this.onKeyUp, + onKeyPress:this.onKeyPress, + } + }, + keyEventTarget: 'none', + }) + this.api = player.getAPI(); + return player + } + + public onReady:any=null; + + public onLog :any= null; + + public onEvent :any = null; + + public onLoad :any= null; + + public onClose :any= null; + public onMouseEnter :any= null; + public onMouseLeave :any= null; + public onMouseMove :any= null; + public onMouseDown :any= null; + public onMouseUp :any= (data)=>{ + console.log(data) + }; + public onKeyDown :any= null; + public onKeyUp :any= null; + public onKeyPress :any= null; + + + public async addMarker(data:MarkerOption | MarkerOption[],fn?:any){ + const option = { + range: [1, 10000], + autoHidePopupWindow:false, + displayMode:2, + coordinateType:1, + } + let params; + if(data instanceof Array){ + params = data.map(item=>{ + return Object.assign({},option,data) + }) + }else{ + params = Object.assign({},option,data) + } + await this.api.marker.add(params,fn); + } + + public async addPolygon(data:PolygonOption | PolygonOption[],fn?:any){ + const option = { + coordinateType:1, + } + let params; + if(data instanceof Array){ + params = data.map(item=>{ + return Object.assign({},option,data) + }) + }else{ + params = Object.assign({},option,data) + } + await this.api.polygon3d.add(params,fn); + } + // type:marker,polygon,polygon3d,marker3d等等 + public remove(type:string,ids:string | string[],fn?){ + this.api[type].delete(ids,fn) + } + public clearAll(type:string,fn?){ + this.api[type].clear(fn) + } + public toggle(type:string,ids:string | string[],isShow:boolean,fn?){ + if(isShow){ + this.api[type].show(ids,fn) + }else{ + this.api[type].hide(ids,fn) + } + } + public toggleAll(type:string,isShow:boolean,fn?){ + if(isShow){ + this.api[type].showAll(fn) + }else{ + this.api[type].hideAll(fn) + } + } + + + /** + * 投影坐标转经纬度坐标 + * @param coordinates [x,y,z]- 世界坐标 + * @param coordinateType - 经纬度坐标系类型0:世界 1:84 2:gcj02 3:bd09 + * @param fn 完成后的回调 + * @returns 经纬度 lon,lat] + */ + + public getLonLat(coordinates,coordinateType?,fn?){ + if(!coordinateType){ + // 1 84坐标系 2 GCJ02 3 BD09 + coordinateType=1; + } + const result = this.api.coord.pcs2gcs(coordinates,coordinateType,fn) + if(result.resultMessage==="OK"){ + return result.coordinates + }else{ + return new Error(result.resultMessage) + } + } + + /** + * 经纬度坐标转世界坐标 + * @param coordinates [lon,lat]- 经纬度 + * @param coordinateType - 经纬度坐标系类型 1:84 2:gcj02 3:bd09 + * @param fn 完成后的回调 + * @returns position [x,y,z]世界坐标 + */ + + public async getPosition(coordinates,coordinateType?,fn?){ + if(!coordinateType){ + // 1 84坐标系 2 GCJ02 3 BD09 + coordinateType=1; + } + const result = await this.api.coord.gcs2pcs(coordinates,coordinateType) + if(result.resultMessage==="OK"){ + return result.coordinates + }else{ + return new Error(result.resultMessage) + } + } + /** + * 世界坐标转屏幕坐标 + * @param position [x,y,z] - 世界坐标 + * @param fn 完成后的回调 + * @returns [x,y]屏幕坐标 + */ + public getScreenPosition(position,fn?){ + const result = this.api.coord.world2Screen(...position,fn); + if(result.resultMessage==="OK"){ + return result.screenPosition + }else{ + return new Error(result.resultMessage) + } + } + /** + * 屏幕坐标转世界坐标 + * @param offest [x,y,] - 屏幕坐标 + * @param fn 完成后的回调 + * @returns [x,y,z]世界坐标 + */ + public getPositionByOffset(offest,fn?){ + const result = this.api.coord.world2Screen(...offest,fn); + if(result.resultMessage==="OK"){ + return result.worldLocation + }else{ + return new Error(result.resultMessage) + } + } + +} diff --git a/src/utils/utils.ts b/src/utils/utils.ts new file mode 100644 index 0000000..cc7ddce --- /dev/null +++ b/src/utils/utils.ts @@ -0,0 +1,100 @@ +import * as $ from "jquery"; + +const getRandNumBetween = (min, max) => { + return Math.round((Math.random() * (max - min) + min) * 10) / 10; +} + +function getPreviousDay(time) { + const date = new Date(time); + date.setDate(date.getDate() - 1); + const year = date.getFullYear(); + const month = paddingZero(date.getMonth() + 1); + const day = paddingZero(date.getDate()); + const hour = paddingZero(date.getHours()); + const minute = paddingZero(date.getMinutes()); + const second = paddingZero(date.getSeconds()); + return year + '-' + month + '-' + day + '
' + hour + ':' + minute + ':' + second; +} + +function paddingZero(num) { + return (num < 10 ? '0' : '') + num; +} + +function throttle(func, wait) { + let timeout: any = null; + let previous = 0; + + return function () { + const now = Date.now(); + const remaining = wait - (now - previous); + + if (remaining <= 0 || remaining > wait) { + if (timeout) { + clearTimeout(timeout); + timeout = null; + } + previous = now; + // eslint-disable-next-line prefer-rest-params + func.apply(this, arguments); + } else if (!timeout) { + timeout = setTimeout(() => { + previous = Date.now(); + timeout = null; + // eslint-disable-next-line prefer-rest-params + func.apply(this, arguments); + }, remaining); + } + }; +} + +function extensionOne(myChart) { + + const id = document.getElementById("extensionOne"); + //判断是否创建过div框,如果没有创建过,则创建。(创建时,默认隐藏) + if (!id) { + const div = "
"; + + $('body').append(div); + } + + + //鼠标悬浮事件 + myChart.on('mouseover', function (params) { + if (params.componentType != "yAxis") { + return; + } + + //设置div框样式,并为其填充值。 + $('#extensionOne').css({ + "position": "absolute", + "color": "#c9c9c9", + // "border": "solid 0px white", + "font-family": "Arial", + "font-size": "14px", + "padding": "5px", + 'z-index': 10, + 'background': 'rgba(28, 28, 28, 0.76)', + 'border': '1px solid rgba(204, 204, 204, 0.69)', + 'border-radius': '4px', + "display": "inline" + }).text(params.value); + + $("body").mousemove(function (event) { + // console.log("X轴坐标:" + event.pageX + " Y轴坐标:" + event.pageY); + const xx = event.pageX - 30; + const yy = event.pageY + 10; + $('#extensionOne').css('top', yy).css('left', xx); + }); + }); + + myChart.on('mouseout', function (params) { + $('#extensionOne').css('display', 'none'); + }); +} + +export { + getRandNumBetween, + getPreviousDay, + throttle, + extensionOne +} diff --git a/src/views/admin/admin.component.vue b/src/views/admin/admin.component.vue new file mode 100644 index 0000000..678ac55 --- /dev/null +++ b/src/views/admin/admin.component.vue @@ -0,0 +1,110 @@ + + + diff --git a/src/views/admin/car/car.component.vue b/src/views/admin/car/car.component.vue new file mode 100644 index 0000000..f7e68fe --- /dev/null +++ b/src/views/admin/car/car.component.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/views/admin/duty/duty.component.vue b/src/views/admin/duty/duty.component.vue new file mode 100644 index 0000000..02b4c32 --- /dev/null +++ b/src/views/admin/duty/duty.component.vue @@ -0,0 +1,125 @@ + + + diff --git a/src/views/admin/eq/eq.component.vue b/src/views/admin/eq/eq.component.vue new file mode 100644 index 0000000..d1c7fb7 --- /dev/null +++ b/src/views/admin/eq/eq.component.vue @@ -0,0 +1,323 @@ + + + diff --git a/src/views/admin/goods/goods.component.vue b/src/views/admin/goods/goods.component.vue new file mode 100644 index 0000000..e80f12d --- /dev/null +++ b/src/views/admin/goods/goods.component.vue @@ -0,0 +1,129 @@ + + + diff --git a/src/views/admin/jk/jk.component.vue b/src/views/admin/jk/jk.component.vue new file mode 100644 index 0000000..750d3d3 --- /dev/null +++ b/src/views/admin/jk/jk.component.vue @@ -0,0 +1,128 @@ + + + diff --git a/src/views/admin/morkData.js b/src/views/admin/morkData.js new file mode 100644 index 0000000..4555a41 --- /dev/null +++ b/src/views/admin/morkData.js @@ -0,0 +1,424 @@ +export const jkDataList = [ + { + cameraName:'红外感光检测一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'球机', + status:1, + },{ + cameraName:'红外感光检测一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'枪机', + status:1, + },{ + cameraName:'红外感光检测一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'球机', + status:0, + },{ + cameraName:'云台一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'云台', + status:1, + },{ + cameraName:'红外感光检测一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'球机', + status:1, + },{ + cameraName:'红外感光检测一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'枪机', + status:1, + },{ + cameraName:'红外感光检测一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'球机', + status:0, + },{ + cameraName:'云台一体机', + companyName:'连云港德邦化学', + cameraCode:'Q-23-001', + position:'4#分区东侧管廊', + monitorObject:'甲苯1#储罐', + cameraType:'云台', + status:1, + }, +] +export const dutyDataList = [ + { + name:'9月份消防值班计划', + startTime:'2023-09-01', + endTime:'2023-09-30', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'乔纯云', + },{ + name:'8月份消防值班计划', + startTime:'2023-08-01', + endTime:'2023-08-30', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'丁典', + },{ + name:'8月第二周消防值班计划', + startTime:'2023-08-08', + endTime:'2023-08-13', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'段盛', + },{ + name:'9月份消防值班计划', + startTime:'2023-09-01', + endTime:'2023-09-30', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'乔纯云', + },{ + name:'8月份消防值班计划', + startTime:'2023-08-01', + endTime:'2023-08-30', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'丁典', + },{ + name:'8月第二周消防值班计划', + startTime:'2023-08-08', + endTime:'2023-08-13', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'段盛', + },{ + name:'9月份消防值班计划', + startTime:'2023-09-01', + endTime:'2023-09-30', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'乔纯云', + },{ + name:'8月份消防值班计划', + startTime:'2023-08-01', + endTime:'2023-08-30', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'丁典', + },{ + name:'8月第二周消防值班计划', + startTime:'2023-08-08', + endTime:'2023-08-13', + type:'月度计划', + area:'消防中队', + position:'消防中控室', + leader:'段盛', + }, +] +export const carDataList = [ + { + type:'水罐消防车', + code:'DB-SG-023', + position:'消防楼', + model:'5T', + person:'余飞红', + num:'1', + status:1, + }, { + type:'云梯消防车', + code:'DB-YT-001', + position:'消防楼', + model:'39M', + person:'段盛', + num:'1', + status:1, + }, { + type:'干粉泡沫联用车', + code:'DB-LY-022', + position:'消防楼', + model:'39M', + person:'丁典', + num:'1', + status:0, + },{ + type:'水罐消防车', + code:'DB-SG-023', + position:'消防楼', + model:'5T', + person:'余飞红', + num:'1', + status:1, + }, { + type:'云梯消防车', + code:'DB-YT-001', + position:'消防楼', + model:'39M', + person:'段盛', + num:'1', + status:1, + }, { + type:'干粉泡沫联用车', + code:'DB-LY-022', + position:'消防楼', + model:'39M', + person:'丁典', + num:'1', + status:0, + },{ + type:'水罐消防车', + code:'DB-SG-023', + position:'消防楼', + model:'5T', + person:'余飞红', + num:'1', + status:1, + }, { + type:'云梯消防车', + code:'DB-YT-001', + position:'消防楼', + model:'39M', + person:'段盛', + num:'1', + status:1, + }, { + type:'干粉泡沫联用车', + code:'DB-LY-022', + position:'消防楼', + model:'39M', + person:'丁典', + num:'1', + status:0, + }, +] +export const goodsDataList = [ + { + name:'干粉灭火器', + type:'灭火物资', + model:'5KG', + num:'12', + unit:'具', + + address:'消防物资库', + code:'MHQ-D-2-001', + status:1, + },{ + name:'消防斧头', + type:'破拆工具', + model:'30*15', + num:'2', + unit:'个', + + address:'消防物资库', + code:'WZ-L-001', + status:1, + },{ + name:'强力剪刀', + type:'破拆工具', + model:'1.2m', + num:'1', + unit:'个', + + address:'消防物资库', + code:'WZ-L-002', + status:1, + },{ + name:'变径器', + type:'连通工具', + model:'DN65', + num:'1', + unit:'个', + + address:'消防物资库', + code:'WZ-O-002', + status:1, + },{ + name:'变径器', + type:'连通工具', + model:'DN65', + num:'1', + unit:'个', + + address:'消防物资库', + code:'WZ-O-002', + status:1, + },{ + name:'可燃气体报警仪', + type:'应急通信', + model:'DN65', + num:'2', + unit:'台', + + address:'消防物资库', + code:'WZ-O-002', + status:0, + },{ + name:'干粉灭火器', + type:'灭火物资', + model:'5KG', + num:'12', + unit:'具', + + address:'消防物资库', + code:'MHQ-D-2-001', + status:1, + },{ + name:'消防斧头', + type:'破拆工具', + model:'30*15', + num:'2', + unit:'个', + + address:'消防物资库', + code:'WZ-L-001', + status:1, + },{ + name:'强力剪刀', + type:'破拆工具', + model:'1.2m', + num:'1', + unit:'个', + + address:'消防物资库', + code:'WZ-L-002', + status:1, + },{ + name:'变径器', + type:'连通工具', + model:'DN65', + num:'1', + unit:'个', + + address:'消防物资库', + code:'WZ-O-002', + status:1, + },{ + name:'变径器', + type:'连通工具', + model:'DN65', + num:'1', + unit:'个', + + address:'消防物资库', + code:'WZ-O-002', + status:1, + },{ + name:'可燃气体报警仪', + type:'应急通信', + model:'DN65', + num:'2', + unit:'台', + + address:'消防物资库', + code:'WZ-O-002', + status:0, + }, +] +export const eqsDataList = [ + { + name:'灭火机器人', + type:'灭火装备', + model:'WARTHOG01-S/L/M', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:1, + },{ + name:'消防排烟机', + type:'排烟装备', + model:'1,3920m³/hr', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:1, + },{ + name:'柴油发电机', + type:'动力设备', + model:'300KW', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:0, + },{ + name:'灭火机器人', + type:'灭火装备', + model:'WARTHOG01-S/L/M', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:1, + },{ + name:'消防排烟机', + type:'排烟装备', + model:'1,3920m³/hr', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:1, + },{ + name:'柴油发电机', + type:'动力设备', + model:'300KW', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:0, + },{ + name:'灭火机器人', + type:'灭火装备', + model:'WARTHOG01-S/L/M', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:1, + },{ + name:'消防排烟机', + type:'排烟装备', + model:'1,3920m³/hr', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:1, + },{ + name:'柴油发电机', + type:'动力设备', + model:'300KW', + num:'1', + unit:'台', + address:'消防物资库', + buyTime:'2023-01-01', + status:0, + }, +] diff --git a/src/views/admin/tjfx/chartData.js b/src/views/admin/tjfx/chartData.js new file mode 100644 index 0000000..2327137 --- /dev/null +++ b/src/views/admin/tjfx/chartData.js @@ -0,0 +1,714 @@ +const pieDataList = [ + { + "y": 23, + "name": "烟雾报警", + "value": 23, + "percent": 2000 + }, + { + "s": "人员闯入", + "y": 35, + "name": "人员闯入", + "value": 35, + "percent": 3400 + }, + { + "s": "火灾报警", + "y": 12, + "name": "火灾报警", + "value": 12, + "percent": 1000, + "itemStyle": { + "color": "rgba(0, 186, 189, 1)" + } + }, + { + "s": "火焰分析", + "y": 22, + "name": "火焰分析", + "value": 22, + "percent": 1900, + "itemStyle": { + "color": "rgba(255, 120, 0, 1)" + } + }, + { + "s": "人员离岗", + "y": 30, + "name": "人员离岗", + "value": 30, + "percent": 3000, + "itemStyle": { + "color": "rgba(0, 186, 189, 1)" + } + } +] +let totalCount = pieDataList.reduce((accumulator, currentValue) => accumulator + currentValue.percent,0) +export const pieData = { + "title": [ + { + text: `{a|总计}`, + textAlign: "center", + textStyle: { + rich: { + a: { + color: "#000000", + fontSize: "32", + } + }, + }, + x: "29%", + y: "40%", + },{ + text: `{a|${totalCount}}`, + textAlign: "center", + textStyle: { + rich: { + a: { + color: "#000000", + fontSize: "28", + } + }, + }, + x: "29%", + y: "52%", + }, + ], + "tooltip": { + "textStyle": { + "color": "" + } + }, + "grid": { + "left": 20, + "top": 60, + "right": 20, + "bottom": 60 + }, + "legend": { + "icon": "roundRect", + "type": "scroll", + "scrollDataIndex": 5, + "show": true, + "itemWidth": 10, + "itemHeight": 10, + 'right':'12%', + 'top':'18%', + "orient": "vertical", + "itemGap": 26, + "padding": [ + 10, + 10, + 10, + 10 + ], + "data": [ + { + "name": "烟雾报警", + }, + { + "name": "人员闯入", + }, + { + "name": "火灾报警", + }, + { + "name": "火焰分析", + "textStyle": {} + }, + { + "name": "人员离岗", + } + ], + //格式化图例文本 + formatter(name) { + let tarValue; + let total = pieDataList.reduce((accumulator, currentValue) => accumulator + currentValue.value,0) + let count = 0 + for (let i = 0; i < pieDataList.length; i++) { + if (pieDataList[i].name == name) { + tarValue = pieDataList[i].value; + count = pieDataList[i].percent + } + } + let v = ((tarValue/total)*100).toFixed(2); + return `${name} ${v}% ${count}`; + }, + "textStyle": { + + } + }, + "series": [ + { + "type": "pie", + "roseType": "", + "radius": [ + "49%", + "64%" + ], + "center": [ + "30%", + "50%" + ], + "label": { + "show": false, + "position": "center", + "rich": { + "title": { + "fontSize": 17, + "color": "#EEC40B", + "fontWeight": "normal", + "fontFamily": "微软雅黑", + "padding": [ + 0, + 0, + 9, + 0 + ], + "fontStyle": "normal", + "textDecoration": "static", + "opacity": 1 + }, + "titleValue": { + "fontSize": 18, + "fontWeight": "normal", + "padding": [ + 9, + 0, + 0, + 0 + ], + "opacity": 0.7, + "color": "#D3114B", + "fontFamily": "微软雅黑", + "fontStyle": "normal", + "textDecoration": "static" + }, + "percent": { + "fontSize": 12, + "fontWeight": "bold", + "padding": [ + 9, + 0, + 0, + 0 + ], + "opacity": 1, + "color": "#E6F7FF", + "fontFamily": "微软雅黑", + "fontStyle": "normal", + "textDecoration": "static" + }, + "titleUnit": { + "opacity": 1, + "fontSize": 21 + } + } + }, + "data": [ + { + + "y": 23, + "name": "烟雾报警", + "value": 23, + "percent": 14.935064935064934 + }, + { + "value": 1, + "name": "", + "itemStyle": { + "label": { + "show": false + }, + "labelLine": { + "show": false + }, + "color": "rgba(0, 0, 0, 0)", + "borderColor": "rgba(0, 0, 0, 0)", + "borderWidth": 0 + } + }, + { + "s": "人员闯入", + "y": 35, + "name": "人员闯入", + "value": 35, + "percent": 22.727272727272727 + }, + { + "value": 1, + "name": "", + "itemStyle": { + "label": { + "show": false + }, + "labelLine": { + "show": false + }, + "color": "rgba(0, 0, 0, 0)", + "borderColor": "rgba(0, 0, 0, 0)", + "borderWidth": 0 + } + }, + { + "s": "火灾报警", + "y": 12, + "name": "火灾报警", + "value": 12, + "percent": 7.792207792207792, + "itemStyle": { + "color": "rgba(0, 186, 189, 1)" + } + }, + { + "value": 1, + "name": "", + "itemStyle": { + "label": { + "show": false + }, + "labelLine": { + "show": false + }, + "color": "rgba(0, 0, 0, 0)", + "borderColor": "rgba(0, 0, 0, 0)", + "borderWidth": 0 + } + }, + { + "s": "火焰分析", + "y": 22, + "name": "火焰分析", + "value": 22, + "percent": 14.285714285714285, + "itemStyle": { + "color": "rgba(255, 120, 0, 1)" + } + }, + { + "value": 1, + "name": "", + "itemStyle": { + "label": { + "show": false + }, + "labelLine": { + "show": false + }, + "color": "rgba(0, 0, 0, 0)", + "borderColor": "rgba(0, 0, 0, 0)", + "borderWidth": 0 + } + }, + { + "s": "人员离岗", + "y": 30, + "name": "人员离岗", + "value": 30, + "percent": 19.480519480519483, + "itemStyle": { + "color": "rgba(0, 186, 189, 1)" + } + }, + { + "value": 1, + "name": "", + "itemStyle": { + "label": { + "show": false + }, + "labelLine": { + "show": false + }, + "color": "rgba(0, 0, 0, 0)", + "borderColor": "rgba(0, 0, 0, 0)", + "borderWidth": 0 + } + } + ], + "itemStyle": { + "borderRadius": 0, + "emphasis": { + "scale": true, + "scaleSize": 50 + } + } + } + ] +} +const data = new Array(30).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 1 + } +}) +const day = [] +const month = [] +for (let i = 0; i < 30; i++) { + day.push(i+1+'日') +} +for (let i = 0; i < 12; i++) { + month.push(i+1+'月') +} +export const lineData = { + color: ['#FF7802'], + tooltip: { + trigger: 'axis', + axisPointer: { + // 坐标轴指示器,坐标轴触发有效 + type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' + } + }, + dataZoom:[ + { + type:'slider', + start:90, + end:100 + } + ], + grid: { + left: '3%', + right: '4%', + bottom: '15%', + containLabel: true + }, + xAxis: [ + { + type: 'category', + data: day, + boundaryGap: false, + axisTick:{ + show:true // 不显示坐标轴刻度线 + }, + splitLine: { + show: false, + }, + axisLine:{ + color: 'rgba(0,0,0,0.3)', + }, + axisLabel: { + color: 'rgba(0,0,0,0.3)', + fontSize:12 + } + } + ], + yAxis: [ + { + name: "单位:时长/min", + nameTextStyle:{ + padding:[0,0,0,15] + }, + type: 'value', + //y右侧文字 + axisLabel: { + color: 'rgba(0,0,0,0.3)', + fontSize:12 + }, + axisTick:{ + show:true // 不显示坐标轴刻度线 + }, + axisLine:{ + show: true, + color: 'rgba(0,0,0,0.3)', + }, + // y轴的分割线 + splitLine: { + show: true, + lineStyle: { + type:'dashed', + color:'rgba(0,0,0,0.3)', + + } + } + } + ], + series: [ + { + name: '', + type: 'line', + smooth: true, + symbol: 'none', // 不显示连接点 + tooltip: { + trigger: 'axis', + axisPointer: { + // 坐标轴指示器,坐标轴触发有效 + type: 'line' // 默认为直线,可选为:'line' | 'shadow' + } + }, + lineStyle: { + width: 2, + shadowColor: "#FF7802", + }, + areaStyle: { + opacity: 1, + //右下左上 + color: {x:0, y:0, x2:0, y2:1, colorStops:[ + { + offset: 0, + color: 'rgba(255,120,2,0.65)' + }, + { + offset: 0.3, + color: 'rgba(255,120,2,0.37)' + }, + { + offset: 1, + color: 'rgba(255,120,2,0)' + } + ]} + }, + data: data + } + ] +} +export const barData = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + }, + + // 需要自行判断 + // formatter:function(p){ + // console.log(p); + // return `formatter` + // } + }, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + legend: { + data: ['本期', '上期'], + icon:'roundRect' + }, + xAxis: + { + type: 'category', + show:true, + axisTick: { show: false }, + data: month + } + , + yAxis: [ + { + name:'单位:数量/起', + type: 'value', + } + ], + color:['#E6A23C','#409EFF'], + series: [ + { + name: '本期', + type: 'bar', + barGap: 0.2, + barWidth:12, + data: new Array(12).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 1 + } + }) + }, + { + name: '上期', + type: 'bar', + barWidth:12, + data: new Array(12).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 1 + } + }) + } + ] +}; +//获取近5日的日期 +function getRecentFiveDays() { + // 获取当前日期 + var today = new Date(); + var dates = []; + + // 循环5次,分别获取最近5天的日期 + for(var i = 0; i < 300; i++) { + // 计算新的日期 + var newDate = new Date(today.getTime() - i*24*60*60*1000); + // 将新日期格式化为 "MM月dd日" 格式 + var formattedDate = (newDate.getMonth() + 1) + "月" + newDate.getDate() + "日"; + // 将格式化后的日期添加到数组中 + dates.unshift(formattedDate); + } + + return dates; +} +export const linesData = { + grid: { + top: "20%", + left: "5%", + right: "5%", + bottom: "17%", + containLabel: true + }, + color: ["#68C23A", "#4494F6", "#E6A23C", "#9EDEFF",'#DAA2FF'], + dataZoom:[ + { + type:'slider', + start:90, + end:100 + } + ], + tooltip: { + trigger: "axis", + backgroundColor: "rgba(1, 13, 19, 0.5)", + borderWidth: 1, + axisPointer: { + type: "shadow" + }, + formatter: function(params) { + var str = ""; + if (params.length > 0) { + str = params[0].name + "
"; + } + for (var i = 0; i < params.length; i++) { + if (params[i].seriesName !== "") { + str += params[i].seriesName + ":" + params[i].value + "
"; + } + } + return str; + }, + textStyle: { + color: "rgba(212, 232, 254, 1)" + }, + extraCssText: "z-index:2" + }, + legend: { + right: 'center', + top: 30, + icon: "roundRect", + itemWidth: 10, + itemHeight: 10, + itemGap: 15, + borderRadius: 4, + textStyle: { + color: "#000", + fontSize: 14, + fontWeight: 400 + } + }, + xAxis: { + type: "category", + data: getRecentFiveDays(), + axisLine: { + show: false + }, + axisTick: { + show: false + }, + axisLabel: { + show: true, + textStyle: { + color: "#393939" //X轴文字颜色 + } + } + }, + yAxis: [ + { + type: "value", + name:'单位:起', + nameTextStyle:{ + color:"#393939" + }, + axisLine: { + show: true, + lineStyle: { + color: "#eeeeee" + } + }, + axisTick: { + show: true + }, + axisLabel: { + color: "#393939", + fontSize: 14 + }, + splitLine: { + show: true, + lineStyle: { + color: "#e7e9ef", + type: "dashed" + } + } + } + ], + series: [ + { + name: "烟雾警报", + type: "line", + symbol: "circle", //标记的图形为实心圆 + symbolSize: 0, //标记的大小 + lineStyle: { + width: 2, + }, + data: new Array(300).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 1 + } + }) + }, + { + name: "人员闯入", + type: "line", + symbol: "circle", //标记的图形为实心圆 + symbolSize: 0, //标记的大小 + lineStyle: { + width: 2 + }, + data: new Array(300).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 5 + } + }) + }, + { + name: "火灾报警", + type: "line", + symbol: "circle", //标记的图形为实心圆 + symbolSize: 0, //标记的大小 + lineStyle: { + width: 2 + }, + data: new Array(300).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 8 + } + }) + }, + { + name: "火焰分析", + type: "line", + symbol: "circle", //标记的图形为实心圆 + symbolSize: 0, //标记的大小 + lineStyle: { + width: 2 + }, + data: new Array(300).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 10 + } + }) + }, + { + name: "人员离岗", + type: "line", + symbol: "circle", //标记的图形为实心圆 + symbolSize: 0, //标记的大小 + lineStyle: { + width: 2 + }, + data: new Array(300).fill(null).map(item => { + return { + value: Math.ceil(Math.random() * 20) + 15 + } + }) + } + ] +} diff --git a/src/views/admin/tjfx/tjfx.component.vue b/src/views/admin/tjfx/tjfx.component.vue new file mode 100644 index 0000000..c5ba5be --- /dev/null +++ b/src/views/admin/tjfx/tjfx.component.vue @@ -0,0 +1,160 @@ + + + diff --git a/src/views/base.component.ts b/src/views/base.component.ts new file mode 100644 index 0000000..1a3493e --- /dev/null +++ b/src/views/base.component.ts @@ -0,0 +1,591 @@ +import {Component, Vue} from 'vue-property-decorator'; + +import("./overview.component.scss") +import template from "./overview.component.html" +import HeaderComponent from "@/components/header.component.vue" +import MapComponent from "@/components/map.component.vue" +import {getRandNumBetween} from "@/utils/utils" +import layerData from "@/mock/layer" +import boundsData from "@/mock/bounds" +import ParkFileService from '@/service/park.service'; +import CloseService from '@/service/close.service'; +import * as turf from "@turf/turf" + +@Component({ + template, + components: { + MapComponent, + HeaderComponent, + + } +}) +export default class BaseComponent extends Vue { + public player!: any; + public layerData = layerData; + + public lock = true; + + public timerList = {} as any; + + public eventAssets = { + fire:"/JC_CustomAssets/ParticleLibrary/Exhibition/火/火焰_10", + normal:"/JC_CustomAssets/EffectLibrary/Exhibition/Point/Point_R_2" + } ; + public warnAssets = "/JC_CustomAssets/EffectLibrary/Exhibition/Point/Point_Y_2"; + public pakFilePath = "@path:DTS_Library_V5.4.pak"; + public currentWanning:any = null; + public currentEvent:any = null; + + // dataList + public dataList = {} as any; + // service + public parkService = new ParkFileService() + public closeService = new CloseService() + + + + // 重置视角 + public async resetMap(time:number=1) { + if(this.lock){ + this.$message.error("视口未加载完成") + return + } + this.player.api.camera.lookAt( + 13312716.658437, + 4098255.982695, + 60.714346, + 0, + -20, + -45 + ) + // this.player.api.camera.get((res)=>{ + // console.log(res) + // }) + + // return await this.player.api.tileLayer.focus("48D390964B7F0D37D07DD8A2D5596E64",330,time) + + } + + + public addEvent(data){ + if(this.currentEvent){ + this.player.api.customObject.delete(this.currentEvent.id); + this.player.api.marker.delete(this.currentEvent.id); + this.currentEvent = null; + } + if(!data.position[2]){ + data.position[2]=0.5 + } + const text = data.equipment ?? data.address + this.currentEvent = { + id: data.id, + pakFilePath: this.pakFilePath, + assetPath:this.eventAssets[data.type] , + location: data.position, + scale: data.type==="fire"?[15, 15, 15]:[10,10,10], + coordinate:data.position, + lineSize:[2,40], + autoHeight:true, + text:text??'', + displayMode:2, + popupSize:[355,282], + popupOffset:[20,-50], + useTextAnimation: false, + autoHidePopupWindow:true, + popupURL:process.env.VUE_APP_EXPOSES_URL+"#/popup?"+new URLSearchParams(data), + } + this.player.api.customObject.add(this.currentEvent, (data) => { + }) + this.player.api.marker.add(this.currentEvent, (data) => { + this.player.api.marker.showPopupWindow(this.currentEvent.id); + this.player.api.marker.focus(this.currentEvent.id,150,2) + }) + + + } + + public addWarnning(item){ + if(this.currentWanning){ + this.player.api.customObject.delete(this.currentWanning.id) + } + this.currentWanning = { + id:item.id+"", + groupId:"warning", + pakFilePath:this.pakFilePath, + assetPath:this.warnAssets, + // coordinateType:1, + location:[...item.position,10], + rotation:[0,90,0] + + } + this.player.api.customObject.add(this.currentWanning,()=>{ + this.player.api.customObject.focus(this.currentWanning.id,15,2) + }) + } + + // 添加电子围栏 // 安全线 // 实控线 // 规划线 + public async toggleArea(layer){ + if(!layer.ids.length){ + const result = this.dataList[layer.value].map(item=>{ + return { + id:item.id, + groupId:layer.value, + coordinates:item.area, + height:20, + color:layer.color, + style:4, + generateTop:false, + generateBottom:false + } + }); + this.player.api.polygon3d.add(result,(data)=>{ + if(data.resultMessage==="OK"){ + layer.ids = result.map(item=>item.id) + } + }) + }else{ + if(layer.selected){ + this.player.api.polygon3d.show(layer.ids) + }else{ + this.player.api.polygon3d.hide(layer.ids) + } + } + } + + // 添加marker + public toggleMarker(layer){ + if(!layer.ids.length){ + let text = {}; + const datas = this.dataList[layer.value].map(item=>{ + if(layer.hasText){ + text = { + useTextAnimation: false, + textBackgroundColor:[0,0,0,0.7], + textOffset:[0,0], + fontSize:12, + fontColor:"#FFF", + text:item.name || layer.name + } + } + return Object.assign({ + id:item.id, + groupId:layer.value, + coordinate:item.position, + coordinateType:layer.coordinateType?layer.coordinateType:0, + displayMode:2, + imagePath:layer.url || layer.urls[item.type], + imageSize:[48,48], + // popupURL:"http://192.168.1.20:8080/#/popup?"+new URLSearchParams(item), + lineSize:[2,40], + useTextAnimation: false, + lineOffset:[24,0], + // textBackgroundColor:[0,0,0,0.7], + autoHeight:true, + popupSize:[355,362], + popupOffset:[20,-50], + autoHidePopupWindow:true, + popupURL:process.env.VUE_APP_EXPOSES_URL+"#/popup?"+new URLSearchParams(item), + + },text) + }); + this.player.api.marker.add(datas,(data)=>{ + layer.ids = datas.map(item=>item.id) + }) + }else{ + if(layer.selected){ + // this.player.api.marker.showAllPopupWindow(); + this.player.api.marker.show(layer.ids) + }else{ + // this.player.api.marker.hideAllPopupWindow(); + this.player.api.marker.hide(layer.ids) + } + } + + + } + + // 添加企业面 tag + public toggleAreaMarker(layer){ + if(!layer.ids.length){ + const result = this.dataList[layer.value]; + if (!result) return + const datas = result.map(item=>{ + return { + id:item.id, + groupId:layer.value, + coordinate:item.position, + displayMode:2, + text:item.name, + // popupURL:"http://192.168.1.20:8080/#/popup?"+new URLSearchParams(item), + // popupSize:[348,156], + lineSize:[2,40], + useTextAnimation: false, + textBackgroundColor:[0,0,0,0.7], + textOffset:[0,0], + fontSize:12, + fontColor:"#FFF", + autoHeight:true, + + } + }); + const datas2 = result.map((item,index)=>{ + return { + id:item.id, + groupId:layer.value, + coordinates:item.area, + height:layer.value==="company"?5:40, + color:layer.color || layer.colors[index], + style:1, + generateTop:true, + generateBottom:true, + userData:item + } + }); + + this.player.api.polygon3d.add(datas2,(data)=>{ + // + console.log(layer.value,data) + }) + this.player.api.marker.add(datas,(data)=>{ + layer.ids = result.map(item=>item.id) + }) + // this.player.api.marker.showAllPopupWindow(); + }else{ + if(layer.selected){ + // this.player.api.marker.showAllPopupWindow(); + this.player.api.marker.show(layer.ids) + this.player.api.polygon3d.show(layer.ids) + }else{ + // this.player.api.marker.hideAllPopupWindow(); + this.player.api.marker.hide(layer.ids) + this.player.api.polygon3d.hide(layer.ids) + } + } + } + + public async toggleMoveMarker(layer){ + const result = this.dataList[layer.value]; + + if(!layer.ids.length){ + const datas = result.map(item=>{ + return { + id:item.id, + groupId:layer.value, + pakFilePath:layer.pakFilePath, + assetPath:layer.assetPath, + coordinateType:layer.coordinateType?layer.coordinateType:0, + location:item.position, + smoothMotion:1, + scale:[0,0,0], + rotation:[0,90,0] + + } + }); + const markerDatas = result.map(item=>{ + return { + id:item.id, + groupId:layer.value, + coordinate:item.position, + coordinateType:layer.coordinateType?layer.coordinateType:0, + displayMode:2, + imagePath:layer.url || layer.urls[item.type], + imageSize:[48,48], + // popupURL:"http://192.168.1.20:8080/#/popup?"+new URLSearchParams(item), + lineSize:[2,40], + useTextAnimation: false, + lineOffset:[24,0], + // textBackgroundColor:[0,0,0,0.7], + autoHeight:true, + + } + }) + this.player.api.marker.add(markerDatas) + this.player.api.customObject.add(datas,(data)=>{ + console.log(data) + if(data.resultMessage==="OK"){ + this.player.api.marker.setAttachCustomObject(result.map(item=>{ + layer.ids.push(item.id); + + + return{ + markerId: item.id, //标注id + objectId: item.id, //自定义对象id + offset: [0, 0, 0] //偏移量 + } + })); + this.player.api.customObject.moveTo(result.map(item=>{ + return { + id:item.id, + location:turf.destination(turf.point(item.position),layer.value==="car"?50:1,Math.random()*360,{units:"meters"}).geometry.coordinates, + "smoothTime": 5 + } + })) + + this.timerList[layer.value] = setInterval(()=>{ + this.player.api.customObject.moveTo(result.map(item=>{ + return { + id:item.id, + location:turf.destination(turf.point(item.position),layer.value==="car"?50:1,Math.random()*360,{units:"meters"}).geometry.coordinates, + "smoothTime": 5 + } + })) + },5000) + } + }) + }else{ + if(layer.selected){ + this.player.api.customObject.show(layer.ids) + this.player.api.marker.show(layer.ids) + this.player.api.customObject.moveTo(result.map(item=>{ + return { + id:item.id, + location:turf.destination(turf.point(item.position),layer.value==="car"?50:1,Math.random()*360,{units:"meters"}).geometry.coordinates, + "smoothTime": 5 + } + })) + + this.timerList[layer.value] = setInterval(()=>{ + this.player.api.customObject.moveTo(result.map(item=>{ + return { + id:item.id, + location:turf.destination(turf.point(item.position),layer.value==="car"?50:1,Math.random()*360,{units:"meters"}).geometry.coordinates, + "smoothTime": 5 + } + })) + },5000) + }else{ + clearInterval(this.timerList[layer.value]); + this.timerList[layer.value] = null; + this.player.api.customObject.hide(layer.ids) + this.player.api.marker.hide(layer.ids) + } + } + + } + + // 添加3dMarker + public async toggleCustom(layer){ + if(!layer.type){ + return + } + + if(!layer.ids.length){ + const result = this.dataList[layer.value] || []; + const datas = result.map(item=>{ + if(!item.position[2]){ + item.position[2] = item.name==="高空"? 20:3 + } + const rotation = item.rotation ?? [0,90,0] + return { + id:item.id, + groupId:layer.value, + pakFilePath:layer.pakFilePath, + assetPath:layer.assetPath, + coordinateType:layer.coordinateType?layer.coordinateType:0, + location:item.position, + scale:item.scale??layer.scale, + rotation:rotation + + } + }); + this.player.api.customObject.add(datas,(data)=>{ + if(data.resultMessage==="OK"){ + if(layer.value.indexOf("car")<0){ + result.forEach(async (item)=>{ + let res = await this.player.api.misc.getBPFunction(layer.assetPath); + console.log(res,item) + if(layer.value==="safe-goods"){ + this.player.api.customObject.callBatchBPFunction([{ + id: item.id, + functionName: '数据', + parameters: [ + { "paramType": 5, "paramValue": item.remark}, + { "paramType": 6, "paramValue": [1,1,1,1] }, + ] + },{ + id: item.id, + functionName: '文字', + parameters: [ + { "paramType": 5, "paramValue": item.name}, + { "paramType": 5, "paramValue": ""}, + { "paramType": 6, "paramValue": [1,1,1,1] }, + { "paramType": 6, "paramValue": [0, 0.3, 1, 1] }, + ] + }],(data)=>{ + console.error("物资盘点的marker点位供应商方面有问题 无法修改 预计五月底修复 产品经理说先放着不改文字") + }); + }else if (layer.value==="safe-building" || layer.value==="check-point"){ + this.player.api.customObject.callBatchBPFunction([{ + id: item.id, + functionName: '文字', + parameters: [ + { "paramType": 5, "paramValue": item.name}, + { "paramType": 2, "paramValue": 48 }, + { "paramType": 6, "paramValue": [0,1,0.000774,1] }, + { "paramType": 3, "paramValue": 1 } + ] + },{ + id: item.id, + functionName: '数据', + parameters: [ + { "paramType": 5, "paramValue": item.remark}, + { "paramType": 2, "paramValue": 150 }, + ] + }]); + }else{ + this.player.api.customObject.callBatchBPFunction([{ + id: item.id, + functionName: '文字', + parameters: [ + { "paramType": 5, "paramValue": layer.name+"作业"}, + { "paramType": 2, "paramValue": 48}, + { "paramType": 6, "paramValue": [1,1,1,1] }, + ] + }],(data)=>{ + console.log(data) + }); + } + }) + } + layer.ids = result.map(item=>item.id) + } + }) + }else{ + if(layer.selected){ + this.player.api.customObject.show(layer.ids) + }else{ + this.player.api.customObject.hide(layer.ids) + } + } + } + + + // 热力图 + public async addHeatMap(layer) { + if(!layer.ids.length){ + const range = [0, 100]; + const data = [] as any; + const bbox = [ + 13312554.24, + 4098064.96, + 0, + 13313446.4, + 4098892.48, + 0 + ] + for (let i = 0; i < 100; i++) { + const x = getRandNumBetween(bbox[0], bbox[3]); //minX ~ maxX + const y = getRandNumBetween(bbox[1], bbox[4]); //minY ~ maxY + data.push({ + id: i.toString(), + coordinate: [x, y, 0], //热力点的坐标 + radius: Math.random() * 30, //热力点影像半径范围 + heatValue: Math.random() * 100 //热力值 + }); + } + this.player.api.heatmap.add('heatmap', bbox, range, data); + layer.ids.push("heatmap") + }else{ + if(layer.selected){ + this.player.api.heatmap.show(layer.ids) + }else{ + this.player.api.heatmap.hide(layer.ids) + } + } + + + } + + // 添加逃生路线 + + public async addRoute(layer){ + + if(!layer.ids.length){ + const result = this.dataList[layer.value].map(item=>{ + return { + id:item.id, + groupId:layer.value, + coordinates:item.positions, + thickness:5, + shape:0, + flowRate:0.1, + color:layer.color, + style:0, + } + }); + this.player.api.polyline.add(result,(data)=>{ + if(data.resultMessage==="OK"){ + layer.ids = result.map(item=>item.id) + } + }) + }else{ + if(layer.selected){ + this.player.api.polyline.show(layer.ids) + }else{ + this.player.api.polyline.hide(layer.ids) + } + } + } + + + public toggleLayerAssets(layer){ + if(layer.type === "area"){ + this.toggleArea(layer) + return + } + if(layer.type === "line"){ + this.addRoute(layer) + return + } + if(layer.type === "heatmap"){ + this.addHeatMap(layer) + return + } + if(layer.type==="areaMarker"){ + this.toggleAreaMarker(layer) + return + } + if(layer.type==="moveMarker"){ + this.toggleMoveMarker(layer) + return + } + if(layer.type==="model"){ + this.toggleCustom(layer) + return + } + if(layer.type==="marker"){ + this.toggleMarker(layer) + } + } + showPopUp(id){ + this.player.api.marker.showPopupWindow(id); + this.player.api.marker.focus(id,150,2) + } + + public onFocus(data){ + this.player.api[data.type].focus(data.id) + } + + + + // 组件渲染完成 + mounted() { + console.log(1) + } + beforeDestory(){ + } + destroyed(){ + this.layerData.forEach(item=>{ + if(item.type){ + this.player.api[item.type].clear() + } + if(this.timerList[item.value]){ + clearInterval(this.timerList[item.value]); + this.timerList[item.value] = null; + } + + }) + } + + +} diff --git a/src/views/overview.component.html b/src/views/overview.component.html new file mode 100644 index 0000000..8240929 --- /dev/null +++ b/src/views/overview.component.html @@ -0,0 +1,163 @@ +
+
+ + {{ item.label }} + + +
+ + +
+
+ + 正在加载园区… +
+ +
+
+ +
+
+
+ +
+
+
+ +
+ +
+ +
+
+ + + +
+
×
+
+
+
+
+
消防值班值守平台
+
+
点击选择查看应急值班信息
+ + 1 + 2 + 3 + +
+ 查看当月值班计划 +
+
+
+
+
+
+
+
+
+ +
+
值班领导
+
姓名:王富贵
+
职务:一级巡查专员
+
电话:18888823232
+
+
+ +
+ +
+
+
+
+ 关闭 +
+
+
+ + +
+
+ + + + + + + + + + + +
+
+
+
+
+ 返回 +
+
+
+
AMS加氧反应器R-2440
+ +
+
+
+
3#氧化反应器R-2223
+ +
+
+
3#氧化反应器R-2223
+ +
+
+
+
+
+
一段加氢反应器R-601A
+ +
+
+
一段加氢反应器R-601B
+ +
+
+
2#氧化反应器R-2222
+ +
+
+
5#氧化反应器R-2225
+ +
+
+
+
+
+ +
+
diff --git a/src/views/overview.component.scss b/src/views/overview.component.scss new file mode 100644 index 0000000..ee8ba73 --- /dev/null +++ b/src/views/overview.component.scss @@ -0,0 +1,502 @@ +.layui-layer{ + background: none; +} +.layui-layer-title{ + color: #FFF; + background-color: rgba(0,0,0,0.6); +} +.layui-layer-ico{ + background: none; + &::after{ + content: "×"; + color: #FFF; + top: -12px; + font-size: 26px; + position: relative; + } +} +.overview-container { + width: 100%; + height: 100%; + position: relative; + .new-page{ + width: 100%; + height: 100%; + display: flex; + position: absolute; + left:0; + top: 0; + z-index: 9; + background-color: rgba(13, 21, 30, 0.5); + backdrop-filter: blur(8px); + } + .pop-box{ + width: 430px; + border-radius: 4px 4px 4px 4px; + opacity: 1; + border: 1px solid #FFFFFF; + background: rgba($color: #000000, $alpha: 0.8); + color: #E8E8E8; + padding: 30px; + font-size: 14px; + position: absolute; + left: 50%; + top: 27%; + transform: translate(-50%,-50%); + .border{ + width: 8px; + height: 8px; + position: absolute; + border-left: 1px solid #FFF; + border-top: 1px solid #FFF; + &.l-t{ + top: 10px; + left: 10px; + } + &.r-t{ + top: 10px; + right: 10px; + transform: rotate(90deg); + } + &.r-b{ + bottom: 10px; + right: 10px; + transform: rotate(180deg); + } + &.l-b{ + bottom: 10px; + left: 10px; + transform: rotate(270deg); + } + } + .title{ + font-size: 16px; + } + .close{ + position: absolute; + cursor: pointer; + right: 20px; + top: 20px; + color: #FFF; + font-size: 26px; + } + .block{ + padding: 20px 0; + line-height: 100%; + border-bottom: 1px solid rgba($color: $border-color, $alpha: 0.4); + &.flex-box{ + display: flex; + justify-content: space-around; + flex-wrap: wrap; + } + .flex-panel{ + width: 70px; + text-align: center; + line-height: 100%; + svg{ + font-size: 15px; + } + &.half{ + width: 50%; + text-align: left; + } + p{ + line-height: 100%; + margin-bottom: 10px; + } + .count{ + padding: 10px 0; + font-size: 20px; + margin-bottom: 10px; + border-bottom: 1px solid rgba($color: $border-color, $alpha: 0.6); + position: relative; + &::after{ + content: ""; + width: 4px; + height: 4px; + border: 1px solid rgba($color: $border-color, $alpha: 0.6); + border-radius: 50%; + position: absolute; + display: block; + right: -5px; + bottom: -3px; + + } + } + } + } + } + + .fix-tab-box{ + display: inline-flex; + align-items: center; + height: 40px; + background: rgba($color: #000000, $alpha: 0.7); + border-radius: 20px; + padding-right: 80px; + position: absolute; + top: 100px; + z-index: 99; + left: 50%; + transform: translateX(-50%); + .tab{ + margin-left: 80px; + } + .el-radio{ + color: $font-color; + } + } + + #map { + width: 100%; + height: 100%; + } + + .bg-box { + width: 540px; + height: 100%; + position: absolute; + top: 0; + z-index: 9; + pointer-events: none; + animation-duration: 1s; + + &.left { + left: 0; + padding-left: 50px; + padding-right: 160px; + background: linear-gradient(270deg, rgba(51, 51, 51, 0) 0%, rgba(11, 11, 11, 0.5) 24%, rgba(0, 0, 0, 0.8) 100%); + } + + &.right { + right: 0; + padding-right: 50px; + padding-left: 160px; + background: linear-gradient(90deg, rgba(51, 51, 51, 0) 0%, rgba(11, 11, 11, 0.5) 31%, rgba(0, 0, 0, 0.8) 100%); + + } + &.right.none{ + background: none; + } + .panel-container { + //width: 330px; + height: 100%; + padding: 100px 0 20px; + pointer-events: auto; + position: relative; + } + } + + .top-bg { + width: 100%; + left: 0; + position: absolute; + top: 0; + z-index: 9; + pointer-events: none; + height: 90px; + background: linear-gradient(180deg, #333333 0%, rgba(51, 51, 51, 0) 100%); + } + + .fixed-btn { + width: 50px; + height: 50px; + position: absolute; + bottom: 60px; + right: 402px; + font-size: 26px; + cursor: pointer; + color: $font-color; + display: flex; + align-items: center; + justify-content: center; + background: rgba($color: #000000, $alpha: 0.3); + border-radius: 4px; + transition: right 1s; + z-index: 10; + } + + .layer-btn-box { + width: 50px; + position: absolute; + bottom: 60px; + right: 440px; + font-size: 26px; + cursor: pointer; + color: $font-color; + background: rgba($color: #000000, $alpha: 0.3); + border-radius: 4px; + height: 50px; + z-index: 9; + overflow: hidden; + transition: all 1s; + + .layer-btn { + width: 50px; + height: 50px; + display: flex; + align-items: center; + justify-content: center; + position: relative; + + &.active { + &::after { + width: 32px; + height: 32px; + border: 1px solid #B5DCFF; + border-radius: 50%; + content: ""; + top: 50%; + pointer-events: none; + left: 50%; + position: absolute; + transform: translate(-50%, -50%); + + } + } + } + } + + .info-content { + padding: 20px; + text-align: center; + + .cycle-icon { + width: 8px; + height: 8px; + } + .blue { + background: #7FB0FF; + } + + .yellow { + background: #F3D262; + } + + .orange { + background: #F6974D; + } + + .red { + background: #DD7171; + } + &-text { + display: flex; + align-items: center; + font-size: 12px; + margin-bottom: 20px; + + .label { + width: 80px; + } + + .position-icon { + width: 16px; + height: 16px; + background: url("~@/assets/icons/png/point.png"); + margin-left: 8px; + + } + + .text { + text-align: left; + &.blue { + color: #7FB0FF; + background: transparent; + } + + &.yellow { + color: #F3D262; + background: transparent; + } + + &.orange { + color: #F6974D; + background: transparent; + } + + &.red { + color: #DD7171; + background: transparent; + } + } + + .phone-btn { + width: 90px; + height: 24px; + background: rgba(255, 255, 255, 0.15); + border-radius: 16px; + border: 1px solid #FFFFFF; + cursor: pointer; + text-align: center; + font-size: 14px; + margin-left: 8px; + } + } + + + + } +} + +.cursor-pointer { + cursor: pointer; +} + +.pop-btn-style { + width: 140px; + height: 34px; + border-radius: 17px 17px 17px 17px; + background: transparent; + border: 1px solid #E8E8E8; + font-size: 16px; + padding: 0; + margin: 0 auto; + + span { + color: #E8E8E8; + } + + &:hover, &:focus { + background: transparent; + + span { + color: #E8E8E8 !important; + } + } +} + +//表格通用样式 +.tb-style { + .el-table, .el-table__expanded-cell { + background-color: transparent; + color: #E8E8E8; + + } + + .el-table th, .el-table thead.is-group th.el-table__cell { + background-color: rgba(232, 232, 232, 0.5); + color: #E8E8E8; + padding: 10px 0; + font-weight: 400; + } + + .el-table tr { + background-color: transparent; + + &:nth-child(2n+1) { + background-color: rgba(128, 128, 128, 0.6); + } + } + + .el-table .el-table__cell { + padding: 10px 0; + text-align: center; + } + + .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell { + background-color: inherit; + } + + .el-table .blue-row { + td { + &:first-child { + border-left: 4px solid #7FB0FF; + } + } + + } + .el-table .yellow-row { + td { + &:first-child { + border-left: 4px solid #F3D262; + } + } + + } + .el-table .orange-row { + td { + &:first-child { + border-left: 4px solid #F6974D; + } + } + + } + .el-table .red-row { + td { + &:first-child { + border-left: 4px solid #DD7171; + } + } + + } + + +} + +//滚动条样式 +@mixin scrollStyle($width) { + &::-webkit-scrollbar { + width: $width !important; + height: 100% !important; + } + &::-webkit-scrollbar-thumb { + border-radius: 2px; + -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); + opacity: 0.2; + background: #ffffff; + } + &::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); + border-radius: 2px; + background: transparent; + } +} + +.permit-info-content { + height: 320px; + overflow: auto; + @include scrollStyle(2px); + padding: 0 15px; + + .el-table td.el-table__cell div { + font-size: 12px; + } + + .info { + display: flex; + flex-wrap: wrap; + padding-top: 20px; + padding-bottom: 10px; + + div { + width: 40%; + margin-bottom: 20px; + + &:nth-child(2n) { + width: 60%; + } + } + } +} + +.permit-tb { + .el-table { + width: 100%; + } +} + +.popSide { + width: 560px !important; + + .font-size-12 { + font-size: 12px; + } + + .tb-info-style { + margin-bottom: 20px; + } +} + + + diff --git a/src/views/overview.component.ts b/src/views/overview.component.ts new file mode 100644 index 0000000..5abd002 --- /dev/null +++ b/src/views/overview.component.ts @@ -0,0 +1,1008 @@ +import {Component} from 'vue-property-decorator'; +import BaseComponent from "./base.component" +import LeftSideComponent from "@/components/leftSide/leftSide.component" +import RightSideComponent from "@/components/rightSide/rightSide.component" +import CenterSideComponent from "@/components/center/centerSide.component" +import PicComponent from "@/components/companyFile/pic.component.vue" +import DetailBigComponent from "@/components/companyFile/detail-big.component.vue" +import {MockData} from "@/mock"; +import {eqsDataList} from "@/views/admin/morkData.js"; +import nav from '@/mock/nav'; + +import layer from "layui-layer" +import axios from "axios"; +import flvjs from "flv.js"; + + +@Component({ + components: { + LeftSideComponent, + RightSideComponent, + CenterSideComponent, + PicComponent, + DetailBigComponent + } +}) +export default class OverViewComponent extends BaseComponent { + //当前菜单 + public currentNav = ''; + + public currentLayers = [] as any; + + public parkList = ["一号停车场", "二号停车场", "三号停车场"]; + public radioList: any[] = [{ + label:'消防物资分布', + value:'goods' + },{ + label:'消防设备分布', + value:'equipment' + },{ + label:'消防车辆分布', + value:'cars' + }] + public currentPark = []; + public warnTimer: any; + currentVideo = require("@/assets/video/camera.mp4"); + //弹出层标识 + dialogVisible = false + //隐患详情 + showHiddenRightFlag = false + //许可证弹窗 + dialogVisibleForPermit = false + dialogVisibleForBigPop = false + //许可证模拟数据 + tableDataForPermit: any[] = MockData.xkz().data + + public openLayerDrawer = false; + //显示loading + public showLoading = true; + //风险管控右侧控制显示隐藏 + riskFlag = false + dutyTableData = [ + { + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + },{ + name:'邢道荣', + tel:'15371850097', + job:'指战员' + }, + ] + calendar = new Date() + riskDetailData = {} + //危险源详情标记 + riskDetailFlag = false + dangerSourceDetail = {} + dutyType = '' + public popFlag = false; + info: any = {} + // 告警列表 + waringList: any[] = []; + + + // 是否显示全页新页面 + public newPageData: any = null; + + //应急准备 + showPlanFlag = false + //事态控制 + showControlFlag = false + //善后 + showAfterwardsFlag = false + //确认警情 + showConfirmFlag = false + //研判 + judgmentFlag = false + //物资详细列表 + storeGoodsFlag = false + public currentCarPeople: any; + + public currentCompany: any = false; + detailData = {} + videoPlayer: any = null + + created() { + this.getCameraList(); + this.getCompanyList(); + this.getBounds(); + this.getRealBounds(); + this.getSafeBounds(); + this.getPlanBounds(); + this.getSafeLine(); + this.getStopCarList(); + this.getGasData(); + this.getRoilData(); + this.getBadGasData(); + this.getCleanWaterData(); + this.getTzWrwData(); + this.getBadWaterData(); + this.getWaterEnvData(); + this.getFourList(); + this.getFourList2(); + this.getCheckPoint(); + this.getStoreList(); + this.getBuildingList(); + this.getDangrous(); + this.getCarList(); + this.getPersonList(); + this.getHiddenDangrous(); + this.getDangrousWorkData(); + this.getGoodsList(); + this.warnTimer = setInterval(() => { + this.getWaringList() + this.upDateEventList() + }, 10000) + } + + public getHiddenDangrous() { + this.parkService.getHiddenDangrous().then((res: any) => { + this.dataList["hidden-dangrous"] = res.data; + this.$store.commit("setHiddenDangrousList", res.data) + }) + } + + public getWaringList() { + this.waringList = MockData.getWarningList().data + this.$store.commit("upDateWaringList", this.waringList) + } + public getGoodsList() { + this.dataList["goods-point"] = MockData.getGoodsList().data; + } + + public upDateEventList() { + const eventList = MockData.getEventList().data + this.$store.commit("upDateEventList", eventList) + } + + // 获取车辆 + public getCarList() { + this.closeService.getCarList().then((res) => { + this.dataList["car"] = res.data; + this.$store.commit("setCarList", res.data) + }) + }// 获取人员 + public getPersonList() { + this.closeService.getPeopleList().then((res:any) => { + this.dataList["peo"] = res.data; + // this.dataList["goods-point"] = res.data; + this.$store.commit("setPeopleList", res.data) + }) + } + + // 获取摄像头 + public getCameraList() { + this.closeService.getCameraList().then((res) => { + this.dataList["video"] = (res.data as any); + const tempData = [...eqsDataList,...eqsDataList,...eqsDataList] + this.dataList["eq"] = (res.data as any).map((item,i)=>{ + item.dataType = "goods" + return {...item,...tempData[i]} + }); + this.$store.commit("setCameraList", res.data) + }) + } + + // 获取企业列表 + public getCompanyList() { + this.parkService.getCompanyList().then((res: any) => { + this.dataList["company"] = res.data; + this.$store.commit("setCompanyList", res.data) + }) + } + + // 获取电子围栏 + public getBounds() { + this.parkService.getBounds().then((res: any) => { + this.dataList["bounds"] = res.data; + }) + } + + // 获取实控线 + public getRealBounds() { + this.parkService.getRealBounds().then((res: any) => { + this.dataList["real-line"] = res.data; + }) + } + + // 获取安全线 + public getSafeBounds() { + this.parkService.getSafeBounds().then((res: any) => { + this.dataList["safe-line"] = res.data; + }) + } + + // 获取规划线 + public getPlanBounds() { + this.parkService.getPlanBounds().then((res: any) => { + this.dataList["plan-line"] = res.data; + }) + } + + // 获取疏散线路 + public getSafeLine() { + this.parkService.getSafeLine().then((res: any) => { + this.dataList["safe-route"] = res.data; + }) + } + + // 获取重载空载车辆 + public getStopCarList() { + this.closeService.getStopCarList().then((res: any) => { + this.dataList["empty-car"] = res.data.filter(item => item.type == "空载"); + this.dataList["heavy-car"] = res.data.filter(item => item.type != "空载"); + }) + } + + // 获取大气监测 + public getGasData() { + this.parkService.getGasData().then(res => { + const datas = MockData.deviceList().data + this.dataList["gas-env"] = (res.data as any).map((item, i) => { + item.name = datas.nameList[i] + item.value = datas.values[i] + return item + }); + }) + + } + + // 获取土壤 + public getRoilData() { + this.parkService.getRoilData().then(res => { + const datas = MockData.deviceList().data + this.dataList["ground-env"] = (res.data as any).map((item, i) => { + item.name = datas.nameList[i] + item.value = datas.values[i] + return item + }); + this.$store.commit("setGroundEnvList", this.dataList["ground-env"]) + }) + + } + + // 获取废气 + public getBadGasData() { + this.parkService.getBadGasData().then(res => { + this.dataList["fq-wrw"] = res.data; + }) + + } + + // 获取清下水 + public getCleanWaterData() { + this.parkService.getCleanWaterData().then(res => { + this.dataList["qxs-jk"] = res.data; + }) + + } + + // 获取水环境 + public getWaterEnvData() { + this.parkService.getWaterEnvData().then(res => { + this.dataList["water-env"] = res.data; + }) + + } + + // 获取特征污染物 + public getTzWrwData() { + this.parkService.getTzWrwData().then(res => { + const datas = MockData.deviceList().data + this.dataList["tz-wrw"] = (res.data as any).map((item, i) => { + item.name = datas.nameList[i] + item.value = datas.values[i] + return item + }); + this.$store.commit("setSpecialEnvList", this.dataList["tz-wrw"]) + + }) + + } + + // 获取废水 + public getBadWaterData() { + this.parkService.getBadWaterData().then(res => { + this.dataList["fs-wrw"] = res.data; + }) + + } + + // 获取四色图 + public getFourList() { + this.parkService.getFourList().then(res => { + this.dataList["four-color"] = res.data; + }) + + } + + // 获取四色图2 + public getFourList2() { + this.parkService.getFourList2().then(res => { + this.dataList["four-color2"] = res.data; + }) + + } + + // 获取卡口 + public getCheckPoint() { + this.parkService.getCheckPoint().then(res => { + this.dataList["check-point"] = res.data; + }) + + } + + // 获取应急设施 + public getBuildingList() { + this.parkService.getBuildingList().then(res => { + this.dataList["safe-building"] = res.data; + }) + + } + + // 获取应急仓库 + public getStoreList() { + this.parkService.getStoreList().then(res => { + this.dataList["safe-goods"] = res.data; + this.$store.commit("setSafeGoods", res.data) + }) + + } + + // 获取重大危险源 + public getDangrous() { + this.parkService.getDangrous().then(res => { + this.dataList["dangrous"] = res.data; + this.$store.commit("setDangrousList", res.data) + }) + } + + // 获取动火 + public getDangrousWorkData() { + this.parkService.getDangrousWorkData().then((res: any) => { + res.data.forEach(item => { + const layer = this.layerData.find(layer => layer.name === item.name) as any; + if (!this.dataList[layer.value]) { + this.dataList[layer.value] = []; + } + this.dataList[layer.value].push(item); + this.$store.commit("setDangrousWorkList", res.data) + }) + + }) + } + + // 点位切换 + public parkChange(data) { + console.log(data) + if (data.length === 0) { + this.toggleLayer(this.currentLayers[0]) + return; + } + let ids = ["goods-point","eq","car"]; + this.currentLayers = this.getCurrentLayers([ids[data[0]]]); + // if (data === 0) { + // ids = this.currentLayers.find(item => item.value === "heavy-car").ids; + // } else if (data === 1) { + // ids = this.currentLayers.find(item => item.value === "empty-car").ids; + // } + // this.player.api.customObject.focus(ids) + } + + //特殊作业显示隐藏 + sepRightFlag = false + //特殊作业详情 + sepDetailData = {} + //特殊作业详情 + hiddenDetailData = {} + //是否从隐患那边打开的风险 + fromPage = '' + //大弹窗标题 + bigPopTitle = '人员信息卡' + //默认打开的折叠面板 + activeNames = ['1'] + //右侧列表显示隐藏 + rightListFlag = false + //右侧列表数据 + dataListRight: any = {} + //获取实例ip + ip = '' + dialogVisibleForBook = false + + + // 地图初始化后 + public getMap(store: any) { + this.player = store; + this.lock = false + this.showLoading = false + this.player.api.customObject.clear(); + this.player.api.polygon3d.clear(); + this.player.api.marker.clear(); + this.player.api.marker3d.clear(); + this.player.api.polyline.clear(); + this.player.api.heatmap.clear(); + setTimeout(()=>{ + this.resetMap(); + },4000) + + // this.addEvent({ + // type:"fire", + // id:new Date().getTime()+"", + // typeName:"火灾", + // tel:13222078731, + // position:[13312990.72, 4098613.12, 0.51], + // reporter:"张三", + // content:"北京汉邦唐化工厂区发生火灾" + + // }) + // this.addHeatMap(); + // document.addEventListener("mousemove",this.fixedCamera) + setInterval(() => { + this.getManageInfo() + }, 3000) + + } + + async getManageInfo() { + + // const url = 'http://172.16.0.77:8080/manage/instance?details=true&connections=true' + const url = 'http://192.168.1.66:8080/manage/instance?details=true&connections=true' + axios.get(url).then(res => { + if (res.data.instances[1].connections.length === 0) return + const ip = res.data.instances[1].connections[0].ip + if (this.ip === '') { + this.ip === ip + } + if (this.ip && this.ip !== ip) { + this.$message.warning('该实例被占用') + } + }) + } + + public handleChange(data) { + console.log(data) + if (data.GroupID) { + const currentData = this.dataList[data.GroupID].find(item => item.id === data.Id); + + if (data.GroupID === "peo") { + this.emitPersonPop(currentData) + } + if (["goods-point","eq","car"].includes(data.GroupID)) { + currentData.type = 'normal' + currentData.equipment = '物资详情' + this.showPopUp(currentData.id) + } + if (data.GroupID === "car") { + this.emitCarPop(currentData) + } + if (data.GroupID === "video") { + this.openVideo(currentData) + } + if (data.GroupID === "company") { + this.openCompany(currentData) + } + if (data.GroupID === "hidden-dangrous") { + this.showHiddenRight(currentData) + } + if (["blind-plate", "forbid-space", "use-e", "make-ground", "hoisting", "high-sky", "break-road", "use-fire"].includes(data.GroupID)) { + this.showSepRight(currentData) + } + if (data.GroupID === "four-color") { + //智慧安监 点击四色图区域切换到对应风险类别 + const riskLeft = this.$refs.riskLeft as any + const {level} = currentData + riskLeft.levelType = String(level) + } + } + } + + public navChange(data: string) { + this.currentNav = data; + if (this.player) { + this.currentLayers = this.getCurrentLayers(); + if (data === 'dangrousCar'){ + this.player.api.camera.lookAt( + 13313315.84, + 4097949.12, + 100.07416015625, + 150,//镜头高度 + -40, + -45 + ) + }else{ + this.resetMap(); + } + + } + console.log('当前点击导航', data) + + } + + + public drawerChange(data) { + const fixedbtn = document.querySelector(".fixed-btn") as any; + const layerBth = document.querySelector(".layer-btn-box") as any; + const leftEl = document.querySelector(".left") as any; + const rightEl = document.querySelectorAll(".right") as any; + if (data) { + leftEl.classList.remove("animate__slideOutLeft"); + // rightEl.classList.remove("animate__slideOutRight"); + leftEl.classList.add("animate__slideInLeft"); + fixedbtn.style.right = "540px"; + layerBth.style.right = "440px"; + // rightEl.classList.add("animate__slideInRight"); + rightEl.forEach(item => { + item.classList.remove("animate__slideOutRight"); + item.classList.add("animate__slideInRight"); + }) + } else { + leftEl.classList.remove("animate__slideInLeft"); + // rightEl.classList.remove("animate__slideInRight"); + leftEl.classList.add("animate__slideOutLeft"); + fixedbtn.style.right = "140px"; + layerBth.style.right = "40px"; + // rightEl.classList.add("animate__slideOutRight"); + rightEl.forEach(item => { + item.classList.remove("animate__slideInRight"); + item.classList.add("animate__slideOutRight"); + }) + } + } + + public toggleHeight() { + this.openLayerDrawer = !this.openLayerDrawer; + } + + public toggleLayer(layer) { + if (this.lock) { + this.$message.error("视口未加载完成") + return + } + layer.selected = !layer.selected; + this.toggleLayerAssets(layer) + } + + //点击报警信息右侧交互动画 + public popDrawerChange(flag = false, className = '.main') { + this.$nextTick(() => { + const popEl = document.querySelector(className) as any; + if (!popEl) return + if (flag) { + popEl.classList.remove("animate__fadeInRight"); + setTimeout(() => { + popEl.classList.add("animate__fadeInRight"); + }, 10) + + } else { + popEl.classList.remove("animate__slideInRight"); + popEl.classList.add("animate__slideOutRight"); + } + }) + + } + + mounted() { + console.log(2) + } + + //获取点击的信息 + getItem(item) { + this.addWarnning(item) + } + + //处理信息 + deal() { + this.dialogVisible = true + } + + closePop() { + if (this.currentWanning) { + this.player.api.customObject.delete(this.currentWanning.id); + this.currentWanning = null + } + this.popFlag = false + } + + + + + + + + + //["peo","car","bounds"] + public getCurrentLayers(layer:string[] = []) { + const layers = [] as any; + // const currentNavLeyer = nav.find(item => item.value === this.currentNav)?.layers; + + const currentNavLeyer = layer; + this.layerData.forEach((item: any) => { + if (item.value === layer[0]){ + this.toggleLayer(item) + layers.push(item) + } + }) + return layers + } + + + //显示特殊作业右侧详情 + showSepRight(item) { + this.resetMap() + setTimeout(() => { + this.player.api.customObject.focus(item.id, 50, 2, null, 0, () => { + this.sepRightFlag = true + if (item) { + this.sepDetailData = item + } + this.popDrawerChange(true, '.main') + }) + this.player.api.polygon3d.focus(item.id, 50, 2) + }, 1000) + } + + //关闭特殊作业详情 + closeSepDetailRight() { + this.sepRightFlag = false + } + + //显示隐患详情 + showHiddenRight(item) { + console.log(item) + this.player.api.marker.focus(item.id, 10, 2) + this.showHiddenRightFlag = false + setTimeout(() => { + this.showHiddenRightFlag = true + this.riskFlag = false + this.riskDetailFlag = false + if (item) { + this.hiddenDetailData = item + } + this.popDrawerChange(true, '.main') + }) + + } + + //关闭特殊作业详情 + closeHiddenDetailRight() { + this.showHiddenRightFlag = false + } + + //隐患详情关联风险 + showRisk(item) { + this.showHiddenRightFlag = false + this.riskFlag = true + this.fromPage = 'hidden' + if (item) { + this.riskDetailData = item + } + } + + + destroyed() { + if (this.player) { + this.player = null + } + if (this.warnTimer) { + clearInterval(this.warnTimer); + this.warnTimer = null; + } + if (this.videoPlayer) { + this.videoPlayer.destory(); + } + } + + //展示人员详情 + emitPersonPop(item) { + this.resetMap(); + setTimeout(() => { + this.currentCarPeople = item; + this.player.api.customObject.focus(item.id, 50, 2, [0, 0, 0], 2); + setTimeout(() => { + this.bigPopTitle = '人员信息卡'; + this.dialogVisibleForBigPop = true + }, 2000) + }, 1000) + } + + //展示车辆详情 + emitCarPop(item) { + this.resetMap(); + setTimeout(() => { + this.currentCarPeople = item; + this.player.api.customObject.focus(item.id, 50, 2, [0, 0, 0], 2); + setTimeout(() => { + this.bigPopTitle = '车辆信息卡'; + this.dialogVisibleForBigPop = true + }, 2000) + }, 1000) + } + + // 打开摄像头 + openVideo(item) { + this.resetMap(); + const self = this; + setTimeout(() => { + this.player.api.marker.focus(item.id, 50, 2) + setTimeout(() => { + /* layer.open({ + type:1, + shade:0, + title:item.remark+"-"+ item.id, + content:`
+ +
` + }) */ + layer.open({ + type: 1, + shade: 0, + title: item.remark + "-" + item.id, + content: `
+ +
`, + success: function (layero, index) { + self.initVideo() + } + }) + /* setTimeout(()=>{ + this.initVideo() + },100)*/ + }, 2000) + }, 1000) + } + + openCompany(item) { + this.resetMap(); + setTimeout(() => { + this.player.api.polygon3d.focus(item.id, 100, 2, null, () => { + this.currentCompany = item; + }) + }, 1000) + } + + selectCompany(item) { + this.newPageData = item; + } + + + closeCarPersonPop() { + this.player.api.customObject.focus(this.currentCarPeople.id, 50, 2, null, 0, () => { + this.currentCarPeople = null; + }) + } + + //显示封闭园区右侧列表 + showList(item) { + this.dataListRight = item + this.rightListFlag = true + } + + //关闭封闭园区右侧列表 + closeRight() { + this.rightListFlag = false + this.dataListRight = {} + } + + //点击右侧柱状图 + clickBar(item) { + this.resetMap(); + setTimeout(() => { + this.player.api.marker.focus(item.id, 10, 2) + }, 1000) + + } + + //点击应急告警 + getEmergencyEvent(item) { + this.addEvent(item) + this.showConfirmFlag = false + this.judgmentFlag = false + this.info = item + // this.popFlag = true + // this.info = item + // this.popDrawerChange(true) + + } + + changePoint(item) { + this.addEvent(item) + } + + get showBackGround() { + let flag = this.currentNav === 'risk' && !this.riskFlag && !this.riskDetailFlag + return flag ? 'none' : '' + } + + showGoodsList(item) { + this.info = { + name: item.name, listTableData: [ + { + 'name': '穿戴式防爆照明灯', + 'type': '照明灯', + 'address': '仓库A', + 'total': 200, + 'num': 120 + }, + { + 'name': '消防斧', + 'type': '消防', + 'address': '仓库A', + 'total': 30, + 'num': 10 + }, + { + 'name': '穿戴式防爆照明灯', + 'type': '照明灯', + 'address': '仓库A', + 'total': 200, + 'num': 120 + }, + { + 'name': '消防斧', + 'type': '消防', + 'address': '仓库A', + 'total': 30, + 'num': 25 + }, { + 'name': '穿戴式防爆照明灯', + 'type': '照明灯', + 'address': '仓库A', + 'total': 200, + 'num': 160 + }, { + 'name': '消防斧', + 'type': '消防', + 'address': '仓库A', + 'total': 30, + 'num': 24 + }, { + 'name': '穿戴式防爆照明灯', + 'type': '照明灯', + 'address': '仓库A', + 'total': 200, + 'num': 190 + }, { + 'name': '消防斧', + 'type': '消防', + 'address': '仓库A', + 'total': 30, + 'num': 10 + }, { + 'name': '穿戴式防爆照明灯', + 'type': '照明灯', + 'address': '仓库A', + 'total': 200, + 'num': 120 + }, { + 'name': '消防斧', + 'type': '消防', + 'address': '仓库A', + 'total': 30, + 'num': 10 + }, { + 'name': '穿戴式防爆照明灯', + 'type': '照明灯', + 'address': '仓库A', + 'total': 200, + 'num': 120 + }, { + 'name': '消防斧', + 'type': '消防', + 'address': '仓库A', + 'total': 30, + 'num': 10 + }, + ] + } + this.storeGoodsFlag = true + } + + focusGood(item) { + // console.log(item) + this.player.api.customObject.focus(item.id) + } + + getCompany(item) { + console.log(item) + this.openCompany(item) + } + + + initVideo(videoObj = { + id: '1', + rtsp: "rtsp://admin:hbtkj666@192.168.1.139:554/Streaming/Channels/101" + }) { + if (flvjs.isSupported()) { + // let video = this.$refs.player; + let video = document.querySelector("#videoPlayer"); + if (video) { + this.videoPlayer = flvjs.createPlayer({ + type: "flv", + isLive: true, + url: `ws://192.168.1.66:8888/rtsp/${videoObj.id}/?url=${videoObj.rtsp}` + }); + this.videoPlayer.attachMediaElement(video); + try { + this.videoPlayer.load(); + this.videoPlayer.play(); + } catch (error) { + console.log(error); + } + ; + } + } + } + changeMore(e){ + console.log('showPop') + this.newPageData = e + } + openDuty(){ + this.newPageData = 'duty' + } + + closePage(){ + this.newPageData = null + } + openCalendar(){ + this.newPageData = 'calendar' + } + openPopVideo(item){ + const self = this; + layer.closeAll() + setTimeout(()=>{ + layer.open({ + type: 1, + shade: 0, + title: item.remark + "-" + item.id, + content: `
+ +
`, + success: function (layero, index) { + self.initVideo() + } + }) + },1000) + + + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..3bd8096 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,49 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "esnext", + "strict": true, + "jsx": "preserve", + "noImplicitThis": false, + "moduleResolution": "node", + "experimentalDecorators": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "useDefineForClassFields": true, + "strictPropertyInitialization":false, + "noImplicitAny":false, + "sourceMap": true, + "baseUrl": ".", + "types": [ + "webpack-env", + ], + "paths": { + "@/*": [ + "src/*" + ], + "~/*":[ + "public/*" + ] + + }, + "lib": [ + "esnext", + "dom", + "dom.iterable", + "scripthost" + ] + }, + "include": [ + "src/**/*.vue", + "src/**/*.ts", + "src/**/*.tsx", + "tests/**/*.ts", + "tests/**/*.tsx" + ], + "exclude": [ + "common", + "node_modules" + ] +} diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..95e6060 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,88 @@ +const { defineConfig } = require('@vue/cli-service') +const CompressionPlugin = require('compression-webpack-plugin') +const webpack = require("webpack"); +const path = require('path') +const resolve = (dir)=>{ + return path.join(__dirname, dir) +} +module.exports = defineConfig({ + publicPath: process.env.NODE_ENV === 'production' + ? process.env.VUE_APP_EXPOSES_URL + : './', + productionSourceMap:process.env.NODE_ENV!=="production", + transpileDependencies: true, + lintOnSave: true, // 在保存时校验格式 + runtimeCompiler:true, + css:{ + loaderOptions:{ + scss:{ + additionalData:`@import "@/assets/common/scss/hbt-base.scss";` + } + } + }, + configureWebpack: { + plugins: [ + new webpack.ProvidePlugin({ + $:"jquery", + jQuery:"jquery", + "window.jQuery":"jquery" + }), + // http://doc.hbt.vip/hbt-vue/other/faq.html#使用gzip解压缩静态文件 + new CompressionPlugin({ + cache: false, // 不启用文件缓存 + test: /\.(js|css|html)?$/i, // 压缩文件格式 + filename: '[path].gz[query]', // 压缩后的文件名 + algorithm: 'gzip', // 使用gzip压缩 + minRatio: 0.8 // 压缩率小于1才会压缩 + }) + ], + }, + chainWebpack: config => { + config.extensions = ['.js', '.ts','.scss', '.vue', '.html']; + + config.plugin('module-federation-plugin').use(require("webpack").container.ModuleFederationPlugin,[{ + name: "test", + filename: "test.js", + + /* remotes: { + common:`common@${process.env.VUE_APP_REMOTES_URL}/common.js` + },*/ + shared:require("./package.json").dependencies, + }]); + config.module + .rule("html") + .test(/\.html$/) + .use('html-loader') + .loader('html-loader')//预读,识别html文件 + .end() + // set svg-sprite-loader + config.module + .rule('svg') + .exclude.add(resolve('src/assets')) + .end() + config.module + .rule('icons') + .test(/\.svg$/) + .include.add(resolve('src/assets')) + .end() + .use('svg-sprite-loader') + .loader('svg-sprite-loader') + .options({ + symbolId: 'icon-[name]' + }) + .end() + }, + devServer: { + proxy: { + // detail: https://cli.vuejs.org/config/#devserver-proxy + [process.env.VUE_APP_BASE_API_URL]: { + target: `http://119.45.158.12:8081`, + changeOrigin: true, + pathRewrite: { + ['^' + process.env.VUE_APP_BASE_API_URL]: '' + } + } + }, + // disableHostCheck: true + }, +})