(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"034e":function(t,e,a){"use strict";a.r(e);var i=a("2945"),r=a("2777");for(var n in r)"default"!==n&&function(t){a.d(e,t,function(){return r[t]})}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=l.exports},"055e":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("17a7")),r=n(a("c2ea"));function n(t){return t&&t.__esModule?t:{default:t}}var o={components:{weatherCalendarCardList40:r.default},data:function(){return{scrollposition_uCharts:0,scrollposition_list:0,address:"",option:"",isCard:!1,cWidth:"",cHeight:"",pixelRatio:1,weatherProphetData_40:[{id:"238466634",recodedata:"2020/02/25 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/02/26 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-10",realfeel1:"8",precipitation1:"0",winddrection1:"0",speed1:"6",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/02/27 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"10",realfeel1:"7",precipitation1:"0",winddrection1:"0",speed1:"2",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/02/28 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"12",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"10",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/02/29 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"15",realfeel1:"13",precipitation1:"0",winddrection1:"0",speed1:"12",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/01 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/02 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/03 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/04 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/05 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/06 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/06 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/07 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/08 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/09 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/10 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/11 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/12 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/13 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/14 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/15 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/16 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/17 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/18 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/19 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/20 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/21 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/22 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/23 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/24 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/25 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/26 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/27 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/28 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/29 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/30 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/03/31 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/04/01 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/04/02 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"},{id:"238466634",recodedata:"2020/04/03 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"}],weatherProphetDataAll_40:[],startDate:"",endDate:"",realFeelFlag:!0,temperatureFlag:!1,speedFlag:!1,tabCur:0,mainCur:0,windPowerStationId:"MHS_FDC"}},created:function(){this.address=this.getWindPowerStationNameToSessionStorage(),this.getWeatherData()},onShow:function(){this.address=this.getWindPowerStationNameToSessionStorage()},methods:{pushWindPowerStationNameToSessionStorage:function(t){uni.setStorageSync("windpowerstationName",t)},getWindPowerStationNameToSessionStorage:function(){return uni.getStorageSync("windpowerstationName"),uni.getStorageSync("windpowerstationName")},realFeelSwitch:function(){this.realFeelFlag=!0,this.temperatureFlag=!1,this.speedFlag=!1,this.getServerData()},temperatureSwitch:function(){this.realFeelFlag=!1,this.temperatureFlag=!0,this.speedFlag=!1,this.getServerData()},speedSwitch:function(){this.realFeelFlag=!1,this.temperatureFlag=!1,this.speedFlag=!0,this.getServerData()},getWeatherData:function(){var e=this,a=this;this.socketTask=uni.connectSocket({url:"ws://49.4.78.143:8081/websocket/pageNumber_5/functionNumber_1",success:function(e){t("log","websocket连接成功"," at pages\\weatherProphet40\\WeatherProphet40.vue:1165")}}),this.socketTask.onOpen(function(i){t("log","WebSocket连接正常打开中...!"," at pages\\weatherProphet40\\WeatherProphet40.vue:1171"),e.is_open_socket=!0,e.socketTask.onMessage(function(t){a.weatherProphetDataAll_40=t.data,a.weatherProphetDataAll_40=JSON.parse(t.data),a.weatherProphetData_40=[];for(var e=0;e237?this.scrollposition_list=104:t.detail.scrollLeft<737&&t.detail.scrollLeft>487?this.scrollposition_list=208:t.detail.scrollLeft<987&&t.detail.scrollLeft>737?this.scrollposition_list=312:t.detail.scrollLeft<1237&&t.detail.scrollLeft>987?this.scrollposition_list=416:t.detail.scrollLeft<1487&&t.detail.scrollLeft>1237?this.scrollposition_list=520:t.detail.scrollLeft<1737&&t.detail.scrollLeft>1487?this.scrollposition_list=624:t.detail.scrollLeft>1737&&(this.scrollposition_list=656)},listScrollEvent:function(t){this.scrollposition_list=t.detail.scrollTop,t.detail.scrollTop<104?this.scrollposition_uCharts=0:t.detail.scrollTop<208&&t.detail.scrollTop>104?this.scrollposition_uCharts=237:t.detail.scrollTop<312&&t.detail.scrollTop>208?this.scrollposition_uCharts=487:t.detail.scrollTop<416&&t.detail.scrollTop>312?this.scrollposition_uCharts=737:t.detail.scrollTop<520&&t.detail.scrollTop>416?this.scrollposition_uCharts=987:t.detail.scrollTop<624&&t.detail.scrollTop>520?this.scrollposition_uCharts=1237:t.detail.scrollTop<656&&t.detail.scrollTop>624&&(this.scrollposition_uCharts=1487)},closeSocket:function(){this.socket.onclose},openSocket:function(){this.socket.onOpen}},onLoad:function(){this.cWidth=uni.upx2px(5e3),this.cHeight=uni.upx2px(350),this.address=this.getWindPowerStationNameToSessionStorage()}};e.default=o}).call(this,a("0de9")["default"])},"0916":function(t,e,a){"use strict";var i={weatherCalendarCardList40:a("c2ea").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{attrs:{_i:1},on:{click:function(e){return t.common.navTo("/components/addressSelect/AddressSelect?option="+t.address)}}},[a("cu-custom",{attrs:{bgColor:"bg-gradual-earkblue",isBack:!1,_i:2}},[a("template",{slot:"backText"},[a("view")]),a("template",{slot:"content"},[a("text",{class:t._$s(6,"c","cuIcon-locationfill"),attrs:{_i:6}})]),a("template",{slot:"content"},[t._v(t._$s(7,"t0-0",t._s(t.address)))]),a("template",{slot:"content"},[a("image",{})])],2)],1),a("view",{staticClass:t._$s(10,"sc","cu-card case"),class:t._$s(10,"c",t.isCard?"no-card":""),attrs:{_i:10}},[a("view",{staticClass:t._$s(11,"sc","cardContenter"),attrs:{_i:11}},[a("view",{staticClass:t._$s(12,"sc","dateAndChoice"),attrs:{_i:12}},[a("view",{staticClass:t._$s(13,"sc","date"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.startDate))+t._$s(13,"t0-1",t._s(t.endDate)))]),a("view",{staticClass:t._$s(14,"sc","choice"),attrs:{_i:14}},[a("div",{class:t._$s(15,"c",[1==t.realFeelFlag?"realFeelButtonWhite":"realFeelButtonBlack"]),attrs:{_i:15},on:{click:function(e){return t.realFeelSwitch()}}}),a("div",{class:t._$s(16,"c",[1==t.temperatureFlag?"temperatureButtonWhite":"temperatureButtonBlack"]),attrs:{_i:16},on:{click:function(e){return t.temperatureSwitch()}}}),a("div",{class:t._$s(17,"c",[1==t.speedFlag?"speedButtonWhite":"speedButtonBlack"]),attrs:{_i:17},on:{click:function(e){return t.speedSwitch()}}})])]),a("scroll-view",{staticClass:t._$s(18,"sc","scrollUcharts"),attrs:{"scroll-left":t._$s(18,"a-scroll-left",t.scrollposition_uCharts),"scroll-into-view":t._$s(18,"a-scroll-into-view","uCharts-"+t.mainCur),_i:18},on:{scroll:t.uChartsScrollEvent}},[a("view",{staticClass:t._$s(19,"sc","qiun-charts"),attrs:{_i:19}},[a("canvas",{staticClass:t._$s(20,"sc","charts"),attrs:{id:"canvasLineA",_i:20}})])])])]),a("scroll-view",{staticClass:t._$s(21,"sc","scrollList"),attrs:{"scroll-top":t._$s(21,"a-scroll-top",t.scrollposition_list),_i:21},on:{scroll:t.listScrollEvent}},[a("weatherCalendarCardList40",{ref:"weatherCalendarCardList40",attrs:{_i:22}})],1)])},n=[];a.d(e,"b",function(){return r}),a.d(e,"c",function(){return n}),a.d(e,"a",function(){return i})},"0de9":function(t,e,a){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function n(){for(var t=arguments.length,e=new Array(t),a=0;a1){var l=o.pop();s=o.join("---COMMA---"),0===l.indexOf(" at ")?s+=l:s+="---COMMA---"+l}else s=o[0];console[n](s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},"0ede":function(t,e,a){"use strict";a.r(e);var i=a("9051"),r=a("1f95");for(var n in r)"default"!==n&&function(t){a.d(e,t,function(){return r[t]})}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=l.exports},"11a1":function(t,e,a){"use strict";a.r(e);var i=a("420b"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,function(){return i[t]})}(n);e["default"]=r.a},"15d8":function(t,e,a){"use strict";var i,r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{staticClass:t._$s(1,"sc","fixed"),attrs:{_i:1}},[a("cu-custom",{attrs:{bgColor:"bg-gradual-earkblue",isBack:!0,_i:2}},[a("template",{slot:"backText"},[a("view")]),a("template",{slot:"content"},[a("text",{class:t._$s(6,"c","cuIcon-locationfill"),attrs:{_i:6}})]),a("template",{slot:"content"},[t._v(t._$s(7,"t0-0",t._s(t.address)))]),a("template",{slot:"content"},[a("image",{})])],2)],1),a("view",{staticClass:t._$s(10,"sc","VerticalBox"),attrs:{_i:10}},[a("scroll-view",{staticClass:t._$s(11,"sc","VerticalNav nav "),attrs:{"scroll-top":t._$s(11,"a-scroll-top",t.verticalNavTop),_i:11}},t._l(t._$s(12,"f",{forItems:t.adresslist}),function(e,i,r,n){return a("view",{key:t._$s(12,"f",{forIndex:r,key:i}),staticClass:t._$s("12-"+n,"sc","cu-item"),class:t._$s("12-"+n,"c",i==t.tabCur?"text-green cur":""),attrs:{"data-id":t._$s("12-"+n,"a-data-id",i),_i:"12-"+n},on:{click:t.TabSelect}},[t._v(t._$s("12-"+n,"t0-0",t._s(e.name)))])}),0),a("scroll-view",{staticClass:t._$s(13,"sc","VerticalMain"),attrs:{"scroll-into-view":t._$s(13,"a-scroll-into-view","main-"+t.mainCur),_i:13},on:{scroll:t.VerticalMain}},t._l(t._$s(14,"f",{forItems:t.adresslist}),function(e,i,r,n){return a("view",{key:t._$s(14,"f",{forIndex:r,key:i}),staticClass:t._$s("14-"+n,"sc","padding-top padding-lr"),attrs:{id:t._$s("14-"+n,"a-id","main-"+i),_i:"14-"+n}},[t._$s("15-"+n,"i","吉林"==e.name)?a("div",[a("view",{staticClass:t._$s("16-"+n,"sc","cu-bar bg-white"),attrs:{_i:"16-"+n}},[a("view",{staticClass:t._$s("17-"+n,"sc","action"),attrs:{_i:"17-"+n}},[a("text",{staticClass:t._$s("18-"+n,"sc","cuIcon-title text-green"),attrs:{_i:"18-"+n}}),t._v(t._$s("17-"+n,"t1-0",t._s(e.name)))])]),a("view",{staticClass:t._$s("19-"+n,"sc","cu-list menu-avatar "),attrs:{_i:"19-"+n}},[a("view",{staticClass:t._$s("20-"+n,"sc","cu-item"),style:t._$s("20-"+n,"s",{height:e.height+"upx"}),attrs:{_i:"20-"+n}},[a("view",{staticClass:t._$s("21-"+n,"sc","row"),attrs:{_i:"21-"+n}},t._l(t._$s("22-"+n,"f",{forItems:e.item}),function(e,i,r,o){return a("view",{key:t._$s("22-"+n,"f",{forIndex:r,key:i}),staticClass:t._$s("22-"+n+"-"+o,"sc","col-8"),attrs:{_i:"22-"+n+"-"+o},on:{click:function(a){return t.pushWindPowerStationNameToSessionStorage(e.title)}}},[a("a",[t._v(t._$s("23-"+n+"-"+o,"t0-0",t._s(e.address)))]),a("a",[t._v(t._$s("24-"+n+"-"+o,"t0-0",t._s(e.title)))])])}),0)])])]):t._e(),t._$s("25-"+n,"i","吉林"!=e.name)?a("div",[a("view",{staticClass:t._$s("26-"+n,"sc","cu-bar bg-white"),attrs:{_i:"26-"+n}},[a("view",{staticClass:t._$s("27-"+n,"sc","action"),attrs:{_i:"27-"+n}},[a("text",{staticClass:t._$s("28-"+n,"sc","cuIcon-title text-green"),attrs:{_i:"28-"+n}}),t._v(t._$s("27-"+n,"t1-0",t._s(e.name)))])]),a("view",{staticClass:t._$s("29-"+n,"sc","cu-list menu-avatar "),attrs:{_i:"29-"+n}},[a("view",{staticClass:t._$s("30-"+n,"sc","cu-item"),style:t._$s("30-"+n,"s",{height:e.height+"upx"}),attrs:{_i:"30-"+n}},[a("view",{staticClass:t._$s("31-"+n,"sc","row"),attrs:{_i:"31-"+n}},t._l(t._$s("32-"+n,"f",{forItems:e.item}),function(e,i,r,o){return a("view",{key:t._$s("32-"+n,"f",{forIndex:r,key:i}),staticClass:t._$s("32-"+n+"-"+o,"sc","col-8"),attrs:{_i:"32-"+n+"-"+o},on:{click:function(a){return t.pushWindPowerStationNameToSessionStorage(e.title)}}},[a("a",[t._v(t._$s("33-"+n+"-"+o,"t0-0",t._s(e.address)))]),a("a",[t._v(t._$s("34-"+n+"-"+o,"t0-0",t._s(e.title)))]),a("br")])}),0)])])]):t._e()])}),0)])])},n=[];a.d(e,"b",function(){return r}),a.d(e,"c",function(){return n}),a.d(e,"a",function(){return i})},"15dd":function(t,e,a){"use strict";a.r(e);var i=a("9b6a"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,function(){return i[t]})}(n);e["default"]=r.a},1690:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("a34a")),r=n(a("a9b5"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,a,i,r,n,o){try{var s=t[n](o),l=s.value}catch(c){return void a(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function s(t){return function(){var e=this,a=arguments;return new Promise(function(i,r){var n=t.apply(e,a);function s(t){o(n,i,r,s,l,"next",t)}function l(t){o(n,i,r,s,l,"throw",t)}s(void 0)})}}var l={components:{weatherCalendarCard40:r.default},data:function(){return{width:"",height:"",weatherProphetData_40:[],classNameWeatherBackgroundColor:"threeGradeBlue",weatherIcons:[],classNameWeatherIconWhite:[]}},methods:{getWeatherData:function(t,e,a){this.width=t,this.height=e,this.weatherProphetData_40=a,this.weatherIcons=[];for(var i=0;i1?e-1:0),i=1;it.end.x||e.end.xt.start.y||e.start.y=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=o-n&&(s=n-o,t.event.trigger("scrollRight")),s}function c(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t=e&&t<=a}function h(t,e,a){var i=t,r=a-e,n=i+(a-r-i)/Math.sqrt(2);n*=-1;var o=(a-r)*(Math.sqrt(2)-1)-(a-r-i)/Math.sqrt(2);return{transX:n,transY:o}}function u(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}var i=.2,r=.2,n=null,o=null,s=null,l=null;if(e<1?(n=t[0].x+(t[1].x-t[0].x)*i,o=t[0].y+(t[1].y-t[0].y)*i):(n=t[e].x+(t[e+1].x-t[e-1].x)*i,o=t[e].y+(t[e+1].y-t[e-1].y)*i),e>t.length-3){var c=t.length-1;s=t[c].x-(t[c].x-t[c-1].x)*r,l=t[c].y-(t[c].y-t[c-1].y)*r}else s=t[e+1].x-(t[e+2].x-t[e].x)*r,l=t[e+1].y-(t[e+2].y-t[e].y)*r;return a(t,e+1)&&(l=t[e+1].y),a(t,e)&&(o=t[e].y),(o>=Math.max(t[e].y,t[e+1].y)||o<=Math.min(t[e].y,t[e+1].y))&&(o=t[e].y),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e+1].y),{ctrA:{x:n,y:o},ctrB:{x:s,y:l}}}function d(t,e,a){return{x:a.x+t,y:a.y-e}}function p(t,e){if(e)while(r.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0?t.start.y++:t.start.y>0?t.start.y++:t.start.y--;return t}function f(t,e,a){var i=0;return t.map(function(t){if(t.color||(t.color=a.colors[i],i=(i+1)%a.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t})}function g(t,e){var a=0,i=e-t;return a=i>=1e4?1e3:i>=1e3?100:i>=100?10:i>=10?5:i>=1?1:i>=.1?.1:i>=.01?.01:i>=.001?.001:i>=1e-4?1e-4:i>=1e-5?1e-5:1e-6,{minRange:o(t,"lower",a),maxRange:o(e,"upper",a)}}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.fontSize;t=String(t);t=t.split("");for(var i=0,r=0;r4&&void 0!==arguments[4]?arguments[4]:{},n=t.map(function(t){var e=[];return e=i||t.data,{text:r.format?r.format(t,e[a]):t.name+": "+t.data,color:t.color}}),o=[],s={x:0,y:0},l=0;l4&&void 0!==arguments[4]?arguments[4]:{},n=t.map(function(t){return{text:r.format?r.format(t,i[a]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}});n=n.filter(function(t){if(!0!==t.disableLegend)return t});for(var o=[],s={x:0,y:0},l=0;l6&&void 0!==arguments[6]&&arguments[6];var o=n.color.upFill,s=n.color.downFill,l=[o,o,s,o],c=[],h={text:r[i],color:null};c.push(h),e.map(function(e){0==i&&e.data[1]-e.data[0]<0?l[1]=s:(e.data[0]t[i-1][1]&&(l[2]=o),e.data[3]4&&void 0!==arguments[4]?arguments[4]:0,n=-1,o=0,s=[],l=0;le&&(n=a)}),n}function I(t,e,a){var i=-1;if(F(t,e.area)){for(var r=e.points,n=-1,o=0,s=r.length;oh[0]&&t.xh[1]&&t.ye.start.x&&t.xe.start.y&&t.y=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function k(t,e,a){var i=2*Math.PI/a,r=-1;if(R(t,e.center,e.radius)){var n=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map(function(t){return t=n(-1*t),t});s.forEach(function(t,e){var a=n(t-i/2),s=n(t+i/2);s=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(r=e)})}return r}function $(t,e){for(var a=-1,i=0,r=e.series.length;in.funnelArea[0]&&t.xn.funnelArea[1]&&t.yn.area[0]&&t.xn.area[1]&&t.ye.width-e.padding[1]-e.padding[3]?(u.push(f),p.push(d-e.legend.itemGap),d=w,f=[_]):(d+=w,f.push(_))}if(f.length){u.push(f),p.push(d-e.legend.itemGap),r.widthArr=p;var v=Math.max.apply(null,p);switch(e.legend.float){case"left":r.area.start.x=e.padding[3],r.area.end.x=e.padding[3]+2*n;break;case"right":r.area.start.x=e.width-e.padding[1]-v-2*n,r.area.end.x=e.width-e.padding[1];break;default:r.area.start.x=(e.width-v)/2-n,r.area.end.x=(e.width+v)/2+n}r.area.width=v+2*n,r.area.wholeWidth=v+2*n,r.area.height=u.length*h+2*n,r.area.wholeHeight=u.length*h+2*n+2*o,r.points=u}}else{var x=t.length,y=e.height-e.padding[0]-e.padding[2]-2*o-2*n,S=Math.min(Math.floor(y/h),x);switch(r.area.height=S*h+2*n,r.area.wholeHeight=S*h+2*n,e.legend.float){case"top":r.area.start.y=e.padding[0]+o,r.area.end.y=e.padding[0]+o+r.area.height;break;case"bottom":r.area.start.y=e.height-e.padding[2]-o-r.area.height,r.area.end.y=e.height-e.padding[2]-o;break;default:r.area.start.y=(e.height-r.area.height)/2,r.area.end.y=(e.height+r.area.height)/2}for(var b=x%S===0?x/S:Math.floor(x/S+1),C=[],D=0;DF&&(F=k)}r.widthArr.push(F),r.heightArr.push(I.length*h+2*n)}for(var $=0,L=0;Li&&(r.angle=45*Math.PI/180,r.xAxisHeight=2*a.xAxisTextPadding+o*Math.sin(r.angle)),r}function E(t,e,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,r=_(t),n=[];r=r.filter(function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t}),r.map(function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map(function(t){n.push(t)}):n.push(t[0]):n.push(t.value):n.push(t)});var o=0,s=0;if(n.length>0&&(o=Math.min.apply(this,n),s=Math.max.apply(this,n)),i>-1?("number"===typeof e.xAxis.data[i].min&&(o=Math.min(e.xAxis.data[i].min,o)),"number"===typeof e.xAxis.data[i].max&&(s=Math.max(e.xAxis.data[i].max,s))):("number"===typeof e.xAxis.min&&(o=Math.min(e.xAxis.min,o)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),o===s){var l=s||10;s+=l}for(var c=g(o,s),h=c.minRange,u=c.maxRange,d=[],p=(u-h)/e.xAxis.splitNumber,f=0;f<=e.xAxis.splitNumber;f++)d.push(h+p*f);return d}function H(t,e,a){var i={angle:0,xAxisHeight:a.xAxisHeight};i.ranges=E(t,e,a),i.rangesFormat=i.ranges.map(function(t){return t=e.xAxis.format?e.xAxis.format(t):r.toFixed(t,2),t});var n=i.ranges.map(function(t){return t=r.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t});i=Object.assign(i,Z(n,e,a));var o=i.eachSpacing,s=n.map(function(t){return m(t)}),l=Math.max.apply(this,s);return l+2*a.xAxisTextPadding>o&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+l*Math.sin(i.angle)),!0===e.xAxis.disabled&&(i.xAxisHeight=0),i}function z(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,_(i))),l=[],c=function(r){var o=i[r],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach(function(i,r){var o={};o.angle=t[r],o.proportion=i/s,o.position=d(a*o.proportion*n*Math.cos(o.angle),a*o.proportion*n*Math.sin(o.angle),e),c.data.push(o)}),l.push(c)},h=0;h2&&void 0!==arguments[2]?arguments[2]:1,i=0,r=0,n=0;n2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort(function(t,e){return parseInt(e.data)-parseInt(t.data)});for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:1,n=0,o=0,s=[],l=0;l2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(r._proportion_=r._proportion_%2)}return t}function U(t,e,a){for(var i=e-a+1,r=e,n=0;n=2&&(t[n]._endAngle_=t[n]._endAngle_%2),r=t[n]._endAngle_;return t}function X(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r=a.oldData?n._proportion_=(n._endAngle_-n._oldAngle_)*i+a.oldAngle:n._proportion_=n._oldAngle_-(n._oldAngle_-n._endAngle_)*i,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function J(t){t=j(t);for(var e=0,a=0;a0&&(t.width=Math.min(t.width,+n.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*t.width,t)})}function Y(t,e,a,i,r,n,o){return t.map(function(t){return null===t?null:(t.width=Math.ceil((e-2*r.columePadding)/2),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),i>0&&(t.width-=2*o),t)})}function K(t,e,a,i,r,n,o){return t.map(function(t,a){return null===t?null:(t.width=Math.ceil((e-2*r.columePadding)/2),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),t)})}function Z(t,e,a){var i=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var n=i/r,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach(function(t,e){o.push(s+e*n)}),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*n):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:n}}function tt(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=n.height-n.area[0]-n.area[2];return t.forEach(function(t,o){if(null===t)l.push(null);else{var h=[];t.forEach(function(t,l){var u={};u.x=i[o]+Math.round(r/2);var d=t.value||t,p=c*(d-e)/(a-e);p*=s,u.y=n.height-Math.round(p)-n.area[2],h.push(u)}),l.push(h)}}),l}function et(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=n.type&&"area"!=n.type||(l=n.xAxis.boundaryGap);var c=[],h=n.height-n.area[0]-n.area[2],u=n.width-n.area[1]-n.area[3];return t.forEach(function(t,o){if(null===t)c.push(null);else{var d={};d.color=t.color,d.x=i[o];var p,f,g,m=t;if("object"===typeof t&&null!==t)if(t.constructor==Array)p=[].concat(n.chartData.xAxisData.ranges),f=p.shift(),g=p.pop(),m=t[1],d.x=n.area[3]+u*(t[0]-f)/(g-f);else m=t.value;"center"==l&&(d.x+=Math.round(r/2));var _=h*(m-e)/(a-e);_*=s,d.y=n.height-Math.round(_)-n.area[2],c.push(d)}}),c}function at(t,e,a,i,r,n,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],u=n.height-n.area[0]-n.area[2];return t.forEach(function(t,o){if(null===t)h.push(null);else{var d={};if(d.color=t.color,d.x=i[o]+Math.round(r/2),s>0){for(var p=0,f=0;f<=s;f++)p+=l[f].data[o];var g=p-t,m=u*(p-e)/(a-e),_=u*(g-e)/(a-e)}else p=t,m=u*(p-e)/(a-e),_=0;var w=_;m*=c,w*=c,d.y=n.height-Math.round(m)-n.area[2],d.y0=n.height-Math.round(w)-n.area[2],h.push(d)}}),h}function it(t,e,a,i){var r,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==i?w(t,e.categories.length):_(t);var o=[];r=r.filter(function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t}),r.map(function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map(function(t){o.push(t)}):o.push(t[1]):o.push(t.value):o.push(t)});var s=0,l=0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),n>-1?("number"===typeof e.yAxis.data[n].min&&(s=Math.min(e.yAxis.data[n].min,s)),"number"===typeof e.yAxis.data[n].max&&(l=Math.max(e.yAxis.data[n].max,l))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l))),s===l){var c=l||10;l+=c}for(var h=g(s,l),u=h.minRange,d=h.maxRange,p=[],f=(d-u)/e.yAxis.splitNumber,m=0;m<=e.yAxis.splitNumber;m++)p.push(u+f*m);return p.reverse()}function rt(t,e,a){var n=i({},{type:""},e.extra.column),o=e.yAxis.data.length,s=new Array(o);if(o>0){for(var l=0;l=2&&(h%=2),u+=c}}function dt(t,e,a,i,n,o){var s=i.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach(function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},h=d(c.x,c.y,a),u=h.x,p=h.y;r.approximatelyEqual(c.x,0)?u-=m(i.categories[l]||"")/2:c.x<0&&(u-=m(i.categories[l]||"")),o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(s.labelColor||"#666666"),o.fillText(i.categories[l]||"",u,p+n.fontSize/2),o.closePath(),o.stroke()})}function pt(t,e,a,i,n,o){for(var s=a.pieChartLinePadding,l=[],c=null,h=t.map(function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):r.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var a=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),i=t.color,n=t._radius_;return{arc:a,text:e,color:i,radius:n,textColor:t.textColor,textSize:t.textSize}}),u=0;u=0?g+a.pieChartTextPadding:g-a.pieChartTextPadding,y=_,S=m(f.text,f.textSize||a.fontSize),b=y;c&&r.isSameXCoordinateArea(c.start,{x:x})&&(b=x>0?Math.min(y,c.start.y):g<0?Math.max(y,c.start.y):y>0?Math.max(y,c.start.y):Math.min(y,c.start.y)),x<0&&(x-=S);var C={lineStart:{x:w,y:v},lineEnd:{x:g,y:_},start:{x:x,y:b},width:S,height:a.fontSize,text:f.text,color:f.color,textColor:f.textColor,textSize:f.textSize};c=p(C,c),l.push(c)}for(var D=0;Da.width&&(p=!0),_+e.y>a.height&&(e.y=a.height-_),o.beginPath(),o.setFillStyle(n(c.bgColor||r.toolTipBackground,c.bgOpacity||r.toolTipOpacity)),p?(o.moveTo(e.x,e.y+10*a.pixelRatio),o.lineTo(e.x-d,e.y+10*a.pixelRatio-5*a.pixelRatio),o.lineTo(e.x-d,e.y),o.lineTo(e.x-d-Math.round(g),e.y),o.lineTo(e.x-d-Math.round(g),e.y+_),o.lineTo(e.x-d,e.y+_),o.lineTo(e.x-d,e.y+10*a.pixelRatio+5*a.pixelRatio),o.lineTo(e.x,e.y+10*a.pixelRatio)):(o.moveTo(e.x,e.y+10*a.pixelRatio),o.lineTo(e.x+d,e.y+10*a.pixelRatio-5*a.pixelRatio),o.lineTo(e.x+d,e.y),o.lineTo(e.x+d+Math.round(g),e.y),o.lineTo(e.x+d+Math.round(g),e.y+_),o.lineTo(e.x+d,e.y+_),o.lineTo(e.x+d,e.y+10*a.pixelRatio+5*a.pixelRatio),o.lineTo(e.x,e.y+10*a.pixelRatio)),o.closePath(),o.fill(),t.forEach(function(t,a){if(null!==t.color){o.beginPath(),o.setFillStyle(t.color);var i=e.x+d+2*r.toolTipPadding,n=e.y+(r.toolTipLineHeight-r.fontSize)/2+r.toolTipLineHeight*a+r.toolTipPadding+1;p&&(i=e.x-g-d+2*r.toolTipPadding),o.fillRect(i,n,h,r.fontSize),o.closePath()}}),t.forEach(function(t,a){var i=e.x+d+2*r.toolTipPadding+h+u;p&&(i=e.x-g-d+2*r.toolTipPadding+ +h+u);var n=e.y+(r.toolTipLineHeight-r.fontSize)/2+r.toolTipLineHeight*a+r.toolTipPadding;o.beginPath(),o.setFontSize(r.fontSize),o.setFillStyle(c.fontColor),o.fillText(t.text,i,n+r.fontSize),o.closePath(),o.stroke()}))}function vt(t,e,a,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=i({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),h=[];r.save();var u=-2,d=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),u=Math.floor(-e._scrollDistance_/l)-2,d=u+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&_t(e.tooltip.offset.x,e,a,r,l),t.forEach(function(i,o){var p,f,g;p=[].concat(e.chartData.yAxisData.ranges[i.index]),f=p.pop(),g=p.shift();var m=i.data;switch(c.type){case"group":var _=et(m,f,g,s,l,e,a,n),w=at(m,f,g,s,l,e,a,o,t,n);h.push(w),_=V(_,l,t.length,o,a,e);for(var v=0;v<_.length;v++){var x=_[v];if(null!==x&&v>u&&vu&&b0&&(S-=D),r.moveTo(y,C.y),r.fillRect(y,C.y,C.width-2,S),r.closePath(),r.fill()}}break;case"meter":_=et(m,f,g,s,l,e,a,n);if(h.push(_),_=Y(_,l,t.length,o,a,e,c.meter.border),0==o)for(var P=0;P<_.length;P++){var T=_[P];if(null!==T&&P>u&&P0&&(r.beginPath(),r.setStrokeStyle(i.color),r.setLineWidth(c.meter.border*e.pixelRatio),r.moveTo(y+.5*c.meter.border,T.y+S),r.lineTo(y+.5*c.meter.border,T.y+.5*c.meter.border),r.lineTo(y+T.width-.5*c.meter.border,T.y+.5*c.meter.border),r.lineTo(y+T.width-.5*c.meter.border,T.y+S),r.stroke())}}else for(var I=0;I<_.length;I++){var F=_[I];if(null!==F&&I>u&&I5&&void 0!==arguments[5]?arguments[5]:1,s=i({},{color:{},average:{}},a.extra.candle);s.color=i({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=i({},{show:!1,name:[],day:[],color:r.colors},s.average),a.extra.candle=s;var l=a.chartData.xAxisData,c=l.xAxisPoints,h=l.eachSpacing,d=[];n.save();var p=-2,f=c.length+2,g=0,m=a.width+h;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(n.translate(a._scrollDistance_,0),p=Math.floor(-a._scrollDistance_/h)-2,f=p+a.xAxis.itemCount+4,g=-a._scrollDistance_-h+a.area[3],m=g+(a.xAxis.itemCount+4)*h),s.average.show&&e.forEach(function(t,e){var i,s,l;i=[].concat(a.chartData.yAxisData.ranges[t.index]),s=i.pop(),l=i.shift();for(var d=t.data,p=et(d,s,l,c,h,a,r,o),f=W(p),_=0;_g&&(n.moveTo(y.x,y.y),v=1),x>0&&y.x>g&&y.xp&&w0?(n.setStrokeStyle(s.color.upLine),n.setFillStyle(s.color.upFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(v[3].x,v[3].y),n.lineTo(v[1].x,v[1].y),n.lineTo(v[1].x-h/4,v[1].y),n.lineTo(v[0].x-h/4,v[0].y),n.lineTo(v[0].x,v[0].y),n.lineTo(v[2].x,v[2].y),n.lineTo(v[0].x,v[0].y),n.lineTo(v[0].x+h/4,v[0].y),n.lineTo(v[1].x+h/4,v[1].y),n.lineTo(v[1].x,v[1].y),n.moveTo(v[3].x,v[3].y)):(n.setStrokeStyle(s.color.downLine),n.setFillStyle(s.color.downFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(v[3].x,v[3].y),n.lineTo(v[0].x,v[0].y),n.lineTo(v[0].x-h/4,v[0].y),n.lineTo(v[1].x-h/4,v[1].y),n.lineTo(v[1].x,v[1].y),n.lineTo(v[2].x,v[2].y),n.lineTo(v[1].x,v[1].y),n.lineTo(v[1].x+h/4,v[1].y),n.lineTo(v[0].x+h/4,v[0].y),n.lineTo(v[0].x,v[0].y),n.moveTo(v[3].x,v[3].y)),n.closePath(),n.fill(),n.stroke()}}),n.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:h}}function yt(t,e,a,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=i({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,c=l.xAxisPoints,h=l.eachSpacing,d=e.height-e.area[2],p=[];r.save();var f=0,g=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),f=-e._scrollDistance_-h+e.area[3],g=f+(e.xAxis.itemCount+4)*h),t.forEach(function(t,i){var l,m,_;l=[].concat(e.chartData.yAxisData.ranges[t.index]),m=l.pop(),_=l.shift();var w=t.data,v=et(w,m,_,c,h,e,a,o);p.push(v);for(var x=W(v),y=0;y1){var C=S[0],D=S[S.length-1];r.moveTo(C.x,C.y);var P=0;if("curve"===s.type)for(var T=0;Tf&&(r.moveTo(I.x,I.y),P=1),T>0&&I.x>f&&I.xf&&(r.moveTo(k.x,k.y),P=1),A>0&&k.x>f&&k.xf&&(r.moveTo(R.x,R.y),M=1),N>0&&R.x>f&&R.xf&&(r.moveTo(E.x,E.y),M=1),O>0&&E.x>f&&E.x4&&void 0!==arguments[4]?arguments[4]:1,o=i({},{type:"straight",width:2},e.extra.line);o.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,h=[];r.save();var d=0,p=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),d=-e._scrollDistance_-c+e.area[3],p=d+(e.xAxis.itemCount+4)*c),t.forEach(function(t,i){var s,f,g;s=[].concat(e.chartData.yAxisData.ranges[t.index]),f=s.pop(),g=s.shift();var m=t.data,_=et(m,f,g,l,c,e,a,n);h.push(_);var w=W(_);if("dash"==t.lineType){var v=t.dashLength?t.dashLength:8;v*=e.pixelRatio,r.setLineDash([v,v])}r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(o.width),w.forEach(function(t,e){if(1===t.length)r.moveTo(t[0].x,t[0].y),r.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{r.moveTo(t[0].x,t[0].y);var a=0;if("curve"===o.type)for(var i=0;id&&(r.moveTo(n.x,n.y),a=1),i>0&&n.x>d&&n.xd&&(r.moveTo(c.x,c.y),a=1),l>0&&c.x>d&&c.x4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=e.height-e.area[2],h=[],d=0,p=0;t.forEach(function(t,e){"column"==t.type&&(p+=1)}),i.save();var f=-2,g=s.length+2,m=0,_=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/l)-2,g=f+e.xAxis.itemCount+4,m=-e._scrollDistance_-l+e.area[3],_=m+(e.xAxis.itemCount+4)*l),t.forEach(function(t,o){var w,v,x;w=[].concat(e.chartData.yAxisData.ranges[t.index]),v=w.pop(),x=w.shift();var y=t.data,S=et(y,v,x,s,l,e,a,r);if(h.push(S),"column"==t.type){S=V(S,l,p,d,a,e);for(var b=0;bf&&b1){var F=I[0],A=I[I.length-1];i.moveTo(F.x,F.y);var k=0;if("curve"===t.style)for(var $=0;$m&&(i.moveTo(L.x,L.y),k=1),$>0&&L.x>m&&L.x<_){var M=u(I,$-1);i.bezierCurveTo(M.ctrA.x,M.ctrA.y,M.ctrB.x,M.ctrB.y,L.x,L.y)}}else for(var N=0;Nm&&(i.moveTo(R.x,R.y),k=1),N>0&&R.x>m&&R.x<_&&i.lineTo(R.x,R.y)}i.lineTo(A.x,c),i.lineTo(F.x,c),i.lineTo(F.x,F.y)}else{var B=I[0];i.moveTo(B.x-l/2,B.y),i.lineTo(B.x+l/2,B.y),i.lineTo(B.x+l/2,c),i.lineTo(B.x-l/2,c),i.moveTo(B.x-l/2,B.y)}i.closePath(),i.fill()}if("line"==t.type){var O=W(S);O.forEach(function(a,r){if("dash"==t.lineType){var n=t.dashLength?t.dashLength:8;n*=e.pixelRatio,i.setLineDash([n,n])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(2*e.pixelRatio),1===a.length)i.moveTo(a[0].x,a[0].y),i.arc(a[0].x,a[0].y,1,0,2*Math.PI);else{i.moveTo(a[0].x,a[0].y);var o=0;if("curve"==t.style)for(var s=0;sm&&(i.moveTo(l.x,l.y),o=1),s>0&&l.x>m&&l.x<_){var c=u(a,s-1);i.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var h=0;hm&&(i.moveTo(d.x,d.y),o=1),h>0&&d.x>m&&d.x<_&&i.lineTo(d.x,d.y)}i.moveTo(a[0].x,a[0].y)}i.stroke(),i.setLineDash([])})}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&<(S,t.color,t.pointShape,i,e)}),!1!==e.dataLabel&&1===r){d=0;t.forEach(function(t,n){var o,c,h;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),h=o.shift();var u=t.data,f=et(u,c,h,s,l,e,a,r);"column"!==t.type?ht(f,t,a,i):(f=V(f,l,p,d,a,e),ht(f,t,a,i),d+=1)})}return i.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function Ct(t,e,a,i,r,n){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===i&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&mt(t,e,a,r,n),a.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&a.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===i&&wt(t.tooltip.textList,t.tooltip.offset,t,e,a,r,n),a.restore()}function Dt(t,e,a,i){var r=e.chartData.xAxisData,n=r.xAxisPoints,o=r.startX,s=r.endX,l=r.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var u=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+a.xAxisHeight,f=s-o,g=l*(n.length-1),_=f*f/g,w=0;e._scrollDistance_&&(w=-e._scrollDistance_*f/g),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(o,p),i.lineTo(s,p),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(o+w,p),i.lineTo(o+w+_,p),i.stroke(),i.closePath(),i.setLineCap("butt")}if(i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),n.forEach(function(t,a){a>0&&(i.beginPath(),i.moveTo(t-l/2,u),i.lineTo(t-l/2,u+3*e.pixelRatio),i.closePath(),i.stroke())})),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,n.forEach(function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,u),i.lineTo(t,d),i.stroke())}),i.setLineDash([])),!0!==e.xAxis.disabled){var v=t.length;e.xAxis.labelCount&&(v=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,v-=1);for(var x=Math.ceil(t.length/v),y=[],S=t.length,b=0;b4&&void 0!==arguments[4]?arguments[4]:1,s=i({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=s.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);t=j(t,c,o);var h=s.activeRadius;if(t=t.map(function(t){return t._start_+=s.offsetAngle*Math.PI/180,t}),t.forEach(function(t,a){e.tooltip&&e.tooltip.index==a&&(r.beginPath(),r.setFillStyle(n(t.color,e.extra.pie.activeOpacity||.5)),r.moveTo(l.x,l.y),r.arc(l.x,l.y,t._radius_+h,t._start_,t._start_+2*t._proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(s.borderWidth*e.pixelRatio),r.lineJoin="round",r.setStrokeStyle(s.borderColor),r.setFillStyle(t.color),r.moveTo(l.x,l.y),r.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),r.closePath(),r.fill(),1==s.border&&r.stroke()}),"ring"===e.type){var u=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(u=Math.max(0,c-e.extra.pie.ringWidth)),r.beginPath(),r.setFillStyle(e.background||"#ffffff"),r.moveTo(l.x,l.y),r.arc(l.x,l.y,u,0,2*Math.PI),r.closePath(),r.fill()}if(!1!==e.dataLabel&&1===o){for(var d=!1,p=0,f=t.length;p0){d=!0;break}d&&pt(t,e,a,r,c,l)}return 1===o&&"ring"===e.type&&ct(e,a,r,l),{center:l,radius:c,series:t}}function At(t,e,a,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=i({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=s.activeRadius);var l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),h=s.minRadius||.5*c;t=G(t,s.type,h,c,o);var u=s.activeRadius;if(t=t.map(function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t}),t.forEach(function(t,a){e.tooltip&&e.tooltip.index==a&&(r.beginPath(),r.setFillStyle(n(t.color,s.activeOpacity||.5)),r.moveTo(l.x,l.y),r.arc(l.x,l.y,u+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(s.borderWidth*e.pixelRatio),r.lineJoin="round",r.setStrokeStyle(s.borderColor),r.setFillStyle(t.color),r.moveTo(l.x,l.y),r.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),r.closePath(),r.fill(),1==s.border&&r.stroke()}),!1!==e.dataLabel&&1===o){for(var d=!1,p=0,f=t.length;p0){d=!0;break}d&&pt(t,e,a,r,c,l)}return{center:l,radius:c,series:t}}function kt(t,e,a,r){var n,o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=i({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=Q(t,l,s),n=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?o=l.radius:(o=Math.min(n.x,n.y),o-=5*e.pixelRatio,o-=l.width/2);for(var c=0;c5&&void 0!==arguments[5]?arguments[5]:1,l=i({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=U(t,l.startAngle,l.endAngle);var c={x:a.width/2,y:a.height/2},h=Math.min(c.x,c.y);h-=5*a.pixelRatio,h-=l.width/2;var u=h-l.width,d=0;if("progress"==l.type){var p=h-3*l.width;o.beginPath();var f=o.createLinearGradient(c.x,c.y-p,c.x,c.y+p);f.addColorStop("0",n(e[0].color,.3)),f.addColorStop("1.0",n("#FFFFFF",.1)),o.setFillStyle(f),o.arc(c.x,c.y,p,0,2*Math.PI,!1),o.fill(),o.setLineWidth(l.width),o.setStrokeStyle(n(e[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,u,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),o.stroke(),d=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var g=d/l.splitLine.splitNumber/l.splitLine.childNumber,m=-h-.5*l.width-l.splitLine.fixRadius,_=-h-l.width-l.splitLine.fixRadius+l.splitLine.width;o.save(),o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var w=l.splitLine.splitNumber*l.splitLine.childNumber+1,v=e[0].data*s,x=0;xx/w?o.setStrokeStyle(n(e[0].color,1)):o.setStrokeStyle(n(e[0].color,.3)),o.setLineWidth(3*a.pixelRatio),o.moveTo(m,0),o.lineTo(_,0),o.stroke(),o.rotate(g*Math.PI);o.restore(),e=Q(e,l,s),o.setLineWidth(l.width),o.setStrokeStyle(e[0].color),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,u,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),o.stroke();var y=h-2.5*l.width;o.save(),o.translate(c.x,c.y),o.rotate((e[0]._proportion_-1)*Math.PI),o.beginPath(),o.setLineWidth(l.width/3);var S=o.createLinearGradient(0,.6*-y,0,.6*y);S.addColorStop("0",n("#FFFFFF",0)),S.addColorStop("0.5",n(e[0].color,1)),S.addColorStop("1.0",n("#FFFFFF",0)),o.setStrokeStyle(S),o.arc(0,0,y,.85*Math.PI,1.15*Math.PI,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(e[0].color),o.setFillStyle(e[0].color),o.moveTo(-y-l.width/3/2,-4),o.lineTo(-y-l.width/3/2-4,0),o.lineTo(-y-l.width/3/2,4),o.lineTo(-y-l.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(l.width),o.setLineCap("butt");for(var b=0;b4&&void 0!==arguments[4]?arguments[4]:1,s=i({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=S(e.categories.length),c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},h=Math.min(c.x-(y(e.categories)+a.radarLabelTextMargin),c.y-a.radarLabelTextMargin);h-=e.padding[1],r.beginPath(),r.setLineWidth(1*e.pixelRatio),r.setStrokeStyle(s.gridColor),l.forEach(function(t){var e=d(h*Math.cos(t),h*Math.sin(t),c);r.moveTo(c.x,c.y),r.lineTo(e.x,e.y)}),r.stroke(),r.closePath();for(var u=function(t){var a={};r.beginPath(),r.setLineWidth(1*e.pixelRatio),r.setStrokeStyle(s.gridColor),l.forEach(function(e,i){var n=d(h/s.gridCount*t*Math.cos(e),h/s.gridCount*t*Math.sin(e),c);0===i?(a=n,r.moveTo(n.x,n.y)):r.lineTo(n.x,n.y)}),r.lineTo(a.x,a.y),r.stroke(),r.closePath()},p=1;p<=s.gridCount;p++)u(p);var f=z(l,c,h,t,e,o);return f.forEach(function(t,a){if(r.beginPath(),r.setFillStyle(n(t.color,s.opacity)),t.data.forEach(function(t,e){0===e?r.moveTo(t.position.x,t.position.y):r.lineTo(t.position.x,t.position.y)}),r.closePath(),r.fill(),!1!==e.dataPointShape){var i=t.data.map(function(t){return t.position});lt(i,t.color,t.pointShape,r,e)}}),dt(l,h,c,e,a,r),{center:c,radius:h,angleList:l}}function Mt(t,e,a){a=0==a?1:a;for(var i=[],r=0;re[n].area[2]||t[1]>e[n].area[3]||t[2]a||t[3]>i){r=!0;break}r=!1}return r}function Rt(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var i=0;ic.x?a.xMax:c.x,a.yMin=a.yMinc.y?a.yMax:c.y}}return a}function Wt(t,e,a,i,r,n){return{x:(e-a.xMin)*i+r,y:(a.yMax-t)*i+n}}function Bt(t,e,a,i,r,n){return{x:(e-r)/i+a.xMin,y:a.yMax-(t-n)/i}}function Ot(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0].7},p=0;p4&&void 0!==arguments[4]?arguments[4]:1;i({},{type:"normal",autoColors:!0},e.extra.word);r.beginPath(),r.setFillStyle(e.background||"#FFFFFF"),r.rect(0,0,e.width,e.height),r.fill(),r.save();var o=e.chartData.wordCloudData;r.translate(e.width/2,e.height/2);for(var s=0;s0&&(e.tooltip&&e.tooltip.index==s?r.strokeText(l,(o[s].areav[0]+5-e.width/2)*n-h*(1-n)/2,(o[s].areav[1]+5+c-e.height/2)*n):r.fillText(l,(o[s].areav[0]+5-e.width/2)*n-h*(1-n)/2,(o[s].areav[1]+5+c-e.height/2)*n)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?r.strokeText(l,(o[s].area[0]+5-e.width/2)*n-h*(1-n)/2,(o[s].area[1]+5+c-e.height/2)*n):r.fillText(l,(o[s].area[0]+5-e.width/2)*n-h*(1-n)/2,(o[s].area[1]+5+c-e.height/2)*n)),r.stroke(),r.restore()}r.restore()}function qt(t,e,a,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=i({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},h=s.activeWidth,u=Math.min((e.width-e.area[1]-e.area[3])/2-h,(e.height-e.area[0]-e.area[2])/2-h);t=q(t,u,o),r.save(),r.translate(c.x,c.y);for(var d=0;d0?w[b].width+e.yAxis.padding:w[b].width,S+=1):(e.area[1]+=y>0?w[b].width+e.yAxis.padding:w[b].width,y+=1)}else a.yAxisWidth=w;if(e.chartData.yAxisData=_,e.categories&&e.categories.length){e.chartData.xAxisData=Z(e.categories,e,a);var C=O(e.categories,e,a,e.chartData.xAxisData.eachSpacing),D=C.xAxisHeight,T=C.angle;a.xAxisHeight=D,a._xAxisTextAngle_=T,e.area[2]+=D,e.chartData.categoriesData=C}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=H(o,e,a),l=e.chartData.xAxisData.rangesFormat;var I=O(l,e,a,e.chartData.xAxisData.eachSpacing),F=I.xAxisHeight,A=I.angle;a.xAxisHeight=F,a._xAxisTextAngle_=A,e.area[2]+=F,e.chartData.categoriesData=I}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var k=0,$=e.chartData.xAxisData.xAxisPoints,L=e.chartData.xAxisData.startX,M=e.chartData.xAxisData.endX,N=e.chartData.xAxisData.eachSpacing,R=N*($.length-1),W=M-L;k=W-R,n.scrollOption={currentOffset:k,startTouchX:k,distance:0,lastMoveTime:0},e._scrollDistance_=k}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:J(h)),t){case"word":var E=i({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=zt(e,E.type)),this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),jt(o,e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"map":r.clearRect(0,0,e.width,e.height),Ht(o,e,a,r);break;case"funnel":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),e.chartData.funnelData=qt(o,e,a,r,t),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),Pt(l,e,a,r),Dt(l,e,a,r);var i=St(o,e,a,r,t),n=i.xAxisPoints,s=i.calPoints,c=i.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Tt(o,e,a,r),!1!==e.enableMarkLine&&1===t&>(e,a,r),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t,c,n),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),Pt(l,e,a,r),Dt(l,e,a,r);var i=bt(o,e,a,r,t),n=i.xAxisPoints,s=i.calPoints,c=i.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Tt(o,e,a,r),!1!==e.enableMarkLine&&1===t&>(e,a,r),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t,c,n),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),Pt(l,e,a,r),Dt(l,e,a,r);var i=vt(o,e,a,r,t),n=i.xAxisPoints,s=i.calPoints,c=i.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Tt(o,e,a,r),!1!==e.enableMarkLine&&1===t&>(e,a,r),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t,c,n),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),Pt(l,e,a,r),Dt(l,e,a,r);var i=yt(o,e,a,r,t),n=i.xAxisPoints,s=i.calPoints,c=i.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Tt(o,e,a,r),!1!==e.enableMarkLine&&1===t&>(e,a,r),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t,c,n),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),e.chartData.pieData=Ft(o,e,a,r,t),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),e.chartData.pieData=At(o,e,a,r,t),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),e.chartData.radarData=Lt(o,e,a,r,t),It(e.series,e,a,r,e.chartData),Ct(e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),e.chartData.arcbarData=kt(o,e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),e.chartData.gaugeData=$t(l,o,e,a,r,t),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){r.clearRect(0,0,e.width,e.height),e.rotate&&st(r,e),Pt(l,e,a,r),Dt(l,e,a,r);var i=xt(o,h,e,a,r,t),n=i.xAxisPoints,s=i.calPoints,c=i.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Tt(o,e,a,r),!1!==e.enableMarkLine&&1===t&>(e,a,r),It(h||e.series,e,a,r,e.chartData),Ct(e,a,r,t,c,n),Qt(e,r)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break}}function Vt(){this.events={}}Xt.prototype.stop=function(){this.isStop=!0},Vt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Vt.prototype.trigger=function(){for(var t=arguments.length,a=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};this.opts=i({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=rt(this.opts.series,this.opts,this.config),r=a.yAxisWidth;this.config.yAxisWidth=r;var n=0,o=Z(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,h=o.eachSpacing,u=h*(s.length-1),d=c-l;n=d-u,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n;break}Jt.call(this,this.opts.type,this.opts,this.config,this.context)},Yt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var a=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var i=rt(this.opts.series,this.opts,this.config),r=i.yAxisWidth;this.config.yAxisWidth=r;var n=0,o=Z(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,h=o.eachSpacing,u=h*a,d=c-l,p=d-h*(s.length-1);n=d/2-u,n>0&&(n=0),n1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){v(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&(this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Jt.call(this,this.opts.type,this.opts,this.config,this.context))}},Yt.prototype.showToolTip=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r||e("log","touchError"," at components\\tools\\u-charts\\u-charts.js:5402");var n=v(r,this.opts,t),o=this.scrollOption.currentOffset,s=i({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=this.getCurrentDataIndex(t);if(l>-1){var c=x(this.opts.series,l);if(0!==c.length){var h=b(c,this.opts.chartData.calPoints,l,this.opts.categories,a),u=h.textList,d=h.offset;d.y=n.y,s.tooltip={textList:u,offset:d,option:a,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){o=this.scrollOption.currentOffset,s=i({},this.opts,{_scrollDistance_:o,animation:!1}),c=x(this.opts.series,l);if(0!==c.length){var p=C(c,this.opts.chartData.calPoints,l,this.opts.categories,a);u=p.textList,d=p.offset;d.y=n.y,s.tooltip={textList:u,offset:d,option:a,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){o=this.scrollOption.currentOffset,s=i({},this.opts,{_scrollDistance_:o,animation:!1}),c=x(this.opts.series,l);if(0!==c.length){h=D(this.opts.series[0].data,c,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,a),u=h.textList,d=h.offset;d.y=n.y,s.tooltip={textList:u,offset:d,option:a,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){o=this.scrollOption.currentOffset,s=i({},this.opts,{_scrollDistance_:o,animation:!1}),c=this.opts._series_[l],u=[{text:a.format?a.format(c):c.name+": "+c.data,color:c.color}],d={x:n.x,y:n.y};s.tooltip={textList:u,offset:d,option:a,index:l}}Jt.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){o=this.scrollOption.currentOffset,s=i({},this.opts,{_scrollDistance_:o,animation:!1}),c=this.opts._series_[l],u=[{text:a.format?a.format(c):c.properties.name,color:c.color}],d={x:n.x,y:n.y};s.tooltip={textList:u,offset:d,option:a,index:l}}s.updateData=!1,Jt.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){o=this.scrollOption.currentOffset,s=i({},this.opts,{_scrollDistance_:o,animation:!1}),c=x(this.opts.series,l);if(0!==c.length){u=c.map(function(t){return{text:a.format?a.format(t):t.name+": "+t.data,color:t.color}}),d={x:n.x,y:n.y};s.tooltip={textList:u,offset:d,option:a,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}},Yt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=i({},this.opts,{_scrollDistance_:t,animation:!1});Jt.call(this,this.opts.type,e,this.config,this.context)},Yt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=v(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},Yt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,a=Date.now(),r=a-this.scrollOption.lastMoveTime;if(!(rm;return{residenceTime:e,overtime:a}}if("page"===t){var i=e>g;return{residenceTime:e,overtime:i}}return{residenceTime:e}},Q=function(){var t=getCurrentPages(),e=t[t.length-1],a=e.$vm;return"bd"===C()?a.$mp&&a.$mp.page.is:a.$scope&&a.$scope.route||a.$mp&&a.$mp.page.route},U=function(t){var e=getCurrentPages(),a=e[e.length-1],i=a.$vm,r=t._query,n=r&&"{}"!==JSON.stringify(r)?"?"+JSON.stringify(r):"";return t._query="","bd"===C()?i.$mp&&i.$mp.page.is+n:i.$scope&&i.$scope.route+n||i.$mp&&i.$mp.page.route+n},X=function(t){return!!("page"===t.mpType||t.$mp&&"page"===t.$mp.mpType||"page"===t.$options.mpType)},J=function(t,e){return t?"string"!==typeof t?(console.error("uni.report [eventName] 参数类型错误,只能为 String 类型"),!0):t.length>255?(console.error("uni.report [eventName] 参数长度不能大于 255"),!0):"string"!==typeof e&&"object"!==typeof e?(console.error("uni.report [options] 参数类型错误,只能为 String 或 Object 类型"),!0):"string"===typeof e&&e.length>255?(console.error("uni.report [options] 参数长度不能大于 255"),!0):"title"===t&&"string"!==typeof e?(console.error("uni.report [eventName] 参数为 title 时,[options] 参数只能为 String 类型"),!0):void 0:(console.error("uni.report 缺少 [eventName] 参数"),!0)},V=a("84ec").default,Y=a("9ccd").default||a("9ccd"),K=uni.getSystemInfoSync(),Z=function(){function t(){c(this,t),this.self="",this._retry=0,this._platform="",this._query={},this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._operatingTime=0,this._reportingRequestData={1:[],11:[]},this.__prevent_triggering=!1,this.__licationHide=!1,this.__licationShow=!1,this._lastPageRoute="",this.statData={uuid:x(),ut:C(),mpn:D(),ak:Y.appid,usv:d,v:P(),ch:T(),cn:"",pn:"",ct:"",t:b(),tt:"",p:"android"===K.platform?"a":"i",brand:K.brand||"",md:K.model,sv:K.system.replace(/(Android|iOS)\s/,""),mpsdk:K.SDKVersion||"",mpv:K.version||"",lang:K.language,pr:K.pixelRatio,ww:K.windowWidth,wh:K.windowHeight,sw:K.screenWidth,sh:K.screenHeight}}return u(t,[{key:"_applicationShow",value:function(){if(this.__licationHide){q();var t=G("app");if(t.overtime){var e={path:this._lastPageRoute,scene:this.statData.sc};this._sendReportRequest(e)}this.__licationHide=!1}}},{key:"_applicationHide",value:function(t,e){this.__licationHide=!0,q();var a=G();j();var i=U(this);this._sendHideRequest({urlref:i,urlref_ts:a.residenceTime},e)}},{key:"_pageShow",value:function(){var t=U(this),e=Q();if(this._navigationBarTitle.config=V&&V.pages[e]&&V.pages[e].titleNView&&V.pages[e].titleNView.titleText||V&&V.pages[e]&&V.pages[e].navigationBarTitleText||"",this.__licationShow)return j(),this.__licationShow=!1,void(this._lastPageRoute=t);q(),this._lastPageRoute=t;var a=G("page");if(a.overtime){var i={path:this._lastPageRoute,scene:this.statData.sc};this._sendReportRequest(i)}j()}},{key:"_pageHide",value:function(){if(!this.__licationHide){q();var t=G("page");return this._sendPageRequest({url:this._lastPageRoute,urlref:this._lastPageRoute,urlref_ts:t.residenceTime}),void(this._navigationBarTitle={config:"",page:"",report:"",lt:""})}}},{key:"_login",value:function(){this._sendEventRequest({key:"login"},0)}},{key:"_share",value:function(){this._sendEventRequest({key:"share"},0)}},{key:"_payment",value:function(t){this._sendEventRequest({key:t},0)}},{key:"_sendReportRequest",value:function(t){this._navigationBarTitle.lt="1";var e=t.query&&"{}"!==JSON.stringify(t.query)?"?"+JSON.stringify(t.query):"";this.statData.lt="1",this.statData.url=t.path+e||"",this.statData.t=b(),this.statData.sc=I(t.scene),this.statData.fvts=k(),this.statData.lvts=$(),this.statData.tvc=O(),"n"===C()?this.getProperty():this.getNetworkInfo()}},{key:"_sendPageRequest",value:function(t){var e=t.url,a=t.urlref,i=t.urlref_ts;this._navigationBarTitle.lt="11";var r={ak:this.statData.ak,uuid:this.statData.uuid,lt:"11",ut:this.statData.ut,url:e,tt:this.statData.tt,urlref:a,urlref_ts:i,ch:this.statData.ch,usv:this.statData.usv,t:b(),p:this.statData.p};this.request(r)}},{key:"_sendHideRequest",value:function(t,e){var a=t.urlref,i=t.urlref_ts,r={ak:this.statData.ak,uuid:this.statData.uuid,lt:"3",ut:this.statData.ut,urlref:a,urlref_ts:i,ch:this.statData.ch,usv:this.statData.usv,t:b(),p:this.statData.p};this.request(r,e)}},{key:"_sendEventRequest",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,a=void 0===e?"":e,i=t.value,r=void 0===i?"":i,n=this._lastPageRoute,o={ak:this.statData.ak,uuid:this.statData.uuid,lt:"21",ut:this.statData.ut,url:n,ch:this.statData.ch,e_n:a,e_v:"object"===typeof r?JSON.stringify(r):r.toString(),usv:this.statData.usv,t:b(),p:this.statData.p};this.request(o)}},{key:"getNetworkInfo",value:function(){var t=this;uni.getNetworkType({success:function(e){t.statData.net=e.networkType,t.getLocation()}})}},{key:"getProperty",value:function(){var t=this;plus.runtime.getProperty(plus.runtime.appid,function(e){t.statData.v=e.version||"",t.getNetworkInfo()})}},{key:"getLocation",value:function(){var t=this;Y.getLocation?uni.getLocation({type:"wgs84",geocode:!0,success:function(e){e.address&&(t.statData.cn=e.address.country,t.statData.pn=e.address.province,t.statData.ct=e.address.city),t.statData.lat=e.latitude,t.statData.lng=e.longitude,t.request(t.statData)}}):(this.statData.lat=0,this.statData.lng=0,this.request(this.statData))}},{key:"request",value:function(t,e){var a=this,i=b(),r=this._navigationBarTitle;t.ttn=r.page,t.ttpj=r.config,t.ttc=r.report;var n=this._reportingRequestData;if("n"===C()&&(n=uni.getStorageSync("__UNI__STAT__DATA")||{}),n[t.lt]||(n[t.lt]=[]),n[t.lt].push(t),"n"===C()&&uni.setStorageSync("__UNI__STAT__DATA",n),!(W()<_)||e){var o=this._reportingRequestData;"n"===C()&&(o=uni.getStorageSync("__UNI__STAT__DATA")),R();var s=[],l=[],c=[],h=function(t){var e=o[t];e.forEach(function(e){var a=S(e);0===t?s.push(a):3===t?c.push(a):l.push(a)})};for(var u in o)h(u);s.push.apply(s,l.concat(c));var p={usv:d,t:i,requests:JSON.stringify(s)};this._reportingRequestData={},"n"===C()&&uni.removeStorageSync("__UNI__STAT__DATA"),"h5"!==t.ut?"n"!==C()||"a"!==this.statData.p?this._sendRequest(p):setTimeout(function(){a._sendRequest(p)},200):this.imageRequest(p)}}},{key:"_sendRequest",value:function(t){var e=this;uni.request({url:p,method:"POST",data:t,success:function(){},fail:function(a){++e._retry<3&&setTimeout(function(){e._sendRequest(t)},1e3)}})}},{key:"imageRequest",value:function(t){var e=new Image,a=y(E(t)).options;e.src=f+"?"+a}},{key:"sendEvent",value:function(t,e){J(t,e)||("title"!==t?this._sendEventRequest({key:t,value:"object"===typeof e?JSON.stringify(e):e},1):this._navigationBarTitle.report=e)}}]),t}(),tt=function(t){function e(){var t;return c(this,e),t=r(this,o(e).call(this)),t.instance=null,"function"===typeof uni.addInterceptor&&(t.addInterceptorInit(),t.interceptLogin(),t.interceptShare(!0),t.interceptRequestPayment()),t}return s(e,t),u(e,null,[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}]),u(e,[{key:"addInterceptorInit",value:function(){var t=this;uni.addInterceptor("setNavigationBarTitle",{invoke:function(e){t._navigationBarTitle.page=e.title}})}},{key:"interceptLogin",value:function(){var t=this;uni.addInterceptor("login",{complete:function(){t._login()}})}},{key:"interceptShare",value:function(t){var e=this;t?uni.addInterceptor("share",{success:function(){e._share()},fail:function(){e._share()}}):e._share()}},{key:"interceptRequestPayment",value:function(){var t=this;uni.addInterceptor("requestPayment",{success:function(){t._payment("pay_success")},fail:function(){t._payment("pay_fail")}})}},{key:"report",value:function(t,e){this.self=e,R(),this.__licationShow=!0,this._sendReportRequest(t,!0)}},{key:"load",value:function(t,e){if(!e.$scope&&!e.$mp){var a=getCurrentPages();e.$scope=a[a.length-1]}this.self=e,this._query=t}},{key:"show",value:function(t){this.self=t,X(t)?this._pageShow(t):this._applicationShow(t)}},{key:"ready",value:function(t){}},{key:"hide",value:function(t){this.self=t,X(t)?this._pageHide(t):this._applicationHide(t,!0)}},{key:"error",value:function(t){this._platform;var e="";e=t.message?t.stack:JSON.stringify(t);var a={ak:this.statData.ak,uuid:this.statData.uuid,lt:"31",ut:this.statData.ut,ch:this.statData.ch,mpsdk:this.statData.mpsdk,mpv:this.statData.mpv,v:this.statData.v,em:e,usv:this.statData.usv,t:b(),p:this.statData.p};this.request(a)}}]),e}(Z),et=tt.getInstance(),at=!1,it={onLaunch:function(t){et.report(t,this)},onReady:function(){et.ready(this)},onLoad:function(t){if(et.load(t,this),this.$scope&&this.$scope.onShareAppMessage){var e=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(t){return et.interceptShare(!1),e.call(this,t)}}},onShow:function(){at=!1,et.show(this)},onHide:function(){at=!0,et.hide(this)},onUnload:function(){at?at=!1:et.hide(this)},onError:function(t){et.error(t)}};function rt(){var t=a("8bbf");(t.default||t).mixin(it),uni.report=function(t,e){et.sendEvent(t,e)}}rt()},9374:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("0ede")),r=n(a("17a7"));function n(t){return t&&t.__esModule?t:{default:t}}var o={components:{weatherCalendarCardList8_15:i.default},data:function(){return{isToday:!1,scrollposition:0,windPowerStationId:"SBQ_FDC",weatherProphetDataAll_8_15:[],weatherProphetData_8_15:[],socket:"",address:"",startDate:"",isCard:!1,option:"",endDate:"",cWidth:"",cHeight:"",pixelRatio:1,realFeelFlag:!0,temperatureFlag:!1,speedFlag:!1,tabCur:0,mainCur:0}},created:function(){this.address=this.getWindPowerStationNameToSessionStorage(),this.getWeatherData()},onShow:function(){this.address=this.getWindPowerStationNameToSessionStorage()},methods:{pushWindPowerStationNameToSessionStorage:function(t){uni.setStorageSync("windpowerstationName",t)},getWindPowerStationNameToSessionStorage:function(){return uni.getStorageSync("windpowerstationName"),uni.getStorageSync("windpowerstationName")},getWeatherData:function(){var e=this,a=this;this.socketTask=uni.connectSocket({url:"ws://49.4.78.143:8081/websocket/pageNumber_4/functionNumber_1",success:function(e){t("log","websocket连接成功"," at pages\\weatherProphet8_15\\WeatherProphet8_15.vue:102")}}),this.socketTask.onOpen(function(i){t("log","WebSocket连接正常打开中...!"," at pages\\weatherProphet8_15\\WeatherProphet8_15.vue:106"),e.is_open_socket=!0,e.socketTask.onMessage(function(t){a.weatherProphetDataAll_8_15=t.data,a.weatherProphetDataAll_8_15=JSON.parse(t.data),a.weatherProphetData_8_15=[];for(var e=0;e=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),A(a),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var i=a.completion;if("throw"===i.type){var r=i.arg;A(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:$(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=a),g}}}function x(t,e,a,i){var r=e&&e.prototype instanceof S?e:S,n=Object.create(r.prototype),o=new k(i||[]);return n._invoke=T(t,a,o),n}function y(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(i){return{type:"throw",arg:i}}}function S(){}function b(){}function C(){}function D(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function P(t){function e(a,i,n,o){var s=y(t[a],t,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"===typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):Promise.resolve(c).then(function(t){l.value=t,n(l)},function(t){return e("throw",t,n,o)})}o(s.arg)}var a;function i(t,i){function r(){return new Promise(function(a,r){e(t,i,a,r)})}return a=a?a.then(r,r):r()}this._invoke=i}function T(t,e,a){var i=u;return function(r,n){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw n;return L()}a.method=r,a.arg=n;while(1){var o=a.delegate;if(o){var s=I(o,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===u)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=p;var l=y(t,e,a);if("normal"===l.type){if(i=a.done?f:d,l.arg===g)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=f,a.method="throw",a.arg=l.arg)}}}function I(t,e){var i=t.iterator[e.method];if(i===a){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=a,I(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=y(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var n=r.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=a),e.delegate=null,g):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function F(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function $(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){while(++ithis.adresslist[n].top&&o=0,n=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,t.exports=a("96cf"),r)i.regeneratorRuntime=n;else try{delete i.regeneratorRuntime}catch(o){i.regeneratorRuntime=void 0}},c0e1:function(t,e,a){"use strict";a.r(e);var i=a("11a1");for(var r in i)"default"!==r&&function(t){a.d(e,t,function(){return i[t]})}(r);var n,o,s,l,c=a("f0c5"),h=Object(c["a"])(i["default"],n,o,!1,null,null,null,!1,s,l);e["default"]=h.exports},c198:function(t,e,a){"use strict";a.r(e);var i=a("c4a8"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,function(){return i[t]})}(n);e["default"]=r.a},c215:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={friendlyDate:function(t){var e={year:"%n% 年前",month:"%n% 月前",day:"%n% 天前",hour:"%n% 小时前",minute:"%n% 分钟前",second:"%n% 秒前"},a=Date.now(),i=Math.floor((a-parseInt(t))/1e3),r=Math.floor(i/60),n=Math.floor(r/60),o=Math.floor(n/24),s=Math.floor(o/30),l=Math.floor(s/12),c="",h=0;return l>0?(c="year",h=l):s>0?(c="month",h=s):o>0?(c="day",h=o):n>0?(c="hour",h=n):r>0?(c="minute",h=r):(c="second",h=0===i?i=1:i),e[c].replace("%n%",h)},timeTodate:function(t,e){var a=new Date;a.getYear(),a.getFullYear(),a.getMonth(),a.getDate(),a.getDay(),a.getTime(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds(),a.toLocaleDateString();a.toLocaleTimeString();a.toLocaleString();var i=new Date(e),r=i.getSeconds(),n=("0"+i.getMinutes()).substr(-2),o=i.getHours(),s=("0"+i.getDate()).substr(-2),l=("0"+(i.getMonth()+1)).substr(-2),c=i.getFullYear(),h="自定义替换值";return t.replace("Y",c).replace("m",l).replace("d",s).replace("H",o).replace("i",n).replace("s",r).replace("index",h)}};e.default=i},c2ea:function(t,e,a){"use strict";a.r(e);var i=a("f463"),r=a("54ea");for(var n in r)"default"!==n&&function(t){a.d(e,t,function(){return r[t]})}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"64fd1289",null,!1,i["a"],o);e["default"]=l.exports},c4a8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(a("c215"));function r(t){return t&&t.__esModule?t:{default:t}}var n={data:function(){return{weatherProphetData_8_15:"",width:"",height:"",week:"",day:"",month:"",newDate:"",utils:i.default,timestamp:"",dayWeatherIconTotalClass:"dayWeatherIconTotalClass",dayWeatherClassName:"",nightWeatherIconTotalClass:"nightWeatherIconTotalClass",nightWeatherClassName:"",classNameweatherIconBackgroundColor:"",weatherIconBackgroundColor:"",timeBackgroundColor:"",iconMarginTop:""}},methods:{getWeatherData:function(t,e,a,i,r,n){this.width=t+"%",this.height=e+"px",this.iconMarginTop=(e-31)/2+"px",this.weatherProphetData_8_15=n,this.dayWeatherClassName=i,this.nightWeatherClassName=r,this.classNameweatherIconBackgroundColor=a,this.setTime(),this.setBackgroundColor()},setTime:function(){var t=new Date(this.weatherProphetData_8_15.recodedata).getDay();0==t&&(this.week="周日"),1==t&&(this.week="周一"),2==t&&(this.week="周二"),3==t&&(this.week="周三"),4==t&&(this.week="周四"),5==t&&(this.week="周五"),6==t&&(this.week="周六");var e=new Date(this.weatherProphetData_8_15.recodedata).getDate();this.day=e+"日",this.timestamp=new Date(this.weatherProphetData_8_15.recodedata).getTime(),this.month=this.utils.timeTodate("m",this.timestamp)},setBackgroundColor:function(){"firstGradeBlue"==this.classNameweatherIconBackgroundColor?(this.timeBackgroundColor="#2F5EB0",this.weatherIconBackgroundColor="#597EC0"):"fourGradeBlue"==this.classNameweatherIconBackgroundColor?(this.timeBackgroundColor="#60B9E3",this.weatherIconBackgroundColor="#9ED2EC"):"threeGradeBlue"==this.classNameweatherIconBackgroundColor?(this.timeBackgroundColor="#50A5F2",this.weatherIconBackgroundColor="#73B7F5"):"twoGradeBlue"==this.classNameweatherIconBackgroundColor&&(this.timeBackgroundColor="#427CE8",this.weatherIconBackgroundColor="#6896ED")}}};e.default=n},c668:function(t,e,a){"use strict";var i,r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:t._$s(1,"sc","weatherDay7"),attrs:{_i:1}},t._l(t._$s(2,"f",{forItems:t.weatherProphetData_7}),function(e,i,r,n){return a("div",{key:t._$s(2,"f",{forIndex:r,key:i}),staticClass:t._$s("2-"+n,"sc","weatherParentComponent"),attrs:{_i:"2-"+n},on:{click:function(a){return t.changeTap(e)}}},[a("div",{class:t._$s("3-"+n,"c",[t.classNameweatherIconBackgroundColor,t.bgcolor]),style:t._$s("3-"+n,"s",{width:t.assemblyWidth,height:t.assemblyHeight}),attrs:{_i:"3-"+n}},[a("div",{staticClass:t._$s("4-"+n,"sc","assembly_time l"),attrs:{_i:"4-"+n}},[t._v(t._$s("4-"+n,"t0-0",t._s(t.utils.timeTodate("d",e.recodedata))))]),a("div",{class:t._$s("5-"+n,"c",[t.classNameDay[i],t.assembly_1_page]),attrs:{_i:"5-"+n}}),a("div",{class:t._$s("6-"+n,"c",[t.classNameNight[i],t.assembly_2_page]),attrs:{_i:"6-"+n}}),a("div",{staticClass:t._$s("7-"+n,"sc","assembly_weather l"),attrs:{_i:"7-"+n}},[t._v(t._$s("7-"+n,"t0-0",t._s(e.weather)))]),a("div",{staticClass:t._$s("8-"+n,"sc","assembly_temperature l"),attrs:{_i:"8-"+n}},[t._v(t._$s("8-"+n,"t0-0",t._s(e.temperature2))+t._$s("8-"+n,"t0-1",t._s(e.temperature1)))]),a("div",{staticClass:t._$s("9-"+n,"sc","assembly_wind l"),attrs:{_i:"9-"+n}},[t._v(t._$s("9-"+n,"t0-0",t._s(e.speed1)))])])])}),0)])},n=[];a.d(e,"b",function(){return r}),a.d(e,"c",function(){return n}),a.d(e,"a",function(){return i})},d081:function(t,e,a){"use strict";var i,r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{staticClass:t._$s(1,"sc","cu-custom"),style:t._$s(1,"s",[{height:t.CustomBar+"px"}]),attrs:{_i:1}},[a("view",{staticClass:t._$s(2,"sc","cu-bar fixed"),class:t._$s(2,"c",[""!=t.bgImage?"none-bg text-white bg-img":"",t.bgColor]),style:t._$s(2,"s",t.style),attrs:{_i:2}},[t._$s(3,"i",t.isBack)?a("view",{staticClass:t._$s(3,"sc","action"),attrs:{_i:3},on:{click:t.BackPage}},[a("text",{staticClass:t._$s(4,"sc","cuIcon-back"),attrs:{_i:4}}),t._t("backText",null,{_i:5})],2):t._e(),a("view",{staticClass:t._$s(6,"sc","content"),style:t._$s(6,"s",[{top:t.StatusBar+"px"}]),attrs:{_i:6}},[t._t("content",null,{_i:7})],2),t._t("right",null,{_i:8})],2)])])},n=[];a.d(e,"b",function(){return r}),a.d(e,"c",function(){return n}),a.d(e,"a",function(){return i})},d643:function(t,e,a){"use strict";a.r(e);var i=a("1d61"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,function(){return i[t]})}(n);e["default"]=r.a},e273:function(t,e,a){"use strict";var i,r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:t._$s(0,"sc","weatherProphet8_15"),attrs:{_i:0}},[a("div",{staticClass:t._$s(1,"sc","date"),attrs:{_i:1}},[t._v(t._$s(1,"t0-0",t._s(t.month))+t._$s(1,"t0-1",t._s(t.day)))]),a("div",{staticClass:t._$s(2,"sc","cardContaine"),attrs:{_i:2}},[a("div",{staticClass:t._$s(3,"sc","time"),style:t._$s(3,"s",{"line-height":t.height,"background-color":t.timeBackgroundColor}),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.week))+t._$s(3,"t0-1",t._s(t.day)))]),a("div",{staticClass:t._$s(4,"sc","weatherIcon"),style:t._$s(4,"s",{"background-color":t.weatherIconBackgroundColor}),attrs:{_i:4}},[a("div",{class:t._$s(5,"c",[t.dayWeatherClassName,t.dayWeatherIconTotalClass]),style:t._$s(5,"s",{"margin-top":t.iconMarginTop}),attrs:{_i:5}}),a("div",{class:t._$s(6,"c",[t.nightWeatherClassName,t.nightWeatherIconTotalClass]),style:t._$s(6,"s",{"margin-top":t.iconMarginTop}),attrs:{_i:6}})]),a("div",{staticClass:t._$s(7,"sc","weatherAndTemperatureAndWinddirectionAndSpeedClass"),attrs:{_i:7}},[a("div",{staticClass:t._$s(8,"sc","weather"),style:t._$s(8,"s",{"line-height":t.height}),attrs:{_i:8}},[t._v(t._$s(8,"t0-0",t._s(t.weatherProphetData_8_15.weather)))]),a("div",{staticClass:t._$s(9,"sc","temperature"),style:t._$s(9,"s",{"line-height":t.height}),attrs:{_i:9}},[a("span",[t._v(t._$s(10,"t0-0",t._s(t.weatherProphetData_8_15.temperature1)))]),t._v(t._$s(9,"t1-0",t._s(t.weatherProphetData_8_15.temperature2)))]),a("div",{staticClass:t._$s(11,"sc","winddirection"),style:t._$s(11,"s",{"line-height":t.height}),attrs:{_i:11}},[t._v(t._$s(11,"t0-0",t._s(t.weatherProphetData_8_15.winddirection1)))]),a("div",{staticClass:t._$s(12,"sc","speed"),style:t._$s(12,"s",{"line-height":t.height}),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.weatherProphetData_8_15.speed1)))])])])])},n=[];a.d(e,"b",function(){return r}),a.d(e,"c",function(){return n}),a.d(e,"a",function(){return i})},e38a:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[a]:("00"+e[a]).substr((""+e[a]).length)));return t};var a={data:function(){return{nowTime:"",thermometerClassName:"",totalClassName:"thermometer",width:"",height:"",weatherSwitch:!0,weatherProphetData_17Hour:[{id:"698421214",date:"2020-02-19 21:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"//static.weathercn.com/images/white/accu/33.png",temperature:"7",winddirection:"东北",realfeel:"2.4",speed:"13"}],weatherProphetData_1:[{id:"238466634",recodedata:"2020-02-25 00:00:00",region:"石板泉风电场",windpowerstationid:"SBQ_FDC",weather:"晴",maximumtem:"15",minimumtem:"-2",sunrise:"07:37",sunset:"18:48",sunduration:"11",weather1:"晴",temperature1:"-15",realfeel1:"15",precipitation1:"0",winddrection1:"0",speed1:"3",gust1:"3",weather2:"晴",temperature2:"-2",realfeel2:"-3",precipitation2:"0",winddirection2:"东北",speed2:"3",gust2:"3"}]}},created:function(){var t=this;setInterval(function(){t.getNowTime()},1e3),this.getHourWeatherData("90","360",this.weatherProphetData_17Hour,this.weatherProphetData_1)},methods:{weatherDaySwitch:function(){this.weatherSwitch=!0,this.$emit("listenEven","day")},weatherNightSwitch:function(){this.weatherSwitch=!1,this.$emit("listenEven","night")},getNowTime:function(){var t=new Date((new Date).getTime()).Format("hh:mm");this.nowTime=t},getHourWeatherData:function(e,a,i,r){t("log",e," at components\\thermometerCard\\ThermometerCard.vue:153"),this.weatherProphetData_17Hour=i,this.weatherProphetData_1=r,this.width=e+"%",this.height=a+"px",parseInt(i[0].temperature)%5==0?this.thermometerClassName="thermometer_"+parseInt(i[0].temperature):parseInt(i[0].temperature)%5==1||parseInt(i[0].temperature)%5==2?this.thermometerClassName="thermometer_"+5*parseInt(i[0].temperature/5):parseInt(i[0].temperature)%5==3||parseInt(i[0].temperature)%5==4?this.thermometerClassName="thermometer_"+5*(parseInt(i[0].temperature/5)+1):parseInt(i[0].temperature)%5==-1||parseInt(i[0].temperature)%5==-2?this.thermometerClassName="thermometer_"+-5*parseInt(i[0].temperature/5):parseInt(i[0].temperature)%5!=-3&&parseInt(i[0].temperature)%5!=-4||(this.thermometerClassName="thermometer_"+-5*(parseInt(i[0].temperature/5)+1))}}};e.default=a}).call(this,a("0de9")["default"])},e5e1:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("c215")),r=n(a("a77a"));function n(t){return t&&t.__esModule?t:{default:t}}var o={components:{ThermometerCard:r.default},data:function(){return{utils:i.default,date:"2020/03/27 08:00:00",timestamp:"",address:"",option:"",cuIconList:[{cuIcon:"light",badge:0,name:"天气",color:"white",value:"多云转晴"},{cuIcon:"recordfill",color:"white",badge:0,name:"最高温度",value:"12℃"},{cuIcon:"picfill",color:"white",badge:0,name:"最低温度",value:"-1℃"},{cuIcon:"noticefill",color:"white",badge:0,name:"日出",value:"07:37"},{cuIcon:"upstagefill",color:"white",badge:0,name:"日落",value:"18:48"},{cuIcon:"clothesfill",color:"white",badge:0,name:"持续时间",value:"11"},{cuIcon:"discoverfill",color:"white",badge:0,name:"白气象",value:"晴"},{cuIcon:"questionfill",color:"white",badge:0,name:"白气温",value:"15℃"},{cuIcon:"commandfill",color:"white",badge:0,name:"白体感",value:"2.1℃"},{cuIcon:"likefill",color:"white",badge:0,name:"白降水",value:"3ms"},{cuIcon:"footprint",color:"white",badge:0,name:"白风向",value:"西南偏西"},{cuIcon:"remind",color:"white",badge:0,name:"白风速",value:"18m/s"},{cuIcon:"activity",color:"white",badge:0,name:"白阵风速",value:"12m/s"},{cuIcon:"explore",color:"white",badge:0,name:"夜气象",value:"多云"},{cuIcon:"wifi",color:"white",badge:0,name:"夜温度",value:"-2℃"},{cuIcon:"rankfill",color:"white",badge:0,name:"夜体感",value:"2.4℃"},{cuIcon:"paint",color:"white",badge:0,name:"夜阵风速",value:"15m/s"},{cuIcon:"focus",color:"white",badge:0,name:"夜风向",value:"东南"}],cuIconListDay:[{cuIcon:"weather",badge:0,name:"天气",color:"white",value:"多云转晴"},{cuIcon:"maxTemperature",color:"white",badge:0,name:"最高温度",value:"12℃"},{cuIcon:"minTemperature",color:"white",badge:0,name:"最低温度",value:"-1℃"},{cuIcon:"sunRise",color:"white",badge:0,name:"日出",value:"07:37"},{cuIcon:"sunSet",color:"white",badge:0,name:"日落",value:"18:48"},{cuIcon:"sunDuration",color:"white",badge:0,name:"持续时间",value:"11"},{cuIcon:"dayWeather",color:"white",badge:0,name:"白气象",value:"晴"},{cuIcon:"dayTemperature",color:"white",badge:0,name:"白气温",value:"15℃"},{cuIcon:"dayRealFeel",color:"white",badge:0,name:"白体感",value:"2.1℃"},{cuIcon:"dayPrecipitation",color:"white",badge:0,name:"白降水",value:"3ms"},{cuIcon:"dayWindDirection",color:"white",badge:0,name:"白风向",value:"西南偏西"},{cuIcon:"dayWindSpeed",color:"white",badge:0,name:"白风速",value:"18m/s"},{cuIcon:"dayGust",color:"white",badge:0,name:"白阵风速",value:"12m/s"}],cuIconListNight:[{cuIcon:"weather",badge:0,name:"天气",color:"white",value:"多云转晴"},{cuIcon:"maxTemperature",color:"white",badge:0,name:"最高温度",value:"12℃"},{cuIcon:"minTemperature",color:"white",badge:0,name:"最低温度",value:"-1℃"},{cuIcon:"sunRise",color:"white",badge:0,name:"日出",value:"07:37"},{cuIcon:"sunSet",color:"white",badge:0,name:"日落",value:"18:48"},{cuIcon:"sunDuration",color:"white",badge:0,name:"持续时间",value:"11"},{cuIcon:"nightWeather",color:"white",badge:0,name:"夜气象",value:"多云"},{cuIcon:"nightTemperature",color:"white",badge:0,name:"夜温度",value:"-2℃"},{cuIcon:"nightRealFeel",color:"white",badge:0,name:"夜体感",value:"2.4℃"},{cuIcon:"nightPrecipitation",color:"white",badge:0,name:"夜降水",value:"3ms"},{cuIcon:"nightGust",color:"white",badge:0,name:"夜阵风速",value:"15m/s"},{cuIcon:"nightWindDirection",color:"white",badge:0,name:"夜风向",value:"东南"},{cuIcon:"nightWindSpeed",color:"white",badge:0,name:"夜风速",value:"18m/s"}],modalName:null,gridCol:4,gridBorder:!1,weatherProphetDataAll_17Hour:[],weatherProphetData_17Hour:[],weatherProphetDataAll_1:[],weatherProphetData_1:[],weatherSwitch:!0,windPowerStationId:"MHS_FDC",windPowerStations:[],username:"",password:""}},created:function(){this.address=this.getWindPowerStationNameToSessionStorage(),this.getWeatherData()},onShow:function(){this.address=this.getWindPowerStationNameToSessionStorage()},methods:{pushWindPowerStationNameToSessionStorage:function(t){uni.setStorageSync("windpowerstationName",t)},getWindPowerStationNameToSessionStorage:function(){return uni.getStorageSync("windpowerstationName"),uni.getStorageSync("windpowerstationName")},getWeatherData:function(){var e=this,a=this;this.socketTaskHour=uni.connectSocket({url:"ws://49.4.78.143:8081/websocket/pageNumber_3/functionNumber_2",success:function(e){t("log","websocket连接成功"," at pages\\index\\Index.vue:389")}}),this.socketTaskToday=uni.connectSocket({url:"ws://49.4.78.143:8081/websocket/pageNumber_2/functionNumber_1",success:function(e){t("log","websocket连接成功"," at pages\\index\\Index.vue:397")}}),this.socketTaskHour.onOpen(function(i){t("log","WebSocket连接正常打开中...!"," at pages\\index\\Index.vue:403"),e.is_open_socket=!0,e.socketTaskHour.onMessage(function(e){a.weatherProphetDataAll_17Hour=e.data,a.weatherProphetDataAll_17Hour=JSON.parse(e.data),a.weatherProphetData_17Hour=[];for(var i=0;i