app.208b7c3a.js
291.0 KB
(function(t){function e(e){for(var i,o,s=e[0],c=e[1],l=e[2],h=0,d=[];h<s.length;h++)o=s[h],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&d.push(r[o][0]),r[o]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(t[i]=c[i]);u&&u(e);while(d.length)d.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],i=!0,s=1;s<n.length;s++){var c=n[s];0!==r[c]&&(i=!1)}i&&(a.splice(e--,1),t=o(o.s=n[0]))}return t}var i={},r={app:0},a=[];function o(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],c=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var u=c;a.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"034f":function(t,e,n){"use strict";n("85ec")},"038b":function(t,e,n){},"0674":function(t,e,n){"use strict";n("39b9")},"09c4":function(t,e,n){},"0bca":function(t,e,n){},"0c4d":function(t,e,n){"use strict";n("62f2")},"10be":function(t,e,n){},1156:function(t,e,n){"use strict";n("2ea8")},1718:function(t,e,n){"use strict";n("ceb9")},"1c90":function(t,e,n){},"1fd7":function(t,e,n){"use strict";n("5456")},2611:function(t,e,n){},2688:function(t,e,n){},2738:function(t,e,n){},"27d8":function(t,e,n){"use strict";n("038b")},"2a39":function(t,e,n){"use strict";n("851a")},"2ea8":function(t,e,n){},"2fad":function(t,e,n){"use strict";n("0bca")},"35e9":function(t,e,n){"use strict";n("8c60")},"39b9":function(t,e,n){},"3c4a":function(t,e,n){},"3ce3":function(t,e,n){},"3d7e":function(t,e,n){"use strict";n("1c90")},"3dbb":function(t,e,n){"use strict";n("c86f")},4016:function(t,e,n){"use strict";n("09c4")},"44db":function(t,e,n){},49420:function(t,e){function n(){var t=100,e=t/1920,n=window.innerWidth,i=window.innerHeight,r=1080*n/1920;i<r&&(n=1920*i/1080);var a=n*e;document.documentElement.style.fontSize=a+"px"}n(),window.onresize=function(){n()}},"49a6":function(t,e,n){"use strict";n("75b6")},"4a6c":function(t,e,n){"use strict";n("a265")},5456:function(t,e,n){},"56cd":function(t,e,n){"use strict";n("d609")},"56d7":function(t,e,n){"use strict";n.r(e);n("9e1f"),n("450d");var i=n("6ed5"),r=n.n(i),a=(n("0fb7"),n("f529")),o=n.n(a),s=(n("560b"),n("dcdc")),c=n.n(s),l=(n("672e"),n("101e")),u=n.n(l),h=(n("826b"),n("c263")),d=n.n(h),f=(n("6611"),n("e772")),p=n.n(f),g=(n("1f1a"),n("4e4b")),m=n.n(g),v=(n("5466"),n("ecdf")),_=n.n(v),w=(n("38a0"),n("ad41")),b=n.n(w),y=(n("0c67"),n("299c")),A=n.n(y),S=(n("bd49"),n("18ff")),C=n.n(S),k=(n("960d"),n("defb")),x=n.n(k),E=(n("cb70"),n("b370")),D=n.n(E),I=(n("a7cc"),n("df33")),L=n.n(I),R=(n("3db2"),n("58b8")),T=n.n(R),M=(n("1951"),n("eedf")),O=n.n(M),B=(n("10cb"),n("f3ad")),U=n.n(B),P=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("2b0e")),z=(n("2738"),n("0fae"),n("c740"),n("a434"),n("2f62"));P["default"].use(z["a"]);var j=new z["a"].Store({state:{rotate:!1,KanbanState:!0,latestWarning:null,isScreenLogin:!1,screenMngInfo:null,isLogin:!1,loginUserInfo:null,callStatus:"",isInviter:!1,isAccepted:!1,meetingUserIdList:[],muteVideoUserIdList:[],muteAudioUserIdList:[],unreadCount:0,unreadList:[],alarmSkId:"",ShowAlarm:!1,ShowShuiku:!1,ShowHomePage:!1,ShowAudioCall:!1,ShowVideoCall:!1,tableShow:!1,tabData:{},RainName:"",RainId:null,RainMenuData:null,Warningpopup:!1,ASeparateMonitorDisplay:!1},mutations:{setRainMenuData:function(t,e){t.RainMenuData=e},setRainId:function(t,e){t.RainId=e},setRainName:function(t,e){t.RainName=e},setRainData:function(t,e){t.tabData=e},tableShowON:function(t){t.tableShow=!0},tableShowOFF:function(t){t.tableShow=!1},KanbanState:function(t){!1===t.KanbanState?t.KanbanState=!0:t.KanbanState=!1},mutarotate:function(t){!1===t.rotate?t.rotate=!0:t.rotate=!1},screenLoginSuccess:function(t,e){t.isScreenLogin=!0,t.screenMngInfo=e},screenLogoutSuccess:function(t){t.isScreenLogin=!1,t.screenMngInfo=null,t.ShowShuiku=!1,t.ShowHomePage=!1,t.ShowAudioCall=!1,t.ShowVideoCall=!1},userLoginSuccess:function(t){t.isLogin=!0},userLogoutSuccess:function(t){t.isLogin=!1,t.loginUserInfo=null},setLoginUserInfo:function(t,e){var n=e.userId,i=e.userSig;t.loginUserInfo={userId:n,userSig:i}},updateIsInviter:function(t,e){t.isInviter=e},updateCallStatus:function(t,e){t.callStatus=e},userJoinMeeting:function(t,e){-1===t.meetingUserIdList.indexOf(e)&&t.meetingUserIdList.push(e)},userAccepted:function(t,e){t.isAccepted=e},userLeaveMeeting:function(t,e){var n=t.meetingUserIdList.findIndex((function(t){return t===e}));n>=0&&t.meetingUserIdList.splice(n,1)},dissolveMeeting:function(t){t.meetingUserIdList=[],t.isMuteVideoUserIdList=[],t.isMuteAudioUserIdList=[]},updateMuteVideoUserIdList:function(t,e){t.muteVideoUserIdList=e},updateMuteAudioUserIdList:function(t,e){t.muteAudioUserIdList=e},updateShowShuiku:function(t,e){t.ShowShuiku=e},updateShowHomePage:function(t,e){t.ShowHomePage=e},updateShowAudioCall:function(t,e){t.ShowAudioCall=e},updateShowVideoCall:function(t,e){t.ShowVideoCall=e},updateUnreadCount:function(t,e){t.unreadCount=e},updateUnreadList:function(t,e){t.unreadList=e},updateLatestWarning:function(t,e){t.latestWarning=e},updateAlarmSkId:function(t,e){t.alarmSkId=e},updateShowAlarm:function(t,e){t.ShowAlarm=e},updateShowWarning:function(t,e){t.Warningpopup=e},updateASeparateMonitor:function(t,e){t.ASeparateMonitorDisplay=e}},actions:{},modules:{}}),N=n("8c4f"),F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main"},[t._m(0),n("div",{staticClass:"content"},[n("div",{staticClass:"content-left"}),n("div",{staticClass:"content-right"},[n("div",{staticClass:"right-infp"},[n("div",{staticClass:"right-infp-name"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],attrs:{type:"text",name:"account",placeholder:"请输入账号",required:"",autocomplete:"off"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=e.target.value)}}})]),n("div",{staticClass:"right-infp-name"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",name:"password",placeholder:"请输入密码",autocomplete:"off"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),n("div",{staticClass:"right-infp-btn"},[n("button",{staticClass:"btn",on:{click:t.screenLogin}},[t._v("登录")])])])])])])},W=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("div",{staticClass:"header-center fl"},[n("div",{staticClass:"header-title"},[t._v(" 个旧智慧水库安全监测指挥云平台 ")]),n("div",{staticClass:"header-img"})]),n("div",{staticClass:"header-bottom fl"})])}],H=n("1da1"),V=(n("96cf"),n("bc3a")),Z=n.n(V),G="https://gjsk.xp.yn.cn/api/";function J(t){var e=Z.a.create({baseURL:G,timeout:5e3});return Z.a.defaults.withCredentials=!0,e.interceptors.request.use((function(t){return t}),(function(t){})),e.interceptors.response.use((function(t){return t.data}),(function(t){})),e(t)}function K(t){return J({url:"inspection/staff/screen_mng_login",method:"POST",data:t})}var Y={name:"App",components:{},data:function(){return{account:"",password:"",UserID:""}},mounted:function(){var t=document.getElementById("Loading");null!=t&&t.remove()},methods:{screenLogin:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.account){t.next=3;break}return this.$message.error("请输入大屏管理员账号"),t.abrupt("return");case 3:if(this.password){t.next=6;break}return this.$message.error("请输入登录密码"),t.abrupt("return");case 6:e={account:this.account,password:this.password},K(e).then((function(t){1==t.code?n.$store.commit("screenLoginSuccess",t.data):n.$message.error(t.msg)}));case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},q=Y,X=(n("9ce0"),n("2877")),Q=Object(X["a"])(q,F,W,!1,null,null,null),tt=Q.exports,et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("boardHeaderMain"),t.kanbanShow?n("leftMain"):t._e(),t.kanbanShow?n("LeftShadow"):t._e(),t.kanbanShow?n("rightMain"):t._e(),t.kanbanShow?n("rightShadow"):t._e(),t.kanbanShow?n("downMain"):t._e(),t.tableShow?n("ASimpleTable"):t._e(),n("mapBg")],1)},nt=[],it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"map_bg"},[n("div",{staticClass:"map_bg_content",attrs:{id:"container"}},[n("infoWindow",{directives:[{name:"show",rawName:"v-show",value:t.isShowInfoWindow,expression:"isShowInfoWindow"}],ref:"infoWindow",attrs:{"info-window":t.infoWindowData},on:{shutdown:t.offWarning}}),n("transition",{attrs:{name:"fade"}},[t.ShowShuiku?n("Servioswindows",{ref:"Servioswindows"}):t._e()],1),n("transition",{attrs:{name:"fade"}},[t.Showtable?n("Tablepopup"):t._e()],1),n("transition",{attrs:{name:"fade"}},[t.ShowAlarm?n("Alarm",{ref:"Alarm"}):t._e()],1),n("transition",{attrs:{name:"fade"}},[t.PersonnelDetailsShow?n("PersonnelDetails",{attrs:{"inspection-data":t.inspection_data},on:{offDetails:t.offPersonnel}}):t._e()],1)],1),n("div",{staticStyle:{position:"absolute",right:"80px",top:"14px","z-index":"9999"},on:{click:t.logout}},[n("dv-decoration-9",{staticStyle:{width:"40px",height:"40px",color:"#66cccc","font-size":"12px"}},[t._v("注销 ")])],1)])},rt=[],at=n("5530"),ot=(n("ac1f"),n("466d"),n("d81d"),n("d3b7"),n("159b"),n("b0c0"),n("862d3")),st=n.n(ot),ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"transition_box"},[n("dv-border-box-13",{staticClass:"Reservoir_box",attrs:{reverse:!0,dur:"8","background-color":"rgba(0,0,0,.2)"}},[n("transition",{attrs:{name:"fade"}},[t.hkShutdown1?n("HkWindows",{staticStyle:{position:"absolute",top:"-200px",left:"-200px"},attrs:{title:t.serviosdata.name,reservoir_id:t.serviosdata.id}}):t._e()],1),n("transition",{attrs:{name:"fade"}},[t.ShowHomePage?n("HomePage",{ref:"ShowHomePageRef",staticStyle:{position:"absolute",top:"-200px",left:"-200px"},attrs:{title:t.trtc_title,"staff-list":t.staffList}}):t._e()],1),n("div",{staticClass:"box_1"},[n("dv-decoration-11",{staticClass:"reservoir_box_title"},[t._v(t._s(t.serviosdata.name))]),n("Shutdown",{staticClass:"off_style",nativeOn:{click:function(e){return t.shutdown()}}})],1),n("div",{staticClass:"partition_box"}),n("div",{staticClass:"main_box"},[n("div",{staticClass:"box_2"},[n("div",{staticClass:"box_2_1"},[n("dv-border-box-12",[n("div",{staticClass:"servios_data"},[t._v("水库名称:"+t._s(t.serviosdata.name))]),n("div",{staticClass:"servios_data"},[t._v("库容量:"+t._s(t.capacityof_value))]),n("div",{staticClass:"servios_data"},[t._v("始建时间:"+t._s(t.serviosdata.buildtime_text))]),n("div",{staticClass:"servios_data"},[t._v("建成时间:"+t._s(t.serviosdata.completetime_text))])])],1),n("div",{staticClass:"box_2_2",on:{click:function(e){return t.hkWindows()}}},[n("div",{attrs:{id:"animation_box"}},[n("dv-decoration-6",{staticStyle:{width:"100%",height:"30px",position:"absolute",bottom:"3px"}})],1),n("div",{attrs:{id:"img_box"}},[n("img",{attrs:{src:t.imgurl,alt:""}})])]),n("div",{staticClass:"box_2_3"},[n("dv-border-box-12",[n("div",{staticClass:"servios_data"},[t._v("隶属部门:"+t._s(t.serviosdata.probation_unit))]),n("div",{staticClass:"servios_data"},[t._v("当前水位:"+t._s(t.water_value))]),n("div",{staticClass:"servios_data"},[t._v("当前雨量:"+t._s(t.rain_value))]),n("div",{staticClass:"servios_data"},[t._v("水库规模:"+t._s(t.serviosdata.reservoir_level))])])],1)]),n("div",{staticClass:"button_box"},[n("el-button",{staticClass:"zdy_btn",attrs:{name:"查看监控"},nativeOn:{click:function(e){return t.hkWindows()}}},[t._v("查看监控")]),n("el-button",{staticClass:"zdy_btn",attrs:{name:"远程调度"},nativeOn:{click:function(e){return t.showHome()}}},[t._v("远程调度")])],1)])],1)],1)},lt=[],ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"hk_box"},[n("dv-border-box-13",{staticClass:"Reservoir_box",attrs:{reverse:!0,dur:"8","background-color":"rgba(0,0,0,1)"}},[n("div",{staticClass:"box_1"},[n("dv-decoration-11",{staticClass:"reservoir_box_title"},[t._v(t._s(t.title)+" ")]),n("Shutdown",{staticClass:"off_style",nativeOn:{click:function(e){return t.shutdown()}}}),n("el-tooltip",{staticClass:"item",staticStyle:{color:"#fff"},attrs:{effect:"dark",placement:"top"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("首次呼叫前请先进行麦克风、摄像头、"),n("br"),t._v("扬声器的设备检测")]),n("a",{staticClass:"equip-test",attrs:{target:"_blank",href:"https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html"}},[n("dv-decoration-9",{staticStyle:{width:"28px",height:"28px",margin:"10px auto 0 auto"}},[n("i",{staticClass:"el-icon-s-opportunity"})])],1)])],1),n("div",{staticClass:"partition_box"}),n("div",{staticClass:"main_box"},[n("div",{staticClass:"box_2"},[n("div",{staticClass:"box_2_2"},[n("div",{attrs:{id:"animation_box"}}),n("div",{attrs:{id:"img_box"}},t._l(t.staffList,(function(e,i){return n("div",{staticClass:"staff",class:{active:t.chooseindex==i},on:{click:function(n){return t.checkStaff(i,e)}}},[n("span",{class:e.online_status},[t._v(t._s(e.online_status_cn))]),t._v(" "+t._s(e.staff_name)+" "),t._v(" 【"+t._s(e.depart_name)+"】 ")])})),0)]),n("div",{staticClass:"box_2_1"},[n("dv-decoration-3",{staticClass:"servios_data2"}),n("dv-decoration-3",{staticClass:"servios_data2"})],1),n("div",{staticClass:"box_2_3"},[n("div",{staticClass:"servios_data",on:{click:t.audioCall}},[n("i",{staticClass:"el-icon-microphone microphone"}),t._v("语音呼叫"+t._s(t.showCallTips)+" ")]),n("div",{staticClass:"servios_data",on:{click:t.videoCall}},[n("i",{staticClass:"el-icon-video-camera video-camera"}),t._v("视频呼叫"+t._s(t.showCallTips)+" ")])])])])]),n("transition",{attrs:{name:"fade"}},[t.ShowAudioCall?n("AudioCall",{ref:"ShowAudioCallRef",attrs:{"to-staff":t.toStaff}}):t._e()],1),n("transition",{attrs:{name:"fade"}},[t.ShowVideoCall?n("VideoCall",{ref:"ShowVideoCallRef",attrs:{"to-staff":t.toStaff}}):t._e()],1)],1)},ht=[],dt=(n("e9c4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"main"}},[n("span",[n("svg",{staticClass:"icon",attrs:{t:"1646725057891",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","p-id":"2191"}},[n("path",{attrs:{d:"M670.343843 369.643782c-6.248308-6.248308-16.370853-6.248308-22.61916 0L511.991302 505.376139 376.257921 369.643782c-6.247284-6.248308-16.386202-6.248308-22.61916 0-6.248308 6.247284-6.248308 16.370853 0 22.61916l135.732357 135.732357L353.639784 663.72868c-6.248308 6.248308-6.248308 16.370853 0 22.61916 6.232958 6.248308 16.370853 6.248308 22.61916 0l135.733381-135.733381 135.733381 135.733381c6.248308 6.248308 16.370853 6.248308 22.61916 0s6.248308-16.370853 0-22.61916L534.611485 527.995299l135.733381-135.732357C676.593174 386.014634 676.593174 375.891066 670.343843 369.643782zM511.991302 128.092353c-212.025974 0-383.906623 171.880649-383.906623 383.906623 0 212.026998 171.880649 383.907647 383.906623 383.907647 212.026998 0 383.922996-171.880649 383.922996-383.907647C895.914298 299.973002 724.0183 128.092353 511.991302 128.092353zM511.991302 863.915002c-194.359616 0-351.913978-157.556409-351.913978-351.915002s157.555385-351.913978 351.913978-351.913978c194.344267 0 351.915002 157.555385 351.915002 351.913978S706.335568 863.915002 511.991302 863.915002z","p-id":"2192"}})])])])}),ft=[],pt={methods:{shutdown:function(){}}},gt=pt,mt=(n("6395"),Object(X["a"])(gt,dt,ft,!1,null,"546c0f0e",null)),vt=mt.exports,_t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dv-border-box-1",{staticClass:"audio-call-section",attrs:{"background-color":"rgba(0, 0, 0, 0.9)"}},[n("div",[n("audio",{attrs:{id:"callout",src:t.callOutMusic}})]),n("div",{staticClass:"audio-call-section-header"},[t._v("语音呼叫 ")]),n("div",{staticClass:"audio-call-section-title"},[t._v(t._s(t.toStaff.staff_name)+"-"+t._s(t.toStaff.depart_name)+"-"+t._s(t.toStaff.mobile))]),n("search-user",{attrs:{"call-flag":t.callFlag,"to-staff":t.toStaff,"cancel-flag":t.cancelFlag},on:{closeCall:t.closeCall,callUser:t.handleCallUser,cancelCallUser:t.handleCancelCallUser}}),n("div",{class:{"audio-conference":!0,"is-show":t.isShowAudioCall}},[n("div",{staticClass:"audio-conference-header"},[t._v("语音通话区域")]),n("div",{staticClass:"audio-conference-list"},t._l(t.meetingUserIdList,(function(e){return n("div",{key:"audio-"+e,class:{"user-audio-container":!0,"is-me":e===t.loginUserInfo.userId}},[n("div",{staticClass:"user-status"},[n("div",{class:{"user-audio-status":!0,"is-mute":t.isUserMute(t.muteAudioUserIdList,e)}})]),n("div",{staticClass:"audio-item-username"},[t._v(t._s(t.userId2User[e]&&t.userId2User[e].name))])])})),0),n("div",{staticClass:"audio-conference-action"},[n("el-button",{staticClass:"action-btn",attrs:{type:"success"},on:{click:t.toggleAudio}},[t._v(t._s(t.isAudioOn?"关闭麦克风":"打开麦克风")+" ")]),n("el-button",{staticClass:"action-btn",attrs:{type:"danger"},on:{click:t.handleHangup}},[t._v("挂断")])],1)])],1)},wt=[],bt=(n("4de4"),n("99af"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return"connected"!==t.callStatus?n("div",{staticClass:"search-user-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"connected"!==t.callStatus,expression:"callStatus !== 'connected'"}],staticClass:"search-user-list"},["calling"===t.callStatus&&t.isInviter?n("div",{staticClass:"calling-user-footer"},[n("el-button",{staticClass:"user-item-join-btn calling",attrs:{type:"success"}},[t._v("呼叫中...")]),n("el-button",{staticClass:"user-item-join-btn",attrs:{disabled:t.cancel,loading:t.cancel},on:{click:t.handleCancelCallBtnClick}},[t._v("挂断")])],1):n("div",[n("el-button",{staticClass:"user-item-join-btn",attrs:{disabled:t.call},on:{click:function(e){return t.handleCallBtnClick(t.toStaff.mobile)}}},[t._v("呼叫")]),n("el-button",{staticClass:"user-item-join-btn",on:{click:t.closeCall}},[t._v("关闭")])],1)])]):t._e()}),yt=[];n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("7db0"),n("fb6a"),n("5319");function At(t){var e=t.token,n=t.phoneNum;localStorage.setItem("userInfo",JSON.stringify({token:e,phoneNum:n}))}function St(){try{return JSON.parse(localStorage.getItem("searchHistory")||"[]")}catch(t){return[]}}function Ct(t){}function kt(t){return J({url:"getui/Push/pushToSingleByCid",method:"POST",data:t})}var xt={name:"SearchUser",props:{callFlag:{type:Boolean},cancelFlag:{type:Boolean},toStaff:{type:Object}},data:function(){return{searchInput:"",callUserId:"",searchResultList:[],searchHistoryUser:St(),call:!1,cancel:!1}},computed:Object(at["a"])(Object(at["a"])({},Object(z["b"])({loginUserInfo:function(t){return t.loginUserInfo},meetingUserIdList:function(t){return t.meetingUserIdList},callStatus:function(t){return t.callStatus},isAccepted:function(t){return t.isAccepted},isInviter:function(t){return t.isInviter}})),{},{userList:function(){return""===this.searchInput&&0!==this.searchHistoryUser.length?this.searchHistoryUser:this.searchResultList}}),watch:{callStatus:function(t,e){t!==e&&"connected"===t&&(this.searchInput="",this.searchResultList=[]),"idle"===t&&(this.callUserId="")},callFlag:function(t){this.call=t},cancelFlag:function(t){this.cancel=t}},methods:{closeCall:function(){this.$emit("closeCall")},handleCallBtnClick:function(t){t!==this.loginUserInfo.userId?(this.call=!0,this.callUserId=t,this.$emit("callUser",{param:t}),this.sendNoticetoStaff()):this.$message("请输入正确用户ID")},sendNoticetoStaff:function(){var t=this;if(""!=this.toStaff.clientid&&null!=this.toStaff.clientid){var e={cid:this.toStaff.clientid,title:"[总台]邀请你语音通话",content:"点击立即查看",scene_type:"audio_call"};kt(e).then((function(e){1==e.code&&(t.staffList=e.data)}))}},handleCancelCallBtnClick:function(){this.cancel=!0,this.$emit("cancelCallUser")}}},Et=xt,Dt=(n("8a5d"),Object(X["a"])(Et,bt,yt,!1,null,"3d2375f4",null)),It=Dt.exports;function Lt(t){return Rt.apply(this,arguments)}function Rt(){return Rt=Object(H["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}}),t)}))),Rt.apply(this,arguments)}function Tt(t){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(H["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",{name:e,avatar:"",userId:e});case 1:case"end":return t.stop()}}),t)}))),Mt.apply(this,arguments)}var Ot={name:"AudioCall",components:{SearchUser:It},computed:Object(at["a"])({},Object(z["b"])({loginUserInfo:function(t){return t.loginUserInfo},callStatus:function(t){return t.callStatus},isInviter:function(t){return t.isInviter},meetingUserIdList:function(t){return t.meetingUserIdList},muteAudioUserIdList:function(t){return t.muteAudioUserIdList},ShowAudioCall:function(t){return t.ShowAudioCall}})),props:{toStaff:{type:Object,default:[]}},data:function(){return{isShowAudioCall:!1,isAudioOn:!0,userId2User:{},callFlag:!1,cancelFlag:!1,callOutMusic:"https://gjsk.xp.yn.cn/uploads/music/call_out.mp3"}},watch:{callStatus:function(t,e){t!==e&&"connected"===t&&(this.startMeeting(),this.updateUserId2UserInfo(this.meetingUserIdList)),t!==e&&"idle"===t&&this.closeCall()},meetingUserIdList:function(t,e){t===e&&t.length===e.length||this.updateUserId2UserInfo(t)}},mounted:function(){"connected"!==this.callStatus||this.isInviter||(this.startMeeting(),this.updateUserId2UserInfo(this.meetingUserIdList));var t=document.querySelector("#callout");t.onended=function(){t.load(),t.play()}},destroyed:function(){this.$store.commit("updateMuteVideoUserIdList",[]),this.$store.commit("updateMuteAudioUserIdList",[]),"connected"===this.callStatus&&(this.$trtcCalling.hangup(),this.$store.commit("updateCallStatus","idle"),this.closeCall())},methods:{audioAutoPlay:function(){var t=document.getElementById("callout");t.play(),document.removeEventListener("touchstart",this.audioAutoPlay)},audioAutoPause:function(){var t=document.getElementById("callout");t.pause(),document.removeEventListener("touchstart",this.audioAutoPlay)},closeCall:function(){this.$emit("closeCall"),this.$store.commit("updateShowAudioCall",!1),this.audioAutoPause()},handleCallUser:function(t){var e=this,n=t.param;this.callFlag=!0,this.$trtcCalling.call({userID:n,type:this.TrtcCalling.CALL_TYPE.AUDIO_CALL}).then((function(){e.callFlag=!1,e.$store.commit("userJoinMeeting",e.loginUserInfo.userId),e.$store.commit("updateCallStatus","calling"),e.$store.commit("updateIsInviter",!0),e.audioAutoPlay()}))},handleCancelCallUser:function(){var t=this;this.cancelFlag=!0,this.$trtcCalling.hangup().then((function(){t.cancelFlag=!1,t.$store.commit("dissolveMeeting"),t.$store.commit("updateCallStatus","idle"),t.audioAutoPause()}))},toggleAudio:function(){var t=this;if(this.isAudioOn=!this.isAudioOn,this.$trtcCalling.setMicMute(!this.isAudioOn),this.isAudioOn){var e=this.muteAudioUserIdList.filter((function(e){return e!==t.loginUserInfo.userId}));this.$store.commit("updateMuteAudioUserIdList",e)}else{var n=this.muteAudioUserIdList.concat(this.loginUserInfo.userId);this.$store.commit("updateMuteAudioUserIdList",n)}},handleHangup:function(){this.$trtcCalling.hangup(),this.isShowVideoCall=!1,this.$store.commit("updateCallStatus","idle"),this.closeCall()},isUserMute:function(t,e){return-1!==t.indexOf(e)},startMeeting:function(){this.isShowAudioCall=!0,this.audioAutoPause()},updateUserId2UserInfo:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(e){var n,i,r,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n={},i=this.loginUserInfo.userId,r=0;case 3:if(!(r<e.length)){t.next=13;break}return a=e[r],t.next=7,Tt(a);case 7:o=t.sent,n[a]=o,i===a&&(n[a].name+="(me)");case 10:r++,t.next=3;break;case 13:this.userId2User=Object(at["a"])(Object(at["a"])({},this.userId2User),n);case 14:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),goto:function(t){this.$router.push(t)}}},Bt=Ot,Ut=(n("9561"),Object(X["a"])(Bt,_t,wt,!1,null,"efd0154c",null)),Pt=Ut.exports,zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dv-border-box-1",{staticClass:"video-call-section",attrs:{"background-color":"rgba(0, 0, 0, 0.9)"}},[n("div",[n("audio",{attrs:{id:"callout",src:t.callOutMusic}})]),n("div",{staticClass:"video-call-section-header"},[t._v("视频呼叫")]),n("div",{staticClass:"video-call-section-title"},[t._v(t._s(t.toStaff.staff_name)+"-"+t._s(t.toStaff.depart_name)+"-"+t._s(t.toStaff.mobile))]),n("search-user",{attrs:{"call-flag":t.callFlag,"to-staff":t.toStaff,"cancel-flag":t.cancelFlag},on:{closeCall:t.closeCall,callUser:t.handleCallUser,cancelCallUser:t.handleCancelCallUser}}),n("div",{class:{"video-conference":!0,"is-show":t.isShowVideoCall}},[n("div",{staticClass:"video-conference-header"},[t._v("视频通话区域")]),n("div",{staticClass:"video-conference-list"},t._l(t.meetingUserIdList,(function(e){return n("div",{key:"video-"+e,class:{"user-video-container":!0,"is-me":e===t.loginUserInfo.userId},attrs:{id:"video-"+e}},[n("div",{staticClass:"user-status"},[n("div",{class:{"user-video-status":!0,"is-mute":t.isUserMute(t.muteVideoUserIdList,e)}}),n("div",{class:{"user-audio-status":!0,"is-mute":t.isUserMute(t.muteAudioUserIdList,e)}})]),n("div",{staticClass:"video-item-username"},[t._v(t._s(t.userId2Name[e]||e))])])})),0),n("div",{staticClass:"video-conference-action"},[n("el-button",{staticClass:"action-btn",attrs:{type:"success"},on:{click:t.toggleVideo}},[t._v(t._s(t.isVideoOn?"关闭摄像头":"打开摄像头"))]),n("el-button",{staticClass:"action-btn",attrs:{type:"success"},on:{click:t.toggleAudio}},[t._v(t._s(t.isAudioOn?"关闭麦克风":"打开麦克风"))]),n("el-button",{staticClass:"action-btn",attrs:{type:"danger"},on:{click:t.handleHangup}},[t._v("挂断")])],1)])],1)},$t=[],jt={name:"VideoCall",components:{SearchUser:It},computed:Object(at["a"])({},Object(z["b"])({loginUserInfo:function(t){return t.loginUserInfo},callStatus:function(t){return t.callStatus},isInviter:function(t){return t.isInviter},meetingUserIdList:function(t){return t.meetingUserIdList},muteVideoUserIdList:function(t){return t.muteVideoUserIdList},muteAudioUserIdList:function(t){return t.muteAudioUserIdList},ShowVideoCall:function(t){return t.ShowVideoCall}})),props:{toStaff:{type:Object,default:[]}},data:function(){return{isShowVideoCall:!1,isVideoOn:!0,isAudioOn:!0,userId2Name:{},callFlag:!1,cancelFlag:!1,callOutMusic:"https://gjsk.xp.yn.cn/uploads/music/call_out.mp3"}},watch:{callStatus:function(t,e){t!==e&&"connected"===t&&(this.startMeeting(),this.updateUserId2Name(this.meetingUserIdList)),t!==e&&"idle"===t&&this.closeCall()},meetingUserIdList:function(t,e){t===e&&t.length===e||this.updateUserId2Name(t)}},mounted:function(){"connected"!==this.callStatus||this.isInviter||(this.startMeeting(),this.updateUserId2Name(this.meetingUserIdList));var t=document.querySelector("#callout");t.onended=function(){t.load(),t.play()}},destroyed:function(){this.$store.commit("updateMuteVideoUserIdList",[]),this.$store.commit("updateMuteAudioUserIdList",[]),"connected"===this.callStatus&&(this.$trtcCalling.hangup(),this.$store.commit("updateCallStatus","idle"),this.closeCall())},methods:{audioAutoPlay:function(){var t=document.getElementById("callout");t.play(),document.removeEventListener("touchstart",this.audioAutoPlay)},audioAutoPause:function(){var t=document.getElementById("callout");t.pause(),document.removeEventListener("touchstart",this.audioAutoPlay)},closeCall:function(){this.$emit("closeCall"),this.$store.commit("updateShowVideoCall",!this.ShowVideoCall),this.audioAutoPause()},handleCallUser:function(t){var e=this,n=t.param;this.callFlag=!0,this.$trtcCalling.call({userID:n,type:this.TrtcCalling.CALL_TYPE.VIDEO_CALL}).then((function(){e.callFlag=!1,e.$store.commit("userJoinMeeting",e.loginUserInfo.userId),e.$store.commit("updateCallStatus","calling"),e.$store.commit("updateIsInviter",!0),e.audioAutoPlay()}))},handleCancelCallUser:function(){var t=this;this.cancelFlag=!0,this.$trtcCalling.hangup().then((function(){t.cancelFlag=!1,t.$store.commit("dissolveMeeting"),t.$store.commit("updateCallStatus","idle"),t.audioAutoPause()}))},startMeeting:function(){var t=this;if(this.meetingUserIdList.length>=3){var e=this.meetingUserIdList[this.meetingUserIdList.length-1];this.$trtcCalling.startRemoteView({userID:e,videoViewDomID:"video-".concat(e)})}else{this.isShowVideoCall=!0,this.audioAutoPause(),this.$trtcCalling.startLocalView({userID:this.loginUserInfo.userId,videoViewDomID:"video-".concat(this.loginUserInfo.userId)});var n=this.meetingUserIdList.filter((function(e){return e!==t.loginUserInfo.userId}));n.forEach((function(e){t.$trtcCalling.startRemoteView({userID:e,videoViewDomID:"video-".concat(e)})}))}},handleHangup:function(){this.$trtcCalling.hangup(),this.isShowVideoCall=!1,this.$store.commit("updateCallStatus","idle"),this.closeCall()},toggleVideo:function(){var t=this;if(this.isVideoOn=!this.isVideoOn,this.isVideoOn){this.$trtcCalling.openCamera();var e=this.muteVideoUserIdList.filter((function(e){return e!==t.loginUserInfo.userId}));this.$store.commit("updateMuteVideoUserIdList",e)}else{this.$trtcCalling.closeCamera();var n=this.muteVideoUserIdList.concat(this.loginUserInfo.userId);this.$store.commit("updateMuteVideoUserIdList",n)}},toggleAudio:function(){var t=this;if(this.isAudioOn=!this.isAudioOn,this.$trtcCalling.setMicMute(!this.isAudioOn),this.isAudioOn){var e=this.muteAudioUserIdList.filter((function(e){return e!==t.loginUserInfo.userId}));this.$store.commit("updateMuteAudioUserIdList",e)}else{var n=this.muteAudioUserIdList.concat(this.loginUserInfo.userId);this.$store.commit("updateMuteAudioUserIdList",n)}},isUserMute:function(t,e){return-1!==t.indexOf(e)},updateUserId2Name:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(e){var n,i,r,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n={},i=this.loginUserInfo.userId,r=0;case 3:if(!(r<e.length)){t.next=14;break}if(a=e[r],this.userId2Name[a]){t.next=11;break}return t.next=8,Lt(a);case 8:o=t.sent,n[a]=o,i===a&&(n[a]+="(me)");case 11:r++,t.next=3;break;case 14:this.userId2Name=Object(at["a"])(Object(at["a"])({},this.userId2Name),n);case 15:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),goto:function(t){this.$router.push(t)}}},Nt=jt,Ft=(n("1718"),Object(X["a"])(Nt,zt,$t,!1,null,"02b03131",null)),Wt=Ft.exports;function Ht(t){return J({url:"alibaba/call/singleCallByTts",method:"POST",data:t})}var Vt={components:{Shutdown:vt,AudioCall:Pt,VideoCall:Wt},props:{title:{type:String},staffList:{type:Array,default:[]}},computed:Object(z["b"])({loginUserInfo:function(t){return t.loginUserInfo},ShowHomePage:function(t){return t.ShowHomePage},ShowAudioCall:function(t){return t.ShowAudioCall},ShowVideoCall:function(t){return t.ShowVideoCall}}),data:function(){return{enableEditName:!0,scrollHeight:"0px",toStaff:{},chooseindex:null,showCallTips:""}},mounted:function(){this.scrollHeight=.7*window.innerHeight+"px"},methods:{shutdown:function(){this.$store.commit("updateShowHomePage",!this.ShowHomePage)},checkStaff:function(t,e){this.chooseindex=t,this.toStaff=e,"Online"!=e.online_status?this.showCallTips="(阿里云电话语音通知上线)":this.showCallTips=""},sendAliCall:function(t){var e=this;if(this.toStaff.mobile){var n={mobile:this.toStaff.mobile,from_screen:this.loginUserInfo.userId,type:t};Ht(n).then((function(t){e.$message(t.msg)}))}else this.$message.error("巡检员手机号异常")},audioCall:function(){"{}"!=JSON.stringify(this.toStaff)&&void 0!=this.toStaff&&null!=this.toStaff?1!=this.ShowVideoCall?"Online"==this.toStaff.online_status?this.$store.commit("updateShowAudioCall",!this.ShowAudioCall):this.sendAliCall("语音"):this.$message("请结束视频通话界面后再操作"):this.$message("请先选择一个巡检人员")},videoCall:function(){"{}"!=JSON.stringify(this.toStaff)&&void 0!=this.toStaff&&null!=this.toStaff?1!=this.ShowAudioCall?"Online"==this.toStaff.online_status?this.$store.commit("updateShowVideoCall",!this.ShowVideoCall):this.sendAliCall("视频"):this.$message("请结束语音通话界面后再操作"):this.$message("请先选择一个巡检人员")},goto:function(t){this.$router.push(t)}}},Zt=Vt,Gt=(n("d330"),Object(X["a"])(Zt,ut,ht,!1,null,"05792b77",null)),Jt=Gt.exports;function Kt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="xunjian/patrol/getStaffList";return""!=t&&(n=n+"?reservoir_id="+t+"&except_id="+e),J({url:n})}function Yt(){return J({url:"reservoir/reservoir/getCountyInfo?id=4"})}function qt(t){return J({url:"reservoir/reservoir/getSkAttr?id="+t})}function Xt(t){return J({url:"reservoir/staff/last_staff_location_list",method:"POST",headers:{token:t}})}function Qt(t,e){return J({url:"reservoir/staff/staff_online_status",method:"POST",data:e,headers:{token:t}})}var te=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("button",{staticClass:"diy_button"},[t._v(t._s(t.name))])])},ee=[],ne={props:["name"]},ie=ne,re=(n("adae"),Object(X["a"])(ie,te,ee,!1,null,"5ebdb094",null)),ae=re.exports,oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dv-border-box-11",{staticClass:"hk_box",attrs:{title:t.title}},[n("div",{staticClass:"shutdown_bt",on:{click:function(e){return t.hkshutdown()}}},[n("span",[n("svg",{staticClass:"icon",attrs:{t:"1646725057891",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","p-id":"2191"}},[n("path",{attrs:{d:"M670.343843 369.643782c-6.248308-6.248308-16.370853-6.248308-22.61916 0L511.991302 505.376139 376.257921 369.643782c-6.247284-6.248308-16.386202-6.248308-22.61916 0-6.248308 6.247284-6.248308 16.370853 0 22.61916l135.732357 135.732357L353.639784 663.72868c-6.248308 6.248308-6.248308 16.370853 0 22.61916 6.232958 6.248308 16.370853 6.248308 22.61916 0l135.733381-135.733381 135.733381 135.733381c6.248308 6.248308 16.370853 6.248308 22.61916 0s6.248308-16.370853 0-22.61916L534.611485 527.995299l135.733381-135.732357C676.593174 386.014634 676.593174 375.891066 670.343843 369.643782zM511.991302 128.092353c-212.025974 0-383.906623 171.880649-383.906623 383.906623 0 212.026998 171.880649 383.907647 383.906623 383.907647 212.026998 0 383.922996-171.880649 383.922996-383.907647C895.914298 299.973002 724.0183 128.092353 511.991302 128.092353zM511.991302 863.915002c-194.359616 0-351.913978-157.556409-351.913978-351.915002s157.555385-351.913978 351.913978-351.913978c194.344267 0 351.915002 157.555385 351.915002 351.913978S706.335568 863.915002 511.991302 863.915002z","p-id":"2192"}})])])]),n("div",{staticClass:"jk",attrs:{id:"playWnd"}})])},se=[];function ce(t){return J({url:"reservoir/hkws/Hardware/getListByReservoir?id="+t})}var le=null,ue=(!!window.ActiveXObject||window,""),he=0,de=null;function fe(){le=new WebControl({szPluginContainer:"playWnd",iServicePortStart:15900,iServicePortEnd:15909,szClassId:"23BF3B0A-2C56-4D97-9C03-0CB103AA8F11",cbConnectSuccess:function(){le.JS_StartService("window",{dllPath:"./VideoPluginConnect.dll"}).then((function(){le.JS_SetWindowControlCallback({cbIntegrationCallBack:pe}),le.JS_CreateWnd("playWnd",$(".jk").width(),$(".jk").height()).then((function(){ge(),setTimeout((function(){de=setInterval((function(){le.JS_Resize($(".jk").width(),$(".jk").height())}),3e3)}),1e3)}))}),(function(){}))},cbConnectError:function(){le=null,$("#playWnd").html("<div id='start'><div style='font-size: 20px'>插件未启动,正在尝试启动,请稍候...<div></div>"),$("#start").css({padding:"20px",fontSize:"20px",marginTop:"25%",color:"#555"}),WebControl.JS_WakeUp("VideoWebPlugin://"),he++,he<3?setTimeout((function(){fe()}),3e3):($("#playWnd").html("\n <div id='MonitorPrompt'>\n <div id='No_plugin'>当前计算机未安装插件,请点击下方按钮下载插件,安装插件后重启软件生效。</div>\n <a id='hktsA' href='https://gjsk.xp.yn.cn/monitor/VideoWebPlugin.exe'><button id=\"button\">下载插件</button></a>\n </div>"),$("#MonitorPrompt").css({padding:"20px",fontSize:"20px",marginTop:"20%",color:"#555"}),$("#button").css({width:"200px",height:"50px",fontSize:"14px",backgroundColor:" #00A7F0",border:"none",color:"#FFFFFF",borderRadius:"10px",marginTop:"50px"}))},cbConnectClose:function(t){le=null}})}function pe(t){showCBInfo(JSON.stringify(t.responseMsg))}function ge(t){var e=20,n=0;me((function(){var t="29492226",i=ve("82TBBS3plLUTx1XftSh2"),r="139.9.65.252",a=0,o=1443,s="D:\\SnapDir",c="D:\\VideoDir";n=20==e?"5x5":"3x3";var l=1,u="secret",h=1,d=0,f="0,16,256,257,258,259,260,512,513,514,515,516,517,768,769";le.JS_RequestInterface({funcName:"init",argument:JSON.stringify({appkey:t,secret:i,ip:r,playMode:a,port:o,snapDir:s,videoDir:c,layout:n,enableHTTPS:l,encryptedFields:u,showToolbar:h,showSmart:d,buttonIDs:f})}).then((function(t){le.JS_Resize($(".jk").width(),$(".jk").height()),skclick()}))}))}function me(t){le.JS_RequestInterface({funcName:"getRSAPubKey",argument:JSON.stringify({keyLength:1024})}).then((function(e){e.responseMsg.data&&(ue=e.responseMsg.data,t())}))}function ve(t){var e=new JSEncrypt;return e.setPublicKey(ue),e.encrypt(t)}function _e(){var t=$(window).width(),e=$(window).height(),n=$("#playWnd").get(0).getBoundingClientRect(),i=n.left<0?Math.abs(n.left):0,r=n.top<0?Math.abs(n.top):0,a=n.right-t>0?Math.round(n.right-t):0,o=n.bottom-e>0?Math.round(n.bottom-e):0;i=i>1e3?1e3:i,r=r>600?600:r,a=a>1e3?1e3:a,o=o>600?600:o,le.JS_RepairPartWindow(0,0,1001,600),0!=i&&le.JS_CuttingPartWindow(0,0,i,600),0!=r&&le.JS_CuttingPartWindow(0,0,1001,r),0!=a&&le.JS_CuttingPartWindow(1e3-a,0,a,600),0!=o&&le.JS_CuttingPartWindow(0,600-o,1e3,o)}$(window).resize((function(){null!=le&&(le.JS_Resize($(".jk").width(),$(".jk").height()),_e())})),$(window).scroll((function(){null!=le&&(le.JS_Resize($(".jk").width(),$(".jk").height()),_e())}));var we={components:{Shutdown:vt},props:["title","reservoir_id"],data:function(){return{show:!1,videoWidth:document.documentElement.clientWidth-450,videoHeight:document.documentElement.clientHeight-200,layout:"2x2",left:"",setint:null,top:"",pubKey:"",initCount:0,playMode:0,playText:"启动中...",cameraIndexCode:"",oWebControl:null,href:"static/HIKVideo/VideoWebPlugin.exe",screenWidth:document.documentElement.clientWidth,screenHeight:document.documentElement.clientHeight,key:"29492226",secret:"82TBBS3plLUTx1XftSh2",ip:"139.9.65.252"}},watch:{"$store.state.KanbanState":function(){}},mounted:function(){window.skclick=this.skclick,fe()},methods:{hkshutdown:function(){this.$store.commit("KanbanState"),this.handleClose(),clearInterval(de)},handleClose:function(){le&&(le.JS_RequestInterface({funcName:"stopAllPreview"}),le.JS_HideWnd(),le.JS_Disconnect().then((function(){}),(function(){})),le=null)},skclick:function(){ce(this.reservoir_id).then((function(t){for(var e=t.data,n=(e.length,0);n<e.length;n++)le.JS_RequestInterface({funcName:"startPreview",argument:JSON.stringify({cameraIndexCode:e[n].indexCode,streamMode:1,transMode:1,gpuMode:0,wndId:n+1})})}))}}},be=we,ye=(n("1156"),Object(X["a"])(be,oe,se,!1,null,"1f82f383",null)),Ae=ye.exports,Se=n("1209"),Ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"no_popup_button"},[t._v(" 123 ")])},ke=[],xe={name:"NoPopupButton"},Ee=xe,De=(n("3d7e"),Object(X["a"])(Ee,Ce,ke,!1,null,"21bdf934",null)),Ie=De.exports,Le={components:{Shutdown:vt,Button:ae,HkWindows:Ae,NoPopupButton:Ie,HomePage:Jt},computed:Object(at["a"])({},Object(z["b"])({screenMngInfo:function(t){return t.screenMngInfo},ShowHomePage:function(t){return t.ShowHomePage},ShowShuiku:function(t){return t.ShowShuiku}})),data:function(){return{Shutdown:!0,hkShutdown1:!1,water_value:null,rain_value:null,capacityof_value:null,serviosdata:{name:"12"},imgurl:null,staffList:[],trtc_title:""}},watch:{"$store.state.KanbanState":function(){this.hkShutdown1=!this.hkShutdown1}},mounted:function(){Object(Se["a"])({targets:".sk_img",translateX:250,direction:"alternate",loop:!0,easing:"linear"});this.setserviosdata()},methods:{patrolOfficerQuery:function(){var t=arguments,e=this;return Object(H["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:"",n.next=3,Kt(i,e.screenMngInfo.staff.id).then((function(t){1==t.code&&(e.staffList=t.data)}));case 3:if(!(e.staffList.length<1)){n.next=8;break}return e.$message("此水库暂无有效人员可调动"),n.abrupt("return");case 8:e.$store.commit("updateShowHomePage",!e.ShowHomePage),e.trtc_title=e.serviosdata.name||"控制中心";case 10:case"end":return n.stop()}}),n)})))()},getrainwarter:function(t){var e=this;return Object(H["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,qt(t).then((function(t){1==t.code&&(e.water_value=t.data.water_value+"m",e.rain_value=t.data.rain_value+"mm",e.capacityof_value=t.data.capacityof_value+"万方",null==t.data.water_value&&(e.water_value="暂无数据"),null==t.data.rain_value&&(e.rain_value="暂无数据"),null==t.data.capacityof_value&&(e.capacityof_value="暂无数据"))}));case 2:case"end":return n.stop()}}),n)})))()},showHome:function(){this.patrolOfficerQuery(this.serviosdata.id)},shutdown:function(){this.$store.commit("updateShowShuiku",!this.ShowShuiku)},hkWindows:function(){this.$parent.hkShutdown=!this.$parent.hkShutdown,this.$store.commit("KanbanState")},setserviosdata:function(t){console.log("这里被执行了",t),this.serviosdata=t,console.log("12qwqwwwqwwwww",this.serviosdata),this.imgurl=t.thumbnail_images,this.getrainwarter(this.serviosdata.id)}}},Re=Le,Te=(n("b77a"),Object(X["a"])(Re,ct,lt,!1,null,"2b3c0212",null)),Me=Te.exports,Oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"transition_box"},[n("transition",{attrs:{name:"fade"}},[t.ASeparateMonitorDisplay?n("EarlyWarningMonitor",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},attrs:{indexcode:t.indexcode,jk_name:t.jk_name}}):t._e()],1),t.warningstatus?n("WarningPopup",{staticClass:"Warningpopup",attrs:{indexcode:t.cameraIndexCode,image:t.alarmimage,jk_name:t.jk_name}}):t._e(),n("div",{staticClass:"simple_list"},[n("div",{staticClass:"main_simple"},[n("dv-border-box-10",{staticClass:"main_box_1",attrs:{"background-color":"rgba(16, 65, 66,.2)"}},[n("div",{staticClass:"off_icon",on:{click:t.OffTable}},[n("Shutdown",{staticClass:"off_style"})],1),n("div",{staticClass:"title_simple"},[n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.deleteVisisble,expression:"deleteVisisble"}],staticClass:"delete-selection"},[n("el-button",{attrs:{icon:"el-icon-delete",size:"mini"},on:{click:t.onDelete}},[t._v("删除")])],1)]),t._v(" "+t._s(t.view_title)+" ")],1),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.table_show,expression:"table_show===1"}],staticClass:"main_table"},[n("div",{staticClass:"list_main"},[n("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.indexCodeList,height:"400",border:""},on:{"row-click":t.rowClick,"selection-change":t.onSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"65",align:"center"}}),n("el-table-column",{attrs:{prop:"jk_name",label:"设备名称",align:"center"}}),n("el-table-column",{attrs:{prop:"alarm_type",label:"入侵类型",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{domProps:{innerHTML:t._s(e.row.alarm_type)}})]}}])}),n("el-table-column",{attrs:{prop:"createtime",label:"图片",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("span",[n("img",{staticStyle:{width:"80px",height:"40px","border-radius":"4px"},attrs:{src:t.row.alarmimage,alt:""}})])]}}])}),n("el-table-column",{attrs:{prop:"createtime",label:"时间",align:"center"}}),n("el-table-column",{attrs:{prop:"status",label:"处理状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["未处理"===e.row.status?n("span",{staticStyle:{color:"green"}},[t._v("已处理")]):t._e(),"已处理"!==e.row.status?n("span",{staticStyle:{color:"#c91818"}},[t._v("未处理")]):t._e()]}}])})],1)],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:2===t.table_show,expression:"table_show === 2"}],staticClass:"details"},[n("div",{staticClass:"details_img"},[n("img",{attrs:{src:t.alarmimage,alt:""}})]),n("div",{staticClass:"details_btn"},[n("el-button",{attrs:{size:"mini"},on:{click:t.back}},[t._v("返回")]),n("el-button",{attrs:{size:"mini"},on:{click:t.dealWith}},[t._v("去处理")]),n("el-button",{attrs:{size:"mini"},on:{click:t.CheckMonitor}},[t._v("查看监控")])],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:3===t.table_show,expression:"table_show === 3"}]},[n("div",{staticClass:"deal_box"},[n("div",{staticClass:"deal_title"},[n("div",{class:{deal_active:1===t.processing_steps},on:{click:function(e){return t.AssignedToSwitch(1)}}},[t._v("无需指派")]),n("div",{class:{deal_active:2===t.processing_steps},on:{click:function(e){return t.AssignedToSwitch(2)}}},[t._v("指派巡检员")])]),1===t.processing_steps?n("div",{staticClass:"without_operat"},[n("div",{staticClass:"without_img"},[n("img",{attrs:{src:t.alarmimage,alt:""}})]),n("div",{staticClass:"without_btn"},[n("button",{on:{click:t.noNeedToDealWith}},[t._v("点击确认不需要指派")])])]):t._e(),2===t.processing_steps?n("div",{staticClass:"assigned_personnel"},[n("div",{staticClass:"personnel_table"},[n("el-select",{staticStyle:{width:"40%"},attrs:{placeholder:"请选择指派人",transfer:"true","popper-append-to-body":!1},model:{value:t.assign_form.inspection_id,callback:function(e){t.$set(t.assign_form,"inspection_id",e)},expression:"assign_form.inspection_id"}},t._l(t.inspection_list,(function(t){return n("el-option",{key:t.id,attrs:{label:t.staff_name,value:t.id}})})),1),n("div",[n("img",{attrs:{src:t.alarmimage,alt:""}})])],1)]):t._e(),2===t.processing_steps?n("div",{staticClass:"deal_btn"},[n("el-button",{on:{click:t.ReturnsDetails}},[t._v(" 返回 ")]),n("el-button",{attrs:{type:"primary"},on:{click:t.ToDealWith}},[t._v(" 指派处理 ")])],1):t._e()])])])],1)])],1)},Be=[],Ue=n("2909"),Pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"transition_box1"},[n("dv-border-box-5",{staticClass:"Reservoir_box",attrs:{reverse:!0,dur:"8","background-color":"rgba(0,0,0,.2)"}},[n("transition",{attrs:{name:"fade"}},[t.hkShutdown1?n("EarlyWarningMonitor",{staticStyle:{position:"absolute",top:"-200px",left:"-350px"},attrs:{indexcode:t.indexcode,jk_name:t.jk_name}}):t._e()],1),n("transition",{attrs:{name:"fade"}},[t.ShowHomePage?n("HomePage",{ref:"ShowHomePageRef",staticStyle:{position:"absolute",top:"-200px",left:"-200px"},attrs:{title:t.trtc_title,"staff-list":t.staffList}}):t._e()],1),n("div",{staticClass:"box_1"},[n("dv-decoration-11",{staticClass:"reservoir_box_title"},[t._v(t._s(t.jk_name))]),n("Shutdown",{staticClass:"off_style",nativeOn:{click:function(e){return t.shutdown()}}})],1),n("img",{staticClass:"image",attrs:{src:t.image}}),n("div",{staticClass:"main_box"},[n("div",{staticClass:"button_box"},[n("el-button",{staticClass:"zdy_btn",attrs:{name:"查看监控"},nativeOn:{click:function(e){return t.hkWindows()}}},[t._v("查看监控")])],1)])],1)],1)},ze=[],$e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dv-border-box-11",{staticClass:"hk_box",attrs:{title:t.jk_name}},[n("div",{staticClass:"shutdown_bt",on:{click:function(e){return t.hkshutdown()}}},[n("span",[n("svg",{staticClass:"icon",attrs:{t:"1646725057891",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","p-id":"2191"}},[n("path",{attrs:{d:"M670.343843 369.643782c-6.248308-6.248308-16.370853-6.248308-22.61916 0L511.991302 505.376139 376.257921 369.643782c-6.247284-6.248308-16.386202-6.248308-22.61916 0-6.248308 6.247284-6.248308 16.370853 0 22.61916l135.732357 135.732357L353.639784 663.72868c-6.248308 6.248308-6.248308 16.370853 0 22.61916 6.232958 6.248308 16.370853 6.248308 22.61916 0l135.733381-135.733381 135.733381 135.733381c6.248308 6.248308 16.370853 6.248308 22.61916 0s6.248308-16.370853 0-22.61916L534.611485 527.995299l135.733381-135.732357C676.593174 386.014634 676.593174 375.891066 670.343843 369.643782zM511.991302 128.092353c-212.025974 0-383.906623 171.880649-383.906623 383.906623 0 212.026998 171.880649 383.907647 383.906623 383.907647 212.026998 0 383.922996-171.880649 383.922996-383.907647C895.914298 299.973002 724.0183 128.092353 511.991302 128.092353zM511.991302 863.915002c-194.359616 0-351.913978-157.556409-351.913978-351.915002s157.555385-351.913978 351.913978-351.913978c194.344267 0 351.915002 157.555385 351.915002 351.913978S706.335568 863.915002 511.991302 863.915002z","p-id":"2192"}})])])]),n("div",{staticClass:"jk",attrs:{id:"playWnd"}})])},je=[],Ne=null,Fe=(!!window.ActiveXObject||window,""),We=0,He=null;function Ve(){Ne=new WebControl({szPluginContainer:"playWnd",iServicePortStart:15900,iServicePortEnd:15909,szClassId:"23BF3B0A-2C56-4D97-9C03-0CB103AA8F11",cbConnectSuccess:function(){Ne.JS_StartService("window",{dllPath:"./VideoPluginConnect.dll"}).then((function(){Ne.JS_SetWindowControlCallback({cbIntegrationCallBack:Ze}),Ne.JS_CreateWnd("playWnd",$(".jk").width(),$(".jk").height()).then((function(){Ge(),setTimeout((function(){He=setInterval((function(){Ne.JS_Resize($(".jk").width(),$(".jk").height())}),3e3)}),1e3)}))}),(function(){}))},cbConnectError:function(){Ne=null,$("#playWnd").html("<div id='start'><div style='font-size: 20px'>插件未启动,正在尝试启动,请稍候...<div></div>"),$("#start").css({padding:"20px",fontSize:"20px",marginTop:"25%",color:"#555"}),WebControl.JS_WakeUp("VideoWebPlugin://"),We++,We<3?setTimeout((function(){Ve()}),3e3):($("#playWnd").html("\n <div id='MonitorPrompt'>\n <div id='No_plugin'>当前计算机未安装插件,请点击下方按钮下载插件,安装插件后重启软件生效。</div>\n <a id='hktsA' href='https://gjsk.xp.yn.cn/monitor/VideoWebPlugin.exe'><button id=\"button\">下载插件</button></a>\n </div>"),$("#MonitorPrompt").css({padding:"20px",fontSize:"20px",marginTop:"20%",color:"#555"}),$("#button").css({width:"200px",height:"50px",fontSize:"14px",backgroundColor:" #00A7F0",border:"none",color:"#FFFFFF",borderRadius:"10px",marginTop:"50px"}))},cbConnectClose:function(t){Ne=null}})}function Ze(t){showCBInfo(JSON.stringify(t.responseMsg))}function Ge(){Je((function(){var t="29492226",e=Ke("82TBBS3plLUTx1XftSh2"),n="139.9.65.252",i=0,r=1443,a="D:\\SnapDir",o="D:\\VideoDir",s="1x1",c=1,l="secret",u=1,h=0,d="0,16,256,257,258,259,260,512,513,514,515,516,517,768,769";Ne.JS_RequestInterface({funcName:"init",argument:JSON.stringify({appkey:t,secret:e,ip:n,playMode:i,port:r,snapDir:a,videoDir:o,layout:s,enableHTTPS:c,encryptedFields:l,showToolbar:u,showSmart:h,buttonIDs:d})}).then((function(t){Ne.JS_Resize($(".jk").width(),$(".jk").height()),skclick()}))}))}function Je(t){Ne.JS_RequestInterface({funcName:"getRSAPubKey",argument:JSON.stringify({keyLength:1024})}).then((function(e){e.responseMsg.data&&(Fe=e.responseMsg.data,t())}))}function Ke(t){var e=new JSEncrypt;return e.setPublicKey(Fe),e.encrypt(t)}function Ye(){var t=$(window).width(),e=$(window).height(),n=$("#playWnd").get(0).getBoundingClientRect(),i=n.left<0?Math.abs(n.left):0,r=n.top<0?Math.abs(n.top):0,a=n.right-t>0?Math.round(n.right-t):0,o=n.bottom-e>0?Math.round(n.bottom-e):0;i=i>1e3?1e3:i,r=r>600?600:r,a=a>1e3?1e3:a,o=o>600?600:o,Ne.JS_RepairPartWindow(0,0,1001,600),0!=i&&Ne.JS_CuttingPartWindow(0,0,i,600),0!=r&&Ne.JS_CuttingPartWindow(0,0,1001,r),0!=a&&Ne.JS_CuttingPartWindow(1e3-a,0,a,600),0!=o&&Ne.JS_CuttingPartWindow(0,600-o,1e3,o)}$(window).resize((function(){null!=Ne&&(Ne.JS_Resize($(".jk").width(),$(".jk").height()),Ye())})),$(window).scroll((function(){null!=Ne&&(Ne.JS_Resize($(".jk").width(),$(".jk").height()),Ye())}));var qe={components:{Shutdown:vt},props:["jk_name","indexcode"],data:function(){return{show:!1,videoWidth:document.documentElement.clientWidth-450,videoHeight:document.documentElement.clientHeight-200,layout:"2x2",left:"",setint:null,top:"",pubKey:"",initCount:0,playMode:0,playText:"启动中...",cameraIndexCode:"",oWebControl:null,href:"static/HIKVideo/VideoWebPlugin.exe",screenWidth:document.documentElement.clientWidth,screenHeight:document.documentElement.clientHeight,key:"29492226",secret:"82TBBS3plLUTx1XftSh2",ip:"139.9.65.252"}},watch:{"$store.state.KanbanState":function(){}},mounted:function(){window.skclick=this.skclick,Ve()},methods:{hkshutdown:function(){this.$store.commit("updateASeparateMonitor",!1),this.handleClose(),clearInterval(He)},handleClose:function(){Ne&&(Ne.JS_RequestInterface({funcName:"stopAllPreview"}),Ne.JS_HideWnd(),Ne.JS_Disconnect().then((function(){}),(function(){})),Ne=null)},skclick:function(){Ne.JS_RequestInterface({funcName:"startPreview",argument:JSON.stringify({cameraIndexCode:this.indexcode,streamMode:1,transMode:1,gpuMode:0,wndId:1})})}}},Xe=qe,Qe=(n("4016"),Object(X["a"])(Xe,$e,je,!1,null,"4200fe90",null)),tn=Qe.exports,en={components:{Shutdown:vt,Button:ae,EarlyWarningMonitor:tn,NoPopupButton:Ie,HomePage:Jt},props:["jk_name","indexcode","image"],computed:Object(at["a"])({},Object(z["b"])({screenMngInfo:function(t){return t.screenMngInfo},ShowHomePage:function(t){return t.ShowHomePage},ShowShuiku:function(t){return t.ShowShuiku}})),data:function(){return{Shutdown:!0,hkShutdown1:!1,water_value:null,rain_value:null,capacityof_value:null,serviosdata:{name:"12"},imgurl:null,staffList:[],trtc_title:""}},watch:{"$store.state.KanbanState":function(){this.hkShutdown1=!this.hkShutdown1}},mounted:function(){Object(Se["a"])({targets:".sk_img",translateX:250,direction:"alternate",loop:!0,easing:"linear"});this.setserviosdata()},methods:{patrolOfficerQuery:function(){var t=arguments,e=this;return Object(H["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:"",n.next=3,Kt(i,e.screenMngInfo.staff.id).then((function(t){1==t.code&&(e.staffList=t.data)}));case 3:if(!(e.staffList.length<1)){n.next=8;break}return e.$message("此水库暂无有效人员可调动"),n.abrupt("return");case 8:e.$store.commit("updateShowHomePage",!e.ShowHomePage),e.trtc_title=e.serviosdata.name||"控制中心";case 10:case"end":return n.stop()}}),n)})))()},getrainwarter:function(t){var e=this;return Object(H["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,qt(t).then((function(t){1==t.code&&(e.water_value=t.data.water_value+"m",e.rain_value=t.data.rain_value+"mm",e.capacityof_value=t.data.capacityof_value+"万方",null==t.data.water_value&&(e.water_value="暂无数据"),null==t.data.rain_value&&(e.rain_value="暂无数据"),null==t.data.capacityof_value&&(e.capacityof_value="暂无数据"))}));case 2:case"end":return n.stop()}}),n)})))()},showHome:function(){this.patrolOfficerQuery(this.serviosdata.id)},shutdown:function(){this.$store.commit("updateShowWarning",!1)},hkWindows:function(){this.$parent.hkShutdown=!this.$parent.hkShutdown,this.$store.commit("KanbanState")},setserviosdata:function(t){this.serviosdata=t,this.imgurl="https://qiniu.ynzhsk.cn/"+t.thumbnail_images,this.getrainwarter(this.serviosdata.id)}}},nn=en,rn=(n("df65"),Object(X["a"])(nn,Pe,ze,!1,null,"15168627",null)),an=rn.exports;function on(){return J({url:"safeoperation/Dp/getsy"})}function sn(){return J({url:"safeoperation/Dp/getdayxc"})}function cn(){return J({url:"safeoperation/dp/reservoirTypes"})}function ln(t){return J({url:"tyexcel/isotList",method:"POST",data:{rid:t}})}function un(t){return J({url:"reservoir/hkws/alarm_monitoring/unReadList",method:"POST",data:{},headers:{token:t}})}function hn(t){return J({url:"reservoir/hkws/alarm_monitoring/lastAlarmData",method:"POST",data:{},headers:{token:t}})}function dn(t,e){return J({url:"reservoir/hkws/alarm_monitoring/getAlarmListBySkid",method:"POST",data:t,headers:{token:e}})}function fn(t,e){return J({url:"reservoir/hkws/alarm_monitoring/bat_delete_alarm_log",method:"POST",data:t,headers:{token:e}})}function pn(t,e){return J({url:"reservoir/hkws/alarm_monitoring/getReservoirStaffList",method:"post",data:t,headers:{token:e}})}function gn(t,e){return J({url:"reservoir/hkws/alarm_monitoring/appointStaffDealAlarm",method:"post",data:t,headers:{token:e}})}var mn={components:{Shutdown:vt,WarningPopup:an,EarlyWarningMonitor:tn},computed:Object(at["a"])({},Object(z["b"])({ShowAlarm:function(t){return t.ShowAlarm},alarmSkId:function(t){return t.alarmSkId},screenMngInfo:function(t){return t.screenMngInfo},warningstatus:function(t){return t.Warningpopup},ASeparateMonitorDisplay:function(t){return t.ASeparateMonitorDisplay}})),data:function(){return{reservoirId:"",table_show:1,processing_steps:1,police_id_now:"",view_title:"预警消息列表",indexCodeList:[],cameraIndexCode:"",indexcode:"",alarmimage:"",jk_name:"",hkShutdown1:!1,inspection_list:[],assign_form:{inspection_id:"",sk_id:""},pagination:{currentPage:1,pageSize:6},loading:!1,ids:[],deleteVisisble:!1,tableWrapper:null}},mounted:function(){this.getData(),this.loadLazy()},methods:{onDelete:function(){var t=this;this.$confirm("确定要删除选中的数据吗?","提示",{type:"warning"}).then((function(e){var n={delete_ids:t.ids};fn(n,t.screenMngInfo.userinfo.token).then((function(e){1===e.code&&(t.$message.success("删除成功!"),t.pagination.currentPage=1,dn({skid:t.alarmSkId,curPage:t.pagination.currentPage,pageSize:t.pagination.pageSize},t.screenMngInfo.userinfo.token).then((function(e){1===e.code&&(t.indexCodeList=e.data,t.tableWrapper.scrollTop=0)})))}))})).catch((function(t){}))},onSelectionChange:function(t){this.ids=t.map((function(t){return t.id})),this.ids.length>0?this.deleteVisisble=!0:this.deleteVisisble=!1},loadLazy:function(){var t=this;setTimeout((function(){var e=t.$refs.table.$el.querySelector(".el-table__body-wrapper");t.tableWrapper=e,e.addEventListener("scroll",(function(){if(e.scrollHeight-(e.clientHeight+e.scrollTop)<=50&&!t.loading){t.loading=!0,t.pagination.currentPage+=1;var n={skid:t.alarmSkId,curPage:t.pagination.currentPage,pageSize:t.pagination.pageSize};dn(n,t.screenMngInfo.userinfo.token).then((function(e){var n;1===e.code&&((n=t.indexCodeList).push.apply(n,Object(Ue["a"])(e.data)),t.loading=!1)}))}}))}),1e3)},noNeedToDealWith:function(){var t=this,e=this.screenMngInfo.userinfo.token;gn({reservoir_id:this.reservoirId,alarm_id:this.police_id_now,deal_type:1},e).then((function(e){1===e.code&&(t.table_show=1,t.getData())}))},rowClick:function(t){this.table_show=2,this.cameraIndexCode=t.cameraIndexCode,this.view_title="预警消息详情",this.alarmimage=t.alarmimage,this.indexcode=t.cameraIndexCode,this.jk_name=t.jk_name,this.reservoirId=t.reservoir_list_id,this.police_id_now=t.id},CheckMonitor:function(t){this.$store.commit("updateASeparateMonitor",!0)},back:function(){this.table_show=1,this.view_title="预警消息列表"},dealWith:function(){var t=this;this.table_show=3,this.view_title="预警处理";var e=this.screenMngInfo.userinfo.token;pn({reservoir_id:this.reservoirId},e).then((function(e){t.inspection_list=e.data}))},ReturnsDetails:function(){this.table_show=2,this.view_title="预警消息详情"},getData:function(){var t=this;return Object(H["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,dn({skid:t.alarmSkId,curPage:t.pagination.currentPage,pageSize:t.pagination.pageSize},t.screenMngInfo.userinfo.token).then((function(e){1===e.code&&(t.indexCodeList=e.data)}));case 2:case"end":return e.stop()}}),e)})))()},OffTable:function(){this.table_show=1,this.$store.commit("updateShowAlarm",!1)},toDetail:function(t){this.alarmimage=this.indexCodeList[t.rowIndex].alarmimage,this.jk_name=this.indexCodeList[t.rowIndex].jk_name,this.$store.commit("updateShowWarning",!0)},shutdown:function(){this.$store.commit("updateShowAlarm",!this.ShowAlarm),this.$store.commit("updateAlarmSkId","")},shutdown_warning:function(){this.warningstatus=!this.warningstatus},ToDealWith:function(){var t=this;if(""===this.assign_form.inspection_id)this.$message({type:"warning",message:"请选择指派人员",customClass:"global-messageZindex"});else{var e=this.screenMngInfo.userinfo.token;gn({reservoir_id:this.reservoirId,alarm_id:this.police_id_now,deal_type:2,staff_id:this.assign_form.inspection_id},e).then((function(e){1===e.code&&(t.table_show=1,t.getData(),t.assign_form.inspection_id="")}))}},AssignedToSwitch:function(t){this.processing_steps=t}}},vn=mn,_n=(n("ae50"),Object(X["a"])(vn,Oe,Be,!1,null,"22727a1f",null)),wn=_n.exports,bn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inspection_details"},[2===t.ShowAudioCall?n("div",{staticClass:"inspection_audio"},[n("transition",{attrs:{name:"fade"}},[n("AudioCall",{ref:"ShowAudioCallRef",attrs:{"to-staff":t.toStaff},on:{closeCall:t.offAudio}})],1)],1):t._e(),3===t.ShowAudioCall?n("div",{staticClass:"inspection_video"},[n("transition",{attrs:{name:"fade"}},[n("VideoCall",{ref:"ShowVideoCallRef",attrs:{"to-staff":t.toStaff},on:{closeCall:t.offVideo}})],1)],1):t._e(),1===t.ShowAudioCall?n("div",{staticClass:"inspection_main"},[n("dv-border-box-13",{staticClass:"main_box_1",attrs:{"background-color":"rgba(16, 65, 66,.2)"}},[n("div",{staticClass:"off_icon",on:{click:t.OffDetails}},[n("Shutdown",{staticClass:"off_style"})],1),n("div",{staticClass:"title_simple"},[t._v(" "+t._s(t.view_title)+" ")]),n("div",{staticClass:"divider"}),n("div",[n("div",{staticClass:"personnel_details"},[n("div",[t._v("姓名:"+t._s(t.inspectionData.staff_name))]),n("div",[t._v("巡检区域:"+t._s(t.inspectionData.reservoir_name))]),n("div",[t._v("手机号码:"+t._s(t.inspectionData.mobile))]),n("div",[t._v("当前在线状态: "),"Online"==t.inspectionData.online_status?n("span",{class:{is_active:"Online"==t.inspectionData.online_status}},[t._v("在线")]):t._e(),"Online"!=t.inspectionData.online_status?n("span",{class:{is_offline:"Online"!=t.inspectionData.online_status}},[t._v("离线")]):t._e()]),n("div",[t._v("最近在线时间:"),n("span",{staticClass:"is_active"},[t._v(t._s(t.inspectionData.lat_lng_record.createtime_format))])])]),n("div",{staticClass:"call_button"},[n("div",{on:{click:t.VoiceCalls}},[n("div",{staticClass:"zdy_btn"},[t._v("语音呼叫"+t._s(t.showCallTips))])]),n("div",{on:{click:t.VideoCall}},[n("div",{staticClass:"zdy_btn"},[t._v("视频呼叫"+t._s(t.showCallTips))])])])])])],1):t._e()])},yn=[],An={name:"PersonnelDetails",components:{Shutdown:vt,AudioCall:Pt,VideoCall:Wt},props:{inspectionData:{type:Object,default:function(){return{}}}},data:function(){return{view_title:"巡检员详情",ShowAudioCall:1,toStaff:{},showCallTips:""}},computed:Object(z["b"])({loginUserInfo:function(t){return t.loginUserInfo}}),created:function(){"Online"==this.inspectionData.online_status?this.showCallTips="":this.showCallTips="(通知上线)",this.toStaff=this.inspectionData},methods:{offAudio:function(){this.$emit("offDetails")},offVideo:function(){this.$emit("offDetails")},OffDetails:function(){this.$emit("offDetails")},sendAliCall:function(t){var e=this;Ht({mobile:this.toStaff.mobile,from_screen:this.loginUserInfo.userId,type:t}).then((function(t){0!==t.code?e.$message({message:t.msg,type:"warning",customClass:"global-messageZindex"}):e.$message({message:"通知推送失败!请勿重复通知!",type:"warning",customClass:"global-messageZindex"}),e.OffDetails()}))},VoiceCalls:function(){"Online"!=this.inspectionData.online_status?this.sendAliCall("语音"):this.ShowAudioCall=2},VideoCall:function(){"Online"!=this.inspectionData.online_status?this.sendAliCall("视频"):this.ShowAudioCall=3}}},Sn=An,Cn=(n("7ab6"),Object(X["a"])(Sn,bn,yn,!1,null,"d2eb1310",null)),kn=Cn.exports,xn=n("b9ab"),En=1400645108,Dn=604800,In="249c08eef888876a00cd6fc9d6e10fa2a767802b959129494ce86f4db1ef106c";function Ln(t){var e=new xn(En,In,Dn),n=e.genTestUserSig(t);return{sdkAppID:En,userSig:n}}var Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"info_window"},[n("div",{staticClass:"info_window_content",on:{click:t.goDetails}},[n("div",{staticClass:"info_window_title"},[t._v(" "+t._s(t.infoWindow.name)+" ")]),n("div",{staticClass:"info_window_body"},[n("div",{staticClass:"info_window_body_item"},[n("div",{staticClass:"info_window_body_item_title"},[t._v(" 报警类型:"),n("span",{staticStyle:{color:"rgb(225, 0, 0)"}},[t._v(t._s(t.infoWindow.alarm_type))])]),n("div",{staticClass:"info_window_body_item_title",staticStyle:{"font-size":"14px"}},[t._v(" 监控点:"+t._s(t.infoWindow.jk_name)+" ")]),n("div",{staticClass:"info_window_body_item_title"},[t._v(" 时间: "+t._s(t.infoWindow.createtime)+" ")])])]),n("div",{staticClass:"info_img"},[n("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.infoWindow.alarmimage,alt:""}})])]),n("div",{staticClass:"oof_button",on:{click:function(e){return e.stopPropagation(),t.shutdown.apply(null,arguments)}}},[n("Shutdown",{staticClass:"off_style"})],1)])},Tn=[],Mn={name:"InfoWindow",components:{Shutdown:vt},props:{infoWindow:{type:Object,required:!0}},methods:{shutdown:function(){this.$emit("shutdown")},goDetails:function(){this.$store.commit("updateShowAlarm",!0),this.$store.commit("updateAlarmSkId",this.infoWindow.reservoir_list_id)}}},On=Mn,Bn=(n("27d8"),Object(X["a"])(On,Rn,Tn,!1,null,"9c594d08",null)),Un=Bn.exports,Pn=n("728c"),zn=n.n(Pn),$n=n("a6d4"),jn={components:{Servioswindows:Me,Alarm:wn,NoPopupButton:Ie,infoWindow:Un,PersonnelDetails:kn},props:{},data:function(){return{map:null,AMap:null,markerList:[],inspection_points:[],PersonnelDetailsShow:!1,inspection_data:{},marker:null,isShowInfoWindow:!1,infoWindow:null,serviosList:null,clickServiosId:null,Servioswindows_sd:!1,Servioselement:null,interval:null,deg:0,WindowTimer:null,SwitchPosition:null,zoom:11,lng:103.150088,lat:23.390802,Showtable:"",UserID:""}},computed:Object(at["a"])(Object(at["a"])({},Object(z["b"])({isScreenLogin:function(t){return t.isScreenLogin},ShowShuiku:function(t){return t.ShowShuiku},screenMngInfo:function(t){return t.screenMngInfo},ShowAlarm:function(t){return t.ShowAlarm},infoWindowData:function(t){return t.latestWarning}})),{},{JudgeEquipment:function(){var t=navigator.userAgent.toLowerCase(),e="ipad"==t.match(/ipad/i),n="iphone os"==t.match(/iphone os/i),i="midp"==t.match(/midp/i),r="rv:1.2.3.4"==t.match(/rv:1.2.3.4/i),a="ucweb"==t.match(/ucweb/i),o="android"==t.match(/android/i),s="windows ce"==t.match(/windows ce/i),c="windows mobile"==t.match(/windows mobile/i);return!(e||n||i||r||a||o||s||c)}}),watch:{"$store.state.rotate":function(){var t=this;!1===t.$store.state.rotate?clearInterval(t.interval):t.interval=setInterval((function(){t.deg+=.1,t.map.setRotation(t.deg),t.deg>=360&&(t.deg=0)}),40)},"$store.state.latestWarning":function(){var t=this;this.infoWindow&&this.infoWindow.close(),this.map&&(this.map.setZoom(12),this.map.setCenter([this.infoWindowData.lng,this.infoWindowData.lat])),setTimeout((function(){t.showInfoWindow()}),500)}},mounted:function(){var t=this;this.initMap(),this.handleLogin(),this.JudgeEquipment,setTimeout((function(){t.showInfoWindow()}),2e3)},updated:function(){!0===this.ShowShuiku&&this.$refs.Servioswindows.setserviosdata(this.Servioselement)},methods:{offWarning:function(){this.isShowInfoWindow=!1},logout:function(){clearInterval(),this.$trtcCalling.logout(),this.$store.commit("userLogoutSuccess"),At({token:"",phoneNum:""}),this.$store.commit("screenLogoutSuccess");for(var t=1;t<1e5;t++)clearInterval(t)},handleLogin:function(){if(this.UserID=this.screenMngInfo.staff.mobile,this.UserID){var t=Ln(this.UserID).userSig,e=this.UserID;this.$store.commit("userLoginSuccess"),this.$store.commit("setLoginUserInfo",{userId:e,userSig:t}),this.$trtcCalling.login({userID:this.UserID,userSig:t})}},initMap:function(){var t=this;st.a.load({key:"12a2f404c5ab23ff49804af3ebf248ee",version:"2.0",plugins:["AMap.ElasticMarker","Pixel"],Loca:{version:"2.0.0"}}).then((function(e){t.AMap=e,t.map=new e.Map("container",{rotateEnable:!1,pitchEnable:!0,terrain:!0,pitch:85,mapStyle:"amap://styles/normal",viewMode:"2D",showLabel:!1,layers:[new e.TileLayer.Satellite],zoom:12,center:$n["a"].transform([t.lng,t.lat],$n["a"].GCJ02,$n["a"].WGS84)}),Yt().then((function(e){console.log("水库数据",e),t.addmarks(e.data.list),t.serviosList=e.data.list})),t.getInspectionPersonnelPoint()})).catch((function(t){}))},addmarks:function(t){var e=this;t.forEach((function(t){var n=new e.AMap.ElasticMarker({position:[t.lng,t.lat],styles:[{icon:{img:"icon/warter1.png",size:[27,20],anchor:"bottom-center",fitZoom:13,imageSize:new AMap.Size(13,20),scaleFactor:2,maxScale:2,minScale:2},label:{content:t.name,position:"BM",minZoom:8}}],zoomStyleMapping:{8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,21:0,22:0,23:0,24:0}});n.on("click",e.markerClick),e.markerList.push(n)})),this.map.add(this.markerList),setTimeout((function(){var t=document.getElementById("Loading");null!=t&&t.remove()}),1300)},addInspectorMarker:function(t){var e=this;this.inspection_points=[],t.forEach((function(t){var n=new e.AMap.ElasticMarker({position:$n["a"].transform([t.lat_lng_record.lat,t.lat_lng_record.lng],$n["a"].GCJ02,$n["a"].WGS84),styles:[{icon:{img:"Online"===t.online_status?"https://gjsk.xp.yn.cn/inspection.png":zn.a,size:[27,20],anchor:"bottom-center",fitZoom:13,imageSize:new AMap.Size(20,20),scaleFactor:2,maxScale:2,minScale:2},label:{content:t.staff_name,position:"BM",minZoom:8,offset:[-5,5]}}],zoomStyleMapping:{8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,21:0,22:0,23:0,24:0}});n.on("click",(function(n){var i=e.screenMngInfo.userinfo.token;Qt(i,{id:t.id}).then((function(n){1===n.code&&(e.inspection_data=n.data[0],e.PersonnelDetailsShow=!0,t.online_status!==e.inspection_data.online_status&&(marker.remove(),e.addInspectorMarker([e.inspection_data])))}))})),e.inspection_points.push(n)})),this.map.add(this.inspection_points)},getInspectionPersonnelPoint:function(){var t=this,e=this.screenMngInfo.userinfo.token;Xt(e).then((function(e){t.addInspectorMarker(e.data)})),setInterval((function(){Xt(e).then((function(e){t.addInspectorMarker(e.data)}))}),6e4)},markerClick:function(t){var e=this;console.log("点击了水库",this.serviosList),this.serviosList.forEach((function(n){t.target._position[0]===n.lng&&t.target._position[1]===n.lat&&(e.Servioselement=n,e.clickServiosId=n.id,e.$store.commit("updateShowShuiku",!e.ShowShuiku))}))},TimingPopup:function(){},showInfoWindow:function(){var t=this;this.isShowInfoWindow=!0,this.map.plugin("AMap.InfoWindow",(function(){var e=t.infoWindowData;t.infoWindow=new t.AMap.InfoWindow({isCustom:!0,content:t.$refs["infoWindow"].$el,offset:new t.AMap.Pixel(210,-30)}),t.infoWindow.open(t.map,[e.lng,e.lat]),t.SetLocation(e.lng,e.lat),t.isShowInfoWindow=!0}))},setCenter:function(){var t=this,e=0;this.SwitchPosition=setInterval((function(){setTimeout((function(){if(t.serviosList[e]){e+=1;var n=t.serviosList[e];t.SetLocation(n.lng,n.lat),t.SetZoom(15)}else{e=0;var i=t.serviosList[e];t.SetLocation(i.lng,i.lat),t.SetZoom(15)}}),2e3),setTimeout((function(){t.Servioselement=t.serviosList[e],t.clickServiosId=t.serviosList[e].id,t.$store.commit("updateShowShuiku",!t.ShowShuiku)}),6e3),setTimeout((function(){t.$store.commit("updateShowShuiku",!1)}),17e3),t.SetZoom(12)}),2e4)},SetLocation:function(t,e){this.map.setCenter([t,e])},SetZoom:function(t){this.map.setZoom(t)},offPersonnel:function(){this.PersonnelDetailsShow=!1}}},Nn=jn,Fn=(n("2fad"),Object(X["a"])(Nn,it,rt,!1,null,"614e8076",null)),Wn=Fn.exports,Hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"board_header_box"},[n("boardLinks"),n("boardTitle"),n("headerShadow")],1)},Vn=[],Zn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"link_box"},[n("a",{staticClass:"btn btn-1",attrs:{href:"#"},on:{click:function(e){return t.OffViewPlate()}}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v(t._s(t.yckb))]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])]),n("a",{staticClass:"btn btn-1",attrs:{href:"#"},on:{click:function(e){return t.onRotate()}}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v(t._s(t.rotate))]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])]),t._m(0),t._m(1),t._m(2),t._m(3),t._m(4)])])},Gn=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{attrs:{href:"https://gjsk.xp.yn.cn/safe/#/home?gid=23"}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v("运行监测")]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{attrs:{href:"https://gjsk.xp.yn.cn/equipment/index"}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v("设备管理")]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{attrs:{href:"https://gjsk.xp.yn.cn/inspection/index"}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v("智慧巡检")]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{attrs:{href:"https://gjsk.xp.yn.cn/inspection/index"}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v("ai短信")]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{attrs:{href:"https://gjsk.xp.yn.cn/monitor/index"}},[n("div",{staticClass:"buttonBox"},[n("div",[t._v("实时监控")]),n("div",{staticClass:"border1"}),n("div",{staticClass:"border2"})])])}],Jn={name:"BoardLinks",components:{},data:function(){return{databox:"",datawindows:"",show:!0,yckb:"指挥模式",rotate:"旋转观看",loading:!0,qhst:"切换2D视角",mapangle:"3D"}},created:function(){this.getclick()},methods:{getclick:function(t){this.databox=t},onshow:function(){this.show=!this.show,"指挥模式"===this.yckb?this.yckb="显示看板":this.yckb="指挥模式"},onrotate:function(){this.$store.commit("mutarotate")},OffViewPlate:function(){var t=null;this.$store.commit("KanbanState"),this.handleClose(),clearInterval(t),this.onshow()},onRotate:function(){this.$store.commit("mutarotate")}}},Kn=Jn,Yn=(n("0674"),Object(X["a"])(Kn,Zn,Gn,!1,null,"1fd8d79b",null)),qn=Yn.exports,Xn=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Qn=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"board_title_box"},[n("div",[n("p",[t._v("个旧智慧水库安全监测指挥云平台")])])])}],ti={name:"BoardTitle",methods:{}},ei=ti,ni=(n("c5bc"),Object(X["a"])(ei,Xn,Qn,!1,null,"6df91a00",null)),ii=ni.exports,ri=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_shadow"})},ai=[],oi={name:"DownShadow"},si=oi,ci=(n("49a6"),Object(X["a"])(si,ri,ai,!1,null,"56514cd2",null)),li=ci.exports,ui={name:"BoardHeaderMain",components:{boardLinks:qn,boardTitle:ii,headerShadow:li}},hi=ui,di=(n("fa8f"),Object(X["a"])(hi,Hn,Vn,!1,null,"2e8f5026",null)),fi=di.exports,pi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left_main_box"},[n("leftTop"),n("leftDown")],1)},gi=[],mi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left_top_box"},[n("div",{staticClass:"left_top_main"},[n("h6",{staticStyle:{"padding-top":"30%",color:"#fff","font-size":"16px"}},[t._v("实时位移(单位/mm)")]),n("div",{staticClass:"section-title"},t._l(t.main_data,(function(e){return n("span",{key:e.index,staticClass:"section-s1",class:{spanhover:e.name===t.current_data.name},on:{click:function(n){return t.switchTab(e)}}},[t._v(" "+t._s(e.name)+" ")])})),0),n("div",{staticClass:"main_content",on:{click:t.handleClick}},[n("div",{staticClass:"list-item"},[t._m(0),n("div",[n("strong",{staticClass:"normal",class:[{abnormal:"异常"===t.current_data.zyj}]},[t._v(t._s(t.current_data.zyj))])]),n("div",[t._v(t._s(t.current_data.vertical||"暂无")+"mm")])]),n("div",{staticClass:"list-item"},[t._m(1),n("div",[n("strong",{staticClass:"normal",class:[{abnormal:"异常"===t.current_data.xyj}]},[t._v(t._s(t.current_data.xyj))])]),n("div",[t._v(t._s(t.current_data.vertical||"暂无")+"mm")])]),n("div",{staticClass:"list-item"},[t._m(2),n("div",[n("strong",{staticClass:"normal",class:[{abnormal:"异常"===t.current_data.yyj}]},[t._v(t._s(t.current_data.yyj))])]),n("div",[t._v(t._s(t.current_data.vertical||"暂无")+"mm")])])])]),n("DownloadModal",{attrs:{visible:t.visible,options:t.displaceOptions},on:{"update:visible":function(e){t.visible=e}}})],1)},vi=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",[t._v("垂直位移(沉降)")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",[t._v("水平位移x轴")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",[t._v("水平位移y轴")])])}];function _i(){return J({url:"safeoperation/Dp/Trendwaterlevel"})}function wi(){return J({url:"safeoperation/Dp/getgnss"})}function bi(t){return J({url:"tyexcel/damDisplace",method:"POST",data:{rid:t}})}function yi(t){return J({url:"tyexcel/resvWaterList",method:"POST",data:{rid:t}})}var Ai=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",[n("el-dialog",{attrs:{visible:t.visible,"append-to-body":"","destroy-on-close":"","show-close":!1,"custom-class":"report-download-dialog","close-on-click-modal":!1}},[n("div",{staticClass:"simple_list"}),n("div",{staticClass:"main-box"},[n("dv-border-box-10",{staticClass:"main_box_1",attrs:{title:"报表下载","background-color":"rgba(16, 65, 66,.2)"}},[n("div",{staticClass:"off_icon",on:{click:t.onClose}},[n("Shutdown",{staticClass:"off_style"})],1),n("div",{staticClass:"title_simple"},[n("div",{staticClass:"title_table"},[t._v("报表下载")]),n("p",[t._v("(仅支持预览三天,请选择日期后下载更多)")])]),n("div",{staticClass:"date_time"},[n("el-select",{attrs:{placeholder:"水库名称",size:"mini"},on:{change:t.handleSelect},model:{value:t.options.reservoir_id,callback:function(e){t.$set(t.options,"reservoir_id",e)},expression:"options.reservoir_id"}},t._l(t.options.main_data,(function(t){return n("el-option",{key:t.reservoir_id,attrs:{label:t.name,value:t.reservoir_id||t.id}})})),1),n("el-date-picker",{attrs:{size:"mini",type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":t.pickerOptions,"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onDateChange},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}),n("div",{staticClass:"download_button"},[n("a",{staticClass:"download-a",attrs:{href:t.href}},[n("button",{on:{click:t.onDownload}},[n("i",{staticClass:"el-icon-download"})])])])],1),n("el-table",{attrs:{data:t.options.data,height:"400",border:""}},t._l(t.options.columns,(function(t,e){return n("el-table-column",{key:e,attrs:{align:"center",prop:t.prop,label:t.label}})})),1)],1)],1)])],1):t._e()},Si=[],Ci={props:["visible","options"],components:{Shutdown:vt},data:function(){return{resvName:"",dateRange:[],pickerOptions:{disabledDate:function(t){return t>new Date},shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-7776e6),t.$emit("pick",[n,e])}}]},pageSize:7,currentPage:0,href:"#"}},computed:{filterData:function(){return this.filter()}},mounted:function(){},methods:{handleSelect:function(t){var e=this;t&&this.options.getData(t).then((function(t){var n=t.data||[];e.options.data=n,n.length>50?e.options.pagination=!0:e.options.pagination=!1}))},onDateChange:function(){},onDownload:function(){if(this.dateRange&&0!==this.dateRange.length){var t={rid:this.options.reservoir_id,startime:this.dateRange[0],endtime:this.dateRange[1]};this.href=G+this.options.downloadUrl+"?rid=".concat(t.rid,"&startime=").concat(t.startime,"&endtime=").concat(t.endtime)}else this.$message.info("请选择时间")},onClose:function(){this.$emit("update:visible",!1),this.dateRange=[],this.currentPage=0,this.href="#"}}},ki=Ci,xi=(n("56cd"),Object(X["a"])(ki,Ai,Si,!1,null,"0ebe3db6",null)),Ei=xi.exports,Di=[{prop:"name",label:"水库名称"},{prop:"vertical",label:"垂直位移(沉降)"},{prop:"horizontal",label:"水平位移x轴"},{prop:"horizontalY",label:"水平位移y轴"},{prop:"createtime",label:"时间",width:"160%"}],Ii={name:"LeftTop",components:{DownloadModal:Ei},data:function(){return{increase:1,Tabtimer:null,main_data:null,current_data:{reservoir_id:4,name:"小新寨水库",vertical:-.3,horizontal:.9,horizontalY:.1,number:"1000000714",reporttime:"1646622000000",xyj:"正常",yyj:"正常",zyj:"正常"},visible:!1,displaceOptions:{name:"",data:[]}}},created:function(){var t=this;wi().then((function(e){t.main_data=e.data,console.log("渗流数据",t.main_data),t.initTabtimer()}))},methods:{initTabtimer:function(){var t=this,e=0;this.current_data=this.main_data[e],this.Tabtimer=setInterval((function(){t.main_data[e+1]?(e+=1,t.current_data=t.main_data[e]):(e=0,t.current_data=t.main_data[e])}),1e4)},switchTab:function(t){var e=this;clearInterval(this.Tabtimer),this.Tabtimer=null,this.current_data=t,setTimeout((function(){e.initTabtimer()}),8e3)},handleClick:function(){var t=this;this.current_data.reservoir_id&&bi(this.current_data.reservoir_id).then((function(e){t.visible=!0;var n=e.data||[];t.displaceOptions=Object(at["a"])(Object(at["a"])({},t.current_data),{},{main_data:t.main_data.map((function(t){return{name:t.name,reservoir_id:t.reservoir_id}}))||[],data:n,columns:Di,pagination:n.length>50,getData:bi,downloadUrl:"tyexcel/damDisplaceExcel"})}))}}},Li=Ii,Ri=(n("35e9"),Object(X["a"])(Li,mi,vi,!1,null,"2a3266a6",null)),Ti=Ri.exports,Mi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left_down_box"},[n("dv-decoration-4",{staticStyle:{width:"100%",height:"1vh","margin-bottom":"7%",position:"absolute",top:"-20px"},attrs:{reverse:!0}}),n("div",{staticClass:"left_down_title"},[n("h6",[t._v("实时水位(单位/m)")]),n("div",{staticClass:"left_down_tabs"},t._l(t.mainData,(function(e){return n("div",{key:e.index,class:{active_tabs:e.name===t.currentData.name},on:{click:function(n){return t.goSpecified(e)}}},[t._v(t._s(e.name))])})),0)]),n("div",{attrs:{id:"left2"},on:{click:t.handleClick}}),n("DownloadModal",{attrs:{visible:t.visible,options:t.waterOptions},on:{"update:visible":function(e){t.visible=e}}})],1)},Oi=[],Bi={color:["#3fb1e3","#6be6c1","#109582","#a0a7e6","#c4ebad","#333333"],backgroundColor:"rgba(29,146,180,0)",textStyle:{},title:{textStyle:{color:"#ffffff"},subtextStyle:{color:"#ffffff"}},line:{itemStyle:{borderWidth:"2"},lineStyle:{width:"3"},symbolSize:"8",symbol:"pin",smooth:!1},radar:{itemStyle:{borderWidth:"2"},lineStyle:{width:"3"},symbolSize:"8",symbol:"pin",smooth:!1},bar:{itemStyle:{barBorderWidth:0,barBorderColor:"#24b5bc"}},pie:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},scatter:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},boxplot:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},parallel:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},sankey:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},funnel:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},gauge:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"}},candlestick:{itemStyle:{color:"#e6a0d2",color0:"transparent",borderColor:"#e6a0d2",borderColor0:"#3fb1e3",borderWidth:"2"}},graph:{itemStyle:{borderWidth:0,borderColor:"#24b5bc"},lineStyle:{width:"1",color:"#cccccc"},symbolSize:"8",symbol:"pin",smooth:!1,color:["#3fb1e3","#6be6c1","#109582","#a0a7e6","#c4ebad","#333333"],label:{color:"#ffffff"}},map:{itemStyle:{areaColor:"#eeeeee",borderColor:"#aaaaaa",borderWidth:.5},label:{color:"#ffffff"},emphasis:{itemStyle:{areaColor:"rgba(63,177,227,0.25)",borderColor:"#3fb1e3",borderWidth:1},label:{color:"#3fb1e3"}}},geo:{itemStyle:{areaColor:"#eeeeee",borderColor:"#aaaaaa",borderWidth:.5},label:{color:"#ffffff"},emphasis:{itemStyle:{areaColor:"rgba(63,177,227,0.25)",borderColor:"#3fb1e3",borderWidth:1},label:{color:"#3fb1e3"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#ffffff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#ffffff"},splitLine:{show:!1,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#ffffff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#ffffff"},splitLine:{show:!1,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#ffffff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#ffffff"},splitLine:{show:!1,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#ffffff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#ffffff"},splitLine:{show:!1,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},legend:{textStyle:{color:"#ffffff"}},tooltip:{axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},timeline:{lineStyle:{color:"#626c91",width:1},itemStyle:{color:"#626c91",borderWidth:1},controlStyle:{color:"#626c91",borderColor:"#626c91",borderWidth:.5},checkpointStyle:{color:"#3fb1e3",borderColor:"#3fb1e3"},label:{color:"#626c91"},emphasis:{itemStyle:{color:"#626c91"},controlStyle:{color:"#626c91",borderColor:"#626c91",borderWidth:.5},label:{color:"#626c91"}}},visualMap:{color:["#2a99c9","#afe8ff"]},dataZoom:{backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(222,222,222,1)",fillerColor:"rgba(114,230,212,0.25)",handleColor:"#cccccc",handleSize:"100%",textStyle:{color:"#999999"}},markPoint:{label:{color:"#ffffff"},emphasis:{label:{color:"#ffffff"}}}},Ui=Bi,Pi=[{prop:"name",label:"水库名称"},{prop:"water_level",label:"水位(m)"},{prop:"createtime",label:"创建时间"}],zi={name:"LeftDown",components:{DownloadModal:Ei},data:function(){return{mainData:null,currentData:null,timer:null,waterOptions:{data:[]},visible:!1}},created:function(){var t=this;_i().then((function(e){console.log("实时水位数据",e),t.mainData=e.data,t.currentData=t.mainData[0],t.initWaterLevel(),t.initTimer()}))},methods:{handleClick:function(){var t=this;yi(this.currentData.id).then((function(e){var n=e.data;t.waterOptions=Object(at["a"])(Object(at["a"])({},t.currentData),{},{reservoir_id:t.currentData.id,main_data:t.mainData,data:n,columns:Pi,pagination:n.length>1e4,getData:yi,downloadUrl:"tyexcel/isotListExcel"}),t.visible=!0}))},goSpecified:function(t){var e=this;clearInterval(this.timer),this.timer=null,this.currentData=t,this.updateWaterLevel(),setTimeout((function(){e.initTimer()}),8e3)},initTimer:function(){var t=this,e=0;this.timer=setInterval((function(){t.mainData[e+1]?(e+=1,t.currentData=t.mainData[e],t.updateWaterLevel()):(e=0,t.currentData=t.mainData[e],t.updateWaterLevel())}),1e4)},initWaterLevel:function(){this.$echarts.registerTheme("vintage",Ui),this.myechars=this.$echarts.init(document.getElementById("left2"),"vintage");var t=this.currentData.time.map((function(t){return t.substring(5)}));this.myechars.setOption({type:"category",title:{text:""},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"line",axis:"auto",snap:!0},renderMode:"html",backgroundColor:"rgba(255,255,255,0.7)",borderColor:"#333",borderWidth:0,padding:5,textStyle:{color:"#333",fontStyle:"normal",fontWeight:"normal",fontFamily:"sans-serif",fontSize:12},extraCssText:"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);",confine:!1,formatter:function(t){return null!=t[1]?"时间:"+t[0].name+"<br />水位:"+t[0].data+"m<br />库容量:"+t[1].data+"万立方米":"时间:"+t[0].name+"<br />水位:"+t[0].data+"m"}},grid:{left:"16%",right:"10%"},xAxis:{data:t,boundaryGap:["20%","20%"],axisLabel:{show:!0,color:"rgba(255, 255, 255, 1)"}},yAxis:[{name:"水位/m",type:"value",show:!0,min:function(t){return t.min}},{name:"库容/万方",type:"value",show:!0,min:function(t){return t.min}}],series:[{itemStyle:{color:"rgba(49, 227, 128, 1)"},areaStyle:{color:"rgba(255, 255, 255, .3)"},data:this.currentData.warter[0],type:"line",smooth:!0,symbol:"none"},{itemStyle:{color:"rgba(90, 163, 237, 1)"},areaStyle:{color:"rgba(255, 255, 255, .3)"},yAxisIndex:1,data:this.currentData.warter[1],type:"line",smooth:!0,symbol:"none"}]})},updateWaterLevel:function(){var t=this.currentData.time.map((function(t){return t.substring(5)}));this.myechars.setOption({type:"category",title:{text:""},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"line",axis:"auto",snap:!0},renderMode:"html",backgroundColor:"rgba(255,255,255,0.7)",borderColor:"#333",borderWidth:0,padding:5,textStyle:{color:"#333",fontStyle:"normal",fontWeight:"normal",fontFamily:"sans-serif",fontSize:12},extraCssText:"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);",confine:!1,formatter:function(t){return null!=t[1]?"时间:"+t[0].name+"<br />水位:"+t[0].data+"m<br />库容量:"+t[1].data+"万立方米":"时间:"+t[0].name+"<br />水位:"+t[0].data+"m"}},grid:{left:"16%",right:"10%"},xAxis:{data:t,boundaryGap:["20%","20%"],axisLabel:{show:!0,color:"rgba(255, 255, 255, 1)"}},yAxis:[{name:"水位/m",type:"value",show:!0,min:function(t){return t.min}},{name:"库容/万方",type:"value",show:!0,min:function(t){return t.min}}],series:[{itemStyle:{color:"rgba(49, 227, 128, 1)"},areaStyle:{color:"rgba(255, 255, 255, .3)"},data:this.currentData.warter[0],type:"line",smooth:!0,symbol:"none"},{itemStyle:{color:"rgba(90, 163, 237, 1)"},areaStyle:{color:"rgba(255, 255, 255, .3)"},yAxisIndex:1,data:this.currentData.warter[1],type:"line",smooth:!0,symbol:"none"}]})}}},$i=zi,ji=(n("d996"),Object(X["a"])($i,Mi,Oi,!1,null,"7020d2e8",null)),Ni=ji.exports,Fi={name:"LeftMain",components:{leftTop:Ti,leftDown:Ni}},Wi=Fi,Hi=(n("c571"),Object(X["a"])(Wi,pi,gi,!1,null,"468cbf16",null)),Vi=Hi.exports,Zi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right_main_box"},[n("rightTop"),n("rightDown")],1)},Gi=[],Ji=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right_top_box"},[n("div",{staticClass:"right_top_title"}),n("div",{staticClass:"right_top_main"},[t._m(0),0==t.messageData.length?n("div",{staticClass:"empty_data"},[t._v(" 暂无数据 ")]):t._e(),t.messageData.length>0?n("div",{staticClass:"right_top_main_messages"},t._l(t.messageData,(function(e){return n("div",{staticClass:"main_messages_box"},[n("span",[n("svg",{staticClass:"message_icon",attrs:{t:"1646619968199",fill:"#ffffff",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","p-id":"2041",width:"200",height:"200"}},[n("path",{attrs:{d:"M413.182 898.981c0 67.705 54.883 122.589 122.581 122.589 67.713 0 122.596-54.883 122.596-122.589C658.762 899.726 413.965 899.182 413.182 898.981z","p-id":"2042"}}),n("path",{attrs:{d:"M877.146 594.482c-0.544-3.185-1.052-6.631-1.529-10.316-2.857-22.123-3.864-45.366-3.864-59.694l0-98.28c0-137.178-74.702-259.842-188.459-318.812C663.767 44.978 604.796 0 535.763 0c-69.376 0-128.675 45.463-147.845 108.469-111.467 59.993-188.131 182.977-188.131 317.708l0 97.303c0 14.53-0.992 38.018-3.834 60.418-0.462 3.655-0.97 7.086-1.484 10.264-39.212 18.506-67.332 58.538-67.332 106.03 0 65.296 53.347 117.069 118.054 117.069l290.573 0 254.262 0 36.325 0c64.811 0 118.054-51.907 118.054-117.069C944.404 653.184 916.761 613.211 877.146 594.482zM826.35 735.539l-36.325 0L535.763 735.539 245.19 735.539c-20.072 0-36.325-15.694-36.325-35.348 0-19.513 16.149-35.326 37.258-35.326 35.393-1.231 35.393-141.385 35.393-141.385l0-97.303c0-123.603 82.288-228.081 182.596-262.094-0.656-3.789-0.992-7.698-0.992-11.673 0-39.048 32.618-70.689 72.643-70.689 40.129 0 72.658 31.731 72.658 70.689 0 3.938-0.336 7.817-0.977 11.591C713.085 197.91 790.025 302.44 790.025 426.192l0 98.28c0 0 0 140.393 36.325 140.393 20.072 0 36.325 15.679 36.325 35.326C862.676 719.711 846.512 735.539 826.35 735.539z","p-id":"2043"}})])]),n("div",{staticClass:"message_list"},[n("div",{staticClass:"message_title"},[t._v(" "+t._s(e.skname)+"("+t._s(e.sbname)+") ")]),n("div",{staticClass:"message_content"},[t._v(" "+t._s(e.skname)+"当前值为"+t._s(e.value)+"m ")]),n("div",{staticClass:"message_time"},[t._v(" 预报时间:"+t._s(e.createtime)+" ")])])])})),0):t._e()])])},Ki=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right_top_main_tabs"},[n("div",[t._v("最新水库预报信息")])])}];function Yi(){return J({url:"safeoperation/dp/WarningStatistics"})}function qi(){return J({url:"safeoperation/Dp/getrain"})}var Xi={name:"RightTop",data:function(){return{WarningMainData:{stdata:[{name:"小新寨水库",count:41},{name:"马鞍山水库",count:214},{name:"响水河水库",count:321}],newwarning:[{skname:"小新寨水库",sbname:"小新寨水库B1位移监测点",value:.7,createtime:"2022-03-07",warning:"-30,-10"}]},messageData:null}},created:function(){var t=this;Yi().then((function(e){t.WarningMainData=e.data,t.messageData=t.WarningMainData.newwarning.slice(0,3)}))}},Qi=Xi,tr=(n("bd11"),Object(X["a"])(Qi,Ji,Ki,!1,null,"c144bc2e",null)),er=tr.exports,nr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right_down_box"},[n("dv-decoration-4",{staticStyle:{width:"100%",height:"1vh","margin-bottom":"7%",position:"absolute",top:"-10px"},attrs:{reverse:!0}}),n("div",{staticClass:"right_down_title"},[t._v("当日雨水动态(单位/mm)")]),null!=t.allData[0]?n("div",{staticClass:"right_down_main"},t._l(t.allData,(function(e){return n("div",{staticClass:"right_box_1",on:{click:function(n){return t.goFrom(e)}}},[n("i",[t._v(t._s(e.total_rainfall)+"mm")]),n("div"),n("span",[t._v(t._s(e.name))])])})),0):n("div",{staticClass:"empty_data"},[t._v(" 暂无数据 ")]),n("dv-decoration-4",{staticStyle:{width:"100%",height:"1vh","margin-bottom":"7%",position:"absolute",bottom:"10px"},attrs:{reverse:!0}})],1)},ir=[];function rr(t){return J({url:"tyexcel/resvRainList",method:"POST",data:t})}var ar={name:"RightDown",data:function(){return{allData:null,xxz:1,mas:1,xsh:1}},created:function(){var t=this;qi().then((function(e){t.allData=e.data,console.log(t.allData),t.$store.commit("setRainMenuData",e.data)}))},methods:{goFrom:function(t){var e=this,n={rid:t.reservoir_id};this.$store.commit("setRainId",t.reservoir_id),this.$store.commit("setRainName",t.name),rr(n).then((function(t){e.$store.commit("setRainData",t.data),e.$store.commit("tableShowON")}))}}},or=ar,sr=(n("d46b"),Object(X["a"])(or,nr,ir,!1,null,"5d27f439",null)),cr=sr.exports,lr={name:"RightMain",components:{rightTop:er,rightDown:cr}},ur=lr,hr=(n("d43c"),Object(X["a"])(ur,Zi,Gi,!1,null,"31a3cdc8",null)),dr=hr.exports;function fr(){return J({url:"?id=1"})}var pr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_main_box"},[n("downOne"),n("downThree"),n("downTwo"),n("downFour"),n("downFive"),n("down-shadow")],1)},gr=[],mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_one_box"},[n("dv-decoration-4",{staticStyle:{width:"100%",height:"1vh","margin-bottom":"7%",position:"absolute",top:"-45px"},attrs:{reverse:!0}}),n("strong",{staticClass:"down_one_box_title"},[t._v("渗压监测动态")]),n("scrollTableSmall")],1)},vr=[],_r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table_scroll_box"},[n("div",{staticClass:"table_scroll_box_main"},[n("dv-scroll-board",{staticClass:"scroll-board",staticStyle:{"font-size":"12px !important"},attrs:{config:t.config},on:{click:t.handleClick}})],1),n("DownloadModal",{attrs:{options:t.options,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}})],1)},wr=[],br=[{prop:"name",label:"水库名称"},{prop:"value",label:"检测值"},{prop:"createtime",label:"时间",width:"160%"}],yr={name:"ScrollTableSmall",components:{DownloadModal:Ei},data:function(){return{config:{header:["水库名称","检测值","监测时间"],skid:[],data:[],align:["center"],headerBGC:"rgba(0,197,205,0.4)",oddRowBGC:"rgba(102,139,139,0.4)",evenRowBGC:"rgba(150,205,205,0.5)",rowNum:5,headerHeight:100},options:{},main_data:[],visible:!1}},created:function(){this.getData()},methods:{getData:function(){var t=this;on().then((function(e){t.skid=e.data.data2,t.config={header:["水库名称","检测值 ","监测时间"],data:e.data.data1,align:["center"],headerBGC:"rgba(0,197,205,0.4)",oddRowBGC:"rgba(102,139,139,0.4)",evenRowBGC:"rgba(150,205,205,0.5)"}})),_i().then((function(e){t.main_data=e.data}))},handleClick:function(t){var e=this,n=this.skid[t.rowIndex];ln(n).then((function(t){var i=t.data;e.options={columns:br,data:i,reservoir_id:n,getData:ln,main_data:e.main_data,pagination:i.length>50,downloadUrl:"tyexcel/isotListExcel"},e.visible=!0}))}}},Ar=yr,Sr=(n("1fd7"),Object(X["a"])(Ar,_r,wr,!1,null,"68f593ca",null)),Cr=Sr.exports,kr={name:"DownOne",components:{scrollTableSmall:Cr}},xr=kr,Er=(n("4a6c"),Object(X["a"])(xr,mr,vr,!1,null,null,null)),Dr=Er.exports,Ir=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_two_box"},[n("strong",{staticClass:"down_two_box_title"},[t._v("当日巡查动态")]),n("InspectDynamic")],1)},Lr=[],Rr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"father"},[n("div",[n("div",{staticClass:"box1-img"},[n("span",[t._v(t._s(t.xjdata.all))])]),n("p",[t._v("任务总数")])]),n("div",[n("div",{staticClass:"box2-img"},[n("span",[t._v(t._s(t.xjdata.yes))])]),n("p",[t._v("巡查正常")])]),n("div",[n("div",{staticClass:"box3-img"},[n("span",[t._v(t._s(t.xjdata.no))])]),n("p",[t._v("巡查异常")])])])])},Tr=[],Mr={name:"InspectDynamic",data:function(){return{xjdata:{}}},created:function(){var t=this;sn().then((function(e){t.xjdata=e.data,console.log("巡查动态11111111111",t.xjdata)}))},methods:{}},Or=Mr,Br=(n("b144"),Object(X["a"])(Or,Rr,Tr,!1,null,"7d5c1d20",null)),Ur=Br.exports,Pr={name:"DownTwo",components:{InspectDynamic:Ur}},zr=Pr,$r=(n("9734"),Object(X["a"])(zr,Ir,Lr,!1,null,"a82155b0",null)),jr=$r.exports,Nr=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Fr=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_three_box"},[n("strong",{staticClass:"down_three_box_title"},[t._v("水库监控布防统计(摄像头数量)")]),n("div",{attrs:{id:"s4-father"}})])}],Wr={name:"DownThree",data:function(){return{myechars:""}},mounted:function(){this.initEcharts()},methods:{initEcharts:function(){this.$echarts.registerTheme("vintage",Ui),this.myechars=this.$echarts.init(document.getElementById("s4-father"),"vintage"),this.myechars.setOption({title:{},gradientColor:["#00A7F0"],tooltip:{trigger:"axis",showDelay:0,axisPointer:{type:"shadow"}},xAxis:{data:["花果山寨水库","白云水库","三岔河水库"],axisLabel:{color:"#fff"},axisTick:{show:!1},axisLine:{show:!0},spiltLine:{show:!0},z:10},yAxis:{spiltLine:{show:!0},axisLine:{show:!0},axisTick:{show:!1},axisLabel:{}},dataZoom:[{type:"inside"}],series:[{type:"bar",barWidth:30,itemStyle:{borderRadius:[24,24,24,24]},data:[6,6,3]}],grid:{left:"8%",right:"0",bottom:"1%",containLabel:!0}})}}},Hr=Wr,Vr=(n("bb61"),Object(X["a"])(Hr,Nr,Fr,!1,null,"a825f476",null)),Zr=Vr.exports,Gr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"invasion_box"},[n("strong",{staticClass:"invasion_title"},[t._v("入侵动态")]),n("div",{staticClass:"invasion_main"},[n("div",{staticClass:"invasion_animation"},[n("div",[n("dv-decoration-12")],1)]),t.unreadList.length>0?n("div",{staticClass:"invasion_detailed"},t._l(t.unreadList,(function(e,i){return n("dv-decoration-7",{key:i},[n("div",{on:{click:function(n){return t.alarmShow(e.reservoir_list_id)}}},[t._v(t._s(e.name)+": "),n("span",[t._v(t._s(e.total))])])])})),1):n("div",{staticClass:"invasion_detailed"},[n("dv-decoration-7",[n("div",[t._v("无数据: "),n("span",[t._v("无数据")])])])],1)])])},Jr=[],Kr={name:"DownFour",data:function(){return{}},computed:Object(z["b"])({screenMngInfo:function(t){return t.screenMngInfo},unreadList:function(t){return t.unreadList}}),created:function(){this.getUnReadData()},methods:{getUnReadData:function(){var t=this.screenMngInfo.userinfo.token,e=this;un(t).then((function(t){e.$store.commit("updateUnreadList",t.data)}))},alarmShow:function(t){this.$store.commit("updateAlarmSkId",t),this.$store.commit("updateShowAlarm",!0),this.tim.setMessageRead({conversationID:"C2Cadministrator"})}}},Yr=Kr,qr=(n("8867"),Object(X["a"])(Yr,Gr,Jr,!1,null,"55de065c",null)),Xr=qr.exports,Qr=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},ta=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_five_box"},[n("strong",{staticClass:"down_five_title"},[t._v("水库注册动态")]),n("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"left1"}})])}],ea={name:"DownFive",data:function(){return{rainfall:"",waterlevel:"",myechars:""}},mounted:function(){this.echarsInit()},methods:{echarsInit:function(){var t=this;this.$echarts.registerTheme("vintage",Ui),this.myechars=this.$echarts.init(document.getElementById("left1"),"vintage"),cn().then((function(e){console.log("这是水库驾车呢",e);var n=e.data.sktj.filter((function(t){return t.value>0}));t.myechars.setOption({color:["rgba(150, 205, 205, 0.7)","rgba(0, 197, 205, 0.7)","rgba(102, 139, 139, 0.7)","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left",top:"10%"},series:[{type:"pie",orient:"vertical",top:"30%",data:n,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})}))}}},na=ea,ia=(n("0c4d"),Object(X["a"])(na,Qr,ta,!1,null,"d1c842e8",null)),ra=ia.exports,aa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_shadow"})},oa=[],sa={name:"DownShadow"},ca=sa,la=(n("b06b"),Object(X["a"])(ca,aa,oa,!1,null,"3ec07676",null)),ua=la.exports,ha={name:"DownMain",components:{downOne:Dr,downTwo:jr,downThree:Zr,downFour:Xr,downFive:ra,downShadow:ua}},da=ha,fa=(n("3dbb"),Object(X["a"])(da,pr,gr,!1,null,"36e62335",null)),pa=fa.exports,ga=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_shadow"})},ma=[],va={name:"LeftShadow"},_a=va,wa=(n("2a39"),Object(X["a"])(_a,ga,ma,!1,null,"f3a7cb22",null)),ba=wa.exports,ya=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"down_shadow"})},Aa=[],Sa={name:"RightShadow"},Ca=Sa,ka=(n("bfa2"),Object(X["a"])(Ca,ya,Aa,!1,null,"4c042410",null)),xa=ka.exports,Ea=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"simple_list"},[n("div",{staticClass:"main_simple"},[n("dv-border-box-10",{staticClass:"main_box_1",attrs:{title:"报表下载","background-color":"rgba(16, 65, 66,.2)"}},[n("div",{staticClass:"off_icon",on:{click:t.OffTable}},[n("Shutdown",{staticClass:"off_style"})],1),n("div",{staticClass:"title_simple"},[n("div",{staticClass:"title_table"},[t._v("报表下载")]),n("p",[t._v("(仅支持预览三天,请选择日期后下载更多)")])]),n("div",{staticClass:"date_time"},[n("div",{staticClass:"choose_sk"},[n("el-select",{attrs:{placeholder:"请选择水库",size:"mini"},model:{value:t.skData,callback:function(e){t.skData=e},expression:"skData"}},t._l(t.menuData,(function(t){return n("el-option",{key:t.reservoir_id,attrs:{label:t.name,value:t.reservoir_id}})})),1)],1),n("div",{staticClass:"date_choose"},[n("el-date-picker",{attrs:{type:"daterange","picker-options":t.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",align:"right",size:"mini"},on:{change:t.dateChange},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),n("div",{staticClass:"download_button",on:{click:t.DownloadForm}},[n("a",{attrs:{href:t.src}},[n("button",[n("i",{staticClass:"el-icon-download"})])])])]),n("div",{staticClass:"main_table"},[n("div",{staticClass:"list_main"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"400",border:"",stripe:""}},[n("el-table-column",{attrs:{prop:"name",label:"水库名称",align:"center"}}),n("el-table-column",{attrs:{prop:"total_rainfall",label:"降雨量(mm)",align:"center"}}),n("el-table-column",{attrs:{prop:"createtime",label:"时间",align:"center"}})],1)],1)])])],1)])},Da=[],Ia={name:"ASimpleTable",components:{Shutdown:vt},data:function(){return{tableData:[],menuData:[],skData:"",src:"",pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()-864e4},shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-7776e6),t.$emit("pick",[n,e])}}]},value1:[new Date(2e3,10,10,10,10),new Date(2e3,10,11,10,10)],value2:""}},watch:{skData:function(t,e){var n=this,i={rid:t};rr(i).then((function(t){n.$store.commit("setRainData",t.data),n.tableData=n.$store.state.tabData}))}},created:function(){this.tableData=this.$store.state.tabData,this.skData=this.$store.state.RainId,this.menuData=this.$store.state.RainMenuData},methods:{OffTable:function(){this.$store.commit("tableShowOFF")},dateChange:function(){},DownloadForm:function(){this.value2?this.src="https://gjsk.xp.yn.cn/api/tyexcel/resvRainExcel?rid=".concat(this.skData,"&startime=").concat(this.value2[0],"&endtime=").concat(this.value2[1]):this.$message.error("请选择日期范围后再点击下载")}}},La=Ia,Ra=(n("6452"),Object(X["a"])(La,Ea,Da,!1,null,"7fbd163c",null)),Ta=Ra.exports,Ma={name:"App",components:{mapBg:Wn,boardHeaderMain:fi,leftMain:Vi,rightMain:dr,downMain:pa,LeftShadow:ba,rightShadow:xa,ASimpleTable:Ta},data:function(){return{kanbanShow:!0,tableIsShow:!1}},watch:{"$store.state.KanbanState":function(){this.kanbanShow=!this.kanbanShow},isScreenLogin:function(t,e){t!==e&&(t?"/login"===this.$router.history.current.path&&this.$router.push("/"):this.$router.push("/login"))}},computed:Object(z["b"])({isScreenLogin:function(t){return t.isScreenLogin},tableShow:function(t){return t.tableShow}}),created:function(){return Object(H["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:fr().then((function(t){}));case 1:case"end":return t.stop()}}),t)})))()}},Oa=Ma,Ba=(n("7df3"),Object(X["a"])(Oa,et,nt,!1,null,null,null)),Ua=Ba.exports;function Pa(){var t=new N["a"]({mode:"history",scrollBehavior:function(){return{y:0}},routes:[{path:"/rain5",component:Ua,meta:{title:"个旧智慧水库安全监测指挥云平台"}},{path:"/login",component:tt,meta:{title:"个旧智慧水库登录"}}]});return t.beforeEach((function(t,e,n){t.meta.title&&(document.title=t.meta.title),j.state.isScreenLogin||"/login"===t.fullPath?n():"/login"!==e.fullPath&&n("/login")})),t}P["default"].use(N["a"]);var za=N["a"].prototype.push;N["a"].prototype.push=function(t){return za.call(this,t).catch((function(t){return t}))};var $a=n("e23e"),ja=n.n($a),Na=n("3581"),Fa=n.n(Na),Wa=Ln("").sdkAppID,Ha={SDKAppID:Wa,CallTimeout:30},Va=n("fc9e"),Za=n.n(Va);function Ga(){return new Za.a({SDKAppID:Ha.SDKAppID})}var Ja,Ka=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{staticClass:"view"})],1),n("el-dialog",{attrs:{title:t.callTypeDisplayName,"custom-class":"zidingyi","close-on-click-modal":!1,"show-close":!1,center:!0,visible:t.isShowNewInvitationDialog,width:"400px"},on:{"update:visible":function(e){t.isShowNewInvitationDialog=e}}},[n("span",[t._v(t._s(this.getNewInvitationDialogContent()))]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.handleRejectCall}},[t._v("拒绝")]),n("el-button",{attrs:{type:"primary"},on:{click:t.handleAccept}},[t._v("接听")])],1)]),n("div",[n("audio",{attrs:{id:"callin",src:t.callInMusic}}),n("audio",{attrs:{id:"alarm",src:t.alarmMusic}})])],1)},Ya=[],qa={name:"App",components:{},watch:{"$store.state.KanbanState":function(){this.kanbanShow=!this.kanbanShow},isScreenLogin:function(t,e){t!==e&&(t?"/login"===this.$router.history.current.path&&this.$router.push("/rain5"):this.$router.push("/login"))}},computed:Object(z["b"])({isScreenLogin:function(t){return t.isScreenLogin},screenMngInfo:function(t){return t.screenMngInfo},isLogin:function(t){return t.isLogin},loginUserInfo:function(t){return t.loginUserInfo},callStatus:function(t){return t.callStatus},isAccepted:function(t){return t.isAccepted},meetingUserIdList:function(t){return t.meetingUserIdList},muteVideoUserIdList:function(t){return t.muteVideoUserIdList},muteAudioUserIdList:function(t){return t.muteAudioUserIdList},unreadList:function(t){return t.unreadList},ShowShuiku:function(t){return t.ShowShuiku},ShowHomePage:function(t){return t.ShowHomePage},ShowAudioCall:function(t){return t.ShowAudioCall},ShowVideoCall:function(t){return t.ShowVideoCall}}),created:function(){var t=this;return Object(H["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initListener(),e.next=3,t.handleAutoLogin();case 3:fr().then((function(t){})),sessionStorage.getItem("screenMngInfo")&&t.$store.replaceState(Object.assign({},t.$store.state,JSON.parse(sessionStorage.getItem("screenMngInfo")))),window.addEventListener("beforeunload",(function(){for(var e=1;e<1e5;e++)clearInterval(e);sessionStorage.setItem("screenMngInfo",JSON.stringify(t.$store.state)),t.$store.commit("updateShowShuiku",!1),t.$store.commit("updateShowHomePage",!1),t.$store.commit("updateShowAudioCall",!1),t.$store.commit("updateShowVideoCall",!1)})),window.addEventListener("pagehide",(function(){sessionStorage.setItem("screenMngInfo",JSON.stringify(t.$store.state))})),sessionStorage.setItem("isScreenLogin",t.$store.state.isScreenLogin);case 8:case"end":return e.stop()}}),e)})))()},data:function(){return{isInviterCanceled:!1,isShowNewInvitationDialog:!1,inviterName:"",callTypeDisplayName:"",inviteData:{},inviteID:"",callInMusic:"https://gjsk.xp.yn.cn/uploads/music/call_in.mp3",alarmMusic:"https://gjsk.xp.yn.cn/uploads/music/alarm.mp3"}},mounted:function(){var t=this;window.addEventListener("beforeunload",(function(e){return t.beforeunloadHandler(e)})),window.addEventListener("unload",(function(e){return t.unloadHandler(e)}));var e=document.querySelector("#callin");e.onended=function(){e.load(),e.play()}},destroyed:function(){var t=this;window.removeEventListener("beforeunload",(function(e){return t.beforeunloadHandler(e)})),window.removeEventListener("unload",(function(e){return t.unloadHandler(e)})),this.removeListener()},methods:{beforeunloadHandler:function(){this._beforeUnload_time=(new Date).getTime()},unloadHandler:function(t){this._gap_time=(new Date).getTime()-this._beforeUnload_time,this._gap_time<=5&&(this.showLoginButton||(this.$trtcCalling.logout(),this.$store.commit("userLogoutSuccess"),At({token:"",phoneNum:""})))},audioAutoPlay:function(){var t=document.getElementById("callin");t.play(),document.removeEventListener("touchstart",this.audioAutoPlay)},audioAutoPause:function(){var t=document.getElementById("callin");t.pause(),document.removeEventListener("touchstart",this.audioAutoPlay)},alarmAutoPlay:function(){var t=document.getElementById("alarm");t.play(),document.removeEventListener("touchstart",this.alarmAutoPlay)},handleAutoLogin:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),initListener:function(){this.$trtcCalling.on(this.TrtcCalling.EVENT.ERROR,this.handleError),this.$trtcCalling.on(this.TrtcCalling.EVENT.INVITED,this.handleNewInvitationReceived),this.$trtcCalling.on(this.TrtcCalling.EVENT.USER_ACCEPT,this.handleUserAccept),this.$trtcCalling.on(this.TrtcCalling.EVENT.USER_ENTER,this.handleUserEnter),this.$trtcCalling.on(this.TrtcCalling.EVENT.USER_LEAVE,this.handleUserLeave),this.$trtcCalling.on(this.TrtcCalling.EVENT.REJECT,this.handleInviteeReject),this.$trtcCalling.on(this.TrtcCalling.EVENT.LINE_BUSY,this.handleInviteeLineBusy),this.$trtcCalling.on(this.TrtcCalling.EVENT.CALLING_CANCEL,this.handleInviterCancel),this.$trtcCalling.on(this.TrtcCalling.EVENT.KICKED_OUT,this.handleKickedOut),this.$trtcCalling.on(this.TrtcCalling.EVENT.CALLING_TIMEOUT,this.handleCallTimeout),this.$trtcCalling.on(this.TrtcCalling.EVENT.NO_RESP,this.handleNoResponse),this.$trtcCalling.on(this.TrtcCalling.EVENT.CALLING_END,this.handleCallEnd),this.$trtcCalling.on(this.TrtcCalling.EVENT.USER_VIDEO_AVAILABLE,this.handleUserVideoChange),this.$trtcCalling.on(this.TrtcCalling.EVENT.USER_AUDIO_AVAILABLE,this.handleUserAudioChange),this.tim.on(this.TIM.EVENT.MESSAGE_RECEIVED,this.onReceiveMessage),this.tim.on(this.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.onUpdateConversationList),this.tim.on(this.TIM.EVENT.KICKED_OUT,this.onKickedOut)},removeListener:function(){this.$trtcCalling.off(this.TrtcCalling.EVENT.ERROR,this.handleError),this.$trtcCalling.off(this.TrtcCalling.EVENT.INVITED,this.handleNewInvitationReceived),this.$trtcCalling.off(this.TrtcCalling.EVENT.USER_ACCEPT,this.handleUserAccept),this.$trtcCalling.off(this.TrtcCalling.EVENT.USER_ENTER,this.handleUserEnter),this.$trtcCalling.off(this.TrtcCalling.EVENT.USER_LEAVE,this.handleUserLeave),this.$trtcCalling.off(this.TrtcCalling.EVENT.REJECT,this.handleInviteeReject),this.$trtcCalling.off(this.TrtcCalling.EVENT.LINE_BUSY,this.handleInviteeLineBusy),this.$trtcCalling.off(this.TrtcCalling.EVENT.CALLING_CANCEL,this.handleInviterCancel),this.$trtcCalling.off(this.TrtcCalling.EVENT.KICKED_OUT,this.handleKickedOut),this.$trtcCalling.off(this.TrtcCalling.EVENT.CALLING_TIMEOUT,this.handleCallTimeout),this.$trtcCalling.off(this.TrtcCalling.EVENT.NO_RESP,this.handleNoResponse),this.$trtcCalling.off(this.TrtcCalling.EVENT.CALLING_END,this.handleCallEnd),this.$trtcCalling.off(this.TrtcCalling.EVENT.USER_VIDEO_AVAILABLE,this.handleUserVideoChange),this.$trtcCalling.off(this.TrtcCalling.EVENT.USER_AUDIO_AVAILABLE,this.handleUserAudioChange)},handleError:function(t){var e=JSON.stringify(t);if(""!=e&&"{}"!=e){var n=t.code;switch(n){case 60001:this.$message.error("切换到语音通话失败");break;case 60002:this.$message.error("切换到视频通话失败");break;case 60003:this.$message.error("没有可用的麦克风设备");break;case 60004:this.$message.error("没有可用的摄像头设备");break;case 60005:this.$message.error("请检查您的麦克风、摄像头以及打开权限");break;case"60006":this.$message.error("当前环境不支持WebRTC");break}}},handleNewInvitationReceived:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(e){var n,i,r,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.inviteID,i=e.sponsor,r=e.inviteData,Ct("handleNewInvitationReceived ".concat(JSON.stringify(e))),!r.callEnd){t.next=5;break}return this.$store.commit("updateCallStatus","idle"),t.abrupt("return");case 5:if(i!==this.loginUserInfo.userId){t.next=7;break}return t.abrupt("return");case 7:if("calling"!==this.callStatus&&"connected"!==this.callStatus){t.next=11;break}return t.next=10,this.$trtcCalling.reject({inviteID:n,isBusy:!0});case 10:return t.abrupt("return");case 11:a=r.callType,this.inviteData=r,this.inviteID=n,this.isInviterCanceled=!1,this.$store.commit("updateIsInviter",!1),this.$store.commit("updateCallStatus","calling"),o=i,this.inviterName=o,this.callTypeDisplayName=a===this.TrtcCalling.CALL_TYPE.AUDIO_CALL?"语音通话":"视频通话",this.isShowNewInvitationDialog=!0,this.audioAutoPlay();case 22:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getNewInvitationDialogContent:function(){return"来自".concat(this.inviterName,"的").concat(this.callTypeDisplayName)},handleRejectCall:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.inviteData.callType,t.next=4,this.$trtcCalling.reject({inviteID:this.inviteID,isBusy:!1,callType:e});case 4:this.dissolveMeetingIfNeed(),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.dissolveMeetingIfNeed();case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),handleAccept:function(){this.handleDebounce(this.handleAcceptCall(),500)},handleDebounce:function(t,e){var n=this,i=arguments;Ja&&clearTimeout(Ja),Ja=setTimeout((function(){t.apply(n,i)}),e)},handleAcceptCall:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(){var e,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.inviteData,n=e.callType,i=e.roomID,this.$store.commit("userJoinMeeting",this.loginUserInfo.userId),t.next=5,this.$trtcCalling.accept({inviteID:this.inviteID,roomID:i,callType:n});case 5:this.isShowNewInvitationDialog=!1,this.audioAutoPause(),n===this.TrtcCalling.CALL_TYPE.AUDIO_CALL&&1!=this.ShowAudioCall?(this.$store.commit("updateShowShuiku",!0),this.$store.commit("updateShowHomePage",!0),this.$store.commit("updateShowAudioCall",!0)):n===this.TrtcCalling.CALL_TYPE.VIDEO_CALL&&1!=this.ShowVideoCall&&(this.$store.commit("updateShowShuiku",!0),this.$store.commit("updateShowHomePage",!0),this.$store.commit("updateShowVideoCall",!0)),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),this.dissolveMeetingIfNeed();case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),handleUserAccept:function(t){t.userID;this.$store.commit("userAccepted",!0)},handleUserEnter:function(t){var e=this,n=t.userID;this.$store.commit("userJoinMeeting",n),"calling"===this.callStatus?this.$nextTick((function(){e.$store.commit("updateCallStatus","connected")})):this.$nextTick((function(){e.$trtcCalling.startRemoteView({userID:n,videoViewDomID:"video-".concat(n)})}))},handleUserLeave:function(t){var e=t.userID;2==this.meetingUserIdList.length&&this.$store.commit("updateCallStatus","idle"),this.$store.commit("userLeaveMeeting",e)},handleInviteeReject:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(e){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.userID,t.next=3,Lt(n);case 3:i=t.sent,this.$message.warning("".concat(i,"拒绝通话")),this.dissolveMeetingIfNeed();case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleInviteeLineBusy:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(e){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.userID,t.next=3,Lt(n);case 3:i=t.sent,this.$message.warning("".concat(i,"正在通话中,忙线")),this.dissolveMeetingIfNeed();case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleInviterCancel:function(){this.isShowNewInvitationDialog=!1,this.$message.warning("通话已取消"),this.dissolveMeetingIfNeed()},handleKickedOut:function(){this.$message.warning("重复登陆,被踢出房间"),this.$store.commit("userAccepted",!1),this.$trtcCalling.logout(),this.$store.commit("userLogoutSuccess")},handleCallTimeout:function(){this.isShowNewInvitationDialog=!1,this.$message.warning("本次通话超时未应答"),this.dissolveMeetingIfNeed()},handleCallEnd:function(){this.$message.success("通话已结束"),this.$trtcCalling.hangup(),this.dissolveMeetingIfNeed(),this.$store.commit("updateShowShuiku",!1),this.$store.commit("updateShowHomePage",!1),this.$store.commit("updateShowAudioCall",!1),this.$store.commit("updateShowVideoCall",!1),this.$store.commit("userAccepted",!1)},handleNoResponse:function(){var t=Object(H["a"])(regeneratorRuntime.mark((function t(e){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.userID,t.next=3,Lt(n);case 3:i=t.sent,this.$message.warning("".concat(i,"超时无应答")),this.dissolveMeetingIfNeed();case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleUserVideoChange:function(t){var e=t.userID,n=t.isVideoAvailable;if(Ct("handleUserVideoChange userID, ".concat(e," isVideoAvailable ").concat(n)),n){var i=this.muteAudioUserIdList.filter((function(t){return t!==e}));this.$store.commit("updateMuteVideoUserIdList",i)}else{var r=this.muteAudioUserIdList.concat(e);this.$store.commit("updateMuteVideoUserIdList",r)}},handleUserAudioChange:function(t){var e=t.userID,n=t.isAudioAvailable;if(Ct("handleUserAudioChange userID, ".concat(e," isAudioAvailable ").concat(n)),n){var i=this.muteAudioUserIdList.filter((function(t){return t!==e}));this.$store.commit("updateMuteAudioUserIdList",i)}else{var r=this.muteAudioUserIdList.concat(e);this.$store.commit("updateMuteAudioUserIdList",r)}},dissolveMeetingIfNeed:function(){this.$store.commit("updateCallStatus","idle"),this.isShowNewInvitationDialog=!1,this.meetingUserIdList.length<2&&this.$store.commit("dissolveMeeting"),this.audioAutoPause()},onReceiveMessage:function(t){t.data},onUpdateConversationList:function(t){var e=this;if(t&&t.data&&t.data.length>0)for(var n=0;n<t.data.length;n++)if("C2Cadministrator"==t.data[n].conversationID){var i=function(){var i=t.data[n].unreadCount;i=i>0?i:0,e.$store.commit("updateUnreadCount",i);var r=e.screenMngInfo.userinfo.token;return un(r).then((function(t){e.$store.commit("updateUnreadList",t.data),i>0&&e.alarmAutoPlay()})),hn(r).then((function(t){e.$store.commit("updateLatestWarning",t.data)})),"break"}();if("break"===i)break}},onKickedOut:function(t){this.$trtcCalling.logout(),this.$store.commit("userLogoutSuccess"),At({token:"",phoneNum:""}),this.$store.commit("screenLogoutSuccess")}}},Xa=qa,Qa=(n("034f"),Object(X["a"])(Xa,Ka,Ya,!1,null,null,null)),to=Qa.exports,eo={getUrlKey:function(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}},no=(n("918d"),n("49420"),n("6c29")),io=n("313e"),ro=n.n(io),ao={SDKAppID:Ha.SDKAppID},oo=ja.a.create(ao);oo.setLogLevel(4),oo.registerPlugin({"tim-upload-plugin":Fa.a}),P["default"].use(U.a),P["default"].use(O.a),P["default"].use(T.a),P["default"].use(L.a),P["default"].use(D.a),P["default"].use(x.a),P["default"].use(C.a),P["default"].use(A.a),P["default"].use(b.a),P["default"].use(_.a),P["default"].use(m.a),P["default"].use(p.a),P["default"].use(d.a),P["default"].use(u.a),P["default"].use(c.a),P["default"].prototype.$message=o.a,P["default"].prototype.$confirm=r.a.confirm,P["default"].prototype.tim=oo,P["default"].prototype.TIM=ja.a,P["default"].prototype.$trtcCalling=Ga(),P["default"].prototype.TrtcCalling=Za.a,P["default"].prototype.$utils=eo,P["default"].prototype.$echarts=ro.a,P["default"].use(no["a"]),P["default"].config.productionTip=!1,new P["default"]({store:j,render:function(t){return t(to)},router:Pa()}).$mount("#app")},"5c4c":function(t,e,n){},"60b5":function(t,e,n){},"62f2":function(t,e,n){},6395:function(t,e,n){"use strict";n("9b12")},6452:function(t,e,n){"use strict";n("2688")},6471:function(t,e,n){},"728c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACylBMVEUAAADHAADFAADEAADFAADGAADFAADFAADFAADEAADFAADGAADGAADGAADFAADFAADGAADFAAAAAADFAADFAADFAADFAADFAADEAADGAADCAADFAADFAADEAADEAADIAADGAADFAADGAADFAADHAADGAADFAADFAADFAADFAADFAADGAADFAADGAADFAADFAADFAADFAADGAADEAADGAADGAADFAADEAADJAADGAADFAADFAADEAADFAADFAADDAADEAADCAADEAADFAADFAADFAADGAADFAADFAAC2AADFAADEAADHAADGAADGAADFAADFAADFAADFAADGAADDAADIAADFAADFAADGAADGAADIAADFAADFAADFAADIAADGAADFAADDAADEAADFAAC/AADMAADFAADFAADEAAC/AADFAADGAADFAADCAADEAADGAADFAADFAADGAADEAADFAADFAADFAADEAADGAADFAADFAADFAADFAADFAADGAADFAADBAADFAADHAADFAADFAADIAADFAADEAADGAADEAADFAADEAADEAADFAADFAACqAADEAADFAADFAADDAADFAADGAADFAADGAADFAADGAADFAADFAADEAADFAADGAADFAADEAACAAADGAADEAADHAADEAAC/AADFAAC/AADFAADGAADGAADHAADCAADGAADFAADFAADFAADFAADHAADFAADGAACqAADEAADFAADFAADGAADGAADFAADFAADGAADGAADEAADGAADFAADFAADFAADFAADGAADFAADGAADGAADGAADFAADEAADGAADFAADFAADFAADHAADGAADGAADGAAC5AADFAADFAADEAADGAADGAADGAADGAADDAADFAADHAADGAADGAADGAADGAADFAADGAADGAADFAADFAADIAAC/AADFAADFAAD///9hoiD2AAAA7HRSTlMAMoCcuNXx1H9Xld9mzGXLxMMB7OvTNf6hoENCr649PI6M3t1AP4SDkpGfrby7tbSnppmYi4ppaBMSqFxa5uURGhlWiLFTOs45B3fnIJCPHyPyrGciDkZddHhF+frpM7+rJifiBAXjc3EQcn58Kit9VFhZNO2kykrR0OgWT9jI3B3zRKOWF50NcFueUkGamwZ6sMEeYIGi5Lna+4m39cmzpQJvZE44DG4YzyRHNxWX2e5L+DvhawNjvsaC2/csLV5f9Ncw76pQ9qliMXZ1huCFaimyTFUL8GGTlIcozUjqSQn90jZtwBvCuiUUvY5I4IsAAAABYktHRO1WvoONAAAAB3RJTUUH5gQdCCY5yfIhKQAACEdJREFUeNrtnflfFGUcx8cF2ZVD1EDQROTSXEiQwxVBM/BIBBIPQAwFvFMxVpGUUBREJA9UPMA7RUXwwMCyKMuzzLQoy9LKzNv5I5rZc/aafZ7dWb4jr+f92z6v7/PM572zO9fuzENRDqWLxMm5q4uL1NlJ1sWxS3Ik3VzdaA5urt2gE9mEuwdtgoc7dCpsunvSZvHsDp0MDyfaIk7Q2XDoQfPQEzodMr1eo3nxgg6ISlfaCt7QCdGQWPOgaRl0RhTcrXvQ9Cuw7ertgyLi0xs6p1V8UTxoug90Tmv0RfOg6dehk1qhH6qIH3RSfvqjetC0P3RWXgagiwRAZ+UlEF0kCDorH8HoHjQdAp2Wh4E4IoOg0/LwBo7IYOi0PPTBEZFDp+XBD0ckFDotD2E4Im9Cp+VhCI5IOHRaHiJwRIZCp+UhEkckCjotD9E4IjHQaXkYhiOigE7Lw3AckVjotHyMQPeIgM7KSxy6SDx0Vl6Gj0T1GPUWdFZ+EC5qqRH7pa3RiKtk1NvQSa2BuErEvkKYVRKE4hEk+hVCUd1QRBKgU6IQY90jETojGmOsefSDToiKlWNHMR8tGjGWz2MsdDocxo23pDH+HehseExImmhOY2LSBOhk2CSnmHqkvgudyiYmKULT9BIuk6dMhU6EyLT0jEyJrL9BW3DcdNcxY1ynxxle6e0vk2VmZEEHNo/MWf3Oz8i0Xpv5nqo0e+BM6NQmBM/Sf4hycvlr8ybrSn2iRPbvJ5nBd3q2+xzLpXOnzOPW+syHzs4l3Hjz5L1gofnKhe97G9cugk6vZ7CZPUbg4iWmhflL3cyUfgCdX4ulcympUwHnxDxW6WTpTyoiMVnGd2C1XBpWGBBQGCZdzlPkCa2gBuuCr3lE8deUSfZ70CugJVgUAojQRdAWFObPbZaIgLZg+FAIkZXQFgyrhBCZCG3BIIQHTUNbEBEiQkSICBEhIkSEiBARIkJEiAgRISJEhIgQESLSCUSCGdCCM4USEYuEIN9mFWL0Qxe0hT0iMiJCRIgIrwj5sotNhKwRsYmQNUJEiAgRISJEhIgQESJCRF45kRmdRWQ2J04xjshHnJcl0BYMnGd9zqZwRPI4L8XwRA7OrVR+WCLUav1LMdyDrH/q3JpSPBGl7tVaUdx9pb15xGsdhSdClWlflUM7qFiv/gtzRR6FK0LFq5+QlgqtoGFD8PzKjX01L7BEqNiCqhzJx9ACZsETETFERGwQEbHRiUUkDJ1ChMm8iYgQESJCRMQKEREbRERsEBGxQUTEBhERG0REbBARsUFExAYRERtERGwQEbFBRMQGEREbRERsmIpsXrp0y6sisjVvXYKiOqBq23ZvLxoJL+/t/aoCqhUJ6/K2Qqdn2RFSs3NXz91o4S2xu+eunTUhO2AMirMyo/bU1tlnYEhd7Z6ozKzijnPIj9+7z+wsI/vdDhysOGTS3Pfw4SyTxkMVBw+47Tc3ysh9ifH5jnYI/qTCw2QtBIZFVh85Wj/1mLrEJBnPVuvY1PqjR6ojw0wmtqzzqDjuqO3BCeXQNIOFuTSExijST/YycsUR0dHrZLoiJrTBxaDGK7LxsNAW9UmzuIso8R3WdMrCSrNJRMuppmG+JZyyNHmCcNNdHSs4fUY/9Nl9kub1PNUC7BDXN8v2ndVVnstxF+Svm58OaNGNeUbe2nTeSr1Ae/bzTa1y/ds3WWnvzuazz3WDXfgC6dsn5CFKyKAL2vovE+15Vn6j5uH8dFt45VeIfQQ+1vq6MvycpkukrSrJTtoVe3E0ei/hDxpHX9ymVUm2xaNG/Yj3UdF4kwZMNcnMLL3UpBFvBx6smR7W7Rt8D7mqZ49W7K3ft0aRA9lGF6PGS7ijXk65ouqIPYftVbaX9Br+G0B5GGUuZBs9jRp98cdNllxne35ng4fTCRs8qCSjzN+zjdONGmtsGflGBLbJD2wPhHlEzLLCIHK4ucYIG4e+yXa+iV6fx54dFdi4MCrWILOm0WASzuW2Dk0VML29cpHLf6TtuoOgdI0u8i3d7qc4TNd41fahVbfd3Eau9mWqlyBXW1gcg08St7FVPdmFz0/2jJzPjNAHuXoPs8GyZ2kU9XNNebvsF+O5ApO7Jf06084pNpl3Yw9yMbPNun7HvuU5ijttOB9N9pNRCR3ZPJVYX98apvrKZejM5rjxGxPtd/R69vhEatfX3THks9uLbRgdkqWsiehm/spiPXzG4XRZwprQd0uho3PZ8QebaWI6Xq8lDapef96Djq/lXqJqXsKVy3A7LkxV7b7aTtdDK7DUR7Wp4uxab0Pna/c1R3iN0Bp/aSYZt3U6tQnT/1YPcD/6HziLogDttJ02n7RT1CTXtZpBRpUpH3S8xIP4Qu1V5rV2aLDsWNBDe9D6r7MC/QBaAHIVzj7aZfesLLV/wE0p+gnz0mYFKDvAJlcZMEt/oflhyiahBm6q1p9NONjG0IGmw6r/E3YBsRsLs7lnedel7amPmu8J9rvZ1nvNj1Lbpde5y1hVuFG4S9hcmmR+JpOWz3tctVg57uQ0W8ecdnKccnHV43nG4wb5yQReFUZs8G+NXN1Gm9DW4jlEvnd+RuONJ3OtjTH3yY3GjPl75UM8W8yNtDqy1X+DQyX05CXcPlgyg7bADJfsltqHK54+a88p23I3etCg6LtbynLanz1d8bC2JdvFcr+Sg7cT8jpIgcsT/4xF8scttN20PJYvyvB/AqBgwJzn6VMGlo945hF4BSf9lSDPZyPKB05Jfz7H/gxCc/hFbn1R3HFJ4uDNZTnhLy80XLqVnVZXl5Z961LDhZfhOWWbByfKjscV1ee+EPjnwf8BfaTSL75KWikAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDQtMjlUMDg6Mzg6NTUrMDA6MDAIDejSAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA0LTI5VDA4OjM4OjU1KzAwOjAweVBQbgAAAABJRU5ErkJggg=="},"75b6":function(t,e,n){},"7ab6":function(t,e,n){"use strict";n("3c4a")},"7df3":function(t,e,n){"use strict";n("5c4c")},"7f49":function(t,e,n){},"7f56":function(t,e,n){},"82b2":function(t,e,n){},"851a":function(t,e,n){},"85ec":function(t,e,n){},8867:function(t,e,n){"use strict";n("ea4a")},"8a5d":function(t,e,n){"use strict";n("eabd")},"8c60":function(t,e,n){},"918d":function(t,e,n){},9470:function(t,e,n){},9561:function(t,e,n){"use strict";n("7f56")},9734:function(t,e,n){"use strict";n("7f49")},"9b12":function(t,e,n){},"9ce0":function(t,e,n){"use strict";n("d64c")},a116:function(t,e,n){},a265:function(t,e,n){},a511:function(t,e,n){},adae:function(t,e,n){"use strict";n("f7e6")},ae50:function(t,e,n){"use strict";n("3ce3")},b06b:function(t,e,n){"use strict";n("d7a7")},b144:function(t,e,n){"use strict";n("ce4d")},b77a:function(t,e,n){"use strict";n("eb35")},b796:function(t,e,n){},b9ab:function(t,e,n){(function(i){var r,a,o=n("7037").default;n("d3b7"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("a15b"),n("d9e2"),n("c19f"),n("fb6a"),n("25f0"),n("a9e3"),n("cb29"),n("99af"),n("ac1f"),n("466d"),n("caad"),n("2532"),n("bf19"),n("5319"),n("498a"),n("6c57"),n("e439"),n("1276"),n("00b4"),n("7039"),n("a4d3"),n("b64b"),n("4d63"),n("c607"),n("2c3e"),n("e01a"),n("b0c0"),n("5377"),n("d28b"),n("3ca3"),n("ddb0"),n("a434"),n("fd87"),n("8a59"),n("8b09"),n("84c3"),n("143c"),n("fb2c"),n("cfc3"),n("4a9b"),n("3410"),n("1bf2"),n("f8c9"),n("e9c4"),n("159b"),n("d81d"),n("dca8"),function(i,s){"object"==o(e)&&"undefined"!=typeof t?t.exports=s():(r=s,a="function"===typeof r?r.call(e,n,e,t):r,void 0===a||(t.exports=a))}(0,(function(){"use strict";var t="undefined"!=typeof i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a=!1;function s(){a=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,r=t.length;i<r;++i)e[i]=t[i],n[t.charCodeAt(i)]=i;n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63}function c(t,n,i){for(var r,a,o=[],s=n;s<i;s+=3)r=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(e[(a=r)>>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]);return o.join("")}function l(t){var n;a||s();for(var i=t.length,r=i%3,o="",l=[],u=0,h=i-r;u<h;u+=16383)l.push(c(t,u,u+16383>h?h:u+16383));return 1===r?(n=t[i-1],o+=e[n>>2],o+=e[n<<4&63],o+="=="):2===r&&(n=(t[i-2]<<8)+t[i-1],o+=e[n>>10],o+=e[n>>4&63],o+=e[n<<2&63],o+="="),l.push(o),l.join("")}function u(t,e,n,i,r){var a,o,s=8*r-i-1,c=(1<<s)-1,l=c>>1,u=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+t[e+h],h+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=l}return(f?-1:1)*o*Math.pow(2,a-i)}function h(t,e,n,i,r,a){var o,s,c,l=8*a-r-1,u=(1<<l)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(e*c-1)*Math.pow(2,r),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*g}var d={}.toString,f=Array.isArray||function(t){return"[object Array]"==d.call(t)};function p(){return m.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(t,e){if(p()<e)throw new RangeError("Invalid typed array length");return m.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=m.prototype:(null===t&&(t=new m(e)),t.length=e),t}function m(t,e,n){if(!(m.TYPED_ARRAY_SUPPORT||this instanceof m))return new m(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return w(this,t)}return v(this,t,e,n)}function v(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),m.TYPED_ARRAY_SUPPORT?(t=e).__proto__=m.prototype:t=b(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!m.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|S(e,n),r=(t=g(t,i)).write(e,n);return r!==i&&(t=t.slice(0,r)),t}(t,e,n):function(t,e){if(A(e)){var n=0|y(e.length);return 0===(t=g(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?g(t,0):b(t,e);if("Buffer"===e.type&&f(e.data))return b(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function _(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function w(t,e){if(_(e),t=g(t,e<0?0:0|y(e)),!m.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function b(t,e){var n=e.length<0?0:0|y(e.length);t=g(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function y(t){if(t>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return 0|t}function A(t){return!(null==t||!t._isBuffer)}function S(t,e){if(A(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return Y(t).length;e=(""+e).toLowerCase(),i=!0}}function C(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return z(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function k(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function x(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=m.from(e,i)),A(e))return 0===e.length?-1:E(t,e,n,i,r);if("number"==typeof e)return e&=255,m.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function E(t,e,n,i,r){var a,o=1,s=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(a=n;a<s;a++)if(l(t,a)===l(e,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,d=0;d<c;d++)if(l(t,a+d)!==l(e,d)){h=!1;break}if(h)return a}return-1}function D(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function I(t,e,n,i){return X(Y(e,t.length-n),t,n,i)}function L(t,e,n,i){return X(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function R(t,e,n,i){return L(t,e,n,i)}function T(t,e,n,i){return X(q(e),t,n,i)}function M(t,e,n,i){return X(function(t,e){for(var n,i,r,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i);return a}(e,t.length-n),t,n,i)}function O(t,e,n){return 0===e&&n===t.length?l(t):l(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var a,o,s,c,l=t[r],u=null,h=l>239?4:l>223?3:l>191?2:1;if(r+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(a=t[r+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=t[r+1],o=t[r+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return function(t){var e=t.length;if(e<=U)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=U));return n}(i)}m.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT,m.poolSize=8192,m._augment=function(t){return t.__proto__=m.prototype,t},m.from=function(t,e,n){return v(null,t,e,n)},m.TYPED_ARRAY_SUPPORT&&(m.prototype.__proto__=Uint8Array.prototype,m.__proto__=Uint8Array),m.alloc=function(t,e,n){return function(t,e,n,i){return _(e),e<=0?g(t,e):void 0!==n?"string"==typeof i?g(t,e).fill(n,i):g(t,e).fill(n):g(t,e)}(null,t,e,n)},m.allocUnsafe=function(t){return w(null,t)},m.allocUnsafeSlow=function(t){return w(null,t)},m.isBuffer=Q,m.compare=function(t,e){if(!A(t)||!A(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},m.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(t,e){if(!f(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return m.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=m.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!A(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},m.byteLength=S,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)k(this,e,e+1);return this},m.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)k(this,e,e+3),k(this,e+1,e+2);return this},m.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)k(this,e,e+7),k(this,e+1,e+6),k(this,e+2,e+5),k(this,e+3,e+4);return this},m.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):C.apply(this,arguments)},m.prototype.equals=function(t){if(!A(t))throw new TypeError("Argument must be a Buffer");return this===t||0===m.compare(this,t)},m.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},m.prototype.compare=function(t,e,n,i,r){if(!A(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(i,r),l=t.slice(e,n),u=0;u<s;++u)if(c[u]!==l[u]){a=c[u],o=l[u];break}return a<o?-1:o<a?1:0},m.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},m.prototype.indexOf=function(t,e,n){return x(this,t,e,n,!0)},m.prototype.lastIndexOf=function(t,e,n){return x(this,t,e,n,!1)},m.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return D(this,t,e,n);case"utf8":case"utf-8":return I(this,t,e,n);case"ascii":return L(this,t,e,n);case"latin1":case"binary":return R(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function P(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function z(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function $(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=K(t[a]);return r}function j(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function N(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,i,r,a){if(!A(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function W(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function V(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Z(t,e,n,i,r){return r||V(t,0,n,4),h(t,e,n,i,23,4),n+4}function G(t,e,n,i,r){return r||V(t,0,n,8),h(t,e,n,i,52,8),n+8}m.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),m.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=m.prototype;else{var r=e-t;n=new m(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},m.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i},m.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},m.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},m.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},m.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},m.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},m.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},m.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=this[t],r=1,a=0;++a<e&&(r*=256);)i+=this[t+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},m.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=e,r=1,a=this[t+--i];i>0&&(r*=256);)a+=this[t+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},m.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},m.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},m.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},m.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},m.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},m.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),u(this,t,!0,23,4)},m.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),u(this,t,!1,23,4)},m.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),u(this,t,!0,52,8)},m.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),u(this,t,!1,52,8)},m.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||F(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[e]=255&t;++a<n&&(r*=256);)this[e+a]=t/r&255;return e+n},m.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||F(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,a=1;for(this[e+r]=255&t;--r>=0&&(a*=256);)this[e+r]=t/a&255;return e+n},m.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),m.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},m.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):W(this,t,e,!0),e+2},m.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):W(this,t,e,!1),e+2},m.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},m.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},m.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;for(this[e]=255&t;++a<n&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},m.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},m.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),m.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},m.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):W(this,t,e,!0),e+2},m.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):W(this,t,e,!1),e+2},m.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),m.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},m.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),m.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},m.prototype.writeFloatLE=function(t,e,n){return Z(this,t,e,!0,n)},m.prototype.writeFloatBE=function(t,e,n){return Z(this,t,e,!1,n)},m.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},m.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},m.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!m.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},m.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!m.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=A(t)?t:Y(new m(t,i).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function q(t){return function(t){var e,i,o,c,l,u;a||s();var h=t.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l="="===t[h-2]?2:"="===t[h-1]?1:0,u=new r(3*h/4-l),o=l>0?h-4:h;var d=0;for(e=0,i=0;e<o;e+=4,i+=3)c=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],u[d++]=c>>16&255,u[d++]=c>>8&255,u[d++]=255&c;return 2===l?(c=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,u[d++]=255&c):1===l&&(c=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,u[d++]=c>>8&255,u[d++]=255&c),u}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function Q(t){return null!=t&&(!!t._isBuffer||tt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&tt(t.slice(0,0))}(t))}function tt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof i?i:"undefined"!=typeof self?self:{};function nt(t,e){return t(e={exports:{}},e.exports),e.exports}var it,rt,at,ot="object",st=function(t){return t&&t.Math==Math&&t},ct=st(("undefined"===typeof globalThis?"undefined":o(globalThis))==ot&&globalThis)||st(("undefined"===typeof window?"undefined":o(window))==ot&&window)||st(("undefined"===typeof self?"undefined":o(self))==ot&&self)||st(o(et)==ot&&et)||Function("return this")(),lt=function(t){try{return!!t()}catch(t){return!0}},ut=!lt((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),ht={}.propertyIsEnumerable,dt=Object.getOwnPropertyDescriptor,ft={f:dt&&!ht.call({1:2},1)?function(t){var e=dt(this,t);return!!e&&e.enumerable}:ht},pt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},gt={}.toString,mt=function(t){return gt.call(t).slice(8,-1)},vt="".split,_t=lt((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==mt(t)?vt.call(t,""):Object(t)}:Object,wt=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},bt=function(t){return _t(wt(t))},yt=function(t){return"object"==o(t)?null!==t:"function"==typeof t},At=function(t,e){if(!yt(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!yt(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!yt(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!yt(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},St={}.hasOwnProperty,Ct=function(t,e){return St.call(t,e)},kt=ct.document,xt=yt(kt)&&yt(kt.createElement),Et=function(t){return xt?kt.createElement(t):{}},Dt=!ut&&!lt((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Lt={f:ut?It:function(t,e){if(t=bt(t),e=At(e,!0),Dt)try{return It(t,e)}catch(t){}if(Ct(t,e))return pt(!ft.f.call(t,e),t[e])}},Rt=function(t){if(!yt(t))throw TypeError(String(t)+" is not an object");return t},Tt=Object.defineProperty,Mt={f:ut?Tt:function(t,e,n){if(Rt(t),e=At(e,!0),Rt(n),Dt)try{return Tt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ot=ut?function(t,e,n){return Mt.f(t,e,pt(1,n))}:function(t,e,n){return t[e]=n,t},Bt=function(t,e){try{Ot(ct,t,e)}catch(n){ct[t]=e}return e},Ut=nt((function(t){var e=ct["__core-js_shared__"]||Bt("__core-js_shared__",{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),Pt=Ut("native-function-to-string",Function.toString),zt=ct.WeakMap,$t="function"==typeof zt&&/native code/.test(Pt.call(zt)),jt=0,Nt=Math.random(),Ft=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++jt+Nt).toString(36)},Wt=Ut("keys"),Ht=function(t){return Wt[t]||(Wt[t]=Ft(t))},Vt={},Zt=ct.WeakMap;if($t){var Gt=new Zt,Jt=Gt.get,Kt=Gt.has,Yt=Gt.set;it=function(t,e){return Yt.call(Gt,t,e),e},rt=function(t){return Jt.call(Gt,t)||{}},at=function(t){return Kt.call(Gt,t)}}else{var qt=Ht("state");Vt[qt]=!0,it=function(t,e){return Ot(t,qt,e),e},rt=function(t){return Ct(t,qt)?t[qt]:{}},at=function(t){return Ct(t,qt)}}var Xt={set:it,get:rt,has:at,enforce:function(t){return at(t)?rt(t):it(t,{})},getterFor:function(t){return function(e){var n;if(!yt(e)||(n=rt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Qt=nt((function(t){var e=Xt.get,n=Xt.enforce,i=String(Pt).split("toString");Ut("inspectSource",(function(t){return Pt.call(t)})),(t.exports=function(t,e,r,a){var o=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||Ct(r,"name")||Ot(r,"name",e),n(r).source=i.join("string"==typeof e?e:"")),t!==ct?(o?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=r:Ot(t,e,r)):s?t[e]=r:Bt(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Pt.call(this)}))})),te=ct,ee=function(t){return"function"==typeof t?t:void 0},ne=function(t,e){return arguments.length<2?ee(te[t])||ee(ct[t]):te[t]&&te[t][e]||ct[t]&&ct[t][e]},ie=Math.ceil,re=Math.floor,ae=function(t){return isNaN(t=+t)?0:(t>0?re:ie)(t)},oe=Math.min,se=function(t){return t>0?oe(ae(t),9007199254740991):0},ce=Math.max,le=Math.min,ue=function(t){return function(e,n,i){var r,a=bt(e),o=se(a.length),s=function(t,e){var n=ae(t);return n<0?ce(n+e,0):le(n,e)}(i,o);if(t&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},he={includes:ue(!0),indexOf:ue(!1)}.indexOf,de=function(t,e){var n,i=bt(t),r=0,a=[];for(n in i)!Ct(Vt,n)&&Ct(i,n)&&a.push(n);for(;e.length>r;)Ct(i,n=e[r++])&&(~he(a,n)||a.push(n));return a},fe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pe=fe.concat("length","prototype"),ge={f:Object.getOwnPropertyNames||function(t){return de(t,pe)}},me={f:Object.getOwnPropertySymbols},ve=ne("Reflect","ownKeys")||function(t){var e=ge.f(Rt(t)),n=me.f;return n?e.concat(n(t)):e},_e=function(t,e){for(var n=ve(e),i=Mt.f,r=Lt.f,a=0;a<n.length;a++){var o=n[a];Ct(t,o)||i(t,o,r(e,o))}},we=/#|\.prototype\./,be=function(t,e){var n=Ae[ye(t)];return n==Ce||n!=Se&&("function"==typeof e?lt(e):!!e)},ye=be.normalize=function(t){return String(t).replace(we,".").toLowerCase()},Ae=be.data={},Se=be.NATIVE="N",Ce=be.POLYFILL="P",ke=be,xe=Lt.f,Ee=function(t,e){var n,i,r,a,s,c=t.target,l=t.global,u=t.stat;if(n=l?ct:u?ct[c]||Bt(c,{}):(ct[c]||{}).prototype)for(i in e){if(a=e[i],r=t.noTargetGet?(s=xe(n,i))&&s.value:n[i],!ke(l?i:c+(u?".":"#")+i,t.forced)&&void 0!==r){if(o(a)==o(r))continue;_e(a,r)}(t.sham||r&&r.sham)&&Ot(a,"sham",!0),Qt(n,i,a,t)}};Ee({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var De=Date.prototype,Ie=De.toString,Le=De.getTime;new Date(NaN)+""!="Invalid Date"&&Qt(De,"toString",(function(){var t=Le.call(this);return t==t?Ie.call(this):"Invalid Date"}));var Re=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return Rt(n),function(t){if(!yt(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(i),e?t.call(n,i):n.__proto__=i,n}}():void 0),Te=function(t,e,n){var i,r;return Re&&"function"==typeof(i=e.constructor)&&i!==n&&yt(r=i.prototype)&&r!==n.prototype&&Re(t,r),t},Me=Object.keys||function(t){return de(t,fe)},Oe=ut?Object.defineProperties:function(t,e){Rt(t);for(var n,i=Me(e),r=i.length,a=0;r>a;)Mt.f(t,n=i[a++],e[n]);return t},Be=ne("document","documentElement"),Ue=Ht("IE_PROTO"),Pe=function(){},ze=function(){var t,e=Et("iframe"),n=fe.length;for(e.style.display="none",Be.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),ze=t.F;n--;)delete ze.prototype[fe[n]];return ze()},$e=Object.create||function(t,e){var n;return null!==t?(Pe.prototype=Rt(t),n=new Pe,Pe.prototype=null,n[Ue]=t):n=ze(),void 0===e?n:Oe(n,e)};Vt[Ue]=!0;var je="[\t\n\v\f\r \u2028\u2029\ufeff]",Ne=RegExp("^"+je+je+"*"),Fe=RegExp(je+je+"*$"),We=function(t){return function(e){var n=String(wt(e));return 1&t&&(n=n.replace(Ne,"")),2&t&&(n=n.replace(Fe,"")),n}},He={start:We(1),end:We(2),trim:We(3)},Ve=ge.f,Ze=Lt.f,Ge=Mt.f,Je=He.trim,Ke=ct.Number,Ye=Ke.prototype,qe="Number"==mt($e(Ye)),Xe=function(t){var e,n,i,r,a,o,s,c,l=At(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=Je(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(o=(a=l.slice(2)).length,s=0;s<o;s++)if((c=a.charCodeAt(s))<48||c>r)return NaN;return parseInt(a,i)}return+l};if(ke("Number",!Ke(" 0o1")||!Ke("0b1")||Ke("+0x1"))){for(var Qe,tn=function t(e){var n=arguments.length<1?0:e,i=this;return i instanceof t&&(qe?lt((function(){Ye.valueOf.call(i)})):"Number"!=mt(i))?Te(new Ke(Xe(n)),i,t):Xe(n)},en=ut?Ve(Ke):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),nn=0;en.length>nn;nn++)Ct(Ke,Qe=en[nn])&&!Ct(tn,Qe)&&Ge(tn,Qe,Ze(Ke,Qe));tn.prototype=Ye,Ye.constructor=tn,Qt(ct,"Number",tn)}var rn=!!Object.getOwnPropertySymbols&&!lt((function(){return!String(Symbol())})),an=ct.Symbol,on=Ut("wks"),sn=function(t){return on[t]||(on[t]=rn&&an[t]||(rn?an:Ft)("Symbol."+t))},cn=sn("toStringTag"),ln="Arguments"==mt(function(){return arguments}()),un={};un[sn("toStringTag")]="z";var hn="[object z]"!==String(un)?function(){return"[object "+function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),cn))?n:ln?mt(e):"Object"==(i=mt(e))&&"function"==typeof e.callee?"Arguments":i}(this)+"]"}:un.toString,dn=Object.prototype;hn!==dn.toString&&Qt(dn,"toString",hn,{unsafe:!0});var fn,pn,gn=function(){var t=Rt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},mn=RegExp.prototype.exec,vn=String.prototype.replace,_n=mn,wn=(fn=/a/,pn=/b*/g,mn.call(fn,"a"),mn.call(pn,"a"),0!==fn.lastIndex||0!==pn.lastIndex),bn=void 0!==/()??/.exec("")[1];(wn||bn)&&(_n=function(t){var e,n,i,r,a=this;return bn&&(n=new RegExp("^"+a.source+"$(?!\\s)",gn.call(a))),wn&&(e=a.lastIndex),i=mn.call(a,t),wn&&i&&(a.lastIndex=a.global?i.index+i[0].length:e),bn&&i&&i.length>1&&vn.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var yn=_n;Ee({target:"RegExp",proto:!0,forced:/./.exec!==yn},{exec:yn});var An=RegExp.prototype,Sn=An.toString,Cn=lt((function(){return"/a/b"!=Sn.call({source:"a",flags:"b"})})),kn="toString"!=Sn.name;(Cn||kn)&&Qt(RegExp.prototype,"toString",(function(){var t=Rt(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in An)?gn.call(t):n)}),{unsafe:!0});var xn=sn("species"),En=!lt((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Dn=!lt((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),In=function(t){return Object(wt(t))},Ln=function(t){return function(e,n){var i,r,a=String(wt(e)),o=ae(n),s=a.length;return o<0||o>=s?t?"":void 0:(i=a.charCodeAt(o))<55296||i>56319||o+1===s||(r=a.charCodeAt(o+1))<56320||r>57343?t?a.charAt(o):i:t?a.slice(o,o+2):r-56320+(i-55296<<10)+65536}},Rn={codeAt:Ln(!1),charAt:Ln(!0)}.charAt,Tn=function(t,e,n){return e+(n?Rn(t,e).length:1)},Mn=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=o(i))throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==mt(t))throw TypeError("RegExp#exec called on incompatible receiver");return yn.call(t,e)},On=Math.max,Bn=Math.min,Un=Math.floor,Pn=/\$([$&'`]|\d\d?|<[^>]*>)/g,zn=/\$([$&'`]|\d\d?)/g;function $n(t){return($n="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)})(t)}function jn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}!function(t,e,n,i){var r=sn(t),a=!lt((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),o=a&&!lt((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[xn]=function(){return n}),n[r](""),!e}));if(!a||!o||"replace"===t&&!En||"split"===t&&!Dn){var s=/./[r],c=n(r,""[t],(function(t,e,n,i,r){return e.exec===yn?a&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),l=c[0],u=c[1];Qt(String.prototype,t,l),Qt(RegExp.prototype,r,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)}),i&&Ot(RegExp.prototype[r],"sham",!0)}}("replace",2,(function(t,e,n){return[function(n,i){var r=wt(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,r,i):e.call(String(r),n,i)},function(t,r){var a=n(e,t,this,r);if(a.done)return a.value;var o=Rt(t),s=String(this),c="function"==typeof r;c||(r=String(r));var l=o.global;if(l){var u=o.unicode;o.lastIndex=0}for(var h=[];;){var d=Mn(o,s);if(null===d)break;if(h.push(d),!l)break;""===String(d[0])&&(o.lastIndex=Tn(s,se(o.lastIndex),u))}for(var f,p="",g=0,m=0;m<h.length;m++){d=h[m];for(var v=String(d[0]),_=On(Bn(ae(d.index),s.length),0),w=[],b=1;b<d.length;b++)w.push(void 0===(f=d[b])?f:String(f));var y=d.groups;if(c){var A=[v].concat(w,_,s);void 0!==y&&A.push(y);var S=String(r.apply(void 0,A))}else S=i(v,s,_,w,y,r);_>=g&&(p+=s.slice(g,_)+S,g=_+v.length)}return p+s.slice(g)}];function i(t,n,i,r,a,o){var s=i+t.length,c=r.length,l=zn;return void 0!==a&&(a=In(a),l=Pn),e.call(o,l,(function(e,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":l=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return e;if(u>c){var h=Un(u/10);return 0===h?e:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):e}l=r[u-1]}return void 0===l?"":l}))}}));var Nn=nt((function(t,e){var n;t.exports=(n=n||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},r=i.lib={},a=r.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var a=0;a<r;a++){var o=n[a>>>2]>>>24-a%4*8&255;e[i+a>>>2]|=o<<24-(i+a)%4*8}else for(a=0;a<r;a+=4)e[i+a>>>2]=n[a>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,i=[],r=function(e){e=e;var n=987654321,i=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&i)<<16)+(e=18e3*(65535&e)+(e>>16)&i)&i;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},a=0;a<e;a+=4){var s=r(4294967296*(n||t.random()));n=987654071*s(),i.push(4294967296*s()|0)}return new o.init(i,e)}}),s=i.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var a=e[r>>>2]>>>24-r%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new o.init(n,e/2)}},l=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var a=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new o.init(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,i=n.words,r=n.sigBytes,a=this.blockSize,s=4*a,c=r/s,l=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,u=t.min(4*l,r);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(i,h);var d=i.splice(0,l);n.sigBytes-=u}return new o.init(d,u)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(r.Hasher=h.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new d.HMAC.init(t,n).finalize(e)}}}),i.algo={});return i}(Math),n)})),Fn=(nt((function(t,e){var n,i,r,a,o,s;t.exports=(r=(i=n=Nn).lib,a=r.Base,o=r.WordArray,(s=i.x64={}).Word=a.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=a.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}}),n)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,i=[],r=0;r<n;r++)i[r>>>2]|=t[r]<<24-r%4*8;e.call(this,i,n)}else e.apply(this,arguments)}).prototype=t}}(),n.lib.WordArray)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib.WordArray,i=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var a=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r++)i[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return e.create(i,2*n)}},i.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],a=0;a<n;a+=2){var o=r(e[a>>>2]>>>16-a%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var n=t.length,i=[],a=0;a<n;a++)i[a>>>1]|=r(t.charCodeAt(a)<<16-a%2*16);return e.create(i,2*n)}}}(),n.enc.Utf16)})),nt((function(t,e){var n,i,r;t.exports=(r=(i=n=Nn).lib.WordArray,i.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],a=0;a<n;a+=3)for(var o=(e[a>>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)r.push(i.charAt(o>>>6*(3-s)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return function(t,e,n){for(var i=[],a=0,o=0;o<e;o++)if(o%4){var s=n[t.charCodeAt(o-1)]<<o%4*2,c=n[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=(s|c)<<24-a%4*8,a++}return r.create(i,a)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),nt((function(t,e){var n;t.exports=(n=Nn,function(t){var e=n,i=e.lib,r=i.WordArray,a=i.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=o.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a=this._hash.words,o=t[e+0],c=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],m=t[e+5],v=t[e+6],_=t[e+7],w=t[e+8],b=t[e+9],y=t[e+10],A=t[e+11],S=t[e+12],C=t[e+13],k=t[e+14],x=t[e+15],E=a[0],D=a[1],I=a[2],L=a[3];E=l(E,D,I,L,o,7,s[0]),L=l(L,E,D,I,c,12,s[1]),I=l(I,L,E,D,f,17,s[2]),D=l(D,I,L,E,p,22,s[3]),E=l(E,D,I,L,g,7,s[4]),L=l(L,E,D,I,m,12,s[5]),I=l(I,L,E,D,v,17,s[6]),D=l(D,I,L,E,_,22,s[7]),E=l(E,D,I,L,w,7,s[8]),L=l(L,E,D,I,b,12,s[9]),I=l(I,L,E,D,y,17,s[10]),D=l(D,I,L,E,A,22,s[11]),E=l(E,D,I,L,S,7,s[12]),L=l(L,E,D,I,C,12,s[13]),I=l(I,L,E,D,k,17,s[14]),E=u(E,D=l(D,I,L,E,x,22,s[15]),I,L,c,5,s[16]),L=u(L,E,D,I,v,9,s[17]),I=u(I,L,E,D,A,14,s[18]),D=u(D,I,L,E,o,20,s[19]),E=u(E,D,I,L,m,5,s[20]),L=u(L,E,D,I,y,9,s[21]),I=u(I,L,E,D,x,14,s[22]),D=u(D,I,L,E,g,20,s[23]),E=u(E,D,I,L,b,5,s[24]),L=u(L,E,D,I,k,9,s[25]),I=u(I,L,E,D,p,14,s[26]),D=u(D,I,L,E,w,20,s[27]),E=u(E,D,I,L,C,5,s[28]),L=u(L,E,D,I,f,9,s[29]),I=u(I,L,E,D,_,14,s[30]),E=h(E,D=u(D,I,L,E,S,20,s[31]),I,L,m,4,s[32]),L=h(L,E,D,I,w,11,s[33]),I=h(I,L,E,D,A,16,s[34]),D=h(D,I,L,E,k,23,s[35]),E=h(E,D,I,L,c,4,s[36]),L=h(L,E,D,I,g,11,s[37]),I=h(I,L,E,D,_,16,s[38]),D=h(D,I,L,E,y,23,s[39]),E=h(E,D,I,L,C,4,s[40]),L=h(L,E,D,I,o,11,s[41]),I=h(I,L,E,D,p,16,s[42]),D=h(D,I,L,E,v,23,s[43]),E=h(E,D,I,L,b,4,s[44]),L=h(L,E,D,I,S,11,s[45]),I=h(I,L,E,D,x,16,s[46]),E=d(E,D=h(D,I,L,E,f,23,s[47]),I,L,o,6,s[48]),L=d(L,E,D,I,_,10,s[49]),I=d(I,L,E,D,k,15,s[50]),D=d(D,I,L,E,m,21,s[51]),E=d(E,D,I,L,S,6,s[52]),L=d(L,E,D,I,p,10,s[53]),I=d(I,L,E,D,y,15,s[54]),D=d(D,I,L,E,c,21,s[55]),E=d(E,D,I,L,w,6,s[56]),L=d(L,E,D,I,x,10,s[57]),I=d(I,L,E,D,v,15,s[58]),D=d(D,I,L,E,C,21,s[59]),E=d(E,D,I,L,g,6,s[60]),L=d(L,E,D,I,A,10,s[61]),I=d(I,L,E,D,f,15,s[62]),D=d(D,I,L,E,b,21,s[63]),a[0]=a[0]+E|0,a[1]=a[1]+D|0,a[2]=a[2]+I|0,a[3]=a[3]+L|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var a=t.floor(i/4294967296),o=i;n[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,i,r,a,o){var s=t+(e&n|~e&i)+r+o;return(s<<a|s>>>32-a)+e}function u(t,e,n,i,r,a,o){var s=t+(e&i|n&~i)+r+o;return(s<<a|s>>>32-a)+e}function h(t,e,n,i,r,a,o){var s=t+(e^n^i)+r+o;return(s<<a|s>>>32-a)+e}function d(t,e,n,i,r,a,o){var s=t+(n^(e|~i))+r+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(c),e.HmacMD5=a._createHmacHelper(c)}(Math),n.MD5)})),nt((function(t,e){var n,i,r,a,o,s,c,l;t.exports=(r=(i=n=Nn).lib,a=r.WordArray,o=r.Hasher,s=i.algo,c=[],l=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=0;l<80;l++){if(l<16)c[l]=0|t[e+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var h=(i<<5|i>>>27)+s+c[l];h+=l<20?1518500249+(r&a|~r&o):l<40?1859775393+(r^a^o):l<60?(r&a|r&o|a&o)-1894007588:(r^a^o)-899497514,s=o,o=a,a=r<<30|r>>>2,r=i,i=h}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}}),i.SHA1=o._createHelper(l),i.HmacSHA1=o._createHmacHelper(l),n.SHA1)})),nt((function(t,e){var n;t.exports=(n=Nn,function(t){var e=n,i=e.lib,r=i.WordArray,a=i.Hasher,o=e.algo,s=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)e(i)&&(r<8&&(s[r]=n(t.pow(i,.5))),c[r]=n(t.pow(i,1/3)),r++),i++}();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)l[f]=0|t[e+f];else{var p=l[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[f]=g+l[f-7]+v+l[f-16]}var _=i&r^i&a^r&a,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&h)+c[f]+l[f];d=h,h=u,u=s,s=o+b|0,o=a,a=r,r=i,i=b+(w+_)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=t.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=a._createHelper(u),e.HmacSHA256=a._createHmacHelper(u)}(Math),n.SHA256)})),nt((function(t,e){var n,i,r,a,o,s;t.exports=(r=(i=n=Nn).lib.WordArray,a=i.algo,o=a.SHA256,s=a.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}}),i.SHA224=o._createHelper(s),i.HmacSHA224=o._createHmacHelper(s),n.SHA224)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib.Hasher,i=t.x64,r=i.Word,a=i.WordArray,o=t.algo;function s(){return r.create.apply(r,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var u=o.SHA512=e.extend({_doReset:function(){this._hash=new a.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],h=n[6],d=n[7],f=i.high,p=i.low,g=r.high,m=r.low,v=a.high,_=a.low,w=o.high,b=o.low,y=s.high,A=s.low,S=u.high,C=u.low,k=h.high,x=h.low,E=d.high,D=d.low,I=f,L=p,R=g,T=m,M=v,O=_,B=w,U=b,P=y,z=A,$=S,j=C,N=k,F=x,W=E,H=D,V=0;V<80;V++){var Z=l[V];if(V<16)var G=Z.high=0|t[e+2*V],J=Z.low=0|t[e+2*V+1];else{var K=l[V-15],Y=K.high,q=K.low,X=(Y>>>1|q<<31)^(Y>>>8|q<<24)^Y>>>7,Q=(q>>>1|Y<<31)^(q>>>8|Y<<24)^(q>>>7|Y<<25),tt=l[V-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),at=l[V-7],ot=at.high,st=at.low,ct=l[V-16],lt=ct.high,ut=ct.low;G=(G=(G=X+ot+((J=Q+st)>>>0<Q>>>0?1:0))+it+((J+=rt)>>>0<rt>>>0?1:0))+lt+((J+=ut)>>>0<ut>>>0?1:0),Z.high=G,Z.low=J}var ht,dt=P&$^~P&N,ft=z&j^~z&F,pt=I&R^I&M^R&M,gt=L&T^L&O^T&O,mt=(I>>>28|L<<4)^(I<<30|L>>>2)^(I<<25|L>>>7),vt=(L>>>28|I<<4)^(L<<30|I>>>2)^(L<<25|I>>>7),_t=(P>>>14|z<<18)^(P>>>18|z<<14)^(P<<23|z>>>9),wt=(z>>>14|P<<18)^(z>>>18|P<<14)^(z<<23|P>>>9),bt=c[V],yt=bt.high,At=bt.low,St=W+_t+((ht=H+wt)>>>0<H>>>0?1:0),Ct=vt+gt;W=N,H=F,N=$,F=j,$=P,j=z,P=B+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+yt+((ht+=At)>>>0<At>>>0?1:0))+G+((ht+=J)>>>0<J>>>0?1:0))+((z=U+ht|0)>>>0<U>>>0?1:0)|0,B=M,U=O,M=R,O=T,R=I,T=L,I=St+(mt+pt+(Ct>>>0<vt>>>0?1:0))+((L=ht+Ct|0)>>>0<ht>>>0?1:0)|0}p=i.low=p+L,i.high=f+I+(p>>>0<L>>>0?1:0),m=r.low=m+T,r.high=g+R+(m>>>0<T>>>0?1:0),_=a.low=_+O,a.high=v+M+(_>>>0<O>>>0?1:0),b=o.low=b+U,o.high=w+B+(b>>>0<U>>>0?1:0),A=s.low=A+z,s.high=y+P+(A>>>0<z>>>0?1:0),C=u.low=C+j,u.high=S+$+(C>>>0<j>>>0?1:0),x=h.low=x+F,h.high=k+N+(x>>>0<F>>>0?1:0),D=d.low=D+H,d.high=E+W+(D>>>0<H>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),n.SHA512)})),nt((function(t,e){var n,i,r,a,o,s,c,l;t.exports=(r=(i=n=Nn).x64,a=r.Word,o=r.WordArray,s=i.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var t=c._doFinalize.call(this);return t.sigBytes-=16,t}}),i.SHA384=c._createHelper(l),i.HmacSHA384=c._createHmacHelper(l),n.SHA384)})),nt((function(t,e){var n;t.exports=(n=Nn,function(t){var e=n,i=e.lib,r=i.WordArray,a=i.Hasher,o=e.x64.Word,s=e.algo,c=[],l=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=(2*t+3*e)%5;t=e%5,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var r=1,a=0;a<24;a++){for(var s=0,h=0,d=0;d<7;d++){if(1&r){var f=(1<<d)-1;f<32?h^=1<<f:s^=1<<f-32}128&r?r=r<<1^113:r<<=1}u[a]=o.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var d=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var a=t[e+2*r],o=t[e+2*r+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(D=n[r]).high^=o,D.low^=a}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,g=0;g<5;g++)f^=(D=n[d+5*g]).high,p^=D.low;var m=h[d];m.high=f,m.low=p}for(d=0;d<5;d++){var v=h[(d+4)%5],_=h[(d+1)%5],w=_.high,b=_.low;for(f=v.high^(w<<1|b>>>31),p=v.low^(b<<1|w>>>31),g=0;g<5;g++)(D=n[d+5*g]).high^=f,D.low^=p}for(var y=1;y<25;y++){var A=(D=n[y]).high,S=D.low,C=c[y];C<32?(f=A<<C|S>>>32-C,p=S<<C|A>>>32-C):(f=S<<C-32|A>>>64-C,p=A<<C-32|S>>>64-C);var k=h[l[y]];k.high=f,k.low=p}var x=h[0],E=n[0];for(x.high=E.high,x.low=E.low,d=0;d<5;d++)for(g=0;g<5;g++){var D=n[y=d+5*g],I=h[y],L=h[(d+1)%5+5*g],R=h[(d+2)%5+5*g];D.high=I.high^~L.high&R.high,D.low=I.low^~L.low&R.low}D=n[0];var T=u[s];D.high^=T.high,D.low^=T.low}},_doFinalize:function(){var e=this._data,n=e.words,i=(this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var h=o[u],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l.push(f),l.push(d)}return new r.init(l,s)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=a._createHelper(d),e.HmacSHA3=a._createHmacHelper(d)}(Math),n.SHA3)})),nt((function(t,e){var n;t.exports=(n=Nn,function(t){var e=n,i=e.lib,r=i.WordArray,a=i.Hasher,o=e.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=a.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a,o,f,b,y,A,S,C,k,x,E,D=this._hash.words,I=h.words,L=d.words,R=s.words,T=c.words,M=l.words,O=u.words;for(A=a=D[0],S=o=D[1],C=f=D[2],k=b=D[3],x=y=D[4],n=0;n<80;n+=1)E=a+t[e+R[n]]|0,E+=n<16?p(o,f,b)+I[0]:n<32?g(o,f,b)+I[1]:n<48?m(o,f,b)+I[2]:n<64?v(o,f,b)+I[3]:_(o,f,b)+I[4],E=(E=w(E|=0,M[n]))+y|0,a=y,y=b,b=w(f,10),f=o,o=E,E=A+t[e+T[n]]|0,E+=n<16?_(S,C,k)+L[0]:n<32?v(S,C,k)+L[1]:n<48?m(S,C,k)+L[2]:n<64?g(S,C,k)+L[3]:p(S,C,k)+L[4],E=(E=w(E|=0,O[n]))+x|0,A=x,x=k,k=w(C,10),C=S,S=E;E=D[1]+f+k|0,D[1]=D[2]+b+x|0,D[2]=D[3]+y+A|0,D[3]=D[4]+a+S|0,D[4]=D[0]+o+C|0,D[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,a=r.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function g(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function _(t,e,n){return t^(e|~n)}function w(t,e){return t<<e|t>>>32-e}e.RIPEMD160=a._createHelper(f),e.HmacRIPEMD160=a._createHmacHelper(f)}(),n.RIPEMD160)})),nt((function(t,e){var n,i,r,a,o,s;t.exports=(i=(n=Nn).lib,r=i.Base,a=n.enc,o=a.Utf8,s=n.algo,void(s.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,c=a.words,l=0;l<n;l++)s[l]^=1549556828,c[l]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(n));return i}})))})),nt((function(t,e){var n,i,r,a,o,s,c,l,u;t.exports=(r=(i=n=Nn).lib,a=r.Base,o=r.WordArray,s=i.algo,c=s.SHA1,l=s.HMAC,u=s.PBKDF2=a.extend({cfg:a.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=l.create(n.hasher,t),r=o.create(),a=o.create([1]),s=r.words,c=a.words,u=n.keySize,h=n.iterations;s.length<u;){var d=i.update(e).finalize(a);i.reset();for(var f=d.words,p=f.length,g=d,m=1;m<h;m++){g=i.finalize(g),i.reset();for(var v=g.words,_=0;_<p;_++)f[_]^=v[_]}r.concat(d),c[0]++}return r.sigBytes=4*u,r}}),i.PBKDF2=function(t,e,n){return u.create(n).compute(t,e)},n.PBKDF2)})),nt((function(t,e){var n,i,r,a,o,s,c,l;t.exports=(r=(i=n=Nn).lib,a=r.Base,o=r.WordArray,s=i.algo,c=s.MD5,l=s.EvpKDF=a.extend({cfg:a.extend({keySize:4,hasher:c,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=n.hasher.create(),r=o.create(),a=r.words,s=n.keySize,c=n.iterations;a.length<s;){l&&i.update(l);var l=i.update(t).finalize(e);i.reset();for(var u=1;u<c;u++)l=i.finalize(l),i.reset();r.concat(l)}return r.sigBytes=4*s,r}}),i.EvpKDF=function(t,e,n){return l.create(n).compute(t,e)},n.EvpKDF)})),nt((function(t,e){var n,i,r,a,o,s,c,l,u,h,d,f,p,g,m,v,_,w,b,y,A,S,C,k;t.exports=void((n=Nn).lib.Cipher||(r=n,a=r.lib,o=a.Base,s=a.WordArray,c=a.BufferedBlockAlgorithm,l=r.enc,l.Utf8,u=l.Base64,h=r.algo,d=h.EvpKDF,f=a.Cipher=c.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?k:A}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),a.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),p=r.mode={},g=a.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=p.CBC=function(){var t=g.extend();function e(t,e,n){var r=this._iv;if(r){var a=r;this._iv=i}else a=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=a[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize;e.call(this,t,n,r),i.encryptBlock(t,n),this._prevBlock=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize,a=t.slice(n,n+r);i.decryptBlock(t,n),e.call(this,t,n,r),this._prevBlock=a}}),t}(),v=r.pad={},_=v.Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],o=0;o<i;o+=4)a.push(r);var c=s.create(a,i);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},a.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:_}),reset:function(){f.reset.call(this);var t=this.cfg,e=t.iv,n=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=n.createEncryptor;else{i=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,e&&e.words):(this._mode=i.call(n,this,e&&e.words),this._mode.__creator=i)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{e=this._process(!0);t.unpad(e)}return e},blockSize:4}),w=a.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),b=r.format={},y=b.OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;if(n)var i=s.create([1398893684,1701076831]).concat(n).concat(e);else i=e;return i.toString(u)},parse:function(t){var e=u.parse(t),n=e.words;if(1398893684==n[0]&&1701076831==n[1]){var i=s.create(n.slice(2,4));n.splice(0,4),e.sigBytes-=16}return w.create({ciphertext:e,salt:i})}},A=a.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),a=r.finalize(e),o=r.cfg;return w.create({ciphertext:a,key:n,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),S=r.kdf={},C=S.OpenSSL={execute:function(t,e,n,i){i||(i=s.random(8));var r=d.create({keySize:e+n}).compute(t,i),a=s.create(r.words.slice(e),4*n);return r.sigBytes=4*e,w.create({key:r,iv:a,salt:i})}},k=a.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:C}),encrypt:function(t,e,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize);i.iv=r.iv;var a=A.encrypt.call(this,t,e,r.key,i);return a.mixIn(r),a},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);i.iv=r.iv;var a=A.decrypt.call(this,t,e,r.key,i);return a}})))})),nt((function(t,e){var n;t.exports=((n=Nn).mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,e,n,i){var r=this._iv;if(r){var a=r.slice(0);this._iv=void 0}else a=this._prevBlock;i.encryptBlock(a,0);for(var o=0;o<n;o++)t[e+o]^=a[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize;e.call(this,t,n,r,i),this._prevBlock=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize,a=t.slice(n,n+r);e.call(this,t,n,r,i),this._prevBlock=a}}),t}(),n.mode.CFB)})),nt((function(t,e){var n,i,r;t.exports=((n=Nn).mode.CTR=(i=n.lib.BlockCipherMode.extend(),r=i.Encryptor=i.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,a=this._counter;r&&(a=this._counter=r.slice(0),this._iv=void 0);var o=a.slice(0);n.encryptBlock(o,0),a[i-1]=a[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=o[s]}}),i.Decryptor=r,i),n.mode.CTR)})),nt((function(t,e){var n;t.exports=((n=Nn).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}var i=t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(o);var s=o.slice(0);i.encryptBlock(s,0);for(var c=0;c<r;c++)t[n+c]^=s[c]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),nt((function(t,e){var n,i,r;t.exports=((n=Nn).mode.OFB=(i=n.lib.BlockCipherMode.extend(),r=i.Encryptor=i.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,a=this._keystream;r&&(a=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<i;o++)t[e+o]^=a[o]}}),i.Decryptor=r,i),n.mode.OFB)})),nt((function(t,e){var n,i;t.exports=((n=Nn).mode.ECB=((i=n.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),i.Decryptor=i.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),i),n.mode.ECB)})),nt((function(t,e){var n;t.exports=((n=Nn).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,a=n+r-1;t.clamp(),t.words[a>>>2]|=r<<24-a%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),nt((function(t,e){var n;t.exports=((n=Nn).pad.Iso10126={pad:function(t,e){var i=4*e,r=i-t.sigBytes%i;t.concat(n.lib.WordArray.random(r-1)).concat(n.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),nt((function(t,e){var n;t.exports=((n=Nn).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),nt((function(t,e){var n;t.exports=((n=Nn).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){for(var e=t.words,n=t.sigBytes-1;!(e[n>>>2]>>>24-n%4*8&255);)n--;t.sigBytes=n+1}},n.pad.ZeroPadding)})),nt((function(t,e){var n;t.exports=((n=Nn).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),nt((function(t,e){var n,i,r,a;t.exports=(r=(i=n=Nn).lib.CipherParams,a=i.enc.Hex,i.format.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return r.create({ciphertext:e})}},n.format.Hex)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib.BlockCipher,i=t.algo,r=[],a=[],o=[],s=[],c=[],l=[],u=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,r[n]=p,a[p]=n;var g=t[n],m=t[g],v=t[m],_=257*t[p]^16843008*p;o[n]=_<<24|_>>>8,s[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_,_=16843009*v^65537*m^257*g^16843008*n,u[p]=_<<24|_>>>8,h[p]=_<<16|_>>>16,d[p]=_<<8|_>>>24,f[p]=_,n?(n=g^t[t[t[v^g]]],i^=t[t[i]]):n=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<i;o++)if(o<n)a[o]=e[o];else{var s=a[o-1];o%n?n>6&&o%n==4&&(s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s]):(s=r[(s=s<<8|s>>>24)>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s],s^=p[o/n|0]<<24),a[o]=a[o-n]^s}for(var c=this._invKeySchedule=[],l=0;l<i;l++)o=i-l,s=l%4?a[o]:a[o-4],c[l]=l<4||o<=4?s:u[r[s>>>24]]^h[r[s>>>16&255]]^d[r[s>>>8&255]]^f[r[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,c,l,r)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,h,d,f,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,a,o,s){for(var c=this._nRounds,l=t[e]^n[0],u=t[e+1]^n[1],h=t[e+2]^n[2],d=t[e+3]^n[3],f=4,p=1;p<c;p++){var g=i[l>>>24]^r[u>>>16&255]^a[h>>>8&255]^o[255&d]^n[f++],m=i[u>>>24]^r[h>>>16&255]^a[d>>>8&255]^o[255&l]^n[f++],v=i[h>>>24]^r[d>>>16&255]^a[l>>>8&255]^o[255&u]^n[f++],_=i[d>>>24]^r[l>>>16&255]^a[u>>>8&255]^o[255&h]^n[f++];l=g,u=m,h=v,d=_}g=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[f++],m=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[f++],v=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[f++],_=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[f++],t[e]=g,t[e+1]=m,t[e+2]=v,t[e+3]=_},keySize:8});t.AES=e._createHelper(g)}(),n.AES)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib,i=e.WordArray,r=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var i=o[n]-1;e[n]=t[i>>>5]>>>31-i%32&1}for(var r=this._subKeys=[],a=0;a<16;a++){var l=r[a]=[],u=c[a];for(n=0;n<24;n++)l[n/6|0]|=e[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(s[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=r[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],a=this._lBlock,o=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((o^r[c])&u[c])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=r._createHelper(h);var p=a.TripleDES=r.extend({_doReset:function(){var t=this._key.words;this._des1=h.createEncryptor(i.create(t.slice(0,2))),this._des2=h.createEncryptor(i.create(t.slice(2,4))),this._des3=h.createEncryptor(i.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(p)}(),n.TripleDES)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=i.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var a=0;r<256;r++){var o=r%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+i[r]+s)%256;var c=i[r];i[r]=i[a],i[a]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}t.RC4=e._createHelper(r);var o=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],a=[],o=[],s=i.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,d=u<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=u,r[3]^=d,r[4]^=l,r[5]^=h,r[6]^=u,r[7]^=d,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,s=i>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,l=((4294901760&i)*i|0)+((65535&i)*i|0);o[n]=c^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),nt((function(t,e){var n;t.exports=(n=Nn,function(){var t=n,e=t.lib.StreamCipher,i=t.algo,r=[],a=[],o=[],s=i.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,d=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=d,i[4]^=l,i[5]^=h,i[6]^=u,i[7]^=d,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,s=i>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,l=((4294901760&i)*i|0)+((65535&i)*i|0);o[n]=c^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),nt((function(t,e){t.exports=Nn})));function Wn(){throw new Error("setTimeout has not been defined")}function Hn(){throw new Error("clearTimeout has not been defined")}var Vn=Wn,Zn=Hn;function Gn(t){if(Vn===setTimeout)return setTimeout(t,0);if((Vn===Wn||!Vn)&&setTimeout)return Vn=setTimeout,setTimeout(t,0);try{return Vn(t,0)}catch(e){try{return Vn.call(null,t,0)}catch(e){return Vn.call(this,t,0)}}}"function"==typeof t.setTimeout&&(Vn=setTimeout),"function"==typeof t.clearTimeout&&(Zn=clearTimeout);var Jn,Kn=[],Yn=!1,qn=-1;function Xn(){Yn&&Jn&&(Yn=!1,Jn.length?Kn=Jn.concat(Kn):qn=-1,Kn.length&&Qn())}function Qn(){if(!Yn){var t=Gn(Xn);Yn=!0;for(var e=Kn.length;e;){for(Jn=Kn,Kn=[];++qn<e;)Jn&&Jn[qn].run();qn=-1,e=Kn.length}Jn=null,Yn=!1,function(t){if(Zn===clearTimeout)return clearTimeout(t);if((Zn===Hn||!Zn)&&clearTimeout)return Zn=clearTimeout,clearTimeout(t);try{Zn(t)}catch(e){try{return Zn.call(null,t)}catch(e){return Zn.call(this,t)}}}(t)}}function ti(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Kn.push(new ei(t,e)),1!==Kn.length||Yn||Gn(Qn)}function ei(t,e){this.fun=t,this.array=e}ei.prototype.run=function(){this.fun.apply(null,this.array)};var ni=t.performance||{};function ii(){}function ri(){ri.init.call(this)}function ai(t){return void 0===t._maxListeners?ri.defaultMaxListeners:t._maxListeners}function oi(t,e,n){if(e)t.call(n);else for(var i=t.length,r=pi(t,i),a=0;a<i;++a)r[a].call(n)}function si(t,e,n,i){if(e)t.call(n,i);else for(var r=t.length,a=pi(t,r),o=0;o<r;++o)a[o].call(n,i)}function ci(t,e,n,i,r){if(e)t.call(n,i,r);else for(var a=t.length,o=pi(t,a),s=0;s<a;++s)o[s].call(n,i,r)}function li(t,e,n,i,r,a){if(e)t.call(n,i,r,a);else for(var o=t.length,s=pi(t,o),c=0;c<o;++c)s[c].call(n,i,r,a)}function ui(t,e,n,i){if(e)t.apply(n,i);else for(var r=t.length,a=pi(t,r),o=0;o<r;++o)a[o].apply(n,i)}function hi(t,e,n,i){var r,a,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),a=t._events),o=a[e]):(a=t._events=new ii,t._eventsCount=0),o){if("function"==typeof o?o=a[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),!o.warned&&(r=ai(t))&&r>0&&o.length>r){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=o.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else o=a[e]=n,++t._eventsCount;return t}function di(t,e,n){var i=!1;function r(){t.removeListener(e,r),i||(i=!0,n.apply(t,arguments))}return r.listener=n,r}function fi(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function pi(t,e){for(var n=new Array(e);e--;)n[e]=t[e];return n}ni.now||ni.mozNow||ni.msNow||ni.oNow||ni.webkitNow,ii.prototype=Object.create(null),ri.EventEmitter=ri,ri.usingDomains=!1,ri.prototype.domain=void 0,ri.prototype._events=void 0,ri.prototype._maxListeners=void 0,ri.defaultMaxListeners=10,ri.init=function(){this.domain=null,ri.usingDomains&&(void 0).active&&(void 0).Domain,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ii,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ri.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},ri.prototype.getMaxListeners=function(){return ai(this)},ri.prototype.emit=function(t){var e,n,i,r,a,o,s,c="error"===t;if(o=this._events)c=c&&null==o.error;else if(!c)return!1;if(s=this.domain,c){if(e=arguments[1],!s){if(e instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(n=o[t]))return!1;var u="function"==typeof n;switch(i=arguments.length){case 1:oi(n,u,this);break;case 2:si(n,u,this,arguments[1]);break;case 3:ci(n,u,this,arguments[1],arguments[2]);break;case 4:li(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(i-1),a=1;a<i;a++)r[a-1]=arguments[a];ui(n,u,this,r)}return!0},ri.prototype.addListener=function(t,e){return hi(this,t,e,!1)},ri.prototype.on=ri.prototype.addListener,ri.prototype.prependListener=function(t,e){return hi(this,t,e,!0)},ri.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,di(this,t,e)),this},ri.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,di(this,t,e)),this},ri.prototype.removeListener=function(t,e){var n,i,r,a,o;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[t]))return this;if(n===e||n.listener&&n.listener===e)0==--this._eventsCount?this._events=new ii:(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,a=n.length;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=n[a].listener,r=a;break}if(r<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ii,this;delete i[t]}else!function(t,e){for(var n=e,i=n+1,r=t.length;i<r;n+=1,i+=1)t[n]=t[i];t.pop()}(n,r);i.removeListener&&this.emit("removeListener",t,o||e)}return this},ri.prototype.removeAllListeners=function(t){var e,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new ii,this._eventsCount=0):n[t]&&(0==--this._eventsCount?this._events=new ii:delete n[t]),this;if(0===arguments.length){for(var i,r=Object.keys(n),a=0;a<r.length;++a)"removeListener"!==(i=r[a])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new ii,this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},ri.prototype.listeners=function(t){var e,n=this._events;return n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):[]},ri.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):fi.call(t,e)},ri.prototype.listenerCount=fi,ri.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var gi="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},mi=/%[sdj%]/g;function vi(t){if(!Ii(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(yi(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,r=i.length,a=String(t).replace(mi,(function(t){if("%%"===t)return"%";if(n>=r)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),o=i[n];n<r;o=i[++n])Di(o)||!Ti(o)?a+=" "+o:a+=" "+yi(o);return a}function _i(e,n){if(Li(t.process))return function(){return _i(e,n).apply(this,arguments)};var i=!1;return function(){return i||(console.error(n),i=!0),e.apply(this,arguments)}}var wi,bi={};function yi(t,e){var n={seen:[],stylize:Si};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Ei(e)?n.showHidden=e:e&&function(t,e){if(!e||!Ti(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]]}(n,e),Li(n.showHidden)&&(n.showHidden=!1),Li(n.depth)&&(n.depth=2),Li(n.colors)&&(n.colors=!1),Li(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Ai),Ci(n,t,n.depth)}function Ai(t,e){var n=yi.styles[e];return n?"["+yi.colors[n][0]+"m"+t+"["+yi.colors[n][1]+"m":t}function Si(t,e){return t}function Ci(t,e,n){if(t.customInspect&&e&&Bi(e.inspect)&&e.inspect!==yi&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return Ii(i)||(i=Ci(t,i,n)),i}var r=function(t,e){if(Li(e))return t.stylize("undefined","undefined");if(Ii(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return i=e,"number"==typeof i?t.stylize(""+e,"number"):Ei(e)?t.stylize(""+e,"boolean"):Di(e)?t.stylize("null","null"):void 0;var i}(t,e);if(r)return r;var a=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Oi(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ki(e);if(0===a.length){if(Bi(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Ri(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Mi(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Oi(e))return ki(e)}var c,l,u="",h=!1,d=["{","}"];return c=e,Array.isArray(c)&&(h=!0,d=["[","]"]),Bi(e)&&(u=" [Function"+(e.name?": "+e.name:"")+"]"),Ri(e)&&(u=" "+RegExp.prototype.toString.call(e)),Mi(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Oi(e)&&(u=" "+ki(e)),0!==a.length||h&&0!=e.length?n<0?Ri(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),l=h?function(t,e,n,i,r){for(var a=[],o=0,s=e.length;o<s;++o)Pi(e,String(o))?a.push(xi(t,e,n,i,String(o),!0)):a.push("");return r.forEach((function(r){r.match(/^\d+$/)||a.push(xi(t,e,n,i,r,!0))})),a}(t,e,n,o,a):a.map((function(i){return xi(t,e,n,o,i,h)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(l,u,d)):d[0]+u+d[1]}function ki(t){return"["+Error.prototype.toString.call(t)+"]"}function xi(t,e,n,i,r,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),Pi(i,r)||(o="["+r+"]"),s||(t.seen.indexOf(c.value)<0?(s=Di(n)?Ci(t,c.value,null):Ci(t,c.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),Li(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function Ei(t){return"boolean"==typeof t}function Di(t){return null===t}function Ii(t){return"string"==typeof t}function Li(t){return void 0===t}function Ri(t){return Ti(t)&&"[object RegExp]"===Ui(t)}function Ti(t){return"object"==o(t)&&null!==t}function Mi(t){return Ti(t)&&"[object Date]"===Ui(t)}function Oi(t){return Ti(t)&&("[object Error]"===Ui(t)||t instanceof Error)}function Bi(t){return"function"==typeof t}function Ui(t){return Object.prototype.toString.call(t)}function Pi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zi(){this.head=null,this.tail=null,this.length=0}yi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},yi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},zi.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},zi.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},zi.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},zi.prototype.clear=function(){this.head=this.tail=null,this.length=0},zi.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},zi.prototype.concat=function(t){if(0===this.length)return m.alloc(0);if(1===this.length)return this.head.data;for(var e=m.allocUnsafe(t>>>0),n=this.head,i=0;n;)n.data.copy(e,i),i+=n.data.length,n=n.next;return e};var $i=m.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ji(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!$i(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Fi;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Wi;break;default:return void(this.write=Ni)}this.charBuffer=new m(6),this.charReceived=0,this.charLength=0}function Ni(t){return t.toString(this.encoding)}function Fi(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Wi(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}ji.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i,r=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived),r=(e+=t.toString(this.encoding,0,r)).length-1,(i=e.charCodeAt(r))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,r)}return e},ji.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},ji.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,i=this.charBuffer,r=this.encoding;e+=i.slice(0,n).toString(r)}return e},Zi.ReadableState=Vi;var Hi=function(t){return Li(wi)&&(wi=""),t=t.toUpperCase(),bi[t]||(new RegExp("\\b"+t+"\\b","i").test(wi)?bi[t]=function(){var e=vi.apply(null,arguments);console.error("%s %d: %s",t,0,e)}:bi[t]=function(){}),bi[t]}("stream");function Vi(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof br&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=~~this.highWaterMark,this.buffer=new zi,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new ji(t.encoding),this.encoding=t.encoding)}function Zi(t){if(!(this instanceof Zi))return new Zi(t);this._readableState=new Vi(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),ri.call(this)}function Gi(t,e,n,i,r){var a=function(t,e){var n=null;return Q(e)||"string"==typeof e||null==e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(e,n);if(a)t.emit("error",a);else if(null===n)e.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,Yi(t)}}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!r){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&r){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var c;!e.decoder||r||i||(n=e.decoder.write(n),c=!e.objectMode&&0===n.length),r||(e.reading=!1),c||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Yi(t))),function(t,e){e.readingMore||(e.readingMore=!0,ti(Xi,t,e))}(t,e)}else r||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}gi(Zi,ri),Zi.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding)!==n.encoding&&(t=m.from(t,e),e=""),Gi(this,n,t,e,!1)},Zi.prototype.unshift=function(t){return Gi(this,this._readableState,t,"",!0)},Zi.prototype.isPaused=function(){return!1===this._readableState.flowing},Zi.prototype.setEncoding=function(t){return this._readableState.decoder=new ji(t),this._readableState.encoding=t,this};var Ji=8388608;function Ki(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=Ji?t=Ji:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function Yi(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Hi("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?ti(qi,t):qi(t))}function qi(t){Hi("emit readable"),t.emit("readable"),er(t)}function Xi(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Hi("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function Qi(t){Hi("readable nexttick read 0"),t.read(0)}function tr(t,e){e.reading||(Hi("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),er(t),e.flowing&&!e.reading&&t.read(0)}function er(t){var e=t._readableState;for(Hi("flow",e.flowing);e.flowing&&null!==t.read(););}function nr(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,i=1,r=n.data;for(t-=r.length;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(o===a.length?r+=a:r+=a.slice(0,t),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=m.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),0===(t-=o)){o===a.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(o));break}++r}return e.length-=r,n}(t,e),i}(t,e.buffer,e.decoder),n);var n}function ir(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,ti(rr,e,t))}function rr(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function ar(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}function or(){}function sr(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function cr(t,e){Object.defineProperty(this,"buffer",{get:_i((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof br&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=!1===t.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?ti(r,i):r(i),t._writableState.errorEmitted=!0,t.emit("error",i)}(t,n,i,e,r);else{var a=fr(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||dr(t,n),i?ti(hr,t,n,a,r):hr(t,n,a,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new mr(this)}function lr(t){if(!(this instanceof lr||this instanceof br))return new lr(t);this._writableState=new cr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),ri.call(this)}function ur(t,e,n,i,r,a,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,a,e.onwrite),e.sync=!1}function hr(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),gr(t,e)}function dr(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),a=e.corkedRequestsFree;a.entry=n;for(var o=0;n;)r[o]=n,n=n.next,o+=1;ur(t,e,!0,e.length,r,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new mr(e)}else{for(;n;){var s=n.chunk,c=n.encoding,l=n.callback;if(ur(t,e,!1,e.objectMode?1:s.length,s,c,l),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function fr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function pr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function gr(t,e){var n=fr(e);return n&&(0===e.pendingcb?(pr(t,e),e.finished=!0,t.emit("finish")):pr(t,e)),n}function mr(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Zi.prototype.read=function(t){Hi("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Hi("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?ir(this):Yi(this),null;if(0===(t=Ki(t,e))&&e.ended)return 0===e.length&&ir(this),null;var i,r=e.needReadable;return Hi("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&Hi("length less than watermark",r=!0),e.ended||e.reading?Hi("reading or ended",r=!1):r&&(Hi("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ki(n,e))),null===(i=t>0?nr(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&ir(this)),null!==i&&this.emit("data",i),i},Zi.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Zi.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,Hi("pipe count=%d opts=%j",i.pipesCount,e);var r=e&&!1===e.end?l:o;function a(t){Hi("onunpipe"),t===n&&l()}function o(){Hi("onend"),t.end()}i.endEmitted?ti(r):n.once("end",r),t.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;Hi("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,er(t))}}(n);t.on("drain",s);var c=!1;function l(){Hi("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",d),t.removeListener("unpipe",a),n.removeListener("end",o),n.removeListener("end",l),n.removeListener("data",h),c=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var u=!1;function h(e){Hi("ondata"),u=!1,!1!==t.write(e)||u||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==ar(i.pipes,t))&&!c&&(Hi("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function d(e){var n;Hi("onerror",e),g(),t.removeListener("error",d),0===(n="error",t.listeners(n).length)&&t.emit("error",e)}function f(){t.removeListener("finish",p),g()}function p(){Hi("onfinish"),t.removeListener("close",f),g()}function g(){Hi("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",n),i.flowing||(Hi("pipe resume"),n.resume()),t},Zi.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r<i;r++)n[r].emit("unpipe",this);return this}var a=ar(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Zi.prototype.on=function(t,e){var n=ri.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Yi(this):ti(Qi,this))}return n},Zi.prototype.addListener=Zi.prototype.on,Zi.prototype.resume=function(){var t=this._readableState;return t.flowing||(Hi("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,ti(tr,t,e))}(this,t)),this},Zi.prototype.pause=function(){return Hi("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Hi("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Zi.prototype.wrap=function(t){var e=this._readableState,n=!1,i=this;for(var r in t.on("end",(function(){if(Hi("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&i.push(t)}i.push(null)})),t.on("data",(function(r){Hi("wrapped data"),e.decoder&&(r=e.decoder.write(r)),e.objectMode&&null==r||(e.objectMode||r&&r.length)&&(i.push(r)||(n=!0,t.pause()))})),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));return function(t,e){for(var n=0,i=t.length;n<i;n++)e(t[n],n)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,i.emit.bind(i,e))})),i._read=function(e){Hi("wrapped _read",e),n&&(n=!1,t.resume())},i},Zi._fromList=nr,lr.WritableState=cr,gi(lr,ri),cr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},lr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},lr.prototype.write=function(t,e,n){var i=this._writableState,r=!1;return"function"==typeof e&&(n=e,e=null),m.isBuffer(t)?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=or),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),ti(e,n)}(this,n):function(t,e,n,i){var r=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):m.isBuffer(n)||"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),ti(i,a),r=!1),r}(this,i,t,n)&&(i.pendingcb++,r=function(t,e,n,i,r){n=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=m.from(e,n)),e}(e,n,i),m.isBuffer(n)&&(i="buffer");var a=e.objectMode?1:n.length;e.length+=a;var o=e.length<e.highWaterMark;if(o||(e.needDrain=!0),e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new sr(n,i,r),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ur(t,e,!1,a,n,i,r);return o}(this,i,t,e,n)),r},lr.prototype.cork=function(){this._writableState.corked++},lr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||dr(this,t))},lr.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},lr.prototype._write=function(t,e,n){n(new Error("not implemented"))},lr.prototype._writev=null,lr.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,gr(t,e),n&&(e.finished?ti(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n)},gi(br,Zi);for(var vr=Object.keys(lr.prototype),_r=0;_r<vr.length;_r++){var wr=vr[_r];br.prototype[wr]||(br.prototype[wr]=lr.prototype[wr])}function br(t){if(!(this instanceof br))return new br(t);Zi.call(this,t),lr.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",yr)}function yr(){this.allowHalfOpen||this._writableState.ended||ti(Ar,this)}function Ar(t){t.end()}function Sr(t){this.afterTransform=function(e,n){return function(t,e,n){var i=t._transformState;i.transforming=!1;var r=i.writecb;if(!r)return t.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,i.writecb=null,null!=n&&t.push(n),r(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&t._read(a.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Cr(t){if(!(this instanceof Cr))return new Cr(t);br.call(this,t),this._transformState=new Sr(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){kr(e,t)})):kr(e)}))}function kr(t,e){if(e)return t.emit("error",e);var n=t._writableState,i=t._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function xr(t){if(!(this instanceof xr))return new xr(t);Cr.call(this,t)}function Er(){ri.call(this)}gi(Cr,br),Cr.prototype.push=function(t,e){return this._transformState.needTransform=!1,br.prototype.push.call(this,t,e)},Cr.prototype._transform=function(t,e,n){throw new Error("Not implemented")},Cr.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},Cr.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},gi(xr,Cr),xr.prototype._transform=function(t,e,n){n(null,t)},gi(Er,ri),Er.Readable=Zi,Er.Writable=lr,Er.Duplex=br,Er.Transform=Cr,Er.PassThrough=xr,Er.Stream=Er,Er.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",r),t._isStdio||e&&!1===e.end||(n.on("end",o),n.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(l(),0===ri.listenerCount(this,"error"))throw t}function l(){n.removeListener("data",i),t.removeListener("drain",r),n.removeListener("end",o),n.removeListener("close",s),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",c),t.on("error",c),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t};var Dr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Ir(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Lr(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var a=0;a<i;a++)t[r+a]=e[n+a]}var Rr=Uint8Array,Tr=Uint16Array,Mr=Int32Array,Or=4,Br=0,Ur=1,Pr=2;function zr(t){for(var e=t.length;--e>=0;)t[e]=0}var $r=0,jr=1,Nr=2,Fr=29,Wr=256,Hr=Wr+1+Fr,Vr=30,Zr=19,Gr=2*Hr+1,Jr=15,Kr=16,Yr=7,qr=256,Xr=16,Qr=17,ta=18,ea=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],na=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ia=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ra=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],aa=new Array(2*(Hr+2));zr(aa);var oa=new Array(2*Vr);zr(oa);var sa=new Array(512);zr(sa);var ca=new Array(256);zr(ca);var la=new Array(Fr);zr(la);var ua,ha,da,fa=new Array(Vr);function pa(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function ga(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function ma(t){return t<256?sa[t]:sa[256+(t>>>7)]}function va(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _a(t,e,n){t.bi_valid>Kr-n?(t.bi_buf|=e<<t.bi_valid&65535,va(t,t.bi_buf),t.bi_buf=e>>Kr-t.bi_valid,t.bi_valid+=n-Kr):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function wa(t,e,n){_a(t,n[2*e],n[2*e+1])}function ba(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function ya(t,e,n){var i,r,a=new Array(Jr+1),o=0;for(i=1;i<=Jr;i++)a[i]=o=o+n[i-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=ba(a[s]++,s))}}function Aa(t){var e;for(e=0;e<Hr;e++)t.dyn_ltree[2*e]=0;for(e=0;e<Vr;e++)t.dyn_dtree[2*e]=0;for(e=0;e<Zr;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*qr]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Sa(t){t.bi_valid>8?va(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Ca(t,e,n,i){var r=2*e,a=2*n;return t[r]<t[a]||t[r]===t[a]&&i[e]<=i[n]}function ka(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&Ca(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!Ca(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function xa(t,e,n){var i,r,a,o,s=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===i?wa(t,r,e):(wa(t,(a=ca[r])+Wr+1,e),0!==(o=ea[a])&&_a(t,r-=la[a],o),wa(t,a=ma(--i),n),0!==(o=na[a])&&_a(t,i-=fa[a],o))}while(s<t.last_lit);wa(t,qr,e)}function Ea(t,e){var n,i,r,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=Gr,n=0;n<c;n++)0!==a[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):a[2*n+1]=0;for(;t.heap_len<2;)a[2*(r=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=o[2*r+1]);for(e.max_code=l,n=t.heap_len>>1;n>=1;n--)ka(t,a,n);r=c;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],ka(t,a,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,a[2*r]=a[2*n]+a[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,a[2*n+1]=a[2*i+1]=r,t.heap[1]=r++,ka(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,a,o,s,c=e.dyn_tree,l=e.max_code,u=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(a=0;a<=Jr;a++)t.bl_count[a]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<Gr;n++)(a=c[2*c[2*(i=t.heap[n])+1]+1]+1)>p&&(a=p,g++),c[2*i+1]=a,i>l||(t.bl_count[a]++,o=0,i>=f&&(o=d[i-f]),s=c[2*i],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(u[2*i+1]+o)));if(0!==g){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(i=t.bl_count[a];0!==i;)(r=t.heap[--n])>l||(c[2*r+1]!==a&&(t.opt_len+=(a-c[2*r+1])*c[2*r],c[2*r+1]=a),i--)}}(t,e),ya(a,l,t.bl_count)}function Da(t,e,n){var i,r,a=-1,o=e[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=e[2*(i+1)+1],++s<c&&r===o||(s<l?t.bl_tree[2*r]+=s:0!==r?(r!==a&&t.bl_tree[2*r]++,t.bl_tree[2*Xr]++):s<=10?t.bl_tree[2*Qr]++:t.bl_tree[2*ta]++,s=0,a=r,0===o?(c=138,l=3):r===o?(c=6,l=3):(c=7,l=4))}function Ia(t,e,n){var i,r,a=-1,o=e[1],s=0,c=7,l=4;for(0===o&&(c=138,l=3),i=0;i<=n;i++)if(r=o,o=e[2*(i+1)+1],!(++s<c&&r===o)){if(s<l)do{wa(t,r,t.bl_tree)}while(0!=--s);else 0!==r?(r!==a&&(wa(t,r,t.bl_tree),s--),wa(t,Xr,t.bl_tree),_a(t,s-3,2)):s<=10?(wa(t,Qr,t.bl_tree),_a(t,s-3,3)):(wa(t,ta,t.bl_tree),_a(t,s-11,7));s=0,a=r,0===o?(c=138,l=3):r===o?(c=6,l=3):(c=7,l=4)}}zr(fa);var La=!1;function Ra(t){La||(function(){var t,e,n,i,r,a=new Array(Jr+1);for(n=0,i=0;i<Fr-1;i++)for(la[i]=n,t=0;t<1<<ea[i];t++)ca[n++]=i;for(ca[n-1]=i,r=0,i=0;i<16;i++)for(fa[i]=r,t=0;t<1<<na[i];t++)sa[r++]=i;for(r>>=7;i<Vr;i++)for(fa[i]=r<<7,t=0;t<1<<na[i]-7;t++)sa[256+r++]=i;for(e=0;e<=Jr;e++)a[e]=0;for(t=0;t<=143;)aa[2*t+1]=8,t++,a[8]++;for(;t<=255;)aa[2*t+1]=9,t++,a[9]++;for(;t<=279;)aa[2*t+1]=7,t++,a[7]++;for(;t<=287;)aa[2*t+1]=8,t++,a[8]++;for(ya(aa,Hr+1,a),t=0;t<Vr;t++)oa[2*t+1]=5,oa[2*t]=ba(t,5);ua=new pa(aa,ea,Wr+1,Hr,Jr),ha=new pa(oa,na,0,Vr,Jr),da=new pa(new Array(0),ia,0,Zr,Yr)}(),La=!0),t.l_desc=new ga(t.dyn_ltree,ua),t.d_desc=new ga(t.dyn_dtree,ha),t.bl_desc=new ga(t.bl_tree,da),t.bi_buf=0,t.bi_valid=0,Aa(t)}function Ta(t,e,n,i){_a(t,($r<<1)+(i?1:0),3),function(t,e,n,i){Sa(t),i&&(va(t,n),va(t,~n)),Lr(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}function Ma(t){_a(t,jr<<1,3),wa(t,qr,aa),function(t){16===t.bi_valid?(va(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}function Oa(t,e,n,i){var r,a,o=0;t.level>0?(t.strm.data_type===Pr&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return Br;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return Ur;for(e=32;e<Wr;e++)if(0!==t.dyn_ltree[2*e])return Ur;return Br}(t)),Ea(t,t.l_desc),Ea(t,t.d_desc),o=function(t){var e;for(Da(t,t.dyn_ltree,t.l_desc.max_code),Da(t,t.dyn_dtree,t.d_desc.max_code),Ea(t,t.bl_desc),e=Zr-1;e>=3&&0===t.bl_tree[2*ra[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=r&&(r=a)):r=a=n+5,n+4<=r&&-1!==e?Ta(t,e,n,i):t.strategy===Or||a===r?(_a(t,(jr<<1)+(i?1:0),3),xa(t,aa,oa)):(_a(t,(Nr<<1)+(i?1:0),3),function(t,e,n,i){var r;for(_a(t,e-257,5),_a(t,n-1,5),_a(t,i-4,4),r=0;r<i;r++)_a(t,t.bl_tree[2*ra[r]+1],3);Ia(t,t.dyn_ltree,e-1),Ia(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),xa(t,t.dyn_ltree,t.dyn_dtree)),Aa(t),i&&Sa(t)}function Ba(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(ca[n]+Wr+1)]++,t.dyn_dtree[2*ma(e)]++),t.last_lit===t.lit_bufsize-1}function Ua(t,e,n,i){for(var r=65535&t|0,a=t>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(r=r+e[i++]|0)|0}while(--o);r%=65521,a%=65521}return r|a<<16|0}var Pa=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();function za(t,e,n,i){var r=Pa,a=i+n;t^=-1;for(var o=i;o<a;o++)t=t>>>8^r[255&(t^e[o])];return-1^t}var $a,ja=0,Na=1,Fa=3,Wa=4,Ha=5,Va=0,Za=1,Ga=-2,Ja=-3,Ka=-5,Ya=-1,qa=1,Xa=2,Qa=3,to=4,eo=2,no=8,io=9,ro=286,ao=30,oo=19,so=2*ro+1,co=15,lo=3,uo=258,ho=uo+lo+1,fo=32,po=42,go=69,mo=73,vo=91,_o=103,wo=113,bo=666,yo=1,Ao=2,So=3,Co=4,ko=3;function xo(t,e){return t.msg=Dr[e],e}function Eo(t){return(t<<1)-(t>4?9:0)}function Do(t){for(var e=t.length;--e>=0;)t[e]=0}function Io(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(Lr(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function Lo(t,e){Oa(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Io(t.strm)}function Ro(t,e){t.pending_buf[t.pending++]=e}function To(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Mo(t,e){var n,i,r=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-ho?t.strstart-(t.w_size-ho):0,l=t.window,u=t.w_mask,h=t.prev,d=t.strstart+uo,f=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+o]===p&&l[n+o-1]===f&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<d);if(i=uo-(d-a),a=d-uo,i>o){if(t.match_start=e,o=i,i>=s)break;f=l[a+o-1],p=l[a+o]}}}while((e=h[e&u])>c&&0!=--r);return o<=t.lookahead?o:t.lookahead}function Oo(t){var e,n,i,r,a,o,s,c,l,u,h=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-ho)){Lr(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=n=t.hash_size;do{i=t.head[--e],t.head[e]=i>=h?i-h:0}while(--n);e=n=h;do{i=t.prev[--e],t.prev[e]=i>=h?i-h:0}while(--n);r+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,c=t.strstart+t.lookahead,l=r,u=void 0,(u=o.avail_in)>l&&(u=l),n=0===u?0:(o.avail_in-=u,Lr(s,o.input,o.next_in,u,c),1===o.state.wrap?o.adler=Ua(o.adler,s,u,c):2===o.state.wrap&&(o.adler=za(o.adler,s,u,c)),o.next_in+=u,o.total_in+=u,u),t.lookahead+=n,t.lookahead+t.insert>=lo)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+lo-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<lo)););}while(t.lookahead<ho&&0!==t.strm.avail_in)}function Bo(t,e){for(var n,i;;){if(t.lookahead<ho){if(Oo(t),t.lookahead<ho&&e===ja)return yo;if(0===t.lookahead)break}if(n=0,t.lookahead>=lo&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+lo-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-ho&&(t.match_length=Mo(t,n)),t.match_length>=lo)if(i=Ba(t,t.strstart-t.match_start,t.match_length-lo),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=lo){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+lo-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=Ba(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(Lo(t,!1),0===t.strm.avail_out))return yo}return t.insert=t.strstart<lo-1?t.strstart:lo-1,e===Wa?(Lo(t,!0),0===t.strm.avail_out?So:Co):t.last_lit&&(Lo(t,!1),0===t.strm.avail_out)?yo:Ao}function Uo(t,e){for(var n,i,r;;){if(t.lookahead<ho){if(Oo(t),t.lookahead<ho&&e===ja)return yo;if(0===t.lookahead)break}if(n=0,t.lookahead>=lo&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+lo-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=lo-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-ho&&(t.match_length=Mo(t,n),t.match_length<=5&&(t.strategy===qa||t.match_length===lo&&t.strstart-t.match_start>4096)&&(t.match_length=lo-1)),t.prev_length>=lo&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-lo,i=Ba(t,t.strstart-1-t.prev_match,t.prev_length-lo),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+lo-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=lo-1,t.strstart++,i&&(Lo(t,!1),0===t.strm.avail_out))return yo}else if(t.match_available){if((i=Ba(t,0,t.window[t.strstart-1]))&&Lo(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return yo}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=Ba(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<lo-1?t.strstart:lo-1,e===Wa?(Lo(t,!0),0===t.strm.avail_out?So:Co):t.last_lit&&(Lo(t,!1),0===t.strm.avail_out)?yo:Ao}function Po(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function zo(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=no,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Tr(2*so),this.dyn_dtree=new Tr(2*(2*ao+1)),this.bl_tree=new Tr(2*(2*oo+1)),Do(this.dyn_ltree),Do(this.dyn_dtree),Do(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Tr(co+1),this.heap=new Tr(2*ro+1),Do(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Tr(2*ro+1),Do(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function $o(t){var e,n=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=eo,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?po:wo,t.adler=2===e.wrap?0:1,e.last_flush=ja,Ra(e),Va):xo(t,Ga)}(t);return n===Va&&((e=t.state).window_size=2*e.w_size,Do(e.head),e.max_lazy_match=$a[e.level].max_lazy,e.good_match=$a[e.level].good_length,e.nice_match=$a[e.level].nice_length,e.max_chain_length=$a[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=lo-1,e.match_available=0,e.ins_h=0),n}function jo(t,e){var n,i,r,a;if(!t||!t.state||e>Ha||e<0)return t?xo(t,Ga):Ga;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===bo&&e!==Wa)return xo(t,0===t.avail_out?Ka:Ga);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===po)if(2===i.wrap)t.adler=0,Ro(i,31),Ro(i,139),Ro(i,8),i.gzhead?(Ro(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ro(i,255&i.gzhead.time),Ro(i,i.gzhead.time>>8&255),Ro(i,i.gzhead.time>>16&255),Ro(i,i.gzhead.time>>24&255),Ro(i,9===i.level?2:i.strategy>=Xa||i.level<2?4:0),Ro(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Ro(i,255&i.gzhead.extra.length),Ro(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=za(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=go):(Ro(i,0),Ro(i,0),Ro(i,0),Ro(i,0),Ro(i,0),Ro(i,9===i.level?2:i.strategy>=Xa||i.level<2?4:0),Ro(i,ko),i.status=wo);else{var o=no+(i.w_bits-8<<4)<<8;o|=(i.strategy>=Xa||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(o|=fo),o+=31-o%31,i.status=wo,To(i,o),0!==i.strstart&&(To(i,t.adler>>>16),To(i,65535&t.adler)),t.adler=1}if(i.status===go)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(t.adler=za(t.adler,i.pending_buf,i.pending-r,r)),Io(t),r=i.pending,i.pending!==i.pending_buf_size));)Ro(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(t.adler=za(t.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=mo)}else i.status=mo;if(i.status===mo)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=za(t.adler,i.pending_buf,i.pending-r,r)),Io(t),r=i.pending,i.pending===i.pending_buf_size)){a=1;break}a=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Ro(i,a)}while(0!==a);i.gzhead.hcrc&&i.pending>r&&(t.adler=za(t.adler,i.pending_buf,i.pending-r,r)),0===a&&(i.gzindex=0,i.status=vo)}else i.status=vo;if(i.status===vo)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(t.adler=za(t.adler,i.pending_buf,i.pending-r,r)),Io(t),r=i.pending,i.pending===i.pending_buf_size)){a=1;break}a=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Ro(i,a)}while(0!==a);i.gzhead.hcrc&&i.pending>r&&(t.adler=za(t.adler,i.pending_buf,i.pending-r,r)),0===a&&(i.status=_o)}else i.status=_o;if(i.status===_o&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Io(t),i.pending+2<=i.pending_buf_size&&(Ro(i,255&t.adler),Ro(i,t.adler>>8&255),t.adler=0,i.status=wo)):i.status=wo),0!==i.pending){if(Io(t),0===t.avail_out)return i.last_flush=-1,Va}else if(0===t.avail_in&&Eo(e)<=Eo(n)&&e!==Wa)return xo(t,Ka);if(i.status===bo&&0!==t.avail_in)return xo(t,Ka);if(0!==t.avail_in||0!==i.lookahead||e!==ja&&i.status!==bo){var s=i.strategy===Xa?function(t,e){for(var n;;){if(0===t.lookahead&&(Oo(t),0===t.lookahead)){if(e===ja)return yo;break}if(t.match_length=0,n=Ba(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(Lo(t,!1),0===t.strm.avail_out))return yo}return t.insert=0,e===Wa?(Lo(t,!0),0===t.strm.avail_out?So:Co):t.last_lit&&(Lo(t,!1),0===t.strm.avail_out)?yo:Ao}(i,e):i.strategy===Qa?function(t,e){for(var n,i,r,a,o=t.window;;){if(t.lookahead<=uo){if(Oo(t),t.lookahead<=uo&&e===ja)return yo;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=lo&&t.strstart>0&&(i=o[r=t.strstart-1])===o[++r]&&i===o[++r]&&i===o[++r]){a=t.strstart+uo;do{}while(i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&r<a);t.match_length=uo-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=lo?(n=Ba(t,1,t.match_length-lo),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Ba(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(Lo(t,!1),0===t.strm.avail_out))return yo}return t.insert=0,e===Wa?(Lo(t,!0),0===t.strm.avail_out?So:Co):t.last_lit&&(Lo(t,!1),0===t.strm.avail_out)?yo:Ao}(i,e):$a[i.level].func(i,e);if(s!==So&&s!==Co||(i.status=bo),s===yo||s===So)return 0===t.avail_out&&(i.last_flush=-1),Va;if(s===Ao&&(e===Na?Ma(i):e!==Ha&&(Ta(i,0,0,!1),e===Fa&&(Do(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),Io(t),0===t.avail_out))return i.last_flush=-1,Va}return e!==Wa?Va:i.wrap<=0?Za:(2===i.wrap?(Ro(i,255&t.adler),Ro(i,t.adler>>8&255),Ro(i,t.adler>>16&255),Ro(i,t.adler>>24&255),Ro(i,255&t.total_in),Ro(i,t.total_in>>8&255),Ro(i,t.total_in>>16&255),Ro(i,t.total_in>>24&255)):(To(i,t.adler>>>16),To(i,65535&t.adler)),Io(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?Va:Za)}$a=[new Po(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Oo(t),0===t.lookahead&&e===ja)return yo;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,Lo(t,!1),0===t.strm.avail_out))return yo;if(t.strstart-t.block_start>=t.w_size-ho&&(Lo(t,!1),0===t.strm.avail_out))return yo}return t.insert=0,e===Wa?(Lo(t,!0),0===t.strm.avail_out?So:Co):(t.strstart>t.block_start&&(Lo(t,!1),t.strm.avail_out),yo)})),new Po(4,4,8,4,Bo),new Po(4,5,16,8,Bo),new Po(4,6,32,32,Bo),new Po(4,4,16,16,Uo),new Po(8,16,32,32,Uo),new Po(8,16,128,128,Uo),new Po(8,32,128,256,Uo),new Po(32,128,258,1024,Uo),new Po(32,258,258,4096,Uo)];var No=30,Fo=12;function Wo(t,e){var n,i,r,a,o,s,c,l,u,h,d,f,p,g,m,v,_,w,b,y,A,S,C,k,x;n=t.state,i=t.next_in,k=t.input,r=i+(t.avail_in-5),a=t.next_out,x=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;t:do{p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),w=g[f&v];e:for(;;){if(f>>>=b=w>>>24,p-=b,0===(b=w>>>16&255))x[a++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=g[(65535&w)+(f&(1<<b)-1)];continue e}if(32&b){n.mode=Fo;break t}t.msg="invalid literal/length code",n.mode=No;break t}y=65535&w,(b&=15)&&(p<b&&(f+=k[i++]<<p,p+=8),y+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),w=m[f&_];n:for(;;){if(f>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=m[(65535&w)+(f&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=No;break t}if(A=65535&w,p<(b&=15)&&(f+=k[i++]<<p,(p+=8)<b&&(f+=k[i++]<<p,p+=8)),(A+=f&(1<<b)-1)>c){t.msg="invalid distance too far back",n.mode=No;break t}if(f>>>=b,p-=b,A>(b=a-o)){if((b=A-b)>u&&n.sane){t.msg="invalid distance too far back",n.mode=No;break t}if(S=0,C=d,0===h){if(S+=l-b,b<y){y-=b;do{x[a++]=d[S++]}while(--b);S=a-A,C=x}}else if(h<b){if(S+=l+h-b,(b-=h)<y){y-=b;do{x[a++]=d[S++]}while(--b);if(S=0,h<y){y-=b=h;do{x[a++]=d[S++]}while(--b);S=a-A,C=x}}}else if(S+=h-b,b<y){y-=b;do{x[a++]=d[S++]}while(--b);S=a-A,C=x}for(;y>2;)x[a++]=C[S++],x[a++]=C[S++],x[a++]=C[S++],y-=3;y&&(x[a++]=C[S++],y>1&&(x[a++]=C[S++]))}else{S=a-A;do{x[a++]=x[S++],x[a++]=x[S++],x[a++]=x[S++],y-=3}while(y>2);y&&(x[a++]=x[S++],y>1&&(x[a++]=x[S++]))}break}}break}}while(i<r&&a<s);i-=y=p>>3,f&=(1<<(p-=y<<3))-1,t.next_in=i,t.next_out=a,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}var Ho=15,Vo=852,Zo=592,Go=0,Jo=1,Ko=2,Yo=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],qo=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Xo=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Qo=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function ts(t,e,n,i,r,a,o,s){var c,l,u,h,d,f,p,g,m,v=s.bits,_=0,w=0,b=0,y=0,A=0,S=0,C=0,k=0,x=0,E=0,D=null,I=0,L=new Tr(Ho+1),R=new Tr(Ho+1),T=null,M=0;for(_=0;_<=Ho;_++)L[_]=0;for(w=0;w<i;w++)L[e[n+w]]++;for(A=v,y=Ho;y>=1&&0===L[y];y--);if(A>y&&(A=y),0===y)return r[a++]=20971520,r[a++]=20971520,s.bits=1,0;for(b=1;b<y&&0===L[b];b++);for(A<b&&(A=b),k=1,_=1;_<=Ho;_++)if(k<<=1,(k-=L[_])<0)return-1;if(k>0&&(t===Go||1!==y))return-1;for(R[1]=0,_=1;_<Ho;_++)R[_+1]=R[_]+L[_];for(w=0;w<i;w++)0!==e[n+w]&&(o[R[e[n+w]]++]=w);if(t===Go?(D=T=o,f=19):t===Jo?(D=Yo,I-=257,T=qo,M-=257,f=256):(D=Xo,T=Qo,f=-1),E=0,w=0,_=b,d=a,S=A,C=0,u=-1,h=(x=1<<A)-1,t===Jo&&x>Vo||t===Ko&&x>Zo)return 1;for(;;){p=_-C,o[w]<f?(g=0,m=o[w]):o[w]>f?(g=T[M+o[w]],m=D[I+o[w]]):(g=96,m=0),c=1<<_-C,b=l=1<<S;do{r[d+(E>>C)+(l-=c)]=p<<24|g<<16|m|0}while(0!==l);for(c=1<<_-1;E&c;)c>>=1;if(0!==c?(E&=c-1,E+=c):E=0,w++,0==--L[_]){if(_===y)break;_=e[n+o[w]]}if(_>A&&(E&h)!==u){for(0===C&&(C=A),d+=b,k=1<<(S=_-C);S+C<y&&!((k-=L[S+C])<=0);)S++,k<<=1;if(x+=1<<S,t===Jo&&x>Vo||t===Ko&&x>Zo)return 1;r[u=E&h]=A<<24|S<<16|d-a|0}}return 0!==E&&(r[d+E]=_-C<<24|64<<16|0),s.bits=A,0}var es=0,ns=1,is=2,rs=4,as=5,os=6,ss=0,cs=1,ls=2,us=-2,hs=-3,ds=-4,fs=-5,ps=8,gs=1,ms=2,vs=3,_s=4,ws=5,bs=6,ys=7,As=8,Ss=9,Cs=10,ks=11,xs=12,Es=13,Ds=14,Is=15,Ls=16,Rs=17,Ts=18,Ms=19,Os=20,Bs=21,Us=22,Ps=23,zs=24,$s=25,js=26,Ns=27,Fs=28,Ws=29,Hs=30,Vs=31,Zs=32,Gs=852,Js=592;function Ks(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Ys(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Tr(320),this.work=new Tr(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qs(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=gs,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Mr(Gs),e.distcode=e.distdyn=new Mr(Js),e.sane=1,e.back=-1,ss):us}(t)):us}function Xs(t,e){var n,i;return t?(i=new Ys,t.state=i,i.window=null,(n=function(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?us:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,qs(t))):us}(t,e))!==ss&&(t.state=null),n):us}var Qs,tc,ec=!0;function nc(t){if(ec){var e;for(Qs=new Mr(512),tc=new Mr(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ts(ns,t.lens,0,288,Qs,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ts(is,t.lens,0,32,tc,0,t.work,{bits:5}),ec=!1}t.lencode=Qs,t.lenbits=9,t.distcode=tc,t.distbits=5}function ic(t,e){var n,i,r,a,o,s,c,l,u,h,d,f,p,g,m,v,_,w,b,y,A,S,C,k,x=0,E=new Rr(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return us;(n=t.state).mode===xs&&(n.mode=Es),o=t.next_out,r=t.output,c=t.avail_out,a=t.next_in,i=t.input,s=t.avail_in,l=n.hold,u=n.bits,h=s,d=c,S=ss;t:for(;;)switch(n.mode){case gs:if(0===n.wrap){n.mode=Es;break}for(;u<16;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(2&n.wrap&&35615===l){n.check=0,E[0]=255&l,E[1]=l>>>8&255,n.check=za(n.check,E,2,0),l=0,u=0,n.mode=ms;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",n.mode=Hs;break}if((15&l)!==ps){t.msg="unknown compression method",n.mode=Hs;break}if(u-=4,A=8+(15&(l>>>=4)),0===n.wbits)n.wbits=A;else if(A>n.wbits){t.msg="invalid window size",n.mode=Hs;break}n.dmax=1<<A,t.adler=n.check=1,n.mode=512&l?Cs:xs,l=0,u=0;break;case ms:for(;u<16;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(n.flags=l,(255&n.flags)!==ps){t.msg="unknown compression method",n.mode=Hs;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=Hs;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=za(n.check,E,2,0)),l=0,u=0,n.mode=vs;case vs:for(;u<32;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}n.head&&(n.head.time=l),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,n.check=za(n.check,E,4,0)),l=0,u=0,n.mode=_s;case _s:for(;u<16;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=za(n.check,E,2,0)),l=0,u=0,n.mode=ws;case ws:if(1024&n.flags){for(;u<16;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=za(n.check,E,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=bs;case bs:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Lr(n.head.extra,i,a,f,A)),512&n.flags&&(n.check=za(n.check,i,f,a)),s-=f,a+=f,n.length-=f),n.length))break t;n.length=0,n.mode=ys;case ys:if(2048&n.flags){if(0===s)break t;f=0;do{A=i[a+f++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A))}while(A&&f<s);if(512&n.flags&&(n.check=za(n.check,i,f,a)),s-=f,a+=f,A)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=As;case As:if(4096&n.flags){if(0===s)break t;f=0;do{A=i[a+f++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A))}while(A&&f<s);if(512&n.flags&&(n.check=za(n.check,i,f,a)),s-=f,a+=f,A)break t}else n.head&&(n.head.comment=null);n.mode=Ss;case Ss:if(512&n.flags){for(;u<16;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(l!==(65535&n.check)){t.msg="header crc mismatch",n.mode=Hs;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=xs;break;case Cs:for(;u<32;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}t.adler=n.check=Ks(l),l=0,u=0,n.mode=ks;case ks:if(0===n.havedict)return t.next_out=o,t.avail_out=c,t.next_in=a,t.avail_in=s,n.hold=l,n.bits=u,ls;t.adler=n.check=1,n.mode=xs;case xs:if(e===as||e===os)break t;case Es:if(n.last){l>>>=7&u,u-=7&u,n.mode=Ns;break}for(;u<3;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}switch(n.last=1&l,u-=1,3&(l>>>=1)){case 0:n.mode=Ds;break;case 1:if(nc(n),n.mode=Os,e===os){l>>>=2,u-=2;break t}break;case 2:n.mode=Rs;break;case 3:t.msg="invalid block type",n.mode=Hs}l>>>=2,u-=2;break;case Ds:for(l>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Hs;break}if(n.length=65535&l,l=0,u=0,n.mode=Is,e===os)break t;case Is:n.mode=Ls;case Ls:if(f=n.length){if(f>s&&(f=s),f>c&&(f=c),0===f)break t;Lr(r,i,a,f,o),s-=f,a+=f,c-=f,o+=f,n.length-=f;break}n.mode=xs;break;case Rs:for(;u<14;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(n.nlen=257+(31&l),l>>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Hs;break}n.have=0,n.mode=Ts;case Ts:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}n.lens[D[n.have++]]=7&l,l>>>=3,u-=3}for(;n.have<19;)n.lens[D[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},S=ts(es,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,S){t.msg="invalid code lengths set",n.mode=Hs;break}n.have=0,n.mode=Ms;case Ms:for(;n.have<n.nlen+n.ndist;){for(;v=(x=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,_=65535&x,!((m=x>>>24)<=u);){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(_<16)l>>>=m,u-=m,n.lens[n.have++]=_;else{if(16===_){for(k=m+2;u<k;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(l>>>=m,u-=m,0===n.have){t.msg="invalid bit length repeat",n.mode=Hs;break}A=n.lens[n.have-1],f=3+(3&l),l>>>=2,u-=2}else if(17===_){for(k=m+3;u<k;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}u-=m,A=0,f=3+(7&(l>>>=m)),l>>>=3,u-=3}else{for(k=m+7;u<k;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}u-=m,A=0,f=11+(127&(l>>>=m)),l>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Hs;break}for(;f--;)n.lens[n.have++]=A}}if(n.mode===Hs)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Hs;break}if(n.lenbits=9,C={bits:n.lenbits},S=ts(ns,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,S){t.msg="invalid literal/lengths set",n.mode=Hs;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},S=ts(is,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,S){t.msg="invalid distances set",n.mode=Hs;break}if(n.mode=Os,e===os)break t;case Os:n.mode=Bs;case Bs:if(s>=6&&c>=258){t.next_out=o,t.avail_out=c,t.next_in=a,t.avail_in=s,n.hold=l,n.bits=u,Wo(t,d),o=t.next_out,r=t.output,c=t.avail_out,a=t.next_in,i=t.input,s=t.avail_in,l=n.hold,u=n.bits,n.mode===xs&&(n.back=-1);break}for(n.back=0;v=(x=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,_=65535&x,!((m=x>>>24)<=u);){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(v&&0==(240&v)){for(w=m,b=v,y=_;v=(x=n.lencode[y+((l&(1<<w+b)-1)>>w)])>>>16&255,_=65535&x,!(w+(m=x>>>24)<=u);){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}l>>>=w,u-=w,n.back+=w}if(l>>>=m,u-=m,n.back+=m,n.length=_,0===v){n.mode=js;break}if(32&v){n.back=-1,n.mode=xs;break}if(64&v){t.msg="invalid literal/length code",n.mode=Hs;break}n.extra=15&v,n.mode=Us;case Us:if(n.extra){for(k=n.extra;u<k;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Ps;case Ps:for(;v=(x=n.distcode[l&(1<<n.distbits)-1])>>>16&255,_=65535&x,!((m=x>>>24)<=u);){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(0==(240&v)){for(w=m,b=v,y=_;v=(x=n.distcode[y+((l&(1<<w+b)-1)>>w)])>>>16&255,_=65535&x,!(w+(m=x>>>24)<=u);){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}l>>>=w,u-=w,n.back+=w}if(l>>>=m,u-=m,n.back+=m,64&v){t.msg="invalid distance code",n.mode=Hs;break}n.offset=_,n.extra=15&v,n.mode=zs;case zs:if(n.extra){for(k=n.extra;u<k;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Hs;break}n.mode=$s;case $s:if(0===c)break t;if(f=d-c,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Hs;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=r,p=o-n.offset,f=n.length;f>c&&(f=c),c-=f,n.length-=f;do{r[o++]=g[p++]}while(--f);0===n.length&&(n.mode=Bs);break;case js:if(0===c)break t;r[o++]=n.length,c--,n.mode=Bs;break;case Ns:if(n.wrap){for(;u<32;){if(0===s)break t;s--,l|=i[a++]<<u,u+=8}if(d-=c,t.total_out+=d,n.total+=d,d&&(t.adler=n.check=n.flags?za(n.check,r,d,o-d):Ua(n.check,r,d,o-d)),d=c,(n.flags?l:Ks(l))!==n.check){t.msg="incorrect data check",n.mode=Hs;break}l=0,u=0}n.mode=Fs;case Fs:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break t;s--,l+=i[a++]<<u,u+=8}if(l!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=Hs;break}l=0,u=0}n.mode=Ws;case Ws:S=cs;break t;case Hs:S=hs;break t;case Vs:return ds;case Zs:default:return us}return t.next_out=o,t.avail_out=c,t.next_in=a,t.avail_in=s,n.hold=l,n.bits=u,(n.wsize||d!==t.avail_out&&n.mode<Hs&&(n.mode<Ns||e!==rs))&&function(t,e,n,i){var r,a=t.state;null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Rr(a.wsize)),i>=a.wsize?(Lr(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((r=a.wsize-a.wnext)>i&&(r=i),Lr(a.window,e,n-i,r,a.wnext),(i-=r)?(Lr(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r)))}(t,t.output,t.next_out,d-t.avail_out),h-=t.avail_in,d-=t.avail_out,t.total_in+=h,t.total_out+=d,n.total+=d,n.wrap&&d&&(t.adler=n.check=n.flags?za(n.check,r,d,t.next_out-d):Ua(n.check,r,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===xs?128:0)+(n.mode===Os||n.mode===Is?256:0),(0===h&&0===d||e===rs)&&S===ss&&(S=fs),S}var rc,ac=1,oc=7;function sc(t){if(t<ac||t>oc)throw new TypeError("Bad argument");this.mode=t,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function cc(t,e){for(var n=0;n<t.length;n++)this[e+n]=t[n]}sc.prototype.init=function(t,e,n,i,r){var a;switch(this.windowBits=t,this.level=e,this.memLevel=n,this.strategy=i,3!==this.mode&&4!==this.mode||(this.windowBits+=16),this.mode===oc&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Ir,this.mode){case ac:case 3:case 5:a=function(t,e,n,i,r,a){if(!t)return Ga;var o=1;if(e===Ya&&(e=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),r<1||r>io||n!==no||i<8||i>15||e<0||e>9||a<0||a>to)return xo(t,Ga);8===i&&(i=9);var s=new zo;return t.state=s,s.strm=t,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+lo-1)/lo),s.window=new Rr(2*s.w_size),s.head=new Tr(s.hash_size),s.prev=new Tr(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Rr(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=n,$o(t)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case oc:a=Xs(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===a?(this.write_in_progress=!1,this.init_done=!0):this._error(a)},sc.prototype.params=function(){throw new Error("deflateParams Not supported")},sc.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},sc.prototype.write=function(t,e,n,i,r,a,o){this._writeCheck(),this.write_in_progress=!0;var s=this;return ti((function(){s.write_in_progress=!1;var c=s._write(t,e,n,i,r,a,o);s.callback(c[0],c[1]),s.pending_close&&s.close()})),this},sc.prototype.writeSync=function(t,e,n,i,r,a,o){return this._writeCheck(),this._write(t,e,n,i,r,a,o)},sc.prototype._write=function(t,e,n,i,r,a,o){if(this.write_in_progress=!0,0!==t&&1!==t&&2!==t&&3!==t&&4!==t&&5!==t)throw new Error("Invalid flush value");null==e&&(e=new m(0),i=0,n=0),r._set?r.set=r._set:r.set=cc;var s,c=this.strm;switch(c.avail_in=i,c.input=e,c.next_in=n,c.avail_out=o,c.output=r,c.next_out=a,this.mode){case ac:case 3:case 5:s=jo(c,t);break;case oc:case 2:case 4:case 6:s=ic(c,t);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[c.avail_in,c.avail_out]},sc.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===ac||3===this.mode||5===this.mode?function(t){var e;t&&t.state&&((e=t.state.status)!==po&&e!==go&&e!==mo&&e!==vo&&e!==_o&&e!==wo&&e!==bo?xo(t,Ga):(t.state=null,e===wo&&xo(t,Ja)))}(this.strm):function(t){if(!t||!t.state)return us;var e=t.state;e.window&&(e.window=null),t.state=null}(this.strm),this.mode=0)},sc.prototype.reset=function(){switch(this.mode){case ac:case 5:rc=$o(this.strm);break;case 2:case 6:rc=qs(this.strm)}0!==rc&&this._error(rc)},sc.prototype._error=function(t){this.onerror(Dr[t]+": "+this.strm.msg,t),this.write_in_progress=!1,this.pending_close&&this.close()};var lc=Object.freeze({NONE:0,DEFLATE:ac,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:oc,Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8,Zlib:sc}),uc={};Object.keys(lc).forEach((function(t){uc[t]=lc[t]})),uc.Z_MIN_WINDOWBITS=8,uc.Z_MAX_WINDOWBITS=15,uc.Z_DEFAULT_WINDOWBITS=15,uc.Z_MIN_CHUNK=64,uc.Z_MAX_CHUNK=1/0,uc.Z_DEFAULT_CHUNK=16384,uc.Z_MIN_MEMLEVEL=1,uc.Z_MAX_MEMLEVEL=9,uc.Z_DEFAULT_MEMLEVEL=8,uc.Z_MIN_LEVEL=-1,uc.Z_MAX_LEVEL=9,uc.Z_DEFAULT_LEVEL=uc.Z_DEFAULT_COMPRESSION;var hc={Z_OK:uc.Z_OK,Z_STREAM_END:uc.Z_STREAM_END,Z_NEED_DICT:uc.Z_NEED_DICT,Z_ERRNO:uc.Z_ERRNO,Z_STREAM_ERROR:uc.Z_STREAM_ERROR,Z_DATA_ERROR:uc.Z_DATA_ERROR,Z_MEM_ERROR:uc.Z_MEM_ERROR,Z_BUF_ERROR:uc.Z_BUF_ERROR,Z_VERSION_ERROR:uc.Z_VERSION_ERROR};function dc(t,e,n){var i=[],r=0;function a(){for(var e;null!==(e=t.read());)i.push(e),r+=e.length;t.once("readable",a)}function o(){var e=m.concat(i,r);i=[],n(null,e),t.close()}t.on("error",(function(e){t.removeListener("end",o),t.removeListener("readable",a),n(e)})),t.on("end",o),t.end(e),a()}function fc(t,e){if("string"==typeof e&&(e=new m(e)),!Q(e))throw new TypeError("Not a string or buffer");var n=uc.Z_FINISH;return t._processChunk(e,n)}function pc(t){if(!(this instanceof pc))return new pc(t);yc.call(this,t,uc.DEFLATE)}function gc(t){if(!(this instanceof gc))return new gc(t);yc.call(this,t,uc.INFLATE)}function mc(t){if(!(this instanceof mc))return new mc(t);yc.call(this,t,uc.GZIP)}function vc(t){if(!(this instanceof vc))return new vc(t);yc.call(this,t,uc.GUNZIP)}function _c(t){if(!(this instanceof _c))return new _c(t);yc.call(this,t,uc.DEFLATERAW)}function wc(t){if(!(this instanceof wc))return new wc(t);yc.call(this,t,uc.INFLATERAW)}function bc(t){if(!(this instanceof bc))return new bc(t);yc.call(this,t,uc.UNZIP)}function yc(t,e){if(this._opts=t=t||{},this._chunkSize=t.chunkSize||uc.Z_DEFAULT_CHUNK,Cr.call(this,t),t.flush&&t.flush!==uc.Z_NO_FLUSH&&t.flush!==uc.Z_PARTIAL_FLUSH&&t.flush!==uc.Z_SYNC_FLUSH&&t.flush!==uc.Z_FULL_FLUSH&&t.flush!==uc.Z_FINISH&&t.flush!==uc.Z_BLOCK)throw new Error("Invalid flush flag: "+t.flush);if(this._flushFlag=t.flush||uc.Z_NO_FLUSH,t.chunkSize&&(t.chunkSize<uc.Z_MIN_CHUNK||t.chunkSize>uc.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<uc.Z_MIN_WINDOWBITS||t.windowBits>uc.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<uc.Z_MIN_LEVEL||t.level>uc.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<uc.Z_MIN_MEMLEVEL||t.memLevel>uc.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=uc.Z_FILTERED&&t.strategy!=uc.Z_HUFFMAN_ONLY&&t.strategy!=uc.Z_RLE&&t.strategy!=uc.Z_FIXED&&t.strategy!=uc.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!Q(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new uc.Zlib(e);var n=this;this._hadError=!1,this._binding.onerror=function(t,e){n._binding=null,n._hadError=!0;var i=new Error(t);i.errno=e,i.code=uc.codes[e],n.emit("error",i)};var i=uc.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(i=t.level);var r=uc.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(r=t.strategy),this._binding.init(t.windowBits||uc.Z_DEFAULT_WINDOWBITS,i,t.memLevel||uc.Z_DEFAULT_MEMLEVEL,r,t.dictionary),this._buffer=new m(this._chunkSize),this._offset=0,this._closed=!1,this._level=i,this._strategy=r,this.once("end",this.close)}Object.keys(hc).forEach((function(t){hc[hc[t]]=t})),gi(yc,Cr),yc.prototype.params=function(t,e,n){if(t<uc.Z_MIN_LEVEL||t>uc.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(e!=uc.Z_FILTERED&&e!=uc.Z_HUFFMAN_ONLY&&e!=uc.Z_RLE&&e!=uc.Z_FIXED&&e!=uc.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==t||this._strategy!==e){var i=this;this.flush(uc.Z_SYNC_FLUSH,(function(){i._binding.params(t,e),i._hadError||(i._level=t,i._strategy=e,n&&n())}))}else ti(n)},yc.prototype.reset=function(){return this._binding.reset()},yc.prototype._flush=function(t){this._transform(new m(0),"",t)},yc.prototype.flush=function(t,e){var n=this._writableState;if(("function"==typeof t||void 0===t&&!e)&&(e=t,t=uc.Z_FULL_FLUSH),n.ended)e&&ti(e);else if(n.ending)e&&this.once("end",e);else if(n.needDrain){var i=this;this.once("drain",(function(){i.flush(e)}))}else this._flushFlag=t,this.write(new m(0),"",e)},yc.prototype.close=function(t){if(t&&ti(t),!this._closed){this._closed=!0,this._binding.close();var e=this;ti((function(){e.emit("close")}))}},yc.prototype._transform=function(t,e,n){var i,r=this._writableState,a=(r.ending||r.ended)&&(!t||r.length===t.length);if(null===!t&&!Q(t))return n(new Error("invalid input"));a?i=uc.Z_FINISH:(i=this._flushFlag,t.length>=r.length&&(this._flushFlag=this._opts.flush||uc.Z_NO_FLUSH)),this._processChunk(t,i,n)},yc.prototype._processChunk=function(t,e,n){var i=t&&t.length,r=this._chunkSize-this._offset,a=0,o=this,s="function"==typeof n;if(!s){var c,l=[],u=0;this.on("error",(function(t){c=t}));do{var h=this._binding.writeSync(e,t,a,i,this._buffer,this._offset,r)}while(!this._hadError&&p(h[0],h[1]));if(this._hadError)throw c;var d=m.concat(l,u);return this.close(),d}var f=this._binding.write(e,t,a,i,this._buffer,this._offset,r);function p(c,h){if(!o._hadError){var d=r-h;if(function(t,e){if(!t)throw new Error(e)}(d>=0,"have should not go down"),d>0){var f=o._buffer.slice(o._offset,o._offset+d);o._offset+=d,s?o.push(f):(l.push(f),u+=f.length)}if((0===h||o._offset>=o._chunkSize)&&(r=o._chunkSize,o._offset=0,o._buffer=new m(o._chunkSize)),0===h){if(a+=i-c,i=c,!s)return!0;var g=o._binding.write(e,t,a,i,o._buffer,o._offset,o._chunkSize);return g.callback=p,void(g.buffer=t)}if(!s)return!1;n()}}f.buffer=t,f.callback=p},gi(pc,yc),gi(gc,yc),gi(mc,yc),gi(vc,yc),gi(_c,yc),gi(wc,yc),gi(bc,yc);var Ac={codes:hc,createDeflate:function(t){return new pc(t)},createInflate:function(t){return new gc(t)},createDeflateRaw:function(t){return new _c(t)},createInflateRaw:function(t){return new wc(t)},createGzip:function(t){return new mc(t)},createGunzip:function(t){return new vc(t)},createUnzip:function(t){return new bc(t)},deflate:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new pc(e),t,n)},deflateSync:function(t,e){return fc(new pc(e),t)},gzip:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new mc(e),t,n)},gzipSync:function(t,e){return fc(new mc(e),t)},deflateRaw:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new _c(e),t,n)},deflateRawSync:function(t,e){return fc(new _c(e),t)},unzip:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new bc(e),t,n)},unzipSync:function(t,e){return fc(new bc(e),t)},inflate:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new gc(e),t,n)},inflateSync:function(t,e){return fc(new gc(e),t)},gunzip:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new vc(e),t,n)},gunzipSync:function(t,e){return fc(new vc(e),t)},inflateRaw:function(t,e,n){return"function"==typeof e&&(n=e,e={}),dc(new wc(e),t,n)},inflateRawSync:function(t,e){return fc(new wc(e),t)},Deflate:pc,Inflate:gc,Gzip:mc,Gunzip:vc,DeflateRaw:_c,InflateRaw:wc,Unzip:bc,Zlib:yc};return function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.SDKAPPID=e,this.EXPIRETIME=i,this.PRIVATEKEY=n}var e,n,i;return e=t,(n=[{key:"genTestUserSig",value:function(t){return this._isNumber(this.SDKAPPID)?this._isString(this.PRIVATEKEY)?this._isString(t)?this._isNumber(this.EXPIRETIME)?(console.log("sdkAppID="+this.SDKAPPID+" key="+this.PRIVATEKEY+" userID="+t+" expire="+this.EXPIRETIME),this.genSigWithUserbuf(t,this.EXPIRETIME,null)):(console.error("expireTime must be a number"),""):(console.error("userID must be a string"),""):(console.error("privateKey must be a string"),""):(console.error("sdkAppID must be a number"),"")}},{key:"newBuffer",value:function(t,e){return m.from?m.from(t,e):new m(t,e)}},{key:"unescape",value:function(t){return t.replace(/_/g,"=").replace(/\-/g,"/").replace(/\*/g,"+")}},{key:"escape",value:function(t){return t.replace(/\+/g,"*").replace(/\//g,"-").replace(/=/g,"_")}},{key:"encode",value:function(t){return this.escape(this.newBuffer(t).toString("base64"))}},{key:"decode",value:function(t){return this.newBuffer(this.unescape(t),"base64")}},{key:"base64encode",value:function(t){return this.newBuffer(t).toString("base64")}},{key:"base64decode",value:function(t){return this.newBuffer(t,"base64").toString()}},{key:"_hmacsha256",value:function(t,e,n,i){var r="TLS.identifier:"+t+"\n";r+="TLS.sdkappid:"+this.SDKAPPID+"\n",r+="TLS.time:"+e+"\n",r+="TLS.expire:"+n+"\n",null!=i&&(r+="TLS.userbuf:"+i+"\n");var a=Fn.HmacSHA256(r,this.PRIVATEKEY);return Fn.enc.Base64.stringify(a)}},{key:"_utc",value:function(){return Math.round(Date.now()/1e3)}},{key:"_isNumber",value:function(t){return null!==t&&("number"==typeof t&&!isNaN(t-0)||"object"===$n(t)&&t.constructor===Number)}},{key:"_isString",value:function(t){return"string"==typeof t}},{key:"genSigWithUserbuf",value:function(t,e,n){var i=this._utc(),r={"TLS.ver":"2.0","TLS.identifier":t,"TLS.sdkappid":this.SDKAPPID,"TLS.time":i,"TLS.expire":e},a="";if(null!=n){var o=this.base64encode(n);r["TLS.userbuf"]=o,a=this._hmacsha256(t,i,e,o)}else a=this._hmacsha256(t,i,e,null);r["TLS.sig"]=a;var s=JSON.stringify(r),c=Ac.deflateSync(this.newBuffer(s)).toString("base64"),l=this.escape(c);return console.log("ret="+l),l}},{key:"validate",value:function(t){var e=this.decode(t),n=Ac.inflateSync(e);console.log("validate ret="+n)}}])&&jn(e.prototype,n),i&&jn(e,i),t}()}))}).call(this,n("c8ba"))},bb61:function(t,e,n){"use strict";n("44db")},bd11:function(t,e,n){"use strict";n("f9d7")},bfa2:function(t,e,n){"use strict";n("b796")},c571:function(t,e,n){"use strict";n("10be")},c5bc:function(t,e,n){"use strict";n("82b2")},c86f:function(t,e,n){},ce4d:function(t,e,n){},ceb9:function(t,e,n){},d330:function(t,e,n){"use strict";n("6471")},d43c:function(t,e,n){"use strict";n("a116")},d46b:function(t,e,n){"use strict";n("9470")},d609:function(t,e,n){},d64c:function(t,e,n){},d7a7:function(t,e,n){},d996:function(t,e,n){"use strict";n("a511")},df65:function(t,e,n){"use strict";n("2611")},ea4a:function(t,e,n){},eabd:function(t,e,n){},eb35:function(t,e,n){},f7e6:function(t,e,n){},f9d7:function(t,e,n){},fa8f:function(t,e,n){"use strict";n("60b5")}});
//# sourceMappingURL=app.208b7c3a.js.map