(function(e){function t(t){for(var r,a,i=t[0],u=t[1],d=t[2],s=0,l=[];s0&&void 0!==arguments[0]?arguments[0]:{timeout:""},t={baseURL:g.host,headers:{token:Object(O["d"])(),"sso-token":Object(O["d"])(),"X-Forwarded-Token":Object(O["d"])()}};e.timeout&&(t.timeout=e.timeout);var n=new l["c"](t);return n.httpClient.interceptors.request.use((function(e){var t=Object(v["s"])(),n=Object(v["A"])(t),r=e.url;return-1!=r.indexOf("?")?e.url=e.url+"&"+n:e.url=e.url+"?"+n,e}),(function(e){})),n},T=function(e,t){return E().httpClient.post(e,t).then((function(e){var t=JSON.parse(JSON.stringify(e.data));return e.status>=200&&e.status<300?Promise.resolve(t):Promise.reject(t)})).catch(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.reject(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"accessToken",t=location.search,n=new Object;if(-1!=t.indexOf("?"))for(var r=t.substr(1),a=r.split("&"),o=0;o=3&&(!i||i>=3)?3:b>=2&&(!i||i>=2)?2:1:1,u=1/i}if(a.setAttribute("data-dpr",i),!o)if(o=r.createElement("meta"),o.setAttribute("name","viewport"),o.setAttribute("content","initial-scale="+u+", maximum-scale="+u+", minimum-scale="+u+", user-scalable=no"),a.firstElementChild)a.firstElementChild.appendChild(o);else{var p=r.createElement("div");p.appendChild(o),r.write(p.innerHTML)}function g(){var t=a.getBoundingClientRect().width;t/i>1366&&(t=1366*i);var n=t/10;a.style.fontSize=n+"px",d.rem=e.rem=n}e.addEventListener("resize",(function(){clearTimeout(n),n=setTimeout(g,300)}),!1),e.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(n),n=setTimeout(g,300))}),!1),"complete"===r.readyState?r.body.style.fontSize=12*i+"px":r.addEventListener("DOMContentLoaded",(function(e){r.body.style.fontSize=12*i+"px"}),!1),g(),d.dpr=e.dpr=i,d.refreshRem=g,d.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"===typeof e&&e.match(/rem$/)&&(t+="px"),t},d.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"===typeof e&&e.match(/px$/)&&(t+="rem"),t}}(window,window["lib"]||(window["lib"]={}))},"921b":function(e,t,n){},"93da":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["SET_AIR"]="SET_AIR",e["SET_LIGHT"]="SET_LIGHT"}(r||(r={}))},a873:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["SET_TOKEN"]="SET_TOKEN",e["SET_USER_NAME"]="SET_USER_NAME",e["SET_USER_ID"]="SET_USER_ID",e["SET_USER_PHONE"]="SET_USER_PHONE",e["SET_PROJECT_ID"]="SET_PROJECT_ID",e["SET_COMPANY_ID"]="SET_COMPANY_ID",e["SET_REMOTECONTROL"]="SET_REMOTECONTROL",e["SET_USER_MAC"]="SET_USER_MAC"}(r||(r={}))},afbc:function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return O}));n("d3b7");var r=n("6c02"),a=function(){return n.e("chunk-4fc65864").then(n.bind(null,"7abe"))},o=function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-c71b77a0"),n.e("chunk-ee9621f0"),n.e("chunk-390d4e2b"),n.e("chunk-3250642b")]).then(n.bind(null,"7f3f"))},c=function(){return Promise.all([n.e("chunk-c71b77a0"),n.e("chunk-390d4e2b"),n.e("chunk-6c149b5a")]).then(n.bind(null,"cda6"))},i=function(){return n.e("chunk-2bb42bd0").then(n.bind(null,"a89b"))},u=function(){return Promise.all([n.e("chunk-c71b77a0"),n.e("chunk-7f684f10")]).then(n.bind(null,"f299"))},d=function(){return n.e("chunk-c761207a").then(n.bind(null,"44dd"))},s=function(){return n.e("chunk-dcd3755c").then(n.bind(null,"c676"))},l=function(){return n.e("chunk-8c8fb174").then(n.bind(null,"f093"))},f=function(){return n.e("chunk-10ee235a").then(n.bind(null,"161f"))},m=function(){return n.e("chunk-016ba2f5").then(n.bind(null,"116c"))},h=function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-ee9621f0"),n.e("chunk-2e62b616")]).then(n.bind(null,"09de"))},b=[{path:"/",redirect:"/home",meta:{title:"首页",hideHeader:!0}},{path:"/home",component:a,name:"home",meta:{title:"首页",hideHeader:!0}},{path:"/envmonitor",component:o,name:"envmonitor",meta:{title:"环境控制",hideHeader:!0}},{path:"/envmonitor-detail",component:c,name:"envmonitorDetail",meta:{title:"环境详情",color:"#fff",hideHeader:!0}},{path:"/user-portrait",component:i,name:"userPortrait",meta:{title:"节能评分",color:"#FFE823",hideHeader:!0}},{path:"/energy-savig",component:u,name:"energySavig",meta:{title:"我的节能",color:"#ECEFF4",hideHeader:!0}},{path:"/energy-detail",component:d,name:"energyDetail",meta:{title:"我的节能详情 ",color:"#E5E5E5",hideHeader:!0}},{path:"/today-energy-detail",component:s,name:"todayEnergyDetail",meta:{title:"今天新增 ",color:"#E5E5E5",hideHeader:!0}},{path:"/energy-rank",component:l,name:"energyRank",meta:{title:"节能排名 ",color:"#E5E5E5",hideHeader:!0}},{path:"/integral-desc",component:f,name:"integralDesc",meta:{title:"积分说明 ",color:"#E5E5E5",hideHeader:!0}},{path:"/record",component:m,name:"Record",meta:{title:"调节记录 ",color:"#E5E5E5",hideHeader:!0}},{path:"/mySpace",component:h,name:"mySpace",meta:{title:"切换空间",color:"#f7f8fa",hideHeader:!0}},{path:"/choice-project",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-bd36926a")]).then(n.bind(null,"6e1d"))},name:"choiceProject",meta:{title:"选择所属公司名称",toName:"home",color:"#fff",hideHeader:!1,showLogoOut:!0}},{path:"/choice-space",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-095f9bd6")]).then(n.bind(null,"bd1a"))},name:"choiceSpace",meta:{title:"选择办公空间",color:"#F5F5F5",hideHeader:!1}},{path:"/set-main-space",component:function(){return n.e("chunk-3f722bdb").then(n.bind(null,"2804"))},name:"setMainSpace",meta:{title:"设置主空间",title1:"左滑动可删除空间",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data",component:function(){return n.e("chunk-778a7e22").then(n.bind(null,"aa6b"))},name:"mapData",meta:{title:"处理地图数据",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data-util",component:function(){return n.e("chunk-6637d5f0").then(n.bind(null,"4be3"))},name:"mapDataold",meta:{title:"处理地图数据",color:"#F5F5F5",hideHeader:!1}},{path:"/map-data-new",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-a8bcba9c")]).then(n.bind(null,"1d69"))},name:"mapDataNew",meta:{title:"地图数据处理",color:"#F5F5F5",hideHeader:!1}},{path:"/map-sichuan",component:function(){return Promise.all([n.e("chunk-d758a428"),n.e("chunk-3f89b088")]).then(n.bind(null,"e615"))},name:"map-sichuan",meta:{title:"四川大厦地图",color:"#F5F5F5",hideHeader:!1}}],p=[],g=Object(r["a"])({history:Object(r["b"])("/sgipad/"),routes:b});function O(){var e=g;g.matcher=e.matcher}t["c"]=g},b20f:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},cd49:function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("7a23"),a={class:"home"};function o(e,t,n,o,c,i){var u=Object(r["resolveComponent"])("Header"),d=Object(r["resolveComponent"])("router-view");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",a,[e.route.meta&&!e.route.meta.hideHeader?(Object(r["openBlock"])(),Object(r["createBlock"])(u,{key:0,color:e.route.meta.color,metaObj:e.route.meta},null,8,["color","metaObj"])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(e.route.meta.hideHeader?"":"ptheader"),style:Object(r["normalizeStyle"])({background:e.route.meta.color})},null,6),(Object(r["openBlock"])(),Object(r["createBlock"])(d,{key:e.route.fullPath}))])}var c=n("5530"),i=n("3ba9"),u=n("6c02"),d=n("bc3a"),s=n.n(d),l=Object(r["defineComponent"])({components:{Header:i["a"]},setup:function(){var e=Object(u["c"])(),t=Object(r["reactive"])({route:e,transitionName:"slide-right",showHeader:!1,getPadVersion:function(){s.a.get("/sgipad/pad_mtime").then((function(e){var t=e.data||{},n=t.pad_mtime,r=localStorage.getItem("pad_mtime");r&&r!==n?(localStorage.setItem("pad_mtime",n),window.location.reload()):localStorage.setItem("pad_mtime",n)}))},timerPadVersion:function(){setInterval((function(){t.getPadVersion()}),5e3)}});return Object(r["nextTick"])((function(){var e=window.document;e.addEventListener("touchstart",(function(e){e.touches.length>1&&e.preventDefault()})),e.addEventListener("gesturestart",(function(e){e.preventDefault()}))})),Object(r["onMounted"])((function(){t.timerPadVersion()})),Object(c["a"])({},Object(r["toRefs"])(t))}}),f=(n("0915"),n("6b0d")),m=n.n(f);const h=m()(l,[["render",o],["__scopeId","data-v-4f0c3717"]]);var b=h,p=n("afbc"),g=n("0613"),O=(n("758b"),n("b20f"),n("d399")),v=(n("e7e5"),n("ad06")),E=(n("c3a6"),n("0b33")),T=(n("da3c"),n("5e46")),k=(n("bda7"),n("543e")),S=(n("ac1e"),n("e41f")),j=(n("8a58"),n("96cf"),n("1da1")),y=n("d167"),_=n("5581"),N=n("59b9");p["c"].beforeEach(function(){var e=Object(j["a"])(regeneratorRuntime.mark((function e(t,n,r){var a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=Object(g["b"])(),o=Object(N["a"])("mac"),o&&Object(_["f"])(o),e.next=5,a.dispatch(y["a"].ACTION_GET_USER_INFO,void 0);case 5:r();case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()),p["c"].afterEach((function(e){}));var I=Object(r["createApp"])(b),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;O["a"].loading({duration:e,forbidClick:!0})},M=function(){O["a"].clear()};I.config.globalProperties.$imgUrl="http://api.sagacloud.cn/dp-auxiliary/image-service/common/image_get?systemId=dataPlatform",I.config.globalProperties.$fileUrl="http://api.sagacloud.cn/dp-auxiliary/image-service/common/file_get?systemId=dataPlatform",I.config.globalProperties.$toast=O["a"],I.config.globalProperties.$loadingStart=w,I.config.globalProperties.$loadinngEnd=M,I.use(O["a"]).use(v["b"]).use(T["a"]).use(E["a"]).use(k["b"]).use(S["b"]).use(g["a"]).use(p["c"]).mount("#app")},d167:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e["ACTION_LOGIN"]="ACTION_LOGIN",e["ACTION_RESET_TOKEN"]="ACTION_RESET_TOKEN",e["ACTION_GET_USER_INFO"]="ACTION_GET_USER_INFO",e["ACTION_CHANGE_ROLES"]="ACTION_CHANGE_ROLES",e["ACTION_LOGIN_OUT"]="ACTION_LOGIN_OUT",e["SET_USER_MAC"]="SET_USER_MAC",e["ACTION_GET_WORKSPACE"]="ACTION_GET_WORKSPACE"}(r||(r={}))},d257:function(e,t,n){"use strict";n.d(t,"A",(function(){return o})),n.d(t,"s",(function(){return c})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"r",(function(){return d})),n.d(t,"h",(function(){return s})),n.d(t,"x",(function(){return l})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"B",(function(){return b})),n.d(t,"o",(function(){return p})),n.d(t,"y",(function(){return v})),n.d(t,"v",(function(){return E})),n.d(t,"p",(function(){return T})),n.d(t,"u",(function(){return k})),n.d(t,"j",(function(){return S})),n.d(t,"z",(function(){return j})),n.d(t,"i",(function(){return y})),n.d(t,"t",(function(){return _})),n.d(t,"l",(function(){return N})),n.d(t,"g",(function(){return I})),n.d(t,"q",(function(){return w})),n.d(t,"k",(function(){return M})),n.d(t,"n",(function(){return C})),n.d(t,"d",(function(){return R})),n.d(t,"w",(function(){return D})),n.d(t,"e",(function(){return A}));n("99af"),n("c975"),n("d81d"),n("b680"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("4d90"),n("5319"),n("1276"),n("53ca");var r=n("0613"),a=n("66d6"),o=(n("a78e"),function(e){var t="";for(var n in e)-1!==e[n]&&(t+=n+"="+e[n]+"&");return t=t.substring(0,t.length-1),t}),c=function(){var e=r["a"].state.user,t={openid:e.openid,userId:e.userId,mac:e.mac,pubname:a["a"].pubname,projectId:e.projectId};return e.userName&&(t.userName=e.userName),e.userPhone&&(t.userPhone=e.userPhone),t},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"YYYYMMDD",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=t||new Date,r=n.getFullYear(),a=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),c=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes();return"YYYY年MM月DD日"===e?r+"年"+a+"月"+o+"日":"YYYY.MM"===e?r+"."+a:"YYYYMM"===e?r+""+a:"YYYY-MM-DD"===e?r+"-"+a+"-"+o:"YYYY.MM.DD HH:mm"===e?r+"."+a+"."+o+" "+c+":"+i:r+""+a+o},u=function(e){return e?e.replace(/^(\d{4})(\d{2})(\d{2})$/,"$1-$2-$3"):""},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new Date;t.setTime(t.getTime()+864e5);var n=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate();return n+e+r+e+a};function s(){return(new Date).getHours()}function l(e,t){return t?"".concat("/sgipad/","images/").concat(e,"/").concat(t):""}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new Date;t.setFullYear(t.getFullYear()+e);var n=t.getFullYear(),r=t.getMonth()+1;return new Date(n+"/"+r)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new Date,n=t.getFullYear(),r=t.getMonth();return 0===r&&(r=12,n-=1),r<10&&(r="0"+r),"YYYY.MM"===e?n+"."+r:"YYYY年MM月"===e?n+"年"+r+"月":n+""+r}var h=function(e){var t=e?new Date(e):new Date,n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),a=t.getFullYear(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();return[a+"年"+n+"月",n+"月"+r+"日",o+":"+c]},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var n=JSON.stringify(t);sessionStorage.setItem(e,n)}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var t=sessionStorage.getItem(e);if(t)return JSON.parse(t)}return""},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t)if(t instanceof Object){var n=JSON.stringify(t);localStorage.setItem(e,n)}else localStorage.setItem(e,t)},O=function(e){if(e){var t=localStorage.getItem(e);return t?JSON.parse(t):""}return""},v=function(e){g(a["a"].storageSpaceInfoKey,e)},E=function(e,t,n){var r=O(a["a"].storageSpaceKey)?O(a["a"].storageSpaceKey):{},o="".concat(e,",").concat(t);r[o]=n,g(a["a"].storageSpaceKey,r)},T=function(){var e=O(a["a"].storageSpaceKey);return e},k=function(e,t){var n=O(a["a"].storageFloorKey)?O(a["a"].storageFloorKey):{};n[e]=t,g(a["a"].storageFloorKey,n)},S=function(){var e=O(a["a"].storageFloorKey);return e},j=function(e){var t=O(a["a"].historySearchSpaceKey),n=!1;t=t||[],t.map((function(t){t.id===e.id&&(n=!0)})),n||t.push(e),g(a["a"].historySearchSpaceKey,t)},y=function(){return O(a["a"].historySearchSpaceKey)?O(a["a"].historySearchSpaceKey):[]},_=function(e){var t=new Array("周日","周一","周二","周三","周四","周五","周六"),n=t[e];return n},N=function(){var e=new Date,t=e.getDay(),n=_(t);return n},I=function(e){return e.getDate()<10?"0"+e.getDate():e.getDate()},w=function(){for(var e=new Array,t=0;t<=24;t++){var n="00";n=t<10?"0"+t:t,e.push(n+":00"),t<24&&e.push(n+":30")}return e},M=function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getHours();return n<30?(t+=":00",r*=2):(t+=":30",r=2*r+1),[t,r]},C=function(){var e=new Date,t=e.getHours(),n=e.getMinutes();return t<10&&(t="0"+t),n<10&&(n="0"+n),t+""+n+"00"},R=function(e){if(e){var t=(e/1e4).toFixed(2);return t=t.replace(".",":"),t}return""},D=function(e,t,n){return n+""+Math.round(Math.random()*(t-e)+e)},A=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=arguments.length>5?arguments[5]:void 0,d=new Date,s=new Date(d.setTime(d.getTime()+864e5)),l=i("YYYY-MM-DD"),f=i("YYYY-MM-DD",s);o.map((function(e){var t=u(e.date),n=_(new Date(t).getDay());t==l?n="今日":t==f&&(n="次日"),e.week=n}));var m="",h=o[t].cusStartTime,b=o[t].cusEndTime;if(1===a){if("240000"===r){var p,g,O=null!==(p=null===(g=o[t])||void 0===g?void 0:g.customSceneList)&&void 0!==p?p:[];if("000000"===h&&(m=o[t].week,r=b),O.map((function(e){("000000"===e.startTime||r===e.startTime)&&(m=o[t].week,r=e.endTime),r===h&&(m=o[t].week,r=b)})),m){var v=t+1;return c.text=m,v