(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"01cc":function(t,e,r){"use strict";r.r(e);var n=r("97ac"),i=r("9d4d");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"413ed25e",null,!1,n["a"],s);e["default"]=c.exports},"0477":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={pulldown:"\ue588",refreshempty:"\ue461",back:"\ue471",forward:"\ue470",more:"\ue507","more-filled":"\ue537",scan:"\ue612",qq:"\ue264",weibo:"\ue260",weixin:"\ue261",pengyouquan:"\ue262",loop:"\ue565",refresh:"\ue407","refresh-filled":"\ue437",arrowthindown:"\ue585",arrowthinleft:"\ue586",arrowthinright:"\ue587",arrowthinup:"\ue584","undo-filled":"\ue7d6",undo:"\ue406",redo:"\ue405","redo-filled":"\ue7d9",bars:"\ue563",chatboxes:"\ue203",camera:"\ue301","chatboxes-filled":"\ue233","camera-filled":"\ue7ef","cart-filled":"\ue7f4",cart:"\ue7f5","checkbox-filled":"\ue442",checkbox:"\ue7fa",arrowleft:"\ue582",arrowdown:"\ue581",arrowright:"\ue583","smallcircle-filled":"\ue801",arrowup:"\ue580",circle:"\ue411","eye-filled":"\ue568","eye-slash-filled":"\ue822","eye-slash":"\ue823",eye:"\ue824","flag-filled":"\ue825",flag:"\ue508","gear-filled":"\ue532",reload:"\ue462",gear:"\ue502","hand-thumbsdown-filled":"\ue83b","hand-thumbsdown":"\ue83c","hand-thumbsup-filled":"\ue83d","heart-filled":"\ue83e","hand-thumbsup":"\ue83f",heart:"\ue840",home:"\ue500",info:"\ue504","home-filled":"\ue530","info-filled":"\ue534","circle-filled":"\ue441","chat-filled":"\ue847",chat:"\ue263","mail-open-filled":"\ue84d","email-filled":"\ue231","mail-open":"\ue84e",email:"\ue201",checkmarkempty:"\ue472",list:"\ue562","locked-filled":"\ue856",locked:"\ue506","map-filled":"\ue85c","map-pin":"\ue85e","map-pin-ellipse":"\ue864",map:"\ue364","minus-filled":"\ue440","mic-filled":"\ue332",minus:"\ue410",micoff:"\ue360",mic:"\ue302",clear:"\ue434",smallcircle:"\ue868",close:"\ue404",closeempty:"\ue460",paperclip:"\ue567",paperplane:"\ue503","paperplane-filled":"\ue86e","person-filled":"\ue131","contact-filled":"\ue130",person:"\ue101",contact:"\ue100","images-filled":"\ue87a",phone:"\ue200",images:"\ue87b",image:"\ue363","image-filled":"\ue877","location-filled":"\ue333",location:"\ue303","plus-filled":"\ue439",plus:"\ue409",plusempty:"\ue468","help-filled":"\ue535",help:"\ue505","navigate-filled":"\ue884",navigate:"\ue501","mic-slash-filled":"\ue892",search:"\ue466",settings:"\ue560",sound:"\ue590","sound-filled":"\ue8a1","spinner-cycle":"\ue465","download-filled":"\ue8a4","personadd-filled":"\ue132","videocam-filled":"\ue8af",personadd:"\ue102",upload:"\ue402","upload-filled":"\ue8b1",starhalf:"\ue463","star-filled":"\ue438",star:"\ue408",trash:"\ue401","phone-filled":"\ue230",compose:"\ue400",videocam:"\ue300","trash-filled":"\ue8dc",download:"\ue403","chatbubble-filled":"\ue232",chatbubble:"\ue202","cloud-download":"\ue8e4","cloud-upload-filled":"\ue8e5","cloud-upload":"\ue8e6","cloud-download-filled":"\ue8e9",headphones:"\ue8bf",shop:"\ue609"};e.default=n},"066e":function(t,e,r){"use strict";r.r(e);var n=r("99e2"),i=r("8169");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"55418c22",null,!1,n["a"],s);e["default"]=c.exports},"0dd7":function(t,e,r){"use strict";r.r(e);var n=r("5553"),i=r("c245");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);e["default"]=c.exports},"0de9":function(t,e,r){"use strict";function n(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"===typeof __channelId__&&__channelId__}function o(t,e){switch(n(e)){case"Function":return"function() { [native code] }";default:return e}}function s(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1){var u=a.pop();c=a.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=a[0];console[s](c)}r.r(e),r.d(e,"log",(function(){return s})),r.d(e,"default",(function(){return a}))},"0ec2":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uniNavBar:r("4f7a").default,uniSearchBar:r("5996").default,uniIcons:r("066e").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","container"),attrs:{_i:0}},[n("uni-nav-bar",{staticClass:t._$s(1,"sc","header-bar"),attrs:{leftText:"\u9996\u9875",rightIcon:"gear",fixed:"true",statusBar:"true",_i:1},on:{clickLeft:t.goFrontPage,clickRight:t.goToSetting}},[n("view",[n("uni-search-bar",{attrs:{cancelButton:"none",placeholder:"\u573a\u666f\u540d\u79f0 \u6444\u50cf\u673a\u5730\u5740",_i:3},on:{confirm:t.toSearch,clear:t.clearInput,input:t.inputMethod},model:{value:t._$s(3,"v-model",t.searchVal),callback:function(e){t.searchVal=e},expression:"searchVal"}})],1)]),n("view",{staticClass:t._$s(4,"sc","intro"),attrs:{_i:4}},[n("view",{staticClass:t._$s(5,"sc","top"),attrs:{_i:5}},[n("view",{staticClass:t._$s(6,"sc","banner"),attrs:{_i:6}},[n("view",{staticClass:t._$s(7,"sc","banner-img"),attrs:{_i:7}},[n("image",{attrs:{src:t._$s(8,"a-src",r("5ccf")),_i:8}})]),n("view",[n("view",{staticClass:t._$s(10,"sc","title"),attrs:{_i:10}}),n("view",{staticClass:t._$s(11,"sc","desc"),attrs:{_i:11}})])]),n("view",{staticClass:t._$s(12,"sc","top-title"),attrs:{_i:12}},[n("view",{staticClass:t._$s(13,"sc","t"),attrs:{_i:13}}),n("button",{staticClass:t._$s(14,"sc","select-channel-btn"),attrs:{_i:14},on:{click:t.showAllChannel}},[n("uni-icons",{staticClass:t._$s(15,"sc","down-icon"),attrs:{type:"arrowdown",size:"11",_i:15}})],1)])]),n("view",{staticClass:t._$s(16,"sc","total-list"),attrs:{_i:16}},t._l(t._$s(17,"f",{forItems:t.daysArr}),(function(e,r,i,o){return n("view",{key:t._$s(17,"f",{forIndex:i,key:r})},[n("view",{staticClass:t._$s("18-"+o,"sc","day-time"),attrs:{_i:"18-"+o}},[t._v(t._$s("18-"+o,"t0-0",t._s(e.day)))]),t._l(t._$s("19-"+o,"f",{forItems:e.items}),(function(e,r,i,s){return n("view",{key:t._$s("19-"+o,"f",{forIndex:i,key:"19-"+o+"-"+s}),staticClass:t._$s("19-"+o+"-"+s,"sc","list-item"),attrs:{_i:"19-"+o+"-"+s},on:{click:function(r){return t.toDetail(e)}}},[n("view",{staticClass:t._$s("20-"+o+"-"+s,"sc","left-img"),attrs:{_i:"20-"+o+"-"+s}},[n("image",{attrs:{src:t._$s("21-"+o+"-"+s,"a-src","http://192.168.20.10:7009/httpImage/"+e.imgUrl),_i:"21-"+o+"-"+s}})]),n("view",{staticClass:t._$s("22-"+o+"-"+s,"sc","right-desc"),attrs:{_i:"22-"+o+"-"+s}},[t._$s("23-"+o+"-"+s,"i",!e.isRead)?n("div",{ref:t._$s("23-"+o+"-"+s,"ref",e.id),refInFor:!0,staticClass:t._$s("23-"+o+"-"+s,"sc","triangle-topright"),attrs:{_i:"23-"+o+"-"+s}},[n("div",{staticClass:t._$s("24-"+o+"-"+s,"sc","word"),attrs:{_i:"24-"+o+"-"+s}})]):t._e(),n("view",{staticClass:t._$s("25-"+o+"-"+s,"sc","first"),attrs:{_i:"25-"+o+"-"+s}},[n("view",{staticClass:t._$s("26-"+o+"-"+s,"sc","name"),attrs:{_i:"26-"+o+"-"+s}},[t._v(t._$s("26-"+o+"-"+s,"t0-0",t._s(e.name)))]),n("view",{staticClass:t._$s("27-"+o+"-"+s,"sc","level"),attrs:{_i:"27-"+o+"-"+s}},[n("view",{class:t._$s("28-"+o+"-"+s,"c","\u4e00\u7ea7"==e.warningLevel?"level-label-top":"level-label-no-top"),attrs:{_i:"28-"+o+"-"+s}}),n("text",{staticClass:t._$s("29-"+o+"-"+s,"sc","level-name"),attrs:{_i:"29-"+o+"-"+s}},[t._v(t._$s("29-"+o+"-"+s,"t0-0",t._s(e.warningLevel)))])])]),n("view",{staticClass:t._$s("30-"+o+"-"+s,"sc","second"),attrs:{_i:"30-"+o+"-"+s}},[n("view",{staticClass:t._$s("31-"+o+"-"+s,"sc","pos"),attrs:{_i:"31-"+o+"-"+s}},[t._v(t._$s("31-"+o+"-"+s,"t0-0",t._s(e.pos)))]),n("view",{staticClass:t._$s("32-"+o+"-"+s,"sc","time"),attrs:{_i:"32-"+o+"-"+s}},[t._v(t._$s("32-"+o+"-"+s,"t0-0",t._s(e.time)))])])])])}))],2)})),0),n("bottomDrawer",{attrs:{tips:t.showActionSheet.tips,itemList:t.showActionSheet.itemList,show:t.showActionSheet.show,maskClosable:t.showActionSheet.maskClosable,isCancel:t.showActionSheet.isCancel,_i:33},on:{chooseCancel:t.chooseCancel,slectDevice:t.slectDevice}})],1)],1)},o=[]},"0ed3":function(t,e,r){"use strict";r.r(e);var n=r("7582"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"11b8":function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","uni-status-bar"),style:t._$s(0,"s",{height:t.statusBarHeight}),attrs:{_i:0}},[t._t("default",null,{_i:1})],2)},o=[]},"16dd":function(t,e,r){"use strict";r.r(e);var n=r("f4e4"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"1cfb":function(t,e,r){"use strict";r.r(e);var n=r("3540"),i=r("0ed3");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"3e439ab5",null,!1,n["a"],s);e["default"]=c.exports},3540:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","uni-popup-message"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","uni-popup-message__box fixforpc-width"),class:t._$s(1,"c","uni-popup__"+[t.type]),attrs:{_i:1}},[r("text",{staticClass:t._$s(2,"sc","uni-popup-message-text"),class:t._$s(2,"c","uni-popup__"+[t.type]+"-text"),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.message)))])])])},o=[]},"3b77":function(t,e,r){"use strict";r.r(e);var n=r("405f"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"405f":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=uni.getSystemInfoSync().statusBarHeight+"px",i={name:"UniStatusBar",data:function(){return{statusBarHeight:n}}};e.default=i},"41b6":function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.$.$refs["ani"].ref;if(r)return new Promise((function(n,o){nvueAnimation.transition(r,i({styles:t},e),(function(t){n()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=t[r];if(i){var o=i.styles,s=i.config;this._animateRun(o,s).then((function(){r+=1,e._nvueNextAnimate(t,r,n)}))}else this.currentStepAnimates={},"function"===typeof n&&n(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],f=["opacity","backgroundColor"],h=["width","height","left","right","top","bottom"];function p(t,e){if(e)return clearTimeout(e.timer),new u(t,e)}l.concat(f,h).forEach((function(t){u.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))},4287:function(t,e,r){"use strict";r.r(e);var n=r("ecdd"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"42e9":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("d691"));function i(t){return t&&t.__esModule?t:{default:t}}var o={name:"UniPopup",components:{},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},provide:function(){return{popup:this}},mixins:[n.default],watch:{type:{handler:function(t){this[this.config[t]]()},immediate:!0},isDesktop:{handler:function(t){this[this.config[this.type]]()},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},created:function(){this.mkclick=this.maskClick,this.animation?this.duration=300:this.duration=0},methods:{clear:function(t){t.stopPropagation()},open:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){new Promise((function(e){clearTimeout(t.timer),t.timer=setTimeout((function(){t.showTrans=!0,t.$nextTick((function(){e()}))}),50)})).then((function(e){clearTimeout(t.msgtimer),t.msgtimer=setTimeout((function(){t.customOpen&&t.customOpen()}),100),t.$emit("change",{show:!0,type:t.type})}))}))},close:function(t){var e=this;this.showTrans=!1,this.$nextTick((function(){e.$emit("change",{show:!1,type:e.type}),clearTimeout(e.timer),e.customOpen&&e.customClose(),e.timer=setTimeout((function(){e.showPopup=!1}),300)}))},onTap:function(){this.mkclick&&this.close()},top:function(){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0}},bottom:function(){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0}},center:function(){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"}}}};e.default=o},"4aa6":function(t,e,r){"use strict";r.r(e);var n=r("42e9"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"4f7a":function(t,e,r){"use strict";r.r(e);var n=r("e549"),i=r("96c1");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"03bf6c84",null,!1,n["a"],s);e["default"]=c.exports},5553:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("view",{staticClass:t._$s(1,"sc","img-box"),class:t._$s(1,"c",[t.show?"pic-show":""]),attrs:{_i:1}},[r("image",{attrs:{src:t._$s(2,"a-src",t.imgSrc),_i:2}})]),r("view",{staticClass:t._$s(3,"sc","tui-actionsheet-mask"),class:t._$s(3,"c",[t.show?"tui-mask-show":""]),attrs:{_i:3},on:{click:t.handleClickMask}})])},o=[]},5996:function(t,e,r){"use strict";r.r(e);var n=r("638c"),i=r("c259");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"fbce20e0",null,!1,n["a"],s);e["default"]=c.exports},"5a46":function(t,e,r){"use strict";r.r(e);var n=r("11b8"),i=r("3b77");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"653830e9",null,!1,n["a"],s);e["default"]=c.exports},"5ccf":function(t,e){t.exports="/static/icon.png"},"5d55":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={onLaunch:function(){t("warn","\u5f53\u524d\u7ec4\u4ef6\u4ec5\u652f\u6301 uni_modules \u76ee\u5f55\u7ed3\u6784 \uff0c\u8bf7\u5347\u7ea7 HBuilderX \u5230 3.1.0 \u7248\u672c\u4ee5\u4e0a\uff01"," at App.vue:4"),t("log","App Launch"," at App.vue:5")},onShow:function(){t("log","App Show"," at App.vue:8")},onHide:function(){t("log","App Hide"," at App.vue:11")}};e.default=r}).call(this,r("0de9")["default"])},"638c":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("066e").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","uni-searchbar"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","uni-searchbar__box"),style:t._$s(1,"s",{borderRadius:t.radius+"px",backgroundColor:t.bgColor}),attrs:{_i:1},on:{click:t.searchClick}},[r("view",{staticClass:t._$s(2,"sc","uni-searchbar__box-icon-search"),attrs:{_i:2}},[t._t("searchIcon",[r("uni-icons",{attrs:{color:"#999999",size:"18",type:"search",_i:4}})],{_i:3})],2),t._$s(5,"i",t.show||t.searchVal)?r("input",{directives:[{name:"model",rawName:"v-model",value:t.searchVal,expression:"searchVal"}],staticClass:t._$s(5,"sc","uni-searchbar__box-search-input"),attrs:{focus:t._$s(5,"a-focus",t.showSync),placeholder:t._$s(5,"a-placeholder",t.placeholder),maxlength:t._$s(5,"a-maxlength",t.maxlength),_i:5},domProps:{value:t._$s(5,"v-model",t.searchVal)},on:{confirm:t.confirm,blur:t.blur,focus:t.emitFocus,input:function(e){e.target.composing||(t.searchVal=e.target.value)}}}):r("text",{staticClass:t._$s(6,"sc","uni-searchbar__text-placeholder"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.placeholder)))]),t._$s(7,"i",t.show&&("always"===t.clearButton||"auto"===t.clearButton&&""!==t.searchVal))?r("view",{staticClass:t._$s(7,"sc","uni-searchbar__box-icon-clear"),attrs:{_i:7},on:{click:t.clear}},[t._t("clearIcon",[r("uni-icons",{attrs:{color:"#c0c4cc",size:"15",type:"clear",_i:9}})],{_i:8})],2):t._e()]),t._$s(10,"i","always"===t.cancelButton||t.show&&"auto"===t.cancelButton)?r("text",{staticClass:t._$s(10,"sc","uni-searchbar__cancel"),attrs:{_i:10},on:{click:t.cancel}},[t._v(t._$s(10,"t0-0",t._s(t.cancelText)))]):t._e()])},o=[]},7582:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"UniPopupMessage",props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3}},inject:["popup"],data:function(){return{}},created:function(){this.popup.childrenMsg=this},methods:{open:function(){var t=this;0!==this.duration&&(clearTimeout(this.popuptimer),this.popuptimer=setTimeout((function(){t.popup.close()}),this.duration))},close:function(){clearTimeout(this.popuptimer)}}};e.default=n},"79fa":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r("bbb4")),i=o(r("fd82"));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){return u(t)||c(t,e)||h(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(r.push(s.value),e&&r.length===e)break}catch(c){i=!0,o=c}finally{try{n||null==a["return"]||a["return"]()}finally{if(i)throw o}}return r}}function u(t){if(Array.isArray(t))return t}function l(t){return d(t)||p(t)||h(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}function p(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(t){if(Array.isArray(t))return m(t)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(this.$el.getElementsByTagName("input")[e-1].focus(),t.preventDefault()):39===r&&110===r&&n(t.target).end===i.length&&e<3&&this.$el.getElementsByTagName("input")[e+1].focus()},onInput:function(t,e){var r=t.target.value;t.target.value=this.segments[e];var n=Number(r);isNaN(n)||(""===r?this.segments.splice(e,1,""):n>255||n<0?this.segments.splice(e,1,255):this.segments.splice(e,1,n),(3===r.length&&e<3||"."===r[r.length-1])&&this.$el.getElementsByTagName("input")[e+1].focus())},onInputBlur:function(){var t=this;setTimeout((function(){t.$emit("on-blur",t.segments.join(".")),t.onBlur&&t.onBlur(t.segments.join(".")),t.onItemChange&&t.onItemChange(t.segments.join("."),t.item)}),50)},onPaste:function(t,e){var r=this,n=t.clipboardData.getData("text/plain"),i=n.split(".");i.forEach((function(t,n){e+n<4&&!isNaN(t)&&t>=0&&t<=255&&r.segments.splice(e+n,1,t)})),t.preventDefault()},syncIp:function(t){var e=this;t&&-1!==t.indexOf(".")&&t.split(".").map((function(t,r){return(isNaN(t)||t<0||t>255)&&(t=255),e.segments.splice(r,1,t),t}))}},mounted:function(){var t=this;this.syncIp(this.ip),this.$watch((function(){return t.segments.join(".")}),(function(e,r){e!==r&&("..."===e&&(e=""),t.onChange&&t.onChange(e))}))}};e.default=i},b67c:function(t,e,r){"use strict";r.r(e);var n=r("db85"),i=r("4aa6");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"05d37b98",null,!1,n["a"],s);e["default"]=c.exports},bbb4:function(t,e,r){"use strict";r.r(e);var n=r("e1eb"),i=r("4287");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);e["default"]=c.exports},c245:function(t,e,r){"use strict";r.r(e);var n=r("7b46"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},c259:function(t,e,r){"use strict";r.r(e);var n=r("806b"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},cd7b:function(t,e,r){"use strict";r.r(e);var n=r("ed86"),i=r("df9f");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);var s,a=r("f0c5"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"89b033ae",null,!1,n["a"],s);e["default"]=c.exports},d41c:function(t,e,r){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(r("80a1").default)})),__definePage("pages/detail/detail",(function(){return Vue.extend(r("01cc").default)})),__definePage("pages/setting/setting",(function(){return Vue.extend(r("cd7b").default)}))},d691:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("8380"));function i(t){return t&&t.__esModule?t:{default:t}}var o={top:"top",bottom:"bottom",center:"center",message:"top",dialog:"center",share:"bottom"},s={data:function(){return{config:o,popupWidth:0,popupHeight:0}},mixins:[n.default],computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),r=e.windowWidth,n=e.windowHeight,i=e.windowTop;t.popupWidth=r,t.popupHeight=n+i};e()}};e.default=s},d8c1:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.isShow)?r("view",{ref:"ani",class:t._$s(0,"c",t.customClass),style:t._$s(0,"s",t.transformStyles),attrs:{animation:t._$s(0,"a-animation",t.animationData),_i:0},on:{click:t.onClick}},[t._t("default",null,{_i:1})],2):t._e()},o=[]},db85:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uniTransition:r("9d4e").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.showPopup)?r("view",{staticClass:t._$s(0,"sc","uni-popup"),class:t._$s(0,"c",[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]),attrs:{_i:0},on:{touchmove:function(e){return e.stopPropagation(),e.preventDefault(),t.clear(e)}}},[t._$s(1,"i",t.maskShow)?r("uni-transition",{staticClass:t._$s(1,"sc","uni-mask--hook"),attrs:{"mode-class":["fade"],styles:t.maskClass,duration:t.duration,show:t.showTrans,_i:1},on:{click:t.onTap}}):t._e(),r("uni-transition",{attrs:{"mode-class":t.ani,styles:t.transClass,duration:t.duration,show:t.showTrans,_i:2},on:{click:t.onTap}},[r("view",{staticClass:t._$s(3,"sc","uni-popup__wrapper-box"),attrs:{_i:3},on:{click:function(e){return e.stopPropagation(),t.clear(e)}}},[t._t("default",null,{_i:4})],2)])],1):t._e()},o=[]},df9f:function(t,e,r){"use strict";r.r(e);var n=r("ec8b"),i=r.n(n);for(var o in n)"default"!==o&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},e1eb:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("view",{staticClass:t._$s(1,"sc","tui-actionsheet-class tui-actionsheet"),class:t._$s(1,"c",[t.show?"tui-actionsheet-show":""]),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","close-and-confirm"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","close-btn"),attrs:{_i:3},on:{click:t.handleClickMask}}),r("view",{staticClass:t._$s(4,"sc","title"),attrs:{_i:4}}),r("view",{staticClass:t._$s(5,"sc","close-btn"),attrs:{_i:5},on:{click:t.handleConfirm}})]),r("view",{class:t._$s(6,"c",[t.isCancel?"tui-operate-box":""]),attrs:{_i:6}},[t._l(t._$s(7,"f",{forItems:t.itemList}),(function(e,n,i,o){return[r("view",{key:t._$s(7,"f",{forIndex:i,keyIndex:0,key:n+"_0"}),staticClass:t._$s("8-"+o,"sc","tui-actionsheet-btn tui-actionsheet-divider"),class:t._$s("8-"+o,"c",t.curIndex==n?"item-active":""),attrs:{"data-index":t._$s("8-"+o,"a-data-index",n),_i:"8-"+o},on:{click:t.handleClickItem}},[t._v(t._$s("8-"+o,"t0-0",t._s(e)))])]}))],2)]),r("view",{staticClass:t._$s(9,"sc","tui-actionsheet-mask"),class:t._$s(9,"c",[t.show?"tui-mask-show":""]),attrs:{_i:9},on:{click:t.handleClickMask}})])},o=[]},e549:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("066e").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","uni-navbar"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","uni-navbar__content"),class:t._$s(1,"c",{"uni-navbar--fixed":t.fixed,"uni-navbar--shadow":t.shadow,"uni-navbar--border":t.border}),style:t._$s(1,"s",{"background-color":t.backgroundColor}),attrs:{_i:1}},[t._$s(2,"i",t.statusBar)?r("status-bar",{attrs:{_i:2}}):t._e(),r("view",{staticClass:t._$s(3,"sc","uni-navbar__header uni-navbar__content_view"),style:t._$s(3,"s",{color:t.color,backgroundColor:t.backgroundColor}),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","uni-navbar__header-btns uni-navbar__header-btns-left uni-navbar__content_view"),attrs:{_i:4},on:{click:t.onClickLeft}},[t._$s(5,"i",t.leftIcon.length)?r("view",{staticClass:t._$s(5,"sc","uni-navbar__content_view"),attrs:{_i:5}},[r("uni-icons",{attrs:{color:t.color,type:t.leftIcon,size:"24",_i:6}})],1):t._e(),t._$s(7,"i",t.leftText.length)?r("view",{staticClass:t._$s(7,"sc","uni-navbar-btn-text uni-navbar__content_view"),class:t._$s(7,"c",{"uni-navbar-btn-icon-left":!t.leftIcon.length}),attrs:{_i:7}},[r("text",{style:t._$s(8,"s",{color:t.color,fontSize:"14px"}),attrs:{_i:8}},[t._v(t._$s(8,"t0-0",t._s(t.leftText)))])]):t._e(),t._t("left",null,{_i:9})],2),r("view",{staticClass:t._$s(10,"sc","uni-navbar__header-container uni-navbar__content_view"),attrs:{_i:10},on:{click:t.onClickTitle}},[t._$s(11,"i",t.title.length)?r("view",{staticClass:t._$s(11,"sc","uni-navbar__header-container-inner uni-navbar__content_view"),attrs:{_i:11}},[r("text",{staticClass:t._$s(12,"sc","uni-nav-bar-text"),style:t._$s(12,"s",{color:t.color}),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.title)))])]):t._e(),t._t("default",null,{_i:13})],2),r("view",{staticClass:t._$s(14,"sc","uni-navbar__header-btns uni-navbar__content_view"),class:t._$s(14,"c",t.title.length?"uni-navbar__header-btns-right":""),attrs:{_i:14},on:{click:t.onClickRight}},[t._$s(15,"i",t.rightIcon.length)?r("view",{staticClass:t._$s(15,"sc","uni-navbar__content_view"),attrs:{_i:15}},[r("uni-icons",{attrs:{color:t.color,type:t.rightIcon,size:"24",_i:16}})],1):t._e(),t._$s(17,"i",t.rightText.length&&!t.rightIcon.length)?r("view",{staticClass:t._$s(17,"sc","uni-navbar-btn-text uni-navbar__content_view"),attrs:{_i:17}},[r("text",{staticClass:t._$s(18,"sc","uni-nav-bar-right-text"),attrs:{_i:18}},[t._v(t._$s(18,"t0-0",t._s(t.rightText)))])]):t._e(),t._t("right",null,{_i:19})],2)])],1),t._$s(20,"i",t.fixed)?r("view",{staticClass:t._$s(20,"sc","uni-navbar__placeholder"),attrs:{_i:20}},[t._$s(21,"i",t.statusBar)?r("status-bar",{attrs:{_i:21}}):t._e(),r("view",{staticClass:t._$s(22,"sc","uni-navbar__placeholder-view"),attrs:{_i:22}})],1):t._e()])},o=[]},ec8b:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r("0dd7")),i=o(r("7ec2"));function o(t){return t&&t.__esModule?t:{default:t}}var s={components:{imagePopper:n.default,IPInput:i.default},data:function(){return{sys_ip:"",port:""}},mounted:function(){},onBackPress:function(e){t("log",e," at pages/setting/setting.vue:42"),uni.navigateTo({url:"/pages/index/index"})},methods:{goBack:function(){uni.navigateTo({url:"../index/index"})},commit:function(){this.$refs.popup.open("top")}}};e.default=s}).call(this,r("0de9")["default"])},ecdd:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"tuiActionsheet",data:function(){return{curIndex:-1}},props:{maskClosable:{type:Boolean,default:!0},show:{type:Boolean,default:!1},itemList:{type:Array,default:[]},tips:{type:String,default:""},color:{type:String,default:"#9a9a9a"},size:{type:Number,default:26},isCancel:{type:Boolean,default:!0}},methods:{handleClickMask:function(){this.maskClosable&&this.handleClickCancel()},handleClickItem:function(e){if(this.show){var r=e.currentTarget.dataset;t("log",r," at components/bottomDrawer.vue:80"),this.curIndex=r.index}},handleClickCancel:function(){this.$emit("chooseCancel")},handleConfirm:function(){this.handleClickCancel(),this.$emit("slectDevice",{index:this.curIndex})}}};e.default=r}).call(this,r("0de9")["default"])},ed86:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uniNavBar:r("4f7a").default,uniPopup:r("b67c").default,uniPopupMessage:r("1cfb").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[r("uni-nav-bar",{attrs:{"left-icon":"back","left-text":"\u8fd4\u56de",title:"\u901a\u7528\u8bbe\u7f6e",statusBar:"true",_i:1},on:{clickLeft:t.goBack}}),r("view",{staticClass:t._$s(2,"sc","setting-content"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","title"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","uni-form-item uni-column"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","title"),attrs:{_i:5}}),r("IPInput",{attrs:{ip:t.sys_ip,_i:6},on:{"on-blur":function(e){t.sys_ip=arguments[0]}}})],1),r("view",{staticClass:t._$s(7,"sc","uni-form-item uni-column"),attrs:{_i:7}},[r("view",{staticClass:t._$s(8,"sc","title"),attrs:{_i:8}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.port,expression:"port"}],staticClass:t._$s(9,"sc","uni-input"),attrs:{_i:9},domProps:{value:t._$s(9,"v-model",t.port)},on:{input:function(e){e.target.composing||(t.port=e.target.value)}}})])]),r("button",{attrs:{_i:10},on:{click:t.commit}}),r("uni-popup",{ref:"popup",attrs:{type:"message",_i:11}},[r("uni-popup-message",{attrs:{type:"success",message:"\u4fee\u6539\u6210\u529f",duration:2e3,_i:12}})],1)],1)},o=[]},f0c5:function(t,e,r){"use strict";function n(t,e,r,n,i,o,s,a,c,u){var l,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var h=Object.prototype.hasOwnProperty;for(var p in c)h.call(c,p)&&!h.call(f.components,p)&&(f.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var d=f.render;f.render=function(t,e){return l.call(e),d(t,e)}}else{var m=f.beforeCreate;f.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:f}}r.d(e,"a",(function(){return n}))},f1ba:function(t,e,r){"use strict";r.r(e);var n=r("a57b");for(var i in n)"default"!==i&&function(t){r.d(e,t,(function(){return n[t]}))}(i);var o,s,a,c,u=r("f0c5"),l=Object(u["a"])(n["default"],o,s,!1,null,null,null,!1,a,c);e["default"]=l.exports},f231:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("5a46"));function i(t){return t&&t.__esModule?t:{default:t}}var o={name:"UniNavBar",components:{statusBar:n.default},props:{title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},fixed:{type:[Boolean,String],default:!1},color:{type:String,default:"#000000"},backgroundColor:{type:String,default:"#FFFFFF"},statusBar:{type:[Boolean,String],default:!1},shadow:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0}},mounted:function(){uni.report&&""!==this.title&&uni.report("title",this.title)},methods:{onClickLeft:function(){this.$emit("clickLeft")},onClickRight:function(){this.$emit("clickRight")},onClickTitle:function(){this.$emit("clickTitle")}}};e.default=o},f4e4:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("41b6");function i(t){return c(t)||a(t)||s(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"===typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function a(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return u(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,n.createAnimation)(Object.assign(this.config,t))},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var n in e)try{var o;if("object"===typeof e[n])(o=this.animation)[n].apply(o,i(e[n]));else this.animation[n](e[n])}catch(s){t("error","\u65b9\u6cd5 ".concat(n," \u4e0d\u5b58\u5728")," at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:138")}return this.animation.step(r),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var e=this.styleInit(!1),r=e.opacity,i=e.transform;"undefined"!==typeof r&&(this.opacity=r),this.transform=i,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,n.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var e=this;this.animation&&this.tranfromInit(!0).step().run((function(){e.isShow=!1,e.animationData=null,e.animation=null;var t=e.styleInit(!1),r=t.opacity,n=t.transform;e.opacity=r||1,e.transform=n,e.$emit("change",{detail:e.isShow})}))},styleInit:function(t){var e=this,r={transform:""},n=function(t,n){"fade"===n?r.opacity=e.animationType(t)[n]:r.transform+=e.animationType(t)[n]+" "};return"string"===typeof this.modeClass?n(t,this.modeClass):this.modeClass.forEach((function(e){n(t,e)})),r},tranfromInit:function(t){var e=this,r=function(t,r){var n=null;"fade"===r?n=t?0:1:(n=t?"-100%":"0","zoom-in"===r&&(n=t?.8:1),"zoom-out"===r&&(n=t?1.2:1),"slide-right"===r&&(n=t?"100%":"0"),"slide-bottom"===r&&(n=t?"100%":"0")),e.animation[e.animationMode()[r]](n)};return"string"===typeof this.modeClass?r(t,this.modeClass):this.modeClass.forEach((function(e){r(t,e)})),this.animation},animationType:function(t){return{fade:t?1:0,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};e.default=p}).call(this,r("0de9")["default"])},fb94:function(t,e,r){"use strict";r("d41c");var n=o(r("8bbf")),i=o(r("f1ba"));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;eo.properties.topicAliasMaximum||!o.properties.topicAliasMaximum&&r.properties.topicAlias))&&delete i.properties.topicAlias),r.qos){case 1:case 2:this.outgoing[i.messageId]={volatile:!1,cb:n||y},this._storeProcessing?(this._packetIdsDuringStoreProcessing[i.messageId]=!1,this._storePacket(i,void 0,r.cbStorePut)):this._sendPacket(i,void 0,r.cbStorePut);break;default:this._storeProcessing?this._storePacket(i,n,r.cbStorePut):this._sendPacket(i,n,r.cbStorePut);break}return this},w.prototype.subscribe=function(){for(var t,e=new Array(arguments.length),r=0;r0){var e={qos:t.qos};5===p&&(e.nl=t.nl||!1,e.rap=t.rap||!1,e.rh=t.rh||0,e.properties=t.properties),u._resubscribeTopics[t.topic]=e,m.push(t.topic)}})),u.messageIdToTopic[t.messageId]=m}return this.outgoing[t.messageId]={volatile:!0,cb:function(t,e){if(!t)for(var r=e.granted,n=0;n0?this.once("outgoingEmpty",setTimeout.bind(null,o,10)):o()),this},w.prototype.removeOutgoingMessage=function(t){var e=this.outgoing[t]?this.outgoing[t].cb:null;return delete this.outgoing[t],this.outgoingStore.del({messageId:t},(function(){e(new Error("Message removed"))})),this},w.prototype.reconnect=function(t){var e=this,r=function(){t?(e.options.incomingStore=t.incomingStore,e.options.outgoingStore=t.outgoingStore):(e.options.incomingStore=null,e.options.outgoingStore=null),e.incomingStore=e.options.incomingStore||new o,e.outgoingStore=e.options.outgoingStore||new o,e.disconnecting=!1,e.disconnected=!1,e._deferredReconnect=null,e._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this},w.prototype._reconnect=function(){this.emit("reconnect"),this._setupStream()},w.prototype._setupReconnect=function(){var t=this;!t.disconnecting&&!t.reconnectTimer&&t.options.reconnectPeriod>0&&(this.reconnecting||(this.emit("offline"),this.reconnecting=!0),t.reconnectTimer=setInterval((function(){t._reconnect()}),t.options.reconnectPeriod))},w.prototype._clearReconnect=function(){this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},w.prototype._cleanUp=function(t,e){var r=arguments[2];if(e&&this.stream.on("close",e),t)0===this.options.reconnectPeriod&&this.options.clean&&g(this.outgoing),this.stream.destroy();else{var n=f({cmd:"disconnect"},r);this._sendPacket(n,h.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),e&&!this.connected&&(this.stream.removeListener("close",e),e())},w.prototype._sendPacket=function(t,e,r){if(r=r||y,this.connected){switch(this._shiftPingInterval(),t.cmd){case"publish":break;case"pubrel":return void b(this,t,e,r);default:return void _(this,t,e)}switch(t.qos){case 2:case 1:b(this,t,e,r);break;case 0:default:_(this,t,e);break}}else this._storePacket(t,e,r)},w.prototype._storePacket=function(t,e,r){r=r||y,0===(t.qos||0)&&this.queueQoSZero||"publish"!==t.cmd?this.queue.push({packet:t,cb:e}):t.qos>0?(e=this.outgoing[t.messageId]?this.outgoing[t.messageId].cb:null,this.outgoingStore.put(t,(function(t){if(t)return e&&e(t);r()}))):e&&e(new Error("No connection to broker"))},w.prototype._setupPingTimer=function(){var t=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=u((function(){t._checkPing()}),1e3*this.options.keepalive))},w.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},w.prototype._checkPing=function(){this.pingResp?(this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):this._cleanUp(!0)},w.prototype._handlePingresp=function(){this.pingResp=!0},w.prototype._handleConnack=function(t){var e=this.options,r=e.protocolVersion,n=5===r?t.reasonCode:t.returnCode;if(clearTimeout(this.connackTimer),t.properties&&(t.properties.topicAliasMaximum&&(e.properties||(e.properties={}),e.properties.topicAliasMaximum=t.properties.topicAliasMaximum),t.properties.serverKeepAlive&&e.keepalive&&(e.keepalive=t.properties.serverKeepAlive,this._shiftPingInterval()),t.properties.maximumPacketSize&&(e.properties||(e.properties={}),e.properties.maximumPacketSize=t.properties.maximumPacketSize)),0===n)this.reconnecting=!1,this._onConnect(t);else if(n>0){var i=new Error("Connection refused: "+d[n]);i.code=n,this.emit("error",i)}},w.prototype._handlePublish=function(t,e){e="undefined"!==typeof e?e:y;var r=t.topic.toString(),n=t.payload,i=t.qos,o=t.messageId,s=this,a=this.options,c=[0,16,128,131,135,144,145,151,153];switch(i){case 2:a.customHandleAcks(r,n,t,(function(r,n){return r instanceof Error||(n=r,r=null),r?s.emit("error",r):-1===c.indexOf(n)?s.emit("error",new Error("Wrong reason code for pubrec")):void(n?s._sendPacket({cmd:"pubrec",messageId:o,reasonCode:n},e):s.incomingStore.put(t,(function(){s._sendPacket({cmd:"pubrec",messageId:o},e)})))}));break;case 1:a.customHandleAcks(r,n,t,(function(i,a){return i instanceof Error||(a=i,i=null),i?s.emit("error",i):-1===c.indexOf(a)?s.emit("error",new Error("Wrong reason code for puback")):(a||s.emit("message",r,n,t),void s.handleMessage(t,(function(t){if(t)return e&&e(t);s._sendPacket({cmd:"puback",messageId:o,reasonCode:a},e)})))}));break;case 0:this.emit("message",r,n,t),this.handleMessage(t,e);break;default:break}},w.prototype.handleMessage=function(t,e){e()},w.prototype._handleAck=function(t){var e,r=t.messageId,n=t.cmd,i=null,o=this.outgoing[r]?this.outgoing[r].cb:null,s=this;if(o){switch(n){case"pubcomp":case"puback":var a=t.reasonCode;a&&a>0&&16!==a&&(e=new Error("Publish error: "+d[a]),e.code=a,o(e,t)),delete this.outgoing[r],this.outgoingStore.del(t,o);break;case"pubrec":i={cmd:"pubrel",qos:2,messageId:r};var c=t.reasonCode;c&&c>0&&16!==c?(e=new Error("Publish error: "+d[c]),e.code=c,o(e,t)):this._sendPacket(i);break;case"suback":delete this.outgoing[r];for(var u=0;u0)if(this.options.resubscribe)if(5===this.options.protocolVersion)for(var r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function l(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function h(t){for(var e,r=u(t),n=r[0],s=r[1],a=new o(f(t,n,s)),c=0,l=s>0?n-4:n,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,r){for(var n,i=[],o=e;oc?c:a+s));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],11:[function(t,e,r){},{}],12:[function(t,e,r){"use strict";var i=t("base64-js"),o=t("ieee754");r.Buffer=u,r.SlowBuffer=b,r.INSPECT_MAX_BYTES=50;var s=2147483647;function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}function c(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=u.prototype,e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return p(t)}return l(t,e,r)}function l(t,e,r){if("string"===typeof t)return d(t,e);if(ArrayBuffer.isView(t))return m(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(G(t,ArrayBuffer)||t&&G(t.buffer,ArrayBuffer))return _(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=g(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t,e,r){return f(t),t<=0?c(t):void 0!==e?"string"===typeof r?c(t).fill(e,r):c(t).fill(e):c(t)}function p(t){return f(t),c(t<0?0:0|v(t))}function d(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),n=c(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function m(t){for(var e=t.length<0?0:0|v(t.length),r=c(e),n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||G(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(t).length;default:if(i)return n?-1:K(t).length;e=(""+e).toLowerCase(),i=!0}}function w(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return $(this,e,r);case"latin1":case"binary":return N(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function S(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function x(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Z(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:k(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):k(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function k(t,e,r,n,i){var o,s=1,a=t.length,c=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;oa&&(r=a-c),o=r;o>=0;o--){for(var f=!0,h=0;hi&&(n=i)):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:o=t[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=t[i+1],s=t[i+2],128===(192&o)&&128===(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return B(n)}r.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=a(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||n("error","This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."," at utils/mqtt.min.js:1"),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,u.alloc=function(t,e,r){return h(t,e,r)},u.allocUnsafe=function(t){return p(t)},u.allocUnsafeSlow=function(t){return p(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),G(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);ie&&(t+=" ... "),""},u.prototype.compare=function(t,e,r,n,i){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,a=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return O(this,t,e,r);case"ascii":return I(this,t,e,r);case"latin1":case"binary":return j(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function B(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);var r="",n=0;while(nn)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function q(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(t,e,r,n,i){return e=+e,r>>>=0,i||q(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,i){return e=+e,r>>>=0,i||q(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e>>=0,e>>>=0,r||U(t,e,this.length);var n=this[t],i=1,o=0;while(++o>>=0,e>>>=0,r||U(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);var n=this[t],i=1,o=0;while(++o=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||U(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||U(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||U(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||U(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||U(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||U(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;D(this,t,e,r,i,0)}var o=1,s=0;this[e]=255&t;while(++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;D(this,t,e,r,i,0)}var o=r-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;this[e]=255&t;while(++o>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return F(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return F(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"===typeof t&&(t&=255);if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Q(t){for(var e=[],r=0;r>8,i=r%256,o.push(i),o.push(n)}return o}function J(t){return i.toByteArray(H(t))}function X(t,e,r,n){for(var i=0;i=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function G(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!==t}},{"base64-js":10,ieee754:79}],13:[function(t,e,r){var i=Object.create||E,o=Object.keys||O,s=Function.prototype.bind||I;function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=i(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var c,u=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),c=0===l.x}catch(j){c=!1}function f(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,r){if(e)t.call(r);else for(var n=t.length,i=x(t,n),o=0;o0&&c.length>s)){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=c.length,"object"===typeof console&&console.warn&&n("warn","%s: %s",u.name,u.message," at utils/mqtt.min.js:1")}}else c=a[e]=r,++t._eventsCount;return t}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e1&&(e=arguments[1]),e instanceof Error)throw e;var c=new Error('Unhandled "error" event. ('+e+")");throw c.context=e,c}if(r=s[t],!r)return!1;var u="function"===typeof r;switch(n=arguments.length,n){case 1:h(r,u,this);break;case 2:p(r,u,this,arguments[1]);break;case 3:d(r,u,this,arguments[1],arguments[2]);break;case 4:m(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o=0;s--)if(r[s]===e||r[s].listener===e){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():S(r,o),1===r.length&&(n[t]=r[0]),n.removeListener&&this.emit("removeListener",t,a||e)}return this},a.prototype.removeAllListeners=function(t){var e,r,n;if(r=this._events,!r)return this;if(!r.removeListener)return 0===arguments.length?(this._events=i(null),this._eventsCount=0):r[t]&&(0===--this._eventsCount?this._events=i(null):delete r[t]),this;if(0===arguments.length){var s,a=o(r);for(n=0;n=0;n--)this.removeListener(t,e[n]);return this},a.prototype.listeners=function(t){return y(this,t,!0)},a.prototype.rawListeners=function(t){return y(this,t,!1)},a.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):w.call(t,e)},a.prototype.listenerCount=w,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],14:[function(t,e,r){(function(t){function e(t){return Array.isArray?Array.isArray(t):"[object Array]"===_(t)}function n(t){return"boolean"===typeof t}function i(t){return null===t}function o(t){return null==t}function s(t){return"number"===typeof t}function a(t){return"string"===typeof t}function c(t){return"symbol"===typeof t}function u(t){return void 0===t}function l(t){return"[object RegExp]"===_(t)}function f(t){return"object"===typeof t&&null!==t}function h(t){return"[object Date]"===_(t)}function p(t){return"[object Error]"===_(t)||t instanceof Error}function d(t){return"function"===typeof t}function m(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function _(t){return Object.prototype.toString.call(t)}r.isArray=e,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=o,r.isNumber=s,r.isString=a,r.isSymbol=c,r.isUndefined=u,r.isRegExp=l,r.isObject=f,r.isDate=h,r.isError=p,r.isFunction=d,r.isPrimitive=m,r.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":81}],15:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/copy"),o=t("es5-ext/object/normalize-options"),s=t("es5-ext/object/valid-callable"),a=t("es5-ext/object/map"),c=t("es5-ext/object/valid-callable"),u=t("es5-ext/object/valid-value"),l=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,o=u(e)&&c(e.value);return n=i(e),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&h.call(this,t)?o:(e.value=l.call(o,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=o(arguments[1]);return null!=e.resolveContext&&s(e.resolveContext),a(t,(function(t,r){return n(r,t,e)}))}},{"es5-ext/object/copy":39,"es5-ext/object/map":48,"es5-ext/object/normalize-options":49,"es5-ext/object/valid-callable":54,"es5-ext/object/valid-value":55}],16:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/assign"),o=t("es5-ext/object/normalize-options"),s=t("es5-ext/object/is-callable"),a=t("es5-ext/string/#/contains");n=e.exports=function(t,e){var r,n,s,c,u;return arguments.length<2||"string"!==typeof t?(c=e,e=t,t=null):c=arguments[2],null==t?(r=s=!0,n=!1):(r=a.call(t,"c"),n=a.call(t,"e"),s=a.call(t,"w")),u={value:e,configurable:r,enumerable:n,writable:s},c?i(o(c),u):u},n.gs=function(t,e,r){var n,c,u,l;return"string"!==typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],null==e?e=void 0:s(e)?null==r?r=void 0:s(r)||(u=r,r=void 0):(u=e,e=r=void 0),null==t?(n=!0,c=!1):(n=a.call(t,"c"),c=a.call(t,"e")),l={get:e,set:r,configurable:n,enumerable:c},u?i(o(u),l):l}},{"es5-ext/object/assign":36,"es5-ext/object/is-callable":42,"es5-ext/object/normalize-options":49,"es5-ext/string/#/contains":56}],17:[function(t,e,r){(function(r,n){var i=t("readable-stream"),o=t("end-of-stream"),s=t("inherits"),a=t("stream-shift"),c=n.from&&n.from!==Uint8Array.from?n.from([0]):new n([0]),u=function(t,e){t._corked?t.once("uncork",e):e()},l=function(t,e){t._autoDestroy&&t.destroy(e)},f=function(t,e){return function(r){r?l(t,"premature close"===r.message?null:r):e&&!t._ended&&t.end()}},h=function(t,e){return t?t._writableState&&t._writableState.finished?e():t._writableState?t.end(e):(t.end(),void e()):e()},p=function(t){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)},d=function t(e,r,n){if(!(this instanceof t))return new t(e,r,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),r&&this.setReadable(r)};s(d,i.Duplex),d.obj=function(t,e,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new d(t,e,r)},d.prototype.cork=function(){1===++this._corked&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},d.prototype.setWritable=function(t){if(this._unwrite&&this._unwrite(),this.destroyed)t&&t.destroy&&t.destroy();else if(null!==t&&!1!==t){var e=this,n=o(t,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var t=e._ondrain;e._ondrain=null,t&&t()},s=function(){e._writable.removeListener("drain",i),n()};this._unwrite&&r.nextTick(i),this._writable=t,this._writable.on("drain",i),this._unwrite=s,this.uncork()}else this.end()},d.prototype.setReadable=function(t){if(this._unread&&this._unread(),this.destroyed)t&&t.destroy&&t.destroy();else{if(null===t||!1===t)return this.push(null),void this.resume();var e=this,r=o(t,{writable:!1,readable:!0},f(this)),n=function(){e._forward()},i=function(){e.push(null)},s=function(){e._readable2.removeListener("readable",n),e._readable2.removeListener("end",i),r()};this._drained=!0,this._readable=t,this._readable2=t._readableState?t:p(t),this._readable2.on("readable",n),this._readable2.on("end",i),this._unread=s,this._forward()}},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var t;this._forwarding=!0;while(this._drained&&null!==(t=a(this._readable2)))this.destroyed||(this._drained=this.push(t));this._forwarding=!1}},d.prototype.destroy=function(t){if(!this.destroyed){this.destroyed=!0;var e=this;r.nextTick((function(){e._destroy(t)}))}},d.prototype._destroy=function(t){if(t){var e=this._ondrain;this._ondrain=null,e?e(t):this.emit("error",t)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(t,e,r){return this.destroyed?r():this._corked?u(this,this._write.bind(this,t,e,r)):t===c?this._finish(r):this._writable?void(!1===this._writable.write(t)?this._ondrain=r:r()):r()},d.prototype._finish=function(t){var e=this;this.emit("preend"),u(this,(function(){h(e._forwardEnd&&e._writable,(function(){!1===e._writableState.prefinished&&(e._writableState.prefinished=!0),e.emit("prefinish"),u(e,t)}))}))},d.prototype.end=function(t,e,r){return"function"===typeof t?this.end(null,null,t):"function"===typeof e?this.end(t,null,e):(this._ended=!0,t&&this.write(t),this._writableState.ending||this.write(c),i.Writable.prototype.end.call(this,r))},e.exports=d}).call(this,t("_process"),t("buffer").Buffer)},{_process:92,buffer:12,"end-of-stream":18,inherits:80,"readable-stream":108,"stream-shift":111}],18:[function(t,e,r){var n=t("once"),i=function(){},o=function(t){return t.setHeader&&"function"===typeof t.abort},s=function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length},a=function t(e,r,a){if("function"===typeof r)return t(e,null,r);r||(r={}),a=n(a||i);var c=e._writableState,u=e._readableState,l=r.readable||!1!==r.readable&&e.readable,f=r.writable||!1!==r.writable&&e.writable,h=function(){e.writable||p()},p=function(){f=!1,l||a.call(e)},d=function(){l=!1,f||a.call(e)},m=function(t){a.call(e,t?new Error("exited with error code: "+t):null)},_=function(t){a.call(e,t)},g=function(){return(!l||u&&u.ended)&&(!f||c&&c.ended)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",p)};return o(e)?(e.on("complete",p),e.on("abort",g),e.req?v():e.on("request",v)):f&&!c&&(e.on("end",h),e.on("close",h)),s(e)&&e.on("exit",m),e.on("end",d),e.on("finish",p),!1!==r.error&&e.on("error",_),e.on("close",g),function(){e.removeListener("complete",p),e.removeListener("abort",g),e.removeListener("request",v),e.req&&e.req.removeListener("finish",p),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("exit",m),e.removeListener("end",d),e.removeListener("error",_),e.removeListener("close",g)}};e.exports=a},{once:90}],19:[function(t,e,r){"use strict";var n=t("../../object/valid-value");e.exports=function(){return n(this).length=0,this}},{"../../object/valid-value":55}],20:[function(t,e,r){"use strict";var n=t("../../number/is-nan"),i=t("../../number/to-pos-integer"),o=t("../../object/valid-value"),s=Array.prototype.indexOf,a=Object.prototype.hasOwnProperty,c=Math.abs,u=Math.floor;e.exports=function(t){var e,r,l,f;if(!n(t))return s.apply(this,arguments);for(r=i(o(this).length),l=arguments[1],l=isNaN(l)?0:l>=0?u(l):i(this.length)-u(c(l)),e=l;e=55296&&v<=56319&&(S+=t[++r])),S=x?h.call(x,k,S,m):S,e?(p.value=S,d(_,m,p)):_[m]=S,++m;g=m}if(void 0===g)for(g=s(t.length),e&&(_=new e(g)),r=0;r0?1:-1}},{}],30:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Number.isNaN:t("./shim")},{"./is-implemented":31,"./shim":32}],31:[function(t,e,r){"use strict";e.exports=function(){var t=Number.isNaN;return"function"===typeof t&&(!t({})&&t(NaN)&&!t(34))}},{}],32:[function(t,e,r){"use strict";e.exports=function(t){return t!==t}},{}],33:[function(t,e,r){"use strict";var n=t("../math/sign"),i=Math.abs,o=Math.floor;e.exports=function(t){return isNaN(t)?0:(t=Number(t),0!==t&&isFinite(t)?n(t)*o(i(t)):t)}},{"../math/sign":27}],34:[function(t,e,r){"use strict";var n=t("./to-integer"),i=Math.max;e.exports=function(t){return i(0,n(t))}},{"./to-integer":33}],35:[function(t,e,r){"use strict";var n=t("./valid-callable"),i=t("./valid-value"),o=Function.prototype.bind,s=Function.prototype.call,a=Object.keys,c=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,u){var l,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(u),l=a(r),h&&l.sort("function"===typeof h?o.call(h,r):void 0),"function"!==typeof t&&(t=l[t]),s.call(t,l,(function(t,n){return c.call(r,t)?s.call(u,f,r[t],t,r,n):e}))}}},{"./valid-callable":54,"./valid-value":55}],36:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Object.assign:t("./shim")},{"./is-implemented":37,"./shim":38}],37:[function(t,e,r){"use strict";e.exports=function(){var t,e=Object.assign;return"function"===typeof e&&(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},{}],38:[function(t,e,r){"use strict";var n=t("../keys"),i=t("../valid-value"),o=Math.max;e.exports=function(t,e){var r,s,a,c=o(arguments.length,2);for(t=Object(i(t)),a=function(n){try{t[n]=e[n]}catch(i){r||(r=i)}},s=1;s-1}},{}],59:[function(t,e,r){"use strict";var n=Object.prototype.toString,i=n.call("");e.exports=function(t){return"string"===typeof t||t&&"object"===typeof t&&(t instanceof String||n.call(t)===i)||!1}},{}],60:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),o=t("es5-ext/string/#/contains"),s=t("d"),a=t("es6-symbol"),c=t("./"),u=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");c.call(this,t),e=e?o.call(e,"key+value")?"key+value":o.call(e,"key")?"key":"value":"value",u(this,"__kind__",s("",e))},i&&i(n,c),delete n.prototype.constructor,n.prototype=Object.create(c.prototype,{_resolve:s((function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}))}),u(n.prototype,a.toStringTag,s("c","Array Iterator"))},{"./":63,d:16,"es5-ext/object/set-prototype-of":51,"es5-ext/string/#/contains":56,"es6-symbol":73}],61:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/object/valid-callable"),o=t("es5-ext/string/is-string"),s=t("./get"),a=Array.isArray,c=Function.prototype.call,u=Array.prototype.some;e.exports=function(t,e){var r,l,f,h,p,d,m,_,g=arguments[2];if(a(t)||n(t)?r="array":o(t)?r="string":t=s(t),i(e),f=function(){h=!0},"array"!==r){if("string"!==r){l=t.next();while(!l.done){if(c.call(e,g,l.value,f),h)return;l=t.next()}}else for(d=t.length,p=0;p=55296&&_<=56319&&(m+=t[++p])),c.call(e,g,m,f),h)break}else u.call(t,(function(t){return c.call(e,g,t,f),h}))}},{"./get":62,"es5-ext/function/is-arguments":24,"es5-ext/object/valid-callable":54,"es5-ext/string/is-string":59}],62:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/string/is-string"),o=t("./array"),s=t("./string"),a=t("./valid-iterable"),c=t("es6-symbol").iterator;e.exports=function(t){return"function"===typeof a(t)[c]?t[c]():n(t)?new o(t):i(t)?new s(t):new o(t)}},{"./array":60,"./string":65,"./valid-iterable":66,"es5-ext/function/is-arguments":24,"es5-ext/string/is-string":59,"es6-symbol":73}],63:[function(t,e,r){"use strict";var n,i=t("es5-ext/array/#/clear"),o=t("es5-ext/object/assign"),s=t("es5-ext/object/valid-callable"),a=t("es5-ext/object/valid-value"),c=t("d"),u=t("d/auto-bind"),l=t("es6-symbol"),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");h(this,{__list__:c("w",a(t)),__context__:c("w",e),__nextIndex__:c("w",0)}),e&&(s(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},delete n.prototype.constructor,h(n.prototype,o({_next:c((function(){var t;if(this.__list__)return this.__redo__&&(t=this.__redo__.shift(),void 0!==t)?t:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e>=t&&(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,"__redo__",c("c",[t])))})),_onDelete:c((function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(e=this.__redo__.indexOf(t),-1!==e&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e>t&&(this.__redo__[r]=--e)}),this)))})),_onClear:c((function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,l.iterator,c((function(){return this})))},{d:16,"d/auto-bind":15,"es5-ext/array/#/clear":19,"es5-ext/object/assign":36,"es5-ext/object/valid-callable":54,"es5-ext/object/valid-value":55,"es6-symbol":73}],64:[function(t,e,r){"use strict";var n=t("es5-ext/function/is-arguments"),i=t("es5-ext/object/is-value"),o=t("es5-ext/string/is-string"),s=t("es6-symbol").iterator,a=Array.isArray;e.exports=function(t){return!!i(t)&&(!!a(t)||(!!o(t)||(!!n(t)||"function"===typeof t[s])))}},{"es5-ext/function/is-arguments":24,"es5-ext/object/is-value":44,"es5-ext/string/is-string":59,"es6-symbol":73}],65:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),o=t("d"),s=t("es6-symbol"),a=t("./"),c=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");t=String(t),a.call(this,t),c(this,"__length__",o("",t.length))},i&&i(n,a),delete n.prototype.constructor,n.prototype=Object.create(a.prototype,{_next:o((function(){if(this.__list__)return this.__nextIndex__=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r)}))}),c(n.prototype,s.toStringTag,o("c","String Iterator"))},{"./":63,d:16,"es5-ext/object/set-prototype-of":51,"es6-symbol":73}],66:[function(t,e,r){"use strict";var n=t("./is-iterable");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not iterable");return t}},{"./is-iterable":64}],67:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Map:t("./polyfill")},{"./is-implemented":68,"./polyfill":72}],68:[function(t,e,r){"use strict";e.exports=function(){var t,e,r;if("function"!==typeof Map)return!1;try{t=new Map([["raz","one"],["dwa","two"],["trzy","three"]])}catch(n){return!1}return"[object Map]"===String(t)&&(3===t.size&&("function"===typeof t.clear&&("function"===typeof t.delete&&("function"===typeof t.entries&&("function"===typeof t.forEach&&("function"===typeof t.get&&("function"===typeof t.has&&("function"===typeof t.keys&&("function"===typeof t.set&&("function"===typeof t.values&&(e=t.entries(),r=e.next(),!1===r.done&&(!!r.value&&("raz"===r.value[0]&&"one"===r.value[1])))))))))))))}},{}],69:[function(t,e,r){"use strict";e.exports=function(){return"undefined"!==typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map)}()},{}],70:[function(t,e,r){"use strict";e.exports=t("es5-ext/object/primitive-set")("key","value","key+value")},{"es5-ext/object/primitive-set":50}],71:[function(t,e,r){"use strict";var n,i=t("es5-ext/object/set-prototype-of"),o=t("d"),s=t("es6-iterator"),a=t("es6-symbol").toStringTag,c=t("./iterator-kinds"),u=Object.defineProperties,l=s.prototype._unBind;n=e.exports=function(t,e){if(!(this instanceof n))return new n(t,e);s.call(this,t.__mapKeysData__,t),e&&c[e]||(e="key+value"),u(this,{__kind__:o("",e),__values__:o("w",t.__mapValuesData__)})},i&&i(n,s),n.prototype=Object.create(s.prototype,{constructor:o(n),_resolve:o((function(t){return"value"===this.__kind__?this.__values__[t]:"key"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__values__[t]]})),_unBind:o((function(){this.__values__=null,l.call(this)})),toString:o((function(){return"[object Map Iterator]"}))}),Object.defineProperty(n.prototype,a,o("c","Map Iterator"))},{"./iterator-kinds":70,d:16,"es5-ext/object/set-prototype-of":51,"es6-iterator":63,"es6-symbol":73}],72:[function(t,e,r){"use strict";var n,i=t("es5-ext/array/#/clear"),o=t("es5-ext/array/#/e-index-of"),s=t("es5-ext/object/set-prototype-of"),a=t("es5-ext/object/valid-callable"),c=t("es5-ext/object/valid-value"),u=t("d"),l=t("event-emitter"),f=t("es6-symbol"),h=t("es6-iterator/valid-iterable"),p=t("es6-iterator/for-of"),d=t("./lib/iterator"),m=t("./is-native-implemented"),_=Function.prototype.call,g=Object.defineProperties,v=Object.getPrototypeOf;e.exports=n=function(){var t,e,r,i=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return r=m&&s&&Map!==n?s(new Map,v(this)):this,null!=i&&h(i),g(r,{__mapKeysData__:u("c",t=[]),__mapValuesData__:u("c",e=[])}),i?(p(i,(function(r){var n=c(r)[0];r=r[1],-1===o.call(t,n)&&(t.push(n),e.push(r))}),r),r):r},m&&(s&&s(n,Map),n.prototype=Object.create(Map.prototype,{constructor:u(n)})),l(g(n.prototype,{clear:u((function(){this.__mapKeysData__.length&&(i.call(this.__mapKeysData__),i.call(this.__mapValuesData__),this.emit("_clear"))})),delete:u((function(t){var e=o.call(this.__mapKeysData__,t);return-1!==e&&(this.__mapKeysData__.splice(e,1),this.__mapValuesData__.splice(e,1),this.emit("_delete",e,t),!0)})),entries:u((function(){return new d(this,"key+value")})),forEach:u((function(t){var e,r,n=arguments[1];a(t),e=this.entries(),r=e._next();while(void 0!==r)_.call(t,n,this.__mapValuesData__[r],this.__mapKeysData__[r],this),r=e._next()})),get:u((function(t){var e=o.call(this.__mapKeysData__,t);if(-1!==e)return this.__mapValuesData__[e]})),has:u((function(t){return-1!==o.call(this.__mapKeysData__,t)})),keys:u((function(){return new d(this,"key")})),set:u((function(t,e){var r,n=o.call(this.__mapKeysData__,t);return-1===n&&(n=this.__mapKeysData__.push(t)-1,r=!0),this.__mapValuesData__[n]=e,r&&this.emit("_add",n,t),this})),size:u.gs((function(){return this.__mapKeysData__.length})),values:u((function(){return new d(this,"value")})),toString:u((function(){return"[object Map]"}))})),Object.defineProperty(n.prototype,f.iterator,u((function(){return this.entries()}))),Object.defineProperty(n.prototype,f.toStringTag,u("c","Map"))},{"./is-native-implemented":69,"./lib/iterator":71,d:16,"es5-ext/array/#/clear":19,"es5-ext/array/#/e-index-of":20,"es5-ext/object/set-prototype-of":51,"es5-ext/object/valid-callable":54,"es5-ext/object/valid-value":55,"es6-iterator/for-of":61,"es6-iterator/valid-iterable":66,"es6-symbol":73,"event-emitter":78}],73:[function(t,e,r){"use strict";e.exports=t("./is-implemented")()?Symbol:t("./polyfill")},{"./is-implemented":74,"./polyfill":76}],74:[function(t,e,r){"use strict";var n={object:!0,symbol:!0};e.exports=function(){var t;if("function"!==typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(e){return!1}return!!n[typeof Symbol.iterator]&&(!!n[typeof Symbol.toPrimitive]&&!!n[typeof Symbol.toStringTag])}},{}],75:[function(t,e,r){"use strict";e.exports=function(t){return!!t&&("symbol"===typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},{}],76:[function(t,e,r){"use strict";var n,i,o,s,a=t("d"),c=t("./validate-symbol"),u=Object.create,l=Object.defineProperties,f=Object.defineProperty,h=Object.prototype,p=u(null);if("function"===typeof Symbol){n=Symbol;try{String(n()),s=!0}catch(m){}}var d=function(){var t=u(null);return function(e){var r,n,i=0;while(t[e+(i||"")])++i;return e+=i||"",t[e]=!0,r="@@"+e,f(h,r,a.gs(null,(function(t){n||(n=!0,f(this,r,a(t)),n=!1)}))),r}}();o=function(t){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return i(t)},e.exports=i=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return s?n(e):(r=u(o.prototype),e=void 0===e?"":String(e),l(r,{__description__:a("",e),__name__:a("",d(e))}))},l(i,{for:a((function(t){return p[t]?p[t]:p[t]=i(String(t))})),keyFor:a((function(t){var e;for(e in c(t),p)if(p[e]===t)return e})),hasInstance:a("",n&&n.hasInstance||i("hasInstance")),isConcatSpreadable:a("",n&&n.isConcatSpreadable||i("isConcatSpreadable")),iterator:a("",n&&n.iterator||i("iterator")),match:a("",n&&n.match||i("match")),replace:a("",n&&n.replace||i("replace")),search:a("",n&&n.search||i("search")),species:a("",n&&n.species||i("species")),split:a("",n&&n.split||i("split")),toPrimitive:a("",n&&n.toPrimitive||i("toPrimitive")),toStringTag:a("",n&&n.toStringTag||i("toStringTag")),unscopables:a("",n&&n.unscopables||i("unscopables"))}),l(o.prototype,{constructor:a(i),toString:a("",(function(){return this.__name__}))}),l(i.prototype,{toString:a((function(){return"Symbol ("+c(this).__description__+")"})),valueOf:a((function(){return c(this)}))}),f(i.prototype,i.toPrimitive,a("",(function(){var t=c(this);return"symbol"===typeof t?t:t.toString()}))),f(i.prototype,i.toStringTag,a("c","Symbol")),f(o.prototype,i.toStringTag,a("c",i.prototype[i.toStringTag])),f(o.prototype,i.toPrimitive,a("c",i.prototype[i.toPrimitive]))},{"./validate-symbol":77,d:16}],77:[function(t,e,r){"use strict";var n=t("./is-symbol");e.exports=function(t){if(!n(t))throw new TypeError(t+" is not a symbol");return t}},{"./is-symbol":75}],78:[function(t,e,r){"use strict";var n,i,o,s,a,c,u,l=t("d"),f=t("es5-ext/object/valid-callable"),h=Function.prototype.apply,p=Function.prototype.call,d=Object.create,m=Object.defineProperty,_=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(t,e){var r;return f(e),g.call(this,"__ee__")?r=this.__ee__:(r=v.value=d(null),m(this,"__ee__",v),v.value=null),r[t]?"object"===typeof r[t]?r[t].push(e):r[t]=[r[t],e]:r[t]=e,this},i=function(t,e){var r,i;return f(e),i=this,n.call(this,t,r=function(){o.call(i,t,r),h.call(e,this,arguments)}),r.__eeOnceListener__=e,this},o=function(t,e){var r,n,i,o;if(f(e),!g.call(this,"__ee__"))return this;if(r=this.__ee__,!r[t])return this;if(n=r[t],"object"===typeof n)for(o=0;i=n[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===n.length?r[t]=n[o?0:1]:n.splice(o,1));else n!==e&&n.__eeOnceListener__!==e||delete r[t];return this},s=function(t){var e,r,n,i,o;if(g.call(this,"__ee__")&&(i=this.__ee__[t],i))if("object"===typeof i){for(r=arguments.length,o=new Array(r-1),e=1;e>1,l=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),e+=s+f>=1?h/c:h*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[r+p]=255&s,p+=d,s/=256,u-=8);t[r+p-d]|=128*m}},{}],80:[function(t,e,r){"function"===typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],81:[function(t,e,r){function n(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||i(t)||!!t._isBuffer)}},{}],82:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=e.exports;for(var o in i.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},i.codes={},i.types){var s=i.types[o];i.codes[s]=o}for(var a in i.CMD_SHIFT=4,i.CMD_MASK=240,i.DUP_MASK=8,i.QOS_MASK=3,i.QOS_SHIFT=1,i.RETAIN_MASK=1,i.LENGTH_MASK=127,i.LENGTH_FIN_MASK=128,i.SESSIONPRESENT_MASK=1,i.SESSIONPRESENT_HEADER=n.from([i.SESSIONPRESENT_MASK]),i.CONNACK_HEADER=n.from([i.codes["connack"]<this.length)&&(n=this.length),r>=this.length)return t||o.alloc(0);if(n<=0)return t||o.alloc(0);var i,s,a=!!t,c=this._offset(r),u=n-r,l=u,f=a&&e||0,h=c[1];if(0===r&&n==this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(s=0;si)){this._bufs[s].copy(t,f,h,h+l);break}this._bufs[s].copy(t,f,h),f+=i,l-=i,h&&(h=0)}return t},s.prototype.shallowSlice=function(t,e){t=t||0,e=e||this.length,t<0&&(t+=this.length),e<0&&(e+=this.length);var r=this._offset(t),n=this._offset(e),i=this._bufs.slice(r[0],n[0]+1);return 0==n[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,n[1]),0!=r[1]&&(i[0]=i[0].slice(r[1])),new s(i)},s.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)},s.prototype.consume=function(t){while(this._bufs.length){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){for(var t=0,e=new s;t>8,0),e.writeUInt8(255&t,1),e}function a(){for(var t=0;t=0&&t<128?1:t>=128&&t<16384?2:t>=16384&&t<2097152?3:t>=2097152&&t<268435456?4:0}function u(t){var e=0,r=0,i=c(t),o=n.allocUnsafe(i);do{e=t%128|0,t=t/128|0,t>0&&(e|=128),o.writeUInt8(e,r++)}while(t>0);return{data:o,length:i}}function l(t){var e=n.allocUnsafe(4);return e.writeUInt32BE(t,0),e}e.exports={cache:o,generateCache:a,generateNumber:s,genBufVariableByteInt:u,generate4ByteBuffer:l}},{"safe-buffer":110}],87:[function(t,e,r){function n(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}e.exports=n},{}],88:[function(t,e,r){"use strict";var n=t("bl"),i=t("inherits"),o=t("events").EventEmitter,s=t("./packet"),a=t("./constants");function c(t){if(!(this instanceof c))return new c(t);this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState()}i(c,o),c.prototype._resetState=function(){this.packet=new s,this.error=null,this._list=n(),this._stateCounter=0},c.prototype.parse=function(t){this.error&&this._resetState(),this._list.append(t);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,this._stateCounter>=this._states.length&&(this._stateCounter=0);return this._list.length},c.prototype._parseHeader=function(){var t=this._list.readUInt8(0);return this.packet.cmd=a.types[t>>a.CMD_SHIFT],this.packet.retain=0!==(t&a.RETAIN_MASK),this.packet.qos=t>>a.QOS_SHIFT&a.QOS_MASK,this.packet.dup=0!==(t&a.DUP_MASK),this._list.consume(1),!0},c.prototype._parseLength=function(){var t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),!!t},c.prototype._parsePayload=function(){var t=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return t},c.prototype._parseConnect=function(){var t,e,r,n,i,o,s={},c=this.packet;if(t=this._parseString(),null===t)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==t&&"MQIsdp"!==t)return this._emitError(new Error("Invalid protocolId"));if(c.protocolId=t,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(c.protocolVersion=this._list.readUInt8(this._pos),3!==c.protocolVersion&&4!==c.protocolVersion&&5!==c.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(s.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,s.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,s.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK,s.will&&(c.will={},c.will.retain=0!==(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),c.will.qos=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT),c.clean=0!==(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK),this._pos++,c.keepalive=this._parseNum(),-1===c.keepalive)return this._emitError(new Error("Packet too short"));if(5===c.protocolVersion){var u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(e=this._parseString(),null===e)return this._emitError(new Error("Packet too short"));if(c.clientId=e,s.will){if(5===c.protocolVersion){var l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(c.will.properties=l)}if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse will topic"));if(c.will.topic=r,n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse will payload"));c.will.payload=n}if(s.username){if(o=this._parseString(),null===o)return this._emitError(new Error("Cannot parse username"));c.username=o}if(s.password){if(i=this._parseBuffer(),null===i)return this._emitError(new Error("Cannot parse password"));c.password=i}return this.settings=c,c},c.prototype._parseConnack=function(){var t=this.packet;if(this._list.length<2)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&a.SESSIONPRESENT_MASK),5===this.settings.protocolVersion?t.reasonCode=this._list.readUInt8(this._pos++):t.returnCode=this._list.readUInt8(this._pos++),-1===t.returnCode||-1===t.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){var e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}},c.prototype._parsePublish=function(){var t=this.packet;if(t.topic=this._parseString(),null===t.topic)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){var e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}t.payload=this._list.slice(this._pos,t.length)}},c.prototype._parseSubscribe=function(){var t,e,r,n,i,o,s,c=this.packet;if(1!==c.qos)return this._emitError(new Error("Wrong subscribe header"));if(c.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}while(this._pos>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK),i=0!==(e>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK),n=e>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,s={topic:t,qos:r},5===this.settings.protocolVersion&&(s.nl=o,s.rap=i,s.rh=n),c.subscriptions.push(s)}}},c.prototype._parseSuback=function(){var t=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}while(this._pos2){t.reasonCode=this._parseByte();var e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}return!0},c.prototype._parseDisconnect=function(){var t=this.packet;if(5===this.settings.protocolVersion){t.reasonCode=this._parseByte();var e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}return!0},c.prototype._parseAuth=function(){var t=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();var e=this._parseProperties();return Object.getOwnPropertyNames(e).length&&(t.properties=e),!0},c.prototype._parseMessageId=function(){var t=this.packet;return t.messageId=this._parseNum(),null!==t.messageId||(this._emitError(new Error("Cannot parse messageId")),!1)},c.prototype._parseString=function(t){var e,r=this._parseNum(),n=r+this._pos;return-1===r||n>this._list.length||n>this.packet.length?null:(e=this._list.toString("utf8",this._pos,n),this._pos+=r,e)},c.prototype._parseStringPair=function(){return{name:this._parseString(),value:this._parseString()}},c.prototype._parseBuffer=function(){var t,e=this._parseNum(),r=e+this._pos;return-1===e||r>this._list.length||r>this.packet.length?null:(t=this._list.slice(this._pos,r),this._pos+=e,t)},c.prototype._parseNum=function(){if(this._list.length-this._pos<2)return-1;var t=this._list.readUInt16BE(this._pos);return this._pos+=2,t},c.prototype._parse4ByteNum=function(){if(this._list.length-this._pos<4)return-1;var t=this._list.readUInt32BE(this._pos);return this._pos+=4,t},c.prototype._parseVarByteNum=function(t){var e,r=0,n=1,i=0,o=!0,s=this._pos?this._pos:0;while(r<5){if(e=this._list.readUInt8(s+r++),i+=n*(e&a.LENGTH_MASK),n*=128,0===(e&a.LENGTH_FIN_MASK))break;if(this._list.length<=r){o=!1;break}}return s&&(this._pos+=r),o=!!o&&(t?{bytes:r,value:i}:i),o},c.prototype._parseByte=function(){var t=this._list.readUInt8(this._pos);return this._pos++,t},c.prototype._parseByType=function(t){switch(t){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}},c.prototype._parseProperties=function(){var t=this._parseVarByteNum(),e=this._pos,r=e+t,n={};while(this._pos65535||l%1!==0)return e.emit("error",new Error("Invalid keepalive")),!1;if(_+=2,_+=1,5===a){var g=R(e,m);_+=g.length}if(c){if("object"!==typeof c)return e.emit("error",new Error("Invalid will")),!1;if(!c.topic||"string"!==typeof c.topic)return e.emit("error",new Error("Invalid will topic")),!1;if(_+=i.byteLength(c.topic)+2,c.payload){if(!(c.payload.length>=0))return e.emit("error",new Error("Invalid will payload")),!1;"string"===typeof c.payload?_+=i.byteLength(c.payload)+2:_+=c.payload.length+2;var v={};5===a&&(v=R(e,c.properties),_+=v.length)}}var b=!1;if(null!=h){if(!q(h))return e.emit("error",new Error("Invalid username")),!1;b=!0,_+=i.byteLength(h)+2}if(null!=p){if(!b)return e.emit("error",new Error("Username is required to use password")),!1;if(!q(p))return e.emit("error",new Error("Invalid password")),!1;_+=D(p)+2}e.write(n.CONNECT_HEADER),T(e,_),N(e,s),e.write(4===a?n.VERSION4:5===a?n.VERSION5:n.VERSION3);var y=0;return y|=null!=h?n.USERNAME_MASK:0,y|=null!=p?n.PASSWORD_MASK:0,y|=c&&c.retain?n.WILL_RETAIN_MASK:0,y|=c&&c.qos?c.qos<0&&d(e,h),null!=_&&_.write(),e.write(f)}function w(t,e,r){var o=r?r.protocolVersion:4,s=t||{},a=s.cmd||"puback",c=s.messageId,u=s.dup&&"pubrel"===a?n.DUP_MASK:0,l=0,f=s.reasonCode,h=s.properties,p=5===o?3:2;if("pubrel"===a&&(l=1),"number"!==typeof c)return e.emit("error",new Error("Invalid messageId")),!1;var m=null;if(5===o){if(m=L(e,h,r,p),!m)return!1;p+=m.length}return e.write(n.ACKS[a][l][u][0]),T(e,p),d(e,c),5===o&&e.write(i.from([f])),null!==m&&m.write(),!0}function S(t,e,r){var o=r?r.protocolVersion:4,s=t||{},a=s.dup?n.DUP_MASK:0,c=s.messageId,u=s.subscriptions,l=s.properties,f=0;if("number"!==typeof c)return e.emit("error",new Error("Invalid messageId")),!1;f+=2;var h=null;if(5===o&&(h=R(e,l),f+=h.length),"object"!==typeof u||!u.length)return e.emit("error",new Error("Invalid subscriptions")),!1;for(var p=0;p2)return e.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}f+=i.byteLength(m)+2+1}e.write(n.SUBSCRIBE_HEADER[1][a?1:0][0]),T(e,f),d(e,c),null!==h&&h.write();for(var y=!0,w=0;wo){var a=i.shift();if(!a||!e[a])return!1;delete e[a],s=R(t,e)}return s}function U(t,e,r){for(var o in T(t,r),e)if(e.hasOwnProperty(o)&&null!==e[o]){var s=e[o],a=n.propertiesTypes[o];switch(a){case"byte":t.write(i.from([n.properties[o]])),t.write(i.from([+s]));break;case"int8":t.write(i.from([n.properties[o]])),t.write(i.from([s]));break;case"binary":t.write(i.from([n.properties[o]])),N(t,s);break;case"int16":t.write(i.from([n.properties[o]])),d(t,s);break;case"int32":t.write(i.from([n.properties[o]])),$(t,s);break;case"var":t.write(i.from([n.properties[o]])),T(t,s);break;case"string":t.write(i.from([n.properties[o]])),A(t,s);break;case"pair":Object.getOwnPropertyNames(s).forEach((function(e){t.write(i.from([n.properties[o]])),P(t,e.toString(),s[e].toString())}));break;default:return t.emit("error",new Error("Invalid property "+o)),!1}}}function D(t){return t?t instanceof i?t.length:i.byteLength(t):0}function q(t){return"string"===typeof t||t instanceof i}e.exports=_},{"./constants":82,"./numbers":86,"process-nextick-args":91,"safe-buffer":110}],90:[function(t,e,r){var n=t("wrappy");function i(t){var e=function e(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function o(t){var e=function e(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:120}],91:[function(t,e,r){(function(t){"use strict";function r(e,r,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:o=new Array(a-1),s=0;while(s1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,k=Math.floor,E=String.fromCharCode;function O(t){throw new RangeError(S[t])}function I(t,e){var r=t.length,n=[];while(r--)n[r]=e(t[r]);return n}function j(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(w,".");var i=t.split("."),o=I(i,e).join(".");return n+o}function C(t){var e,r,n=[],i=0,o=t.length;while(i=55296&&e<=56319&&i65535&&(t-=65536,e+=E(t>>>10&1023|55296),t=56320|1023&t),e+=E(t),e})).join("")}function A(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:f}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function M(t,e,r){var n=0;for(t=r?k(t/m):t>>1,t+=k(t/e);t>x*p>>1;n+=f)t=k(t/x);return k(n+(x+1)*t/(t+d))}function B(t){var e,r,n,i,o,s,a,c,u,d,m=[],b=t.length,y=0,w=g,S=_;for(r=t.lastIndexOf(v),r<0&&(r=0),n=0;n=128&&O("not-basic"),m.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=b&&O("invalid-input"),c=A(t.charCodeAt(i++)),(c>=f||c>k((l-y)/s))&&O("overflow"),y+=c*s,u=a<=S?h:a>=S+p?p:a-S,ck(l/d)&&O("overflow"),s*=d}e=m.length+1,S=M(y-o,e,0==o),k(y/e)>l-w&&O("overflow"),w+=k(y/e),y%=e,m.splice(y++,0,w)}return T(m)}function $(t){var e,r,n,i,o,s,a,c,u,d,m,b,y,w,S,x=[];for(t=C(t),b=t.length,e=g,r=0,o=_,s=0;s=e&&mk((l-r)/y)&&O("overflow"),r+=(a-e)*y,e=a,s=0;sl&&O("overflow"),m==e){for(c=r,u=f;;u+=f){if(d=u<=o?h:u>=o+p?p:u-o,c0&&u>c&&(u=c);for(var l=0;l=0?(f=m.substr(0,_),h=m.substr(_+1)):(f=m,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(s,p)?i(s[p])?s[p].push(d):s[p]=[s[p],d]:s[p]=d}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],95:[function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?o(s(t),(function(s){var a=encodeURIComponent(n(s))+r;return i(t[s])?o(t[s],(function(t){return a+encodeURIComponent(n(t))})).join(e):a+encodeURIComponent(n(t[s]))})).join(e):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n0?("string"===typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=f(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):k(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?k(t,s,e,!1):M(t,s)):k(t,s,e,!1))):n||(s.reading=!1));return O(s)}function k(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&A(t)),M(t,e)}function E(t,e){var r;return h(e)||"string"===typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function O(t){return!t.ended&&(t.needReadable||t.length=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function C(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=j(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function T(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,A(t)}}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(P,t):P(t))}function P(t){m("emit readable"),t.emit("readable"),U(t)}function M(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(B,t,e))}function B(t,e){var r=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=q(t,e.buffer,e.decoder),r);var r}function q(t,e,r){var n;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),t-=s,0===t){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++n}return e.length-=n,i}function z(t,e){var r=u.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;while(n=n.next){var o=n.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),t-=s,0===t){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}function V(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(H,e,t))}function H(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function W(t,e){for(var r=0,n=t.length;r=e.highWaterMark||e.ended))return m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?V(this):A(this),null;if(t=C(t,e),0===t&&e.ended)return 0===e.length&&V(this),null;var n,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t0?D(t,e):null,null===n?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&V(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(t,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,r);var s=(!r||!1!==r.end)&&t!==e.stdout&&t!==e.stderr,c=s?l:w;function u(t,e){m("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,p())}function l(){m("onend"),t.end()}o.endEmitted?i.nextTick(c):n.once("end",c),t.on("unpipe",u);var f=$(n);t.on("drain",f);var h=!1;function p(){m("cleanup"),t.removeListener("close",v),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",g),t.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",w),n.removeListener("data",_),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f()}var d=!1;function _(e){m("ondata"),d=!1;var r=t.write(e);!1!==r||d||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==W(o.pipes,t))&&!h&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function g(e){m("onerror",e),w(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",b),w()}function b(){m("onfinish"),t.removeListener("close",v),w()}function w(){m("unpipe"),n.unpipe(t)}return n.on("data",_),y(t,"error",g),t.once("close",v),t.once("finish",b),t.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};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,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?i:o.nextTick;y.WritableState=b;var u=t("core-util-is");u.inherits=t("inherits");var l={deprecate:t("util-deprecate")},f=t("./internal/streams/stream"),h=t("safe-buffer").Buffer,p=n.Uint8Array||function(){};function d(t){return h.from(t)}function m(t){return h.isBuffer(t)||t instanceof p}var _,g=t("./internal/streams/destroy");function v(){}function b(e,r){a=a||t("./_stream_duplex"),e=e||{};var n=r instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,o=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){j(r,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 s(this)}function y(e){if(a=a||t("./_stream_duplex"),!_.call(y,this)&&!(this instanceof a))return new y(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function w(t,e){var r=new Error("write after end");t.emit("error",r),o.nextTick(e,r)}function S(t,e,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),o.nextTick(n,s),i=!1),i}function x(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=h.from(e,r)),e}function k(t,e,r,n,i,o){if(!r){var s=x(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;"function"===typeof t?(r=t,t=null,e=null):"function"===typeof e&&(r=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||N(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},t("timers").setImmediate)},{"./_stream_duplex":98,"./internal/streams/destroy":104,"./internal/streams/stream":105,_process:92,"core-util-is":14,inherits:80,"process-nextick-args":91,"safe-buffer":110,timers:112,"util-deprecate":115}],103:[function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=t("safe-buffer").Buffer,o=t("util");function s(t,e,r){t.copy(e,r)}e.exports=function(){function t(){n(this,t),this.head=null,this.tail=null,this.length=0}return t.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},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.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}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";var e=this.head,r=""+e.data;while(e=e.next)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var e=i.allocUnsafe(t>>>0),r=this.head,n=0;while(r)s(r.data,e,n),n+=r.data.length,r=r.next;return e},t}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":110,util:11}],104:[function(t,e,r){"use strict";var n=t("process-nextick-args");function i(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(s,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(s,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}e.exports={destroy:i,undestroy:o}},{"process-nextick-args":91}],105:[function(t,e,r){e.exports=t("events").EventEmitter},{events:13}],106:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],107:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch(t=""+t,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 o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function s(t){var e=o(t);if("string"!==typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function a(t){var e;switch(this.encoding=s(t),this.encoding){case"utf16le":this.text=d,this.end=m,e=4;break;case"utf8":this.fillLast=f,e=4;break;case"base64":this.text=_,this.end=g,e=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function c(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function u(t,e,r){var n=e.length-1;if(n=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function l(t,e,r){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}function f(t){var e=this.lastTotal-this.lastNeed,r=l(this,t,e);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function h(t,e){var r=u(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e}function d(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function m(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function _(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function b(t){return t&&t.length?this.write(t):""}r.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r0){t=new Array(arguments.length-2);for(var e=0;e=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r.setImmediate="function"===typeof e?e:function(t){var e=c++,n=!(arguments.length<2)&&s.call(arguments,1);return a[e]=!0,i((function(){a[e]&&(n?t.apply(null,n):t.call(null),r.clearImmediate(e))})),e},r.clearImmediate="function"===typeof n?n:function(t){delete a[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":92,timers:112}],113:[function(t,e,r){"use strict";var n=t("punycode"),i=t("./util");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=w,r.resolve=x,r.resolveObject=k,r.format=S,r.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),f=["'"].concat(l),h=["%","/","?",";","#"].concat(f),p=["/","?","#"],d=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=t("querystring");function w(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}function S(t){return i.isString(t)&&(t=w(t)),t instanceof o?t.format():o.prototype.format.call(t)}function x(t,e){return w(t,!1,!0).resolve(e)}function k(t,e){return t?w(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o127?$+="x":$+=B[N];if(!$.match(m)){var L=P.slice(0,C),U=P.slice(C+1),D=B.match(_);D&&(L.push(D[1]),U.unshift(D[2])),U.length&&(w="/"+U.join(".")+w),this.hostname=L.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var q=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+q,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[k])for(C=0,M=f.length;C0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=x.slice(-1)[0],I=(r.host||t.host||x.length>1)&&("."===O||".."===O)||""===O,j=0,C=x.length;C>=0;C--)O=x[C],"."===O?x.splice(C,1):".."===O?(x.splice(C,1),j++):j&&(x.splice(C,1),j--);if(!w&&!S)for(;j--;j)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),I&&"/"!==x.join("/").substr(-1)&&x.push("");var T=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(k){r.hostname=r.host=T?"":x.length?x.shift():"";E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return w=w||r.host&&x.length,w&&!T&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":114,punycode:93,querystring:96}],114:[function(t,e,r){"use strict";e.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],115:[function(t,r,i){(function(t){function e(t,e){if(i("noDeprecation"))return t;var r=!1;function o(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):n("warn",e," at utils/mqtt.min.js:1"),r=!0}return t.apply(this,arguments)}return o}function i(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}r.exports=e}).call(this,"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],116:[function(t,e,r){e.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},{}],117:[function(t,r,i){(function(e,r){var o=/%[sdj%]/g;i.format=function(t){if(!x(t)){for(var e=[],r=0;r=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}})),a=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(e)?r.showHidden=e:e&&i._extend(r,e),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),h(r,t,r.depth)}function u(t,e){var r=c.styles[e];return r?"\x1b["+c.colors[r][0]+"m"+t+"\x1b["+c.colors[r][1]+"m":t}function l(t,e){return t}function f(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}function h(t,e,r){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==i.inspect&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return x(n)||(n=h(t,n,r)),n}var o=p(t,e);if(o)return o;var s=Object.keys(e),a=f(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),C(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(e);if(0===s.length){if(T(e)){var c=e.name?": "+e.name:"";return t.stylize("[Function"+c+"]","special")}if(O(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(j(e))return t.stylize(Date.prototype.toString.call(e),"date");if(C(e))return d(e)}var u,l="",b=!1,y=["{","}"];if(v(e)&&(b=!0,y=["[","]"]),T(e)){var w=e.name?": "+e.name:"";l=" [Function"+w+"]"}return O(e)&&(l=" "+RegExp.prototype.toString.call(e)),j(e)&&(l=" "+Date.prototype.toUTCString.call(e)),C(e)&&(l=" "+d(e)),0!==s.length||b&&0!=e.length?r<0?O(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=b?m(t,e,r,a,s):s.map((function(n){return _(t,e,r,a,n,b)})),t.seen.pop(),g(u,l,y)):y[0]+l+y[1]}function p(t,e){if(E(e))return t.stylize("undefined","undefined");if(x(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return S(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function m(t,e,r,n,i){for(var o=[],s=0,a=e.length;s-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return n>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function v(t){return Array.isArray(t)}function b(t){return"boolean"===typeof t}function y(t){return null===t}function w(t){return null==t}function S(t){return"number"===typeof t}function x(t){return"string"===typeof t}function k(t){return"symbol"===typeof t}function E(t){return void 0===t}function O(t){return I(t)&&"[object RegExp]"===P(t)}function I(t){return"object"===typeof t&&null!==t}function j(t){return I(t)&&"[object Date]"===P(t)}function C(t){return I(t)&&("[object Error]"===P(t)||t instanceof Error)}function T(t){return"function"===typeof t}function A(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function P(t){return Object.prototype.toString.call(t)}function M(t){return t<10?"0"+t.toString(10):t.toString(10)}i.debuglog=function(t){if(E(s)&&(s=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(s)){var r=e.pid;a[t]=function(){var e=i.format.apply(i,arguments);n("error","%s %d: %s",t,r,e," at utils/mqtt.min.js:1")}}else a[t]=function(){};return a[t]},i.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=v,i.isBoolean=b,i.isNull=y,i.isNullOrUndefined=w,i.isNumber=S,i.isString=x,i.isSymbol=k,i.isUndefined=E,i.isRegExp=O,i.isObject=I,i.isDate=j,i.isError=C,i.isFunction=T,i.isPrimitive=A,i.isBuffer=t("./support/isBuffer");var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(":");return[t.getDate(),B[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i.log=function(){n("log","%s - %s",$(),i.format.apply(i,arguments)," at utils/mqtt.min.js:1")},i.inherits=t("inherits"),i._extend=function(t,e){if(!e||!I(e))return t;var r=Object.keys(e),n=r.length;while(n--)t[r[n]]=e[r[n]];return t}}).call(this,t("_process"),"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":116,_process:92,inherits:80}],118:[function(t,r,n){(function(e,n){"use strict";var i=t("readable-stream").Transform,o=t("duplexify"),s=t("ws"),a=t("safe-buffer").Buffer;function c(t,e,r){var n=new i({objectMode:t.objectMode});return n._write=e,n._flush=r,n}function u(t,r,i){var u,l,f="browser"===e.title,h=!!n.WebSocket,p=f?b:v;r&&!Array.isArray(r)&&"object"===typeof r&&(i=r,r=null,("string"===typeof i.protocol||Array.isArray(i.protocol))&&(r=i.protocol)),i||(i={}),void 0===i.objectMode&&(i.objectMode=!(!0===i.binary||void 0===i.binary));var d=c(i,p,y);i.objectMode||(d._writev=O);var m=i.browserBufferSize||524288,_=i.browserBufferTimeout||1e3;"object"===typeof t?l=t:(l=h&&f?new s(t,r):new s(t,r,i),l.binaryType="arraybuffer"),l.readyState===l.OPEN?u=d:(u=o.obj(),l.onopen=w),u.socket=l,l.onclose=S,l.onerror=x,l.onmessage=k,d.on("close",E);var g=!i.objectMode;function v(t,e,r){l.readyState===l.OPEN?(g&&"string"===typeof t&&(t=a.from(t,"utf8")),l.send(t,r)):r()}function b(t,e,r){if(l.bufferedAmount>m)setTimeout(b,_,t,e,r);else{g&&"string"===typeof t&&(t=a.from(t,"utf8"));try{l.send(t)}catch(n){return r(n)}r()}}function y(t){l.close(),t()}function w(){u.setReadable(d),u.setWritable(d),u.emit("connect")}function S(){u.end(),u.destroy()}function x(t){u.destroy(t)}function k(t){var e=t.data;e=e instanceof ArrayBuffer?a.from(e):a.from(e,"utf8"),d.push(e)}function E(){l.close()}function O(t,e){for(var r=new Array(t.length),n=0;nt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=lt.call(r);if("[object Array]"===n)return e=r.slice(0),e;if("[object Object]"===n){for(var i in r)e[i]=t(e[i],r[i]);return e}if("[object Date]"===n)return new Date(r.getTime());if("[object RegExp]"===n){var o=String(r),s=o.lastIndexOf("/");return new RegExp(o.slice(1,s),o.slice(s+1))}return r},ht=function(t){return ft("[object Array]"===lt.call(t)?[]:{},t)},pt=(n={},s(n,String,""),s(n,Number,0),s(n,Boolean,!1),s(n,Object,null),s(n,Array,[]),s(n,null,null),n);function dt(t){return pt[t]}function mt(t){return v(t)?b(t,"value")?t.value:dt(t.type):dt(t)}function _t(t){return v(t)?t.type:t}function gt(t,e,r,n){var i=r[t];if(void 0!==i){var o=e[t],s=_t(o);i=vt(i,s);var a=o&&o.observer;return a&&setTimeout((function(){bt(a,n,i)}),4),i}return mt(e[t])}function vt(t,e){return e===Boolean?!!t:e===String?String(t):t}function bt(t,e,r,n){try{"function"===typeof t?t.call(e,r,n):"string"===typeof t&&"function"===typeof e[t]&&e[t](r,n)}catch(i){console.error("execute observer ".concat(t," callback fail! err: ").concat(i))}}function yt(t,e){var r=t.$options.mpOptions.properties;if(r){var n=ht(t.$options.propsData)||{},i=function(i){var o=!!v(r[i])&&r[i].observer,s=gt(i,r,n,t);Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){var r=s;e===s||e!==e&&s!==s||(s=Array.isArray(e)?e.slice(0):e,o&&bt(o,t,e,r),t.$forceUpdate())}})};for(var o in r)i(o)}}function wt(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,r=t.$options.propsData;r&&e&&Object.keys(e).forEach((function(n){b(r,n)&&(t[n]=vt(r[n],_t(e[n])))}))}function St(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t[k]=e;var r={get:function(){return t[k]},set:function(e){t[k]=e}};Object.defineProperties(t,{data:r,properties:r}),t.setData=ut,yt(t,e),Object.keys(e).forEach((function(e){at(t,k,e)}))}function xt(t){var e=t.$emit;t.triggerEvent=function(r,n,i){var o={dataset:t.$el.dataset},s={target:o,currentTarget:o,detail:n,preventDefault:y,stopPropagation:y};e.call(t,r,s)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=wt}function kt(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(r){var n=e[r];if(n.mounted){var i=t[r],o=n.handler;"string"===typeof o&&(o=t[o]),o&&o.call(t,i,i)}}))}var Et={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=y},created:function(){St(this),xt(this),it(this)},mounted:function(){kt(this)},destroyed:function(){ot(this,"unlinked")}};function Ot(e){var r=P(e);r.mixins.unshift(Et),r.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=r}function It(t){t.onServiceAttached||(t.onServiceAttached=[]),t.onServiceAttached.push((function(){ot(this,"linked")}))}function jt(e){var r=X(e);r.mixins.unshift(Et),r.mpOptions.path=t.__wxRoute,It(r),t.__wxComponents[t.__wxRoute]=r}function Ct(t){return t}t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var Tt=i.default.nextTick;e.nextTick=Tt;var At=uni.__$wx__,Pt=At;e.default=Pt}).call(this,r("c8ba"))},ffd4:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("0dd7"));function i(t){return t&&t.__esModule?t:{default:t}}var o={components:{imagePopper:n.default},data:function(){return{warningLevel:1,showImgPopper:{show:!1,imgSrc:""},curInfo:{},videoUrl:""}},onBackPress:function(e){t("log",e," at pages/detail/detail.vue:49"),uni.navigateTo({url:"/pages/index/index"})},mounted:function(){var e=this;this.curInfo=getApp().globalData.curPageDetail,uni.request({url:"http://192.168.20.10:9000/video/"+this.curInfo.id,success:function(r){t("log","request success",r.data.data.videoUrl," at pages/detail/detail.vue:60"),e.videoUrl=r.data.data.videoUrl}})},methods:{goBack:function(){uni.navigateTo({url:"../index/index"})},showImg:function(){this.showImgPopper.show=!0},hideImgPopper:function(){this.showImgPopper.show=!1},getLevel:function(t){switch(t){case 1:return"\u4e00\u7ea7";case 2:return"\u4e8c\u7ea7";case 3:return"\u4e09\u7ea7";case 4:return"\u56db\u7ea7";default:break}}}};e.default=o}).call(this,r("0de9")["default"])}},[["fb94","app-config"]]]);