mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
30 lines
699 KiB
JavaScript
30 lines
699 KiB
JavaScript
(window["webpackJsonp_canoe-snap-record"]=window["webpackJsonp_canoe-snap-record"]||[]).push([["chunk-72e39099"],{"3b58":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=25)}([function(t,e,n){var i=n(11);"string"==typeof i&&(i=[[t.i,i,""]]);var r={transform:void 0};n(3)(i,r),i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function i(t){return s(t)||a(t)||o(t)||r()}function r(){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 o(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function a(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function s(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(t){t.forEach((function(t,e){document.documentElement.addEventListener(e,t)}))}function u(t){t.forEach((function(t,e){document.documentElement.removeEventListener(e,t)}))}var h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vdr",class:(t.active||t.isActive?"active":"inactive")+" "+(t.contentClass?t.contentClass:""),style:t.positionStyle,on:{mousedown:function(e){t.bodyDown(e)},touchstart:function(e){t.bodyDown(e)},touchend:function(e){t.up(e)}}},[n("div",{ref:"container",staticClass:"content-container",style:t.sizeStyle},[t._t("default")],2),t._v(" "),t._l(t.sticks,(function(e){return n("div",{staticClass:"vdr-stick",class:["vdr-stick-"+e,t.isResizable?"":"not-resizable"],style:t.vdrStick(e),on:{mousedown:function(n){n.stopPropagation(),n.preventDefault(),t.stickDown(e,n)},touchstart:function(n){n.stopPropagation(),n.preventDefault(),t.stickDown(e,n)}}})}))],2)},d=[];h._withStripped=!0;var f={y:{t:"top",m:"marginTop",b:"bottom"},x:{l:"left",m:"marginLeft",r:"right"}},p={name:"vue-drag-resize",emits:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"],props:{stickSize:{type:Number,default:8},parentScaleX:{type:Number,default:1},parentScaleY:{type:Number,default:1},isActive:{type:Boolean,default:!1},preventActiveBehavior:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},aspectRatio:{type:Boolean,default:!1},parentLimitation:{type:Boolean,default:!1},snapToGrid:{type:Boolean,default:!1},gridX:{type:Number,default:50,validator:function(t){return t>=0}},gridY:{type:Number,default:50,validator:function(t){return t>=0}},parentW:{type:Number,default:0,validator:function(t){return t>=0}},parentH:{type:Number,default:0,validator:function(t){return t>=0}},w:{type:[String,Number],default:200,validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},h:{type:[String,Number],default:200,validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},minw:{type:Number,default:50,validator:function(t){return t>=0}},minh:{type:Number,default:50,validator:function(t){return t>=0}},x:{type:Number,default:0,validator:function(t){return"number"==typeof t}},y:{type:Number,default:0,validator:function(t){return"number"==typeof t}},z:{type:[String,Number],default:"auto",validator:function(t){return"string"==typeof t?"auto"===t:t>=0}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},sticks:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]}},axis:{type:String,default:"both",validator:function(t){return-1!==["x","y","both","none"].indexOf(t)}},contentClass:{type:String,required:!1,default:""}},data:function(){return{fixAspectRatio:null,active:null,zIndex:null,parentWidth:null,parentHeight:null,left:null,top:null,right:null,bottom:null,minHeight:null}},beforeCreate:function(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null},mounted:function(){var t=this;this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-("auto"===this.w?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-("auto"===this.h?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up]]),c(this.domEvents),this.dragHandle&&i(this.$el.querySelectorAll(this.dragHandle)).forEach((function(e){e.setAttribute("data-drag-handle",t._uid)})),this.dragCancel&&i(this.$el.querySelectorAll(this.dragCancel)).forEach((function(e){e.setAttribute("data-drag-cancel",t._uid)}))},beforeDestroy:function(){u(this.domEvents)},methods:{deselect:function(){this.preventActiveBehavior||(this.active=!1)},move:function(t){if(this.stickDrag||this.bodyDrag){t.stopPropagation();var e=void 0!==t.pageX?t.pageX:t.touches[0].pageX,n=void 0!==t.pageY?t.pageY:t.touches[0].pageY,i=this.dimensionsBeforeMove,r={x:(i.pointerX-e)/this.parentScaleX,y:(i.pointerY-n)/this.parentScaleY};if(this.stickDrag&&this.stickMove(r),this.bodyDrag){if("x"===this.axis)r.y=0;else if("y"===this.axis)r.x=0;else if("none"===this.axis)return;this.bodyMove(r)}}},up:function(t){this.stickDrag?this.stickUp(t):this.bodyDrag&&this.bodyUp(t)},bodyDown:function(t){var e=t.target,n=t.button;if(this.preventActiveBehavior||(this.active=!0),(!n||0===n)&&(this.$emit("clicked",t),this.active&&!(this.dragHandle&&e.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&e.getAttribute("data-drag-cancel")===this._uid.toString()))){void 0!==t.stopPropagation&&t.stopPropagation(),void 0!==t.preventDefault&&t.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);var i=void 0!==t.pageX?t.pageX:t.touches[0].pageX,r=void 0!==t.pageY?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:i,pointerY:r}),this.parentLimitation&&(this.limits=this.calcDragLimitation())}},bodyMove:function(t){var e=this.dimensionsBeforeMove,n=this.parentWidth,i=this.parentHeight,r=this.gridX,o=this.gridY,a=this.width,s=this.height,l=e.top-t.y,c=e.bottom+t.y,u=e.left-t.x,h=e.right+t.x;if(this.snapToGrid){var d=!0,f=!0,p=l-Math.floor(l/o)*o,m=i-c-Math.floor((i-c)/o)*o,v=u-Math.floor(u/r)*r,g=n-h-Math.floor((n-h)/r)*r;p>o/2&&(p-=o),m>o/2&&(m-=o),v>r/2&&(v-=r),g>r/2&&(g-=r),Math.abs(m)<Math.abs(p)&&(d=!1),Math.abs(g)<Math.abs(v)&&(f=!1),l-=d?p:m,c=i-s-l,u-=f?v:g,h=n-a-u}var y=this.rectCorrectionByLimit({newLeft:u,newRight:h,newTop:l,newBottom:c});this.left=y.newLeft,this.right=y.newRight,this.top=y.newTop,this.bottom=y.newBottom,this.$emit("dragging",this.rect)},bodyUp:function(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}},stickDown:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isResizable&&this.active||n){this.stickDrag=!0;var i=void 0!==e.pageX?e.pageX:e.touches[0].pageX,r=void 0!==e.pageY?e.pageY:e.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:i,pointerY:r}),this.currentStick=t,this.limits=this.calcResizeLimits()}},saveDimensionsBeforeMove:function(t){var e=t.pointerX,n=t.pointerY;this.dimensionsBeforeMove.pointerX=e,this.dimensionsBeforeMove.pointerY=n,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height},stickMove:function(t){var e=this.currentStick,n=this.dimensionsBeforeMove,i=this.gridY,r=this.gridX,o=this.snapToGrid,a=this.parentHeight,s=this.parentWidth,l=n.top,c=n.bottom,u=n.left,h=n.right;switch(e[0]){case"b":c=n.bottom+t.y,o&&(c=a-Math.round((a-c)/i)*i);break;case"t":l=n.top-t.y,o&&(l=Math.round(l/i)*i)}switch(e[1]){case"r":h=n.right+t.x,o&&(h=s-Math.round((s-h)/r)*r);break;case"l":u=n.left-t.x,o&&(u=Math.round(u/r)*r)}var d=this.rectCorrectionByLimit({newLeft:u,newRight:h,newTop:l,newBottom:c});if(u=d.newLeft,h=d.newRight,l=d.newTop,c=d.newBottom,this.aspectRatio){var f=this.rectCorrectionByAspectRatio({newLeft:u,newRight:h,newTop:l,newBottom:c});u=f.newLeft,h=f.newRight,l=f.newTop,c=f.newBottom}this.left=u,this.right=h,this.top=l,this.bottom=c,this.$emit("resizing",this.rect)},stickUp:function(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},calcDragLimitation:function(){var t=this.parentWidth,e=this.parentHeight;return{left:{min:0,max:t-this.width},right:{min:0,max:t-this.width},top:{min:0,max:e-this.height},bottom:{min:0,max:e-this.height}}},calcResizeLimits:function(){var t=this.aspectFactor,e=this.width,n=this.height,i=this.bottom,r=this.top,o=this.left,a=this.right,s=this.minh,l=this.minw,c=this.parentLimitation?0:null;this.aspectRatio&&(l/s>t?s=l/t:l=t*s);var u={left:{min:c,max:o+(e-l)},right:{min:c,max:a+(e-l)},top:{min:c,max:r+(n-s)},bottom:{min:c,max:i+(n-s)}};if(this.aspectRatio){var h={left:{min:o-Math.min(r,i)*t*2,max:o+(n-s)/2*t*2},right:{min:a-Math.min(r,i)*t*2,max:a+(n-s)/2*t*2},top:{min:r-Math.min(o,a)/t*2,max:r+(e-l)/2/t*2},bottom:{min:i-Math.min(o,a)/t*2,max:i+(e-l)/2/t*2}};"m"===this.currentStick[0]?(u.left={min:Math.max(u.left.min,h.left.min),max:Math.min(u.left.max,h.left.max)},u.right={min:Math.max(u.right.min,h.right.min),max:Math.min(u.right.max,h.right.max)}):"m"===this.currentStick[1]&&(u.top={min:Math.max(u.top.min,h.top.min),max:Math.min(u.top.max,h.top.max)},u.bottom={min:Math.max(u.bottom.min,h.bottom.min),max:Math.min(u.bottom.max,h.bottom.max)})}return u},sideCorrectionByLimit:function(t,e){var n=e;return null!==t.min&&e<t.min?n=t.min:null!==t.max&&t.max<e&&(n=t.max),n},rectCorrectionByLimit:function(t){var e=this.limits,n=t.newRight,i=t.newLeft,r=t.newBottom,o=t.newTop;return i=this.sideCorrectionByLimit(e.left,i),n=this.sideCorrectionByLimit(e.right,n),o=this.sideCorrectionByLimit(e.top,o),r=this.sideCorrectionByLimit(e.bottom,r),{newLeft:i,newRight:n,newTop:o,newBottom:r}},rectCorrectionByAspectRatio:function(t){var e=t.newLeft,n=t.newRight,i=t.newTop,r=t.newBottom,o=this.parentWidth,a=this.parentHeight,s=this.currentStick,l=this.aspectFactor,c=this.dimensionsBeforeMove,u=o-e-n,h=a-i-r;if("m"===s[1]){var d=h-c.height;e-=d*l/2,n-=d*l/2}else if("m"===s[0]){var f=u-c.width;i-=f/l/2,r-=f/l/2}else u/h>l?(u=l*h,"l"===s[1]?e=o-n-u:n=o-e-u):(h=u/l,"t"===s[0]?i=a-r-h:r=a-i-h);return{newLeft:e,newRight:n,newTop:i,newBottom:r}}},computed:{positionStyle:function(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}},sizeStyle:function(){return{width:"auto"==this.w?"auto":this.width+"px",height:"auto"==this.h?"auto":this.height+"px"}},vdrStick:function(){var t=this;return function(e){var n={width:"".concat(t.stickSize/t.parentScaleX,"px"),height:"".concat(t.stickSize/t.parentScaleY,"px")};return n[f.y[e[0]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),n[f.x[e[1]]]="".concat(t.stickSize/t.parentScaleX/-2,"px"),n}},width:function(){return this.parentWidth-this.left-this.right},height:function(){return this.parentHeight-this.top-this.bottom},rect:function(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}},watch:{active:function(t){t?this.$emit("activated"):this.$emit("deactivated")},isActive:{immediate:!0,handler:function(t){this.active=t}},z:{immediate:!0,handler:function(t){(t>=0||"auto"===t)&&(this.zIndex=t)}},x:{handler:function(t,e){var n=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.left){var i=e-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:i,y:0}),this.$nextTick((function(){n.bodyUp()}))}}},y:{handler:function(t,e){var n=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.top){var i=e-t;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:i}),this.$nextTick((function(){n.bodyUp()}))}}},w:{handler:function(t,e){var n=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.width){var i=e-t;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:i,y:0}),this.$nextTick((function(){n.stickUp()}))}}},h:{handler:function(t,e){var n=this;if(!this.stickDrag&&!this.bodyDrag&&t!==this.height){var i=e-t;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:i}),this.$nextTick((function(){n.stickUp()}))}}},parentW:function(t){this.right=t-this.width-this.left,this.parentWidth=t},parentH:function(t){this.bottom=t-this.height-this.top,this.parentHeight=t}}},m=p,v=(n(12),n(1)),g=Object(v.a)(m,h,d,!1,null,null,null);g.options.__file="src/components/vue-drag-resize.vue",e.a=g.exports},function(t,e,n){function i(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=p[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(u(i.parts[o],e))}else{var a=[];for(o=0;o<i.parts.length;o++)a.push(u(i.parts[o],e));p[i.id]={id:i.id,refs:1,parts:a}}}}function r(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=e.base?o[0]+e.base:o[0],s=o[1],l=o[2],c=o[3],u={css:s,media:l,sourceMap:c};i[a]?i[a].parts.push(u):n.push(i[a]={id:a,parts:[u]})}return n}function o(t,e){var n=v(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=w[w.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),o(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),o(t,e),e}function c(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function u(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var c=y++;n=g||(g=s(e)),i=h.bind(null,n,c,!1),r=h.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),i=f.bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=d.bind(null,n),r=function(){a(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=A(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=b(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),v=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}((function(t){return document.querySelector(t)})),g=null,y=0,w=[],b=n(10);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return i(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],l=p[s.id];l.refs--,o.push(l)}t&&i(r(t,e),e);for(a=0;a<o.length;a++){l=o[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete p[l.id]}}}};var A=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,,,,function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(t,e,n){e=t.exports=n(4)(!1),e.push([t.i,'\n.vdr,.vdr.active:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box\n}\n.vdr.active:before{content:"";width:100%;height:100%;top:0;left:0;outline:1px dashed #d6d6d6\n}\n.vdr-stick{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;font-size:1px;background:#fff;border:1px solid #6c6c6c;-webkit-box-shadow:0 0 2px #bbb;box-shadow:0 0 2px #bbb\n}\n.inactive .vdr-stick{display:none\n}\n.vdr-stick-br,.vdr-stick-tl{cursor:nwse-resize\n}\n.vdr-stick-bm,.vdr-stick-tm{left:50%;cursor:ns-resize\n}\n.vdr-stick-bl,.vdr-stick-tr{cursor:nesw-resize\n}\n.vdr-stick-ml,.vdr-stick-mr{top:50%;cursor:ew-resize\n}\n.vdr-stick.not-resizable{display:none\n}\n.content-container{display:block;position:relative\n}',""])},function(t,e,n){"use strict";var i=n(0),r=n.n(i);r.a},,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),function(t){function i(t){i.installed||(i.installed=!0,t.component("vue-drag-resize",r.a))}n.d(e,"install",(function(){return i}));var r=n(2),o={install:i},a=null;"undefined"!=typeof window?a=window.Vue:void 0!==t&&(a=t.Vue),a&&a.use(o),e.default=r.a}.call(this,n(5))}])}))},c8b5:function(t,e,n){var i;
|
||
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
||
* http://hammerjs.github.io/
|
||
*
|
||
* Copyright (c) 2016 Jorik Tangelder;
|
||
* Licensed under the MIT license */(function(r,o,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),h="function",d=Math.round,f=Math.abs,p=Date.now;function m(t,e,n){return setTimeout(x(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(g(t,n[e],n),!0)}function g(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s){i=0;while(i<t.length)e.call(n,t[i],i,t),i++}else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function y(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}l="function"!==typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var w=y((function(t,e,n){var i=Object.keys(e),r=0;while(r<i.length)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),b=y((function(t,e){return w(t,e,!0)}),"merge","Use `assign`.");function A(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&l(i,n)}function x(t,e){return function(){return t.apply(e,arguments)}}function k(t,e){return typeof t==h?t.apply(e&&e[0]||s,e):t}function S(t,e){return t===s?e:t}function C(t,e,n){g(T(e),(function(e){t.addEventListener(e,n,!1)}))}function E(t,e,n){g(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){while(t){if(t==e)return!0;t=t.parentNode}return!1}function I(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);var i=0;while(i<t.length){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function R(t){return Array.prototype.slice.call(t,0)}function O(t,e,n){var i=[],r=[],o=0;while(o<t.length){var a=e?t[o][e]:t[o];D(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function L(t,e){var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;while(o<c.length){if(n=c[o],i=n?n+r:e,i in t)return i;o++}return s}var P=1;function M(){return P++}function N(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var B=/mobile|tablet|ip(ad|hone|od)|android/i,W="ontouchstart"in r,F=L(r,"PointerEvent")!==s,U=W&&B.test(navigator.userAgent),z="touch",j="pen",Y="mouse",H="kinect",V=25,K=1,G=2,q=4,Q=8,J=1,X=2,Z=4,$=8,tt=16,et=X|Z,nt=$|tt,it=et|nt,rt=["x","y"],ot=["clientX","clientY"];function at(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){k(t.options.enable,[t])&&n.handler(e)},this.init()}function st(t){var e,n=t.options.inputClass;return e=n||(F?It:U?Nt:W?Ut:kt),new e(t,lt)}function lt(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&K&&i-r===0,a=e&(q|Q)&&i-r===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,ct(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function ct(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=dt(e)),r>1&&!n.firstMultiple?n.firstMultiple=dt(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=ft(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=gt(s,l),e.distance=vt(s,l),ut(n,e),e.offsetDirection=mt(e.deltaX,e.deltaY);var c=pt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=f(c.x)>f(c.y)?c.x:c.y,e.scale=a?wt(a.pointers,i):1,e.rotation=a?yt(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ht(n,e);var u=t.element;_(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function ut(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==K&&o.eventType!==q||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function ht(t,e){var n,i,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=Q&&(l>V||a.velocity===s)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,h=pt(l,c,u);i=h.x,r=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=mt(c,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function dt(t){var e=[],n=0;while(n<t.pointers.length)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:ft(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ft(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};var n=0,i=0,r=0;while(r<e)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:d(n/e),y:d(i/e)}}function pt(t,e,n){return{x:e/t||0,y:n/t||0}}function mt(t,e){return t===e?J:f(t)>=f(e)?t<0?X:Z:e<0?$:tt}function vt(t,e,n){n||(n=rt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function gt(t,e,n){n||(n=rt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function yt(t,e){return gt(e[1],e[0],ot)+gt(t[1],t[0],ot)}function wt(t,e){return vt(e[0],e[1],ot)/vt(t[0],t[1],ot)}at.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(N(this.element),this.evWin,this.domHandler)}};var bt={mousedown:K,mousemove:G,mouseup:q},At="mousedown",xt="mousemove mouseup";function kt(){this.evEl=At,this.evWin=xt,this.pressed=!1,at.apply(this,arguments)}A(kt,at,{handler:function(t){var e=bt[t.type];e&K&&0===t.button&&(this.pressed=!0),e&G&&1!==t.which&&(e=q),this.pressed&&(e&q&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Y,srcEvent:t}))}});var St={pointerdown:K,pointermove:G,pointerup:q,pointercancel:Q,pointerout:Q},Ct={2:z,3:j,4:Y,5:H},Et="pointerdown",_t="pointermove pointerup pointercancel";function It(){this.evEl=Et,this.evWin=_t,at.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(Et="MSPointerDown",_t="MSPointerMove MSPointerUp MSPointerCancel"),A(It,at,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=St[i],o=Ct[t.pointerType]||t.pointerType,a=o==z,s=D(e,t.pointerId,"pointerId");r&K&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(q|Q)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Tt={touchstart:K,touchmove:G,touchend:q,touchcancel:Q},Dt="touchstart",Rt="touchstart touchmove touchend touchcancel";function Ot(){this.evTarget=Dt,this.evWin=Rt,this.started=!1,at.apply(this,arguments)}function Lt(t,e){var n=R(t.touches),i=R(t.changedTouches);return e&(q|Q)&&(n=O(n.concat(i),"identifier",!0)),[n,i]}A(Ot,at,{handler:function(t){var e=Tt[t.type];if(e===K&&(this.started=!0),this.started){var n=Lt.call(this,t,e);e&(q|Q)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:z,srcEvent:t})}}});var Pt={touchstart:K,touchmove:G,touchend:q,touchcancel:Q},Mt="touchstart touchmove touchend touchcancel";function Nt(){this.evTarget=Mt,this.targetIds={},at.apply(this,arguments)}function Bt(t,e){var n=R(t.touches),i=this.targetIds;if(e&(K|G)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=R(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return _(t.target,l)})),e===K){r=0;while(r<o.length)i[o[r].identifier]=!0,r++}r=0;while(r<a.length)i[a[r].identifier]&&s.push(a[r]),e&(q|Q)&&delete i[a[r].identifier],r++;return s.length?[O(o.concat(s),"identifier",!0),s]:void 0}A(Nt,at,{handler:function(t){var e=Pt[t.type],n=Bt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:z,srcEvent:t})}});var Wt=2500,Ft=25;function Ut(){at.apply(this,arguments);var t=x(this.handler,this);this.touch=new Nt(this.manager,t),this.mouse=new kt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function zt(t,e){t&K?(this.primaryTouch=e.changedPointers[0].identifier,jt.call(this,e)):t&(q|Q)&&jt.call(this,e)}function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,Wt)}}function Yt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),a=Math.abs(n-r.y);if(o<=Ft&&a<=Ft)return!0}return!1}A(Ut,at,{handler:function(t,e,n){var i=n.pointerType==z,r=n.pointerType==Y;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)zt.call(this,e,n);else if(r&&Yt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ht=L(u.style,"touchAction"),Vt=Ht!==s,Kt="compute",Gt="auto",qt="manipulation",Qt="none",Jt="pan-x",Xt="pan-y",Zt=ee();function $t(t,e){this.manager=t,this.set(e)}function te(t){if(I(t,Qt))return Qt;var e=I(t,Jt),n=I(t,Xt);return e&&n?Qt:e||n?e?Jt:Xt:I(t,qt)?qt:Gt}function ee(){if(!Vt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}$t.prototype={set:function(t){t==Kt&&(t=this.compute()),Vt&&this.manager.element.style&&Zt[t]&&(this.manager.element.style[Ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return g(this.manager.recognizers,(function(e){k(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),te(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=I(i,Qt)&&!Zt[Qt],o=I(i,Xt)&&!Zt[Xt],a=I(i,Jt)&&!Zt[Jt];if(r){var s=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return r||o&&n&et||a&&n&nt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ne=1,ie=2,re=4,oe=8,ae=oe,se=16,le=32;function ce(t){this.options=l({},this.defaults,t||{}),this.id=M(),this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=ne,this.simultaneous={},this.requireFail=[]}function ue(t){return t&se?"cancel":t&oe?"end":t&re?"move":t&ie?"start":""}function he(t){return t==tt?"down":t==$?"up":t==X?"left":t==Z?"right":""}function de(t,e){var n=e.manager;return n?n.get(t):t}function fe(){ce.apply(this,arguments)}function pe(){fe.apply(this,arguments),this.pX=null,this.pY=null}function me(){fe.apply(this,arguments)}function ve(){ce.apply(this,arguments),this._timer=null,this._input=null}function ge(){fe.apply(this,arguments)}function ye(){fe.apply(this,arguments)}function we(){ce.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function be(t,e){return e=e||{},e.recognizers=S(e.recognizers,be.defaults.preset),new ke(t,e)}ce.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=de(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=de(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return t=de(t,this),-1===D(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=de(t,this);var e=D(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<oe&&i(e.options.event+ue(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=oe&&i(e.options.event+ue(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=le},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(le|ne)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!k(this.options.enable,[this,e]))return this.reset(),void(this.state=le);this.state&(ae|se|le)&&(this.state=ne),this.state=this.process(e),this.state&(ie|re|oe|se)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},A(fe,ce,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(ie|re),r=this.attrTest(t);return i&&(n&Q||!r)?e|se:i||r?n&q?e|oe:e&ie?e|re:ie:le}}),A(pe,fe,{defaults:{event:"pan",threshold:10,pointers:1,direction:it},getTouchAction:function(){var t=this.options.direction,e=[];return t&et&&e.push(Xt),t&nt&&e.push(Jt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&et?(r=0===o?J:o<0?X:Z,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?J:a<0?$:tt,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return fe.prototype.attrTest.call(this,t)&&(this.state&ie||!(this.state&ie)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=he(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),A(me,fe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ie)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),A(ve,ce,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Gt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(q|Q)&&!r)this.reset();else if(t.eventType&K)this.reset(),this._timer=m((function(){this.state=ae,this.tryEmit()}),e.time,this);else if(t.eventType&q)return ae;return le},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ae&&(t&&t.eventType&q?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),A(ge,fe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ie)}}),A(ye,fe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:et|nt,pointers:1},getTouchAction:function(){return pe.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(et|nt)?e=t.overallVelocity:n&et?e=t.overallVelocityX:n&nt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&t.eventType&q},emit:function(t){var e=he(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),A(we,ce,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&K&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=q)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||vt(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;var s=this.count%e.taps;if(0===s)return this.hasRequireFailures()?(this._timer=m((function(){this.state=ae,this.tryEmit()}),e.interval,this),ie):ae}return le},failTimeout:function(){return this._timer=m((function(){this.state=le}),this.options.interval,this),le},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ae&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),be.VERSION="2.0.7",be.defaults={domEvents:!1,touchAction:Kt,enable:!0,inputTarget:null,inputClass:null,preset:[[ge,{enable:!1}],[me,{enable:!1},["rotate"]],[ye,{direction:et}],[pe,{direction:et},["swipe"]],[we],[we,{event:"doubletap",taps:2},["tap"]],[ve]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Ae=1,xe=2;function ke(t,e){this.options=l({},be.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=st(this),this.touchAction=new $t(this,this.options.touchAction),Se(this,!0),g(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Se(t,e){var n,i=t.element;i.style&&(g(t.options.cssProps,(function(r,o){n=L(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function Ce(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}ke.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?xe:Ae},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ae)&&(r=e.curRecognizer=null);var o=0;while(o<i.length)n=i[o],e.stopped===xe||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(ie|re|oe)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof ce)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t),t){var e=this.recognizers,n=D(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return g(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return g(T(t),(function(t){e?n[t]&&n[t].splice(D(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&Ce(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};var i=0;while(i<n.length)n[i](e),i++}},destroy:function(){this.element&&Se(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(be,{INPUT_START:K,INPUT_MOVE:G,INPUT_END:q,INPUT_CANCEL:Q,STATE_POSSIBLE:ne,STATE_BEGAN:ie,STATE_CHANGED:re,STATE_ENDED:oe,STATE_RECOGNIZED:ae,STATE_CANCELLED:se,STATE_FAILED:le,DIRECTION_NONE:J,DIRECTION_LEFT:X,DIRECTION_RIGHT:Z,DIRECTION_UP:$,DIRECTION_DOWN:tt,DIRECTION_HORIZONTAL:et,DIRECTION_VERTICAL:nt,DIRECTION_ALL:it,Manager:ke,Input:at,TouchAction:$t,TouchInput:Nt,MouseInput:kt,PointerEventInput:It,TouchMouseInput:Ut,SingleTouchInput:Ot,Recognizer:ce,AttrRecognizer:fe,Tap:we,Pan:pe,Swipe:ye,Pinch:me,Rotate:ge,Press:ve,on:C,off:E,each:g,merge:b,extend:w,assign:l,inherit:A,bindFn:x,prefixed:L});var Ee="undefined"!==typeof r?r:"undefined"!==typeof self?self:{};Ee.Hammer=be,i=function(){return be}.call(e,n,e,t),i===s||(t.exports=i)})(window,document)},f5ea:function(t,e,n){"use strict";(function(t){var i=n("a026"),r=n("c8b5"),o=n.n(r),a=n("fca5"),s=n.n(a);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={mode:"read",multiple:!0,rate:.2,src:null,width:null,min:300,max:null,markers:[],marker_size:20,marker_width:30,marker_height:30,enable_drag:!0,auto_index_z:!0,enable_canvas:!1,zoom_lock:!1,move_limit:!0,deviation_x:0,deviation_y:0,retainWdith:50,retainHeight:50};class u{constructor(t,e,n){l(this,"domId",void 0),l(this,"initImgDom",void 0),l(this,"config",void 0),l(this,"hammerObj",void 0),l(this,"offset",void 0),l(this,"callback",void 0),l(this,"paperMarkerData",void 0),l(this,"currentMarkerElement",void 0),l(this,"imgDomParentOffset",void 0),this.initImgDom=document.querySelector(t),this.domId=t,this.config={options:{},markerList:[]},this.offset={left:0,top:0},this.paperMarkerData=[],this.callback=n,this.initImgDom&&this.initImgDom.offsetParent&&(this.imgDomParentOffset={left:this.initImgDom.offsetParent.offsetLeft,top:this.initImgDom.offsetParent.offsetTop}),this.init(e)}init(t){document.ondragstart=function(){return!1};let e={};e="undefined"===typeof t?c:Object.assign({},c,t),this.config.options=e,h(this.config.options.src).then(t=>{this.initImgDom.src=this.config.options.src;let{setWidth:n,setHeight:i}=this.imageCenterAlign(t);this.setHammer(),this.initImgDom.addEventListener&&this.initImgDom.addEventListener("DOMMouseScroll",t=>{t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.setMousewheel(t)},!1),this.initImgDom.onmousewheel=t=>{t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.setMousewheel(t)},this.loadMarkers(e.markers,"back"),this.callback({type:"load",data:{width:n,height:i,src:this.config.options.src}})})}setMousewheel(t){let e=this.config.options,n=0;t.wheelDelta&&(n=t.wheelDelta,window.opera&&(n=-n)),t.detail&&(n=-t.detail),this.initImgDom=document.querySelector(this.domId),this.imgDomParentOffset={left:this.initImgDom.offsetParent.getBoundingClientRect().left,top:this.initImgDom.offsetParent.getBoundingClientRect().top};let i={x:t.pageX-this.imgDomParentOffset.left,y:t.pageY-this.imgDomParentOffset.top};this.zoomMarker_Zoom(e.zoom_lock?null:i,n>0?1+e.rate:1-e.rate)}setHammer(){let t=this.config.options;this.hammerObj=new o.a(this.initImgDom),this.hammerObj.get("pan").set({direction:o.a.DIRECTION_ALL}),this.hammerObj.on("panleft panright panup pandown",e=>{t.pinchlock||this.zoomMarker_Move(e.deltaX+this.offset.left,e.deltaY+this.offset.top)}),this.hammerObj.on("panstart",()=>{this.offset.left=this.initImgDom.offsetLeft,this.offset.top=this.initImgDom.offsetTop}),this.hammerObj.on("panend",()=>{t.pinchlock=!1}),this.hammerObj.on("tap",t=>{let e=this.initImgDom.dataset;if("undefined"===typeof t.pointers[0].x){let n={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};this.callback({type:"mapClick",data:{x:(t.center.x-n.left)/this.initImgDom.width*Number(e.naturalWidth),y:(t.center.y-n.top)/this.initImgDom.height*Number(e.naturalHeight)}})}else this.callback({type:"mapClick",data:{pageX:t.pointers[0].offsetX,pageY:t.pointers[0].offsetY,x:t.pointers[0].offsetX/this.initImgDom.width*Number(e.naturalWidth),y:t.pointers[0].offsetY/this.initImgDom.height*Number(e.naturalHeight)}})})}zoomMarker_Move(t,e){let n=this.config.options;n.enable_drag&&(n.move_limit?this.limitLockOffset(this.initImgDom,t,e):(this.initImgDom.style.top=e+"px",this.initImgDom.style.left=t+"px"),this.reloadMarkers()),this.checkAllMarkerPosition(),this.callback({type:"imgMove",data:{top:e,left:t}})}zoomMarker_Zoom(t,e){let{options:n}=this.config,i=this.initImgDom.dataset,r={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};const o=i.naturalHeight/i.naturalWidth,a=Number(i.width),s=Number(i.height);var l=a*e,c=l*o;null!=n.max&&l>n.max?(l=n.max,c=l*o):null!=n.min&&l<n.min&&(l=n.min,c=l*o),l=parseInt(l.toString()),c=parseInt(c.toString()),"undefined"!==typeof t&&null!==t||(t={},t.x=r.left+a/2,t.y=r.top+s/2);var u=t.y-c*(t.y-r.top)/s,h=t.x-l*(t.x-r.left)/a;this.initImgDom.dataset.width=l,this.initImgDom.dataset.height=c,this.initImgDom.style.width=l+"px",this.initImgDom.style.height=c+"px",this.initImgDom.style.left=h+"px",this.initImgDom.style.top=u+"px",this.reloadMarkers(),this.callback({type:"zoom"})}zoomMarker_AddMarker(t){this.addMarker(t),this.reloadMarkers()}imageCenterAlign(t){let e=t.width,n=t.height;null!==this.config.options.width&&(e=this.config.options.width,n=this.config.options.width/(t.width/t.height)),this.initImgDom.dataset.naturalWidth=e,this.initImgDom.dataset.naturalHeight=n;const i=this.initImgDom.offsetParent.getBoundingClientRect();let r=e/n,o=i.width/i.height,a={left:0,top:0,width:0,height:0};return r>=o?(a.width=i.width,a.height=i.width/r,a.top=(i.height-a.height)/2):(a.height=i.height,a.width=i.height*r,a.left=(i.width-a.width)/2),this.initImgDom.dataset.width=a.width,this.initImgDom.dataset.height=a.height,this.initImgDom.style.width=a.width+"px",this.initImgDom.style.height=a.height+"px",this.initImgDom.style.left=a.left+"px",this.initImgDom.style.top=a.top+"px",a}getMarkerOffset(t){let e=this.paperMarkerData.filter(e=>JSON.parse(e).id===t);return 0!==e.length?JSON.parse(e[0]):{}}addMarker(t,e){const n="undefined"===typeof t.draggable||t.draggable,i=document.getElementById(t.id);if(!i)return;let r=null;i.onclick=()=>{r=null},i.onmousemove=t=>{let e=t.currentTarget.id;if(this.currentMarkerElement=document.getElementById(e),null===r){let t=this.paperMarkerData.filter(t=>JSON.parse(t).id===e),n=0!==t.length?t[0]:"";""!==n&&this.callback({type:"markerOver",data:{id:e,left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop,...JSON.parse(n)}})}},i.onmouseout=()=>{this.callback({type:"markerOut"})},this.paperMarkerData.push(JSON.stringify(t)),this.setMarkerOffset(i,t,{left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop});const a=new o.a(i);return n&&"write"===this.config.options.mode&&(a.on("pan",e=>{let n={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop};const i=n.left-t.marker_width/2,o=i+Number(this.initImgDom.width),a=n.top-t.marker_height,s=a+Number(this.initImgDom.height);var l=e.deltaX+r.left,c=e.deltaY+r.top;l<i?l=i:l>o&&(l=o),c<a?c=a:c>s&&(c=s),this.callback({type:"markerMove",data:{id:t.id,left:l,top:c}}),this.currentMarkerElement.style.left=l+"px",this.currentMarkerElement.style.top=c+"px"}),a.on("panstart",()=>{r={left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop}}),a.on("panend",()=>{this.updateMarker(this.currentMarkerElement)})),a.on("tap",t=>{let e=t.target.offsetParent.id,n=this.paperMarkerData.filter(t=>JSON.parse(t).id===e),i=0!==n.length?n[0]:"";""!==i&&this.callback({type:"markerClick",data:{...JSON.parse(i),left:this.currentMarkerElement.offsetLeft,top:this.currentMarkerElement.offsetTop}})}),t}loadMarkers(t,e){t.map(t=>{this.addMarker(JSON.parse(t),e)}),this.reloadMarkers()}toJSONData(){let t=[];return this.paperMarkerData.map(e=>{t.push(JSON.parse(e))}),{img:{src:this.config.options.src,naturalWidth:this.initImgDom.dataset.naturalWidth,naturalHeight:this.initImgDom.dataset.naturalHeight,width:this.initImgDom.dataset.width,height:this.initImgDom.dataset.height},markers:t}}setMarkerOffset(t,e,n){let i=this.initImgDom.dataset,r=Number(i.width)*e.x/i.naturalWidth+n.left-(e.marker_width||this.config.options.marker_width)/2+this.config.options.deviation_x,o=Number(i.height)*e.y/i.naturalHeight+n.top-(e.marker_height||this.config.options.marker_height)-this.config.options.deviation_y;return t.style.left=r+"px",t.style.top=o+"px",{left:r,top:o}}updateMarker(t){let e={left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop},n=document.getElementById(t.id);const i=this.config.options,r=e.left-i.marker_width/2,o=e.top-i.marker_height,a=this.initImgDom.dataset;let s=(n.offsetLeft-r)*Number(a.naturalWidth)/this.initImgDom.width,l=(n.offsetTop-o)*Number(a.naturalHeight)/this.initImgDom.height,c=this.paperMarkerData.filter(e=>e.id===t.id||JSON.parse(e).id.toString()===t.id.toString());if(0!==c.length){let e=Object.assign({},JSON.parse(c[0]));e.x=s,e.y=l;let n=this.paperMarkerData.map(t=>JSON.parse(t).id.toString()).indexOf(t.id);this.paperMarkerData[n]=JSON.stringify(e)}else this.paperMarkerData.push(JSON.stringify({...t,x:s,y:l}));return this.callback({type:"markerUpload",data:this.paperMarkerData}),{x:s,y:l}}reloadMarkers(){this.paperMarkerData=this.paperMarkerData.map(t=>{let e=JSON.parse(t),n=document.getElementById(e.id);if(n){let t=this.setMarkerOffset(n,e,{left:this.initImgDom.offsetLeft,top:this.initImgDom.offsetTop});e.styleLeft=t.left,e.styleTop=t.top}return JSON.stringify(e)}),this.callback({type:"reloadMarkers",data:this.paperMarkerData})}limitLockOffset(t,e,n){let i=t.parentElement;const r={width:i.offsetWidth,height:i.offsetHeight,offsetLeft:i.offsetLeft,offsetTop:i.offsetTop},o=r.width+r.offsetLeft,a=r.height+r.offsetTop,s=t.width,l=t.height,c=this.config.options.retainWdith,u=this.config.options.retainHeight;var h=e,d=n;h+c>o?h=o-c:h<r.offsetLeft-s+c&&(h=r.offsetLeft-s+c),d+u>a?d=a-u:d<r.offsetTop-l+u&&(d=r.offsetTop-l+u),t.style.left=h+"px",t.style.top=d+"px"}removeMarker(t){let e=this.paperMarkerData.map(t=>JSON.parse(t).id).indexOf(t);-1!==e&&this.paperMarkerData.splice(e,1),this.reloadMarkers()}updateParentOffset(){this.initImgDom=document.querySelector(this.domId),this.imgDomParentOffset={left:this.initImgDom.offsetParent.offsetLeft,top:this.initImgDom.offsetParent.offsetTop}}getMarkerById(t){let e=this.paperMarkerData.filter(e=>JSON.parse(e).id===t);return 0!==e.length?Object.assign({},JSON.parse(e[0])):{}}removeMarkerToCenter(t){document.getElementById(t)}setFitView(t){const{offsetTop:e,offsetLeft:n}=this.initImgDom,i={x:0,y:0},r={x:this.initImgDom.parentElement.getBoundingClientRect().width/2,y:this.initImgDom.parentElement.getBoundingClientRect().height/2};if(t){let o=document.getElementById(t);const a={x:o.offsetLeft,y:o.offsetTop};a.x<r.x?i.x=n+(r.x-a.x):i.x=n-(a.x-r.x),a.y<r.y?i.y=e+(r.y-a.y):i.y=e-(a.y-r.y),this.initImgDom.style.left=i.x+"px",this.initImgDom.style.top=i.y+"px",this.reloadMarkers(),setTimeout(()=>{this.callback({type:"imgMove",data:{top:i.y,left:i.x}})},500)}}checkAllMarkerPosition(){const{offsetWidth:t,offsetHeight:e}=this.initImgDom.parentElement;let n=this.paperMarkerData.filter(n=>JSON.parse(n).styleLeft+this.config.options.marker_width<0||JSON.parse(n).styleLeft>t||JSON.parse(n).styleTop+this.config.options.marker_height<0||JSON.parse(n).styleTop>e);this.callback({type:"hasHidden",data:n})}calcAlaramPosition(){this.paperMarkerData.map(t=>{let e=document.getElementById(JSON.parse(t).id);if(e){let n=document.getElementById("alarm-"+JSON.parse(t).id);n.style.left=parseFloat(e.style.left)-JSON.parse(t).dialogWidth/2+this.config.options.marker_width/2+"px",n.style.top=parseFloat(e.style.top)-JSON.parse(t).dialogHeight+"px"}})}}const h=t=>new Promise(e=>{let n=new Image;n.src=t,n.onload=function(){e({width:this.width,height:this.height})}}),d="data:image/png;base64,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",f="data:image/png;base64,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",p="data:image/png;base64,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",m="data:image/png;base64,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";var v=i["default"].extend({name:"ZoomMarkerControl",components:{QzPlayer:s()},props:{service:{required:!0},data:{type:Array,default:()=>[],required:!1},mode:{type:String,default:"read",required:!1},multiple:{type:Boolean,default:!1,required:!1},mapImg:{type:String,required:!1},mapId:{type:String,required:!1},getAll:{type:Boolean,required:!1},markerImg:{type:String,default:d,required:!1},markerImgOnline:{type:String,default:d},markerImgOffline:{type:String,default:p},markerImgDisabled:{type:String,default:m},markerHigLightImg:{type:String,default:f,required:!1},sysettingService:{type:String,default:"/ninca-common"},deviceService:{type:String,default:"/cwos-portal"},deviceFilterCodes:{type:Array,default:()=>[]},fullScreenAside:{type:Array,default:()=>["20px","20px"]},playerSlot:{type:Boolean,default:!1},rate:{type:Number,default:.2},limit:{type:Array,default:()=>[.1,2]},deviationX:{type:Number,default:0},deviationY:{type:Number,default:0},defaultMarker:{type:Boolean,default:!0},retainWdith:{type:Number,default:50},retainHeight:{type:Number,default:50},addDefaultSelected:{type:Boolean,default:!1},markerAlarms:{type:Array},position:{type:String,default:"top"},markerTracks:{type:Array},defaultPlay:{type:Boolean,default:!1},showPlayer:{type:Boolean,default:!0},showDeviceStatus:{type:Boolean,default:!1},deviceFilterStatus:{type:Array,default:()=>[]},markerIcon:{type:Object,required:!1},mapInitinalOptions:{type:Object},playerPluginUrl:{type:String}},data(){return{renderImgId:"",loading:!1,bgImgWidth:0,bgImgId:null,showPoper:!1,bgImgHeight:0,limitMax:0,limitMin:0,alarmList:[],popMarkerData:{},poperPosition:{id:"",left:0,top:0},selectedId:"",markerData:[],markerSize:{width:0,height:0},isFullScreen:!1,renderMapImg:null,currentMarkerPos:{},showPlayerDialog:!1,devicePlayerConfig:{playerServer:"",deviceItem:{rtspUrl:"",dcs:!1,timeOffsetHour:0,areaName:"",deviceName:""},basicConfig:{autoPlay:!1},pluginUrl:this.playerPluginUrl},lsRtspurl:"",isPlaying:!1,supportPlay:!0,markerDataCache:[],renderWidth:0,renderHeight:0,currentAlarm:0,timerList:{}}},watch:{mapInitinalOptions:{handler:function(t){t&&Object.keys(t).length}},data:{handler:function(t){if(t&&0!==t.length){const e=this.markerData.map(t=>JSON.parse(t).id);t.map(t=>{e.indexOf("marker"+t.id)>-1?this.$set(this.markerData,e.indexOf(t.id),JSON.stringify(t)):t.x&&t.x.toString()&&t.y&&t.y.toString()&&this.mapClick(t,this.multiple)}),this.reloadMarkers()}},immediate:!0,deep:!0},markerAlarms:{handler:function(t){if(t){const e=this.alarmList.map(t=>t.objectId),n=this.markerData.filter(t=>!JSON.parse(t).hidden).map(t=>JSON.parse(t).objectId);t.map(t=>{-1!==n.indexOf(t.objectId)&&-1===e.indexOf(t.objectId)&&this.alarmList.push(t)}),this.calcAlaramPosition(),0!==t.length&&this.$emit("alarmShow",t)}},immediate:!0,deep:!0},mapImg:{handler:function(t){this.getImageSize(this.markerImg).then(e=>{this.markerSize.width=e.width,this.markerSize.height=e.height,t?this.getImageSize(t).then(e=>{this.renderMapImg=t,this.bgImgWidth=e.width,this.bgImgHeight=e.height,this.formatScaleSizeByLimit(),this.getAll&&this.mapId?this.getBindDevice(this.mapId).then(()=>{this.initDraw(t)}):this.initDraw(t)}):this.getMapImage().then(t=>{this.renderMapImg=t,this.initDraw(t),this.showAlarm()})})},immediate:!0,deep:!0},deviceFilterCodes:{handler:function(t){this.alarmList.map(e=>{-1===t.indexOf(e.objectId)&&this.closeAlarm(e)}),t&&0!==t.length?this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.hidden=!0,this.deviceFilterCodes.indexOf(e.deviceCode)>-1&&(e.hidden=!1),JSON.stringify(e)}):this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.hidden=!1,JSON.stringify(e)}),this.closePlayer(),this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.reloadMarkers()})},deep:!0},deviceFilterStatus:{handler:function(t){t&&0!==t.length?this.markerData=this.markerData.map(t=>(t.showStatus=this.deviceFilterStatus.indexOf(JSON.parse(t).deviceCode)>-1,t)):this.markerData=this.markerData.map(t=>(t.showStatus=this.showDeviceStatus,t))},deep:!0}},computed:{markerIdList:function(){let t=[];return t=this.markerData.map(t=>JSON.parse(t).id),t},playerDevices:function(){let t=[].concat(this.devicePlayerConfig.deviceItem);return t}},methods:{initDraw(t){this.drawPlugin=null,this.drawPlugin=new u("#"+this.renderImgId,{multiple:this.multiple,src:t,rate:this.rate,max:this.limitMax,min:this.limitMin,marker_width:this.markerSize.width,marker_height:this.markerSize.height,mode:this.mode,markers:this.markerData,deviation_x:this.deviationX,deviation_y:this.deviationY,retainWdith:this.retainWdith,retainHeight:this.retainHeight},t=>{if("load"===t.type&&(this.selectedId="",this.calcAlaramPosition(),this.$emit("mapLoaded")),"mapClick"===t.type){if(this.$emit("mapClick",t.data),!this.multiple&&this.markerData.length>1)return;let e=!this.multiple&&this.markerData.length<=1;"write"===this.mode&&this.mapClick(t.data,e)}if("markerOver"!==t.type&&"markerOut"!==t.type||this.showPoper&&t.data&&this.triggerPoper(t.type,t.data),"markerOut"===t.type&&(this.showPoper=!1),"markerClick"===t.type&&this.markerClick(t.data),"imgMove"===t.type){let e=this.drawPlugin.getMarkerOffset(this.poperPosition.id);0!==Object.keys(e).length&&(this.poperPosition.left=e.pageX+30,this.poperPosition.top=e.pageY),this.setPlayerDialog(),this.calcAlaramPosition(),this.$emit("mapMove",t.data)}"zoom"===t.type&&(this.showPoper=!1,this.setPlayerDialog(),this.calcAlaramPosition(),this.$emit("mapZoom")),"markerUpload"===t.type&&this.$emit("change",this.toJSONData()),"esc"===t.type&&(this.isFullScreen=!1),"markerMove"===t.type&&this.closePlayer(),"hasHidden"===t.type&&this.$emit("hasHidden",t.data),"reloadMarkers"===t.type&&this.calcAlaramPosition()}),this.markerDataCache=[].concat(this.markerData)},showAlarm(){if(this.markerAlarms&&0!==this.markerAlarms.length){const t=this.alarmList.map(t=>t.objectId);this.markerAlarms.map(e=>{-1!==this.markerIdList.indexOf(e.objectId)&&-1===t.indexOf(e.objectId)&&this.alarmList.push(e)}),this.calcAlaramPosition(),0!==this.markerAlarms.length&&this.$emit("alarmShow",this.markerAlarms)}},getAlaramPositionByObjectId(t){let e=document.getElementById(t.objectId),n=document.getElementById("alarm-"+t.objectId);if(n){let{width:t,height:i}=n.getBoundingClientRect();return e?{left:parseFloat(e.style.left)-t/2+this.markerSize.width/2,top:parseFloat(e.style.top)-i}:{left:0,top:0}}return{left:0,top:0}},calcAlaramPosition(){0!==this.alarmList.length&&this.$nextTick(()=>{this.alarmList=this.alarmList.map(t=>({...t,...this.getAlaramPositionByObjectId(t)})),this.alarmList.map(t=>{let e=document.getElementById(t.objectId);if(e){e.classList.add("jump-animate");let n=e.querySelector(".alarm-marker");if(!n&&t.markerIcon){e.querySelector(".marker-icon").style.display="none";let n=document.createElement("img");n.src=t.markerIcon,n.classList.add("alarm-marker"),n.classList.add("marker-icon"),n.style.width=(t.markerWidth||this.markerSize.width)+"px",n.style.height=(t.markerHeight||this.markerSize.height)+"px",e.append(n)}this.timerList[t.objectId]||this.autoCloseAlarm(t)}})})},closeAlarm(t){let e=document.getElementById(t.objectId);if(!e)return;let n=this.alarmList.map(t=>t.objectId).indexOf(t.objectId);this.alarmList.splice(n,1),this.currentAlarm=0;let i=e.querySelector(".alarm-marker");i&&t.markerIcon&&(e.querySelector(".marker-icon").style.display="initial",e.querySelector(".alarm-marker").remove()),e.classList.remove("jump-animate"),this.$nextTick(()=>{this.calcAlaramPosition();try{clearTimeout(this.timerList[t.objectId]),delete this.timerList[t.objectId]}catch(e){}})},autoCloseAlarm(t){-1===Object.keys(this.timerList).indexOf(t.objectId)&&this.$set(this.timerList,t.objectId,setTimeout(()=>{this.closeAlarm(t)},t.autoCloseTime||1e4))},closeAlarmByHand(t){if(t){let e=this.alarmList.filter(e=>e.objectId===t);0!==e.length&&this.closeAlarm(e[0])}else this.alarmList.map(t=>{this.closeAlarm(t)})},getMapImage(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/map/query",{}).then(e=>{if(e.success)if(0!==e.data.length){let n=e.data.filter(t=>"default"===t.ext2);if(0===n.length)return void this.$message.warning("暂无默认地图");let i=n[0],r=i.mapImg;this.bgImgId=i.id,this.getImageSize(r).then(e=>{this.bgImgWidth=e.width,this.bgImgHeight=e.height,this.formatScaleSizeByLimit(),this.getAll&&this.bgImgId?this.getBindDevice(this.bgImgId).then(()=>{t(r)}):t(r)})}else this.$message.warning("暂无地图");else this.$message.error("获取地图失败")})})},getBindDevice(t){return this.getAll?new Promise(e=>{this.service&&this.service.post&&this.service.post(this.deviceService+"/component/device/list",{mapId:t}).then(t=>{t.success?(t.data.map(t=>{let e={id:t.id,x:t.mapX,y:t.mapY,draggable:!0,size:30,marker_width:this.markerSize.width,marker_height:this.markerSize.height,showStatus:this.showDeviceStatus,hidden:!1,...t,data:{...t}};e.x.toString()&&e.y.toString()&&this.markerData.push(JSON.stringify(e))}),this.filterMarkerData(),this.$nextTick(()=>{e()})):this.$message.error("获取设备列表失败")})}):new Promise(t=>{this.filterMarkerData(),t()})},filterMarkerData(){0!==this.deviceFilterCodes.length&&(this.markerData=this.markerData.filter(t=>this.deviceFilterCodes.indexOf(JSON.parse(t).deviceCode)>-1))},formatScaleSizeByLimit(){if(0!==this.limit.length){let t=Number(this.limit[1]);this.limitMax=this.bgImgWidth*t}else this.limitMax=2e3;let t=parseFloat(this.renderWidth),e=1;e=this.bgImgWidth>t?parseInt((t/this.bgImgWidth*10).toString())/10:1,this.limitMin=this.bgImgWidth*e},mapClick(t,e){let n="marker"+(t.id||(new Date).getTime()),i={id:n,x:t.x,y:t.y,draggable:!0,size:30,marker_width:this.markerSize.width,marker_height:this.markerSize.height,status:0,onlineStatus:2,exp:1};this.addMarker(i,e)},markerClick(t){this.showPlayerDialog=!1,this.isPlaying=!1,this.currentMarkerPos=t,this.devicePlayerConfig.playerServer=t.data.playerServer||"",this.devicePlayerConfig.dcs=t.data.dcs||!1,this.devicePlayerConfig.deviceItem={...t.data},this.lsRtspurl=t.rtspUrl,t.hasOwnProperty("taskName")&&(this.devicePlayerConfig.taskName=t.taskName),t.hasOwnProperty("edgeName")&&(this.devicePlayerConfig.edgeName=t.edgeName),this.defaultPlay&&(this.devicePlayerConfig.deviceItem.rtspUrl=t.data.rtspUrl),t.data&&t.data.rtspUrl?this.supportPlay=!0:this.supportPlay=!1,this.selectedId=t.id,this.showPlayerDialog=!0,this.$nextTick(()=>{this.$refs.playerDialog&&this.setPlayerDialog(t.id),this.$emit("markerClick",{...t})})},setPlayerDialog(){let t=0,e=0;if(this.selectedId&&this.$refs.playerDialog){let n=this.$refs.playerDialog.getBoundingClientRect(),i=this.$refs.renderDom.getBoundingClientRect(),r=document.getElementById(this.selectedId);if(!r)return void(this.showPlayerDialog=!1);let o=r.getBoundingClientRect(),a={left:o.left-i.left,top:o.top-i.top};t=a.left-n.width/2+this.markerSize.width/2,e=a.top-n.height,this.$refs.playerDialog.style.left=t+"px",this.$refs.playerDialog.style.top=e-8+"px"}},closePlayer(){this.showPlayerDialog=!1,this.selectedId=""},addMarker(t,e){e&&(this.markerData=[],this.closePlayer()),this.markerData.push(JSON.stringify(t)),this.markerDataCache.push(JSON.stringify(t)),this.$nextTick(()=>{this.drawPlugin&&(this.drawPlugin.zoomMarker_AddMarker(t),this.$emit("change",this.toJSONData()),this.addDefaultSelected?this.$emit("markerClick",{...t}):this.$emit("markerClick",{id:""}))})},triggerPoper(t,e){"markerOver"===t?(this.popMarkerData=e,this.poperPosition.id=e.id,this.poperPosition.left=e.left+30,this.poperPosition.top=e.top,this.showPoper=!0):this.showPoper=!1,this.$emit(t,e)},getImageSize(t){let e=this;return new Promise(n=>{let i=new Image;t&&(e.loading=!0,i.src=t,i.onload=function(){e.loading=!1,n({width:this.width,height:this.height})})})},toJSONData(t){return this.drawPlugin?this.drawPlugin.toJSONData(t):{}},removeMarker(t){let e=this.markerData.map(t=>JSON.parse(t).id).indexOf(t);-1!==e&&(this.markerData.splice(e,1),this.markerDataCache=[].concat(this.markerData),this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.removeMarker(t),this.$emit("change",this.toJSONData())}))},fullScreenTrigger(t,e){t.preventDefault(),t.stopPropagation();let n=this.$refs.renderDom;if("exit"===e)return document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.isFullScreen=!1,this.$emit("fullScreenChange",this.isFullScreen),void this.$nextTick(()=>{this.centerImgAfterFullScreen(e).then(()=>{this.drawPlugin&&(this.drawPlugin.reloadMarkers(),this.calcAlaramPosition(),this.setPlayerDialog())})});n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullScreen&&n.webkitRequestFullScreen(),this.isFullScreen=!0,this.$emit("fullScreenChange",this.isFullScreen),this.$nextTick(()=>{this.centerImgAfterFullScreen(e).then(()=>{this.drawPlugin&&(this.drawPlugin.reloadMarkers(),this.setPlayerDialog(),this.calcAlaramPosition())})})},centerImgAfterFullScreen(t){let e=this;return new Promise(n=>{window.onresize=()=>{setTimeout(()=>{let{offsetTop:i,offsetLeft:r,offsetWidth:o,offsetHeight:a}=e.$refs.zoomImg,s={left:e.$refs.zoomImg.parentElement.offsetWidth/2,top:e.$refs.zoomImg.parentElement.offsetHeight/2},l=0,c=0,u={left:r+o/2,top:i+a/2};l=u.left<s.left?r+(s.left-u.left):r-(u.left-s.left),c=u.top<s.top?i+(s.top-u.top):i-(u.top-s.top),e.$refs.zoomImg.style.left=l+"px",e.$refs.zoomImg.style.top=c+"px","exit"===t&&(window.onresize=null),n()},10)}})},reloadMarkers(){this.$nextTick(()=>{this.drawPlugin&&this.drawPlugin.reloadMarkers()})},playerStart(){this.devicePlayerConfig.deviceItem.rtspUrl=this.lsRtspurl,this.isPlaying=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.qzPlayer.play()},200)})},setMarkerHighligh(t){if(t)for(let e=0;e<this.markerData.length;e++){let n=JSON.parse(this.markerData[e]);n.id===t&&(n.highlight=!0),this.$set(this.markerData,e,JSON.stringify(n))}else this.markerData=this.markerData.map(t=>{let e=JSON.parse(t);return e.highlight=!1,JSON.stringify(e)});this.markerDataCache=[].concat(this.markerData)},setFitView(t){if(t)this.drawPlugin.setFitView(t);else if(0!==this.alarmList.length){let t=this.alarmList[0].objectId;this.drawPlugin.setFitView(t)}},formateDeviceStatus(t){let e=JSON.parse(t),n={status:"",text:""};return 0===e.status?2===e.onlineStatus?n={status:"online",text:"在线",markerImg:d}:3===e.onlineStatus&&(n={status:"offline",text:"离线",markerImg:p}):n=1===e.status?{status:"disabled",text:"禁用",markerImg:m}:{status:"disabled",text:"无效",markerImg:m},n},formateScreenSize(){const t=this.$refs.imgControlLayout.parentElement.parentElement;let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight};e.offsetWidth,e.offsetHeight,this.renderWidth=e.offsetWidth,this.renderHeight=e.offsetHeight},switchAlarmDevice(){0!==this.alarmList.length&&(this.alarmList[this.currentAlarm]&&this.drawPlugin.setFitView(this.alarmList[this.currentAlarm].objectId),this.currentAlarm+1<this.alarmList.length?this.currentAlarm++:this.currentAlarm+1===this.alarmList.length&&(this.currentAlarm=0))}},created(){this.renderImgId="zoom-img_"+this._uid},mounted(){this.loading=!0,this.formateScreenSize(),document.addEventListener("fullscreenchange",()=>{null!==document.fullscreenElement?this.isFullScreen=!0:this.isFullScreen=!1})}});const g="data:image/png;base64,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",y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFSklEQVRoQ9VabUxbZRR+EBEJoETDYlZxMbKBCAPCpBoKfoytkMUOGqOJiSUaQ2gpQ8MPNeVLKFF/kAi0tDHEhJoscTEtaBbazI8ECloMAUWxKIvZsGZZ4jIFMxURc67c5gba3q/2Dt7kTaH3Pc85T+97zznvOTcJ8RkpAI5szywA3Ekaru+YPwCguSFXfZIMgPsA5AE4DKAIwC0isf4FsAjgRwDLAC6LlGeWSyFwJ4Dj2/NWKUojyPwD4NPt+ZsYTLEEWMPvFqNExNpfOUQEiQklcADAcwAeFIQqf9H3AM4CuMoHJYRAIYAXAaTzgcX5+h8A3gPwbSxcPgJPAng2zoaJhfsAwGfRhGIReBjAS2K1JWj9CICvImFHI3AvgI4EGSMVthfAzzuFIxG4A8DrAO6SqilBctcAvAngdy5+JALNAI4myAi5sN8AsMciQH7+GblaEix/bjtW7IrEFGFfBRAzSG1tbTWyBq6srFzV6/UXFhcXyeWJHkVFRelut/tEbm4uxZn/DUpKepcHiILd2wCYiM3dQnoAWj4rKioqsvx+f/guLS0t/VJSUnJ+Y2Nji0+Wez0lJSVpYWHhVEFBwUH2e41Gc256epoSP77hA+DmEqDEjH59QbmN2Ww+NDQ0FCY7NTV1saqqinIZwWNycvJ4ZWXlA6xAS0uLz2azXRIIQLkT3YXL7B2oBVAnUJhZZrPZipubm9WsjMfjWdTr9V8IwXC73Y/W19dTBssMu90eMJvNXwuR5awZAzDBEnhZSp7j9XqrtFptPgvqdDpnjUbjQixDHA5HSVNTUzm7xufzBWtqaiZFGk/LKV96hwjcBmBAQj7P6AwEAtry8vJDrAGdnZ2f9/b2Uo6/a3R0dBzu6el5gr0wOzt7Sa1W036WMug80UoEyOeT75c8gsGgLi8v7x4WoKGh4bzL5QpxAQ0Gg2p0dPQU+93y8vKV/Pz8jyQr3d59RKAeQI0cIJVKlRoIBE6rVCo6SmJ9ff1GbW3tx36/n/EoGo0ma2Ji4qmMjIw0+j8UCl1Xq9XjoVDoLzl6AXiJwAsAHpEJhLq6ugMul0ubmZnJGLm6unqtrKxsnP6em5s7nZOTw6Qma2trNwwGg29sbIw31xdg05dE4BUA4QdRgFDUJa2trff39/dXJycnM85hfn5+lT5LS0tz6HNzc3Orra3tk4GBgZ/k6OHIBknRGwDC+1cusNVqzbdYLFWRcPr6+ibb29uDcnVw5K8QAfJAt8cRFMPDw8VGozEcIwjb4XAETCaTWF/PZ9afCSFgt9uLTSaTYgTiuoW6urqOdHd3P67kForbQ9zY2JgzODhYnZqaSpU6xR7iuLhRnU6XPTIyUp2dnZ2ptBuVHcgKCwvTPR5POK9XOpA9BOAM3+Me7Trl9TMzMyePHTsWzocUTCUGyQvRfh2Umsx5vd7HtFotFXmZoXAyd4ZNp00AisXehfHx8QqdTkd3kBkKp9MUU4ZZAicAPC2GgN1uP2oymcI51E040HwI4AJLQNSR0mKx5FqtVio7MmMvHCnJDkGHeoPBcNDpdJ5MS0ujgxD2yqGebNn3ZRUisa8LW+yWlnTAF+MAZKxlDvJc+Ui1UaqSvXYTGhp8vKj699bOrk208jp1ZVr4EBW+PhSpWxOrwbEXujPsbxS1S8PXYtoLXZqo3Rlix0eA1lC3hupGSjc8qKFBvYBdXRm+hzjS1qauzfMKNj6okfH+zm5MJMOE3AGu3L5tdHNJ7OtXDbhEKAGkVJrOAjSlvOxBL3nQ/E7Jlz0ibUVK7Ki6Rw0LIa/bXARABa6/5caS/wCwkfkOnFI6EgAAAABJRU5ErkJggg==";function w(t,e,n,i,r,o,a,s,l,c){"boolean"!==typeof a&&(l=s,s=a,a=!1);const u="function"===typeof n?n.options:n;let h;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(h=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__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=h):e&&(h=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(u.functional){const t=u.render;u.render=function(e,n){return h.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,h):[h]}return n}const b="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function A(t){return(t,e)=>S(t,e)}let x;const k={};function S(t,e){const n=b?e.media||"default":t,i=k[n]||(k[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===x&&(x=document.head||document.getElementsByTagName("head")[0]),x.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}const C=v;var E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"imgControlLayout",staticClass:"img-control-layout"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"renderDom",staticClass:"render-dom",attrs:{id:"render-dom"}},[n("img",t._b({ref:"zoomImg",staticClass:"zoom-img",attrs:{id:t.renderImgId,alt:""}},"img",{"data-width":t.bgImgWidth,"data-height":t.bgImgHeight},!1)),t._v(" "),n("div",{staticClass:"map-tools",style:{zIndex:t.markerData.length+1,top:""+t.fullScreenAside[0],right:""+t.fullScreenAside[1]}},[t.isFullScreen?n("button",{staticClass:"map-tools-button exit-fullscreen-button",on:{click:function(e){return t.fullScreenTrigger(e,"exit")}}},[n("i",{staticClass:"qz-map-icon button-icon exit-fullscreen"}),t._v(" "),n("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("退出全屏")])]):n("button",{staticClass:"map-tools-button fullscreen-button",on:{click:function(e){return t.fullScreenTrigger(e,"full")}}},[n("i",{staticClass:"qz-map-icon button-icon fullscreen"}),t._v(" "),n("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("全屏")])]),t._v(" "),0!==t.alarmList.length?n("button",{staticClass:"map-tools-button next-alarm-button",on:{click:t.switchAlarmDevice}},[n("i",{staticClass:"qz-map-icon button-icon next-alarm"}),t._v(" "),n("span",{staticClass:"el-tooltip__popper is-dark button-tooltip"},[t._v("查看下一个告警设备")])]):t._e()]),t._v(" "),t._l(t.markerData,(function(e,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:!JSON.parse(e).hidden,expression:"!JSON.parse(markerItem).hidden"}],key:i,ref:"marker"+JSON.parse(e).id,refInFor:!0,staticClass:"zoom-marker",class:{selected:t.selectedId===JSON.parse(e).id},style:{zIndex:i+1,left:JSON.parse(e).x+"px",top:JSON.parse(e).y+"px"},attrs:{id:JSON.parse(e).id}},[JSON.parse(e).highlight?[n("img",{staticClass:"marker-icon",style:{width:t.markerSize.width+"px",height:t.markerSize.height+"px"},attrs:{draggable:"false",src:JSON.parse(e).markerHigLightImg||t.markerHigLightImg}})]:[n("img",{staticClass:"marker-icon",style:{width:t.markerSize.width+"px",height:t.markerSize.height+"px"},attrs:{draggable:"false",src:t.formateDeviceStatus(e).markerImg}})],t._v(" "),t._t("icon",null,{deviceItem:JSON.parse(e)})],2)})),t._v(" "),t._l(t.alarmList,(function(e,i){return t.markerIdList.indexOf(e.objectId)>-1?n("div",{key:Date.now()+i,staticClass:"pic-map-alarm",style:{left:e.left+"px",top:e.top+"px"},attrs:{id:"alarm-"+e.objectId}},[n("div",{staticClass:"alarm-dialog-container"},[t._t("alarmdialog",null,{data:e})],2),t._v(" "),n("div",{staticClass:"pic-map-arrow"})]):t._e()})),t._v(" "),void 0,t._v(" "),t.showPoper&&t.$slots.popover?n("div",{staticClass:"poper-dialog",style:{left:t.poperPosition.left+"px",top:t.poperPosition.top+"px"}},[t.$slots.popover?[t._t("popover",null,{data:t.popMarkerData})]:t._e()],2):t._e(),t._v(" "),t.showPlayer&&t.showPlayerDialog?n("div",{ref:"playerDialog",staticClass:"player-dialog"},[t.playerSlot?[t._t("player",null,{data:{devicePlayerConfig:t.devicePlayerConfig,marker:t.currentMarkerPos}})]:[n("div",{staticClass:"player-block",class:{"no-play":t.showPlayerDialog}},[t.supportPlay&&t.showPlayerDialog?n("qz-player",{ref:"qzPlayer",staticClass:"player-plugin",attrs:{type:"live",playerServer:t.devicePlayerConfig.playerServer,pluginUrl:t.devicePlayerConfig.pluginUrl,basicConfig:t.devicePlayerConfig.basicConfig,devices:t.playerDevices}}):n("div",{staticClass:"empty-video"},[n("img",{attrs:{src:g,alt:""}}),t._v(" "),n("span",[t._v("暂无视频")])])],1),t._v(" "),n("div",{staticClass:"device-info"},[t.devicePlayerConfig.deviceItem.taskName?n("p",[n("span",{staticClass:"title"},[t._v("布控任务:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.taskName||"-"))])]):t._e(),t._v(" "),n("p",[n("span",{staticClass:"title"},[t._v("区域名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.areaName))])]),t._v(" "),t.devicePlayerConfig.deviceItem.edgeName?n("p",[n("span",{staticClass:"title"},[t._v("边端名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.edgeName||"-"))])]):t._e(),t._v(" "),n("p",[n("span",{staticClass:"title"},[t._v("设备名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.devicePlayerConfig.deviceItem.deviceName))])])]),t._v(" "),n("img",{staticClass:"close-icon",attrs:{src:y,alt:""},on:{click:t.closePlayer}})]],2):t._e()],2)])},_=[];const I=function(t){t&&t("data-v-4f0800e6_0",{source:".img-control-layout{position:relative;z-index:0;overflow:hidden;width:100%;height:100%}.img-control-layout .jump-animate .marker-icon{-webkit-animation:jumpIcon .5s cubic-bezier(.165,.84,.44,1) infinite alternate;animation:jumpIcon .5s cubic-bezier(.165,.84,.44,1) infinite alternate;-webkit-animation-delay:-.9s;animation-delay:-.9s}.img-control-layout .render-dom{width:100%;height:100%;background-color:#f7fafc}.img-control-layout .render-dom .set-full-button{position:absolute;right:20px;top:20px;z-index:99999}.img-control-layout .render-dom .zoom-img{position:absolute;left:0;top:0;box-shadow:0 2px 8px 0 rgba(0,0,0,.4)}.img-control-layout .render-dom .zoom-marker{position:absolute;cursor:pointer;border:1px solid transparent}.img-control-layout .render-dom .zoom-marker .marker-icon{cursor:pointer;vertical-align:middle}.img-control-layout .render-dom .zoom-marker.selected{border-color:#5b99ff}.img-control-layout .poper-dialog{position:absolute;z-index:9999;border:1px solid;border-radius:5px;background-color:#7b7b7b;padding:10px 15px;color:#fff;transition:all .3s}.pic-map-alarm{position:absolute;background:#fff;font-size:14px;border:1px solid #ebeef5;box-sizing:border-box}.pic-map-arrow{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;left:50%;transform:translateX(-50%);border-width:6px;bottom:-6px;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.pic-map-arrow::after{content:' ';border-width:6px;bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.pic-map-alarm,.player-dialog{z-index:998}.player-dialog{position:absolute;background-color:#fff;border:1px solid #dcdfe3;padding:4px;width:320px}.player-dialog .close-icon{position:absolute;right:15px;top:15px;z-index:3;width:16px;height:16px;cursor:pointer}.player-dialog .player-block{position:relative;z-index:2;width:100%;height:180px}.player-dialog .player-block.no-play{background-color:#edeff1}.player-dialog .player-block .rtsp-player{width:100%;height:180px}.player-dialog .player-block .player-control-bar{display:none}.player-dialog .player-block .empty-video{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;height:100%;color:#42526e;font-size:14px;font-weight:600}.player-dialog .player-block .empty-video img{width:62px;height:62px}.player-dialog .device-info{padding:16px;font-size:14px}.player-dialog .device-info p{display:flex;line-height:initial;margin:0}.player-dialog .device-info .title{color:#7a869a;flex-shrink:0}.player-dialog .device-info .info{color:#42526e}.player-dialog .play-button{position:absolute;z-index:998;left:50%;top:50%;transform:translate(-50%,-50%)}@keyframes jumpIcon{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(-35px);transform:translateY(-35px)}}",map:void 0,media:void 0})},T=void 0,D=void 0,R=!1,O=w({render:E,staticRenderFns:_},I,C,T,R,D,!1,A,void 0,void 0),L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAADxUlEQVRIS8WWaUxUVxiG3+/OBgwjlHEZUcGKwYLlh5UCghJrjI1WmwbQpElNjCW4FWKsSRuaVEwsRROXmGgaY/zZutYEqIpojKkhHXTQGBMEBWUbxmiBMg7gLOc0544IdxYuXTLev+c735PvPe977iFM5qvcYQakGQB/B0RGEHTyNg4POHcB1A+wZyg/9qdaO5qw4IedM6Fl74HzWLVG8jrRS3ilh/juSG+4+tDAipIYREV9IE8kPpPRLMWbsnm04UPSaJIBivM35H9xn6+Dhl/dZgNOK5yu1xNSP0ZGmlBxYigQHAwU8kmUCZAesdEJZJn2Oel1KwFoVKb0cbfnGnc8/wUvh/sA7gbjdwJlVgJlmJQDQJISp2UhfsouADGTknOsaAgDg4eY/XkjAAbG/hgPHQPKMuqXicmkZMtaGI3FAvwPYaPlDC7XSdbhqJUnHXH/PirvGLCqbKk4s9eTlf8H2Bh0YLDSPyn149ujt2RfyavCjRpfpjgzKSnx+L+QMZwQQ6zTvl0+U5/mjnCvH7i/7CNhfZqftIP0uo/D7Z5uiEF9XiFuvujGzvs3wCahN3d76vjjzmNyZL45eoPgN0qubP05lpPh3KgjCZeWFCDHPFPG/NzVjG33roOBq2F9rMtRLEeGsQZCZWk6JKRIcyxrYDJuDbe7ZG4GDmYsVyyf6W7Blrv18KlBna6fWJfjEhjaCJVf5UGiBEpN3kNa7eJQwA2zUmEfdqEsZRFWW95VlJzvaUXx3avw8fCTcq/Xxls79oLxPsKPpatAMEhp806BaGoo4OGM5RDQosZa7J6fiVUzkhVlF+2PsLmpDt5wUM5fsOb2zeB4Ragq/UQOelrKhTeXcgA1RqNFdc5nWGBKQJG1GuWp2VgxPUlRVd3bhk22K/DwEFbi8LDmtkJxEUwKKDrHaQ24kluAxOhYFFlrUJG2BPlTZyugv/W2Y6PtcjBUAVSR9HzWOpzraUW7awBfJKUj3zwb8ToD1jfWYF/6UuSZExXQw49t+L65QamRQlIV0zjXleKpaxBEgFkfjZW3zuFs1lpEabRYb63BgffzkZ3gj0rH0CC+bKqDtd+hACpNoxILAXR63ehzj+DQIxtOdT7APGMcruYWymHY0FiLqoXL0NBnx4HW2xhm3mDfKWMxcfAF8MST+/j6wU1Fo3STGZdzC1D37ClK7tVPFP6A4Ktcbb9mf4qz3S043dMS1FRLEryhXDmuMvhqeyuXt4BG9PckgBH/AQtoRJ8Yowcd0UfUKDSiz8Tx5o/YQzgwcf/jU/9vze8Ty+Dyv8IAAAAASUVORK5CYII=",P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAD30lEQVRIS72WXUwcVRTH/3dmdoft7lZ3scpScKpCQSBUpR9sgRoTYykCielTX5qUNhtjpTE+1gfAxD4a06TGkIYHX3wy0cSYbcJnsK3lS5p0WwpL2QG6gGmXyn6U/Zi55o4FGdhl8CN7X++553fPOf9z7iXYwTp9/lIuzyVe4ijnoESxEnAmdoxCTRLKR1WiLiuqeenbKxcfG7kj2xl4PvnClVJTpYTCZuRIuwBBROCEic6vPlvIZJ8W6PG070rl0LcI5RzsoN1uy3U6c49YLDmHeJ6XCMFzGoDiD0VR5KdPV4dDoce3wuGIFiEl6rKwSsY6O9tjm8FbgFr6SPIgR2C22qzO/HzXKdEsvguAN4hSiSfi3cHgwnfRSDSkUiQUahrZnGYdkMFMXLIaAFew13X4eYfzUwC7dpLODTaxJ8uhL+cfLgwBUJOq6deN0HUgS2PSTOpYZJIkNdrttnMM/A9ha+ZqOBy5KsvyTyxSU4IOrqV3Hdhyoa2W1exZZBf/A2wd+mQ5dIlFymradbnjF7ahAZkaFSV1kNXslX37vv4XacyUiNhMIPARqynPCyNMvRqw5ULHO0z6xfuLzotm8Xim0xaLiObmtxEM/o7BwfEdZTueiF+bmvRfYS3TdbmtjzwTylEmfUmSrmZSI8cRNDbWIS8vVwNNTs5iYGCUtYbRUmRZPsdaJqmabpAzre1lHMhrkiQ12O22DzOdLi97FTW1B3TbU1Oz6O8fAzWghsORb2RZ/lkFnSZnP/68BoQ6S0tL2gRBqEoHLCoqRDQaQ2VlMSTJpTOZ9s+jt29kW2gqlRqdmLjfAUpCpKW17T0CTiwvL+sihLyQDlhbcwBFxYXwem/izTf2o/DlPJ3Zg+mH6OkdzgillD7y+e62UKhxcra1433WAhUVZd8DRBvKm5cg8GhoqIXDYdOgVVWvo6DgRZ3ZzEwQPT1DUNV0RaXJO3funmSDYEdA5tlsNqGpqQ5WqwVe7w0cPlSO/L17dNBAYAHd3bfSQDcAjVJaX++G3z+PlZUISkok5Lv2QBRNWqRHqivgcumrMD4+iaEhn+4i+pQaiMbj+QArK1EQAuTkiPjxhwEcr3dDEDgN6nZXrrdKOBxDb+8wlpZCOqBONEZtwYDJRAqr8TjY7e/dC2D3biuam49pTq95b6LaXYnFxUf4bew+UoqyRQO6tjBqfAb0+R7g+vXbOkdOhx2NTccwN7uIvv7R7Zpf3/hGo+1E/VH4/XOY8s9tccqmT3pV/m26ZbSxrawP77+izOLzpEWZ7QeYQbP6xVgrc1Y/UWvQrH4TN2o/ax/hzQ33f371/wQAZGZnL9+7/gAAAABJRU5ErkJggg==",M="data:image/png;base64,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",N="data:image/png;base64,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",B=28,W=28;class F{constructor(t){l(this,"_icon",{}),this._icon=t||{},this._icon.onlineCamera||(this._icon.onlineCamera=L),this._icon.offlineCamera||(this._icon.offlineCamera=P),this._icon.disabledCamera||(this._icon.disbaledCamera=P),this._icon.onlineGate||(this._icon.onlineGate=M),this._icon.offlineGate||(this._icon.offlineGate=N)}createMarker(t){const{onlineIcon:e,offlineIcon:n,disabledIcon:i}=this.createMarkerIcon(t);return{marker:new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),title:t.objectName,offset:new AMap.Pixel(-(t.markerWidth||B)/2,-(t.markerHeight||W)/2),icon:this.formateDeviceStatus(t)}),onlineIcon:e,offlineIcon:n,disabledIcon:i}}createMarkerIcon(t){let e,n,i;return e="gate"===t.objectType?this._icon.onlineGate:t.onlineIcon||this._icon.onlineCamera,n="gate"===t.objectType?this._icon.offlineGate:t.offlineIcon||this._icon.offlineCamera,i="gate"===t.objectType?this._icon.offlineGate:t.disabledIcon||this._icon.disabledCamera,{onlineIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||B,t.markerHeight||W),image:e,imageSize:new AMap.Size(t.markerWidth||B,t.markerHeight||W)}),offlineIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||B,t.markerHeight||W),image:n,imageSize:new AMap.Size(t.markerWidth||B,t.markerHeight||W)}),disabledIcon:new AMap.Icon({size:new AMap.Size(t.markerWidth||B,t.markerHeight||W),image:i,imageSize:new AMap.Size(t.markerWidth||B,t.markerHeight||W)})}}formateDeviceStatus(t){return 0!==t.status?(t.status,P):2===t.onlineStatus?L:3===t.onlineStatus?P:void 0}}const U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAJKADAAQAAAABAAAAJAAAAAAJxsHGAAADV0lEQVRYCe1XS0hUURj+zmiOqYi0yIo2JQajQrZoH1FEuI3ATI0emwwqgoih6PZgjDYlVJsiEhIxItpIUJt2tcsgZxZmbSxzEyJpjuac/v8O49x7z2PujLrzwL3nnP/xfd899/z3Aaw3+woIu1vjdUZrsCgOIiPbyNsEKeup54PbFISYoj6JiBjGBvkOTvMf1xPyFF6QM7oFC7gOiZMkoiIUvhALEHiKCtwgYb/C5IQTFP9yERncIsDqMKCamFlEcA2Jlnsan89kF+TIcqRTjyAzZ3xZpU5E5DGisbNwxD8TRLnJ4drTqSckptsaU4yTLyyd4tt9wpQWMTkQT55eVTE5Ir5AxjY0/S2LJ7dSFY0DcqMhb4Vm8ZeqsAGJpskgkH6FMvLS2olhCXShLkdQDqgog80Zq8V8+ieZS62oIKJpPovK6DY4jTPeAHVTpxf3hxWzvbYcdw/XY9/OrPb332Zx+c0UJmaMReTlrkaW67XXqAoCDngDTGMW8/l8AzZV5SHaW+twaFcNdveNhxXFXD5Bmj0k95pEeO28Ml4xOR/b2BeuqVyqIInNYcByt0kXa/P54jVcqiAhQwnyAZc60XCpgmB+rHt5eQObms3nz1G5NIIw4U/Sz7iafs+p1cQ29oVsCpdO0IcwYFzaXE2DI9OYnFl0Dx4XUWFMo3Dla3ZZhXhFT9JTy1PLgEUdG/phiSjkYi5/U1coGntLz296j61xYw7mCjRVEH+riMjNQNzqT5lD812kCmLq1tgAveY+rr6KHCJhuxy5eb7XCzoqliikkw5zbecxih0xZieyHEquXhCH3Wn+St8s55SMlRoEelxsA45ZECckmp+RqF5DbvFmxupt6bclqt9DwWgpBeKpAfqcbQ+6ipqLyCASsQ76b5O2PPsKcSYDRGNd1A/ZgKw+zs1iWMW4dFYgr/OFLMOnZD/9JHZ4zQXHQgxgT1O3aRMH8wuvUC6DqyLa1EVL1pczFe4plnMMFaXLL7yHdFlXRrn67tMrpkznJtH82LhA1fRA7zdbSxPEePFkG2305/SvX+eDF5imJ/1x+sUZ9tlDTkoXxARXxxqwtPCS9lWryyfECMoqjuB2Y8nvwpUJYhXO90rMzz10BVVW9cDZMe+O109rtAL/AUvA7qP2DtrOAAAAAElFTkSuQmCC",z=36;class j{constructor(t){l(this,"_icon",{}),this._icon=t||{},this._icon.location||(this._icon.location=U)}createLocation(t){const e=this.createLocationIcon(t);return new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),title:t.objectName,offset:new AMap.Pixel(-z/2,-z),icon:e})}createLocationIcon(t){let e;return e=t.icon?icon:this._icon.location,new AMap.Icon({size:new AMap.Size(z,z),image:e,imageSize:new AMap.Size(z,z)})}}class Y{constructor(t,e,n){l(this,"_map",void 0),l(this,"_alarmConfig",void 0),l(this,"_mapInfoWindow",void 0),l(this,"_mapAlarmIds",void 0),this._map=t,this._alarmConfig=e,this._mapInfoWindow=n,this._mapAlarmIds={}}showAlarmMsg(t,e,n){let i;this._alarmConfig.bounceIconOnAlarm&&e.marker&&e.marker.setAnimation("AMAP_ANIMATION_BOUNCE"),this._alarmConfig.showAlarmOnMap&&(i=this.openAlarmInfoWindow(e,t),this._mapInfoWindow.openedPointObjectId!==e.objectId&&-1===Object.keys(this._mapAlarmIds).indexOf(t.objectId)&&(this._map.add(i),this._mapAlarmIds[t.objectId]=i,this.setSwitchDeviceButtonText()));const r=()=>{this._alarmConfig.showAlarmOnMap&&(this._mapInfoWindow.openedPointObjectId!==e.objectId&&(this._map.remove(i),delete this._mapAlarmIds[t.objectId],this.setSwitchDeviceButtonText()),this.cancelAlarm(e),n(t,e))};return 0!==t.autoCloseTime&&setTimeout(r,t.autoCloseTime||1e4),i.on("remove",()=>{}),i}cancelAlarm(t){this._alarmConfig.bounceIconOnAlarm&&t.marker.setAnimation("AMAP_ANIMATION_NONE")}openAlarmInfoWindow(t,e){let{alarmWindow:n,closeButton:i,content:r}=this.createBasicAlarmWindow(e);this._alarmConfig.customAlarmInfoWindow?r.appendChild(this._alarmConfig.customAlarmInfoWindow({...t,marker:void 0,onlineIcon:void 0,offlineIcon:void 0,markerClickEvent:void 0},e)):r.appendChild(this.createAlarmInfoContent(e));const o=document.createElement("div");o.style.position="absolute",document.body.appendChild(o),o.appendChild(n),o.removeChild(n),document.body.removeChild(o);const a=new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),offset:new AMap.Pixel(-(e.dialogWidth||200)/2,-(e.dialogHeight||200)-80),content:n}),s=()=>{this._mapInfoWindow.openedPointObjectId!==t.objectId&&(this._map.remove(a),delete this._mapAlarmIds[e.objectId],this.setSwitchDeviceButtonText()),this.cancelAlarm(t)};return i.addEventListener("click",s),a}createBasicAlarmWindow(t){const e=document.createElement("div");e.classList.add("map-alarm-info-window"),e.style.width=t.dialogWidth+"px",e.style.height=t.dialogHeight+"px";const n=document.createElement("div");if(n.classList.add("map-alarm-info-close"),n.classList.add("qz-map-icon"),n.classList.add("close"),e.appendChild(n),t.title){const n=document.createElement("div");n.classList.add("map-alarm-info-title"),n.innerText=t.title,e.appendChild(n)}const i=document.createElement("div");return i.classList.add("map-alarm-info-content"),e.appendChild(i),{alarmWindow:e,closeButton:n,content:i}}createAlarmInfoContent(t){const e=document.createElement("div");return e.innerHTML=t.text,e}setSwitchDeviceButtonText(){let t=document.querySelector(".next-alarm-button");return t&&(0===Object.keys(this._mapAlarmIds).length?t.style.display="none":t.style.display="block",t.querySelector(".button-tooltip").innerText=`查看下一个告警设备(${Object.keys(this._mapAlarmIds).length})`),new Promise(t=>{t(this._mapAlarmIds)})}}var H={name:"PlayerVat",props:{url:{type:String},pointInfo:{type:Object},supportPlay:{type:Boolean,default:!0},pluginUrl:{type:String}},components:{QzPlayer:s()},data(){return{isPluginLoaded:!1,loading:null,devicePlayerConfig:{devices:[],basicConfig:{autoPlay:!1},playerServer:this.playerServer,pluginUrl:this.pluginUrl},isPlaying:!1}},methods:{pluginOnLoad(){this.isPluginLoaded=!0},onStreamStatus(t,e){2===e?this.loading=!1:null===this.loading&&(this.loading=!0)},closeStream(){this.$refs.qzPlayer&&this.$refs.qzPlayer.stop()},playerStart(){this.devicePlayerConfig.deviceItem.rtspUrl=this.pointInfo.rtspUrl,this.isPlaying=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.qzPlayer.play()},200)})}},created(){this.devicePlayerConfig.playerServer=this.pointInfo.data.playerServer,this.devicePlayerConfig.devices=[].concat({rtspUrl:this.pointInfo.data.rtspUrl,dcs:this.pointInfo.data.dcs,areaName:this.pointInfo.data.areaName,deviceName:this.pointInfo.data.deviceName})},mounted(){},render(t){return t("div",{class:{"player-ctnr":!0},style:{position:"relative"}},[t("div",{class:"el-loading-mask",style:{position:"absolute",backgroundColor:"#101010",zIndex:"900",display:this.isPluginLoaded&&this.loading?"":"none"}},[t("div",{class:"el-loading-spinner",domProps:{innerHTML:'<svg viewBox="25 25 50 50" class="circular"><circle cx="50" cy="50" r="20" fill="none" class="path"></circle></svg>'}})]),(()=>{if(this.supportPlay)return t("qz-player",{ref:"qzPlayer",props:{type:"live",basicConfig:this.devicePlayerConfig.basicConfig,pluginUrl:this.devicePlayerConfig.pluginUrl,playerServer:this.devicePlayerConfig.playerServer,devices:this.devicePlayerConfig.devices}})})()])}};class V{constructor(t,e){l(this,"_map",void 0),l(this,"_infoWindowConfig",void 0),l(this,"_livePlayerInstance",void 0),l(this,"openedPointObjectId",null),l(this,"infoWindow",null),this._map=t,this._infoWindowConfig=e}openInfoWindow(t,e){if("mouseover"==e.trigger)return void this.openMouseoverWindow(t,e);let n,{infoWindowNode:i,content:r}=this.createBasicInfoWindow(t,e);n=e.infoWindowConfig&&e.infoWindowConfig.anchor&&"top-center"==e.infoWindowConfig.anchor?new AMap.Pixel(0,12):new AMap.Pixel(0,-22),this.infoWindow=new AMap.InfoWindow({...e.infoWindowConfig,content:i,position:[t.lon,t.lat],offset:n,retainWhenClose:!0,isCustom:!0}),this.infoWindow.on("close",t=>{this.openedPointObjectId=null,this.closeStream()}),this.infoWindow.open(this._map),this.openedPointObjectId=t.objectId}createBasicInfoWindow(t,e){const n=document.createElement("div");n.classList.add("map-info-window");const i=document.createElement("div");let r=null;if(t&&t.data&&t.data.rtspUrl&&(r=document.createElement("div"),r.classList.add("map-info-content"),r.appendChild(this.createInfoWindowContent(t.data.rtspUrl,t,e))),!r){r=document.createElement("div"),r.classList.add("map-info-no-play"),r.classList.add("empty-video");const t=document.createElement("img");t.src=g;const e=document.createElement("span");e.innerText="暂无视频",r.appendChild(t),r.appendChild(e)}let o=null;if(t&&t.data&&(t.data.deviceName||t.data.areaName)){if(o=document.createElement("div"),o.classList.add("map-info-device"),t.style&&0!==Object.keys(t.style).length&&(o.style={...o.style,...t.style}),t.data.hasOwnProperty("taskName")){let e,n,i=document.createElement("p");i.classList.add("map-task-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="布控任务:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.taskName||"-",i.appendChild(e),i.appendChild(n),o.appendChild(i)}let e,n,i=document.createElement("p");if(i.classList.add("map-area-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="区域名称:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.areaName,i.appendChild(e),i.appendChild(n),o.appendChild(i),t.data.hasOwnProperty("edgeName")){let e,n,i=document.createElement("p");i.classList.add("map-edge-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="边端名称:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.edgeName||"-",i.appendChild(e),i.appendChild(n),o.appendChild(i)}let r=document.createElement("p");r.classList.add("map-device-name"),e=document.createElement("span"),e.classList.add("title"),e.innerText="设备名称:",n=document.createElement("span"),n.classList.add("info"),n.innerText=t.data.deviceName,r.appendChild(e),r.appendChild(n),o.appendChild(r)}const a=document.createElement("img");return a.classList.add("map-info-close"),a.src=y,a.addEventListener("click",()=>{this._map.clearInfoWindow()}),this._infoWindowConfig.customMarkerInfoWindow?n.appendChild(this._infoWindowConfig.customMarkerInfoWindow(t,()=>{this._map.clearInfoWindow()})):(i.classList.add("map-info-content"),r&&n.appendChild(r),o&&n.appendChild(o),n.appendChild(a)),{infoWindowNode:n,content:i}}createInfoWindowContent(t,e,n){return this.createLivePlayer(t,e,n)}createLivePlayer(t,e,n){const r=i["default"].extend(H),o=new r({el:document.createElement("div"),propsData:{url:t,pointInfo:e,supportPlay:!n.customMarkerInfoWindow,pluginUrl:n.playerPluginUrl},methods:{closeInfoWindow(){this._map.clearInfoWindow()}}});return this._livePlayerInstance=o,o.$el}closeStream(){this._livePlayerInstance&&this._livePlayerInstance.closeStream(0),this._livePlayerInstance=null}openMouseoverWindow(t,e){let{infoWindowNode:n,content:i}=this.createMouseoverWindow(t,e);this.infoWindow=new AMap.InfoWindow({...e.infoWindowConfig,content:n,position:[t.lon,t.lat],offset:new AMap.Pixel(0,-20),retainWhenClose:!0,isCustom:!0}),this.infoWindow.on("close",t=>{this.openedPointObjectId=null}),this.infoWindow.open(this._map),this.openedPointObjectId=t.objectId}createMouseoverWindow(t,e){const n=document.createElement("div");n.classList.add("map-mouseover-window");const i=document.createElement("div");return this._infoWindowConfig.customMouseoverMarkerInfoWindow&&n.appendChild(this._infoWindowConfig.customMouseoverMarkerInfoWindow(t,()=>{this._map.clearInfoWindow()})),{infoWindowNode:n,content:i}}}class K{constructor(t,e,n){l(this,"parnetClass",void 0),l(this,"_map",void 0),l(this,"_infoWindowConfig",void 0),l(this,"_livePlayerInstance",void 0),l(this,"inRingPoints",[]),l(this,"openedPointObjectId",null),this.parnetClass=t,this._map=t.map,this.inRingPoints=e,this._infoWindowConfig=n}openInfoWindow(t,e,n,i){let{infoWindowNode:r,content:o}=this.createBasicInfoWindow(t,e,n,i);const a=new AMap.InfoWindow({...i.infoWindowConfig,content:r,position:[t.lon,t.lat],offset:new AMap.Pixel(22,0),retainWhenClose:!0,isCustom:!0,anchor:"middle-left"});a.open(this._map),this.openedPointObjectId=t.objectId}createBasicInfoWindow(t,e,n,i){const r=document.createElement("div");r.classList.add("clusterer-info-window");const o=document.createElement("div"),a=document.createElement("img");a.classList.add("map-info-close"),a.src=y,a.addEventListener("click",()=>{this._map.clearInfoWindow()});let s=[];return n.map(t=>{let n=e.find(e=>t.lng===e.lon&&t.lat===e.lat);n&&s.push(n)}),this._infoWindowConfig.customClustererInfoWindow?r.appendChild(this._infoWindowConfig.customClustererInfoWindow(t,s,()=>{this.parnetClass.clearInfoWindow()},()=>{this.parnetClass.openInfoWindowByHand(t)})):(o.classList.add("map-info-content"),r.appendChild(a)),{infoWindowNode:r,content:o}}}const G="data:image/png;base64,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",q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAWSElEQVR4Xu2dC5QU1ZnH/1/3oJ4QTcz63KjB6PqIWV01kU0c6GoQFBOjh0Q30Qh09RAevp/JGt1oohsF8YGKInQVDx/xHZP4CDJ0NaCru0dN4iOii2E35hxdFOODqMDUt6cG0GGYma66dW91VffX53Biznzf/373/93fdPf07XsJ8kiFA6MX8C4fbcC3ARxAwK745N9uBAxm4A0E/xhvIIfXu///Bjxam0jLUjGBJi2CmnRemZiW5fIQIoxmHycAGKNY9J8ZuDOXw6LqBOpU1JC0fhwQQBqwNKy5fAxymArgOJ3DE+Fl38dtbW2Y1Tme3tKp3apaAkiCnS+4PIyAqWB81+iwhJUEzGJglleiD42O1eTiAkgCDR7u8j8S42wC7ASG6znEc2DM8sp0S8LjNs1wAojhVhYdPp4ZN4Kwh+Gh+pVn4NaaTZMaNX6WxxVADHbPqnAZhLkGh4givdizaVSUBIkFBBBDq8Cq8HkgXG1IXkmWgVdrNu2jlNyiSQKIgcYXXD6DGDMNSGuR9GySvod0UowKaVTYsKLDQxl4Mmx8g+L+y7PpiAaNnalhBRCN7Rq+gPfObcCrGiWNSTFhVq1EpxkboEmEBRBNjRy9gAev68KDYIzUJJmEzFWeTT9KYqCsjiGAaOqc5fJcMMqa5JKTYUyRz0n6t1sA0bAUCxUeQ4SHNUg1QuI5EI6QT9z7tl4A0bAkLYcfA3CUBqmGSBDhvGqJrmnI4CkfVACJ2SCrwpNBuDmmTGPTCSvzOQyVDY5bt0EAibE0hzm8c57xBAj7xpBJRSoz/q1Wpp+lopgUFSGAxGhGweEpwa7ZGBJpSl3h2XRAmgpKQy0CSIwuWBW+F9T9LcCmeOSAI5fY9ERTTEbTJASQGEZaLq8BY8cYEulKJVzqleiydBXV2GoEEEX/h1d4dI7wW8X0tKYt82wantbiGlGXAKLouuXwdADnK6anN+0DbO+dRu+nt8BkKxNAFP22HA42JA5VTE9tms84emmZFqW2wIQLE0AUDbcqvBqEnRTTU5vGPsbVOmhhagtMuDABRMHwMbfxDh+swzsKqVlIucCzKVVf9GqkaQKIgvvD5/OhuS48o5CahZSrPZsuyEKhSdQogCi4bDn8HQD3KKSmPoUIC6slGpf6QhMqUABRMNpy+YdgXKmQmvoUIiyqlujo1BeaUIECiILRBZcnEuNWhdQspDzg2TQ2C4UmUaMAouBycS6P5BwWK6SmP4Vxi1emKekvNJkKBRAFn4NDp8H4k0Jq+lNku8kWPRJAFJes5fAGAHnF9PSmEaZ4JTmqdHODBBDFpVp0eQUz9lNMT20aM8bWyvRAagtMuDABRNFwy+V7wc2z1X2zDT7h4KUlek7RlqZLE0AUW2pVeAIIrmJ6WtNWeTbtndbiGlGXAKLo+oi5/AU/h1WK6WlNu9Gz6Yy0FteIugSQGK5bFQ6+j/61GBKpSvUJ315aovtTVVSDixFAYjSgUOEriHBRDInUpDKwjrbD572T6c3UFJWCQgSQGE0oOnw0A4/GkEhT6q89m76VpoLSUIsAErMLBYfnE5D9zX0+xngd1Cywx+zqJ+kCSEwrixU+xCc8QcCnYko1Lp3wC69E32tcAekdWQDR0Juiyz9lxiUapBoiwYThtRIta8jgKR9UANHQIMvlzxLjcQa+pEEuUQkGnJpN2TuVPiGXBBBNRhfm8qmUwwJNcsnIMF7zczhWPjnv324BRONSzNpRQAScULXpQY0WNJ2UAKK5pUWXf8uM0Zpl9csxOrwyVfQLN5eiAGKgn5bDrwPY1YC0HknG+V6ZZugRa24VAcRQf60Kv5LGaxGYcGatRDcYmnbTyQogBltarPBMJqRm8x8B/1y16SmDU246aQHEcEstl88C4zrDwwwsT+j085i4dBw159eEDZorgBg0d7N0weHv5YCLG/I5CaGyTR5nLRpHaxOYatMNIYAk1NLuDxOBc33GeQltS1nMjGtqZXokoSk25TACSMJt3bR361xjGxwZ/w1ghtx9rqexAogeHyOrWC4fA8ZIBkYQcFhkgZ4JhLfhYwkH7zWAe5fZtDqWniR/7IAAkoLFMGIe7+MzRoExmggHMWOfAY8UYrwJwkoAy3zGY3Kfh7kmCiDmvI2lHBxOR13Yx8/jiwR8DoyVfh4rB+ex8pHv07uxxCU5tAMCSGirJLAVHRBAWrHrMufQDgggoa2SwFZ0QABpxa7LnEM7IICEtkoCW9EBAaQVuy5zDu2AABLaKglsRQcEkFbsusw5tAMCSGirJLAVHRBAWrHrMufQDgggoa2KF1icx4d3rceabT6DNYtPonfiqYXPHjmf/25dF3bNd2EXbyJ54TMlMnBAAElgHVgOfwfAPb2GehtAcJL6GgDvgrEWhPcBrGXC2lzwv0BXvfKIsS0zdmDC9gRsD8YOIOwEwi5g7NJz0yMBLn+AM73TKBhHHiEcEEBCmBQ3xKrwMyAcGldHRz4Bvk+YUCvRQh16za4hgBju8Ii5PNzPoWZ4mOjyjM5cGy5aMp7+M3py62QIIIZ7bbn8GzC+YXgYZXkCfr5+W0xffgoFL/nk0csBAcTgkii4/FVipP43NDNeBuHKmk3Ndilp7O4KILEt7F/AcngOgA6DQ+iWfpB8TK920OO6hbOqJ4AY6lxxHh/EPp43JG9UloFptB7TvUlyX6EAYmipFRy+hoBzDMknIbuCCNOqJXKSGCytYwggBjrT7vAX24CXAAwyIJ+0ZEu/7BJADCw3y+HLAfzYgHTDJIOXXW15TOscT281rIgGDCyAaDZ9uMN75ghPgbG7ZunGyzH+6ANXLi1Ttm7SiuGcABLDvL5SCw5fT8CZmmVTJcfA3ezjyqUd9GyqCjNQjACi0VRrDlvIo6pRMrVSBPyNCdPeW4fpT0+iv6W20JiFCSAxDeyZblX4N6D0fmqucao9pZ4F40yvTMsN6TdUVgDRZH/RZZsZrXrnX7B9f5Jn012a7EyNjACioRXtt/OObR8h+PT5QA1ymZUgYFLVplszO4E+ChdANHSz4PIVxLhIg1TmJZhxYa1M0zM/kU0TEEBidtKq8FeI8DgD28SUapp0As6q2jSzGSYkgMTsouXwLwD8S0yZpktnxtdrZfqPrE9MAInRwUKFJxKhqV5zx7Bj69RB+AfvVApuvMrsQwBRbF1wlRoDi7u//y2P/hxYDsJxXon+mlWLBBDFzhUcfoiAYxXTWyeNcZ9XpuDQikw+BBCFtlku/wSMSxVSWzIll8PRSybQoixOXgCJ2DWBI6JhG8Pv8mz6rlJmg5MEkAgNsCo8AQT53nYEzz4OZQzL4nYUASRks1tpI2JISyKFMeDUbCpHSkpBsAASogkCRwiTQoTk89gpa1+4EkDqNFbgCLHyQ4ZwHl+vjc/Wh4cCyADNFThCrvywYYySV6Z5YcPTECeA9NOFostjmXFfGprULDUEpzhWbcrUpk4BpI/VV3T4QgauapaFmZp5EO7zStn60FAA6bF62m/l/Qa14XIGTkzNomquQjzPpmKWptTSgBw+mz81OI/9c8D+IAwBcBoIe2SpgRmrVQBpRMMKc/lUyuFgEL4GxpGNqEHGDOWAABLKJo1BRYfvlpdECoYyKgx8RDnsCcZxCgoqKQKIimuqOQKHknMP5oGLOm16cXN2sIWGCDMY+JySYvgkASS8V/EiBQ4l/1bku1DonEhv9JVtubwYjJFKyuGSBJBwPsWLsircDsKyeCqtl+0zjl5aHnjbueXwDQBON+SOAGLI2C1kiw7PYmBKEmM10RirPJv2rjefMTN52w8/jScYOKxerMLPBRAF0yKlHDmf9xrUhT8A+EykRAkOvTgNvnwNXUNa2pW5z0H6uXM8LX6mto4o280tl68F42wDkxFADJi6haTl8PkAmuZgMtN+faxPuNQr0WVhxjP4rUkBJEwD4sQUXZ7JjDPiaLRkrgCi1PYsvsT6JYDjlWbbykkCiFL3sweIy4+AcYzSbM0mBQekvQbAMjuMoroAomRcFgG5E4y0nZAxuy2Pf9/QhfkCyIDrUN6DKGEaIcly+WYwJkdIMRn6EuVwcXUCdX+xynI4uF1KnkH6d1wAMbkauxehyz8H40emxwmh/14+j/bO8RR8JtP9EEDquiaA1LUoZkDB5VHEaPgpfZ5NW708FUDqNlcAqWuRhgDL4WcAHKpBSkmiv6P9mwaQhbwv1uMVJXMGSorwhwLtYysKZu5NejDPostTmXGT4pxjpTFwbs2ma/sSsRx+EsDQWAOYSo64OC2HHwYwRmc5TBheK1GmNplmEpBhDu+cYywnwn46G1hPiwkn1Up0T39xlsP/B2DnejoN+XlEQIZX+FtEmEPALjrqZcasWplO06GVpEYmAQkMKrg8jBgPAdg+CcPqwTFyDu/alcfrSdSiNEZEQIIxhs/hAymPGwkYoTTmxqTV7OO8WgctjKHRsNTMAtLdQJfH5nxcBcK+phwk4E4A11dtemqgMYrz+Ej2kd67whUACeZrubwdfEwmwnEcDZTgPcz9+Tzu6PmXPlN9MqWbaUA2NXA38nERE9oB7A5gt4hmfQTg3eAfAe/wxv9eAcZLnMMLtRI9Fkav6PI0ZlwQJrYhMYqA9KzVmsN7II8TAHwBwGd7/PsQQHCL1MZ/Xej0JpLXkHlqHjTzgGj2Q0lu9AIevG4Dnge6jw5K50MDIOmcmNmqBBAN/mbi3hABRKnTAoiSbVsmZeK+QgFEqdMCiJJtnyRZc/nLyOG5mDLm0wUQJY8FECXbegDi8I8BXB5Txny6AKLksQCiZNsnSYUKP0WEI2LKmE8XQJQ8FkCUbNuYVJjDwyiPpTEkkksVQJS8FkCUbNsEiMNXEXBhDInkUgUQJa8FECXbNiZZFX4RhANjSCSXKoAoeS2AKNnWvaP4WN64FywbDwFEqU8CiJJtQNFhh4GSYnryaQKIkucCiIJtwZ4kzuMFAnZQSG9MigCi5LsAomCb5fJZYFynkNq4FAFEyXsBRME2y+HgW3HB7uHsPAQQpV4JIBFtK1S4SIQlEdMaHy6AKPVAAIloW8Hlm4gxNWJa48MFEKUeCCARbBu2kHfPrcfzZP4uvwhVhQwVQEIatWWYABLBtoLD5xBwTYSU9IQKIEq9EEAi2Gb6WB8GZhJwZoSSwocKIOG96hEpgIS0zXL4mwB+HTI8ehjhIa9E37Qc5ujJITIEkBAmbR0igIS0zXL5NjBOCRkeNexpz6avBEkCSFTrzMYLICH8tVw+ANz9rcG2EOFRQ57epg3HLhpHwaFzAkhU9wzHCyAhDDZ4Z98b+TxG9zohXl5ihehJUiECSB2nT7yb86vf7z7S5wDdTWEf43qfOCgvsXS7HE9PAKnjn1XhU0C4LZ7NfWQzbvHKNKX3TwQQ7U7HEhRA6gHi8K8AHBfL5a2T388DQzttelEA0eysZjkBZABDR8zlI/wcBjyTV6kfhCu9Ev1rX7nyDKLkqLEkAWQAawsuzyDGuZrdX53L49Al4+kvAohmZw3ICSD9mNp+O++Y/6h739Xf6/S93j0Z8gyi0+34WgJIPx5aLk8G4+b4FvdS6EJxoJPPBRDtjscSFED6A8Th4Pj+Qix3t06ue4mlAKLZ8ZhyAkgfBloOHwUg1L0gUfwf6H7DzToCSBRHzccKIH0DMgdAh277+7sdt+c4lsPBZTTb6h4bsllRyVIBpJdtI+byF/yNp7XrvfuQ8ZpXpj3rdcly+VUw9q4XF/nnA/xpObJWCyUIIL2aXXT4BwzM1r0GCLinatNJ9XStCi8H4ch6cVF/zsAdNZtM7UaOWk5m4gWQXq2yHA5uY/2+9g4yOrwyVerpFhy+i4C6INXT6ePnyz2bhinktXSKALI1IKs2XVKpdWHk89i/czy9XE/UcvlaMM6uFxf15wz8b82m4PJNeURwQADpYZbl8j+B8WwE/8KGvufZFOoURsvh8wFMDyscJY58tFc76PEoOa0eK4D0BKTCZ4NwrYFFUffzj81jFl0+mRm3G6ghkHzQsym4xlkeIR0QQLZ8BnkA3H0PuO7HDM+m4Jmh7sOawxbyqNYNVAwgQrlaIkcxveXSBJAeLS84HBxI/SXdq4CBk2s23RlW13L4NQCfDxsfMW4F1qPdm0RvRsxryXABZMuXWO+B8GndK8H3cdjSDgr93qZg+OYq+ZNv+A4LIJu8Cnbvtn2ENeGtCx+Zz2OnzvH0VtiMosNDGXgybLxi3GzPpsmKuS2TJoBsanWxwocw4XcGOr/Wsynys1LR5d8z42AD9XwsyYQLayUy8hczk3UnqS2AbHLb2MFwjD96ZYr8vsbgSSq919coz6bFSS66LI0lgGzqVsHhKQTMMtC80H/i7Tl2Qi+zuockYFLVplsNzD3zkgLI5mcQl38CxqUGOqoESFCH6bOAe831as+mCwzMP9OSAkiaAZnHp8A3cORQP0uWCIvg48JqmX6f6VWtsXgBJMWAdD+LVPgBkJEPL/tcRgysgY9Lah1k4uWmxqWbjJQAknJACi4PI8bSZJZDj1EIt/sbcMnSifSnxMdO0YACSMoBCcorOHy9sXtDBl6Mr6ALPxjokIkUrWUjpQggGQDkqPm814YuPGFw+0n/i4uxAT5GtSokAkgGAAlKLLp8LjNmGPk1GUKUCcNrJQquv26phwCSEUC6IXH4IQaObdQKzQMH9XWecKPqSWJcASRDgIyYzfv4g/AQgP2TWBx9jdFqkAggGQKk+w27y6PIx8MgI7ddheKulSARQDIGSFCuVeHJIAPHoobCo3tvytt5RnsrvNwSQDIIyKY37dOY0citISvywNhmh0QAySggm96038fA2LC/+LXHEV7wGWOW2vRn7dopERRANjWi6PJUZtxkoC/KmxXD1GI5HNxSdWCYWEMxN3o2nWFIu+GyAsgnzyBDwNC/rYJQ8Uqk/ZzfnivH2IHX4Zan0V8A4UowFyWA9PDWcjg4TcTSbPepnk36LwHtVaTl8EsN+vOvAKJ5waRWzsi3+NbjQG8SBYvX+MMQ4APXTbjOK9E5xifXoAHkGWTr38SnA7hBQz/WgnG6V6Z5GrRCSyQNSV93vYcuNgOBAkgfTbIcDg6v/hmAISo9DL54lMvhgs7x9AeV/Lg5CUKyFoQveyUKzjNuyocA0k9bRy/gwevW40QmnEjh9j99CMJ9BNxfLdH9jV4tiUBCmOeVqNTouZocXwAJ4W7B5a8Sd+9/GkKMvZiwV/BpMoBV8PE/YKzyOujREFKJhpiGhAjfqJbo4UQnlfBgAkjChic9nClIGHBqNpWTnk/S4wkgSTvegPEMQPImMdqrZVrRgOkkOqQAkqjdjRvMcjg4NfIQHRUQ8MOqTdN0aKVdQwBJe4c01mdVeDUIO8WSJDzulag9lkaGkgWQDDVLR6lxt6VQDsdXJ9CvdNSSBQ0BJAtd0lhj+yzesW07tVPsGZhas+lmjeWkXkoASX2L9BdYrPD+TIi6/eViz6Yr9FeTbkUBJN39MVZdhAPpfgcfl3kd9EtjxaRYWABJcXNMl2a5vBsxKv2clLKWGddTDtO9Ev3VdC1p1RdA0tqZhOo6fDYP2r4N45hwRI4wxGe8ngP+wj7u8Dro+YTKSO0wAkhqWyOFpcGB/wc4UP0jVHdpzwAAAABJRU5ErkJggg==",Q=20;class J{constructor(t,e){l(this,"_map",{}),l(this,"_icon",{}),this._map=t,this._icon=e||{},this._icon.car||(this._icon.car=G),this._icon.person||(this._icon.person=q)}createTrack(t){const e=t.data.sort((t,e)=>t.timestamp-e.timestamp).map(t=>[t.lon,t.lat]),n=new AMap.LngLat(e[0][0],e[0][1]),i=new AMap.Marker({position:n,offset:new AMap.Pixel(-Q/2,-Q),icon:this.createMarkerIcon(t.trackType)}),r=new AMap.Polyline({strokeColor:t.strokeColor,strokeWeight:t.strokeWidth,strokeStyle:t.strokeStyle,strokeDasharray:t.strokeDasharray,path:JSON.parse(JSON.stringify(e)),extData:t.objectId});return{trackPloyline:r,lineArr:e,marker:i,startPosition:n}}createMarkerIcon(t){return t=t||"person",new AMap.Icon({size:new AMap.Size(Q,Q),image:this._icon[t],imageSize:new AMap.Size(Q,Q)})}}class X{constructor(t,e){l(this,"_map",void 0),l(this,"_popupConfig",void 0),this._map=t,this._popupConfig=e}showPopup(t){if(!this._popupConfig.customPopup)return this.removePopup(t.popup),void delete t.popup;const e=this._popupConfig.customPopup(t);if(!e)return this.removePopup(t.popup),void delete t.popup;const n=t.anchor||"right";let{popup:i,content:r}=this.createBasicPopup(n);r.appendChild(e);const o=document.createElement("div");o.style.position="absolute",document.body.appendChild(o),o.appendChild(i);const a=i.offsetHeight,s=i.offsetWidth;o.removeChild(i),document.body.removeChild(o);const l=this.getPopupOffset(n,a,s),c=new AMap.Marker({position:new AMap.LngLat(t.lon,t.lat),offset:l,content:i});return this._map.add(c),c}removePopup(t){t&&this._map.remove(t)}createBasicPopup(t){const e=document.createElement("div");e.classList.add("map-popup-window"),e.classList.add(t);const n=document.createElement("div");return n.classList.add("map-popup-content"),e.appendChild(n),{popup:e,content:n}}getPopupOffset(t,e,n){let i,r;switch(t){case"left":i=-n-z/2-12,r=-e/2-z/2;break;case"right":i=z/2+12,r=-e/2-z/2;break;case"top":r=-e-16-z,i=-n/2;break;case"bottom":r=16,i=-n/2;break}return new AMap.Pixel(i,r)}}class Z{constructor(t,e,n="全屏",i="退出全屏",r=["20px","20px"]){l(this,"container",void 0),l(this,"parentElement",void 0),l(this,"fullscreenText",void 0),l(this,"exitFullscreenText",void 0),l(this,"fullScreenAside",void 0),l(this,"isFullScreen",void 0),l(this,"fullscreenButton",void 0),l(this,"buttonIcon",void 0),l(this,"tooltip",void 0),this.container=t,this.parentElement=e,this.fullscreenText=n,this.exitFullscreenText=i,this.fullScreenAside=r,this.isFullScreen=!1,this.init()}init(){this.fullscreenButton=document.createElement("button"),this.fullscreenButton.classList.add("map-tools-button"),this.fullscreenButton.classList.add("fullscreen-button"),this.buttonIcon=document.createElement("i"),this.buttonIcon.classList.add("qz-map-icon"),this.buttonIcon.classList.add("fullscreen"),this.buttonIcon.classList.add("button-icon"),this.fullscreenButton.appendChild(this.buttonIcon),this.tooltip=document.createElement("span"),this.tooltip.classList.add("el-tooltip__popper"),this.tooltip.classList.add("is-dark"),this.tooltip.classList.add("button-tooltip"),this.tooltip.innerText=this.fullscreenText,this.fullscreenButton.appendChild(this.tooltip),this.parentElement.appendChild(this.fullscreenButton),this.container.appendChild(this.parentElement),this.fullscreenButton.addEventListener("click",t=>{this.changeFullScreen(t)})}changeFullScreen(t){t.preventDefault(),t.stopPropagation(),this.isFullScreen?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.isFullScreen=!1):(this.container.requestFullscreen?this.container.requestFullscreen():this.container.mozRequestFullScreen?this.container.mozRequestFullScreen():this.container.webkitRequestFullScreen&&this.container.webkitRequestFullScreen(),this.isFullScreen=!0),this.setFullscreenButtonText()}setFullscreenButtonText(){this.isFullScreen?(this.fullscreenButton.classList.remove("fullscreen-button"),this.fullscreenButton.classList.add("exit-fullscreen-button"),this.tooltip.innerText=this.exitFullscreenText,this.buttonIcon.classList.remove("fullscreen"),this.buttonIcon.classList.add("exit-fullscreen")):(this.fullscreenButton.classList.add("fullscreen-button"),this.fullscreenButton.classList.remove("exit-fullscreen-button"),this.tooltip.innerText=this.fullscreenText,this.buttonIcon.classList.add("fullscreen"),this.buttonIcon.classList.remove("exit-fullscreen"))}fullscreenListener(t){this.setFullscreenButtonText()}}const $="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAADZ0lEQVRYR82YW0hUQRjH/3POqqumZmuYIXmp0BRJNOklb7VZUKAgRQTae5enLngJKsiSrKcu7ylEFIJCD2FbmfUSlhiiKZWXkExy23Y33XU950ycPbvH3dWVs+4Ss4+z3/znd77vm2++GYL1/PaeS0SCIQWiMxkgGwCiB6DzSAkAdQL0L3i9BXbzHN7ftYW6DNE84dgTHpaBDEC3DRJN0DxPNuSIHRC+I7loCk+Pi1rmagEjMDZkQeR2gpBoLaJBbSh1gZe+wNQ6AYCupbU2WNWFeAgxxQCS/ERik/RILShBvKEAutgs8FFbABKn2NAFiEs/ITgmMG8ewuxQPxxWZwCEFbrFj+i5PR8MLjjYgaZUUBQBxJs7QHJmGtIKaxGbWObJKw0OpE44bH2YGeyEZXJmeQIVQDCAlzdmVxNZHaziUjrAF4LjlP85fRRyjCcRt6naD1QDlh/Iwu9ujJkeQXIuuccliQLiIHpvTQdKrQSTPSXSEhUqITUZ2ZWN0MXkhsQRzFhYHMX465uwz1pUOJ70B3rOH8ydU9FymJTwbc7NQPqeK+D4lIhAeUUkcQ7TH67h1+iUJy8F6Fx9vjnnC0awv7lUTXTZUzsO3ok4lC/c1xfnVc8BVrxqeevdrctgxoZsSHy+mlMFNS0RC99aYR3qalZzjhOHYWodl80VMLl4zg0a1Tq16+gpxBlqIxq+YGIL5k58fvZQqTTUhZRCk1yEFTBfb8klIbvs/vp3X6ifQwWM951RS4nHax6wyxXqMZNXcxaxSVWhyodl77D2YKTrnpJGxA7T9V4C+UCOTyx3D8oVPa+6XXvxDAvHZzJ1YqS7Xj0h5m1vCIxXsyEtKUmfua8Uhu0XI7VcSDrmb22YfCfvSoCLGiaobCgG4be6B/KrT0O/8XBIgpEydv55juHuB8omEH8QVDaWg3CJ7oHdJ9qgi8mJ1Foh6QiLY/j0WIkWlWwElU2H1DJRVNcBwvl3EiGph2FMJSsGOuoUMOqSwY6AEM49UFTfCUKiwpBf/1RKlzDQrtROSiWmwVgNJbPJz2q5YLbAMnskydvTyOIh7gbzaRKZanuYbRQDvSZf15horZWDhNHLiIzG6PVN8RuTF15vb8DkE4EXjslHFS8ck89Qyy0fgw93vv0og0+dK9vl//A4/A+eYQ1Pmlb+ZwAAAABJRU5ErkJggg==";class tt{constructor(t,e,n,i){l(this,"map",null),l(this,"mouseTool",null),l(this,"isLoaded",!1),l(this,"isPluginLoaded",!1),l(this,"container",void 0),l(this,"currentMarker",void 0),l(this,"drawOverlays",[]),l(this,"isMapDraw",!1),l(this,"markerStore",{}),l(this,"trackPloylineStore",{}),l(this,"locationStore",{}),l(this,"mapMarker",void 0),l(this,"mapMarkerData",[]),l(this,"mapLocation",void 0),l(this,"mapPopup",void 0),l(this,"mapInfoWindow",void 0),l(this,"mapAlarm",void 0),l(this,"mapTrack",void 0),l(this,"fullscreenListener",void 0),l(this,"normalConfig",void 0),l(this,"AMap",void 0);const r=i||{};this.currentMarker=0,this.loadScriptApi(t,e,n,r)}loadScriptApi(t,e,n,i){const r="__callback_"+(new Date).getTime(),o="AMap.MouseTool,AMap.MarkerClusterer,AMap.RectangleEditor,AMap.Geocoder",a=`https://webapi.amap.com/maps?v=1.4.15&key=${t}&plugin=${o}&callback=${r}`,s=document.createElement("script");s.charset="utf-8",s.src=a,document.head.appendChild(s),window[r]=()=>{window[r]=void 0,this.onLoad(e,n,i)}}onLoad(t,e,n){this.isLoaded=!0,this.AMap=AMap,this.normalConfig=n,this.normalConfig.AMapMarkerList||(this.normalConfig.AMapMarkerList=[]),"string"===typeof t&&(t=document.querySelector("#"+t)),this.container=t;let i=document.createElement("div");i.classList.add("map-container"),t.appendChild(i),this.map=new AMap.Map(i,e),this.mouseTool=new AMap.MouseTool(this.map),AMap.plugin(["AMap.Geocoder"],()=>{this.isPluginLoaded=!0,n.pluginLoaded&&n.pluginLoaded()}),n.mapClick&&this.map.on("click",t=>{let e=new AMap.LngLat(t.lnglat.getLng(),t.lnglat.getLat());this.map.plugin(["AMap.Geocoder"],(function(){let i=new AMap.Geocoder({extensions:"all"});AMap.event.addListener(i,"complete",e=>{let i={lnglatXY:[t.lnglat.getLng(),t.lnglat.getLat()]};if("NO_DATA"!==e.info){const{addressComponent:t,formattedAddress:n}=e.regeocode;i.addressComponent=t,i.formattedAddress=n}n.mapClick(i)}),i.getAddress(e)}))}),this.mapMarker=new F(n.markerIcon),this.mapLocation=new j(n.locationIcon),this.mapPopup=new X(this.map,{customPopup:n.customLocationPopup}),this.mapInfoWindow=new V(this.map,{customMarkerInfoWindow:n.customMarkerInfoWindow,infoWindowConfig:n.infoWindowConfig||{}}),this.mouseoverInfoWindow=new V(this.map,{customMouseoverMarkerInfoWindow:n.customMouseoverMarkerInfoWindow,infoWindowConfig:n.infoWindowConfig||{}}),this.mapAlarm=new Y(this.map,{showAlarmOnMap:void 0===n.showAlarmOnMap||n.showAlarmOnMap,bounceIconOnAlarm:void 0===n.bounceIconOnAlarm||n.bounceIconOnAlarm,customAlarmInfoWindow:n.customAlarmInfoWindow},this.mapInfoWindow),this.mapTrack=new J(this.map,n.trackIcon),n.limitBounds&&this.setLimitBounds(n.limitBounds.sw,n.limitBounds.ne);const r=document.createElement("div");r.classList.add("map-tools"),r.style.top=n.fullScreenAside&&n.fullScreenAside[0]||"20px",r.style.right=n.fullScreenAside&&n.fullScreenAside[1]||"20px",t.appendChild(r);const o=this.map;if(!1!==n.showFullscreenButton&&(this.fullscreenListener=new Z(t,r,n.fullscreenText,n.exitFullscreenText,n.switchButtonAside),document.addEventListener("fullscreenchange",()=>{null!==document.fullscreenElement?this.fullscreenListener.isFullScreen=!0:this.fullscreenListener.isFullScreen=!1,this.fullscreenListener.setFullscreenButtonText()})),!1!==n.showSwitchAlarmButton){const t=document.createElement("button");t.classList.add("map-tools-button"),t.classList.add("next-alarm-button");const e=document.createElement("i");e.classList.add("qz-map-icon"),e.classList.add("next-alarm"),e.classList.add("button-icon"),t.appendChild(e);const n=document.createElement("i");n.classList.add("el-tooltip__popper"),n.classList.add("is-dark"),n.classList.add("button-tooltip"),n.innerText="查看下一个告警设备",t.appendChild(n),r.appendChild(t),t.addEventListener("click",()=>{const{_mapAlarmIds:t}=this.mapAlarm,e=Object.keys(t);let n=e[this.currentMarker];try{o&&(t[n]||(this.currentMarker=0,n=Object.keys(t)[this.currentMarker]),this.setFitView(t[n],null,null,this.map.getZoom())),this.currentMarker+1<Object.keys(t).length?this.currentMarker++:this.currentMarker+1===Object.keys(t).length&&(this.currentMarker=0)}catch(i){}})}this.mouseTool.on("draw",t=>{if(!this.isMapDraw)return;this.drawOverlays.push(t.obj);let e=t.obj.getBounds(),n=this.map.getAllOverlays("marker"),i=[];if("AMap.Marker"==t.obj.CLASS_NAME)i.push(t.obj.getPosition());else{let n=e.getSouthWest(),r=e.getNorthEast();if(n.equals(r))return;i=t.obj.getPath()}let r=[];n.map((t,e)=>{let n=t.getPosition(),o=AMap.GeometryUtil.isPointInRing(n,i);o&&r.push(n)}),this.normalConfig.selection(r)}),n.mapLoaded&&n.mapLoaded()}setFitView(t,e,n,i){t?(this.map,this.map.setFitView(t||null,e||null,n||null,i||null)):this.map&&this.map.setFitView()}destroy(){this.map&&this.map.destroy(),this.container.innerHTML=""}addPoints(t=[]){if(!this.isLoaded)return;const e=[];for(let n=0;n<t.length;n++){const i=Object.assign({},t[n]);if(!1!==i.show){const{marker:t,onlineIcon:n,offlineIcon:r,disabledIcon:o}=this.mapMarker.createMarker(i),a=t=>{this.cameraClick(t,i)},s=t=>{this.camerMouseover(t,i)},l=t=>{this.camerMouseout(t,i)};t.on("click",a),t.on("mouseover",s),t.on("mouseout",l),e.push(t),this.markerStore[i.objectId]={...i,marker:t,onlineIcon:n,offlineIcon:r,disabledIcon:o,markerClickEvent:a,markerMouseoverEvent:s,markerMouseoutEvent:l}}}this.map.add(e)}updatePoints(t=[]){if(!this.isLoaded)return;const e=[],n=[],i=t.map(t=>t.objectId),r=Object.keys(this.markerStore);for(let o=0;o<r.length;o++)if(-1===i.indexOf(r[o])){const t=this.markerStore[r[o]];n.push(t.marker),t.marker.off("click",t.markerClickEvent),t.marker.off("mouseover",t.markerMouseoverEvent),t.marker.off("mouseout",t.markerMouseoutEvent),delete this.markerStore[r[o]]}for(let o=0;o<t.length;o++){const i=Object.assign({},t[o]);if(this.markerStore[i.objectId]){const t=this.markerStore[i.objectId];n.push(t.marker),t.marker.off("click",t.markerClickEvent),t.marker.off("mouseover",t.markerMouseoverEvent),t.marker.off("mouseout",t.markerMouseoutEvent),delete this.markerStore[i.objectId]}if(!1!==i.show){const{marker:n,onlineIcon:r,offlineIcon:o,disabledIcon:a}=this.mapMarker.createMarker(i),s=e=>{this.cameraClick(e,i,t),this.setMarkerIndex(e),this.normalConfig.markerClick({e:e,point:i})},l=e=>{this.camerMouseover(e,i,t),this.normalConfig.markerMouseover({e:e,point:i})},c=t=>{this.camerMouseout(t,i)};n.on("click",s),n.on("mouseover",l),n.on("mouseout",c),e.push(n),this.markerStore[i.objectId]={...i,marker:n,onlineIcon:r,offlineIcon:o,disabledIcon:a,markerClickEvent:s,markerMouseoverEvent:l,markerMouseoutEvent:c}}}this.map.add(e),this.mapMarkerData=this.mapMarkerData.concat(e),this.map.remove(n)}removePoints(t=[]){const e=[];for(let n=0;n<t.length;n++){const i=t[n];if(this.markerStore[i]){const t=this.markerStore[i];e.push(t.marker),t.marker.off("click",t.markerClickEvent),t.marker.off("mouseover",t.markerMouseoverEvent),t.marker.off("mouseout",t.markerMouseoutEvent),delete this.markerStore[i]}}this.map.remove(e)}cameraClick(t,e,n=[]){let i=t.target.getIcon(),r=new Image;r.src=i;let o=this;r.onload=function(){const{northeast:i}=t.target.getBounds();var r=new AMap.Circle({center:new AMap.LngLat(i.lng,i.lat),radius:14});let a=[],s=o.map.getAllOverlays().filter(t=>"AMap.Marker"===t.CLASS_NAME);if(s.map(t=>{let e=t,n=e.getPosition(),i=AMap.GeometryUtil.isPointInRing(n,r.getPath());i&&a.push(n)}),a.length>1){let t=new K(o,a,{customClustererInfoWindow:o.normalConfig.customClustererInfoWindow,infoWindowConfig:o.normalConfig.infoWindowConfig||{}});t.openInfoWindow(e,n,a,o.normalConfig)}else!1!==e.infoWindow&&o.mapInfoWindow.openInfoWindow(e,o.normalConfig,o.normalConfig.singleInforWindow)}}camerMouseover(t,e,n=[]){this.normalConfig.customMouseoverMarkerInfoWindow&&this.mouseoverInfoWindow.openInfoWindow(e,{...this.normalConfig,trigger:"mouseover"},this.normalConfig.singleInforWindow)}camerMouseout(t,e,n=[]){this&&this.mouseoverInfoWindow&&this.mouseoverInfoWindow.infoWindow&&this.mouseoverInfoWindow.infoWindow.close()}addTracks(t=[]){if(this.isLoaded)for(let e=0;e<t.length;e++){const n=JSON.parse(JSON.stringify(t[e])),{trackPloyline:i,marker:r,lineArr:o,startPosition:a}=this.mapTrack.createTrack(n),s=t=>{this.trackClick(t,n)};i.on("click",s),i.setMap(this.map),this.trackPloylineStore[n.objectId]={...n,trackPloyline:i,marker:r,lineArr:o,startPosition:a,trackClickEvent:s}}}updateTracks(t=[]){if(!this.isLoaded)return;const e=t.map(t=>t.objectId),n=Object.keys(this.trackPloylineStore);for(let i=0;i<n.length;i++)if(-1===e.indexOf(n[i])){const t=this.trackPloylineStore[n[i]];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[n[i]]}for(let i=0;i<t.length;i++){const e=JSON.parse(JSON.stringify(t[i]));if(this.trackPloylineStore[e.objectId]){const t=this.trackPloylineStore[e.objectId];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[e.objectId]}const{trackPloyline:n,marker:r,lineArr:o,startPosition:a}=this.mapTrack.createTrack(e),s=t=>{this.trackClick(t,e)};n.on("click",s),n.setMap(this.map),this.trackPloylineStore[e.objectId]={...e,trackPloyline:n,marker:r,lineArr:o,startPosition:a,trackClickEvent:s}}}removeTracks(t=[]){for(let e=0;e<t.length;e++){const n=t[e];if(this.trackPloylineStore[n]){const t=this.trackPloylineStore[n];t.trackPloyline.off("click",t.trackClickEvent),t.trackPloyline.setMap(null),delete this.trackPloylineStore[n]}}}playTrack(t,e=200,n=0){if(t&&this.trackPloylineStore[t]){const i=this.trackPloylineStore[t];if(this.map.add(i.marker),0===n){i.marker.moveAlong(JSON.parse(JSON.stringify(i.lineArr)),e);const t=()=>{i.marker.stopMove(),this.map.remove(i.marker),i.marker.setPosition(i.startPosition),i.marker.off("movealong",t)};i.marker.on("movealong",t)}else{const t=JSON.parse(JSON.stringify(i.data)).sort((t,e)=>t.timestamp-e.timestamp),n=t[0].timestamp,r=t[t.length-1].timestamp,o=r-n;for(let i=1;i<t.length;i++)t[i].speed=e*o/((t.length-1)*(t[i].timestamp-t[i-1].timestamp))}}}trackClick(t,e){}showAlarm(t=[]){if(0===t.length)this.setSwitchDeviceButtonText();else for(let e=0;e<t.length;e++)this.markerStore[t[e].objectId]&&this.normalConfig.AMapMarkerList.push(this.mapAlarm.showAlarmMsg(t[e],this.markerStore[t[e].objectId],(t,n)=>{this.normalConfig.AMapMarkerList[e]=null,this.setSwitchDeviceButtonText()}))}cancelAlarm(t=[]){for(let e=0;e<t.length;e++)this.mapAlarm.cancelAlarm(this.markerStore[t[e]])}setSwitchDeviceButtonText(){let t=document.querySelector(".next-alarm-button");t&&(0===Object.keys(this.mapAlarm._mapAlarmIds).length?t.style.display="none":t.style.display="block")}addLocations(t=[]){if(!this.isLoaded)return;const e=[];for(let n=0;n<t.length;n++){const i=JSON.parse(JSON.stringify(t[n]));if(!1!==i.show){const t=this.mapLocation.createLocation(i);let n;e.push(t),void 0!==i.msg&&null!==i.msg&&(n=this.showPopup(i)),this.locationStore[i.objectId]={...i,locationMarker:t,popup:n}}}this.map.add(e),this.setFitView()}updateLocations(t=[]){if(!this.isLoaded)return;const e=[],n=[],i=t.map(t=>t.objectId),r=Object.keys(this.locationStore);for(let o=0;o<r.length;o++)if(-1===i.indexOf(r[o])){const t=this.locationStore[r[o]];t.popup&&n.push(t.popup),n.push(t.locationMarker),delete this.locationStore[r[o]]}for(let o=0;o<t.length;o++){const i=Object.assign({},t[o]);if(this.locationStore[i.objectId]){const t=this.locationStore[i.objectId];n.push(t.locationMarker),delete this.locationStore[i.objectId]}if(!1!==i.show){const t=this.mapLocation.createLocation(i);let n;e.push(t),void 0!==i.msg&&null!==i.msg&&(n=this.mapPopup.showPopup(i)),this.locationStore[i.objectId]={...i,locationMarker:t,popup:n}}}this.map.add(e),this.mapMarkerData=this.mapMarkerData.concat(e),this.map.remove(n),this.map.setFitView()}removeLocations(t=[]){const e=[];for(let n=0;n<t.length;n++){const i=t[n];if(this.locationStore[i]){const t=this.locationStore[i];e.push(t.locationMarker),t.popup&&e.push(t.popup),delete this.locationStore[i]}}this.map.remove(e)}bounceLocation(t,e=3e3){this.locationStore[t].locationMarker.setAnimation("AMAP_ANIMATION_BOUNCE"),setTimeout(()=>{this.cancelBounceLocation(t)},e)}cancelBounceLocation(t){this.locationStore[t].locationMarker.setAnimation("AMAP_ANIMATION_NONE")}setLimitBounds(t,e){this.map&&"number"===typeof t[0]&&"number"===typeof t[1]&&"number"===typeof e[0]&&"number"===typeof e[1]&&this.map.setLimitBounds(new AMap.Bounds(new AMap.LngLat(t[0],t[1]),new AMap.LngLat(e[0],e[1])))}clearLimitBounds(){this.map&&this.map.clearLimitBounds()}getLocationByAddress(t){return new Promise((e,n)=>{if(this.isPluginLoaded){const i=new AMap.Geocoder;i.getLocation(t,(t,i)=>{"complete"===t&&i.geocodes.length?e(i.geocodes.map(t=>({lon:t.location.lng,lat:t.location.lat,address:t.formattedAddress,country:t.addressComponent.country,province:t.addressComponent.province,city:t.addressComponent.city,citycode:t.addressComponent.citycode,district:t.addressComponent.district,township:t.addressComponent.township,street:t.addressComponent.street,streetNumber:t.addressComponent.streetNumber,building:t.addressComponent.building,buildingType:t.addressComponent.buildingType}))):n(new Error("getLocationError"))})}else n(new Error("GeocoderUnload"))})}getAddressByLocation(t){return new Promise((e,n)=>{if(this.isPluginLoaded){const i=new AMap.Geocoder;i.getAddress(t,(t,i)=>{if("complete"===t&&i.regeocode){const t=i.regeocode;e({address:t.formattedAddress,country:t.addressComponent.country,province:t.addressComponent.province,city:t.addressComponent.city,citycode:t.addressComponent.citycode,adcode:t.addressComponent.adcode,district:t.addressComponent.district,township:t.addressComponent.township,street:t.addressComponent.street,streetNumber:t.addressComponent.streetNumber,building:t.addressComponent.building,buildingType:t.addressComponent.buildingType})}else n(new Error("getAddressError"))})}else n(new Error("GeocoderUnload"))})}clearInfoWindow(){this.map.clearInfoWindow()}startDraw(t="rectangle"){switch(this.isMapDraw=!0,t){case"polyline":this.mouseTool.polyline({strokeColor:"#F56C6C"});break;case"polygon":this.mouseTool.polygon({fillColor:"rgba(245, 108, 108, 0.2)",strokeColor:"#F56C6C"});break;case"rectangle":this.mouseTool.rectangle({fillColor:"rgba(245, 108, 108, 0.2)",strokeColor:"#F56C6C"});break;case"circle":this.mouseTool.circle({fillColor:"rgba(245, 108, 108, 0.2)",strokeColor:"#F56C6C"});break}}endDraw(){this.mouseTool.close(!1),this.isMapDraw=!1}clearDraw(){this.map.remove(this.drawOverlays),this.drawOverlays=[]}setMapMarkerClusterer(t={}){let e={gridSize:56,maxZoom:16,styles:[{url:$,size:new this.AMap.Size(38,38),textColor:"#ffffff",offset:new this.AMap.Pixel(-19,-19)}],...t},n=new this.AMap.MarkerClusterer(this.map,this.mapMarkerData,e);n.on("click",e=>{t.click&&t.click(e)})}setMarkerIndex(t){let e=this.map.getAllOverlays().filter(t=>"AMap.Marker"===t.CLASS_NAME);e.map(t=>{t.setzIndex(100)}),t.target.setzIndex(101)}openInfoWindowByHand(t){this.mapInfoWindow.openInfoWindow(t,this.normalConfig,this.normalConfig.singleInforWindow)}setMapCenter(t,e,n){try{this.map.setCenter(t,e,n)}catch(i){}}}var et={name:"FcMap",props:{mapKey:{required:!0,type:String},mapInitinalOptions:{required:!0,type:Object},markerIcon:{type:Object},locationIcon:{type:String},trackIcon:{type:Object},limitBounds:{type:Object},showAlarmOnMap:{type:Boolean,default:()=>!0},bounceIconOnAlarm:{type:Boolean,default:()=>!0},customMarkerInfoWindow:{type:Function|Object},customAlarmInfoWindow:{type:Function|Object},customClustererInfoWindow:{type:Function|Object},customMouseoverMarkerInfoWindow:{type:Function|Object},showFullscreenButton:{type:Boolean,default:()=>!0},showSwitchAlarmButton:{type:Boolean,default:()=>!0},fullscreenText:{type:String,default:"全屏"},exitFullscreenText:{type:String,default:"退出全屏"},customLocationPopup:{type:Function|Object},points:{type:Array},alarms:{type:Array},locations:{type:Array},tracks:{type:Array},autoFitView:{type:Boolean,default:()=>!0},fullScreenAside:{type:Array},switchButtonAside:{type:Array},singleInforWindow:{type:Boolean,default:!0},playerPluginUrl:{type:String},infoWindowConfig:{type:Object,default:()=>{}}},data(){return{fcMap:null,isMapLoaded:!1}},methods:{mapLoaded(){this.isMapLoaded=!0,this.$emit("mapLoaded",this.fcMap),this.fcMap.updatePoints(this.points),this.fcMap.updateLocations(this.locations),this.fcMap.showAlarm(this.alarms),this.fcMap.updateTracks(this.tracks),this.autoFitView&&this.setFitView(),this.mapInitinalOptions.clusterer&&this.setMapMarkerClusterer(this.mapInitinalOptions.clustererConfig||{})},pluginLoaded(){this.isMapPluginLoaded=!0,this.$emit("pluginLoaded")},mapClick(t){this.$emit("mapClick",t)},markerClick(t){this.$emit("markerClick",t)},markerMouseover(t){this.$emit("markerMouseover",t)},selection(t){let e=[];t.map(t=>{let n=this.points.filter(e=>t.lat===e.lat&&t.lng===e.lon);if(n.length>0){let t=e.map(t=>t.objectId);n.map(n=>{-1===t.indexOf(n.objectId)&&e.push(n)})}}),this.$emit("selection",e)},setFitView(){this.fcMap&&this.fcMap.setFitView()},cancelAlarm(t){this.fcMap&&this.fcMap.cancelAlarm(t)},bounceLocation(t,e){this.fcMap&&this.fcMap.bounceLocation(t,e)},cancelBounceLocation(t){this.fcMap&&this.fcMap.cancelBounceLocation(t)},playTrack(t,e,n){this.fcMap&&this.fcMap.playTrack(t,e,n)},getLocationByAddress(t){return this.fcMap?this.fcMap.getLocationByAddress(t):Promise.reject(new Error("fcMapIsNull"))},getAddressByLocation(t){return this.fcMap?this.fcMap.getAddressByLocation(t):Promise.reject(new Error("fcMapIsNull"))},destroy(){this.fcMap&&this.fcMap.destroy()},clearInfoWindow(){this.fcMap&&this.fcMap.clearInfoWindow()},startDraw(t){this.fcMap&&this.fcMap.startDraw(t)},endDraw(){this.fcMap&&this.fcMap.endDraw()},clearDraw(){this.fcMap&&this.fcMap.clearDraw()},setMapMarkerClusterer(t){this.fcMap&&this.fcMap.setMapMarkerClusterer(t)},openInfoWindowByHand(t){t&&this.fcMap&&this.fcMap.openInfoWindowByHand(t)},setMapCenter(t,e,n){this.fcMap&&this.fcMap.setMapCenter(t,e,n)}},computed:{customMarkerInfoWindowComputed(){if(this.customMarkerInfoWindow instanceof Object)try{const t=i["default"].extend(this.customMarkerInfoWindow);return function(e,n){return new t({el:document.createElement("div"),propsData:{point:e,clearInfoWindow:n}}).$el}}catch(t){return}return this.customMarkerInfoWindow},customClustererInfoWindowComputed(){if(this.customClustererInfoWindow instanceof Object)try{const t=i["default"].extend(this.customClustererInfoWindow);return function(e,n,i,r){return new t({el:document.createElement("div"),propsData:{point:e,inRingPoints:n,clearInfoWindow:i,openInfoWindowByHand:r}}).$el}}catch(t){return}return this.customClustererInfoWindow},customAlarmInfoWindowComputed(){if(this.customAlarmInfoWindow instanceof Object)try{const t=i["default"].extend(this.customAlarmInfoWindow);return function(e,n){return new t({el:document.createElement("div"),propsData:{point:e,msg:n}}).$el}}catch(t){return}return this.customAlarmInfoWindow},customLocationPopupComputed(){if(this.customLocationPopup instanceof Object)try{const t=i["default"].extend(this.customLocationPopup);return function(e){return new t({el:document.createElement("div"),propsData:{location:e}}).$el}}catch(t){return}return this.customLocationPopup},customMouseoverMarkerInfoWindowComputed(){if(this.customMouseoverMarkerInfoWindow instanceof Object)try{const t=i["default"].extend(this.customMouseoverMarkerInfoWindow);return function(e,n){return new t({el:document.createElement("div"),propsData:{point:e,clearInfoWindow:n}}).$el}}catch(t){return}return this.customMouseoverMarkerInfoWindow}},watch:{points:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updatePoints(this.points),this.$emit("pointsUpdated",this.points))}},locations:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updateLocations(this.locations),this.$emit("locationUpdated",this.locations))}},alarms:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.showAlarm(this.alarms),this.$emit("alarmShow",this.alarms))}},tracks:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.fcMap.updateTracks(this.tracks),this.$emit("trackUpdated",this.tracks))}},limitBounds:{immediate:!0,deep:!0,handler(t,e){this.isMapLoaded&&(this.limitBounds?this.fcMap.setLimitBounds(this.limitBounds):this.fcMap.clearLimitBounds(this.limitBounds),this.$emit("limitBoundsChanged",this.limitBounds))}}},mounted(){this.fcMap=new tt(this.mapKey,this.$refs.mapContainer,this.mapInitinalOptions,{mapLoaded:this.mapLoaded,pluginLoaded:this.pluginLoaded,mapClick:this.mapClick,markerClick:this.markerClick,markerMouseover:this.markerMouseover,selection:this.selection,markerIcon:this.markerIcon,fullScreenAside:this.fullScreenAside,switchButtonAside:this.switchButtonAside,locationIcon:this.locationIcon,trackIcon:this.trackIcon,limitBounds:this.limitBounds,playerPluginUrl:this.playerPluginUrl,showAlarmOnMap:this.showAlarmOnMap,bounceIconOnAlarm:this.bounceIconOnAlarm,customMarkerInfoWindow:this.customMarkerInfoWindowComputed,customAlarmInfoWindow:this.customAlarmInfoWindowComputed,customClustererInfoWindow:this.customClustererInfoWindowComputed,customMouseoverMarkerInfoWindow:this.customMouseoverMarkerInfoWindowComputed,showFullscreenButton:this.showFullscreenButton,showSwitchAlarmButton:this.showSwitchAlarmButton,fullscreenText:this.fullscreenText,exitFullscreenText:this.exitFullscreenText,customLocationPopup:this.customLocationPopupComputed,singleInforWindow:this.singleInforWindow,infoWindowConfig:this.infoWindowConfig})},render(t){return t("div",{ref:"mapContainer",class:"fc-map"})}},nt=i["default"].extend({name:"CanoeMap",props:{map:{type:String,default:""},service:{required:!0},data:{type:Array,default:()=>[]},mode:{type:String,default:"read"},showAll:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},mapImg:{type:String,default:""},mapId:{type:String},markerImg:{type:String,default:d},markerImgOnline:{type:String},markerImgOffline:{type:String},markerImgDisabled:{type:String},deviceService:{type:String,default:"/cwos-portal"},sysettingService:{type:String,default:"/ninca-common"},addDefaultSelected:{type:Boolean,default:!1},rate:{type:Number,default:.2},limit:{type:Array,default:()=>[.2,2]},deviationX:{type:Number,default:0},deviationY:{type:Number,default:0},retainWdith:{type:Number,default:50},retainHeight:{type:Number,default:50},defaultPlay:{type:Boolean,default:!0},showPlayer:{type:Boolean,default:!0},deviceFilterCodes:{type:Array,default:()=>[]},fullScreenAside:{type:Array},showDeviceStatus:{type:Boolean},deviceFilterStatus:{type:Array},playerSlot:{type:Boolean},gmapKey:{type:String},mapInitinalOptions:{type:Object,default:()=>({zoom:4})},markerIcon:{type:Object},locationIcon:{type:String},trackIcon:{type:Object},limitBounds:{type:Object},showAlarmOnMap:{type:Boolean,default:!0},bounceIconOnAlarm:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showSwitchAlarmButton:{type:Boolean,default:!0},fullscreenText:{type:String,default:"全屏"},exitFullscreenText:{type:String,default:"退出全屏"},customMarkerInfoWindow:{type:[Function,Object]},customClustererInfoWindow:{type:[Function,Object]},customAlarmInfoWindow:{type:[Function,Object]},customLocationPopup:{type:[Function,Object]},customMouseoverMarkerInfoWindow:{type:[Function,Object]},points:{type:Array},alarms:{type:Array},markerAlarms:{type:Array,default:()=>[]},position:{type:String},markerTracks:{type:Array},locations:{type:Array},tracks:{type:Array},autoFitView:{type:Boolean,default:!0},singleInforWindow:{type:Boolean,default:!0},playerPluginUrl:{type:String},infoWindowConfig:{type:Object,default:()=>{}}},components:{CanoePicMap:O,CanoeGisMap:et},data(){return{markerData:[],renderMapType:"",mapKey:"",gisPoints:[],filterGisPoint:[]}},watch:{map:{handler:function(t){""!==t?"gis"==t?this.getMapKeys().then(()=>{this.showAll?this.getBindDevice().then(()=>{this.renderMapType="gis"}):this.renderMapType="gis"}):this.renderMapType="pic"===t?t:"gis":this.getMapType()},immediate:!0,deep:!0},data:{handler:function(t){0!==t.length&&(this.markerData=t)},immediate:!0,deep:!0},points:{handler:function(t){t&&0!==t.length&&(this.gisPoints=this.gisPoints.concat(t.filter(t=>t.latitude&&t.longitude||t.lat&&t.lon)))},deep:!0,immediate:!0},deviceFilterCodes:{handler:function(t){let e=[];e=t&&0!==t.length?this.gisPoints.filter(e=>t.indexOf(e.objectId)>-1):this.gisPoints,this.filterGisPoint=e},deep:!0,immediate:!0},gisPoints:{handler:function(){let t=[];t=this.deviceFilterCodes&&0!==this.deviceFilterCodes.length?this.gisPoints.filter(t=>this.deviceFilterCodes.indexOf(t.objectId)>-1):this.gisPoints,this.filterGisPoint=t},deep:!0,immediate:!0}},methods:{getMapType(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/default/map/query",{}).then(e=>{if(e.success){let n=e.data;null!==n&&0!==n.length?"gis"===n[0].modeType?this.getMapKeys().then(()=>{this.renderMapType="gis",this.showAll&&this.getBindDevice()}):this.renderMapType="pic":""!==this.map?this.renderMapType=this.map:this.$message.warning("暂无地图"),t()}else this.$message.error("获取地图类型失败")})})},getMapKeys(){return new Promise(t=>{this.gmapKey?(this.mapKey=this.gmapKey,t()):this.service&&this.service.post&&this.service.post(this.sysettingService+"/sysetting/account/query",{type:1}).then(e=>{e.success&&0!==e.data.length&&(this.mapKey=e.data[0].key||"",t())})})},getBindDevice(){return new Promise(t=>{this.service&&this.service.post&&this.service.post(this.deviceService+"/component/device/list",{}).then(e=>{if(e.success){let n=[];e.data&&(e.data||[]).forEach(t=>{const e=!isNaN(t.longitude)&&Number(t.longitude),i=!isNaN(t.latitude)&&Number(t.latitude);let r={objectType:"camera",objectId:t.deviceCode,lon:e,lat:i,data:{...t},status:t.status,onlineStatus:t.onlineStatus,rtspUrl:t.cameraMainRtspUrl};(t.deviceCode&&e&&i&&(!this.deviceFilterCodes||0===this.deviceFilterCodes.length)||this.deviceFilterCodes.indexOf(t.deviceCode)>-1)&&n.push(r)}),0!==this.gisPoints.length?this.gisPoints=this.gisPoints.concat(n):this.gisPoints=n,this.$nextTick(()=>{this.$refs.fcMap&&this.$refs.fcMap.setFitView(),this.mapInitinalOptions.autoClusterer&&this.setMapMarkerClusterer(this.mapInitinalOptions.clustererConfig),t()})}else this.$message.error("获取设备列表失败")})})},markerClick(t){this.$emit("markerClick",t)},markerMouseover(t){this.$emit("markerMouseover",t)},toJSONData(t){return this.$refs.CanoePicMap?this.$refs.CanoePicMap.toJSONData(t):{}},removeMarker(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.removeMarker(t)},setMarkerHighligh(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.setMarkerHighligh(t)},closePlayer(){this.$refs.CanoePicMap.closePlayer()},picMapChange(t){this.$emit("change",t)},markerOver(t){this.$emit("markerOver",t)},markerOut(){this.$emit("markerOut")},mapMove(t){this.$emit("mapMove",t)},mapZoom(){this.$emit("mapZoom")},picMapClick(t){this.$emit("picMapClick",t)},picMapLoaded(t){this.$emit("picMapLoaded",t)},mapLoaded(){this.$emit("mapLoaded")},pluginLoaded(){this.$emit("pluginLoaded")},mapClick(t){this.$emit("mapClick",t)},setFitView(t){"gis"===this.renderMapType?this.$refs.fcMap&&this.$refs.fcMap.setFitView():this.$refs.CanoePicMap&&this.$refs.CanoePicMap.setFitView(t)},clearInfoWindow(){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.clearInfoWindow()},cancelAlarm(t){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.cancelAlarm(t)},bounceLocation(t,e){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.bounceLocation(t,e)},cancelBounceLocation(t){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.cancelBounceLocation(t)},playTrack(t,e,n){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.playTrack(t,e,n)},getLocationByAddress(t){if("gis"===this.renderMapType)return this.$refs.fcMap?this.$refs.fcMap.getLocationByAddress(t):Promise.reject(new Error("fcMapIsNull"))},getAddressByLocation(t){if("gis"===this.renderMapType)return this.$refs.fcMap?this.$refs.fcMap.getAddressByLocation(t):Promise.reject(new Error("fcMapIsNull"))},getMapObj(){let t={type:this.renderMapType,id:""};return"pic"===this.renderMapType?t.id=this.mapId||this.$refs.fcMap&&this.$refs.fcMap.bgImgId:t.id=this.mapKey,t},destroy(){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.destroy()},closeAlarmByHand(t){this.$refs.CanoePicMap&&this.$refs.CanoePicMap.closeAlarmByHand(t)},startDraw(t){this.$refs.fcMap&&this.$refs.fcMap.startDraw(t)},endDraw(){this.$refs.fcMap&&this.$refs.fcMap.endDraw()},clearDraw(){this.$refs.fcMap&&this.$refs.fcMap.clearDraw()},setMapCenter(t,e,n){"gis"===this.renderMapType&&this.$refs.fcMap&&this.$refs.fcMap.setMapCenter(t,e,n)},setMapMarkerClusterer(t){this.$refs.fcMap&&this.$refs.fcMap.setMapMarkerClusterer(t)},openInfoWindowByHand(t){this.$refs.fcMap&&this.$refs.fcMap.openInfoWindowByHand(t)},gisMapSelection(t){this.$emit("selection",t)},pointsUpdated(t){this.$emit("pointsUpdated",t)},locationUpdated(t){this.$emit("locationUpdated",t)},limitBoundsChanged(t){this.$emit("limitBoundsChanged",t)},alarmShow(t){this.$emit("alarmShow",t)}},created(){},mounted(){}});const it=nt;var rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qz-map canoe-img-layout"},["pic"===t.renderMapType?[n("CanoePicMap",{ref:"CanoePicMap",attrs:{data:t.markerData,mode:t.mode,service:t.service,playerPluginUrl:t.playerPluginUrl,mapImg:t.mapImg,mapId:t.mapId,markerImg:t.markerImg,markerImgOnline:t.markerImgOnline,markerImgOffline:t.markerImgOffline,markerImgDisabled:t.markerImgDisabled,sysettingService:t.sysettingService,rate:t.rate,limit:t.limit,deviationX:t.deviationX,deviationY:t.deviationY,retainWdith:t.retainWdith,retainHeight:t.retainHeight,markerAlarms:t.markerAlarms,markerTracks:t.markerTracks,multiple:t.multiple,position:t.position,addDefaultSelected:t.addDefaultSelected,getAll:t.showAll,defaultPlay:t.defaultPlay,showPlayer:t.showPlayer,deviceFilterCodes:t.deviceFilterCodes,fullScreenAside:t.fullScreenAside,showDeviceStatus:t.showDeviceStatus,deviceFilterStatus:t.deviceFilterStatus,playerSlot:t.playerSlot},on:{mapLoaded:t.picMapLoaded,markerClick:t.markerClick,change:t.picMapChange,markerOver:t.markerOver,markerOut:t.markerOut,mapMove:t.mapMove,mapZoom:t.mapZoom,mapClick:t.picMapClick,alarmShow:t.alarmShow,markerMouseover:t.markerMouseover},scopedSlots:t._u([{key:"player",fn:function(e){return[t._t("player",null,{data:e.data})]}},{key:"popover",fn:function(e){return[t._t("popover",null,{data:e.data})]}},{key:"icon",fn:function(e){return[t._t("icon",null,{data:e.deviceItem})]}},{key:"alarmdialog",fn:function(e){return[t._t("alarmdialog",null,{data:e.data})]}}],null,!0)})]:"gis"===t.renderMapType?[n("CanoeGisMap",{ref:"fcMap",attrs:{playerPluginUrl:t.playerPluginUrl,mapKey:t.mapKey,mapInitinalOptions:t.mapInitinalOptions,points:t.filterGisPoint,locations:t.locations,alarms:t.alarms,tracks:t.tracks,showAlarmOnMap:t.showAlarmOnMap,markerIcon:t.markerIcon,locationIcon:t.locationIcon,trackIcon:t.trackIcon,limitBounds:t.limitBounds,autoFitView:t.autoFitView,fullScreenAside:t.fullScreenAside,bounceIconOnAlarm:t.bounceIconOnAlarm,customLocationPopup:t.customLocationPopup,customMarkerInfoWindow:t.customMarkerInfoWindow,customClustererInfoWindow:t.customClustererInfoWindow,customAlarmInfoWindow:t.customAlarmInfoWindow,customMouseoverMarkerInfoWindow:t.customMouseoverMarkerInfoWindow,showFullscreenButton:t.showFullscreenButton,showSwitchAlarmButton:t.showSwitchAlarmButton,fullscreenText:t.fullscreenText,exitFullscreenText:t.exitFullscreenText,infoWindowConfig:t.infoWindowConfig},on:{mapLoaded:t.mapLoaded,pluginLoaded:t.pluginLoaded,mapClick:t.mapClick,markerClick:t.markerClick,selection:t.gisMapSelection,pointsUpdated:t.pointsUpdated,locationUpdated:t.locationUpdated,limitBoundsChanged:t.limitBoundsChanged,alarmShow:t.alarmShow,markerMouseover:t.markerMouseover}})]:t._e()],2)},ot=[];const at=function(t){t&&t("data-v-0565b2ac_0",{source:'@font-face{font-family:qz-map;src:url(data:application/x-font-woff;base64,d09GRgABAAAAAAW8AAsAAAAACTAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPQAAAFYzzECCY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAAc0AAAMQZijQNGhlYWQAAAO0AAAALgAAADYV9QgmaGhlYQAAA+QAAAAXAAAAJACGAExobXR4AAAD/AAAABMAAAAYAUYAAGxvY2EAAAQQAAAADgAAAA4ClgG4bWF4cAAABCAAAAAfAAAAIAEUAE1uYW1lAAAEQAAAASkAAAH+LM8R0nBvc3QAAAVsAAAATQAAAGuyFpy+eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGQwY5zAwMrAwKDNoAMkOaC0HAMzgwADAxMDKzMDVhCQ5prC4PCK8RUrgwOQCyIZgTQIMwAA2PMFvwAAAHic7ZGxDcRACAQHHzh4fSUvl+LYkfsProkzC1+GkWYRK0SwAAGM5Egc7MZQXela+YNP+c6vdlz+jLVSTZqzl26567poO299S8//FEqrqfy2BvXR6A/TGyU6oyEeULURXXicTVF/b5swFHxnwM9NoDQtxNKUli1IczXUBUKo16Zpuj/2/T9S9+yoShDY9374fNwjReE50BvltCLy2wdU11j/xu4dtmXXDpatt+PkfP/d5MbkN2G5TbXOjMni+ibJgrmQyi3zbAZjMJsRpZH7hfZUUkM9fQi/MK7vsccB7ogNWKi3B3S4hy3RwNfVHt4ut7sN/DB1cC2f2kXLz3VlpxxADhO27gKvIlTIDfIFC1YxfAlxLAGbC7yYh2Oxp/wiUaAvzX/o9az5iNpGjWxHETOWmJweatHpWi/C7NQ7rl38h5btHi6UOtTDONnlO9xjoeKlpkB5hg1UARQmXN+JYtmSImyPIVfEan6GN/N4KkRPkjCxlSiJev+Jzpx+iNfk7TUexDHuW+dtXw/cOm5rnmw9esmMR7h+ravBtrIuQ2O13A7+eTdvEpVkqdD+Sp8yLLJS6zy9g0NSanUyCqUAjY8rxZyK0yvobJ4ld0lqMjVLCw2lVPx0UBf9/Pykv6Iv+LmhoyjchZnKjI9qg1LUdDJe/4qxAcvA7W6YfCMDHTgW3PMQ2nQ1irV+ct8ARuQHNF8GSwkkoccYxRd8dRHEUmxZnrJJOK8v8H9qVDNuAAAAeJxjYGRgYABiOQOxefH8Nl8ZuBkcgCIMtz1SQxH0//8MrmBxDgYmkCgA+e8JNgAAeJxjYGRgYHBgAAFXKMnIgArYABP6ANMAeJxjYAACByTsCsSODAwADf4BRwAAAAAAAC4AiADgATABiAAAeJxjYGRgYGBjcGRgYQABJiDmAkIGhv9gPgMAD6EBYgB4nF2QS07DMBRFb/pDtIAQSEjMPEAMQE3aDruAdl6JzNPW6UdJnDpupXbIAlgAq2ABjFkXN8kbUPwk67zr42fJAG7xAw/l8tCp9nI1cMGu5ibpWrhFvhduo4dH4Q7rSbiLV7wI92i/cYLXumRyhbVwAzdwwk3m78It8odwGw/4FO4w/xLuIsS3cA/P3t3u1E+jfKZX+ySydVPvobbFxmRq6A/qYKozbSOnl2p+VMVhNXIuVrE1qZqYzOkkMSq3ZqsXzl87l4+DIJbcX5gUO5zQR4oIOWbQWGGPhJ09O/nLIS2LAhsYZFAYwsfgzJjSyCor4o9oLGnNceRe4MAXRkwdYvYxHcNbCpNqWmknLMMkr862TBbMff5zeSvHGAEr/uf7tDjpF0GsVZQAAAB4nGNgYsAP2BiZGJkZWRhZGdkY2RlYk3Pyi1P5UysyS3TTSnNyipOLUlPzuJCYeakVJbqJOYlFubwF+cWZJZn5ebq5+WWpDAwAsUkWFAAAAA==) format("woff")}.qz-map-icon{font-family:qz-map!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.close::before{content:"\\ea01"}.exit-fullscreen::before{content:"\\ea02"}.fullscreen::before{content:"\\ea03"}.next-alarm::before{content:"\\ea04"}.position-move::before{content:"\\ea05"}.canoe-img-layout{width:100%;height:100%}.fc-map,.map-container{height:100%;width:100%}.fc-map{position:relative}.clusterer-info-window,.fc-map .map-alarm-info-window,.map-info-window,.map-popup-window{position:relative;background-color:#fff;border-radius:4px;box-shadow:0 0 5px 1px #cecece}.fc-map .clusterer-info-window::after,.fc-map .map-alarm-info-window::after,.fc-map .map-info-window::after{content:"";width:0;height:0;border:14px solid;position:absolute;bottom:-28px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-mouseover-window::after{content:"";width:0;height:0;border:10px solid;position:absolute;bottom:-12px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-mouseover-window{background:#fff;box-shadow:0 2px 4px 1px rgba(122,134,154,.4);padding:10px 20px}.fc-map .clusterer-info-window::after{left:-28px;top:50%;transform:translateY(-50%);border-color:transparent #fff transparent transparent}.fc-map .map-alarm-info-close,.map-info-close{position:absolute;height:16px;width:16px;top:8px;right:8px;cursor:pointer;color:#fff;z-index:1000}.fc-map .map-alarm-info-window .map-alarm-info-content{overflow:auto}.fc-map .map-info-device{padding:16px;font-size:14px;background-color:#fff}.fc-map .map-info-device p{display:flex;line-height:initial;margin:0}.fc-map .map-info-device p .title{color:#7a869a;flex-shrink:0}.fc-map .map-info-device p .info{color:#42526e}.fc-map .map-alarm-info-title+.map-alarm-info-content,.map-info-content{padding-top:0;height:100%}.fc-map .map-alarm-info-content{padding-top:20px;height:calc(100% - 20px)}.fc-map .map-info-content,.map-info-no-play{width:100%;height:180px}.fc-map .map-info-no-play.empty-video{display:flex;flex-flow:column;align-items:center;justify-content:center;color:#42526e;font-size:14px;font-weight:600;background-color:#edeff1}.fc-map .map-info-no-play.empty-video img{width:124px;height:124px}.fc-map .map-info-content .player-ctnr{position:relative;z-index:2;height:100%;width:100%}.fc-map .map-info-content .player-ctnr.no-play{background-color:#edeff1}.fc-map .map-info-content .player-ctnr .play-button{position:absolute;z-index:998;left:50%;top:50%;transform:translate(-50%,-50%);cursor:pointer}.fc-map .map-alarm-info-window{min-width:200px;min-height:100px}.fc-map .map-info-window{border:1px solid #dcdfe3;padding:4px;width:320px}.fc-map .clusterer-info-window{border:1px solid #dcdfe3;padding:4px;width:320px}.fc-map .map-alarm-info-title{height:16px;line-height:16px;font-size:16px;border-bottom:1px solid #c3c3c3;white-space:nowrap;background-color:#f5b740;color:#fff;padding:8px 30px 8px 8px}.fc-map .map-popup-window.bottom::after,.fc-map .map-popup-window.left::after,.fc-map .map-popup-window.right::after,.fc-map .map-popup-window.top::after{content:"";width:0;height:0;border:14px solid;position:absolute}.fc-map .map-popup-window.top::after{bottom:-28px;left:calc(50% - 14px);border-color:#fff transparent transparent}.fc-map .map-popup-window.right::after{bottom:calc(50% - 14px);left:-28px;border-color:transparent #fff transparent transparent}.fc-map .map-popup-window.bottom::after{top:-28px;left:calc(50% - 14px);border-color:transparent transparent #fff}.fc-map .map-popup-window.left::after{bottom:calc(50% - 14px);right:-28px;border-color:transparent transparent transparent #fff}.fc-map .map-tools{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-map .map-fullscreen-button{display:flex;align-items:center;justify-content:center;cursor:pointer}.fc-map .map-fullscreen-button i{margin-right:5px}.fc-map .map-switch-device-button{display:flex;align-items:center;justify-content:center;cursor:pointer}.qz-map .map-tools{position:absolute;display:flex;flex-flow:column}.qz-map .map-tools .map-tools-button{position:relative;margin-top:38px;width:45px;height:45px;border-radius:100%;box-shadow:0 2px 8px 0 rgba(0,0,0,.4);background-color:#fff;background-repeat:no-repeat;background-position:center;cursor:pointer;border:none;outline:0;color:#5f666c;transition:all .3s}.qz-map .map-tools .map-tools-button .button-icon{font-size:30px;line-height:45px}.qz-map .map-tools .map-tools-button.next-alarm-button{padding-top:5px}.qz-map .map-tools .map-tools-button:hover{color:#0075da}.qz-map .map-tools .map-tools-button:hover .button-tooltip{display:initial}.qz-map .map-tools .map-tools-button .button-tooltip{display:none;left:-10px;top:50%;font-style:normal;transform:translate(-100%,-50%);white-space:nowrap;word-break:keep-all;transition:all .3s;color:#fff}.qz-map .map-tools .map-tools-button .button-tooltip::after{content:"";position:absolute;border:8px solid transparent;right:0;top:50%;border-left-color:#303133;transform:translate(16px,-50%)}.qz-map .map-tools .map-tools-button:first-child{margin-top:0}',map:void 0,media:void 0})},st=void 0,lt=void 0,ct=!1,ut=w({render:rt,staticRenderFns:ot},at,it,st,ct,lt,!1,A,void 0,void 0),ht=function(t){ht.installed||(ht.installed=!0,t.component("CanoeMap",ut))},dt={install:ht};let ft=null;"undefined"!==typeof window?ft=window.Vue:"undefined"!==typeof t&&(ft=t.Vue),ft&&ft.use(dt),ut.install=ht,e["a"]=ut}).call(this,n("c8ba"))},fca5:function(t,e,n){!function(e,i){t.exports=i(n("a026"),n("c1df"))}(window,(function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=43)}([,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i,r,o=t[1]||"",a=t[3];if(!a)return o;if(e&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=s(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(d)):a.push({identifier:u,updater:v(d,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,h=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,m=0;function v(t,e){var n,i,r;if(e.singleton){var o=m++;n=p||(p=c(e)),i=d.bind(null,n,o,!1),r=d.bind(null,n,o,!0)}else n=c(e),i=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,n){e.exports=t},,,,function(t,e,n){var i=n(3),r=n(34);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(40);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(42);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){(function(t){var i,r,o,a;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"undefined"!=typeof self&&self,a=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===s(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",m=function(){return this};t.exports=function(t,e,n,v,g,y,w){l(n,e,v);var b,A,x,k=function(t){if(!d&&t in _)return _[t];switch(t){case f:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",C=g==p,E=!1,_=t.prototype,I=_[h]||_["@@iterator"]||g&&_[g],T=I||k(g),D=g?C?k("entries"):T:void 0,R="Array"==e&&_.entries||I;if(R&&(x=u(R.call(new t)))!==Object.prototype&&x.next&&(c(x,S,!0),i||"function"==typeof x[h]||a(x,h,m)),C&&I&&I.name!==p&&(E=!0,T=function(){return I.call(this)}),i&&!w||!d&&!E&&_[h]||a(_,h,T),s[e]=T,s[S]=m,g)if(b={values:C?T:k(p),keys:y?T:k(f),entries:D},w)for(A in b)A in _||o(_,A,b[A]);else r(r.P+r.F*(d||E),e,b);return b}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"09fa":function(t,e,n){var i=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0a49":function(t,e,n){var i=n("9b43"),r=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var m,v,g=o(e),y=r(g),w=i(s,p,3),b=a(y.length),A=0,x=n?f(e,b):l?f(e,0):void 0;b>A;A++)if((d||A in y)&&(v=w(m=y[A],A,g),t))if(n)x[A]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return A;case 2:x.push(m)}else if(u)return!1;return h?-1:c||u?u:x}}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"0f0d":function(t,e,n){var i=n("3e2e");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("13fdd262",i,!0,{sourceMap:!1,shadowMode:!1})},"0f88":function(t,e,n){for(var i,r=n("7726"),o=n("32e9"),a=n("ca5a"),s=a("typed_array"),l=a("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[d[h++]])?(o(i.prototype,s,!0),o(i.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},"14e8":function(t,e,n){var i=n("aa8a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("4708d7cf",i,!0,{sourceMap:!1,shadowMode:!1})},1820:function(t,e,n){"use strict";var i=n("2cd7");n.n(i).a},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t){return r(t).object}return{makeDetectable:function(t,a,s){s||(s=a,a=t,t=null),(t=t||{}).debug,i.isIE(8)?s(a):function(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(a),h=a.offsetWidth,d=a.offsetHeight;function f(){function n(){if("static"===u.position){a.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){var o=i[r];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,a,u,"top"),n(e,a,u,"right"),n(e,a,u,"bottom"),n(e,a,u,"left")}}""!==u.position&&(n(),c=!0);var o=document.createElement("object");o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){s(a)}))},i.isIE()||(o.data="about:blank"),r(a)&&(a.appendChild(o),r(a).object=o,i.isIE()&&(o.data="about:blank"))}r(a).startSize={width:h,height:d},n?n.add(f):f()}(a,s)},addListener:function(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=a(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(r(t)){var e=a(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){return!(!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()||t&&t!==function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},i.isLegacyOpera=function(){return!!window.opera}},1991:function(t,e,n){var i,r,o,a=n("9b43"),s=n("31f4"),l=n("fab2"),c=n("230e"),u=n("7726"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y="onreadystatechange",w=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){w.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){s("function"==typeof t?t:Function(t),e)},i(v),v},f=function(t){delete g[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(a(w,t,1))}:m&&m.now?i=function(t){m.now(a(w,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=y in c("script")?function(t){l.appendChild(c("script"))[y]=function(){l.removeChild(this),w.call(t)}}:function(t){setTimeout(a(w,t,1),0)}),t.exports={set:d,clear:f}},"1c4c":function(t,e,n){"use strict";var i=n("9b43"),r=n("5ca1"),o=n("4bf8"),a=n("1fa8"),s=n("33a4"),l=n("9def"),c=n("f1ae"),u=n("27ee");r(r.S+r.F*!n("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(d);if(v&&(m=i(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(e=l(d.length));e>g;g++)c(n,g,v?m(d[g],g):d[g]);else for(h=y.call(d),n=new f;!(r=h.next()).done;g++)c(n,g,v?a(h,m,[r.value,g],!0):r.value);return n.length=g,n}})},"1d01":function(t,e,n){"use strict";var i=n("899a");n.n(i).a},"1d3b":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-slider-disabled .vue-slider-process{background-color:#a7a7a7}.vue-slider-disabled .vue-slider-dot-handle{border-color:#a7a7a7}.vue-slider-disabled .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #a7a7a7;box-shadow:0 0 0 2px #a7a7a7}.vue-slider-rail{background-color:#f5f5f5;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-rail{background-color:#e1e1e1}.vue-slider-process{background-color:#9cd5ff;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-process{background-color:#69c0ff}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;-webkit-box-shadow:0 0 0 2px #e8e8e8;box-shadow:0 0 0 2px #e8e8e8;background-color:#fff}.vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #9cd5ff;box-shadow:0 0 0 2px #9cd5ff}.vue-slider:hover .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #69c0ff;box-shadow:0 0 0 2px #69c0ff}.vue-slider-mark-label{font-size:12px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;border:2px solid #9cd5ff;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .3s,-webkit-box-shadow .3s;transition:border-color .3s,-webkit-box-shadow .3s;transition:box-shadow .3s,border-color .3s;transition:box-shadow .3s,border-color .3s,-webkit-box-shadow .3s}.vue-slider:hover .vue-slider-dot-handle{border-color:#69c0ff}.vue-slider-dot-handle-focus{border-color:#36abff;-webkit-box-shadow:0 0 0 5px rgba(54,171,255,.2);box-shadow:0 0 0 5px rgba(54,171,255,.2)}.vue-slider-dot-handle:hover,.vue-slider:hover .vue-slider-dot-handle-focus,.vue-slider:hover .vue-slider-dot-handle:hover{border-color:#36abff}.vue-slider-dot-handle-disabled{cursor:not-allowed;border-color:#ddd!important}.vue-slider-dot-tooltip{opacity:0;visibility:hidden;-webkit-transition:all .3s;transition:all .3s}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:6px 8px;color:#fff;border-radius:5px;border-color:rgba(0,0,0,.75);background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transform:scale(.9);transform:scale(.9);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vue-slider-dot-tooltip-inner:after{content:"";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after,.vue-slider-dot-tooltip-inner-top:after{left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-left:after,.vue-slider-dot-tooltip-inner-right:after{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-right:after{right:100%;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-inner-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.vue-slider-dot-tooltip-inner-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.vue-slider-dot-tooltip-inner-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.vue-slider-dot-tooltip-inner-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.vue-slider-dot-tooltip-show,.vue-slider-dot:hover .vue-slider-dot-tooltip{opacity:1;visibility:visible}.vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner,.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner{-webkit-transform:scale(1);transform:scale(1)}',""])},"1e97":function(t,e,n){var i=n("b188");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("119712a6",i,!0,{sourceMap:!1,shadowMode:!1})},"1fa8":function(t,e,n){var i=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var m=/./[d],v=n(a,d,""[t],(function(t,e,n,i,r){return e.exec===l?f&&!r?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),g=v[0],y=v[1];i(String.prototype,t,g),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"215a":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".no-border,.no-border.selected,.no-border:hover{border:none}@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.vatlive{width:100%;height:100%;background-color:#081b2a;border-color:#000;border-width:2px;padding:0;overflow:hidden}.vatlive,.vatlive *,.vatlive>table{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table{width:100%;height:100%;border:1px solid #364a63;background-color:#081b2a;table-layout:fixed;word-break:break-all;padding:0;border-collapse:separate}.vatlive>table>tr,.vatlive>table>tr>td{padding:0;vertical-align:top}.vatlive>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b;overflow-x:hidden;overflow-y:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table>tr>td[max=true]{border:none}.vatlive>table>tr>td:hover{border:1px solid #4e408f}.vatlive>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive>table>tr>td .vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0}.vatlive>table>tr>td .vatwin .drag-layer{z-index:100;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.001)}.vatlive>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive>table>tr>td .vatwin .vatrender{position:absolute;border:none;z-index:50;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-record{z-index:51;border:none;position:absolute;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M704 434.496l131.795-131.789a38.4 38.4 0 0165.549 27.155v388.48a38.4 38.4 0 01-65.549 27.15L704 613.701V729.6a38.4 38.4 0 01-38.4 38.4H166.4a38.4 38.4 0 01-38.4-38.4v-384a38.4 38.4 0 0138.4-38.4h499.2a38.4 38.4 0 0138.4 38.4v88.896zM281.6 524.8c42.413 0 76.8-34.387 76.8-76.8s-34.387-76.8-76.8-76.8-76.8 34.387-76.8 76.8 34.387 76.8 76.8 76.8z' fill='%23d81e06'/%3E%3C/svg%3E\");opacity:.8;width:32px;height:32px;top:12px;right:10px;animation:vatblink 2.2s infinite;-moz-animation:vatblink 2.2s infinite;-webkit-animation:vatblink 2.2s infinite;-o-animation:vatblink 2.2s infinite}.vatlive>table>tr>td .vatwin .vat-tool{position:absolute;display:block;border:1px solid rgba(3,88,109,.1);border-radius:3px;bottom:0;width:100%;height:auto;visibility:hidden;background:rgba(54,74,99,.4);opacity:0;z-index:110;text-align:center;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear;overflow:hidden}.vatlive>table>tr>td .vatwin .vat-tool a{width:28px;height:28px;margin-left:5px;margin-right:5px;margin-top:5px;background-size:cover;background-repeat:no-repeat;-webkit-transition:all .3s;transition:all .3s;display:inline-block}.vatlive>table>tr>td .vatwin .vat-tool a:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.vatlive>table>tr>td .vatwin .vat-tool a:active{-webkit-transform:scale(1);transform:scale(1)}.vatlive>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive>table>tr>td .vatwin .vat-tool svg:hover path{fill:#42b7f7}.vatlive>table>tr>td .vatwin:hover .vat-tool{visibility:visible;opacity:.8;-webkit-transition-delay:0s;transition-delay:0s}.vatlive>table>tr>td .vatwin .vat-title{position:absolute;display:block;top:0;width:100%;height:16px;z-index:55;background:#0a1522;border:1px solid #050524}.vatlive>table>tr>td .vatwin .vat-title .state{position:absolute;left:0;display:inline-block;width:16px;height:16px;background-size:cover;-webkit-background-size:cover;-moz-background-size:cover}.vatlive>table>tr>td .vatwin .vat-title .vat-name{position:absolute;top:-1px;left:32px;height:100%;display:inline-block;color:#39aea6;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vatlive>table>tr>td .vatwin .vat-title .vat-speed{position:absolute;top:-1px;right:5px;height:100%;display:inline-block;color:#28312e;font-size:12px;margin-top:1px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-error{z-index:51;display:block;position:absolute;border:none;background:rgba(0,0,0,.4);font-size:18px;width:100%;height:100%}.vatlive>table>tr>td .vatwin .vat-error>table{width:100%;height:100%;background:transparent}.vatlive>table>tr>td .vatwin .vat-error>table td{opacity:.8;color:red;text-align:center}.vatlive>table>tr>td .vatwin .vat-error>table tr{vertical-align:middle;display:contents}.vatlive>table>tr>td .vatwin .vat-roi-draw{z-index:102;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;border:none}.vatlive>table>tr>td .vatwin .vat-roi-view{z-index:99;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu{z-index:120;position:absolute;background-color:#f0f;border:2px solid #1c4480;cursor:pointer;padding:0}.vatlive>table>tr>td .vatwin .vat-roi-menu li{height:25px;border:1px solid rgba(12,74,110,.877);color:#cccbcb;text-align:center;background:rgba(10,54,95,.877);list-style-type:none;padding:2px 5px 2px 5px;font-size:14px;overflow:hidden;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive>table>tr>td .vatwin .vat-face{z-index:51;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-exrender{z-index:52;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-ptz-panel{margin-top:20px;margin-left:5px;height:50%;padding-left:25%;z-index:109;background-color:#10313a;position:absolute;opacity:.5}.vatlive>table>tr>td .vat-down{padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\") no-repeat}.vatlive>table>tr>td .vat-down span{display:table-cell;vertical-align:middle;height:32px}.vatlive .check_error{width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red}.vatlive .check_error a:link,.vatlive .check_error a:visited{color:red}.vatlive .check_error a:hover{color:#f0f}.vatlive .check_error a:active{color:#00f}.vatlive-dark>table{border:1px solid #364a63;background-color:#081b2a}.vatlive-dark>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b}.vatlive-dark>table>tr>td:hover{border:1px solid #4e408f}.vatlive-dark>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive-dark>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive-dark>table>tr>td .vatwin .vat-tool{border:1px solid rgba(3,88,109,.1);background:rgba(20,20,20,.5)}.vatlive-dark>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-dark>table>tr>td .vatwin .vat-tool svg:hover path{fill:#3387ff}.vatlive-dark>table>tr>td .vatwin .vat-title{background:#0a1522;border:1px solid #050524}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-name{color:#39aea6}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-dark>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-dark>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #1c4480}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(12,74,110,.877);color:#cccbcb;background:rgba(10,54,95,.877)}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive-dark .check_error,.vatlive-dark .check_error a:link,.vatlive-dark .check_error a:visited{color:red}.vatlive-dark .check_error a:hover{color:#f0f}.vatlive-dark .check_error a:active{color:#00f}.vatlive-red>table{border:1px solid #220f0f;background-color:#421602}.vatlive-red>table>tr>td{border:1px solid #ac0358;background-color:#241313}.vatlive-red>table>tr>td:hover{border:1px solid #4e408f}.vatlive-red>table>tr>td.selected{border:1px solid #6003ac}.vatlive-red>table>tr>td .vatwin .drag-hover{border:1px solid #7801bd}.vatlive-red>table>tr>td .vatwin .vat-tool{border:1px solid rgba(241,111,111,.1);background:rgba(20,20,20,.5)}.vatlive-red>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-red>table>tr>td .vatwin .vat-tool svg:hover path{fill:#f75bd0}.vatlive-red>table>tr>td .vatwin .vat-title{background:#410808;border:1px solid #520606}.vatlive-red>table>tr>td .vatwin .vat-title .vat-name{color:#d4af09}.vatlive-red>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-red>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-red>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-red>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #5a041e}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(141,15,88,.877);color:#cccbcb;background:rgba(66,4,56,.877)}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(153,22,114,.877);background:rgba(141,16,110,.877)}.vatlive-red .check_error,.vatlive-red .check_error a:link,.vatlive-red .check_error a:visited{color:red}.vatlive-red .check_error a:hover{color:#f0f}.vatlive-red .check_error a:active{color:#00f}.vatlive-blue>table{border:1px solid #0f1322;background-color:#34495c}.vatlive-blue>table>tr>td{border:1px solid #141f38;background-color:#081b2a}.vatlive-blue>table>tr>td:hover{border:1px solid #2a1588}.vatlive-blue>table>tr>td.selected{border:1px solid #810707}.vatlive-blue>table>tr>td .vatwin .drag-hover{border:1px solid #01851e}.vatlive-blue>table>tr>td .vatwin .vat-tool{border:1px solid rgba(50,53,235,.1);background:rgba(20,20,20,.5)}.vatlive-blue>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-blue>table>tr>td .vatwin .vat-tool svg:hover path{fill:#6c86f8}.vatlive-blue>table>tr>td .vatwin .vat-title{background:#02134b;border:1px solid #05133a}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-name{color:#a7a7a7}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-blue>table>tr>td .vatwin .vat-error{background:#081b2a}.vatlive-blue>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu{background-color:#0f378d;border:2px solid #160479}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(14,25,75,.877);color:#cccbcb;background:rgba(3,39,94,.877)}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(2,105,25,.877);background:rgba(39,133,30,.877)}.vatlive-blue .check_error,.vatlive-blue .check_error a:link,.vatlive-blue .check_error a:visited{color:red}.vatlive-blue .check_error a:hover{color:#f0f}.vatlive-blue .check_error a:active{color:#00f}",""])},"227c":function(t,e,n){"use strict";var i=n("0f0d");n.n(i).a},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},2397:function(t,e,n){var i=n("5ca1"),r=n("2aeb"),o=n("d8e8"),a=n("cb7c"),s=n("d3f4"),l=n("79e5"),c=n("f0c1"),u=(n("7726").Reflect||{}).construct,h=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),d=!l((function(){u((function(){}))}));i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}var l=n.prototype,f=r(s(l)?l:Object.prototype),p=Function.apply.call(t,f,e);return s(p)?p:f}})},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"272c":function(t,e,n){"use strict";var i=n("1e97");n.n(i).a},"27ee":function(t,e,n){var i=n("23c6"),r=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"28a5":function(t,e,n){"use strict";var i=n("aae3"),r=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),h=Math.min,d=[].push,f="split",p="length",m="lastIndex",v=4294967295,g=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(t,e,n,u){var y;return y="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,a,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?v:e>>>0,g=new RegExp(t.source,u+"g");(o=c.call(g,r))&&!((a=g[m])>h&&(l.push(r.slice(h,o.index)),o[p]>1&&o.index<r[p]&&d.apply(l,o.slice(1)),s=o[0][p],h=a,l[p]>=f));)g[m]===o.index&&g[m]++;return h===r[p]?!s&&g.test("")||l.push(""):l.push(r.slice(h)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r,i):y.call(String(r),n,i)},function(t,e){var i=u(y,t,this,e,y!==n);if(i.done)return i.value;var c=r(t),d=String(this),f=o(c,RegExp),p=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),w=new f(g?c:"^(?:"+c.source+")",m),b=void 0===e?v:e>>>0;if(0===b)return[];if(0===d.length)return null===l(w,d)?[d]:[];for(var A=0,x=0,k=[];x<d.length;){w.lastIndex=g?x:0;var S,C=l(w,g?d:d.slice(x));if(null===C||(S=h(s(w.lastIndex+(g?0:x)),d.length))===A)x=a(d,x,p);else{if(k.push(d.slice(A,x)),k.length===b)return k;for(var E=1;E<=C.length-1;E++)if(k.push(C[E]),k.length===b)return k;x=A=S}}return k.push(d.slice(A)),k}]}))},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=n("230e")("iframe"),i=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c[l][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},"2cd7":function(t,e,n){var i=n("86cb");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("65465726",i,!0,{sourceMap:!1,shadowMode:!1})},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d64":function(t,e,n){var i=n("9ba3");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("5713d8e2",i,!0,{sourceMap:!1,shadowMode:!1})},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2ed9":function(t,e,n){"use strict";var i=n("2d64");n.n(i).a},"31f4":function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"33a4":function(t,e,n){var i=n("84f2"),r=n("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"34ef":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"36bd":function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),o=n("9def");t.exports=function(t){for(var e=i(this),n=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)e[s++]=t;return e}},"37c8":function(t,e,n){e.f=n("2b4c")},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"3a72":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("2d00"),a=n("37c8"),s=n("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3e2e":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0;vertical-align:top}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}",""])},"3e39":function(t,e,n){var i=n("1d3b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("f8f69916",i,!0,{sourceMap:!1,shadowMode:!1})},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4971:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===s(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},2638:function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],o=["class","style","directives"],a=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==o.indexOf(n)){var l=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=l.concat(c)}else if(-1!==a.indexOf(n))for(var u in e[n])if(t[n][u]){var h=t[n][u]instanceof Array?t[n][u]:[t[n][u]],d=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=h.concat(d)}else t[n][u]=e[n][u];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?s(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})}},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){c=n,h=r||{};var a=i(t,e);return m(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],l=o[s.id];l.refs--,n.push(l)}for(e?m(a=i(t,e)):a=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(g(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(g(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=v()),e=w.bind(null,i,r,!1),n=w.bind(null,i,r,!0)}else i=v(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4abb":function(t,e,n){var i=n("7a57");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("b2af7572",i,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var i=n("091b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("2f6bee1a",i,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var i=n("eef2");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("1209fd47",i,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){"use strict";
|
||
/**
|
||
* vue-class-component v7.0.1
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&"object"===s(t)&&"default"in t?t.default:t}(n("8bbf")),r="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function o(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){a(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){a(t,e,n)}))}function a(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var l={__proto__:[]}instanceof Array,c=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function u(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(c.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}(this,t)}});var a=t.__decorators__;a&&(a.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),l=s instanceof i?s.constructor:i,u=l.extend(e);return h(u,t,l),r&&o(u,t),u}function h(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if("prototype"!==i){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(e,i);if(!l){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=s(t);return null==t||"object"!==e&&"function"!==e}(o.value)&&a&&a.value===o.value)return}Object.defineProperty(t,i,o)}}}))}function d(t){return"function"==typeof t?u(t):function(e){return u(e,t)}}d.registerHooks=function(t){c.push.apply(c,t)},e.default=d,e.createDecorator=function(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}},"7a57":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,n){var i,r,o;"undefined"!=typeof self&&self,r=[],void 0===(o="function"==typeof(i=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var t,e,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),r=i&&i[1]||!1,o=i&&i[2]||!1,a=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");r===a&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===r)return s[l];if(r===a&&s[l].innerHTML&&s[l].innerHTML.trim()===n)return s[l]}return null}}})?i.apply(e,r):i)||(t.exports=o)},"8bbf":function(e,n){e.exports=t},eef2:function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ERROR_TYPE",(function(){return W})),n.d(e,"VueSliderMark",(function(){return L})),n.d(e,"VueSliderDot",(function(){return S})),"undefined"!=typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=n("2638"),l=n.n(a);function c(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}var u=n("8bbf"),h=n.n(u),d=n("65d9"),f=n.n(d);function p(t,e){return void 0===e&&(e={}),Object(d.createDecorator)((function(n,i){(n.props||(n.props={}))[i]=e,n.model={prop:i,event:t||i}}))}function m(t){return void 0===t&&(t={}),Object(d.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))}function v(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,o=void 0!==r&&r;return Object(d.createDecorator)((function(e,n){"object"!==s(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==s(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:o})}))}function g(t){return(g="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=k(t);if(e){var r=k(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4ed8");var S=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(n,t);var e=A(n);function n(){return y(this,n),e.apply(this,arguments)}return function(t,e,n){e&&w(t.prototype,e),n&&w(t,n)}(n,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),n}(h.a);return c([m({default:0})],t.prototype,"value",void 0),c([m()],t.prototype,"tooltip",void 0),c([m()],t.prototype,"dotStyle",void 0),c([m()],t.prototype,"tooltipStyle",void 0),c([m({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),c([m({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),c([m({type:Boolean,default:!1})],t.prototype,"focus",void 0),c([m({default:!1})],t.prototype,"disabled",void 0),c([f.a],t)}();function C(t){return(C="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function I(t,e){return(I=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==C(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("556c");var O,L=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&I(t,e)}(n,t);var e=T(n);function n(){return E(this,n),e.apply(this,arguments)}return function(t,e,n){e&&_(t.prototype,e),n&&_(t,n)}(n,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),n}(h.a);return c([m({required:!0})],t.prototype,"mark",void 0),c([m(Boolean)],t.prototype,"hideLabel",void 0),c([m()],t.prototype,"stepStyle",void 0),c([m()],t.prototype,"stepActiveStyle",void 0),c([m()],t.prototype,"labelStyle",void 0),c([m()],t.prototype,"labelActiveStyle",void 0),c([f.a],t)}(),P=function(t){return"number"==typeof t?"".concat(t,"px"):t},M=function(t,e,n){var i="targetTouches"in t?t.targetTouches[0]:t,r=function(t){var e=document.documentElement,n=document.body,i=t.getBoundingClientRect();return{y:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}}(e),o={x:i.pageX-r.x,y:i.pageY-r.y};return{x:n?e.offsetWidth-o.x:o.x,y:n?e.offsetHeight-o.y:o.y}};function N(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(O||(O={}));var B,W,F=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.num=e}return function(t,e,n){e&&N(t.prototype,e),n&&N(t,n)}(t,[{key:"decimal",value:function(t,e){var n=this.num,i=this.getDecimalLen(n),r=this.getDecimalLen(t),o=0;switch(e){case"+":o=this.getExponent(i,r),this.num=(this.safeRoundUp(n,o)+this.safeRoundUp(t,o))/o;break;case"-":o=this.getExponent(i,r),this.num=(this.safeRoundUp(n,o)-this.safeRoundUp(t,o))/o;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(i)),this.safeRoundUp(t,this.getExponent(r)))/this.getExponent(i+r);break;case"/":o=this.getExponent(i,r),this.num=this.safeRoundUp(n,o)/this.safeRoundUp(t,o);break;case"%":o=this.getExponent(i,r),this.num=this.safeRoundUp(n,o)%this.safeRoundUp(t,o)/o}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t,e)||Y(t,e)||function(){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 j(t){return function(t){if(Array.isArray(t))return H(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Y(t)||function(){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 Y(t,e){if(t){if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function V(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(W||(W={}));var G=(K(B={},W.VALUE,'The type of the "value" is illegal'),K(B,W.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),K(B,W.MIN,'The "value" must be greater than or equal to the "min".'),K(B,W.MAX,'The "value" must be less than or equal to the "max".'),K(B,W.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),B),q=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(W.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return function(t,e,n){e&&V(t.prototype,e),n&&V(t,n)}(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?j(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?j(t).sort((function(t,e){return t-e})):t;this.dotsPos=n,this.setDotsValue(n.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach((function(i){var r=Math.abs(i.pos-t);r<n&&(n=r,e=i.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map((function(e){return Math.abs(e-t)}));return e.indexOf(Math.min.apply(Math,j(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new F(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new F(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var i=new Array(this.dotsPos.length);this.fixed?i=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?i=this.getLimitRangeChangePosArr(t,n,e):i[e]=n,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(i[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach((function(i,r){if(r!==e){var o=n.getValidPos(i+t,r),a=o.pos;o.inRange||(t=Math.min(Math.abs(a-i),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var i=this,r=[{index:n,changePos:e}],o=e;return[this.minRange,this.maxRange].forEach((function(a,s){if(!a)return!1;for(var l,c=0===s,u=e>0,h=function(t,e){var n=Math.abs(t-e);return c?n<i.minRangeDir:n>i.maxRangeDir},d=n+(l=c?u?1:-1:u?-1:1),f=i.dotsPos[d],p=t;i.isPos(f)&&h(f,p);){var m=i.getValidPos(f+o,d).pos;r.push({index:d,changePos:m-f}),d+=l,p=m,f=i.dotsPos[d]}})),this.dotsPos.map((function(t,e){var n=r.filter((function(t){return t.index===e}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],i=!0;return t<n[0]?(t=n[0],i=!1):t>n[1]&&(t=n[1],i=!1),{pos:t,inRange:i}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(W.MIN),0;if(t>this.max)return this.emitError(W.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(W.VALUE),0;t=new F(t).minus(this.min).divide(this.interval).toNumber()}var e=new F(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var n=z(e,2),i=n[0],r=n[1];return t>=i&&t<=r}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new F(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new F(t).divide(new F(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,G[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var i=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return i&&void 0!==i[e]?this.parseValue(i[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var i=t.parseValue(e);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({pos:i,value:e,label:e,active:t.isActiveByPos(i)},n)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(n){var i=t.marks[n];return e(n,"string"!=typeof i?i:{label:i})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"==typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){return!!t.result})).map((function(t){var n=t.value,i=t.result;return e(n,i)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,j(this.dotsPos)),Math.max.apply(Math,j(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new F(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(W.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach((function(i,r){n.push([Math.max(t.minRange?t.minRangeDir*r:0,t.enableCross?0:e[r-1]||0,t.getDotRange(r,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-r):100,t.enableCross?100:e[r+1]||100,t.getDotRange(r,"max",100))])})),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function Q(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var J=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.states=0,this.map=e}return function(t,e,n){e&&Q(t.prototype,e),n&&Q(t,n)}(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function X(t){return(X="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t,e)||it(t,e)||function(){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 et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||it(t)||function(){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 it(t,e){if(t){if("string"==typeof t)return rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function at(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=ut(t);if(e){var r=ut(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==X(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4abb");var ht={None:0,Drag:2,Focus:4},dt=function(){var t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}(n,t);var e=lt(n);function n(){var t;return ot(this,n),(t=e.apply(this,arguments)).states=new J(ht),t.scale=1,t.focusDotIndex=0,t}return function(t,e,n){e&&at(t.prototype,e),n&&at(t,n)}(n,[{key:"onValueChanged",value:function(){this.control&&!this.states.has(ht.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new F(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new q({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every((function(e,n){return e===t.control.data[n]})))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:nt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}},{key:"emitError",value:function(t,e){this.silent,this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(ht.Drag),this.states.add(ht.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(ht.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:nt(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(n,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has(ht.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.states.delete(ht.Drag),t.useKeyboard||t.states.delete(ht.Focus),t.$emit("drag-end",t.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(ht.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(ht.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(ht.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(ht.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(ht.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?nt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(ht.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(ht.Focus))return!1;var n=this.included&&this.marks,i=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case O.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case O.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case O.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case O.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case O.END:return function(){return e.max};case O.HOME:return function(){return e.min};case O.PAGE_UP:return function(t){return t+10};case O.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(i){t.preventDefault();var r=-1,o=0;n?(this.control.markList.some((function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(r=i(n),!0)})),r<0?r=0:r>this.control.markList.length-1&&(r=this.control.markList.length-1),o=this.control.markList[r].pos):(r=i(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),o=this.control.parseValue(this.control.getValueByIndex(r))),this.isCrossDot(o),this.control.setDotPos(o,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return M(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,i){var r=this.$createElement,o=this.$scopedSlots[t];return o?i?o(e):r("template",{slot:t},[o(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",l()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,i){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(i),style:n.style}),!0)})),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,i){var r;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(i),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(r={},et(r,t.isHorizontal?"height":"width","100%"),et(r,t.isHorizontal?"width":"height",t.tailSize),et(r,t.mainDirection,"".concat(n.pos,"%")),r),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,i){var r;return e("vue-slider-dot",{ref:"dot-".concat(i),key:"dot-".concat(i),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[i]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[i]},style:[t.dotBaseStyle,(r={},et(r,t.mainDirection,"".concat(n.pos,"%")),et(r,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),r)],on:{"drag-start":function(){return t.dragStart(i)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return P((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],i=this.width?P(this.width):this.isHorizontal?"auto":P(4),r=this.height?P(this.height):this.isHorizontal?P(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:i,height:r}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,n){var i,r=tt(e,3),o=r[0],a=r[1],s=r[2];if(o>a){var l=[a,o];o=l[0],a=l[1]}var c=t.isHorizontal?"width":"height";return{start:o,end:a,index:n,style:$($((i={},et(i,t.isHorizontal?"height":"width","100%"),et(i,t.isHorizontal?"top":"left",0),et(i,t.mainDirection,"".concat(o,"%")),et(i,c,"".concat(a-o,"%")),et(i,"transitionProperty","".concat(c,",").concat(t.mainDirection)),et(i,"transitionDuration","".concat(t.animateTime,"s")),i),t.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var t,e=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],i=e[1];return t=this.isHorizontal?et({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):et({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),$({width:"".concat(n,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,n){return $({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(ht.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(ht.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,n){return e!==t[n]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),n}(h.a);return c([p("change",{default:0})],t.prototype,"value",void 0),c([m({type:Boolean,default:!1})],t.prototype,"silent",void 0),c([m({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),c([m({type:[Number,String]})],t.prototype,"width",void 0),c([m({type:[Number,String]})],t.prototype,"height",void 0),c([m({default:14})],t.prototype,"dotSize",void 0),c([m({default:!1})],t.prototype,"contained",void 0),c([m({type:Number,default:0})],t.prototype,"min",void 0),c([m({type:Number,default:100})],t.prototype,"max",void 0),c([m({type:Number,default:1})],t.prototype,"interval",void 0),c([m({type:Boolean,default:!1})],t.prototype,"disabled",void 0),c([m({type:Boolean,default:!0})],t.prototype,"clickable",void 0),c([m({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),c([m({type:Number,default:.5})],t.prototype,"duration",void 0),c([m(Array)],t.prototype,"data",void 0),c([m({type:Boolean,default:!1})],t.prototype,"lazy",void 0),c([m({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),c([m({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),c([m({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),c([m({type:Boolean,default:!1})],t.prototype,"useKeyboard",void 0),c([m(Function)],t.prototype,"keydownHook",void 0),c([m({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),c([m({type:Boolean,default:!1})],t.prototype,"fixed",void 0),c([m({type:Boolean,default:!0})],t.prototype,"order",void 0),c([m(Number)],t.prototype,"minRange",void 0),c([m(Number)],t.prototype,"maxRange",void 0),c([m({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),c([m({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),c([m(Boolean)],t.prototype,"included",void 0),c([m(Boolean)],t.prototype,"adsorb",void 0),c([m(Boolean)],t.prototype,"hideLabel",void 0),c([m()],t.prototype,"dotOptions",void 0),c([m()],t.prototype,"railStyle",void 0),c([m()],t.prototype,"processStyle",void 0),c([m()],t.prototype,"dotStyle",void 0),c([m()],t.prototype,"tooltipStyle",void 0),c([m()],t.prototype,"stepStyle",void 0),c([m()],t.prototype,"stepActiveStyle",void 0),c([m()],t.prototype,"labelStyle",void 0),c([m()],t.prototype,"labelActiveStyle",void 0),c([v("value")],t.prototype,"onValueChanged",null),c([f()({data:function(){return{control:null}},components:{VueSliderDot:S,VueSliderMark:L}})],t)}();dt.VueSliderMark=L,dt.VueSliderDot=S;var ft=dt;e.default=ft}}).default}(n("8bbf"))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){c=n,h=r||{};var a=i(t,e);return m(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],l=o[s.id];l.refs--,n.push(l)}for(e?m(a=i(t,e)):a=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(g(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(g(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=v()),e=w.bind(null,i,r,!1),n=w.bind(null,i,r,!0)}else i=v(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}return{get:n,add:function(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)},removeListener:function(t,e){for(var i=n(t),r=0,o=i.length;r<o;++r)if(i[r]===e){i.splice(r,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),l=n("27ee"),c={},u={};(e=t.exports=function(t,e,n,h,d){var f,p,m,v,g=d?function(){return t}:l(t),y=i(n,h,e?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(f=s(t.length);f>w;w++)if((v=e?y(a(p=t[w])[0],p[1]):y(t[w]))===c||v===u)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=r(m,y,p.value,e))===c||v===u)return v}).BREAK=c,e.RETURN=u},"4b0b":function(t,e,n){"use strict";var i=n("9bfc");n.n(i).a},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(a=function(t){var e,n,a,u,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),l&&(e=h[s]),a=r.call(h,t),l&&a&&(h[s]=h.global?a.index+a[0].length:e),c&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"551c":function(t,e,n){"use strict";var i,r,o,a,s=n("2d00"),l=n("7726"),c=n("9b43"),u=n("23c6"),h=n("5ca1"),d=n("d3f4"),f=n("d8e8"),p=n("f605"),m=n("4a59"),v=n("ebd6"),g=n("1991").set,y=n("8079")(),w=n("a5b8"),b=n("9c80"),A=n("a25f"),x=n("bcaa"),k="Promise",S=l.TypeError,C=l.process,E=C&&C.versions,_=E&&E.v8||"",I=l[k],T="process"==u(C),D=function(){},R=r=w.f,O=!!function(){try{var t=I.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(D,D)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(D)instanceof e&&0!==_.indexOf("6.6")&&-1===A.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(r||(2==t._h&&B(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=L(n))?o.call(n,l,c):l(n)):c(i)}catch(t){u&&!a&&u.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)}))}},M=function(t){g.call(l,(function(){var e,n,i,r=t._v,o=N(t);if(o&&(e=b((function(){T?C.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=T||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){g.call(l,(function(){var e;T?C.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},W=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},F=function t(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw S("Promise can't be resolved itself");(n=L(e))?y((function(){var r={_w:i,_d:!1};try{n.call(e,c(t,r,1),c(W,r,1))}catch(t){W.call(r,t)}})):(i._v=e,i._s=1,P(i,!1))}catch(t){W.call({_w:i,_d:!1},t)}}};O||(I=function(t){p(this,I,k,"_h"),f(t),i.call(this);try{t(c(F,this,1),c(W,this,1))}catch(t){W.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("dcbc")(I.prototype,{then:function(t,e){var n=R(v(this,I));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=c(F,t,1),this.reject=c(W,t,1)},w.f=R=function(t){return t===I||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!O,{Promise:I}),n("7f20")(I,k),n("7a56")(k),a=n("8378")[k],h(h.S+h.F*!O,k,{reject:function(t){var e=R(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!O),k,{resolve:function(t){return x(s&&this===a?I:this,t)}}),h(h.S+h.F*!(O&&n("5cc5")((function(t){I.all(t).catch(D)}))),k,{all:function(t){var e=this,n=R(e),i=n.resolve,r=n.reject,o=b((function(){var n=[],o=0,a=1;m(t,!1,(function(t){var s=o++,l=!1;n.push(void 0),a++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--a||i(n))}),r)})),--a||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=R(e),i=n.reject,r=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5577:function(t,e,n){var i=n("716f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("e84da2fe",i,!0,{sourceMap:!1,shadowMode:!1})},5661:function(t,e,n){var i=n("e6a8");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("d9a8fa16",i,!0,{sourceMap:!1,shadowMode:!1})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function t(e,n,c){var u,h,d,f,p=e&t.F,m=e&t.G,v=e&t.P,g=e&t.B,y=m?i:e&t.S?i[n]||(i[n]={}):(i[n]||{})[l],w=m?r:r[n]||(r[n]={}),b=w[l]||(w[l]={});for(u in m&&(c=n),c)d=((h=!p&&y&&void 0!==y[u])?y:c)[u],f=g&&h?s(d,i):v&&"function"==typeof d?s(Function.call,d):d,y&&a(y,u,d,e&t.U),w[u]!=d&&o(w,u,f),v&&b[u]!=d&&(b[u]=d)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!==s(o))throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"63d9":function(t,e,n){n("ec30")("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"67ab":function(t,e,n){var i=n("ca5a")("meta"),r=n("d3f4"),o=n("69a8"),a=n("86cc").f,l=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),h=function(t){a(t,i,{value:{i:"O"+ ++l,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==s(t)?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!c(t))return"F";if(!e)return"E";h(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!c(t))return!0;if(!e)return!1;h(t)}return t[i].w},onFreeze:function(t){return u&&d.NEED&&c(t)&&!o(t,i)&&h(t),t}}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],l=function(t){n("2aba")(RegExp.prototype,a,t,!0)};n("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)})):s.name!=a&&l((function(){return s.call(this)}))},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"716f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-7eb6e3ed]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vod-times[data-v-7eb6e3ed]{display:block;overflow-y:hidden;position:relative}.times-panel[data-v-7eb6e3ed]{position:absolute;width:100%;border:none;margin:0 0;padding:0 0}.vod-time-row[data-v-7eb6e3ed]{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;background-color:#121212}.vod-time-left[data-v-7eb6e3ed],.vod-time-row[data-v-7eb6e3ed]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.vod-time-left[data-v-7eb6e3ed]{width:60px;padding:0 5px;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendar-container[data-v-7eb6e3ed]{right:10px;bottom:100px;z-index:20;position:absolute}.err-msg[data-v-7eb6e3ed]{color:red;font:18px Arial;font-weight:bolder}",""])},7514:function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),i(i.P+i.F*a,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var i=n("7726"),r=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},"7aa1":function(t,e,n){"use strict";var i=n("14e8");n.n(i).a},"7bbc":function(t,e,n){var i=n("6821"),r=n("9093").f,o={}.toString,a="object"==("undefined"==typeof window?"undefined":s(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(i(t))}},"7da8":function(t,e,n){var i=n("852f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("043b7139",i,!0,{sourceMap:!1,shadowMode:!1})},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var i=n("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in r||n("9e1e")&&i(r,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8079:function(t,e,n){var i=n("7726"),r=n("1991").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var i,r;for(l&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var h=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"852f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},"86cb":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".play-pb[data-v-44448bc0]{height:20px;position:relative;z-index:100;opacity:.7;margin:0 5px 0 5px}",""])},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"899a":function(t,e,n){var i=n("a107");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("66a109b7",i,!0,{sourceMap:!1,shadowMode:!1})},"8a81":function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("9e1e"),a=n("5ca1"),l=n("2aba"),c=n("67ab").KEY,u=n("79e5"),h=n("5537"),d=n("7f20"),f=n("ca5a"),p=n("2b4c"),m=n("37c8"),v=n("3a72"),g=n("d4c0"),y=n("1169"),w=n("cb7c"),b=n("d3f4"),A=n("4bf8"),x=n("6821"),k=n("6a99"),S=n("4630"),C=n("2aeb"),E=n("7bbc"),_=n("11e9"),I=n("2621"),T=n("86cc"),D=n("0d58"),R=_.f,O=T.f,L=E.f,P=i.Symbol,M=i.JSON,N=M&&M.stringify,B="prototype",W=p("_hidden"),F=p("toPrimitive"),U={}.propertyIsEnumerable,z=h("symbol-registry"),j=h("symbols"),Y=h("op-symbols"),H=Object[B],V="function"==typeof P&&!!I.f,K=i.QObject,G=!K||!K[B]||!K[B].findChild,q=o&&u((function(){return 7!=C(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=R(H,e);i&&delete H[e],O(t,e,n),i&&t!==H&&O(H,e,i)}:O,Q=function(t){var e=j[t]=C(P[B]);return e._k=t,e},J=V&&"symbol"==s(P.iterator)?function(t){return"symbol"==s(t)}:function(t){return t instanceof P},X=function t(e,n,i){return e===H&&t(Y,n,i),w(e),n=k(n,!0),w(i),r(j,n)?(i.enumerable?(r(e,W)&&e[W][n]&&(e[W][n]=!1),i=C(i,{enumerable:S(0,!1)})):(r(e,W)||O(e,W,S(1,{})),e[W][n]=!0),q(e,n,i)):O(e,n,i)},Z=function(t,e){w(t);for(var n,i=g(e=x(e)),r=0,o=i.length;o>r;)X(t,n=i[r++],e[n]);return t},$=function(t){var e=U.call(this,t=k(t,!0));return!(this===H&&r(j,t)&&!r(Y,t))&&(!(e||!r(this,t)||!r(j,t)||r(this,W)&&this[W][t])||e)},tt=function(t,e){if(t=x(t),e=k(e,!0),t!==H||!r(j,e)||r(Y,e)){var n=R(t,e);return!n||!r(j,e)||r(t,W)&&t[W][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=L(x(t)),i=[],o=0;n.length>o;)r(j,e=n[o++])||e==W||e==c||i.push(e);return i},nt=function(t){for(var e,n=t===H,i=L(n?Y:x(t)),o=[],a=0;i.length>a;)!r(j,e=i[a++])||n&&!r(H,e)||o.push(j[e]);return o};V||(l((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function e(n){this===H&&e.call(Y,n),r(this,W)&&r(this[W],t)&&(this[W][t]=!1),q(this,t,S(1,n))};return o&&G&&q(H,t,{configurable:!0,set:e}),Q(t)})[B],"toString",(function(){return this._k})),_.f=tt,T.f=X,n("9093").f=E.f=et,n("52a7").f=$,I.f=nt,o&&!n("2d00")&&l(H,"propertyIsEnumerable",$,!0),m.f=function(t){return Q(p(t))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var ot=D(p.store),at=0;ot.length>at;)v(ot[at++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return r(z,t+="")?z[t]:z[t]=P(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!V,"Object",{create:function(t,e){return void 0===e?C(t):Z(C(t),e)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){I.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return I.f(A(t))}}),M&&a(a.S+a.F*(!V||u((function(){var t=P();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!J(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),i[1]=e,N.apply(M,i)}}),P[B][F]||n("32e9")(P[B],F,P[B].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"8bbf":function(e,n){e.exports=t},"8e6e":function(t,e,n){var i=n("5ca1"),r=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),l=a.f,c=r(i),u={},h=0;c.length>h;)void 0!==(n=l(i,e=c[h++]))&&s(u,e,n);return u}})},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},9224:function(t){t.exports=JSON.parse('{"name":"dcs-plugin","version":"1.2.0","vatversion":"1.0.0","description":"DCS H5视频控件","author":"zhouqianlong@cloudwalk.com","homepage":"http://10.135.112.181","private":false,"publishConfig":{"registry":"https://artifact.cloudwalk.work/artifactory/api/npm/all-dept_npm-local/"},"main":"lib/dcs-plugin.umd.min.js","typings":"types/index.d.ts","scripts":{"serve":"vue-cli-service serve","build:demo":"vue-cli-service build","build-player":"vue-cli-service build --target lib --formats umd-min --dest lib ./src/index.ts","build-render":"vue-cli-service build --target lib --formats umd-min --dest lib/renders --name renders ./src/renders.ts","build":"npm run build-player","lint":"vue-cli-service lint","test:unit":"vue-cli-service test:unit","inspect":"vue-cli-service inspect"},"files":["lib","installer","docs","types","README.md"],"dependencies":{"axios":"^0.19.2","compare-versions":"^3.4.0","core-js":"^2.6.5","element-resize-detector":"^1.2.1","perfect-scrollbar":"^1.4.0","vue":"^2.6.6","vue-class-component":"^6.0.0","vue-property-decorator":"^8.0.0","vue-slider-component":"^3.0.43","vuex":"^3.0.1"},"devDependencies":{"@types/jest":"^23.1.4","@vue/cli-plugin-babel":"^3.5.0","@vue/cli-plugin-typescript":"^3.5.0","@vue/cli-plugin-unit-jest":"^3.5.0","@vue/cli-service":"^3.5.0","@vue/test-utils":"1.0.0-beta.29","babel-core":"7.0.0-bridge.0","node-sass":"^4.12.0","sass-loader":"^8.0.0","ts-jest":"^23.0.0","typescript":"^3.2.1","vue-template-compiler":"^2.5.21","zip-webpack-plugin":"^3.0.0"}}')},"990b":function(t,e,n){var i=n("9093"),r=n("2621"),o=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9ba3":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0;vertical-align:top}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] label{color:#b0d0d0;border-left:#d0d0d0;white-space:nowrap;display:inline-block;font:14px Arial;max-width:35px}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}.vatwin .vatwin-extrender-canvas{position:absolute;left:0;top:0;z-index:1000}",""])},"9bfc":function(t,e,n){var i=n("215a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("a79280b6",i,!0,{sourceMap:!1,shadowMode:!1})},"9c29":function(t,e,n){n("ec30")("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;null==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a107:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink-data-v-85562768{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink-data-v-85562768{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.timeline[data-v-85562768]{display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;background-color:#121212;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;position:relative;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;border:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ruler[data-v-85562768]{z-index:10}.records[data-v-85562768],.ruler[data-v-85562768]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;position:absolute}.records[data-v-85562768]{z-index:11;pointer-events:none}.time[data-v-85562768]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;font:12px Arial;color:#fefefe;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.time[data-v-85562768],.time-p[data-v-85562768]{position:relative;z-index:12;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;pointer-events:none}.time-p[data-v-85562768]{width:1px;height:45px;background-color:#e00}.scale[data-v-85562768]{position:absolute;left:10px;top:0;font:12px Arial;z-index:12;line-height:15px;color:#d0d0d0;pointer-events:none}",""])},a25f:function(t,e,n){var i=n("7726").navigator;t.exports=i&&i.userAgent||""},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,m){return[function(i,r){var o=t(this),a=null==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=m(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"==typeof e;f||(e=String(e));var g=h.global;if(g){var y=h.unicode;h.lastIndex=0}for(var w=[];;){var b=l(h,d);if(null===b)break;if(w.push(b),!g)break;""===String(b[0])&&(h.lastIndex=s(d,o(h.lastIndex),y))}for(var A="",x=0,k=0;k<w.length;k++){b=w[k];for(var S=String(b[0]),C=c(u(a(b.index),d.length),0),E=[],_=1;_<b.length;_++)E.push(p(b[_]));var I=b.groups;if(f){var T=[S].concat(E,C,d);void 0!==I&&T.push(I);var D=String(e.apply(void 0,T))}else D=v(S,d,C,E,I,e);C>=x&&(A+=d.slice(x,C)+D,x=C+S.length)}return A+d.slice(x)}];function v(t,e,i,o,a,s){var l=i+t.length,c=o.length,u=f;return void 0!==a&&(a=r(a),u=d),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=h(u/10);return 0===d?n:d<=c?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},aa8a:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-9bb76214]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.err-msg[data-v-9bb76214]{color:red;font:18px Arial;font-weight:bolder}",""])},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),h=c("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),m=0;m<p.length;m++){var v,g=p[m],y=f[g],w=a[g],b=w&&w.prototype;if(b&&(b[u]||s(b,u,d),b[h]||s(b,h,g),l[g]=d,y))for(v in i)b[v]||o(b,v,i[v],!0)}},af56:function(t,e,n){n("ec30")("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b188:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"#vat-tool[data-v-4bb55d15]{padding:0;width:100%;height:32px;background-color:#111;display:-webkit-box;display:-ms-flexbox;display:flex}svg[data-v-4bb55d15]:hover{cursor:pointer}svg>path[data-v-4bb55d15]:hover{fill:#bbb}svg.icon[data-v-4bb55d15]{margin-left:8px;margin-right:8px}svg.disabled[data-v-4bb55d15]{cursor:default;pointer-events:none}svg.disabled>path[data-v-4bb55d15]{fill:#666}svg.hide[data-v-4bb55d15]{display:none}table[data-v-4bb55d15]{width:100%;height:100%;border-spacing:0}.speed[data-v-4bb55d15]{color:#f0f0f0;line-height:32px;font:700 14px Microsoft YaHei;margin-left:10px;margin-right:30px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:40px}.btns[data-v-4bb55d15],.speed[data-v-4bb55d15]{display:-webkit-box;display:-ms-flexbox;display:flex}.btns[data-v-4bb55d15]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:368px}.btn-menu[data-v-4bb55d15]{position:absolute;left:0;top:-100px;z-index:1001;opacity:0;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear}.btn-menu-icon:hover~.btn-menu[data-v-4bb55d15],.btn-menu[data-v-4bb55d15]:hover{visibility:visible;opacity:.9;-webkit-transition-delay:0s;transition-delay:0s}.scale-btns[data-v-4bb55d15]{width:78px}.scale-btns[data-v-4bb55d15],.speed-menu[data-v-4bb55d15]{display:-webkit-box;display:-ms-flexbox;display:flex}.speed-menu[data-v-4bb55d15]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background:rgba(29,29,29,.67)}.speed-menu span[data-v-4bb55d15]{list-style:none;height:20px;width:60px;color:#f0f0f0;margin:0;padding:1px;font:14px Microsoft YaHei;cursor:pointer;border:1px solid #2a2a2a}.speed-menu span.active[data-v-4bb55d15]{color:#0f1322;background-color:#f0f0f0}.speed-menu span[data-v-4bb55d15]:hover{background-color:#00adee}",""])},b5f0:function(t,e,n){"use strict";var i=n("5661");n.n(i).a},b697:function(t,e,n){var i,r,o;r=[],i=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function e(t){var e=t.replace(/^v/,"").replace(/\+.*$/,""),n=function(t,e){return-1===t.indexOf(e)?t.length:t.indexOf(e)}(e,"-"),i=e.substring(0,n).split(".");return i.push(e.substring(n+1)),i}function n(t){return isNaN(Number(t))?t:Number(t)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function r(t,r){[t,r].forEach(i);for(var o=e(t),a=e(r),s=0;s<Math.max(o.length-1,a.length-1);s++){var l=parseInt(o[s]||0,10),c=parseInt(a[s]||0,10);if(l>c)return 1;if(c>l)return-1}var u=o[o.length-1],h=a[a.length-1];if(u&&h){var d=u.split(".").map(n),f=h.split(".").map(n);for(s=0;s<Math.max(d.length,f.length);s++){if(void 0===d[s]||"string"==typeof f[s]&&"number"==typeof d[s])return-1;if(void 0===f[s]||"string"==typeof d[s]&&"number"==typeof f[s])return 1;if(d[s]>f[s])return 1;if(f[s]>d[s])return-1}}else if(u||h)return u?-1:1;return 0}var o=[">",">=","=","<","<="],a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return r.validate=function(e){return"string"==typeof e&&t.test(e)},r.compare=function(t,e,n){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+s(t));if(-1===o.indexOf(t))throw new TypeError("Invalid operator, expected one of "+o.join("|"))}(n);var i=r(t,e);return a[n].indexOf(i)>-1},r},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},ba92:function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),o=n("9def");t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),s=r(t,a),l=r(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),h=1;for(l<s&&s<l+u&&(h=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},bcaa:function(t,e,n){var i=n("cb7c"),r=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c0e8:function(t,e){},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(o),e++},process:function(){for(var e=i;e<=n;e++)for(var r=t[e],o=0;o<r.length;o++)(0,r[o])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=i.getOption(t,"async",!0),o=i.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=r(),l=!1;function c(){for(l=!0;s.size();){var t=s;s=r(),t.process()}l=!1}function u(){a=function(t){return function(t){return setTimeout(t,0)}(t)}(c)}return{add:function(t,e){!l&&o&&n&&0===s.size()&&u(),s.add(t,e)},force:function(t){l||(void 0===t&&(t=n),a&&(function(t){clearTimeout(t)}(a),a=null),t?u():c())}}}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var a=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,o=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:o}}(),s="erd_scroll_detection_container";function l(t){!function(t,e,n){if(!t.getElementById(e)){var i=n+"_animation",r=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",o+="."+r+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",o+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");r.innerHTML=n,r.id=e,i(r)}(o+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",s)}function c(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function h(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function d(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function f(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(t,l,h){function p(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function m(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function v(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function g(){if(p("storeStyle invoked."),r(l)){var t=v();r(l).style=t}else p("Aborting because element has been uninstalled")}function y(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function w(){return 2*a.width+1}function b(){return 2*a.height+1}function A(t){return t+10+w()}function x(t){return t+10+b()}function k(t,e,n){var i=d(t),r=f(t),o=A(e),a=x(n),s=function(t){return 2*t+w()}(e),l=function(t){return 2*t+b()}(n);i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=s,r.scrollTop=l}function S(){var t=r(l).container;if(!t){(t=document.createElement("div")).className=s,t.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=t,function(t){t.className+=" "+s+"_animation_active"}(t),l.appendChild(t);var e=function(){r(l).onRendered&&r(l).onRendered()};u(t,"animationstart",e),r(l).onAnimationStart=e}return t}function C(){if(p("Injecting elements"),r(l)){!function(){var n=r(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){var r=n[i];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,l,n,"top"),i(e,l,n,"right"),i(e,l,n,"bottom"),i(e,l,n,"left")}}();var n=r(l).container;n||(n=S());var i=a.width,o=a.height,h=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),d=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(function(t,e,n,i){return["left: "+(t=t?t+"px":"0"),"top: "+(e=e?e+"px":"0"),"right: "+(i=i?i+"px":"0"),"bottom: "+(n=n?n+"px":"0")]}(-(1+i),-(1+o),-o,-i))),f=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),m=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=c(["position: absolute","left: 0","top: 0"]),g=c(["position: absolute","width: 200%","height: 200%"]),y=document.createElement("div"),w=document.createElement("div"),b=document.createElement("div"),A=document.createElement("div"),x=document.createElement("div"),k=document.createElement("div");y.dir="ltr",y.style.cssText=h,y.className=s,w.className=s,w.style.cssText=d,b.style.cssText=f,A.style.cssText=v,x.style.cssText=m,k.style.cssText=g,b.appendChild(A),x.appendChild(k),w.appendChild(b),w.appendChild(x),y.appendChild(w),n.appendChild(y),u(b,"scroll",C),u(x,"scroll",E),r(l).onExpandScroll=C,r(l).onShrinkScroll=E}else p("Aborting because element has been uninstalled");function C(){r(l).onExpand&&r(l).onExpand()}function E(){r(l).onShrink&&r(l).onShrink()}}function E(){function a(e,n,i){var r=function(t){return d(t).childNodes[0]}(e),o=A(n),a=x(i);r.style.setProperty("width",o+"px",t.important?"important":""),r.style.setProperty("height",a+"px",t.important?"important":"")}function s(i){var s=l.offsetWidth,u=l.offsetHeight,h=s!==r(l).lastWidth||u!==r(l).lastHeight;p("Storing current size",s,u),y(l,s,u),n.add(0,(function(){if(h)if(r(l))if(c()){if(t.debug){var n=l.offsetWidth,i=l.offsetHeight;n===s&&i===u||e.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,u)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?k(l,s,u):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),h&&i&&n.add(2,(function(){r(l)?c()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function u(){p("notifyListenersIfNeeded invoked");var t=r(l);return void 0===r(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(r(l).listeners,(function(t){t(l)})))}function h(){p("Scroll detected."),m(l)?p("Scroll event fired while unrendered. Ignoring..."):s(u)}if(p("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(p("startanimation triggered."),m(l))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var t=d(l),e=f(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(u))}},r(l).onExpand=h,r(l).onShrink=h;var v=r(l).style;a(l,v.width,v.height)}else p("Aborting because element has been uninstalled")}function _(){if(p("finalizeDomMutation invoked."),r(l)){var t=r(l).style;y(l,t.width,t.height),k(l,t.width,t.height)}else p("Aborting because element has been uninstalled")}function I(){h(l)}function T(){p("Installing..."),r(l).listeners=[],function(){var t=v();r(l).startSize={width:t.width,height:t.height},p("Element start size",r(l).startSize)}(),n.add(0,g),n.add(1,C),n.add(2,E),n.add(3,_),n.add(4,I)}h||(h=l,l=t,t=null),t=t||{},p("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(l)?(p("Element is detached"),S(),p("Waiting until element is attached..."),r(l).onRendered=function(){p("Element is now attached"),T()}):T()},addListener:function(t,e){if(!r(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)},uninstall:function(t){var e=r(t);e&&(e.onExpandScroll&&h(d(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(f(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:l}}},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},d3b2:function(t,e,n){"use strict";var i=n("5577");n.n(i).a},d3f4:function(t,e){t.exports=function(t){return"object"===s(t)?null!==t:"function"==typeof t}},d4c0:function(t,e,n){var i=n("0d58"),r=n("2621"),o=n("52a7");t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]}t.exports={initState:function(t){return t[i]={},r(t)},getState:r,cleanState:function(t){delete t[i]}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e6a8:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'ul[data-v-48879689]{padding:0;margin:0;padding-inline:0}.calendarPanel[data-v-48879689]{width:300px;height:240px;border:3px solid #1f2332;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendarPanel[data-v-48879689],.calendarPanel .calendar-header[data-v-48879689]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.calendarPanel .calendar-header[data-v-48879689]{line-height:30px;color:#d3dfe9;background-color:#1e1b1a;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.calendarPanel .calendar-header .currentDate[data-v-48879689]{margin:0 10px;font-size:16px;font-family:PingFangSC-Medium,serif}.calendarPanel .calendar-header .icon[data-v-48879689]{width:12px;height:12px;margin:0 5px;cursor:pointer;font-weight:lighter;color:#b0b0b0}.calendarPanel .calendar-header .icon[data-v-48879689]:hover{color:#dedede}.calendarPanel .calendar-main[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#161311;color:#d0dbd2}.calendarPanel .calendar-main .main-header[data-v-48879689]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:30px;color:#9ba2af}.calendarPanel .calendar-main .main-header li[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;list-style:none}.calendarPanel .calendar-main ul.main[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:5px;font-size:14px}.calendarPanel .calendar-main ul.main li[data-v-48879689]{position:relative;width:42px;line-height:25px;cursor:pointer;list-style:none}.calendarPanel .calendar-main ul.main .disabled[data-v-48879689]{color:#7b827f;cursor:default}.calendarPanel .calendar-main ul.main .currentDay[data-v-48879689]:before{content:"";position:absolute;display:inline-block;left:8px;width:24px;height:24px;border-radius:50%;border:1px solid #ffe100}',""])},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),o=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||null==(n=i(a)[o])?e:r(n)}},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),o=n("79e5"),a=n("5ca1"),l=n("0f88"),c=n("ed0b"),u=n("9b43"),h=n("f605"),d=n("4630"),f=n("32e9"),p=n("dcbc"),m=n("4588"),v=n("9def"),g=n("09fa"),y=n("77f1"),w=n("6a99"),b=n("69a8"),A=n("23c6"),x=n("d3f4"),k=n("4bf8"),S=n("33a4"),C=n("2aeb"),E=n("38fd"),_=n("9093").f,I=n("27ee"),T=n("ca5a"),D=n("2b4c"),R=n("0a49"),O=n("c366"),L=n("ebd6"),P=n("cadf"),M=n("84f2"),N=n("5cc5"),B=n("7a56"),W=n("36bd"),F=n("ba92"),U=n("86cc"),z=n("11e9"),j=U.f,Y=z.f,H=r.RangeError,V=r.TypeError,K=r.Uint8Array,G="ArrayBuffer",q="Shared"+G,Q="BYTES_PER_ELEMENT",J="prototype",X=Array[J],Z=c.ArrayBuffer,$=c.DataView,tt=R(0),et=R(2),nt=R(3),it=R(4),rt=R(5),ot=R(6),at=O(!0),st=O(!1),lt=P.values,ct=P.keys,ut=P.entries,ht=X.lastIndexOf,dt=X.reduce,ft=X.reduceRight,pt=X.join,mt=X.sort,vt=X.slice,gt=X.toString,yt=X.toLocaleString,wt=D("iterator"),bt=D("toStringTag"),At=T("typed_constructor"),xt=T("def_constructor"),kt=l.CONSTR,St=l.TYPED,Ct=l.VIEW,Et="Wrong length!",_t=R(1,(function(t,e){return Ot(L(t,t[xt]),e)})),It=o((function(){return 1===new K(new Uint16Array([1]).buffer)[0]})),Tt=!!K&&!!K[J].set&&o((function(){new K(1).set({})})),Dt=function(t,e){var n=m(t);if(n<0||n%e)throw H("Wrong offset!");return n},Rt=function(t){if(x(t)&&St in t)return t;throw V(t+" is not a typed array!")},Ot=function(t,e){if(!x(t)||!(At in t))throw V("It is not a typed array constructor!");return new t(e)},Lt=function(t,e){return Pt(L(t,t[xt]),e)},Pt=function(t,e){for(var n=0,i=e.length,r=Ot(t,i);i>n;)r[n]=e[n++];return r},Mt=function(t,e,n){j(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,o,a,s=k(t),l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,d=I(s);if(null!=d&&!S(d)){for(a=d.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(h&&l>2&&(c=u(c,arguments[2],2)),e=0,n=v(s.length),r=Ot(this,n);n>e;e++)r[e]=h?c(s[e],e):s[e];return r},Bt=function(){for(var t=0,e=arguments.length,n=Ot(this,e);e>t;)n[t]=arguments[t++];return n},Wt=!!K&&o((function(){yt.call(new K(1))})),Ft=function(){return yt.apply(Wt?vt.call(Rt(this)):Rt(this),arguments)},Ut={copyWithin:function(t,e){return F.call(Rt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Rt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return W.apply(Rt(this),arguments)},filter:function(t){return Lt(this,et(Rt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Rt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Rt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(Rt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Rt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(Rt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Rt(this),arguments)},lastIndexOf:function(t){return ht.apply(Rt(this),arguments)},map:function(t){return _t(Rt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return dt.apply(Rt(this),arguments)},reduceRight:function(t){return ft.apply(Rt(this),arguments)},reverse:function(){for(var t,e=this,n=Rt(e).length,i=Math.floor(n/2),r=0;r<i;)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return nt(Rt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return mt.call(Rt(this),t)},subarray:function(t,e){var n=Rt(this),i=n.length,r=y(t,i);return new(L(n,n[xt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,v((void 0===e?i:y(e,i))-r))}},zt=function(t,e){return Lt(this,vt.call(Rt(this),t,e))},jt=function(t){Rt(this);var e=Dt(arguments[1],1),n=this.length,i=k(t),r=v(i.length),o=0;if(r+e>n)throw H(Et);for(;o<r;)this[e+o]=i[o++]},Yt={entries:function(){return ut.call(Rt(this))},keys:function(){return ct.call(Rt(this))},values:function(){return lt.call(Rt(this))}},Ht=function(t,e){return x(t)&&t[St]&&"symbol"!=s(e)&&e in t&&String(+e)==String(e)},Vt=function(t,e){return Ht(t,e=w(e,!0))?d(2,t[e]):Y(t,e)},Kt=function(t,e,n){return!(Ht(t,e=w(e,!0))&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?j(t,e,n):(t[e]=n.value,t)};kt||(z.f=Vt,U.f=Kt),a(a.S+a.F*!kt,"Object",{getOwnPropertyDescriptor:Vt,defineProperty:Kt}),o((function(){gt.call({})}))&&(gt=yt=function(){return pt.call(this)});var Gt=p({},Ut);p(Gt,Yt),f(Gt,wt,Yt.values),p(Gt,{slice:zt,set:jt,constructor:function(){},toString:gt,toLocaleString:Ft}),Mt(Gt,"buffer","b"),Mt(Gt,"byteOffset","o"),Mt(Gt,"byteLength","l"),Mt(Gt,"length","e"),j(Gt,bt,{get:function(){return this[St]}}),t.exports=function(t,e,n,s){var c=t+((s=!!s)?"Clamped":"")+"Array",u="get"+t,d="set"+t,p=r[c],m=p||{},y=p&&E(p),w=!p||!l.ABV,b={},k=p&&p[J],S=function(t,n){var i=t._d;return i.v[u](n*e+i.o,It)},I=function(t,n,i){var r=t._d;s&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](n*e+r.o,i,It)},T=function(t,e){j(t,e,{get:function(){return S(this,e)},set:function(t){return I(this,e,t)},enumerable:!0})};w?(p=n((function(t,n,i,r){h(t,p,c,"_d");var o,a,s,l,u=0,d=0;if(x(n)){if(!(n instanceof Z||(l=A(n))==G||l==q))return St in n?Pt(p,n):Nt.call(p,n);o=n,d=Dt(i,e);var m=n.byteLength;if(void 0===r){if(m%e)throw H(Et);if((a=m-d)<0)throw H(Et)}else if((a=v(r)*e)+d>m)throw H(Et);s=a/e}else s=g(n),o=new Z(a=s*e);for(f(t,"_d",{b:o,o:d,l:a,e:s,v:new $(o)});u<s;)T(t,u++)})),k=p[J]=C(Gt),f(k,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&N((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,i,r){var o;return h(t,p,c),x(n)?n instanceof Z||(o=A(n))==G||o==q?void 0!==r?new m(n,Dt(i,e),r):void 0!==i?new m(n,Dt(i,e)):new m(n):St in n?Pt(p,n):Nt.call(p,n):new m(g(n))})),tt(y!==Function.prototype?_(m).concat(_(y)):_(m),(function(t){t in p||f(p,t,m[t])})),p[J]=k,i||(k.constructor=p));var D=k[wt],R=!!D&&("values"==D.name||null==D.name),O=Yt.values;f(p,At,!0),f(k,St,c),f(k,Ct,!0),f(k,xt,p),(s?new p(1)[bt]==c:bt in k)||j(k,bt,{get:function(){return c}}),b[c]=p,a(a.G+a.W+a.F*(p!=m),b),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*o((function(){m.of.call(p,1)})),c,{from:Nt,of:Bt}),Q in k||f(k,Q,e),a(a.P,c,Ut),B(c),a(a.P+a.F*Tt,c,{set:jt}),a(a.P+a.F*!R,c,Yt),i||k.toString==gt||(k.toString=gt),a(a.P+a.F*o((function(){new p(1).slice()})),c,{slice:zt}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){k.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),M[c]=R?D:O,i||R||f(k,wt,O)}}else t.exports=function(){}},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),o=n("2d00"),a=n("0f88"),s=n("32e9"),l=n("dcbc"),c=n("79e5"),u=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),p=n("9093").f,m=n("86cc").f,v=n("36bd"),g=n("7f20"),y="ArrayBuffer",w="DataView",b="prototype",A="Wrong index!",x=i[y],k=i[w],S=i.Math,C=i.RangeError,E=i.Infinity,_=x,I=S.abs,T=S.pow,D=S.floor,R=S.log,O=S.LN2,L="buffer",P="byteLength",M="byteOffset",N=r?"_b":L,B=r?"_l":P,W=r?"_o":M;function F(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?T(2,-24)-T(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=I(t))!=t||t===E?(r=t!=t?1:0,i=l):(i=D(R(t)/O),t*(o=T(2,-i))<1&&(i--,o*=2),(t+=i+c>=1?u/o:u*T(2,1-c))*o>=2&&(i++,o/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(t*o-1)*T(2,e),i+=c):(r=t*T(2,c-1)*T(2,e),i=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;a[h++]=255&i,i/=256,s-=8);return a[--h]|=128*d,a}function U(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return i?NaN:c?-E:E;i+=T(2,e),u-=a}return(c?-1:1)*i*T(2,u-e)}function z(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function j(t){return[255&t]}function Y(t){return[255&t,t>>8&255]}function H(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return F(t,52,8)}function K(t){return F(t,23,4)}function G(t,e,n){m(t[b],e,{get:function(){return this[n]}})}function q(t,e,n,i){var r=f(+n);if(r+e>t[B])throw C(A);var o=t[N]._b,a=r+t[W],s=o.slice(a,a+e);return i?s:s.reverse()}function Q(t,e,n,i,r,o){var a=f(+n);if(a+e>t[B])throw C(A);for(var s=t[N]._b,l=a+t[W],c=i(+r),u=0;u<e;u++)s[l+u]=c[o?u:e-u-1]}if(a.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),x.name!=y}))){for(var J,X=(x=function(t){return u(this,x),new _(f(t))})[b]=_[b],Z=p(_),$=0;Z.length>$;)(J=Z[$++])in x||s(x,J,_[J]);o||(X.constructor=x)}var tt=new k(new x(2)),et=k[b].setInt8;tt.setInt8(0,2147483648),tt.setInt8(1,2147483649),!tt.getInt8(0)&&tt.getInt8(1)||l(k[b],{setInt8:function(t,e){et.call(this,t,e<<24>>24)},setUint8:function(t,e){et.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,y);var e=f(t);this._b=v.call(new Array(e),0),this[B]=e},k=function(t,e,n){u(this,k,w),u(t,x,w);var i=t[B],r=h(e);if(r<0||r>i)throw C("Wrong offset!");if(r+(n=void 0===n?i-r:d(n))>i)throw C("Wrong length!");this[N]=t,this[W]=r,this[B]=n},r&&(G(x,P,"_l"),G(k,L,"_b"),G(k,P,"_l"),G(k,M,"_o")),l(k[b],{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t){var e=q(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=q(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return z(q(this,4,t,arguments[1]))},getUint32:function(t){return z(q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return U(q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return U(q(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){Q(this,1,t,j,e)},setUint8:function(t,e){Q(this,1,t,j,e)},setInt16:function(t,e){Q(this,2,t,Y,e,arguments[2])},setUint16:function(t,e){Q(this,2,t,Y,e,arguments[2])},setInt32:function(t,e){Q(this,4,t,H,e,arguments[2])},setUint32:function(t,e){Q(this,4,t,H,e,arguments[2])},setFloat32:function(t,e){Q(this,4,t,K,e,arguments[2])},setFloat64:function(t,e){Q(this,8,t,V,e,arguments[2])}});g(x,y),g(k,w),s(k[b],a.VIEW,!0),e[y]=x,e[w]=k},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),o=n("49ad"),a=n("2cef"),s=n("5058"),l=n("abb4"),c=n("18e9"),u=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function p(t){return Array.isArray(t)||void 0!==t.length}function m(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function v(t){return t&&1===t.nodeType}function g(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:h});e=y}var w=t.reporter;w||(w=l(!1===w));var b=g(t,"batchProcessor",u({reporter:w})),A={};A.callOnAdd=!!g(t,"callOnAdd",!0),A.debug=!!g(t,"debug",!1);var x,k=o(e),S=r({stateHandler:h}),C=g(t,"strategy","object"),E=g(t,"important",!1),_={reporter:w,batchProcessor:b,stateHandler:h,idHandler:e,important:E};if("scroll"===C&&(c.isLegacyOpera()?(w.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):c.isIE(9)&&(w.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)x=f(_);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);x=d(_)}var I={};return{listenTo:function(t,n,r){function o(t){var e=k.get(t);i(e,(function(e){e(t)}))}function a(t,e,n){k.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(v(n))n=[n];else{if(!p(n))return w.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,l=g(t,"callOnAdd",A.callOnAdd),c=g(t,"onReady",(function(){})),u=g(t,"debug",A.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(u&&w.log("Attaching listener to element",d,t),!S.isDetectable(t))return u&&w.log(d,"Not detectable."),S.isBusy(t)?(u&&w.log(d,"System busy making it detectable"),a(l,t,r),I[d]=I[d]||[],void I[d].push((function(){++s===n.length&&c()}))):(u&&w.log(d,"Making detectable..."),S.markBusy(t,!0),x.makeDetectable({debug:u,important:E},t,(function(t){if(u&&w.log(d,"onElementDetectable"),h.getState(t)){S.markAsDetectable(t),S.markBusy(t,!1),x.addListener(t,o),a(l,t,r);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||o(t)}I[d]&&i(I[d],(function(t){t()}))}else u&&w.log(d,"Element uninstalled before being detectable.");delete I[d],++s===n.length&&c()})));u&&w.log(d,"Already detecable, adding listener."),a(l,t,r),s++})),s===n.length&&c()},removeListener:k.removeListener,removeAllListeners:k.removeAllListeners,uninstall:function(t){if(!t)return w.error("At least one element is required.");if(v(t))t=[t];else{if(!p(t))return w.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=m(t)}i(t,(function(t){k.removeAllListeners(t),x.uninstall(t),h.cleanState(t)}))},initDocument:function(t){x.initDocument&&x.initDocument(t)}}}},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),r=n("d3f4"),o=n("31f4"),a=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=a.call(arguments,1),s=function i(){var r=n.concat(a.call(arguments));return this instanceof i?l(e,r.length,r):o(e,r,t)};return r(e.prototype)&&(s.prototype=e.prototype),s}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function d(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function p(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}n.r(e),n.d(e,"LivePlayer",(function(){return le})),n.d(e,"RenderHandler",(function(){return fn.RenderHandler})),n.d(e,"VodPlayer",(function(){return an})),n.d(e,"VodFilePlayer",(function(){return dn})),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("7f7f"),n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("2397");var m=n("8bbf"),v=n.n(m);
|
||
/**
|
||
* vue-class-component v7.2.5
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/function g(t){return(g="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function A(t,e){x(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){x(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){x(t,e,n)}))}function x(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var k={__proto__:[]}instanceof Array;function S(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}}function C(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}var E=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(E.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){return y({},t,i.value)}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return C(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var r=Object.getPrototypeOf(t.prototype),o=r instanceof v.a?r.constructor:v.a,a=o.extend(e);return T(a,t,o),b()&&A(a,t),a}var I={prototype:!0,arguments:!0,callee:!0,caller:!0};function T(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if(!I[i]){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(e,i);if(!k){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=g(t);return null==t||"object"!==e&&"function"!==e}(o.value)&&a&&a.value===o.value)return}Object.defineProperty(t,i,o)}}}))}function D(t){return"function"==typeof t?_(t):function(e){return _(e,t)}}D.registerHooks=function(t){E.push.apply(E,w(t))};var R=D,O="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function L(t){return void 0===t&&(t={}),function(e,n){(function(t,e,n){if(O&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}})(t,e,n),S((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function P(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,o=void 0!==r&&r;return S((function(e,n){"object"!==s(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==s(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:o})}))}function M(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("6c7b");var B=function(){function t(){o(this,t)}return l(t,null,[{key:"getSVG",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_SIZE;if(!t.ALL_SVGS[e])return document.createElement("svg");var r=document.createElement("svg");r.innerHTML=t.ALL_SVGS[e],null!==n&&n.length>0&&t.setColor(r,n);var o=r.querySelector("svg");return null!==o&&(o.setAttribute("width","".concat(i)),o.setAttribute("height","".concat(i))),r}},{key:"setColor",value:function(t,e){if(e&&e.length>0){var n,i=M(t.getElementsByTagName("path"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.getAttribute("fill");null!==o&&o.length>0&&r.setAttribute("fill",e)}}catch(t){i.e(t)}finally{i.f()}}}}]),t}();B.SNAPSHOT='<svg t="1553688811386" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3995" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M901.12 227.328h-96.256c-12.288 0-23.552-7.168-28.672-19.456l-20.48-50.176c-11.264-27.648-36.864-45.056-66.56-45.056H333.824c-29.696 0-55.296 17.408-66.56 45.056l-20.48 50.176c-5.12 11.264-16.384 19.456-28.672 19.456H122.88c-39.936 0-71.68 31.744-71.68 71.68V839.68c0 39.936 31.744 71.68 71.68 71.68h778.24c39.936 0 71.68-31.744 71.68-71.68V299.008c0-38.912-31.744-71.68-71.68-71.68zM199.68 430.08C174.08 430.08 153.6 409.6 153.6 384s20.48-46.08 46.08-46.08 46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08zM512 788.48c-123.904 0-225.28-101.376-225.28-225.28s101.376-225.28 225.28-225.28 225.28 101.376 225.28 225.28-101.376 225.28-225.28 225.28z m184.32-225.28c0 101.376-82.944 184.32-184.32 184.32s-184.32-82.944-184.32-184.32 82.944-184.32 184.32-184.32 184.32 82.944 184.32 184.32z" p-id="3996" fill="#1296db"></path></svg>',B.MAXIMIZE='<svg t="1553741182915" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6244" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M874.24 604.49792c22.29248-2.14016 42.97728-11.73504 59.2384-27.56608l0 282.50112c0 48.85504-39.76192 88.59648-88.6272 88.59648l-634.9824 0c-48.87552 0-88.63744-39.74144-88.63744-88.59648L121.23136 225.1264c0-48.85504 39.76192-88.60672 88.63744-88.60672l283.26912 0c-15.24736 15.64672-25.38496 36.29056-27.60704 59.22816L209.85856 195.74784c-16.20992 0-29.39904 13.17888-29.39904 29.37856l0 634.29632c0 16.18944 13.18912 29.36832 29.39904 29.36832l634.9824 0c16.20992 0 29.39904-13.17888 29.39904-29.36832L874.24 604.49792zM890.15296 130.44736 589.2608 130.44736c-24.53504 0-44.42112 19.88608-44.42112 44.43136 0 24.53504 19.88608 44.42112 44.42112 44.42112l191.21152 0c-1.8432 1.34144-3.6864 2.70336-5.34528 4.37248L461.6704 537.10848l0-193.6384c0-24.53504-19.88608-44.42112-44.42112-44.42112-12.26752 0-23.37792 4.95616-31.41632 13.0048-8.0384 8.05888-13.01504 19.13856-13.01504 31.41632l0 300.9024c0 24.5248 19.88608 44.42112 44.42112 44.42112L718.1312 688.7936c24.53504 0 44.42112-19.89632 44.42112-44.4416 0-24.5248-19.88608-44.42112-44.42112-44.42112L526.94016 599.93088c1.8432-1.34144 3.67616-2.70336 5.33504-4.36224l313.43616-313.4464 0 193.64864c0 24.53504 19.88608 44.42112 44.42112 44.42112 12.26752 0 23.37792-4.95616 31.41632-13.0048 8.0384-8.05888 13.01504-19.1488 13.01504-31.41632L934.56384 174.86848C934.57408 150.34368 914.67776 130.44736 890.15296 130.44736z" p-id="6245" fill="#1296db"></path></svg>',B.ROI_RECT='<svg t="1553765768064" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31493" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M768 910.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444444s11.377778-28.444444 28.444444-28.444445H910.222222v-85.333333c0-17.066667 11.377778-28.444444 28.444445-28.444444s28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444h-170.666667zM910.222222 483.555556c0-17.066667 11.377778-28.444444 28.444445-28.444445s28.444444 11.377778 28.444444 28.444445v113.777777c0 17.066667-11.377778 28.444444-28.444444 28.444445s-28.444444-11.377778-28.444445-28.444445v-113.777777zM910.222222 227.555556h-142.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444445s11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444s-28.444444-11.377778-28.444445-28.444444V227.555556zM398.222222 881.777778c0-17.066667 11.377778-28.444444 28.444445-28.444445h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444445s-11.377778 28.444444-28.444445 28.444444h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444444z m0-682.666667c0-17.066667 11.377778-28.444444 28.444445-28.444444h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444444s-11.377778 28.444444-28.444445 28.444445h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444445z m-341.333333 568.888889c0-17.066667 11.377778-28.444444 28.444444-28.444444s28.444444 11.377778 28.444445 28.444444V853.333333h142.222222c17.066667 0 28.444444 11.377778 28.444444 28.444445s-11.377778 28.444444-28.444444 28.444444h-170.666667c-17.066667 0-28.444444-11.377778-28.444444-28.444444v-113.777778z m56.888889-455.111111c0 17.066667-11.377778 28.444444-28.444445 28.444444S56.888889 329.955556 56.888889 312.888889v-113.777778c0-17.066667 11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444s-11.377778 28.444444-28.444444 28.444445H113.777778v85.333333z m0 284.444444c0 17.066667-11.377778 28.444444-28.444445 28.444445s-28.444444-11.377778-28.444444-28.444445v-113.777777c0-17.066667 11.377778-28.444444 28.444444-28.444445s28.444444 11.377778 28.444445 28.444445v113.777777z" p-id="31494" fill="#1296db"></path></svg>',B.ROI_POLYGON='<svg t="1553766890352" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32066" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M85.333333 85.333333 85.333333 341.333333 182.613333 341.333333 237.653333 682.666667 170.666667 682.666667 170.666667 938.666667 426.666667 938.666667 426.666667 855.893333 640 855.466667 640 938.666667 896 938.666667 896 682.666667 817.92 682.666667 853.333333 384 938.666667 384 938.666667 128 682.666667 128 682.666667 278.613333 631.466667 341.333333 409.173333 341.333333 341.333333 248.32 341.333333 85.333333M170.666667 170.666667 256 170.666667 256 256 170.666667 256M768 213.333333 853.333333 213.333333 853.333333 298.666667 768 298.666667M269.226667 341.333333 303.36 341.333333 384 451.84 384 597.333333 640 597.333333 640 465.493333 706.986667 384 768 384 732.16 682.666667 640 682.666667 640 770.56 426.666667 770.56 426.666667 682.666667 324.266667 682.666667M469.333333 426.666667 554.666667 426.666667 554.666667 512 469.333333 512M256 768 341.333333 768 341.333333 853.333333 256 853.333333M725.333333 768 810.666667 768 810.666667 853.333333 725.333333 853.333333" p-id="32067" fill="#1296db"></path></svg>',B.SCALE_VIEW='<svg t="1553753941568" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11856" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M722.8 774.7c9.4 9.4 21.7 14.1 34 14.1s24.6-4.7 34-14.1c18.8-18.8 18.8-49.2 0-68L642.9 558.9c27.3-45 43.1-97.8 43.1-154.2 0-164.2-133.6-297.8-297.8-297.8S90.4 240.5 90.4 404.7 224 702.5 388.2 702.5c73.1 0 140.1-26.5 192-70.4l142.6 142.6zM388.2 606.4c-111.2 0-201.7-90.5-201.7-201.7C186.5 293.5 277 203 388.2 203c111.2 0 201.7 90.5 201.7 201.7 0 111.2-90.5 201.7-201.7 201.7z" p-id="11857" fill="#1296db"></path><path d="M490.8 345.9H447v-43.8c0-32.5-26.3-58.8-58.8-58.8s-58.8 26.3-58.8 58.8v43.8h-43.8c-32.5 0-58.8 26.3-58.8 58.8s26.3 58.8 58.8 58.8h43.8v43.8c0 32.5 26.3 58.8 58.8 58.8s58.8-26.3 58.8-58.8v-43.8h43.8c32.5 0 58.8-26.3 58.8-58.8 0-32.4-26.3-58.8-58.8-58.8zM791.5 133.6H689.8v96.2h101.6c27.6 0 50 22.4 50 50V356h96.2v-76.3c0-80.5-65.5-146.1-146.1-146.1zM841.5 773.3c0 27.6-22.4 50-50 50H689.8v96.2h101.6c80.6 0 146.2-65.6 146.2-146.2V697h-96.2v76.3zM197.2 773.3V697H101v76.3c0 80.6 65.6 146.2 146.2 146.2h101.6v-96.2H247.2c-27.6 0-50-22.4-50-50z" p-id="11858" fill="#1296db"></path></svg>',B.STOP='<svg t="1553752022557" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8879" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M511.968 73.152q119.424 0 220.288 58.848t159.712 159.712 58.848 220.288-58.848 220.288-159.712 159.712-220.288 58.848-220.288-58.848-159.712-159.712-58.848-220.288 58.848-220.288 159.712-159.712 220.288-58.848zM511.968 822.848q84.576 0 156-41.728t113.152-113.152 41.728-156-41.728-156-113.152-113.152-156-41.728-156 41.728-113.152 113.152-41.728 156 41.728 156 113.152 113.152 156 41.728zM347.392 694.848q-8 0-13.152-5.152t-5.152-13.152l0-329.152q0-8 5.152-13.152t13.152-5.152l329.152 0q8 0 13.152 5.152t5.152 13.152l0 329.152q0 8-5.152 13.152t-13.152 5.152l-329.152 0z" p-id="8880" fill="#1296db"></path></svg>',B.STATE_GREEN='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#1bb90a" p-id="40347"></path></svg>',B.STATE_RED='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#d81e06" p-id="40347"></path></svg>',B.STATE_YELLOW='<svg t="1553826937405" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40561" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#dfc801" p-id="40562"></path></svg>',B.VOLUME_ON='<svg t="1555494805635" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7740" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M779.946667 357.12a42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 0 202.24A42.666667 42.666667 0 0 0 746.666667 682.666667a42.666667 42.666667 0 0 0 33.28-15.786667 256 256 0 0 0 0-309.76z" p-id="7741" fill="#1296db"></path><path d="M837.973333 223.146667a42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512a290.133333 290.133333 0 0 1-112.64 223.146667 42.666667 42.666667 0 0 0-5.546667 60.16A42.666667 42.666667 0 0 0 810.666667 810.666667a42.666667 42.666667 0 0 0 27.306666-9.813334A373.333333 373.333333 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333zM617.386667 133.12a42.666667 42.666667 0 0 0-42.666667 0L298.666667 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-22.613333-37.546667z" p-id="7742" fill="#1296db"></path></svg>',B.VOLUME_OFF='<svg t="1555494833118" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1596" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M721.493333 600.746667l61.44 61.44a256 256 0 0 0-2.986666-305.066667 42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 8.106666 189.866667z" p-id="1597" fill="#1296db"></path><path d="M896 512a277.76 277.76 0 0 1-75.946667 187.306667l60.586667 60.586666A363.946667 363.946667 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333 42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512zM640 519.253333V170.666667a42.666667 42.666667 0 0 0-66.986667-35.413334L384 264.533333zM202.24 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667v-92.586666zM200.96 140.373333a42.666667 42.666667 0 0 0-60.586667 60.586667l682.666667 682.666667a42.666667 42.666667 0 0 0 60.586667 0 42.666667 42.666667 0 0 0 0-60.586667z" p-id="1598" fill="#1296db"></path></svg>',B.RECORD='<svg t="1561699691315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1847" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M704 434.496l131.7952-131.7888a38.4 38.4 0 0 1 65.5488 27.1552v388.48a38.4 38.4 0 0 1-65.5488 27.1488L704 613.7024V729.6a38.4 38.4 0 0 1-38.4 38.4H166.4a38.4 38.4 0 0 1-38.4-38.4V345.6a38.4 38.4 0 0 1 38.4-38.4h499.2a38.4 38.4 0 0 1 38.4 38.4v88.896zM281.6 524.8c42.4128 0 76.8-34.3872 76.8-76.8s-34.3872-76.8-76.8-76.8-76.8 34.3872-76.8 76.8 34.3872 76.8 76.8 76.8z" fill="#d81e06" p-id="1848"></path></svg>',B.TALK_ON='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M512 683.52c130.56 0 235.52-102.4 235.52-232.96V256c0-130.56-104.96-232.96-235.52-232.96s-235.52 102.4-235.52 232.96v194.56c0 130.56 102.4 232.96 235.52 232.96z m368.64-281.6c0-23.04-20.48-43.52-46.08-43.52s-43.52 20.48-43.52 43.52c0 5.12 0 10.24 2.56 12.8v33.28c0 151.04-125.44 276.48-281.6 276.48-153.6 0-281.6-125.44-281.6-276.48V409.6c0-2.56 2.56-5.12 2.56-10.24 0-23.04-20.48-43.52-43.52-43.52-25.6 0-43.52 20.48-43.52 43.52v64c0 186.88 140.8 335.36 320 360.96v87.04h-122.88c-25.6 0-46.08 20.48-46.08 46.08s20.48 43.52 46.08 43.52h332.8c28.16 0 43.52-17.92 43.52-43.52 0-23.04-17.92-46.08-43.52-46.08h-122.88v-87.04c184.32-20.48 327.68-174.08 327.68-360.96v-61.44z m0 0" /></svg>',B.TALK_OFF='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M840.533333 34.133333c17.066667 17.066667 17.066667 42.666667 0 59.733334l-682.666666 682.666666c-8.533333 8.533333-19.2 12.8-29.866667 12.8s-21.333333-4.266667-29.866667-12.8c-17.066667-17.066667-17.066667-42.666667 0-59.733333L196.266667 618.666667C179.2 578.133333 170.666667 535.466667 170.666667 490.666667c0-23.466667 19.2-42.666667 42.666666-42.666667s42.666667 19.2 42.666667 42.666667c0 21.333333 2.133333 40.533333 6.4 59.733333l36.266667-36.266667c0-8.533333-2.133333-14.933333-2.133334-23.466666V234.666667c0-117.333333 96-213.333333 213.333334-213.333334 57.6 0 110.933333 21.333333 151.466666 61.866667 10.666667 10.666667 21.333333 23.466667 29.866667 38.4l87.466667-87.466667c19.2-17.066667 44.8-17.066667 61.866666 0zM384 430.933333L629.333333 185.6c-6.4-14.933333-14.933333-27.733333-27.733333-40.533333C578.133333 119.466667 546.133333 106.666667 512 106.666667c-70.4 0-128 57.6-128 128v196.266666zM512 704c117.333333 0 213.333333-96 213.333333-213.333333v-128c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667v128c0 70.4-57.6 128-128 128-25.6 0-51.2-8.533333-72.533333-23.466667-19.2-12.8-46.933333-8.533333-59.733334 10.666667-12.8 19.2-8.533333 46.933333 10.666667 59.733333C426.666667 691.2 467.2 704 512 704" /><path fill="#1296db" d="M853.333333 490.666667c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667c0 140.8-115.2 256-256 256-57.6 0-115.2-21.333333-162.133333-57.6-19.2-14.933333-44.8-12.8-59.733334 6.4-14.933333 19.2-12.8 44.8 6.4 59.733333 49.066667 40.533333 108.8 66.133333 172.8 74.666667V896h-128c-23.466667 0-42.666667 19.2-42.666666 42.666667s19.2 42.666667 42.666666 42.666666h341.333334c23.466667 0 42.666667-19.2 42.666666-42.666666s-19.2-42.666667-42.666666-42.666667h-128v-66.133333c168.533333-21.333333 298.666667-166.4 298.666666-339.2" /></svg>',B.PTZ_CTL='<svg t="1591624538177" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4797" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M1013.474793 529.83766c-15.388062 9.085203-266.877827 154.732357-285.105015 164.669297a20.384923 20.384923 0 0 1-30.832906-17.659363v-329.338594a20.498488 20.498488 0 0 1 31.457514-17.772928l284.480407 164.669297a20.498488 20.498488 0 0 1 0 35.432291zM676.697689 326.499469H347.018399a20.384923 20.384923 0 0 1-17.659363-30.832907c10.107288-18.227188 155.811225-269.603387 164.669298-284.991449a20.498488 20.498488 0 0 1 35.716202 0c12.378589 21.350226 157.28757 271.817906 164.669298 284.366842a20.498488 20.498488 0 0 1-17.716145 31.400731z m-381.010685 368.177836c-18.227188-10.107288-269.603387-155.754442-284.991449-164.669298a20.498488 20.498488 0 0 1 0-35.716203l284.366841-164.669297a20.498488 20.498488 0 0 1 31.457514 17.772928v329.338594a20.384923 20.384923 0 0 1-30.832906 17.772928z m51.104265 2.839125h329.679289a20.498488 20.498488 0 0 1 17.772928 31.457514c-7.21138 12.548936-152.120361 263.073398-164.669297 284.480407a20.498488 20.498488 0 0 1-35.716203 0c-9.085203-15.388062-154.789139-266.877827-164.669297-285.105014a20.384923 20.384923 0 0 1 17.82971-30.889689z" p-id="4798" fill="#1296db"></path></svg>',B.ALL_SVGS={snapshot:B.SNAPSHOT,maximize:B.MAXIMIZE,"roi-rect":B.ROI_RECT,"roi-polygon":B.ROI_POLYGON,"scale-view":B.SCALE_VIEW,stop:B.STOP,"state-green":B.STATE_GREEN,"state-red":B.STATE_RED,"state-yellow":B.STATE_YELLOW,"volume-on":B.VOLUME_ON,"volume-off":B.VOLUME_OFF,"talk-on":B.TALK_ON,"talk-off":B.TALK_OFF,record:B.RECORD,ptz:B.PTZ_CTL},B.DEFAULT_SIZE=28;var W=function t(){o(this,t)};W.STATE=1,W.NAME=2,W.SPEED=4,W.ALL=65535;var F=function(){function t(e,n){o(this,t),this.box=e,this.stateSpan=null,this.nameSpan=null,this.speedSpan=null,this.isShow=!0,this.titleBar=document.createElement("div"),this.titleBar.classList.add("vat-title"),this.stateSpan=document.createElement("span"),this.stateSpan.classList.add("state"),this.titleBar.appendChild(this.stateSpan),this.nameSpan=document.createElement("span"),this.nameSpan.classList.add("vat-name"),this.nameSpan.innerText="未知设备",this.titleBar.appendChild(this.nameSpan),this.speedSpan=document.createElement("span"),this.speedSpan.classList.add("vat-speed"),this.speedSpan.innerText="20.5KB/s",this.titleBar.appendChild(this.speedSpan),this.box.appendChild(this.titleBar),this.hasTitleBar=0!==n,this.autoShow(),0==(n&W.STATE)&&(this.stateSpan.style.display="none"),0==(n&W.NAME)&&(this.nameSpan.style.display="none"),0==(n&W.SPEED)&&(this.speedSpan.style.display="none")}return l(t,[{key:"adjustWidth",value:function(t){this.nameSpan&&(this.nameSpan.style.maxWidth="".concat(t-120,"px"))}},{key:"show",value:function(){this.isShow=!0,this.titleBar.style.display="block"}},{key:"hide",value:function(){this.isShow=!1,this.titleBar.style.display="none"}},{key:"height",value:function(){return this.isShow?this.titleBar.offsetHeight:0}},{key:"autoShow",value:function(){this.hasTitleBar?this.show():this.hide()}},{key:"clear",value:function(){this.speedSpan&&(this.speedSpan.innerText=""),this.nameSpan&&(this.nameSpan.innerText=""),this.stateSpan&&(this.stateSpan.innerHTML=""),this.titleBar.style.display="none"}},{key:"setState",value:function(t){this.stateSpan&&(this.stateSpan.innerHTML="","red"===t?this.stateSpan.appendChild(B.getSVG("state-red",null,16)):"green"===t?this.stateSpan.appendChild(B.getSVG("state-green",null,16)):"yellow"===t&&this.stateSpan.appendChild(B.getSVG("state-yellow",null,16)))}},{key:"setName",value:function(t){this.nameSpan&&(this.nameSpan.innerText=t,this.nameSpan.title=t)}},{key:"setSpeed",value:function(t){var e;e=t<1024?"".concat(t," B/s"):t<1048576?"".concat(Math.round(t/10.24)/100," KB/s"):"".concat(Math.round(t/10485.76)/100," MB/s"),this.speedSpan&&(this.speedSpan.innerText=e)}}]),t}();function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function z(t){return function(t){if(Array.isArray(t))return U(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return U(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(t,e):void 0}}(t)||function(){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 j(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}F.STATE_CLOSE="red",F.STATE_WAITTING="yellow",F.STATE_RUNNING="green";var H=function(){function t(e,n,i){var r=this;o(this,t),this.onEscape=null,this.onSave=null,this._width=0,this._height=0,this._left=0,this._top=0,this.box=e,this.drawType=t.DRAW_NONE,this.oldDiagrams=[],this.diagrams=[],this.drawingDiagram=null,this._isDrawing=!1,this.maxRoi=n,this.storeCanvas=document.createElement("canvas"),this.storeCanvas.classList.add("vat-roi-view"),this.box.appendChild(this.storeCanvas),this.canvas=document.createElement("canvas"),this.canvas.classList.add("vat-roi-draw"),this.canvas.tabIndex=0,this.box.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.menu=null,this.isShowMenu=i,this.lineColor="red";var a=this;this.canvas.onmousedown=function(e){var n=r.transPoint(e);if(2!==e.buttons)if(1!==e.buttons);else if(a.drawType===t.DRAW_RECT){if(a._isDrawing)return void(a._isDrawing=!1);a.drawingDiagram={points:[{x:n.x,y:n.y},{x:n.x,y:n.y}],type:a.drawType,width:r._width,height:r._height,color:r.lineColor},a._isDrawing=!0}else a.drawType===t.DRAW_POLYGON&&(null===a.drawingDiagram?a.drawingDiagram={points:[{x:n.x,y:n.y}],type:a.drawType,width:r._width,height:r._height,color:r.lineColor}:a.drawingDiagram.points.push({x:n.x,y:n.y}),a._isDrawing=!0)},this.canvas.onmouseup=function(e){if(a._isDrawing){var n=r.transPoint(e);if(a.drawType===t.DRAW_RECT)a.drawingDiagram&&(a.drawingDiagram.points[1].x=n.x,a.drawingDiagram.points[1].y=n.y),a._isDrawing=!1;else if(a.drawType===t.DRAW_POLYGON&&null!==a.drawingDiagram&&null!==a.ctx){a.ctx.beginPath();var i=a.drawingDiagram.points[a.drawingDiagram.points.length-1];a.ctx.moveTo(i.x,i.y),a.ctx.lineTo(n.x,n.y),a.ctx.stroke(),a.ctx.closePath()}}},this.canvas.onmousemove=function(e){if(a._isDrawing&&null!==a.drawingDiagram&&null!==a.ctx){var n=r.transPoint(e);if(a.ctx.strokeStyle=r.lineColor,a.ctx.lineWidth=2,a.drawType===t.DRAW_RECT){a.ctx.clearRect(0,0,a._width,a._height);var i=a.drawingDiagram.points[0].x,o=a.drawingDiagram.points[0].y,s=n.x-i,l=n.y-o;a.ctx.strokeRect(i,o,s,l),a.drawingDiagram.points[1].x=n.x,a.drawingDiagram.points[1].y=n.y}else if(a.drawType===t.DRAW_POLYGON){var c=a.drawingDiagram.points;a.ctx.clearRect(0,0,a._width,a._height),a.ctx.beginPath(),a.ctx.moveTo(c[0].x,c[0].y);for(var u=1;u<c.length;u++)a.ctx.lineTo(c[u].x,c[u].y);a.ctx.stroke(),a.ctx.closePath(),a.ctx.beginPath(),a.ctx.strokeStyle="yellow",a.ctx.moveTo(c[0].x,c[0].y),a.ctx.lineTo(n.x,n.y),a.ctx.lineTo(c[c.length-1].x,c[c.length-1].y),a.ctx.stroke(),a.ctx.closePath()}}},this.canvas.oncontextmenu=function(t){t.preventDefault(),r.isShowMenu&&r.showMenu(t)},this.canvas.style.display="none"}return l(t,[{key:"resize",value:function(t,e,n,i){this._left=t,this._top=e,this._width=n,this._height=i,this.canvas.width=n,this.canvas.height=i,this.canvas.style.top="".concat(e,"px"),this.canvas.style.left="".concat(t,"px"),this.storeCanvas.width=n,this.storeCanvas.height=i,this.storeCanvas.style.top="".concat(e,"px"),this.storeCanvas.style.left="".concat(t,"px"),this._width>0&&this._height>0&&(this.dumpDiagrams(),this.updateDrawing())}},{key:"destroy",value:function(){this.box.removeChild(this.storeCanvas),this.box.removeChild(this.canvas)}},{key:"start",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.drawType=e,null!==n&&(this.lineColor=n),this.canvas.style.display="",this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.drawType===t.DRAW_RECT?this.ctx.fillText("开始绘制矩形...",this.canvas.width/2,this.canvas.height/2-20):this.ctx.fillText("开始绘制多边形...",this.canvas.width/2,this.canvas.height/2-20),this.ctx.font="14px Arial",this.ctx.fillStyle="#ee0000",this.isShowMenu&&this.ctx.fillText("鼠标右键更多操作",this.canvas.width/2,this.canvas.height/2+20)),this.storeCanvas.style.background="#00000088",this.oldDiagrams=z(this.diagrams),this.canvas.focus()}},{key:"stop",value:function(){this.drawingDiagram=null,this._isDrawing=!1,this.drawType=t.DRAW_NONE,this.canvas.style.display="none",this.ctx&&this.ctx.clearRect(0,0,this._width,this._height),this.storeCanvas.style.background=""}},{key:"setROI",value:function(t){this.diagrams=t,this.oldDiagrams=z(this.diagrams),this.dumpDiagrams()}},{key:"saveQuit",value:function(){return!!this.checkDrawing()&&(this.diagrams.length+this.drawingCount()>this.maxRoi?(this.showMsg("已达到绘图数量限制!!"),!1):(this.saveDrawing(),this.onSave&&this.onSave(this.diagrams),!0))}},{key:"isUserDrawing",value:function(){return this.drawType!==t.DRAW_NONE}},{key:"showMsg",value:function(t){this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.ctx.fillText(t,this.canvas.width/2,this.canvas.height/2))}},{key:"dumpDiagrams",value:function(){var e=this.diagrams,n=this.storeCanvas.getContext("2d");if(n&&(n.clearRect(0,0,this.storeCanvas.width,this.storeCanvas.height),null!==e&&0!==e.length)){var i=this.storeCanvas.width,r=this.storeCanvas.height;n.strokeStyle=this.lineColor,n.lineWidth=2;var o,a=j(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.color?n.strokeStyle=s.color:n.strokeStyle=this.lineColor;var l=i/s.width,c=r/s.height;if(s.type===t.DRAW_RECT){var u=this.scalePoint(s.points[0].x,l,i),h=this.scalePoint(s.points[0].y,c,r),d=this.scalePoint(s.points[1].x,l,i)-u,f=this.scalePoint(s.points[1].y,c,r)-h;n.strokeRect(u,h,d,f)}else if(s.type===t.DRAW_POLYGON){var p=this.scalePoint(s.points[0].x,l,i),m=this.scalePoint(s.points[0].y,c,r);n.beginPath(),n.moveTo(p,m);for(var v=1;v<s.points.length;v++){var g=this.scalePoint(s.points[v].x,l,i),y=this.scalePoint(s.points[v].y,c,r);n.lineTo(g,y)}n.lineTo(p,m),n.stroke(),n.closePath()}}}catch(t){a.e(t)}finally{a.f()}}}},{key:"checkDrawing",value:function(){if(null===this.drawingDiagram)return!0;var e,n=j(this.drawingDiagram.points);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.x<0&&(i.x=0),i.y<0&&(i.y=0),i.x>this.drawingDiagram.width&&(i.x=this.drawingDiagram.width),i.y>this.drawingDiagram.height&&(i.y=this.drawingDiagram.height)}}catch(t){n.e(t)}finally{n.f()}if(this.drawingDiagram.type===t.DRAW_RECT){var r=this.drawingDiagram.points;2===r.length&&r[0].x===r[1].x&&r[0].y===r[1].y&&(this.drawingDiagram=null)}else if(this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length<3)return this.showMsg("至少需要画3个点!!"),!1;return!0}},{key:"saveDrawing",value:function(){null!=this.drawingDiagram&&((this.drawingDiagram.type===t.DRAW_RECT&&2===this.drawingDiagram.points.length||this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length>2)&&this.diagrams.push(this.drawingDiagram),this.drawingDiagram=null,this.dumpDiagrams())}},{key:"updateDrawing",value:function(){if(this.ctx&&(this.ctx.clearRect(0,0,this._width,this._height),null!=this.drawingDiagram)){if(this._width!==this.drawingDiagram.width||this._height!==this.drawingDiagram.height){var e,n=this._width/this.drawingDiagram.width,i=this._height/this.drawingDiagram.height,r=j(this.drawingDiagram.points);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.x=o.x*n,o.y=o.y*i}}catch(t){r.e(t)}finally{r.f()}this.drawingDiagram.width=this._width,this.drawingDiagram.height=this._height}if(this.ctx.strokeStyle=this.lineColor,this.drawType===t.DRAW_RECT&&2===this.drawingDiagram.points.length){var a=this.drawingDiagram.points[0].x,s=this.drawingDiagram.points[0].y,l=this.drawingDiagram.points[1].x-a,c=this.drawingDiagram.points[1].y-s;this.ctx.strokeRect(a,s,l,c)}else if(this.drawType===t.DRAW_POLYGON&&this.drawingDiagram.points.length>=2){var u=this.drawingDiagram.points;this.ctx.beginPath(),this.ctx.moveTo(u[0].x,u[0].y);for(var h=1;h<u.length;h++)this.ctx.lineTo(u[h].x,u[h].y);this.ctx.lineTo(u[0].x,u[0].y),this.ctx.stroke(),this.ctx.closePath()}}}},{key:"showMenu",value:function(t){var e=this,n=this.transPoint(t);if(null===this.menu){this.menu=document.createElement("ul"),this.menu.classList.add("vat-roi-menu"),this.box.appendChild(this.menu);var i=this;this.menu.onmouseleave=function(t){i.menu&&(i.menu.style.display="none")},this.createMenuItem("保存&退出",(function(){i.checkDrawing()&&(i.diagrams.length+i.drawingCount()>i.maxRoi?i.showMsg("已达到绘图数量限制!!"):(i.saveDrawing(),i.onSave&&i.onSave(e.diagrams)))})),this.createMenuItem("取消&退出",(function(){i.diagrams=i.oldDiagrams,i.dumpDiagrams(),i.onEscape&&i.onEscape()})),this.createMenuItem("保存&继续",(function(){i.checkDrawing()&&(e.diagrams.length+i.drawingCount()>e.maxRoi?i.showMsg("已达到绘图数量限制!!"):(e.saveDrawing(),e.updateDrawing()),i._isDrawing=!1)})),this.createMenuItem("擦除一个",(function(){i._isDrawing=!1,null!=i.drawingDiagram?(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)):i.diagrams.length>0&&(i.diagrams.pop(),i.dumpDiagrams())})),this.createMenuItem("擦除所有",(function(){i._isDrawing=!1,null!=i.drawingDiagram&&(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)),i.diagrams.length>0&&(i.diagrams=[],i.dumpDiagrams())}))}this.menu.style.display="block",this.menu.style.left="".concat(n.x,"px"),this.menu.style.top="".concat(n.y,"px")}},{key:"createMenuItem",value:function(t,e){if(null!==this.menu){var n=document.createElement("li");n.innerText=t;var i=this;n.onclick=function(t){e(),i.menu&&(i.menu.style.display="none")},this.menu.appendChild(n)}}},{key:"drawingCount",value:function(){return null==this.drawingDiagram?0:this.drawingDiagram.points.length>0?1:0}},{key:"transPoint",value:function(t){var e={x:t.offsetX,y:t.offsetY};return 0===e.x&&0===e.y&&(e.x=t.layerX,e.y=t.layerY),e}},{key:"scalePoint",value:function(t,e,n){return(t*=e)<0?t=0:t>n&&(t=n),t}}]),t}();function V(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}H.DRAW_NONE=0,H.DRAW_RECT=1,H.DRAW_POLYGON=2,n("28a5");var G=function(){function t(){o(this,t)}return l(t,null,[{key:"parseUrl",value:function(e){return void 0===e||0===e.length?e||"":0!==e.indexOf("plive://")&&0!==e.indexOf("psub://")&&0!==e.indexOf("vms://")||e.indexOf("token=")>0||void 0===t.token||0===t.token.length?e:e.indexOf("?")>0?e+"&token="+t.token:e+"?token="+t.token}},{key:"parseVodUrl",value:function(t){var e={id:"",ip:"",port:0,start:"",end:"",type:0};if(0===t.indexOf("vms://")){var n=t.indexOf("/",6);if(n<0)return e;var i=t.indexOf("@",6);i<0&&(i=6);var r=t.substring(i,n).split(":");e.ip=r[0],e.port=parseInt(r[1],10),i=t.indexOf("/",n+1),n=t.indexOf("/",i+1),e.id=t.substring(i+1,n);var o,a={},s=V(t.substring(t.indexOf("?",i)+1).split("&"));try{for(s.s();!(o=s.n()).done;){var l=o.value.split("=",2);a[l[0]]=l[1]}}catch(t){s.e(t)}finally{s.f()}e.start=a.beginTime,e.end=a.endTime,e.type=parseInt(a.type?a.type:1,10)}return e}}]),t}(),q=function(){function t(){o(this,t),this.websocket=null,this.faceRectUrl=void 0,this.faceSnapUrl=void 0,this.extUrl=void 0,this.maxCacheTime=3e4,this.maxCacheCount=750}return l(t,[{key:"setUrl",value:function(t,e,n){this.faceRectUrl=t,this.faceSnapUrl=e,this.extUrl=n,this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.start(this.websocket)}},{key:"start",value:function(e){this.websocket=e;var n=JSON.stringify({cmd:t.CMD_OPEN_FACE,faceRectUrl:G.parseUrl(this.faceRectUrl),faceSnapUrl:G.parseUrl(this.faceSnapUrl),extUrl:G.parseUrl(this.extUrl)});this.websocket.send(n)}},{key:"stop",value:function(){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var e=JSON.stringify({cmd:t.CMD_CLOSE_FACE});this.websocket.send(e)}}}]),t}();q.CMD_OPEN_FACE="open_face",q.CMD_CLOSE_FACE="close_face",n("a481");var Q=function(){function t(){o(this,t)}return l(t,null,[{key:"get",value:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=t.replace("{".concat(n,"}"),e[n]));return t}},{key:"set",value:function(e,n){"plugin-service-disconnected"===e?t.PLUGIN_SERVICE_DISCONNECTED=n:"plugin-service-mismatch"===e?t.PLUGIN_SERVICE_MISMATCH=n:"plugin-service-notfound"===e?t.PLUGIN_SERVICE_NOTFOUND=n:"plugin-service-version-require"===e?t.PLUGIN_SERVICE_VERSION_REQUIRE=n:"plugin-service-error"===e?t.PLUGIN_SERVICE_ERROR=n:"plugin-download"===e?t.PLUGIN_DOWNLOAD=n:"plugin-vod-error"===e?t.PLUGIN_VOD_ERROR=n:"stream-no-data"===e?t.STREAM_NO_DATA=n:"stream-concurrency-limit"===e?t.STREAM_CONCURRENCY_LIMIT=n:"user-concurrency-limit"===e?t.USER_CONCURRENCY_LIMIT=n:"stream-connect-failed"===e?t.STREAM_CONNECT_FAILED=n:"stream-notfound"===e?t.STREAM_NOTFOUND=n:"stream-auth-failed"===e?t.STREAM_AUTH_FAILED=n:"stream-unknown-error"===e?t.STREAM_UNKNOWN_ERROR=n:"stream-protocol-error"===e?t.STREAM_PROTOCOL_ERROR=n:"stream-disconnected"===e?t.STREAM_DISCONNECTED=n:"stream-unsupported"===e?t.STREAM_UNSUPPORTED=n:"stream-open-failed"===e?t.STREAM_OPEN_FAILED=n:"stream-authorize-limit"===e&&(t.STREAM_AUTHORIZE_LIMIT=n)}}]),t}();function J(t,e,n){return(J="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}Q.PLUGIN_SERVICE_NOTFOUND="插件服务未安装或未启动",Q.PLUGIN_SERVICE_DISCONNECTED="插件服务连接断开,请检查服务是否启动并刷新浏览器",Q.PLUGIN_SERVICE_MISMATCH="插件版本不兼容",Q.PLUGIN_SERVICE_VERSION_REQUIRE="插件服务版本不匹配,当前版本:{installed_version} 要求:{require_version}",Q.PLUGIN_SERVICE_ERROR="连接插件服务错误",Q.PLUGIN_DOWNLOAD="下载",Q.PLUGIN_VOD_ERROR="启动回放进程失败",Q.STREAM_NO_DATA="无视频数据",Q.STREAM_CONCURRENCY_LIMIT="相机播放路数达到上限",Q.USER_CONCURRENCY_LIMIT="用户播放路数达到上限",Q.STREAM_CONNECT_FAILED="连接失败",Q.STREAM_NOTFOUND="找不到流",Q.STREAM_AUTH_FAILED="用户名或密码错误",Q.STREAM_UNKNOWN_ERROR="未知异常",Q.STREAM_PROTOCOL_ERROR="对方协议错误",Q.STREAM_DISCONNECTED="连接断开",Q.STREAM_UNSUPPORTED="不支持流类型",Q.STREAM_OPEN_FAILED="打开流失败",Q.STREAM_AUTHORIZE_LIMIT="授权播放路数达到上限",n("9c29");var X=function(){function t(){o(this,t),this.ctx=null,this.canvas=null,this.x1080pFactor=1,this.y1080pFactor=1,this.filter=null}return l(t,[{key:"setup",value:function(t){return this.canvas=t,this.ctx=t.getContext("2d"),null!==this.ctx}},{key:"clear",value:function(){this.ctx&&this.canvas&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"destroy",value:function(){this.ctx=null,this.canvas=null}},{key:"resize",value:function(t,e){this.x1080pFactor=t/1920,this.y1080pFactor=e/1080}},{key:"setFilter",value:function(t){this.filter=t}}]),t}();function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var $=function(t){u(n,t);var e=Z(n);function n(){var t;return o(this,n),(t=e.call(this)).imagePool=[],t.imageCount=0,t.onDraw=null,t.timerId=0,t.imageList=[],t.isShow=!1,t}return l(n,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==t&&(0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){n.onPlayTimer()}),1e3/t))}},{key:"render",value:function(t,e,n){this.isShow=!0;var i=this,r=new Blob([e]);if(i.imagePool.length>0){var o=i.imagePool.shift();o.image.src=URL.createObjectURL(r),o.time=n}else{var a={image:new Image,time:n};a.time=n,a.image.onload=function(t){i.onLoad(a)},a.image.onerror=function(t){a.image.src.length>0&&URL.revokeObjectURL(a.image.src),i.imagePool.push(a)},i.imageCount++,a.image.src=URL.createObjectURL(r)}}},{key:"clear",value:function(){J(f(n.prototype),"clear",this).call(this),this.imageList=[],this.isShow=!1}},{key:"destroy",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),J(f(n.prototype),"destroy",this).call(this)}},{key:"onLoad",value:function(t){if(!this.isShow)return URL.revokeObjectURL(t.image.src),void this.imagePool.push(t);0!==this.timerId?this.imageList.push(t):(this.ctx&&this.canvas&&this.ctx.drawImage(t.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(t.time,t.image.naturalWidth,t.image.naturalHeight),URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}},{key:"onPlayTimer",value:function(){if(this.isShow&&null!==this.ctx&&null!==this.canvas&&0!==this.imageList.length&&!(this.imageList.length<8)){for(;this.imageList.length>11;){var t=this.imageList.shift();void 0!==t&&(URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}var e=this.imageList.shift();void 0!==e&&(this.ctx.drawImage(e.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(e.time,e.image.naturalWidth,e.image.naturalHeight),URL.revokeObjectURL(e.image.src),this.imagePool.push(e))}}}]),n}(X);$.MAX_CACHE_IMAGE_COUNT=10,n("34ef"),n("af56"),n("63d9");var tt=function(){function t(e){o(this,t),this.gl=e,this.texture=e.createTexture(),null!==this.texture&&(e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE))}return l(t,[{key:"bind",value:function(t,e,n){this.gl.activeTexture([this.gl.TEXTURE0,this.gl.TEXTURE1,this.gl.TEXTURE2][t]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.uniform1i(this.gl.getUniformLocation(e,n),t)}},{key:"fill",value:function(t,e,n){this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t,e,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,n)}}]),t}(),et=function(){function t(e,n){o(this,t),this.gl=e,this.y=new tt(this.gl),this.u=new tt(this.gl),this.v=new tt(this.gl),this.y.bind(0,n,"YTexture"),this.u.bind(1,n,"UTexture"),this.v.bind(2,n,"VTexture")}return l(t,[{key:"render",value:function(t,e,n){var i=e*n,r=i+i/4,o=e>>1,a=n>>1;this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.y.fill(e,n,t.subarray(0,i)),this.u.fill(o,a,t.subarray(i,r)),this.v.fill(o,a,t.subarray(r,t.length)),this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)}},{key:"clear",value:function(){this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}},{key:"getGl",value:function(){return this.gl}}]),t}(),nt=function(){function t(){o(this,t),this.isSetup=!1,this.canvas=null,this.webgl=null,this.onDraw=null,this.timerId=0,this.cacheList=[]}return l(t,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==t&&(0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){if(!(n.cacheList.length<8)){for(;n.cacheList.length>11;)n.cacheList.shift();var t=n.cacheList.shift();void 0!==t&&n.webgl&&n.renderInternal(n.webgl,t.type,t.data,t.time)}}),1e3/t))}},{key:"resize",value:function(t,e){if(null!==this.webgl){var n=this.webgl.getGl();n.viewport(0,0,n.canvas.width,n.canvas.height)}}},{key:"clear",value:function(){this.webgl&&this.webgl.clear(),this.cacheList=[]}},{key:"destroy",value:function(){if(0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.webgl){var t=this.webgl.getGl().getExtension("WEBGL_lose_context");null!==t&&t.loseContext()}this.webgl=null,this.canvas=null,this.isSetup=!1}},{key:"render",value:function(t,e,n){this.isSetup||(this.setupInternal(),this.isSetup=!0),0!==this.timerId?this.cacheList.push({type:t,data:e,time:n}):this.webgl&&this.renderInternal(this.webgl,t,e,n)}},{key:"setup",value:function(t){return this.canvas=t,!0}},{key:"setupInternal",value:function(){if(null===this.canvas)return!1;var t=this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl");if(null===t)return!1;var e=t.createProgram();if(null===e)return!1;var n=["attribute lowp vec4 aVertexPosition;","attribute vec2 aTextureCoord;","varying lowp vec2 vTextureCoord;","void main(void) {"," gl_Position = aVertexPosition;"," vTextureCoord = aTextureCoord;","}"].join("\n"),i=t.createShader(t.VERTEX_SHADER);if(null===i)return!1;t.shaderSource(i,n),t.compileShader(i);var r=["precision lowp float;","varying lowp vec2 vTextureCoord;","uniform sampler2D YTexture;","uniform sampler2D UTexture;","uniform sampler2D VTexture;","const mat4 YUV2RGB = mat4","("," 1.1643828125, 0, 1.59602734375, -.87078515625,"," 1.1643828125, -.39176171875, -.81296875, .52959375,"," 1.1643828125, 2.017234375, 0, -1.081390625,"," 0, 0, 0, 1",");","void main(void) {"," gl_FragColor = vec4( texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, ","texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;","}"].join("\n"),o=t.createShader(t.FRAGMENT_SHADER);if(null===o)return!1;t.shaderSource(o,r),t.compileShader(o),t.attachShader(e,i),t.attachShader(e,o),t.linkProgram(e),t.useProgram(e),t.getProgramParameter(e,t.LINK_STATUS);var a=t.getAttribLocation(e,"aVertexPosition");t.enableVertexAttribArray(a);var s=t.getAttribLocation(e,"aTextureCoord");t.enableVertexAttribArray(s);var l=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,l),t.bufferData(t.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),t.STATIC_DRAW),t.vertexAttribPointer(a,3,t.FLOAT,!1,0,0);var c=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),t.STATIC_DRAW),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0),this.webgl=new et(t,e),!0}},{key:"setFilter",value:function(t){}},{key:"renderInternal",value:function(t,e,n,i){if(2===e){new DataView(n,0,12);var r=new Uint16Array(n,12,4),o=new Uint8Array(n,20);t.render(o,r[2],r[3]),this.onDraw&&this.onDraw(i,r[0],r[1])}else{var a=new Uint16Array(n,4,2);t.render(new Uint8Array(n,16),a[0],a[1]),this.onDraw&&this.onDraw(i,a[0],a[1])}}}]),t}();ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(t,e){var n=this.byteLength;if(e=void 0===e?n:0|e,(t=0|t||0)<0&&(t=Math.max(t+n,0)),e<0&&(e=Math.max(e+n,0)),0===n||t>=n||t>=e)return new ArrayBuffer(0);var i=Math.min(n-t,e-t),r=new ArrayBuffer(i);return new Uint8Array(r).set(new Uint8Array(this,t,i)),r});var it=function(){function t(){o(this,t),this.queue=[],this.timerId=0}return l(t,[{key:"getUrl",value:function(t){var e=new Blob([t]),n=URL.createObjectURL(e);if(this.queue.push({url:n,time:performance.now()}),0===this.timerId){var i=this;this.timerId=setInterval((function(){i.check()}),1e3)}return n}},{key:"check",value:function(){if(void 0!==this.queue){for(;this.queue.length>0&&performance.now()-this.queue[0].time>t.DEFAULT_CACHE_TIME;)URL.revokeObjectURL(this.queue[0].url),this.queue.shift();0===this.queue.length&&(clearInterval(this.timerId),this.timerId=0)}else clearInterval(this.timerId)}}]),t}();it.DEFAULT_CACHE_TIME=15e3;var rt=function(){function t(e,n){o(this,t),this.box=e,this.canvas=document.createElement("canvas"),this.canvas.classList.add(n),this.box.appendChild(this.canvas),this.render=null,this.isShow=!0,this.lastRenderTime=0}return l(t,[{key:"setupRender",value:function(t){return this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas)}},{key:"stopView",value:function(){this.isShow=!1,this.render&&this.render.clear()}},{key:"destroy",value:function(){this.stopView(),this.render&&(this.render.destroy(),this.render=null),this.box&&this.canvas&&(this.box.removeChild(this.canvas),this.box=null)}},{key:"move",value:function(t,e,n,i){this.canvas.width=n,this.canvas.height=i,this.canvas.style.left="".concat(t,"px"),this.canvas.style.top="".concat(e,"px"),this.render&&this.render.resize(n,i)}},{key:"putData",value:function(t,e,n){this.isShow&&this.render&&(this.render.render(t,e,n),this.lastRenderTime=performance.now())}},{key:"restoreView",value:function(){this.isShow=!0}},{key:"getImage",value:function(t,e){e&&(t.width=this.canvas.width,t.height=this.canvas.height);var n=t.getContext("2d");return n&&n.drawImage(this.canvas,0,0,t.width,t.height),!0}},{key:"getRender",value:function(){return this.render}}]),t}();function ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var at=function(t){u(n,t);var e=ot(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.DEFAULT_DURATION;return o(this,n),(r=e.call(this,t,i)).tmpCanvas=document.createElement("canvas"),r.syncTime=0,r.isSync=!0,r.queue=[],r.showDuration=a,r.ctx=null,r}return l(n,[{key:"setupRender",value:function(t){return null!==this.canvas&&(this.ctx=this.canvas.getContext("2d"),this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas))}},{key:"stopView",value:function(){J(f(n.prototype),"stopView",this).call(this),this.queue=[],this.syncTime=0,null!==this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"move",value:function(t,e,i,r){this.tmpCanvas.width=i,this.tmpCanvas.height=r,J(f(n.prototype),"move",this).call(this,t,e,i,r)}},{key:"putData",value:function(t,e,n){0!==this.syncTime&&this.isShow&&this.render&&this.ctx&&(this.isSync&&this.syncTime>0&&n>this.syncTime?this.queue.push({type:t,data:e,time:n}):this.renderData({type:t,data:e,time:n}))}},{key:"setSync",value:function(t){this.isSync=t,this.queue=[]}},{key:"sync",value:function(t){this.syncTime=t,0===t&&this.queue.length>0&&(this.renderData(this.queue[this.queue.length-1]),this.queue=[]);for(var e=-1,n=0;n<this.queue.length&&this.queue[n].time<=this.syncTime+10;n++)e=n;if(e>=0){if(this.syncTime-this.queue[e].time>this.showDuration){for(;e>=0;)this.queue.shift(),e--;return}for(this.renderData(this.queue[e]);e>0;)this.queue.shift(),e-=1}else this.lastRenderTime>0&&this.render&&performance.now()-this.lastRenderTime>this.showDuration&&(this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.lastRenderTime=0)}},{key:"getCtx",value:function(){return this.ctx}},{key:"renderData",value:function(t){this.render&&this.ctx&&(this.render.render(t.type,t.data,t.time),this.lastRenderTime=performance.now())}}]),n}(rt);at.DEFAULT_DURATION=42;var st=function(){function t(){o(this,t)}return l(t,null,[{key:"hollow",value:function(t,e,n,i,r){var o=Math.min(i,r)/3,a=e+i,s=n+r;t.moveTo(e,n+o),t.lineTo(e,n),t.lineTo(e+o,n),t.moveTo(a-o,n),t.lineTo(a,n),t.lineTo(a,n+o),t.moveTo(a,s-o),t.lineTo(a,s),t.lineTo(a-o,s),t.moveTo(e+o,s),t.lineTo(e,s),t.lineTo(e,s-o)}}]),t}();st.LINE_STYLE_SOLID=0,st.LINE_STYLE_HOWLLOW=16;var lt=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,o){var a=new DataView(n),s=a.getFloat32(0,!0),l=a.getUint32(16,!0),c=(n.byteLength-20)/l,u=0,h="";e.beginPath();for(var d=20;d<n.byteLength;d+=c)if(!(s>=.2&&null!==o)||o.filter(a.getUint32(d+20,!0))){var f=a.getFloat32(d,!0)*i,p=a.getFloat32(d+4,!0)*r,m=a.getFloat32(d+8,!0)*i,v=a.getFloat32(d+12,!0)*r,g="rgba(65,255,244,0.8)",y=2,w=a.getUint32(d+16,!0),b=t.LINE_STYLE_HOWLLOW;if(w>0){var A=a.getUint8(d+16),x=a.getUint8(d+17),k=a.getUint8(d+18);b=(y=a.getUint8(d+19))&t.LINE_STYLE_BYTES,y&=t.WEIGHT_BYTES,u===w?g=h:(h=g="rgba(".concat(A,", ").concat(x,", ").concat(k,", 0.8)"),u=w,e.stroke(),e.closePath(),e.strokeStyle=g,e.lineWidth=y,e.beginPath())}else 20===d&&(e.strokeStyle=g,e.lineWidth=y);t.LINE_STYLE_HOWLLOW===b?st.hollow(e,f,p,m,v):t.LINE_STYLE_SOLID===b&&e.strokeRect(f,p,m,v)}e.stroke(),e.closePath()}}]),t}();lt.LINE_STYLE_SOLID=0,lt.LINE_STYLE_HOWLLOW=16,lt.LINE_STYLE_BYTES=240,lt.WEIGHT_BYTES=15;var ct=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,o){for(var a=new DataView(n),s=a.getFloat32(0,!0),l=a.getUint32(16,!0),c=(n.byteLength-20)/l,u=20;u<n.byteLength;u+=c)if(!(s>=.2&&null!==o)||o.filter(a.getUint32(u+220,!0))){var h=t.parsePoints(a,u,i,r);t.renderBody(e,h)}}},{key:"parsePoints",value:function(t,e,n,i){for(var r=[],o=0;o<18;o++){var a=e+10*o,s=1===t.getUint8(a),l=t.getFloat32(a+2,!0)*n,c=t.getFloat32(a+6,!0)*i;r.push({valid:s,x:l,y:c})}return r}},{key:"drawPoint",value:function(t,e,n){t.beginPath(),t.arc(e,n,4,0,2*Math.PI),t.fill(),t.stroke()}},{key:"drawLine",value:function(t,e,n){e.valid&&n.valid&&(t.moveTo(e.x,e.y),t.lineTo(n.x,n.y))}},{key:"renderBody",value:function(e,n){e.strokeStyle="green",e.lineWidth=2,e.beginPath(),t.drawLine(e,n[16],n[14]),t.drawLine(e,n[17],n[15]),t.drawLine(e,n[14],n[0]),t.drawLine(e,n[15],n[0]),t.drawLine(e,n[0],n[1]),t.drawLine(e,n[1],n[2]),t.drawLine(e,n[2],n[3]),t.drawLine(e,n[3],n[4]),t.drawLine(e,n[1],n[5]),t.drawLine(e,n[5],n[6]),t.drawLine(e,n[6],n[7]),t.drawLine(e,n[1],n[8]),t.drawLine(e,n[8],n[9]),t.drawLine(e,n[9],n[10]),t.drawLine(e,n[1],n[11]),t.drawLine(e,n[11],n[12]),t.drawLine(e,n[12],n[13]),e.stroke(),e.closePath(),e.fillStyle="red";for(var i=0;i<18;i++)n[i].valid&&t.drawPoint(e,n[i].x,n[i].y)}}]),t}(),ut=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),o=r.getFloat32(0,!0),a=r.getUint32(12,!0),s=16;o>=.3&&(s=20);var l=(e.byteLength-s)/a;for(t.strokeStyle="rgba(65,255,244,0.8)",t.lineWidth=2,t.beginPath();s<e.byteLength;s+=l){var c=r.getFloat32(s,!0)*n,u=r.getFloat32(s+4,!0)*i,h=r.getFloat32(s+8,!0)*n,d=r.getFloat32(s+12,!0)*i;st.hollow(t,c,u,h,d)}t.stroke(),t.closePath()}}]),t}(),ht=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),o=r.getUint32(16,!0),a=(e.byteLength-20)/o;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#32CD3288";for(var s=20;s<e.byteLength;s+=a){var l=r.getFloat32(s,!0),c=r.getFloat32(s+4,!0),u=r.getFloat32(s+8,!0),h=r.getFloat32(s+12,!0),d=r.getUint8(s+16),f=r.getUint8(s+17),p=r.getUint8(s+18),m=r.getUint8(s+19);t.strokeRect(l,c,u,h),l+=u+5;var v=c;d>0&&(v+=33,this.drawText(t,this.BAG_TEXTS[d],l,v)),f>0&&(v+=33,this.drawText(t,this.SLEEVE_TEXTS[f],l,v)),p>0&&(v+=33,this.drawText(t,this.RIDE_TEXTS[p],l,v)),m>0&&(v+=33,this.drawText(t,this.HELMET_TEXTS[m],l,v))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(50, 205, 50, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();ht.BAG_TEXTS=["未 知","未背单肩包","背单肩包"],ht.SLEEVE_TEXTS=["未 知","长 袖","短 袖","无 袖"],ht.RIDE_TEXTS=["未 知","未 骑 车","骑 车"],ht.HELMET_TEXTS=["未 知","未戴头盔","戴 头 盔"];var dt=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r){var o=new DataView(n),a=o.getUint32(16,!0),s=(n.byteLength-20)/a;e.save(),e.scale(i,r),e.font="bold 24px Microsoft YaHei",e.textAlign="center",e.strokeStyle="#00CED188";for(var l=20;l<n.byteLength;l+=s){var c=o.getFloat32(l,!0),u=o.getFloat32(l+4,!0),h=o.getFloat32(l+8,!0),d=o.getFloat32(l+12,!0),f=o.getUint8(l+16),p=o.getUint8(l+17),m=o.getUint8(l+18);e.strokeRect(c,u,h,d);var v=u;f>0&&(v-=33,t.drawText(e,this.MASK_TEXTS[f],c,v)),p>0&&(v-=33,t.drawText(e,this.GENDER_TEXTS[p],c,v)),m>0&&(v-=33,t.drawText(e,this.NATION_TEXTS[m],c,v))}e.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(0, 206, 209, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();dt.GENDER_TEXTS=["未 知","男","女"],dt.MASK_TEXTS=["未 知","不戴口罩","戴 口 罩"],dt.NATION_TEXTS=["未 知","汉 族","维 族","少数民族"];var ft=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),o=r.getUint32(16,!0),a=(e.byteLength-20)/o;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#F0E68C88";for(var s=20;s<e.byteLength;s+=a){var l=r.getFloat32(s,!0),c=r.getFloat32(s+4,!0),u=r.getFloat32(s+8,!0),h=r.getFloat32(s+12,!0),d=r.getUint8(s+16),f=r.getUint8(s+17),p=r.getUint8(s+18);t.strokeRect(l,c,u,h),l+=u+5;var m=c;d>0&&(m+=33,this.drawText(t,this.COLOR_TEXTS[d],l,m)),f>0&&(m+=33,this.drawText(t,this.DIRECT_TEXTS[f],l,m)),p>0&&(m+=33,this.drawText(t,this.TYPE_TEXTS[p],l,m))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(240, 230, 140, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();function pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}ft.COLOR_TEXTS=["黑 色","蓝 色","棕 色","灰 色","绿 色","橘 色","粉 色","紫 色","红 色","白 色","黄 色","银 色"],ft.DIRECT_TEXTS=["后","右 后","右","右 前","前","左 前","左","左 后","未 知"],ft.TYPE_TEXTS=["轿 车","校 车","越 野 车","商 务 车","货 车","皮 卡","大 卡 车","小 卡 车","大 巴 士","小 巴 士","摩 托 车","三 轮 车","电 动 车","其它类型"];var mt=function(){function t(){o(this,t)}return l(t,[{key:"filter",value:function(t,e,n){return!0}},{key:"getDuration",value:function(t){return null}},{key:"render",value:function(t,e,n,i,r){return!1}}]),t}(),vt=function(t){u(n,t);var e=pt(n);function n(){var t;return o(this,n),(t=e.call(this)).handler=n.DEFAULT_HANDLER,t}return l(n,[{key:"render",value:function(t,e,i){null!=this.canvas&&null!==this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.handler.render(t,this.ctx,e,this.x1080pFactor,this.y1080pFactor)||(t===n.FACE_TRACK?ut.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.FACE_RECT||t===n.BODY_RECT?lt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.BODY_POINTS?ct.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.POC_BODY_ATTR?ht.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_FACE_ATTR?dt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_VEHICLE_ATTR&&ft.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor)))}},{key:"setHandler",value:function(t){this.handler=null!==t?t:n.DEFAULT_HANDLER}}]),n}(X);vt.FACE_TRACK=200,vt.FACE_RECT=1e4,vt.BODY_RECT=10001,vt.BODY_POINTS=10005,vt.POC_BODY_ATTR=10009,vt.POC_FACE_ATTR=10010,vt.POC_VEHICLE_ATTR=10011,vt.DEFAULT_HANDLER=new mt;var gt,yt,wt,bt,At=function(){function t(){o(this,t)}return l(t,null,[{key:"closeWebsocket",value:function(t){null!==t&&(t.onopen=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.close())}},{key:"createWebsocket",value:function(e,n){if(n&&n.length>6)return 0===n.indexOf("ws://")||0===n.indexOf("wss://")?new WebSocket(n):new WebSocket("ws://".concat(n,":").concat(e));var i=t.ipSeed%36+1;return t.ipSeed+=1,new WebSocket("ws://127.0.0.".concat(i,":").concat(e))}},{key:"isSupportWebGL",value:function(){if(null===t.hasGL){var e=document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");t.hasGL=null!==n}return t.hasGL}},{key:"stringToUnix",value:function(e){return!e||e.length<19?0:Math.floor(new Date(t.stringToDate(e)).getTime()/1e3)}},{key:"stringToDate",value:function(t){return" "===t.charAt(10)&&(t=t.substr(0,10)+"T"+t.substr(11,t.length-10)),new Date(t)}}]),t}();function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}At.hasGL=null,At.ipSeed=0,function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YUV=1]="YUV",t[t.YUV420=2]="YUV420",t[t.JPEG=3]="JPEG",t[t.PCM=4]="PCM"}(gt||(gt={})),function(t){t[t.YUV=0]="YUV",t[t.JPEG=1]="JPEG"}(yt||(yt={})),function(t){t[t.AUTO=0]="AUTO",t[t.REALTIME=1]="REALTIME",t[t.SMOOTH=2]="SMOOTH"}(wt||(wt={})),function(t){t[t.DEFAULT_CHANNEL=0]="DEFAULT_CHANNEL",t[t.LIVE_CHANNEL=1]="LIVE_CHANNEL",t[t.VOD_CHANNEL=2]="VOD_CHANNEL",t[t.FILE_CHANNEL=3]="FILE_CHANNEL"}(bt||(bt={}));var kt,St,Ct,Et=function(){function t(){o(this,t),this.pingBuf=new ArrayBuffer(0),this.onCommand=function(){return 1},this.onFrame=function(){return 1},this.onConnected=function(){return 1},this.onDisconnected=function(){return 1},this.format=null,this.viewport=null,this.enableFilterLoss=null,this.websocket=null,this.proxyIp=null}return l(t,[{key:"getWebsocket",value:function(){return this.websocket}},{key:"init",value:function(t,e,n){this.proxyIp=n,this.close(),this.initChannel(t,e)}},{key:"close",value:function(){At.closeWebsocket(this.websocket),this.websocket=null}},{key:"hasChannel",value:function(){return null!==this.websocket}},{key:"setFormat",value:function(e){this.format=e,this.sendCommand(t.CMD_SET_FORMAT,{format:this.formatString(e)})}},{key:"setViewport",value:function(e,n){this.viewport={width:e,height:n},this.sendCommand(t.CMD_SET_VIEWPORT,{width:e,height:n})}},{key:"setFilterLoss",value:function(e){this.enableFilterLoss=e,this.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:e})}},{key:"snapshot",value:function(e){return this.sendCommand(t.CMD_REQ_SNAPSHOT,{time:e})}},{key:"setVolume",value:function(e){return this.sendCommand(t.CMD_SET_VOLUME,{volume:e})}},{key:"ping",value:function(){null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.websocket.send(this.pingBuf)}},{key:"startRecord",value:function(e,n){return this.sendCommand(t.CMD_START_RECORD,{duration:e,path:n})}},{key:"stopRecord",value:function(){return this.sendCommand(t.CMD_STOP_RECORD,{})}},{key:"switchAudio",value:function(e){return this.sendCommand(t.CMD_SWITCH_AUDIO,{on:e,background:!0})}},{key:"switchTalk",value:function(e){return this.sendCommand(t.CMD_SWITCH_TALK,{on:e})}},{key:"setMode",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_MODE,{mode:e})}},{key:"setDelay",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_DELAY,{delay:e})}},{key:"switchUrl",value:function(e,n,i){return void 0===i&&(i=!1),this.sendCommand(t.CMD_SWITCH_URL,{url1:e,url2:n,soft:i})}},{key:"switchIndex",value:function(e){return this.sendCommand(t.CMD_SWITCH_INDEX,{index:e})}},{key:"ptzControl",value:function(e,n){return this.sendCommand(t.CMD_PTZ_CONTROL,{ctl:e,value:n})}},{key:"ptzControl3D",value:function(e,n,i,r,o){return this.sendCommand(t.CMD_PTZ_CONTROL_3D,{direct:e,x:n,y:i,w:r,h:o})}},{key:"playRecord",value:function(e,n,i,r){return this.sendCommand(t.CMD_PLAY_RECORD,{startTime:e,endTime:n,type:i,direction:r})}},{key:"pause",value:function(){return this.sendCommand(t.CMD_PAUSE_STREAM,{})}},{key:"resume",value:function(e){return this.sendCommand(t.CMD_RESUME_STREAM,{direction:e})}},{key:"stop",value:function(){return this.sendCommand(t.CMD_STOP_STREAM,{})}},{key:"setSpeed",value:function(e){return this.sendCommand(t.CMD_SET_SPEED,{speed:e})}},{key:"changeDirection",value:function(e){return this.sendCommand(t.CMD_CHANGE_DIRECTION,{direction:e})}},{key:"queryRecords",value:function(e,n){return this.sendCommand(t.CMD_QUERY_RECORD,{startTime:e,endTime:n})}},{key:"sendCommand",value:function(t,e){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var n=JSON.stringify(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t},e));return this.websocket.send(n),!0}return!1}},{key:"sendRaw",value:function(t){return null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&(this.websocket.send(t),!0)}},{key:"formatString",value:function(t){var e="";return t===yt.YUV?e="yuv420":t===yt.JPEG&&(e="jpeg"),e}},{key:"initChannel",value:function(e,n){var i=this;this.websocket=At.createWebsocket(e,this.proxyIp),this.websocket.binaryType="arraybuffer",this.websocket.onopen=function(){var e="";bt.DEFAULT_CHANNEL===n?e="default":bt.LIVE_CHANNEL===n?e="live":bt.VOD_CHANNEL===n?e="vod":bt.FILE_CHANNEL===n&&(e="file"),i.sendCommand(t.CMD_INIT_CHANNEL,{type:e}),null!==i.format&&i.sendCommand(t.CMD_SET_FORMAT,{format:i.formatString(i.format)}),null!==i.viewport&&i.sendCommand(t.CMD_SET_VIEWPORT,i.viewport),null!==i.enableFilterLoss&&i.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:i.enableFilterLoss}),i.onConnected()},this.websocket.onerror=function(){i.onDisconnected()},this.websocket.onclose=function(){i.onDisconnected()},this.websocket.onmessage=function(e){if("string"==typeof e.data){if("{"===e.data[0]){var n=JSON.parse(e.data);i.onCommand(n.cmd,n)}else if(e.data.length>6&&e.data.substr(0,5)===t.SB_CMD_SPEED){var r=parseInt(e.data.substr(t.SB_CMD_SPEED.length+1),10);i.onCommand(t.SB_CMD_SPEED,{speed:r})}}else i.handleBinary(e.data)}}},{key:"handleBinary",value:function(t){var e=new Uint32Array(t,0,2);if(1129731417===e[0]){var n=new DataView(t,8,8).getFloat64(0,!0);this.onFrame(gt.YUV,t,n)}else if(3774863615===e[0]&&1179258880===e[1]){var i=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);this.onFrame(gt.JPEG,t,i)}else if(1112954201===e[0]){var r=this.getUint64(new DataView(t,8,8),0);this.onFrame(gt.YUV,t,r)}else if(512==(65535&e[0])){var o=new DataView(t,4,8).getFloat64(0,!0);this.onFrame(gt.YUV420,t,o)}else if(1112359760===e[0]||827147088===e[0]){var a=this.getUint64(new DataView(t,4,8),0);this.onFrame(gt.PCM,t,a)}else 827611205===e[0]||e[0]}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}}]),t}();Et.CMD_INIT_CHANNEL="init_channel",Et.CMD_SET_FORMAT="set_format",Et.CMD_SET_VOLUME="set_volume",Et.CMD_SET_FILTER_LOSS="set_filter_loss",Et.CMD_REQ_SNAPSHOT="req_snapshot",Et.CMD_SET_VIEWPORT="set_viewport",Et.CMD_SWITCH_URL="switch_url",Et.CMD_SWITCH_INDEX="switch_index",Et.CMD_START_RECORD="start_record",Et.CMD_STOP_RECORD="stop_record",Et.CMD_SWITCH_AUDIO="switch_audio",Et.CMD_SWITCH_TALK="switch_talk",Et.CMD_SET_STREAM_MODE="set_mode",Et.CMD_SET_STREAM_DELAY="set_delay",Et.CMD_PTZ_CONTROL="req_ptz_ctl",Et.CMD_PTZ_CONTROL_3D="req_ptz_ctl3D",Et.CMD_OPEN_DEVICE="open_device",Et.CMD_QUERY_RECORD="query_record",Et.CMD_PLAY_RECORD="play_record",Et.CMD_STOP_STREAM="stop_stream",Et.CMD_PAUSE_STREAM="pause_stream",Et.CMD_RESUME_STREAM="resume_stream",Et.CMD_SET_SPEED="set_speed",Et.CMD_PLAY_STATE="play_state",Et.CMD_STREAM_STATE="stream_state",Et.CMD_CHANGE_DIRECTION="change_direction",Et.SB_CMD_SPEED="speed",Et.SB_CMD_STREAM_STATUS="stream_status",Et.SB_CMD_INFO="info",Et.SB_CMD_STREAM_SIZE="stream_size",Et.SB_CMD_RECORD_STATE="record_state",Et.SB_CMD_AUDIO_STATE="audio_state",Et.SB_CMD_RES_SNAPSHOT="res_snapshot",Et.SB_CMD_PLAY_STATE="play_state",function(t){t[t.NONE=0]="NONE",t[t.JPEG_VIDEO_LAYER=1]="JPEG_VIDEO_LAYER",t[t.YUV_VIDEO_LAYER=2]="YUV_VIDEO_LAYER",t[t.FACE_TRACK_LAYER=3]="FACE_TRACK_LAYER",t[t.BODY_POINT_LAYER=4]="BODY_POINT_LAYER",t[t.ACTION_IDENT_LAYER=5]="ACTION_IDENT_LAYER",t[t.FACE_ATTR_LAYER=6]="FACE_ATTR_LAYER",t[t.FACE_RECT_LAYER=7]="FACE_RECT_LAYER",t[t.BODY_RECT_LAYER=8]="BODY_RECT_LAYER",t[t.EXT_LAYER=9]="EXT_LAYER"}(kt||(kt={})),function(t){t[t.FACE_SNAP=0]="FACE_SNAP",t[t.FACE_RECOGNITION=1]="FACE_RECOGNITION",t[t.BODY_RECOGNITION=2]="BODY_RECOGNITION",t[t.ACTION_RECOGNITION=3]="ACTION_RECOGNITION",t[t.FACE_COMPARE=4]="FACE_COMPARE"}(St||(St={})),function(t){t[t.FACE_RECT=1e4]="FACE_RECT",t[t.BODY_RECT=10001]="BODY_RECT",t[t.FACE_RECT_ATTR=10002]="FACE_RECT_ATTR",t[t.BODY_RECT_ATTR=10003]="BODY_RECT_ATTR",t[t.ACTION_RECOGNIZE=10004]="ACTION_RECOGNIZE",t[t.BODY_POINTS=10005]="BODY_POINTS",t[t.FACE_SNAP_ATTR=10006]="FACE_SNAP_ATTR",t[t.BODY_SNAP_ATTR=10007]="BODY_SNAP_ATTR",t[t.MOVE_RECOGNIZE=10008]="MOVE_RECOGNIZE",t[t.FACE_COMPARE=10012]="FACE_COMPARE"}(Ct||(Ct={}));var _t,It=function(){function t(e,n){o(this,t),this.exRenderCallback=null,this.box=e,this.jpegLayer=null,this.yuvLayer=null,this.layers={},this.errorElement=null,this.errorTD=null,this.left=0,this.top=0,this.width=0,this.height=0,this.subscribeCallback=n,this.faceSnapQueue=[],this.faceRecognitionQueue=[],this.bodyRecognitionQueue=[],this.actionRecognitionQueue=[],this.imageCache=new it,this.syncs=[],this.trackIdFilters={},this.renderHandler=null,this.isShow=!0}return l(t,[{key:"initLayer",value:function(t){var e=this,n=null,i=null;return kt.JPEG_VIDEO_LAYER===t?((n=new $).setAsync(25,(function(t,n,i){e.sync(t,n,i)})),i=new rt(this.box,"vatrender"),this.jpegLayer=i):kt.YUV_VIDEO_LAYER===t&&((n=new nt).setAsync(25,(function(t,n,i){e.sync(t,n,i)})),i=new rt(this.box,"vatrender"),this.yuvLayer=i),!(null===n||null===i||!i.setupRender(n)||(this.layers[t]=i,i.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?n.setFilter(this.trackIdFilters[t]):this.trackIdFilters[kt.NONE]?n.setFilter(this.trackIdFilters[kt.NONE]):n.setFilter(null),0))}},{key:"isYuv",value:function(){return null!==this.yuvLayer}},{key:"putExtData2",value:function(t,e,n){var i=this.renderHandler;if(null!==i&&!i.filter(t,n,e))return!1;var r=this.layers[t];if(r)r.putData(t,e,n);else if(this.isShow){var o=new vt,a=at.DEFAULT_DURATION;if(null!==this.renderHandler){var s=this.renderHandler.getDuration(t);null!=s&&(a=s)}if(!(r=this.createExtLayer(a)).setupRender(o))return!1;this.layers[t]=r,r.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?o.setFilter(this.trackIdFilters[t]):this.trackIdFilters[0]?o.setFilter(this.trackIdFilters[0]):o.setFilter(null),null!==this.renderHandler&&o.setHandler(this.renderHandler),r.putData(t,e,n)}return!0}},{key:"removeLayer",value:function(t){var e=this.layers[t];if(e){this.layers[t]=null,e.destroy();for(var n=0;n<this.syncs.length;n++)if(this.syncs[n]===e){this.syncs[n]=this.syncs[0],this.syncs.shift();break}}}},{key:"putFrame",value:function(t,e,n){gt.YUV420===t?null!==this.yuvLayer&&this.yuvLayer.putData(2,e,n):gt.YUV===t?null!==this.yuvLayer&&this.yuvLayer.putData(1,e,n):gt.JPEG===t&&null!==this.jpegLayer&&this.jpegLayer.putData(0,e,n)}},{key:"putData",value:function(t){var e=new Uint32Array(t,0,2);if(3774863615===e[0]&&1179258880===e[1]){var n=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);null!==this.jpegLayer&&this.jpegLayer.putData(0,t,n)}else if(512==(65535&e[0]))null!==this.yuvLayer&&this.yuvLayer.putData(2,t,0);else if(1112954201===e[0]){var i=this.getUint64(new DataView(t,8,8),0);null!==this.yuvLayer&&this.yuvLayer.putData(1,t.slice(4),i)}else if(827611205===e[0]){var r=this.getUint64(new DataView(t,12,8),0);if(200===e[1])this.putExtData2(e[1],t.slice(8),r);else if(201===e[1]){var o=this.parseSnap(t.slice(8));o&&this.subscribeCallback(St.FACE_SNAP,o)}}else if(844388421===e[0]){var a=this.getUint64(new DataView(t,8,8),0),s=t.slice(16);if(Ct.FACE_SNAP_ATTR===e[1])this.subscribeCallback(St.FACE_RECOGNITION,this.parseFaceRecognition(s));else if(Ct.BODY_SNAP_ATTR===e[1])this.subscribeCallback(St.BODY_RECOGNITION,this.parseBodyRecognition(s));else if(Ct.FACE_COMPARE===e[1])this.subscribeCallback(St.FACE_COMPARE,this.parseFaceComparison(s));else if(!this.putExtData2(e[1],s,a))return;if(Ct.ACTION_RECOGNIZE===e[1]){var l=this.parseActions(s);l.length>0&&this.putNotifyData(this.actionRecognitionQueue,St.ACTION_RECOGNITION,l,a)}}}},{key:"stopView",value:function(){for(var t in this.isShow=!1,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.stopView()}}},{key:"restoreView",value:function(){for(var t in this.isShow=!0,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.restoreView()}}},{key:"move",value:function(t,e,n,i){for(var r in this.left=t,this.top=e,this.width=n,this.height=i,this.layers)if(this.layers.hasOwnProperty(r)){var o=this.layers[r];o&&o.move(t,e,n,i)}}},{key:"getImage",value:function(t,e){return null!==this.yuvLayer?this.yuvLayer.getImage(t,e):null!==this.jpegLayer&&this.jpegLayer.getImage(t,e)}},{key:"showError",value:function(t){null!==t&&""!==t?(this.stopView(),null==this.errorElement&&this.createErrorElement(),this.errorTD&&(this.errorTD.innerText=t)):null!=this.errorElement?(this.box.removeChild(this.errorElement),this.errorElement=null,this.errorTD=null,this.restoreView(),this.reload()):this.restoreView()}},{key:"setTrackIdFilter",value:function(t,e){if(this.trackIdFilters[t]=e,kt.NONE===t){for(var n in this.layers)if(this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setFilter(e)}for(var o in this.trackIdFilters)this.trackIdFilters.hasOwnProperty(o)&&(this.trackIdFilters[o]=e)}else if(this.layers[t]&&this.layers.hasOwnProperty(t)){var a=this.layers[t].getRender();null!==a&&a.setFilter(e)}}},{key:"setExtRenderHandler",value:function(e){for(var n in this.renderHandler=e,this.layers)if(parseInt(n,10)>=t.EXT_COMMAND_BEGIN&&this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setHandler(e)}}},{key:"setExtRenderCallback",value:function(t){this.exRenderCallback=t;var e=this.layers[3];if(!e){var n=new vt;if(!(e=this.createExtLayer(40)).setupRender(n))return;this.layers[3]=e,e.move(this.left,this.top,this.width,this.height)}}},{key:"createExtLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at.DEFAULT_DURATION,e=new at(this.box,"vat-exrender",t);return this.syncs.push(e),e.setSync(!0),e}},{key:"createErrorElement",value:function(){this.errorElement=document.createElement("div"),this.errorElement.classList.add("vat-error");var t=document.createElement("table"),e=document.createElement("tr"),n=document.createElement("td");e.appendChild(n),t.appendChild(e),this.errorElement.appendChild(t),this.errorTD=n,this.box.appendChild(this.errorElement)}},{key:"reload",value:function(){this.move(this.left,this.top,this.width,this.height)}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}},{key:"parseSnap",value:function(t){var e=new DataView(t,0,56),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=this.getUint64(e,12),o=e.getFloat32(28,!0),a=e.getUint32(32,!0),s=e.getUint32(36,!0),l=e.getUint32(40,!0),c=e.getUint32(44,!0),u=0,h=48;n>=.2&&(u=e.getUint32(48,!0),h+=4);var d=0;n>=.3&&(d=e.getUint32(h,!0),h+=4);var f={id:r,time:i,score:o,x:a,y:s,w:l,h:c,trackId:u,image:this.imageCache.getUrl(t.slice(h)),channel:d,alive:!0};return setTimeout((function(){URL.revokeObjectURL(f.image),f.alive=!1}),6e3),f}},{key:"sync",value:function(t,e,n){if(this.exRenderCallback){var i=this.layers[3];if(i){var r=i.getCtx();r&&this.exRenderCallback(t,r,e,n)}}}},{key:"putNotifyData",value:function(t,e,n,i){t.push({type:e,data:n,time:i}),t.length>15&&(this.subscribeCallback(t[0].type,t[0].data),t.shift())}},{key:"syncNotifyData",value:function(t,e){for(;t.length>0&&(t.length>50||t[0].time<e||0===e);)this.subscribeCallback(t[0].type,t[0].data),t.shift()}},{key:"parseActions",value:function(t){var e=[],n=new DataView(t),i=n.getUint32(16,!0),r=(t.byteLength-20)/i;if(0===r)return[];for(var o=20;o<t.byteLength;o+=r){var a=n.getUint32(o+16,!0);e.push(a)}return e}},{key:"parseBodyRecognition",value:function(t){var e=new DataView(t),n=this.getUint64(e,4),i=e.getUint32(12,!0),r=e.getUint32(16,!0),o={sex:e.getUint8(24),age:e.getUint8(25),hairStyle:e.getUint8(26),mask:e.getUint8(27),glass:e.getUint8(28),hat:e.getUint8(29),scarf:e.getUint8(30),direct:e.getUint8(31),upperColor:e.getUint8(32),bottomColor:e.getUint8(33),upperStyle:e.getUint8(34),bottomStyle:e.getUint8(35),phone:e.getUint8(36),umbrella:e.getUint8(37),handbag:e.getUint8(38),backpack:e.getUint8(39)};return{time:n,image:this.imageCache.getUrl(t.slice(t.byteLength-r)),fullImage:"",channel:i,attr:o}}},{key:"parseFaceRecognition",value:function(t){var e=new DataView(t),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=e.getUint32(12,!0),o=e.getUint32(16,!0),a=e.getUint32(20,!0),s=e.getUint8(24),l=e.getUint8(25),c=e.getUint8(26),u=e.getUint8(27),h=0,d=0;return n>=.3&&(h=e.getUint32(32,!0),d=e.getFloat32(52,!0)),{time:i,image:this.imageCache.getUrl(t.slice(t.byteLength-o-a)),fullImage:"",channel:r,attr:{age:s,sex:l,mask:c,glass:u},imageId:h,score:d}}},{key:"parseFaceComparison",value:function(t){var e=new DataView(t),n=e.getUint32(4,!0),i=this.getUint64(e,8),r=e.getUint32(16,!0);return{channel:n,snapTime:i,attr:{age:e.getUint8(20),sex:e.getUint8(21),mask:e.getUint8(22),glass:e.getUint8(23)},snapScore:e.getFloat32(24,!0),compareScore:e.getFloat32(28,!0),faceGroupId:e.getUint32(32,!0),faceGroupType:e.getUint32(36,!0),faceId:this.getUint64(e,40),compareTime:this.getUint64(e,48),faceSnapId:this.getUint64(e,56),snapImage:this.imageCache.getUrl(t.slice(68,68+r)),faceImage:this.imageCache.getUrl(t.slice(68+r))}}}],[{key:"chooseLayerType",value:function(t){if(!At.isSupportWebGL())return kt.JPEG_VIDEO_LAYER;var e=kt.YUV_VIDEO_LAYER;return navigator.userAgent.indexOf("MSIE")>-1&&navigator.userAgent.indexOf("compatible")>-1&&(e=kt.JPEG_VIDEO_LAYER),(window.ActiveXObject||"ActiveXObject"in window)&&(e=kt.JPEG_VIDEO_LAYER),t>=16&&(e=kt.JPEG_VIDEO_LAYER),e}}]),t}();It.EXT_COMMAND_BEGIN=1e4,function(t){t[t.OK=0]="OK",t[t.UNKNOWN_ERROR=-1]="UNKNOWN_ERROR",t[t.INVALID_STATE=-2]="INVALID_STATE",t[t.NOT_LOGIN=-3]="NOT_LOGIN",t[t.INVALID_PARAM=-4]="INVALID_PARAM",t[t.NETWORK_ERROR=-5]="NETWORK_ERROR",t[t.WINDOW_ID_CONFLICT=-6]="WINDOW_ID_CONFLICT",t[t.NO_MORE_FREE_WINDOW=-7]="NO_MORE_FREE_WINDOW",t[t.NO_TASK=-8]="NO_TASK",t[t.UNSUPPORT_OPERATION=-9]="UNSUPPORT_OPERATION",t[t.CWALKSDK_ERR_NOT_SUPPORT=-20001]="CWALKSDK_ERR_NOT_SUPPORT",t[t.CWALKSDK_ERR_NOT_IMPL=-20002]="CWALKSDK_ERR_NOT_IMPL",t[t.CWALKSDK_ERR_NOT_INIT=-20003]="CWALKSDK_ERR_NOT_INIT",t[t.CWALKSDK_ERR_NOT_ENOUGH_MEM=-20005]="CWALKSDK_ERR_NOT_ENOUGH_MEM",t[t.CWALKSDK_ERR_NOT_ENOUGH_ID=-20004]="CWALKSDK_ERR_NOT_ENOUGH_ID",t[t.CWALKSDK_ERR_INVALID_ID=-20006]="CWALKSDK_ERR_INVALID_ID",t[t.CWALKSDK_ERR_INVALID_NAME=-20007]="CWALKSDK_ERR_INVALID_NAME",t[t.CWALKSDK_ERR_INVALID_PARARM=-20008]="CWALKSDK_ERR_INVALID_PARARM",t[t.CWALKSDK_FILE_NOFIND=-20009]="CWALKSDK_FILE_NOFIND",t[t.CWALKSDK_ISFINDING=-20010]="CWALKSDK_ISFINDING",t[t.CWALKSDK_NOMOREFILE=-20011]="CWALKSDK_NOMOREFILE",t[t.CWALKSDK_FILE_EXCEPTION=-20012]="CWALKSDK_FILE_EXCEPTION",t[t.CWALKSDK_ERR_URLPATH=-20013]="CWALKSDK_ERR_URLPATH",t[t.CWALKSDK_ERR_EXISTKEY=-20014]="CWALKSDK_ERR_EXISTKEY",t[t.CWALKSDK_ERR_NO_OBJECT=-20015]="CWALKSDK_ERR_NO_OBJECT",t[t.CWALKSDK_ERR_OSD_SETTEXT=-20016]="CWALKSDK_ERR_OSD_SETTEXT",t[t.CWALKSDK_ERR_OSD_TYPE=-20017]="CWALKSDK_ERR_OSD_TYPE",t[t.CWALKSDK_ERR_OSD_SHOW=-20018]="CWALKSDK_ERR_OSD_SHOW",t[t.CWALKSDK_ERR_DEFAULTPORT=-20019]="CWALKSDK_ERR_DEFAULTPORT",t[t.CWALKSDK_ERROR_LOGIN=-20020]="CWALKSDK_ERROR_LOGIN",t[t.CWALKSDK_NOMOREDATA=-20021]="CWALKSDK_NOMOREDATA",t[t.CWALKSDK_ERR_SET_PASSWORD=-20022]="CWALKSDK_ERR_SET_PASSWORD",t[t.CWALKSDK_ERR_NO_KEY=-20023]="CWALKSDK_ERR_NO_KEY",t[t.CWALKSDK_ERR_NO_VALUE=-20024]="CWALKSDK_ERR_NO_VALUE",t[t.CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED=-20025]="CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED",t[t.CWALKSDK_ERR_CREATE_HANDLE=-20026]="CWALKSDK_ERR_CREATE_HANDLE",t[t.CWALKSDK_ERR_EVENT_RESUBSCRIBE=-20027]="CWALKSDK_ERR_EVENT_RESUBSCRIBE",t[t.CWALKSDK_ERR_END_OF_FILE=-20028]="CWALKSDK_ERR_END_OF_FILE",t[t.CWALKSDK_ERR_NO_HANDLE=-20029]="CWALKSDK_ERR_NO_HANDLE",t[t.CWALKSDK_ERR_NULL_OBJECT=-20030]="CWALKSDK_ERR_NULL_OBJECT",t[t.CWALKSDK_ERR_FIRST_NOT_IFRAME=-20031]="CWALKSDK_ERR_FIRST_NOT_IFRAME",t[t.CWALKSDK_ERR_UNSUPPORTED_PLATFORM=-20032]="CWALKSDK_ERR_UNSUPPORTED_PLATFORM",t[t.CWALKSDK_ERR_BUFFER_TOO_SMALL=-20033]="CWALKSDK_ERR_BUFFER_TOO_SMALL",t[t.CWALKSDK_ERR_UNKNOWN_SERVICE=-20034]="CWALKSDK_ERR_UNKNOWN_SERVICE",t[t.CWALKSDK_ERR_NO_PRIVILEGE=-20035]="CWALKSDK_ERR_NO_PRIVILEGE",t[t.CWALKSDK_ERR_VIEW_NUM=-20036]="CWALKSDK_ERR_VIEW_NUM",t[t.CWALKSDK_ERR_DISK_FULL=-20037]="CWALKSDK_ERR_DISK_FULL",t[t.CWALKSDK_ERR_INVALID_MEM=-20038]="CWALKSDK_ERR_INVALID_MEM",t[t.CWALKSDK_ERR_ENCODER_OPEN=-20039]="CWALKSDK_ERR_ENCODER_OPEN",t[t.CWALKSDK_ERR_SP_QUERY_SEGMENT=-20040]="CWALKSDK_ERR_SP_QUERY_SEGMENT",t[t.CWALKSDK_ERR_NO_PVM_ADD=-20041]="CWALKSDK_ERR_NO_PVM_ADD",t[t.CWALKSDK_ERR_ES_UNAVAILABLE=-20042]="CWALKSDK_ERR_ES_UNAVAILABLE",t[t.CWALKSDK_ERR_AVCF_ERROR=-20043]="CWALKSDK_ERR_AVCF_ERROR",t[t.CWALKSDK_ERR_PLAY_HD=-201001]="CWALKSDK_ERR_PLAY_HD",t[t.CWALKSDK_ERR_PLAY_NEED_SLICES=-201002]="CWALKSDK_ERR_PLAY_NEED_SLICES",t[t.CWALKSDK_ERR_PLAY_FULL_SILCES=-201003]="CWALKSDK_ERR_PLAY_FULL_SILCES",t[t.CWALKSDK_ERR_PLAY_INPUT_SLICES_CB=-20004]="CWALKSDK_ERR_PLAY_INPUT_SLICES_CB",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD=-201005]="CWALKSDK_ERR_PLAY_INVALID_CMD",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH=-20007]="CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH",t[t.CWALKSDK_ERR_PLAY_INVALID_SPEED=-20006]="CWALKSDK_ERR_PLAY_INVALID_SPEED",t[t.CWALKSDK_ERR_PLAY_INVALID_CB_MODE=-20007]="CWALKSDK_ERR_PLAY_INVALID_CB_MODE",t[t.CWALKSDK_ERR_PLAY_IS_RELEASED=-201008]="CWALKSDK_ERR_PLAY_IS_RELEASED",t[t.CWALKSDK_ERR_PLAY_THREAD_STOP=-201009]="CWALKSDK_ERR_PLAY_THREAD_STOP",t[t.CWALKSDK_ERR_PLAY_REOPEN=-201010]="CWALKSDK_ERR_PLAY_REOPEN",t[t.CWALKSDK_ERR_PLAY_OPEN_AUDIO=-201011]="CWALKSDK_ERR_PLAY_OPEN_AUDIO",t[t.CWALKSDK_ERR_PLAY_START_AUDIO=-201012]="CWALKSDK_ERR_PLAY_START_AUDIO",t[t.CWALKSDK_ERR_PLAY_STOP_AUDIO=-201013]="CWALKSDK_ERR_PLAY_STOP_AUDIO",t[t.CWALKSDK_ERR_PLAY_VIDEO_INFO=-201014]="CWALKSDK_ERR_PLAY_VIDEO_INFO",t[t.CWALKSDK_WARNING_PLAY_MAX_LOCALCACH=-20015]="CWALKSDK_WARNING_PLAY_MAX_LOCALCACH",t[t.CWALKSDK_WARNING_PLAY_MIN_LOCALCACH=-20016]="CWALKSDK_WARNING_PLAY_MIN_LOCALCACH",t[t.CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED=-20017]="CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED",t[t.CWALKSDK_ERR_LOG_UNKNOWTYPE=-202001]="CWALKSDK_ERR_LOG_UNKNOWTYPE",t[t.CWALKSDK_ERR_LOG_DATA=-202002]="CWALKSDK_ERR_LOG_DATA",t[t.DCS_ERR_SS_NOT_AVAILABLE=-101001]="DCS_ERR_SS_NOT_AVAILABLE",t[t.DCS_ERR_FS_NOT_AVAILABLE=-101002]="DCS_ERR_FS_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_AVAILABLE=-101003]="DCS_ERR_PAU_NOT_AVAILABLE",t[t.DCS_ERR_DEVICE_NOT_ATTACHE_PAU=-101004]="DCS_ERR_DEVICE_NOT_ATTACHE_PAU",t[t.DCS_ERR_USER_STREAM_OVERRAGE=-101005]="DCS_ERR_USER_STREAM_OVERRAGE",t[t.DCS_ERR_PLAT_STREAM_OVERRAGE=-101006]="DCS_ERR_PLAT_STREAM_OVERRAGE",t[t.DCS_ERR_INVALID_JOSN=-101007]="DCS_ERR_INVALID_JOSN",t[t.DCS_ERR_PAU_SEND_FAILED=-101008]="DCS_ERR_PAU_SEND_FAILED",t[t.DCS_ERR_MONITOR_LOCKED=-101030]="DCS_ERR_MONITOR_LOCKED",t[t.DCS_ERR_MONITOR_CANNOT_CONTROL=-101031]="DCS_ERR_MONITOR_CANNOT_CONTROL",t[t.DCS_ERR_SESSION_NOT_FOUND=-102001]="DCS_ERR_SESSION_NOT_FOUND",t[t.DCS_ERR_FS_STREAM_BROKEN=-102002]="DCS_ERR_FS_STREAM_BROKEN",t[t.DCS_ERR_NOT_LOCAL_MONITOR=-102003]="DCS_ERR_NOT_LOCAL_MONITOR",t[t.DCS_INF_MONITOR_LOCKED=-102004]="DCS_INF_MONITOR_LOCKED",t[t.DCS_ERR_CHANNLE_DISABLED=-103001]="DCS_ERR_CHANNLE_DISABLED",t[t.DCS_ERR_PAU_DISABLED=-103002]="DCS_ERR_PAU_DISABLED",t[t.DCS_ERR_LOG_NOT_AVAILABLE=-103003]="DCS_ERR_LOG_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_OPEN=-103004]="DCS_ERR_PAU_NOT_OPEN",t[t.DCS_ERR_DCS_NOT_OPEN=-103005]="DCS_ERR_DCS_NOT_OPEN",t[t.DCS_ERR_LOCALDB_UNINIT=-103006]="DCS_ERR_LOCALDB_UNINIT",t[t.DCS_ERR_LOCALDB_EXCEPTION=-103007]="DCS_ERR_LOCALDB_EXCEPTION",t[t.DCS_ERR_CHANNEL_RECORD_EXITS=-103008]="DCS_ERR_CHANNEL_RECORD_EXITS",t[t.DCS_ERR_DCS_NOT_AVAILABLE=-103009]="DCS_ERR_DCS_NOT_AVAILABLE",t[t.DCS_ERR_AUDIOTALK_IN_USE=-103010]="DCS_ERR_AUDIOTALK_IN_USE",t[t.DCS_ERR_DEVICE_NOT_EXIST=-103011]="DCS_ERR_DEVICE_NOT_EXIST",t[t.DCS_ERR_REQUEST_PATH_EXISTED=-103012]="DCS_ERR_REQUEST_PATH_EXISTED",t[t.DCS_ERR_ROFS3S_NOT_AVAILABLE=-103013]="DCS_ERR_ROFS3S_NOT_AVAILABLE",t[t.DCS_ERR_PAU_DISCONNECT=-103014]="DCS_ERR_PAU_DISCONNECT",t[t.DCS_ERR_RESOURCESHIELD=-103015]="DCS_ERR_RESOURCESHIELD",t[t.DCS_ERR_SCAN_EXIST=-103016]="DCS_ERR_SCAN_EXIST",t[t.DCS_ERR_MACRO_EXIST=-103017]="DCS_ERR_MACRO_EXIST",t[t.DCS_ERR_ORDER_CALL=-103018]="DCS_ERR_ORDER_CALL",t[t.DCS_ERR_USER_DISABLED=-103019]="DCS_ERR_USER_DISABLED",t[t.DCS_ERR_RECORD_REUSE=-103020]="DCS_ERR_RECORD_REUSE"}(_t||(_t={}));var Tt=function(){function t(e){o(this,t),this.box=e,this.isShow=!1,this.websocket=null,this.panel=null,this.hide()}return l(t,[{key:"setWebsocket",value:function(t){this.websocket=t}},{key:"ptzControl",value:function(t,e){if(null===this.websocket)return _t.INVALID_STATE;var n=JSON.stringify({cmd:"req_ptz_ctl",ctl:t,value:e});return this.websocket&&this.websocket.send(n),_t.OK}},{key:"ptzControl3D",value:function(t,e,n,i,r){if(null===this.websocket)return _t.INVALID_STATE;if(t<0||e<0||n<0||i<0||r<0)return _t.INVALID_PARAM;if(e>1||n>1||i>1||r>1)return _t.INVALID_PARAM;var o=JSON.stringify({cmd:"req_ptz_ctl3D",direct:t,x:e,y:n,w:i,h:r});return this.websocket&&this.websocket.send(o),_t.OK}},{key:"toggle",value:function(){this.isShow?this.hide():this.show()}},{key:"show",value:function(){this.isShow=!0,this.panel||this.initElement(),this.panel&&(this.panel.style.display="block")}},{key:"hide",value:function(){this.isShow=!1,this.panel&&(this.panel.style.display="none")}},{key:"initElement",value:function(){this.panel=document.createElement("div"),this.panel.classList.add("vat-ptz-panel"),this.box.appendChild(this.panel)}}]),t}(),Dt=function(){function t(){o(this,t),this.audioCtx=null,this.gainNode=null,this.timerId=0,this.startTime=0}return l(t,[{key:"open",value:function(){this.close();var t=window,e=t.AudioContext||t.webkitAudioContext;return!!e&&(this.audioCtx=new e,!!this.audioCtx&&(this.gainNode=this.audioCtx.createGain(),this.gainNode.gain.value=1,this.gainNode.connect(this.audioCtx.destination),this.startTime=this.audioCtx.currentTime,this.audioCtx.resume(),!0))}},{key:"close",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.audioCtx&&this.audioCtx.close(),this.audioCtx=null,this.gainNode=null,this.startTime=0}},{key:"play",value:function(t){if(null!==this.audioCtx&&null!==this.gainNode){for(var e=new DataView(t,12),n=(t.byteLength-12)/2,i=this.audioCtx.createBufferSource(),r=this.audioCtx.createBuffer(1,n,8e3),o=r.getChannelData(0),a=0;a<n;a++)o[a]=e.getInt16(2*a,!0)/32768;i.buffer=r,i.connect(this.gainNode),i.start(0),this.startTime+=r.duration}}},{key:"flush",value:function(){}}]),t}();function Rt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Lt,Pt=function t(){o(this,t)};Pt.SNAPSHOT=1,Pt.ROI_RECT=2,Pt.ROI_POLYGON=4,Pt.MAXIMIZE=8,Pt.ZOOM=16,Pt.VOLUME=32,Pt.STOP=64,Pt.TALK=128,Pt.RECORD=256,Pt.ALL=65535,Pt.DEFAULT=Pt.SNAPSHOT|Pt.ROI_RECT|Pt.ROI_POLYGON|Pt.MAXIMIZE|Pt.STOP,function(t){t[t.CANVAS=0]="CANVAS",t[t.IMAGE=1]="IMAGE",t[t.YUV=2]="YUV"}(Lt||(Lt={}));var Mt=function(){function t(e,n,i){o(this,t),this.wsChannel=new Et,this.pcmPlayer=new Dt,this.id="",this.originIndex=e,this.index=e,this.span=1,this.config=i,this.httpPort=0,this.wsPort=0,this.dragLayer=null,this.status=0,this.width=0,this.height=0,this.urls=[],this.name="",this.isShowMain=!1,this.mainUrlIndex=0,this.toolBar=null,this.isDrawingROI=!1,this.drivingClosed=!0,this.roiLayer=null,this.streamWidth=0,this.streamHeight=0,this.recordIcon=null,this.isAudio=!1,this.isTalk=!1,this.toolButtons={},this.hasAudioInput=!1,this.hasAudioOutput=!1,this.delay=0,this.volume=100,this.heartTimer=0,this.streamMode=wt.AUTO,this.extStream=new q,this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),n.appendChild(this.element),this.ptzPanel=new Tt(this.element);var r=It.chooseLayerType(e);r===kt.YUV_VIDEO_LAYER?this.renderType=Lt.YUV:this.renderType=Lt.CANVAS,this.config.proxy&&this.config.proxy.length>6&&(r=kt.JPEG_VIDEO_LAYER,this.renderType=Lt.CANVAS),this.wsChannel.setFormat(Lt.YUV===this.renderType?yt.YUV:yt.JPEG);var a=this;this.layerManager=new It(this.element,(function(t,e){a.config.onExtData(a.id,t,e)})),this.layerManager.initLayer(r),this.titleBar=new F(this.element,this.config.titleBar),this.titleBar.clear(),this.initToolbar(),this.config.dragWindow&&this.createDragLayer(),this.caculateLayerShow()}return l(t,[{key:"handleChannelOpened",value:function(t,e){this.closeChannel(!1),this.initChannel(t,e)}},{key:"openExtStream",value:function(t,e,n){this.extStream.setUrl(t,e,n)}},{key:"closeExtStream",value:function(){this.extStream.setUrl("","","")}},{key:"ptzControl",value:function(t,e){return this.ptzPanel.ptzControl(t,e)}},{key:"ptzControl3D",value:function(t,e,n,i,r){return this.ptzPanel.ptzControl3D(t,e,n,i,r)}},{key:"openLiveStream",value:function(t){return null!==t.subUrl&&""!==t.subUrl&&void 0!==t.subUrl||(t.subUrl=t.url),this.id=t.id||"",this.name=t.name||"",this.titleBar.setName(this.name),(t.extUrl||t.faceSnapUrl||t.faceRectUrl)&&this.extStream.setUrl(t.faceRectUrl,t.faceSnapUrl,t.extUrl),2===this.urls.length&&this.urls[this.mainUrlIndex]===t.url&&this.urls[0===this.mainUrlIndex?1:0]===t.subUrl&&this.hasChannel()||(this.stopROI(),this.setROI([]),2===this.urls.length&&(this.urls[0]===t.url&&this.urls[1]===t.subUrl||this.urls[1]===t.url&&this.urls[0]===t.subUrl)||!0!==t.soft&&this.layerManager.stopView(),this.isShowMain?(this.mainUrlIndex=0,this.urls=[t.url,t.subUrl||""]):(this.mainUrlIndex=1,this.urls=[t.subUrl||"",t.url]),this.hasChannel()?this.wsChannel.switchUrl(this.urls[0],this.urls[1],t.soft):this.initChannel(this.wsPort,this.httpPort)),_t.OK}},{key:"restoreStream",value:function(){2===this.urls.length&&(this.isShowMain&&1===this.mainUrlIndex?(this.urls.reverse(),this.mainUrlIndex=0):this.isShowMain||0!==this.mainUrlIndex||(this.urls.reverse(),this.mainUrlIndex=1),this.initChannel(this.wsPort,this.httpPort))}},{key:"closeStream",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!1,n=this.id;this.hasChannel()&&(e=!0,this.drivingClosed=t),t&&(this.delay=0,this.streamMode=wt.AUTO,this.id=""),this.closeChannel(this.drivingClosed),this.extStream.stop(),e&&this.config.onClose(this.index,n)}},{key:"showMain",value:function(t){if(this.hasChannel()&&this.isShowMain!==t&&this.urls.length>1){var e=t?this.mainUrlIndex:0===this.mainUrlIndex?1:0;this.wsChannel.switchIndex(e)}this.isShowMain=t}},{key:"fillWindow",value:function(t){}},{key:"hasChannel",value:function(){return this.wsChannel.hasChannel()}},{key:"isDrivingClosed",value:function(){return this.drivingClosed}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.updateChildSize(),this.changeViewport()}},{key:"setSpan",value:function(t){this.span=t}},{key:"setIndex",value:function(t){this.index=t}},{key:"setROI",value:function(t){null===this.roiLayer&&(this.roiLayer=this.createROILayer()),null!==this.roiLayer&&this.roiLayer.setROI(t)}},{key:"getImage",value:function(){var t=document.createElement("canvas");return this.layerManager.getImage(t,!0),t.toDataURL("image/jpeg")}},{key:"snapshot",value:function(){this.reqSnapshot()}},{key:"startROI",value:function(t,e){return(t===H.DRAW_RECT||t===H.DRAW_POLYGON)&&(null==this.roiLayer?this.createROILayer():this.roiLayer.stop(),this.roiLayer&&this.roiLayer.start(t,e),this.caculateLayerShow(),!0)}},{key:"stopROI",value:function(){null!=this.roiLayer&&this.roiLayer.stop(),this.caculateLayerShow()}},{key:"saveROI",value:function(){return null!=this.roiLayer&&this.roiLayer.saveQuit()}},{key:"getStreamWidth",value:function(){return this.streamWidth}},{key:"getStreamHeight",value:function(){return this.streamHeight}},{key:"startRecord",value:function(t,e){return this.wsChannel.startRecord(t,e)}},{key:"stopRecord",value:function(){return this.wsChannel.stopRecord()}},{key:"switchAudio",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isAudio=t,this.isAudio?this.pcmPlayer.open():this.pcmPlayer.close(),this.toggleToolButton("volume",t),e&&this.wsChannel.switchAudio(t)}},{key:"switchTalk",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isTalk=t,this.toggleToolButton("talk",t),e&&this.wsChannel.switchTalk(t)}},{key:"setStreamMode",value:function(t){this.streamMode=t,this.wsChannel.setMode(t)}},{key:"setDelay",value:function(t){this.delay=t,this.wsChannel.setDelay(t)}},{key:"setVolume",value:function(t){this.volume=t,this.wsChannel.setVolume(t)}},{key:"setFormat",value:function(t){var e=yt.JPEG;if("jpeg"===t&&this.renderType!==Lt.CANVAS)this.layerManager.removeLayer(kt.YUV_VIDEO_LAYER),this.layerManager.initLayer(kt.JPEG_VIDEO_LAYER),this.renderType=Lt.CANVAS,e=yt.JPEG;else{if("yuv"!==t&&"yuv420"!==t||this.renderType===Lt.YUV)return!0;this.layerManager.removeLayer(kt.JPEG_VIDEO_LAYER),this.layerManager.initLayer(kt.YUV_VIDEO_LAYER),this.renderType=Lt.YUV,e=yt.YUV}return this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.wsChannel.setFormat(e),!0}},{key:"setFilterLoss",value:function(t){this.wsChannel.setFilterLoss(t)}},{key:"setTrackIdFilter",value:function(t,e){this.layerManager.setTrackIdFilter(t,e)}},{key:"setExtRenderHandler",value:function(t){this.layerManager.setExtRenderHandler(t)}},{key:"setExtRenderCallback",value:function(t){this.layerManager.setExtRenderCallback(t)}},{key:"closeChannel",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.wsChannel.close(),this.status=-1,this.titleBar.clear(),this.layerManager.showError(""),this.layerManager.stopView(),this.ptzPanel.hide(),this.showRecordIcon(!1),t&&(this.stopROI(),null!=this.roiLayer&&(this.roiLayer.destroy(),this.roiLayer=null)),this.updateChildSize(),this.caculateLayerShow(),this.streamWidth=0,this.streamHeight=0,0!==this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=0),this.switchAudio(!1,!1),this.switchTalk(!1,!1)}},{key:"initChannel",value:function(t,e){var n=this,i=this;this.wsPort=t,this.httpPort=e,i.status=0,i.titleBar.setState(F.STATE_CLOSE),i.titleBar.setName(this.name),i.titleBar.autoShow(),i.layerManager.showError(""),this.wsChannel.init(t,bt.LIVE_CHANNEL,this.config.proxy),this.wsChannel.onConnected=function(){i.titleBar.setState(F.STATE_WAITTING),i.isAudio&&i.switchAudio(!0),i.isTalk&&i.switchTalk(!0),i.setDelay(n.delay),i.setStreamMode(i.streamMode),n.changeViewport(),n.wsChannel.switchUrl(n.urls[0],n.urls[1]),n.ptzPanel.setWebsocket(n.wsChannel.getWebsocket())},this.wsChannel.onDisconnected=function(){i.titleBar.setState(F.STATE_CLOSE)},this.wsChannel.onFrame=function(t,e,i){t!==gt.PCM?n.layerManager.putFrame(t,e,i):n.pcmPlayer.play(e)},this.wsChannel.onCommand=function(t,e){Et.SB_CMD_SPEED===t?n.titleBar.setSpeed(e.speed):Et.SB_CMD_STREAM_STATUS===t?n.onStreamStatus(e.status,e.errorCode,e.secondErrorCode):Et.SB_CMD_RES_SNAPSHOT===t?null!==i.config.onSnapshot&&i.config.onSnapshot(i.id,e.data):Et.SB_CMD_STREAM_SIZE===t?(i.streamWidth=e.width,i.streamHeight=e.height):Et.SB_CMD_RECORD_STATE===t?-1===e.state?(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"failed",""+e.param)):0===e.state?(i.showRecordIcon(!0),i.config.onRecord&&i.config.onRecord(i.id,"start",""+e.param)):1===e.state&&(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"stop",""+e.param)):Et.SB_CMD_AUDIO_STATE===t?(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,!e.ainputOpen&&i.isTalk&&i.switchTalk(!1,!1),!e.aoutputOpen&&i.isAudio&&i.switchAudio(!1,!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,e.ainputOpen,e.aoutputOpen)):Et.SB_CMD_INFO===t&&(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,i.isAudio&&i.switchAudio(!1),i.isTalk&&i.switchTalk(!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,!1,!1))},this.updateChildSize(),this.caculateLayerShow()}},{key:"onStreamStatus",value:function(t,e,n){2===t?(this.titleBar.setState(F.STATE_RUNNING),this.layerManager.showError(""),null!==this.config.onRunning&&this.config.onRunning()):4===t?this.layerManager.showError(Q.STREAM_NO_DATA):5===t?8===e&&this.layerManager.showError(Q.STREAM_CONCURRENCY_LIMIT):(1===t?this.titleBar.setState(F.STATE_WAITTING):this.titleBar.setState(F.STATE_CLOSE),-1===e?this.layerManager.showError(Q.STREAM_CONNECT_FAILED):-2===e?this.layerManager.showError(Q.STREAM_NOTFOUND):-3===e?this.layerManager.showError(Q.STREAM_AUTH_FAILED):-4===e?this.layerManager.showError(Q.STREAM_UNKNOWN_ERROR):-5===e?this.layerManager.showError(Q.STREAM_PROTOCOL_ERROR):-6===e?this.layerManager.showError(Q.STREAM_DISCONNECTED):8===e?this.layerManager.showError(Q.USER_CONCURRENCY_LIMIT):-100===e?this.layerManager.showError(Q.STREAM_UNSUPPORTED):-101===e&&(-101005===n?this.layerManager.showError(Q.USER_CONCURRENCY_LIMIT):-351===n||-352===n||-353===n?this.layerManager.showError(Q.STREAM_AUTHORIZE_LIMIT):this.layerManager.showError(Q.STREAM_OPEN_FAILED))),this.config.onStreamStatus(this.id,t,e,n)}},{key:"initToolbar",value:function(){var t=this;if(null!=this.toolBar&&this.element.removeChild(this.toolBar),this.config.toolBar){this.toolBar=document.createElement("div"),this.toolBar.classList.add("vat-tool"),this.element.appendChild(this.toolBar);var e,n=Rt(this.config.toolButtons);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("volume"===i){var r=this.createToolButton("volume-off","打开声音"),o=this.createToolButton("volume-on","关闭声音");o.style.display="none",r.onclick=function(){t.switchAudio(!0)},o.onclick=function(){t.switchAudio(!1)}}else"snap"===i?this.createToolButton("snapshot","抓图").onclick=function(){t.reqSnapshot()}:"roi-rect"===i?this.createToolButton("roi-rect","ROI矩形绘图").onclick=function(){t.startROI(H.DRAW_RECT,null)}:"roi-polygon"===i?this.createToolButton("roi-polygon","ROI多点绘图").onclick=function(){t.startROI(H.DRAW_POLYGON,null)}:"maximize"===i?this.createToolButton("maximize","显示/取消最大化").onclick=function(){t.config.onZoom()}:"stop"===i?this.createToolButton("stop","停止").onclick=function(){t.closeStream()}:"ptz"===i&&(this.createToolButton("ptz","云台控制").onclick=function(){t.ptzPanel.toggle()})}}catch(t){n.e(t)}finally{n.f()}}}},{key:"showToolBar",value:function(t){null!=this.toolBar&&(this.toolBar.style.display=t?"":"none")}},{key:"showDragLayer",value:function(t){null!=this.dragLayer&&(this.dragLayer.style.display=t?"":"none")}},{key:"createDragLayer",value:function(){var e=this;null==e.dragLayer&&(this.dragLayer=document.createElement("div"),this.dragLayer.setAttribute("draggable","true"),this.dragLayer.classList.add("drag-layer"),this.dragLayer.addEventListener("dragstart",(function(n){if(e.hasChannel()&&!e.isDrawingROI){var i=document.createElement("canvas");if(i.width=e.width/e.span*.8,i.height=e.height/e.span*.8,i.style.opacity="1",i.width>300||i.height>300){var r=Math.min(300/i.width,300/i.height);i.width=i.width*r,i.height=i.height*r}e.layerManager.getImage(i,!1);var o=i.width/2,a=i.height/2;"function"!=typeof DataTransfer.prototype.setDragImage&&e.dragLayer?(e.dragLayer.style.left="".concat(n.layerX-o,"px"),e.dragLayer.style.top="".concat(n.layerY-a,"px"),e.dragLayer.style.width="".concat(i.width,"px"),e.dragLayer.style.height="".concat(i.height,"px"),e.dragLayer.appendChild(i),setTimeout((function(){e.dragLayer&&(e.dragLayer.style.left="",e.dragLayer.style.top="",e.dragLayer.style.width="",e.dragLayer.style.height="",e.dragLayer.removeChild(i))}),0)):(i.style.position="absolute",i.style.left="-999px",n.dataTransfer&&n.dataTransfer.setDragImage(i,o,a),document.body.appendChild(i),setTimeout((function(){document.body.removeChild(i)}),100)),n.dataTransfer&&n.dataTransfer.setData(t.DRAG_MIME,"vat:"+e.index)}else n.preventDefault()})),this.dragLayer.addEventListener("dragenter",(function(t){t.target.classList.add("drag-hover")})),this.dragLayer.addEventListener("dragleave",(function(t){t.target.classList.remove("drag-hover")})),this.dragLayer.addEventListener("drop",(function(n){n.preventDefault(),n.stopPropagation();var i=n.dataTransfer&&n.dataTransfer.getData(t.DRAG_MIME);return n.target.classList.remove("drag-hover"),i&&i.length>0&&e.config.onDrop&&e.config.onDrop(i,e.index),!1})),this.dragLayer.addEventListener("dragover",(function(t){t.preventDefault()})),e.element.appendChild(this.dragLayer))}},{key:"createToolButton",value:function(t,e){var n=document.createElement("a");n.title=e;var i=B.getSVG(t);return n.appendChild(i),this.toolBar&&(this.toolBar.appendChild(n),this.element.appendChild(this.toolBar),this.toolButtons[t]=n),n}},{key:"createROILayer",value:function(){var t=this;return null!=this.roiLayer?this.roiLayer:(this.roiLayer=new H(this.element,this.config.maxRoi,this.config.roiMenu),null===this.roiLayer?null:(this.roiLayer.onEscape=function(){t.stopROI()},this.roiLayer.onSave=function(e){t.stopROI(),t.config.onRoi&&t.config.onRoi(t.id,e)},this.updateChildSize(),this.roiLayer))}},{key:"updateChildSize",value:function(){this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),null!==this.roiLayer&&this.roiLayer.resize(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.titleBar.adjustWidth(this.width)}},{key:"caculateLayerShow",value:function(){!this.hasChannel()||null!==this.roiLayer&&this.roiLayer.isUserDrawing()?(this.showToolBar(!1),null!==this.roiLayer&&this.roiLayer.isUserDrawing()?this.showDragLayer(!1):this.showDragLayer(!0)):(this.showToolBar(!0),this.showDragLayer(!0))}},{key:"changeViewport",value:function(){this.wsChannel.setViewport(this.width,this.height-this.titleBar.height())}},{key:"reqSnapshot",value:function(){this.wsChannel.snapshot(0)}},{key:"showRecordIcon",value:function(t){t&&null==this.recordIcon&&(this.recordIcon=document.createElement("span"),this.recordIcon.setAttribute("class","vat-record"),this.recordIcon.style.visibility="hidden",this.element.appendChild(this.recordIcon)),null!=this.recordIcon&&(this.recordIcon.style.visibility=t?"visible":"hidden")}},{key:"toggleToolButton",value:function(t,e){var n=t+"-on",i=t+"-off";e?(this.toolButtons[n]&&(this.toolButtons[n].style.display="inline-block"),this.toolButtons[i]&&(this.toolButtons[i].style.display="none")):(this.toolButtons[n]&&(this.toolButtons[n].style.display="none"),this.toolButtons[i]&&(this.toolButtons[i].style.display="inline-block"))}}]),t}();Mt.DRAG_MIME="text",Mt.TITLE_BAR_HEIGHT=16,Mt.SB_CMD_SPEED="speed",Mt.SB_CMD_STREAM_STATUS="stream_status",Mt.SB_CMD_INFO="info",Mt.SB_CMD_STREAM_SIZE="stream_size",Mt.SB_CMD_RECORD_STATE="record_state",Mt.SB_CMD_AUDIO_STATE="audio_state",Mt.CMD_OPEN_CHANNEL="openchannel",Mt.CMD_CLOSE_CHANNEL="closechannel",Mt.CMD_SET_VIEWPORT="set_viewport",Mt.CMD_REQ_SNAPSHOT="req_snapshot",Mt.CMD_START_RECORD="start_record",Mt.CMD_STOP_RECORD="stop_record",Mt.CMD_SWITCH_AUDIO="switch_audio",Mt.CMD_SWITCH_TALK="switch_talk",Mt.CMD_SET_STREAM_MODE="set_mode",Mt.CMD_SET_STREAM_DELAY="set_delay",Mt.CMD_SET_STREAM_FORMAT="set_format",Mt.CMD_SET_VOLUME="set_volume";var Nt=n("eec4"),Bt=function(){function t(){o(this,t),this.oldWidth=0,this.oldHeight=0,this.element=null,this.erd=null,this.callback=function(){return 1}}return l(t,[{key:"watch",value:function(t,e){var n=this;return null===this.element&&(this.callback=e,this.erd=Nt(),this.erd.listenTo(t,(function(t){t.clientWidth===n.oldWidth&&t.clientHeight===n.oldHeight||(n.oldWidth=t.clientWidth,n.oldHeight=t.clientHeight,n.callback(n.oldWidth,n.oldHeight))})),!0)}},{key:"destroy",value:function(){null!==this.erd&&null!==this.element&&this.erd.uninstall(this.element),this.element=null}}]),t}();function Wt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var jt={fill:!0,dbClick:!0,dragWindow:!0,toolBar:!0,titleBar:0,onSnapshot:null,onRoi:null,maxRoi:10,border:!0,toolButtons:[],filterLoss:!0,onExtData:function(t,e,n){},onStreamStatus:function(t,e,n){},onAudioState:function(t,e,n,i,r){}},Yt={rows:2,cols:2,combines:[],streams:[]},Ht=function(){function t(e,n){var i=this;if(o(this,t),this.resizeWatcher=new Bt,this.proxy=null,this.swapWindow=function(e,n){if(e!==n){var r=i.windows[e],o=i.windows[n];r.setSpan(o.span),o.setSpan(r.span),r.setIndex(n),o.setIndex(e),i.windows[e]=o,i.windows[n]=r;var a=o.element.style.width,s=o.element.style.height;o.element.style.width=r.element.style.width,o.element.style.height=r.element.style.height,r.element.style.width=a,r.element.style.height=s,i.updateLayout(i.layout.rows,i.layout.cols,i.layout.combines),i.config.onWinOp&&i.config.onWinOp(e,r.id,t.WIN_OP_SWAP)}},this.showMaxWindow=function(t){var e=i.findTDElement(t);if(null!=e){for(var n=i.getTDIndex(e);i.tableLayout.firstChild;)i.tableLayout.firstChild.nodeName,i.tableLayout.removeChild(i.tableLayout.firstChild);i.maxWindow=i.windows[n],e.removeChild(i.maxWindow.element);var r=document.createElement("td");r.setAttribute("rowSpan","1"),r.setAttribute("colSpan","1"),r.setAttribute("windex",""+n),r.setAttribute("max","true"),r.classList.add("no-border"),r.style.borderWidth="0px",r.appendChild(i.maxWindow.element),i.config.dbClick&&(r.ondblclick=function(t){t.stopPropagation(),t.preventDefault(),i.showNormalWindow()});var o=document.createElement("tr");o.appendChild(r),i.tableLayout.appendChild(o),i.adjustSize(),i.onMaximize(i.maxWindow.id,n)}},this.onTDClick=function(t){null==i.maxWindow&&i.selectWindow(t.target)},this.selectWindow=function(e){var n=i.findTDElement(e);if(null!=n){if(i.selectedIndex>=0&&i.selectedIndex<i.windowCount){var r=i.findTDElement(i.windows[i.selectedIndex].element);null!=r&&r.classList.remove("selected")}i.windowCount>1&&n.classList.add("selected");var o=i.selectedIndex;i.selectedIndex=i.getTDIndex(n),i.config.onWinOp&&o!==i.selectedIndex&&i.config.onWinOp(i.selectedIndex,i.windows[i.selectedIndex].id,t.WIN_OP_SELECT)}},this.dropWindow=function(e,n){if(0===e.indexOf("vat:")){if(i.config.dragWindow){var r=parseInt(e.substr(4),10);i.swapWindow(r,n)}}else{if(0===e.indexOf("rtsp:")){var o={url:e};i.openLiveStream(n,o)}else if(0===e.indexOf("vat-live:")){var a=t.parseLiveStreamParam(e.substr(9));i.openLiveStream(n,a)}i.selectWindow(i.windows[n].element),i.config.onWinOp&&i.config.onWinOp(n,i.windows[n].id,t.WIN_OP_DROP)}},this.windows=[],this.layout=zt({},Yt),this.config=zt(zt({},jt),n),this.windowCount=0,this.maxWindow=null,this.selectedIndex=0,this.wsPort=0,null==this.config.fill&&(this.config.fill=!0),this.onChannelStatus=function(t,e){},this.onMaximize=function(t,e){return 0},!e)throw new Error("bad parentElement argument: "+e);var r=e;this.tableLayout=document.createElement("table"),this.tableLayout.setAttribute("cellspacing","1"),this.config.border||(this.tableLayout.style.borderWidth="0"),r.appendChild(this.tableLayout);var a=this;this.tableLayout.oncontextmenu=function(t){return!1},this.resizeWatcher.watch(r,(function(t,e){a.adjustSize(t,e)}))}return l(t,[{key:"getWsPort",value:function(){return this.wsPort}},{key:"setWsPort",value:function(t,e){this.wsPort=t,this.proxy=e;var n,i=Wt(this.windows);try{for(i.s();!(n=i.n()).done;)n.value.wsPort=this.wsPort}catch(t){i.e(t)}finally{i.f()}}},{key:"setLayout",value:function(t){if(0===this.wsPort)return _t.INVALID_STATE;if("number"!=typeof t.rows||"number"!=typeof t.cols||"object"!==h(t.combines))return _t.INVALID_PARAM;if(this.layout=zt(zt({},Yt),t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),void 0===this.layout.streams||null===this.layout.streams)this.layout.streams={};else for(var e=0;e<this.windowCount;e++)this.layout.streams[e]&&this.openLiveStream(e,this.layout.streams[e]);return _t.OK}},{key:"getLayout",value:function(){for(var t={},e=0;e<this.windowCount;e++){var n=this.windows[e];n.hasChannel()&&(t[e]={id:n.id,name:n.name,url:n.urls.length>0?n.urls[0]:"",subUrl:n.urls.length>1?n.urls[1]:"",hasChannel:n.hasChannel()})}var i=zt({},this.layout);return i.streams=t,i}},{key:"toggleWindow",value:function(){if(null==this.maxWindow){var t=this._check_index(-1,!0);this.showMaxWindow(this.windows[t].element)}else this.showNormalWindow()}},{key:"openExtStream",value:function(t,e,n,i){this._check_state(),t=this._check_index(t,!0),this.windows[t].openExtStream(e,n,i)}},{key:"closeExtStream",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].closeExtStream()}},{key:"openLiveStream",value:function(t,e){if(null===e.url||""===e.url)return _t.INVALID_PARAM;if(this._check_state(),-2===t)for(var n=0;n<this.windowCount;n++){var i=(this.selectedIndex+n)%this.windowCount;if(!this.windows[i].hasChannel()){t=i,this.selectWindow(this.windows[i].element);break}}if(-2===t)return _t.NO_MORE_FREE_WINDOW;if(e.id&&""!==e.id)for(var r=0;r<this.windowCount;r++)if(this.windows[r].id===e.id)return _t.WINDOW_ID_CONFLICT;return t=this._check_index(t,!0),this.windows[t].openLiveStream(e),!0===e.realtime&&this.windows[t].setStreamMode(wt.REALTIME),"number"==typeof e.delay&&e.delay>0&&this.windows[t].setDelay(e.delay),t}},{key:"ptzControl",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl(e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,o){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl3D(e,n,i,r,o)}},{key:"select",value:function(t){this._check_state(),t=this._check_index(t,!1),this.selectWindow(this.windows[t].element)}},{key:"setROI",value:function(t,e){this._check_state(),t=this._check_index(t,!0),null==e&&(e=[]);var n,i=Wt(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.width<=0||r.height<=0)throw new Error("diagrams width and height must be grater that 0");if(r.type===H.DRAW_RECT){if(null===r.points||2!==r.points.length)throw new Error("diagram rect need two points")}else{if(r.type!==H.DRAW_POLYGON)throw new Error("diagram bad type");if(null===r.points||r.points.length<2)throw new Error("diagram polygon least 3 points")}}}catch(t){i.e(t)}finally{i.f()}this.windows[t].setROI(e)}},{key:"startROI",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!0),this.windows[t].startROI(e,n)}},{key:"stopROI",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].stopROI()}},{key:"saveROI",value:function(t){return this._check_state(),t=this._check_index(t,!0),this.windows[t].saveROI()}},{key:"closeStream",value:function(t){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].closeStream()}},{key:"closeStreams",value:function(t){if(void 0===t){var e,n=Wt(this.windows);try{for(n.s();!(e=n.n()).done;)e.value.closeStream()}catch(t){n.e(t)}finally{n.f()}}else if(t instanceof Array){var i,r=Wt(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;o>=0&&o<this.windowCount&&this.windows[o].closeStream()}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getStreamInfo",value:function(t){var e={width:0,height:0};return t=this._check_index(t,!0),null!==this.windows[t]&&(e.width=this.windows[t].getStreamWidth(),e.height=this.windows[t].getStreamHeight()),e}},{key:"fillWindow",value:function(t,e){this._check_index(t,!0);for(var n=0;n<this.windowCount;n+=1)-1!==t&&t!==n||!this.windows[n]||this.windows[n].fillWindow(e)}},{key:"showFullscreen",value:function(){var t=this.tableLayout.parentElement;if(t.requestFullscreen)t.requestFullscreen().catch((function(){}));else if(t.mozRequestFullScreen)t.mozRequestFullScreen();else if(t.webkitRequestFullscreen)t.webkitRequestFullscreen();else{if(!t.msRequestFullscreen)return!1;t.msRequestFullscreen()}return!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}}},{key:"snapshot",value:function(t){t=this._check_index(t,!0),this.windows[t].snapshot()}},{key:"getImage",value:function(t){return t=this._check_index(t,!0),this.windows[t].getImage()}},{key:"stop",value:function(){this.resizeWatcher.destroy();var t,e=Wt(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.closeStream()}catch(t){e.e(t)}finally{e.f()}}},{key:"resize",value:function(){this.adjustSize()}},{key:"indexOf",value:function(t){if(null==t)return-1;for(var e=0;e<this.windowCount;e++)if(this.windows[e].id===t)return e;return-1}},{key:"startRecord",value:function(t,e,n){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].startRecord(e,n)}},{key:"stopRecord",value:function(t){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].stopRecord()}},{key:"switchAudio",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchAudio(e)}},{key:"switchTalk",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchTalk(e)}},{key:"setStreamMode",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setStreamMode(e)}},{key:"setDelay",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setDelay(e)}},{key:"setFormat",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setFormat(e)}},{key:"showBorder",value:function(t){this.tableLayout.style.borderWidth=t?"null":"0"}},{key:"setTrackIdFilter",value:function(t,e,n){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setTrackIdFilter(e,n)}},{key:"setExtRenderHandler",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderHandler(e)}},{key:"setExtRenderCallback",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderCallback(e)}},{key:"showCheckError",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateLayout(0,0,{});var n=document.createElement("tr"),i=document.createElement("td");i.className="check_error";var r=document.createElement("div");if(r.innerText=t,i.appendChild(r),e){var o=document.createElement("a");o.className="vat-down",o.innerHTML="<span>".concat(Q.PLUGIN_DOWNLOAD,"</span>"),o.href=this.config.pluginUrl?this.config.pluginUrl:"#",i.appendChild(o)}n.appendChild(i),this.tableLayout.appendChild(n)}},{key:"_check_state",value:function(){if(0===this.wsPort)throw new Error("invalid state, plugin not initialized")}},{key:"_check_index",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===t)throw new Error("bad parameter index");if(e&&-1===t)return this.selectedIndex;if(t<0||t>=this.windowCount)throw new Error("index out of range");return t}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var o=parseInt(this.tableLayout.cellSpacing,10),a=this.tableLayout.querySelector("td");if(a){var s=2;e=(e-s-o*(r+1)-t.getBDWx2(a)*r)/r,n=(n-s-o*(i+1)-t.getBDHx2(a)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var l=o+t.getBDHx2(a),c=o+t.getBDWx2(a);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,l,c,1),this.maxWindow.showMain(!0);else for(var u=i*r,h=u/4,d=0;d<this.windowCount;d+=1)if(this.windows[d]){this.windows[d].adjustSize(e,n,l,c,-1),Math.pow(this.windows[d].span,2)>=h?this.windows[d].showMain(!0):this.windows[d].showMain(!1);var f=this.findTDElement(this.windows[d].element);f&&(f.style.height="0px")}}}}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},o=0,a=0;a<this.windowCount;a++)this.windows[a].element.parentElement&&this.windows[a].element.parentElement.removeChild(this.windows[a].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var s=0;s<t;s++){for(var l=document.createElement("tr"),c=0;c<e;c++){var u=s*e+c;if(null==r[u]){var h=n[u];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(s+d)*e+c+f]=1;var p=document.createElement("td");if(p.setAttribute("rowSpan",""+h),p.setAttribute("colSpan",""+h),p.setAttribute("windex",""+o),0===o&&t*e==1&&(p.classList.add("no-border"),p.style.borderWidth="0px"),l.appendChild(p),this.config.dbClick&&(p.ondblclick=function(t){t.stopPropagation(),t.preventDefault(),i.showMaxWindow(t.target)}),p.onclick=this.onTDClick,o<this.windows.length){var m=this.windows[o];m.element.style.width="1px",m.element.style.height="1px",p.appendChild(m.element),this.windows[o]=m,m.setIndex(o),m.setSpan(h)}else this.createWindow(o,p,h);o++}}this.tableLayout.appendChild(l)}for(var v=o;v<this.windowCount;v++)this.windows[v].closeStream(!1);this.windowCount=o,this.adjustSize();for(var g=0;g<o;g++)this.windows[g].isDrivingClosed()||this.windows[g].hasChannel()||this.windows[g].restoreStream();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.windows[this.selectedIndex].element))}},{key:"createWindow",value:function(e,n,i){var r=this,o={dragWindow:this.config.dragWindow,toolBar:this.config.toolBar,toolButtons:this.config.toolButtons,titleBar:this.config.titleBar,onSnapshot:void 0===this.config.onSnapshot?null:this.config.onSnapshot,onDrop:this.dropWindow,onRoi:void 0===this.config.onRoi?null:this.config.onRoi,maxRoi:this.config.maxRoi,onZoom:function(){null==r.maxWindow?r.showMaxWindow(a.element):r.showNormalWindow()},onRunning:function(){},onClose:function(e,n){r.config.onWinOp&&r.config.onWinOp(e,n,t.WIN_OP_CLOSE)},onExtData:this.config.onExtData,roiMenu:!0===this.config.roiMenu,onRecord:void 0===this.config.onRecord?null:this.config.onRecord,onStreamStatus:this.config.onStreamStatus,onAudioState:this.config.onAudioState,proxy:this.proxy},a=new Mt(e,n,o);a.fillWindow(!0===this.config.fill),a.setSpan(i),void 0!==this.config.filterLoss&&a.setFilterLoss(this.config.filterLoss),a.wsPort=this.wsPort,this.windows.push(a)}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize(),this.onMaximize(null,-1)}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"getTDIndex",value:function(t){return null==t?-1:parseInt(t.getAttribute("windex")||"-1",10)}}],[{key:"getBDWx2",value:function(t){return t?t.offsetWidth-t.clientWidth:0}},{key:"getBDHx2",value:function(t){return t?t.offsetHeight-t.clientHeight:0}},{key:"parseLiveStreamParam",value:function(t){var e={};try{e=JSON.parse(t)}catch(e){throw Error("cannot parse param:"+t)}if(!e.url)throw Error("require param 'url'");return e}}]),t}();Ht.MAX_CHANNEL_COUNT=9,Ht.MIN_WIDTH=10,Ht.MIN_HEIGHT=10,Ht.WIN_OP_CLOSE="close",Ht.WIN_OP_SELECT="select",Ht.WIN_OP_SWAP="swap",Ht.WIN_OP_DROP="drop";var Vt=function(){function t(e,n){var i=this;o(this,t),this.ip="",this.port=0,this.username="",this.password="",this.isLogin=!1,this.loginCB=function(){return 0},this.listCameraCB=function(){return 0},this.wsPort=e,this.websocket=At.createWebsocket(e,n);var r=this;this.websocket.onerror=function(){i.isLogin=!1,r.loginCB(!1,_t.NETWORK_ERROR)},this.websocket.onmessage=function(t){r.onMessage(t)},this.websocket.onopen=function(){r.onOpen()}}return l(t,[{key:"loginByUrl",value:function(t){var e=t.indexOf(":");if(e<0)throw new Error("bad server info");var n=t.lastIndexOf("@");if(n<0)throw new Error("bad server info");var i=t.indexOf(":",n+1);if(i<0)throw new Error("bad server info");var r=t.substring(0,e),o=t.substring(e+1,n),a=t.substring(n+1,i),s=parseInt(t.substring(i+1),10);return this.login(a,s,r,o)}},{key:"login",value:function(t,e,n,i){return this.ip=t,this.port=e,this.username=n,this.password=i,this.websocket.readyState!==WebSocket.OPEN?_t.INVALID_STATE:(this.sendLoginCmd(),_t.OK)}},{key:"destroy",value:function(){null!==this.websocket&&(this.websocket.onclose=null,this.websocket.onerror=null,this.websocket.close())}},{key:"listCameras",value:function(){return this.websocket.readyState!==WebSocket.OPEN?_t.INVALID_STATE:(this.websocket.send(JSON.stringify({cmd:"req_list_camera"})),_t.OK)}},{key:"onMessage",value:function(t){var e=JSON.parse(t.data);"res_login"===e.cmd?(this.loginCB(e.success,e.code),!0===e.success&&(this.isLogin=!0)):"res_list_camera"===e.cmd&&this.listCameraCB(e.data)}},{key:"onOpen",value:function(){this.ip.length>0&&this.port>0&&this.sendLoginCmd()}},{key:"sendLoginCmd",value:function(){var t={cmd:"req_login",ip:this.ip,port:this.port,username:this.username,password:this.password};this.websocket.send(JSON.stringify(t))}}]),t}(),Kt=function t(){o(this,t)};Kt.WS_PORT=3457,Kt.CMD_INIT="init",Kt.CMD_OPEN_CHANNEL="openchannel",Kt.CMD_CLOSE_CHANNEL="closechannel",Kt.CMD_CHANNEL_STATUS="channel.status",Kt.CMD_ERROR="error",Kt.CMD_OPEN_FOLDER="open_folder";var Gt=n("b697"),qt=n.n(Gt),Qt=n("9224"),Jt=Qt.version,Xt=Qt.vatversion,Zt=function(){function t(e){if(o(this,t),this.serverVersion="",this.timerId=0,this.currentIp="",this.initTime=performance.now(),this.proxy=e,this.onConnectFailed=function(){return 0},this.onDisconnected=function(){return 0},this.onInitError=function(){return 0},this.onInitOk=function(){return 0},this.socketOpened=!1,this.initOk=!1,this.proxyIp=null,this.proxy){var n=this.proxy.indexOf("://"),i=this.proxy.lastIndexOf(":");this.proxyIp=n<0&&i<0?this.proxy:n<0?this.proxy.substring(0,i):i<0||n===i?this.proxy.substring(n+3):this.proxy.substring(n+3,i)}this.websocket=this.initWebSocket("127.0.0.1")}return l(t,[{key:"isProxy",value:function(){return null!==this.proxy&&this.currentIp===this.proxy}},{key:"getConnectedProxyIp",value:function(){return this.isProxy()?this.proxyIp:null}},{key:"close",value:function(){this.clearTimer(),At.closeWebsocket(this.websocket)}},{key:"openFolder",value:function(t){if(!this.isProxy()){var e=JSON.stringify({cmd:Kt.CMD_OPEN_FOLDER,folder:t});this.websocket.send(e)}}},{key:"onError",value:function(){var t=this;performance.now()-this.initTime<200?window.setTimeout((function(){t.websocket=t.initWebSocket("127.0.0.1")}),200):this.handleDisconnect()}},{key:"initWebSocket",value:function(t){var e=this;this.currentIp=t,this.socketOpened=!1;var n=0===t.indexOf("ws://")||0===t.indexOf("wss://")?t:"ws://".concat(t,":").concat(Kt.WS_PORT),i=new WebSocket(n);return i.onerror=i.onclose=function(){e.onError()},i.onopen=function(){e.clearTimer(),e.socketOpened=!0;var t=JSON.stringify({cmd:Kt.CMD_INIT,version:Jt});e.websocket.send(t)},i.onmessage=function(t){var n=JSON.parse(t.data);if(n.cmd===Kt.CMD_INIT){e.serverVersion=n.version;var i=Xt;if(0!==n.code)At.closeWebsocket(e.websocket),e.onInitError(e.serverVersion,Q.PLUGIN_SERVICE_MISMATCH);else if(0===i.indexOf("="))if(0===qt()(n.version,i.substring(1)))e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var r=Q.get(Q.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i.substring(1)});e.onInitError(e.serverVersion,r)}else if(qt()(n.version,i)>=0)e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var o=Q.get(Q.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i});e.onInitError(e.serverVersion,o)}}else n.cmd===Kt.CMD_CHANNEL_STATUS?e.onInitOk(e.serverVersion,n.ws_port):(n.cmd,Kt.CMD_ERROR)},this.initTimer(),i}},{key:"initTimer",value:function(){var t=this;this.clearTimer(),this.timerId=window.setTimeout((function(){t.handleDisconnect()}),1e3)}},{key:"clearTimer",value:function(){0!==this.timerId&&(clearTimeout(this.timerId),this.timerId=0)}},{key:"handleDisconnect",value:function(){if(!this.socketOpened&&this.proxy&&this.currentIp!==this.proxy&&this.proxy.length>6)return At.closeWebsocket(this.websocket),void(this.websocket=this.initWebSocket(this.proxy));this.socketOpened?this.onDisconnected():this.onConnectFailed(),this.socketOpened=!1}}]),t}();function $t(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var re={},oe=function(t){u(n,t);var e=ie(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).api=null,t.dcs=null,t.loaded=!1,t.wsInitChannel=null,t}return l(n,[{key:"login",value:function(t,e,n,i){return null===this.api?_t.INVALID_STATE:this.getDcs().login(t,e,n,i)}},{key:"setLayout",value:function(t){this.api&&this.api.setLayout(t)}},{key:"getLayout",value:function(){return this.api?this.api.getLayout():null}},{key:"toggleWindow",value:function(){this.api&&this.api.toggleWindow()}},{key:"openStream",value:function(t,e,n,i){return this.api?this.api.openLiveStream(t,{url:e,subUrl:n,name:i}):_t.INVALID_STATE}},{key:"openStreamEx",value:function(t,e){return this.api?this.api.openLiveStream(t,e):_t.INVALID_STATE}},{key:"ptzControl",value:function(t,e,n){return null===this.api?_t.INVALID_STATE:this.api.ptzControl(t,e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,o){return null===this.api?_t.INVALID_STATE:this.api.ptzControl3D(t,e,n,i,r,o)}},{key:"selectWindow",value:function(t){this.api&&this.api.select(t)}},{key:"setROI",value:function(t,e){this.api&&this.api.setROI(t,e)}},{key:"startROI",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==this.api&&this.api.startROI(t,e,n)}},{key:"stopROI",value:function(t){this.api&&this.api.stopROI(t)}},{key:"saveROI",value:function(t){return null!==this.api&&this.api.saveROI(t)}},{key:"closeStream",value:function(t){this.api&&this.api.closeStream(t)}},{key:"closeStreams",value:function(t){this.api&&this.api.closeStreams(t)}},{key:"fillWindow",value:function(t,e){this.api&&this.api.fillWindow(t,e)}},{key:"showFullscreen",value:function(){return this.api&&this.api.showFullscreen()}},{key:"exitFullscreen",value:function(){this.api&&this.api.exitFullscreen()}},{key:"getImage",value:function(t){return this.api?this.api.getImage(t):null}},{key:"snapshot",value:function(t){this.api&&this.api.snapshot(t)}},{key:"indexOf",value:function(t){return this.api?this.api.indexOf(t):_t.INVALID_STATE}},{key:"getStreamInfo",value:function(t){if(this.api)return this.api.getStreamInfo(t)}},{key:"startRecord",value:function(t,e,n){return!!this.api&&(!this.wsInitChannel||!this.wsInitChannel.isProxy())&&(void 0===n&&(n=""),this.api.startRecord(t,e,n))}},{key:"stopRecord",value:function(t){return!!this.api&&this.api.stopRecord(t)}},{key:"closeExtStream",value:function(t){if(!this.api)return!1;this.api.closeExtStream(t)}},{key:"openExtStream",value:function(t,e){if(!this.api)return!1;this.api.openExtStream(t,"","",e)}},{key:"switchAudio",value:function(t,e){this.api&&this.api.switchAudio(t,e)}},{key:"switchTalk",value:function(t,e){this.api&&this.api.switchTalk(t,e)}},{key:"setStreamMode",value:function(t,e){this.api&&this.api.setStreamMode(t,e)}},{key:"setDelay",value:function(t,e){this.api&&this.api.setDelay(t,e)}},{key:"setTrackIdFilter",value:function(t,e,n){this.api&&this.api.setTrackIdFilter(t,e,n)}},{key:"setExtRenderHandler",value:function(t,e){this.api&&this.api.setExtRenderHandler(t,e)}},{key:"setExtRenderCallback",value:function(t,e){this.api&&this.api.setExtRenderCallback(t,e)}},{key:"setMessage",value:function(t,e){Q.set(t,e)}},{key:"swapWindow",value:function(t,e){return null===this.api?_t.INVALID_STATE:t===e||t<0||e<0||t>=this.api.windowCount||e>=this.api.windowCount?_t.INVALID_PARAM:(this.api.swapWindow(t,e),_t.OK)}},{key:"openFolder",value:function(t){null!=this.wsInitChannel&&this.wsInitChannel.openFolder(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&""!==this.server&&this.loaded&&this.tryLogin()}},{key:"onBorderChange",value:function(t,e){if(!this.api)return!1;this.api.showBorder(t)}},{key:"mounted",value:function(){var t=this;G.token=this.$attrs.token;var e={rows:1,cols:1,combines:[],streams:{}};this.config.layout&&(e=ne({},this.config.layout));var n,i={pluginUrl:"#",onSnapshot:this.onSnapshot,onRoi:this.onROI,dbClick:!1!==this.config.dbClick,dragWindow:!1!==this.config.dragWindow,toolBar:!1!==this.config.toolBar,toolButtons:this.config.boolButtons||["volume","roi-rect","roi-polygon","snap","stop"],titleBar:!1===this.config.titleBar?0:W.ALL,maxRoi:this.config.maxRoi?this.config.maxRoi:10,onExtData:this.onExtData,onWinOp:this.onWinOp,roiMenu:!1!==this.config.roiMenu,onRecord:this.onRecord,onStreamStatus:this.onStreamStatus,onAudioState:this.onAudioState,border:!1!==this.config.border,filterLoss:this.config.filterLoss},r=$t(void 0===this.$slots.default?[]:this.$slots.default);try{for(r.s();!(n=r.n()).done;){var o=n.value;if("download-url"===o.tag){if(void 0!==o.text)i.pluginUrl=o.text;else if(void 0!==o.children&&o.children.length>0){var a,s=$t(o.children);try{for(s.s();!(a=s.n()).done;)void 0===a.value.tag&&(i.pluginUrl=o.children[0].text)}catch(t){s.e(t)}finally{s.f()}}}else if("msg"===o.tag){if(void 0===o.data||void 0===o.data.key)continue;var l="";if(void 0!==o.text)l=o.text;else if(void 0!==o.children&&o.children.length>0){var c,u=$t(o.children);try{for(u.s();!(c=u.n()).done;)void 0===c.value.tag&&void 0!==o.children[0].text&&(l=o.children[0].text)}catch(t){u.e(t)}finally{u.f()}}Q.set(""+o.data.key,l)}}}catch(t){r.e(t)}finally{r.f()}this.api=new Ht(this.$el,i),this.api.onMaximize=function(e,n){t.$emit("onMaximize",e,n)},this.wsInitChannel=new Zt(this.proxy),this.wsInitChannel.onInitOk=function(n,i){t.loaded=!0,null!==t.api&&(t.api.setWsPort(i,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp()),t.api.setLayout(e)),t.$emit("onLoad",t,n,t.wsInitChannel&&t.wsInitChannel.isProxy()),t.tryLogin()},this.wsInitChannel.onInitError=function(e,n){null!==t.api&&(t.api.showCheckError(n,void 0!==e&&e.length>0),t.$emit("onLoadFailed",n))},this.wsInitChannel.onConnectFailed=function(){null!==t.api&&(t.api.showCheckError(Q.PLUGIN_SERVICE_NOTFOUND,!0),t.$emit("onLoadFailed",Q.PLUGIN_SERVICE_NOTFOUND))},this.wsInitChannel.onDisconnected=function(){null!==t.api&&(t.api.showCheckError(Q.PLUGIN_SERVICE_DISCONNECTED,!0),t.$emit("onDisconnected",Q.PLUGIN_SERVICE_NOTFOUND))}}},{key:"beforeDestroy",value:function(){this.api&&this.api.stop(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"tryLogin",value:function(){null!==this.api&&this.server.length>0&&this.getDcs().loginByUrl(this.server)}},{key:"getDcs",value:function(){var t=this;if(null===this.dcs){if(null==this.api)throw new Error("api is null");this.dcs=new Vt(this.api.getWsPort(),null==this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp()),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)}}return this.dcs}},{key:"onSnapshot",value:function(t,e){this.$emit("onSnapshot",t,e)}},{key:"onROI",value:function(t,e){this.$emit("onRoi",t,e)}},{key:"onExtData",value:function(t,e,n){this.$emit("onExtData",t,e,n),e===St.FACE_SNAP&&this.$emit("onRecg",t,n)}},{key:"onWinOp",value:function(t,e,n){this.$emit("onWinOp",t,e,n)}},{key:"onRecord",value:function(t,e,n){this.$emit("onRecord",t,e,n)}},{key:"onStreamStatus",value:function(t,e,n,i){this.$emit("onStreamStatus",t,e,n,i)}},{key:"onAudioState",value:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)}}]),n}(v.a);p([L({default:function(){return re}})],oe.prototype,"config",void 0),p([L({default:"dark"})],oe.prototype,"theme",void 0),p([L({default:""})],oe.prototype,"server",void 0),p([L({default:""})],oe.prototype,"proxy",void 0),p([P("$attrs.server",{immediate:!0})],oe.prototype,"onServerChange",null),p([P("$attrs.border",{immediate:!0})],oe.prototype,"onBorderChange",null);var ae=oe=p([R({components:{}})],oe);function se(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n("4b0b");var le=se(ae,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:["vatlive","vatlive-"+t.theme]})}),[],!1,null,null,null).exports;function ce(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ue(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return he(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function he(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("551c");var de=function(){function t(e,n){o(this,t),this.windowCount=0,this.windows=[],this.selectedIndex=0,this.maxWindow=null,this.layout={rows:0,cols:0,combines:{}},this.enableDBClick=!1,this.resizeWatcher=new Bt,this.getBDWx2=function(t){return t?t.offsetWidth-t.clientWidth:0},this.getBDHx2=function(t){return t?t.offsetHeight-t.clientHeight:0},this.tableLayout=e,this.cbCreateWindow=n,this.fastFrameUpdateId=0,this.fastFrameUpdateCount=0}return l(t,[{key:"setup",value:function(){var t=this,e=this.tableLayout.parentElement;return null!==e&&(this.resizeWatcher.watch(e,(function(){t.update()})),!0)}},{key:"destroy",value:function(){this.resizeWatcher.destroy(),this.updateLayout(0,0,{});var t,e=ue(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.close()}catch(t){e.e(t)}finally{e.f()}this.windows=[]}},{key:"setLayout",value:function(t){this.layout=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ce(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindowCount",value:function(){return this.windowCount}},{key:"getSelectedIndex",value:function(){return this.selectedIndex}},{key:"getSelectedWindow",value:function(){return this.windows.length<=this.selectedIndex?null:this.windows[this.selectedIndex]}},{key:"update",value:function(){this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindow",value:function(t){return-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount?null:this.windows[t]}},{key:"showMaxWindow",value:function(t){var e=this;if(-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount)return!1;for(;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.maxWindow=this.windows[t],this.maxWindow.element.parentElement&&this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);var n=document.createElement("td");n.setAttribute("rowSpan","1"),n.setAttribute("colSpan","1"),n.setAttribute("windex",""+t),n.setAttribute("max","true"),n.classList.add("no-border"),n.style.borderWidth="0px",n.appendChild(this.maxWindow.element),this.enableDBClick&&(n.ondblclick=function(t){e.showNormalWindow()});var i=document.createElement("tr");return i.appendChild(n),this.tableLayout.appendChild(i),this.adjustSize(),!0}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize()}}},{key:"selectWindow",value:function(t){if(this.selectedIndex>=0&&this.selectedIndex<this.windowCount){var e=this.windows[this.selectedIndex].element.parentElement;null!=e&&e.classList.remove("selected")}if(this.windowCount>1){var n=this.windows[t].element.parentElement;null!==n&&n.classList.add("selected")}this.selectedIndex,this.selectedIndex=t,this.selectedIndex}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var o=this.tableLayout.cellSpacing;""===o&&null!==this.tableLayout.style.borderSpacing&&(o=this.tableLayout.style.borderSpacing),""===o&&(o="0");var a=parseInt(o,10),s=this.tableLayout.querySelector("td");if(s){var l=2;e=(e-l-a*(r+1)-this.getBDWx2(s)*r)/r,n=(n-l-a*(i+1)-this.getBDHx2(s)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var c=a+this.getBDHx2(s),u=a+this.getBDWx2(s);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,c,u,1),this.maxWindow.showMain(!0);else for(var h=i*r,d=h/4,f=0;f<this.windowCount;f+=1)if(this.windows[f]){this.windows[f].adjustSize(e,n,c,u,-1),Math.pow(this.windows[f].span,2)>=d?this.windows[f].showMain(!0):this.windows[f].showMain(!1);var p=this.findTDElement(this.windows[f].element);p&&(p.style.height="0px")}}}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},o=0,a=0;a<this.windowCount;a++)this.windows[a].element.parentElement&&this.windows[a].element.parentElement.removeChild(this.windows[a].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var s=0;s<t;s++){for(var l=document.createElement("tr"),c=0;c<e;c++){var u=s*e+c;if(null==r[u]){var h=n[u];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(s+d)*e+c+f]=1;var p=document.createElement("td");if(p.setAttribute("rowSpan",""+h),p.setAttribute("colSpan",""+h),p.setAttribute("windex",""+o),0===o&&t*e==1&&(p.classList.add("no-border"),p.style.borderWidth="0px"),l.appendChild(p),this.enableDBClick&&(p.ondblclick=function(t){i.showMaxWindow(i.findWinIndex(t.target))}),p.onclick=function(t){null==i.maxWindow&&i.selectWindow(i.findWinIndex(t.target))},o<this.windows.length){var m=this.windows[o];m.element.style.width="1px",m.element.style.height="1px",p.appendChild(m.element),this.windows[o]=m,m.index=o,m.span=h}else{var v=this.cbCreateWindow(o,p);v.span=h,this.windows.push(v)}o++}}this.tableLayout.appendChild(l)}for(var g=o;g<this.windowCount;g++)this.windows[g].pause();this.windowCount=o,this.adjustSize();for(var y=0;y<o;y++)this.windows[y].resume();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.selectedIndex))}},{key:"findWinIndex",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)break;t=t.parentElement}while("BODY"!==t.nodeName);if(null!==e){var n=e.getAttribute("windex");if(null!==n)return parseInt(n,10)}return-1}}]),t}();de.MAX_CHANNEL_COUNT=9,de.MIN_WIDTH=10,de.MIN_HEIGHT=10,de.WIN_OP_CLOSE="close",de.WIN_OP_SELECT="select";var fe,pe,me=function(){function t(e,n){o(this,t),this.id="",this.originIndex=e,this.index=e,this.span=1,this.width=0,this.height=0,this.name="",this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),this.extRenderDom=document.createElement("canvas"),this.extRenderDom.setAttribute("class","vatwin-extrender-canvas"),this.extRender2d=this.extRenderDom.getContext("2d"),this.element.appendChild(this.extRenderDom),n.appendChild(this.element)}return l(t,[{key:"setExtCanvasSize",value:function(t,e,n,i){this.extRenderDom.width=n,this.extRenderDom.height=i,this.extRenderDom.style.left="".concat(t,"px"),this.extRenderDom.style.top="".concat(e,"px")}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.onResize(this.width,this.height)}}]),t}();function ve(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}me.DRAG_MIME="text",me.TITLE_BAR_HEIGHT=16,me.SB_CMD_SPEED="speed",me.SB_CMD_STREAM_STATUS="stream_status",me.SB_CMD_INFO="info",me.SB_CMD_STREAM_SIZE="stream_size",me.SB_CMD_RECORD_STATE="record_state",me.SB_CMD_AUDIO_STATE="audio_state",me.CMD_OPEN_CHANNEL="openchannel",me.CMD_CLOSE_CHANNEL="closechannel",me.CMD_SET_VIEWPORT="set_viewport",me.CMD_REQ_SNAPSHOT="req_snapshot",me.CMD_START_RECORD="start_record",me.CMD_STOP_RECORD="stop_record",me.CMD_SWITCH_AUDIO="switch_audio",me.CMD_SWITCH_TALK="switch_talk",me.CMD_SET_STREAM_MODE="set_mode",me.CMD_SET_STREAM_DELAY="set_delay",me.CMD_SET_STREAM_FORMAT="set_format",function(t){t[t.STOPPED=0]="STOPPED",t[t.WAIT_RESULT=1]="WAIT_RESULT",t[t.RUNNING=2]="RUNNING",t[t.FINISHED=3]="FINISHED"}(fe||(fe={})),function(t){t[t.UNKOWN=0]="UNKOWN",t[t.DONE=1]="DONE",t[t.CONNECT_FAILED=2]="CONNECT_FAILED",t[t.NOT_FOUND=3]="NOT_FOUND"}(pe||(pe={}));var ge,ye,we=function(){function t(e,n,i){var r=this;o(this,t),this.cmdCaches=[],this.streamIndex=0,this.streamStatus=fe.STOPPED,this.direction=1,this.backwardCaches=[],this.wsChannel=new Et,this.onRecords=function(t,e,n){return 0},this.onStream=function(t){return 0},this.onLoad=function(){return 0},this.onPlayState=function(t){return 0},this.onOpenFileState=function(t){return 0},this.onStreamFinish=function(t,e){return 0},this.onSnapshot=function(t,e,n){return 0},this.wsChannel.init(e,i,n),this.wsChannel.onConnected=function(){for(;r.cmdCaches.length>0;){var t=r.cmdCaches.shift();r.wsChannel.sendRaw(t)}null!==r.onLoad&&r.onLoad()},this.wsChannel.onCommand=function(e,n){"records"===e?null!==r.onRecords&&r.onRecords(n.startTime,n.endTime,n.records):e===t.CMD_PLAY_STATE?n.index===r.streamIndex&&(n.success?r.streamStatus=fe.RUNNING:r.streamStatus=fe.STOPPED,r.onPlayState(n.success,n.code)):e===t.CMD_STREAM_STATE?(r.dispatchAllCaches(),r.onStreamFinish(n.state,n.time)):e===t.CMD_RES_SNAPSHOT?r.onSnapshot(n.data,n.path,n.time):e===t.CMD_OPEN_FILE_RES&&r.onOpenFileState(n.code,n.duration)},this.wsChannel.onFrame=function(t,e,n){r.handleFrame({type:t,data:e,time:n})},this.deviceInfo=null}return l(t,[{key:"setFormat",value:function(t){this.wsChannel.setFormat(t)}},{key:"open",value:function(t){this.deviceInfo=t,this.sendOpenDevice()}},{key:"openFile",value:function(e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ve(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t.CMD_OPEN_FILE_REQ},e);this.queueOrSend(n)}},{key:"channel",value:function(){return this.wsChannel}},{key:"play",value:function(e,n,i){var r=++this.streamIndex;this.streamStatus=fe.WAIT_RESULT,this.direction=n,this.backwardCaches=[],this.queueOrSend({cmd:t.CMD_PLAY,pos:e,direction:n,index:r}),this.setSpeed(i)}},{key:"stop",value:function(){this.streamStatus=fe.STOPPED,this.wsChannel.stop()}},{key:"pause",value:function(){this.wsChannel.pause()}},{key:"resume",value:function(t){this.wsChannel.resume(t)}},{key:"changeDirection",value:function(t){this.wsChannel.changeDirection(t)}},{key:"setSpeed",value:function(e){this.queueOrSend({cmd:t.CMD_SET_SPEED,speed:e})}},{key:"query",value:function(e,n){this.queueOrSend({cmd:t.CMD_QUERY_RECORD,startTime:e,endTime:n})}},{key:"snapshot",value:function(t){return this.wsChannel.snapshot(t)}},{key:"close",value:function(){this.wsChannel.close(),this.cmdCaches=[]}},{key:"queueOrSend",value:function(t){this.wsChannel.sendRaw(JSON.stringify(t))||this.cmdCaches.push(JSON.stringify(t))}},{key:"sendOpenDevice",value:function(){if(null===this.deviceInfo)return!1;var e={cmd:t.CMD_OPEN_DEVICE,id:this.deviceInfo.id,startTime:this.deviceInfo.minTime,endTime:this.deviceInfo.maxTime};return this.queueOrSend(e),!0}},{key:"handleFrame",value:function(t){if(this.direction>0)this.onStream(t);else if(0===this.backwardCaches.length)this.backwardCaches.push(t);else if(t.time<this.backwardCaches[0].time||this.backwardCaches.length>100){for(;this.backwardCaches.length>0;){var e=this.backwardCaches.pop();e&&this.onStream(e)}this.backwardCaches.push(t)}else this.backwardCaches.push(t)}},{key:"dispatchAllCaches",value:function(){for(;this.backwardCaches.length>0;){var t=this.backwardCaches.pop();t&&this.onStream(t)}}}]),t}();function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ae(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}we.CMD_INIT_CHANNEL="init_channel",we.CMD_OPEN_DEVICE="open_device",we.CMD_OPEN_FILE_REQ="req_open_file",we.CMD_OPEN_FILE_RES="res_open_file",we.CMD_QUERY_RECORD="query_record",we.CMD_PLAY="play",we.CMD_SET_FORMAT="set_format",we.CMD_STOP_STREAM="stop_stream",we.CMD_PAUSE_STREAM="pause_stream",we.CMD_RESUME_STREAM="resume_stream",we.CMD_SET_SPEED="set_speed",we.CMD_PLAY_STATE="play_state",we.CMD_STREAM_STATE="stream_state",we.CMD_REQ_SNAPSHOT="req_snapshot",we.CMD_RES_SNAPSHOT="res_snapshot",we.CMD_CHANGE_DIRECTION="change_direction",function(t){t[t.STOPPED=0]="STOPPED",t[t.FORWARD_PLAYING=1]="FORWARD_PLAYING",t[t.BACKWARD_PLAYING=2]="BACKWARD_PLAYING",t[t.STEP_PLAYING=3]="STEP_PLAYING",t[t.PAUSED=4]="PAUSED"}(ge||(ge={})),function(t){t[t.BACKWARD=-1]="BACKWARD",t[t.FORWARD=1]="FORWARD"}(ye||(ye={}));var ke=function(t){u(n,t);var e=xe(n);function n(t,i,r,a,s){var l;o(this,n),(l=e.call(this,t,i)).direction=ye.FORWARD,l.frames=[],l.framePos=0,l.playTimer=0,l.firstPlayTick=0,l.firstPlayTime=0,l.finishTime=-1,l.onPlayState=function(t){return 0},l.speed=1,l.posSec=0,l.playTime=0,l.record={startTime:0,endTime:0,type:0},l.onStatus=function(t){return 1},l.onPosChange=function(t){return 1},l.onSnapshot=function(t,e){return 1},l.onPlayFinished=function(t){return 1},l.onOpenFileState=function(t,e){return 1},l.extHandler=function(){return 1},l.status=ge.STOPPED,l.deviceInfo=null,a&&a.length>6?l.format=yt.JPEG:l.format=It.chooseLayerType(t)===kt.YUV_VIDEO_LAYER?yt.YUV:yt.JPEG;var c=new $;l.jpegRender=c,c.setAsync(0,(function(t,e,n){l.extRenderHandel(t,e,n)})),l.jpegLayer=new rt(l.element,"vatrender"),l.jpegLayer.setupRender(c);var u=new nt;return l.yuvRender=u,u.setAsync(0,(function(t,e,n){l.extRenderHandel(t,e,n)})),l.yuvLayer=new rt(l.element,"vatrender"),l.yuvLayer.setupRender(u),l.streamProxy=new we(r,a,s),l.streamProxy.onLoad=function(){null!==l.deviceInfo&&l.streamProxy.open(l.deviceInfo),l.streamProxy.setFormat(l.format),l.streamProxy.setSpeed(l.speed)},l.streamProxy.onStream=function(t){l.status!==ge.STOPPED&&(l.frames.length>0&&t.time<l.frames[0].time?(l.framePos+=1,l.frames.unshift(t)):l.frames.push(t),(l.frames.length===n.CACHE_SIZE||l.frames.length>n.CACHE_SIZE+50)&&(0===l.playTimer&&l.streamProxy.pause(),l.frames.length>n.CACHE_SIZE+1&&(ye.FORWARD===l.direction?l.frames.shift():l.frames.pop(),l.firstPlayTick=0)))},l.streamProxy.onStreamFinish=function(t,e){l.finishTime=e,l.status===ge.FORWARD_PLAYING&&l.framePos>=l.frames.length?(l.stop(),l.onPlayFinished(l.record,ye.FORWARD)):l.status===ge.BACKWARD_PLAYING&&0===l.framePos&&(l.stop(),l.onPlayFinished(l.record,ye.BACKWARD))},l.streamProxy.onPlayState=function(t,e){t||l.stop(),l.onPlayState(t,e)},l.streamProxy.onSnapshot=function(t,e,n){l.onSnapshot(t,e,n)},l.streamProxy.onOpenFileState=function(t,e){l.onOpenFileState(t,e)},l}return l(n,[{key:"setDevice",value:function(t){this.deviceInfo=Ae({},t),this.record={startTime:t.minTime,endTime:t.maxTime,type:0},this.streamProxy.open(this.deviceInfo)}},{key:"setFile",value:function(t){this.streamProxy.openFile(t)}},{key:"playOne",value:function(t,e,n,i){this.record.startTime=Math.floor(new Date(t).getTime()/1e3),this.record.endTime=Math.floor(new Date(e).getTime()/1e3),this.record.type=n,this.posSec=i>0?i:this.record.startTime,this.play(ye.FORWARD)}},{key:"playPos",value:function(t,e){this.posSec=t>0?t:this.record.startTime,this.play(e)}},{key:"play",value:function(t){this.direction=t,ye.FORWARD===t?this.forward_play():ye.BACKWARD===t&&this.backward_play()}},{key:"syncPlay",value:function(t){ge.STOPPED!==this.status&&this.stop(),this.moveTo(t),this.status=ge.FORWARD_PLAYING,this.forward_play(!1)}},{key:"syncStep",value:function(){this.framePos>=0&&this.drawFrame(!0)}},{key:"minFrameTime",value:function(){return this.framePos>=this.frames.length?0:this.frames[0].time}},{key:"forward_play",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(ge.STOPPED!==this.status)return this.status=ge.FORWARD_PLAYING,this.checkStream(ye.FORWARD),void this.startPlayTimer(ye.FORWARD);(0===this.posSec||this.record.endTime>0&&this.posSec>=this.record.endTime)&&(this.posSec=this.record.startTime),this.finishTime=-1,this.streamProxy.play(this.posSec,1,this.speed),this.changeStatus(ge.FORWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),t&&this.startPlayTimer(ye.FORWARD)}},{key:"backward_play",value:function(){if(ge.STOPPED!==this.status)return this.status=ge.BACKWARD_PLAYING,this.checkStream(ye.BACKWARD),void this.startPlayTimer(ye.BACKWARD);this.posSec!==this.record.startTime&&(this.finishTime=-1,this.streamProxy.play(this.posSec,-1,this.speed),this.changeStatus(ge.BACKWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),this.startPlayTimer(ye.BACKWARD))}},{key:"stop",value:function(){this.streamProxy.stop(),this.changeStatus(ge.STOPPED),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.speed=1,this.stopPlayTimer(),this.framePos=0,this.frames=[]}},{key:"moveTo",value:function(t){t===this.posSec||t<this.record.startTime||(ge.STOPPED===this.status?(this.posSec=t,this.playTime=1e3*t):(this.streamProxy.stop(),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.stopPlayTimer(),this.framePos=0,this.frames=[],this.posSec=t,ge.FORWARD_PLAYING===this.status?(this.status=ge.STOPPED,this.forward_play()):ge.BACKWARD_PLAYING===this.status?(this.status=ge.STOPPED,this.backward_play()):ge.PAUSED===this.status&&(this.status=ge.STOPPED,ye.FORWARD===this.direction?this.forward_play():this.backward_play())))}},{key:"getPos",value:function(){return this.posSec}},{key:"stepPrev",value:function(){ge.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=ge.STEP_PLAYING,this.checkStream(ye.BACKWARD)),this.framePos>=0&&this.drawFrame(!1)}},{key:"stepNext",value:function(){ge.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=ge.STEP_PLAYING,this.checkStream(ye.FORWARD)),this.framePos<this.frames.length&&this.drawFrame(!0)}},{key:"close",value:function(){this.stop(),this.streamProxy.close()}},{key:"pause",value:function(){this.changeStatus(ge.PAUSED),this.streamProxy.pause(),this.stopPlayTimer()}},{key:"addSpeed",value:function(){this.speed>=8||this.setSpeed(2*this.speed)}},{key:"subSpeed",value:function(){this.speed<=.25||this.setSpeed(this.speed/2)}},{key:"setSpeed",value:function(t){this.speed=Math.floor(100*t)/100,this.streamProxy.setSpeed(t),this.firstPlayTick=0,this.firstPlayTime=0}},{key:"setRecord",value:function(t){null===t?ge.STOPPED!==this.status&&(this.stop(),this.record.startTime=this.record.endTime=0):t.startTime===this.record.startTime&&t.endTime===this.record.endTime||(this.record=Ae({},t))}},{key:"snapshot",value:function(){return this.framePos>=0&&this.framePos<this.frames.length&&this.streamProxy.snapshot(this.frames[this.framePos].time)?0:_t.INVALID_STATE}},{key:"resume",value:function(){}},{key:"showMain",value:function(t){}},{key:"setExtRenderCallback",value:function(t){this.extHandler=t}},{key:"getTitleBarHeight",value:function(){return 0}},{key:"onResize",value:function(t,e){this.jpegLayer.move(0,0,t,e),this.yuvLayer.move(0,0,t,e),this.setExtCanvasSize(0,0,t,e),t>=8&&e>=8&&this.streamProxy.channel().setViewport(t,e-this.getTitleBarHeight())}},{key:"extRenderHandel",value:function(t,e,n){this.extRender2d&&this.extHandler(t,this.extRender2d,e,n)}},{key:"changeStatus",value:function(t){var e=t!==this.status;this.status=t,e&&this.onStatus(t)}},{key:"onPlayTimer",value:function(){var t=this;if(this.framePos<this.frames.length){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else if(this.frames.length>n.MAX_WATER_LINE)this.frames.shift(),this.frames.shift(),this.framePos-=2,this.framePos<0&&(this.framePos=0),this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else{var i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime);i>1e3?this.frames.length>=n.MAX_WATER_LINE&&(this.frames.shift(),this.framePos-=1,i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime)):i<-1e3&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time),i>=0&&this.drawFrame(!0)}if(this.framePos===this.frames.length&&this.finishTime>=0&&this.frames[this.frames.length-1].time>=this.finishTime)return this.stop(),void this.onPlayFinished(this.record,ye.FORWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayTimer()}))}},{key:"onPlayBackwardTimer",value:function(){var t=this;if(this.framePos>0){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time,this.drawFrame(!1);else{var n=(e-this.firstPlayTick)*this.speed-(this.firstPlayTime-this.frames[this.framePos-1].time);(n>1e3||n<-1e3)&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time),n>0&&this.drawFrame(!1)}if(0===this.framePos&&this.finishTime>0)return this.stop(),void this.onPlayFinished(this.record,ye.BACKWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayBackwardTimer()}))}},{key:"drawFrame",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=null;if(t){if(this.framePos<this.frames.length){e=this.frames[this.framePos],this.framePos>=n.LOW_WATER_LINE?this.frames.shift():this.framePos++;var i=this.frames.length-this.framePos;i!==n.LOW_WATER_LINE&&5!==i||this.streamProxy.resume(1)}}else if(this.framePos>0){e=this.frames[--this.framePos],(this.framePos===n.LOW_WATER_LINE||0===this.framePos&&this.posSec>this.record.startTime)&&this.streamProxy.resume(-1);var r=this.frames.length-this.framePos;if(r>n.LOW_WATER_LINE)for(this.frames.pop(),r--;r>=n.MAX_WATER_LINE;)this.frames.pop(),r--}if(null!==e){e.type===gt.YUV420?this.yuvLayer.putData(2,e.data,e.time):e.type===gt.YUV?this.yuvLayer.putData(1,e.data,e.time):this.jpegLayer.putData(0,e.data,e.time),this.playTime=e.time;var o=Math.floor(this.playTime/1e3);o!==this.posSec&&(this.onPosChange(this.posSec),this.posSec=o)}}},{key:"startPlayTimer",value:function(t){var e=this;this.stopPlayTimer(),this.firstPlayTick=0,this.firstPlayTime=0,ye.BACKWARD===t?this.playTimer=requestAnimationFrame((function(){return e.onPlayBackwardTimer()})):this.playTimer=requestAnimationFrame((function(){return e.onPlayTimer()}))}},{key:"stopPlayTimer",value:function(){0!==this.playTimer&&(cancelAnimationFrame(this.playTimer),this.playTimer=0)}},{key:"checkStream",value:function(t){ye.FORWARD===t?this.frames.length-this.framePos<=n.LOW_WATER_LINE&&(this.streamProxy.changeDirection(1),this.streamProxy.resume(1)):ye.BACKWARD===t&&this.frames.length<=n.LOW_WATER_LINE&&this.posSec>this.record.startTime&&(this.streamProxy.changeDirection(-1),this.streamProxy.resume(-1))}}]),n}(me);ke.CACHE_SIZE=200,ke.MAX_WATER_LINE=70,ke.LOW_WATER_LINE=25;var Se=n("4971"),Ce=n.n(Se);function Ee(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}n("3e39");var _e=function(t){u(n,t);var e=Ee(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).volume=50,t.options={dotSize:14,width:4,height:100,contained:!1,direction:"btt",min:0,max:100,interval:1,disabled:!1,clickable:!0,duration:.5,adsorb:!1,lazy:!1,tooltip:"focus",tooltipPlacement:"top"},t}return l(n,[{key:"onBtnClick",value:function(t,e){this.$emit("onBtnClick",t,e)}},{key:"speedStr",get:function(){return.25===this.speed?"0.25":this.speed>0?"".concat(this.speed.toFixed(1)):"1.0"}},{key:"disablePrevStep",get:function(){return this.syncMode||ye.BACKWARD!==this.playDirection||this.playStatus!==ge.STEP_PLAYING&&this.playStatus!==ge.BACKWARD_PLAYING}},{key:"disableNextStep",get:function(){return this.syncMode||ye.FORWARD!==this.playDirection||this.playStatus!==ge.STEP_PLAYING&&this.playStatus!==ge.FORWARD_PLAYING}},{key:"disableSpeed",get:function(){return this.syncMode||this.playStatus!==ge.FORWARD_PLAYING&&this.playStatus!==ge.BACKWARD_PLAYING}},{key:"showForwardPlay",get:function(){return ge.STOPPED===this.playStatus||ye.FORWARD===this.playDirection&&this.playStatus!==ge.FORWARD_PLAYING}},{key:"showBackwardPlay",get:function(){return ge.STOPPED===this.playStatus||ye.BACKWARD===this.playDirection&&this.playStatus!==ge.BACKWARD_PLAYING}},{key:"showPause",get:function(){return ge.FORWARD_PLAYING===this.playStatus||ge.BACKWARD_PLAYING===this.playStatus}},{key:"showPauseTemp",get:function(){return ge.STEP_PLAYING===this.playStatus&&ye.BACKWARD===this.playDirection}},{key:"disableStop",get:function(){return this.playStatus===ge.STOPPED}}]),n}(v.a);p([L({default:ge.STOPPED})],_e.prototype,"playStatus",void 0),p([L({default:ye.FORWARD})],_e.prototype,"playDirection",void 0),p([L({default:!1})],_e.prototype,"isFullscreen",void 0),p([L({default:!1})],_e.prototype,"isExpand",void 0),p([L({default:!1})],_e.prototype,"isSingle",void 0),p([L({default:1})],_e.prototype,"speed",void 0),p([L({default:!1})],_e.prototype,"syncMode",void 0),p([L({default:!1})],_e.prototype,"noBack",void 0);var Ie,Te=_e=p([R({components:{VueSlider:Ce.a}})],_e),De=(n("272c"),se(Te,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"vat-tool"}},[t.isSingle?t._e():n("div",{staticClass:"scale-btns"},[n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-up")}}},[n("title",[t._v("放大时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.9 839.2l-161-160.9C871 517.7 838.2 290.1 677.5 170s-388.2-87.3-508.3 73.4C122.3 306.1 97 382.4 97 460.8 97 661.4 259.6 824 460.1 824c78.4 0 154.7-25.4 217.5-72.3l160.8 160.8c20.2 20.3 53.1 20.3 73.4 0.1 20.3-20.3 20.3-53.1 0.1-73.4zM408.2 408.9h-51.9c-28.7 0-51.9 23.2-51.9 51.9s23.2 51.9 51.9 51.9h51.9v51.9c0 28.7 23.2 51.9 51.9 51.9s51.9-23.2 51.9-51.9v-51.9h51.9c28.7 0 51.9-23.2 51.9-51.9s-23.2-51.9-51.9-51.9H512V357c0-28.7-23.2-51.9-51.9-51.9s-51.9 23.2-51.9 51.9v51.9z m51.9 311.3c-143.3 0-259.4-116.1-259.4-259.4s116.1-259.4 259.4-259.4 259.4 116.1 259.4 259.4-116.1 259.4-259.4 259.4z"}})]),n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-down")}}},[n("title",[t._v("缩小时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.8 839.7L750.9 678.8c120.1-160.6 87.3-388.2-73.4-508.3s-388.2-87.3-508.3 73.4C122.4 306.7 97 383 97 461.4c0 200.5 162.6 363.1 363.1 363.1 78.4 0 154.7-25.4 217.5-72.3L838.4 913c20.2 20.3 53.1 20.3 73.4 0.1s20.3-53.1 0-73.4z m-451.7-119c-143.2 2-261-112.4-263-255.7s112.4-261 255.7-263h7.3c143.2 0 259.4 116.1 259.4 259.4S603.4 720.7 460.1 720.7zM304.5 461.4c0 28.6 23.2 51.9 51.9 51.9h207.5c28.6 0 51.9-23.2 51.9-51.9 0-28.6-23.2-51.9-51.9-51.9H356.4c-28.7 0-51.9 23.2-51.9 51.9z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && !isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"31.97px",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("expand")}}},[n("path",{attrs:{fill:"#ffffff",d:"M421.167248 520.869741 431.487222 531.189716C434.239215 533.941709 436.991208 536.521702 439.743201 538.929696 442.495194 541.33769 445.247187 543.917684 447.99918 546.669677L460.383149 559.053645C474.143115 572.813611 479.647101 584.853581 476.895108 595.173555 474.143115 605.493529 465.543136 617.533499 451.095172 631.293465 444.903188 638.173448 434.755213 648.665421 420.651248 662.769387 406.547283 676.873351 391.411321 692.181313 375.243362 708.693272 359.075403 725.20523 343.423442 741.02919 328.287479 756.165154 313.151516 771.301117 301.455544 783.341087 293.199566 792.285066 280.815596 804.66903 272.215618 815.505006 267.39963 824.792986 262.583643 834.080957 264.647637 843.196936 273.591614 852.140914 279.783599 858.3329 287.695579 866.588877 297.327555 876.908851 306.959532 887.228826 315.215511 895.828803 322.095494 902.708791 333.791465 914.404762 338.091455 924.724736 334.995462 933.668714 331.899468 942.612693 321.751494 947.772676 304.551537 949.148672 286.663582 951.21267 266.711632 953.620661 244.695687 956.372653 222.679742 959.124645 199.975798 961.704637 176.583856 964.112636 153.191915 966.520627 130.315972 969.100619 107.956028 971.852619 85.596084 974.604611 65.128135 977.012602 46.552181 979.0766 28.664225 981.14059 16.280256 978.9046 9.400274 972.368612 2.520291 965.832633-0.231702 954.308655 1.144295 937.796703 2.520291 920.59674 4.412286 901.332787 6.82028 880.004844 9.228274 858.676894 11.808268 836.832949 14.560261 814.473011 17.312254 792.113065 19.892247 769.925118 22.300241 747.909174 24.708235 725.893229 26.944229 705.597279 29.008224 687.021325 31.072219 667.069375 36.748205 654.341407 46.036182 648.837421 55.324159 643.333434 65.816133 646.429427 77.512104 658.125397 84.392086 665.00538 93.336064 673.433359 104.344037 683.409334 115.35201 693.38531 124.639987 702.157288 132.207967 709.725269 139.775949 717.29325 146.999931 719.701243 153.879914 716.94925 160.759897 714.197257 168.671877 708.693271 177.615855 700.437291 186.559832 691.493314 198.771802 679.109344 214.251763 663.285384 229.731725 647.461423 245.899685 631.121464 262.755643 614.265506 279.611601 597.409548 295.95156 580.897589 311.775521 564.729629 327.599482 548.56167 340.32745 535.661701 349.959426 526.029726 354.087415 521.901736 358.731403 517.945746 363.891391 514.161755 369.051378 510.377765 374.727363 507.797772 380.919349 506.421775 387.111333 505.045779 393.475318 505.389778 400.011301 507.453772 406.547285 509.517767 413.599267 513.989756 421.167249 520.869738L421.167248 520.869741ZM943.357944 0.743038C961.245901-1.320957 973.629873 0.915038 980.509854 7.451021 987.389834 13.987005 990.141826 25.510976 988.76583 42.022935 987.389834 59.222892 985.497844 78.486844 983.089845 99.814791 980.681854 121.142738 978.101862 142.986683 975.34987 165.346628 972.59787 187.706572 970.017879 210.066516 967.609888 232.42646 965.201888 254.786404 962.965898 275.254353 960.9019 293.830307 958.83791 313.782257 953.161925 326.338226 943.873946 331.498213 934.585966 336.6582 924.093991 333.390208 912.398021 321.694238 905.518041 314.814255 896.058061 305.870277 884.018097 294.862304 871.978126 283.854331 862.174145 274.566354 854.606171 266.998374 847.038188 259.430393 840.502201 256.162401 834.998217 257.194398 829.494233 258.226396 822.614244 262.870384 814.358268 271.126363 804.726288 280.758339 792.170323 293.486307 776.690361 309.310268 761.2104 325.134229 744.87044 341.818187 727.670483 359.362143 710.470526 376.9061 693.614568 393.934058 677.102609 410.446016L638.918704 448.629921C634.790714 452.75791 630.318726 456.8859 625.502738 461.01389 620.68675 465.14188 615.354763 468.237871 609.506777 470.301866 603.658791 472.365861 597.466807 472.70986 590.930823 471.333864 584.394839 469.957868 577.686856 465.485878 570.806873 457.917898L531.590971 418.701996C517.831005 404.94203 511.81102 392.386061 513.531015 381.03409 515.251011 369.682118 522.990992 357.12615 536.750958 343.366184 542.942942 337.1742 553.262917 326.682225 567.710881 311.890263 582.158845 297.098299 597.638806 281.446338 614.150765 264.934379 630.662723 248.42242 646.658683 232.25446 662.138645 216.4305 677.618608 200.606539 689.830577 188.566569 698.774554 180.310589 711.158523 167.92662 718.898504 157.778645 721.994496 149.866665 725.090488 141.954685 722.166496 133.526707 713.222518 124.582728 707.030534 118.390744 699.634553 110.822763 691.034574 101.878785 682.434595 92.934806 674.694613 85.022826 667.814631 78.142844 656.11866 66.446872 651.818671 56.126898 654.914664 47.182921 658.010656 38.238943 668.158631 32.734957 685.358588 30.670962 702.558544 28.606966 722.338495 26.198972 744.69844 23.44698 767.058385 20.694987 789.934324 18.114994 813.326265 15.706999 836.718206 13.299005 859.594153 10.719011 881.954099 7.967019 904.314045 5.215026 924.781993 2.807033 943.357944 0.743037L943.357944 0.743038Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"29.87px",viewBox:"0 0 1097 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("shrink")}}},[n("path",{attrs:{fill:"#ffffff",d:"M440.555466 539.129028C457.859892 537.206314 470.037082 539.769933 477.087033 546.819885 484.136985 553.869837 487.021056 565.726573 485.739246 582.390095 484.457437 599.694521 482.534723 619.242114 479.971104 641.032874 477.407485 662.823633 474.68364 685.09507 471.79957 707.847187 468.915499 730.599304 466.191653 753.191191 463.628035 775.622858 461.064416 798.054524 458.82125 818.883924 456.898536 838.111064 454.975822 858.620016 449.20768 871.598332 439.594109 877.046027 429.980539 882.493714 419.405611 879.128968 407.869326 866.951774 400.819375 859.901828 391.84671 851.249615 380.95133 840.995135 370.055951 830.740663 360.762832 822.088449 353.071976 815.038495 344.740215 806.706737 337.049358 803.822666 329.999407 806.386282 322.949455 808.949906 314.938147 814.718048 305.965481 823.690709 296.351911 833.304279 283.694043 846.122375 267.991878 862.144989 252.289714 878.167611 235.946644 894.831128 218.962669 912.135562 201.978694 929.439988 185.475399 946.263732 169.452782 962.606802 153.430166 978.949871 140.29162 991.928194 130.037144 1001.541764 126.191715 1006.028095 121.545156 1010.193978 116.097467 1014.039406 110.649777 1017.884834 104.881635 1020.608677 98.79304 1022.210937 92.704446 1023.813203 86.295398 1023.652976 79.565899 1021.730262 72.8364 1019.807548 65.626222 1015.000763 57.935366 1007.309907 53.449033 1002.823569 49.763831 999.298596 46.879759 996.734979 43.995688 994.171356 41.271843 991.607739 38.708225 989.044123L30.056012 980.39191 17.55837 967.894269C3.458467 953.794361-2.149449 941.617174 0.734622 931.362695 3.618693 921.108222 12.110681 908.610581 26.210583 893.869771 32.61963 887.460727 43.194557 877.046027 57.935366 862.625672 72.676174 848.205316 88.218112 832.663377 104.561182 815.999852 120.904251 799.336336 136.766642 783.153486 152.148356 767.451327 167.530069 751.74916 179.707258 739.411746 188.679923 730.439078 201.498017 717.620984 210.15023 706.565377 214.636563 697.27226 219.122896 687.979142 216.879729 678.84625 207.907063 669.873584 201.498017 663.464538 193.486709 654.97255 183.873138 644.397623 174.259568 633.822696 165.927807 625.010256 158.877855 617.960304 147.341571 606.42402 143.015463 596.009319 145.899534 586.7162 148.783605 577.423083 159.198306 571.815167 177.143638 569.892453 195.08897 567.969739 215.277467 565.566346 237.709131 562.682275 260.140795 559.798203 283.213364 557.074359 306.926838 554.51074 330.640312 551.947122 354.033333 549.223277 377.105902 546.339206 400.17847 543.455135 421.328325 541.051742 440.555466 539.129028L440.555466 539.129028ZM1013.52426 53.643725C1027.624161 67.743628 1033.872985 80.401496 1032.270718 91.617328 1030.668459 102.833159 1022.496928 115.81148 1007.756118 130.552288 1000.706164 137.602239 989.97101 148.497619 975.550654 163.238427 961.130299 177.979235 945.428139 193.841626 928.44416 210.825601 911.460189 227.809575 895.117119 244.312871 879.414952 260.335487 863.712785 276.358104 851.375371 288.855745 842.402703 297.828412 829.584615 310.646506 821.733531 320.90098 818.84946 328.591836 815.965389 336.282693 819.009687 344.614454 827.982348 353.58712 834.3914 359.996166 841.922029 367.847249 850.574242 377.140367 859.226455 386.433485 867.077538 394.60502 874.127492 401.654971 885.663777 413.191256 889.829652 423.605957 886.625134 432.899075 883.420608 442.192194 873.166135 447.800109 855.861709 449.722823 837.916373 451.645537 817.727876 454.04893 795.296209 456.933001 772.864551 459.817072 749.631755 462.540917 725.597827 465.104535 701.563902 467.668154 678.010654 470.391998 654.938085 473.27607 631.865516 476.160141 611.036114 478.563534 592.449878 480.486248 559.122834 484.331676 543.741122 470.231773 546.304741 438.186538 548.227455 420.882111 550.310395 401.334518 552.553561 379.543759 554.796727 357.753 557.360347 335.321336 560.244418 312.248766 563.128489 289.176198 565.852334 266.424081 568.415952 243.992417 570.979571 221.560753 573.222737 200.73135 575.145451 181.50421 577.068165 160.99526 582.836308 148.016939 592.449878 142.569249 602.063449 137.121559 612.958828 140.486308 625.136017 152.663498 628.340541 156.508926 632.506421 160.835033 637.633659 165.641818 642.760897 170.448603 648.04836 175.415614 653.49605 180.542852 658.943739 185.670089 664.231204 190.6371 669.358441 195.443886 674.485679 200.250671 678.972012 204.576777 682.81744 208.422206 691.1492 216.753967 697.878699 220.439169 703.005937 219.477812 708.133174 218.516455 715.183126 213.549444 724.155792 204.576779 733.76936 194.963208 746.587456 181.984887 762.610071 165.641818 778.632693 149.298748 795.456437 132.314774 813.081318 114.689895 830.706199 97.065016 847.690171 79.920815 864.03324 63.257294 880.376309 46.593772 893.67508 33.134773 903.92956 22.880298 907.774988 19.034869 912.261318 15.029215 917.388558 10.863335 922.515791 6.697455 927.963485 3.653157 933.731628 1.730443 939.49977-0.192272 945.588367-0.512724 951.997411 0.769086 958.406455 2.050896 965.456409 6.537229 973.147265 14.228084 977.633596 18.714417 981.318796 22.239393 984.202875 24.803012 987.086946 27.366631 989.810789 29.93025 992.374406 32.493869L1001.026619 41.146082 1013.52426 53.643725Z"}})])]),n("div",{staticClass:"btns"},[n("svg",{class:{icon:!0,disabled:!t.showBackwardPlay||t.syncMode||t.noBack},attrs:{id:"play-back",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",-1)}}},[n("title",[t._v("倒放")]),n("path",{attrs:{fill:"#ffffff",d:"M160.250617 511.747125L863.749383 0v1024l-703.498766-512.252875z"}})]),n("svg",{class:{icon:!0,disabled:t.disableStop},attrs:{id:"stop",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("stop")}}},[n("title",[t._v("停止")]),n("path",{attrs:{fill:"#ffffff",d:"M157.538462 157.538462h708.923076v708.923076H157.538462V157.538462z"}})]),n("svg",{class:{icon:!0,disabled:t.disablePrevStep},attrs:{id:"prev",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("prev")}}},[n("title",[t._v("上一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M635.74 805.62V218.38c0-59.56-67.95-93.96-115.77-57.89L126.94 454.12c-38.59 28.94-38.59 87.24 0 116.19l393.03 293.62c47.82 35.23 115.77 1.25 115.77-58.31z m226.5-679.52c-35.23 0-63.76 28.52-63.76 63.76v644.28c0 35.23 28.53 63.76 63.76 63.76S926 869.37 926 834.14V189.86c0-35.23-28.52-63.76-63.76-63.76z m0 0"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"back",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("back")}}},[n("title",[t._v("慢放")]),n("path",{attrs:{fill:"#ffffff",d:"M1181.831855 12.560526l-536.645044 462.060479a50.329422 50.329422 0 0 0 0 72.76543l536.645044 463.879615a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241a46.084772 46.084772 0 0 0-77.616459-36.382715zM552.410888 12.560526L15.765843 474.621005A49.723044 49.723044 0 0 0 15.765843 546.173678l536.038666 465.092372a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241A46.084772 46.084772 0 0 0 552.410888 12.560526z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showForwardPlay,expression:"showForwardPlay"}],staticClass:"icon",attrs:{id:"play",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",1)}}},[n("title",[t._v("播放")]),n("path",{attrs:{fill:"#ffffff",d:"M73.142857 0 910.957714 512 73.142857 1024Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPause,expression:"showPause"}],staticClass:"icon",attrs:{id:"pause",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("pause")}}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPauseTemp,expression:"showPauseTemp"}],staticClass:"icon disabled",attrs:{id:"pause2",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"forward",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("forward")}}},[n("title",[t._v("快放")]),n("path",{attrs:{fill:"#ffffff",d:"M77.738464 1011.260664l536.872038-462.255925a50.350711 50.350711 0 0 0 0-72.796208L77.738464 12.739336A46.104265 46.104265 0 0 0 0.089175 48.530806v926.331753a46.104265 46.104265 0 0 0 77.649289 36.398105z m629.687204 0l536.872038-462.255925a49.744076 49.744076 0 0 0 0-72.796208L707.425668 12.739336a46.104265 46.104265 0 0 0-77.649289 36.398105v925.725118a46.104265 46.104265 0 0 0 77.649289 36.398105z"}})]),n("svg",{class:{icon:!0,disabled:t.disableNextStep},attrs:{id:"next",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("next")}}},[n("title",[t._v("下一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M388.26 218.38v587.23c0 59.56 67.95 93.96 115.77 57.89l393.03-293.62c38.59-28.94 38.59-87.24 0-116.19L504.03 160.08c-47.82-35.24-115.77-1.26-115.77 58.3zM161.76 897.9c35.23 0 63.76-28.52 63.76-63.76V189.86c0-35.23-28.53-63.76-63.76-63.76S98 154.63 98 189.86v644.28c0 35.23 28.52 63.76 63.76 63.76z m0 0"}})]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"倍速"}},[n("span",{staticClass:"speed btn-menu-icon2"},[t._v("x"+t._s(t.speedStr))]),t._e()]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"声音"}},[n("svg",{staticClass:"icon btn-menu-icon2 disabled",attrs:{id:"volume",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("volume")}}},[n("path",{attrs:{fill:"#ffffff",d:"M475.428571 201.142857v621.714286c0 20.004571-16.566857 36.571429-36.571428 36.571428a36.205714 36.205714 0 0 1-25.709714-10.861714L222.866286 658.285714H73.142857c-20.004571 0-36.571429-16.566857-36.571428-36.571428v-219.428572c0-20.004571 16.566857-36.571429 36.571428-36.571428h149.723429l190.281143-190.281143A36.425143 36.425143 0 0 1 438.857143 164.571429c20.004571 0 36.571429 16.566857 36.571428 36.571428z m219.428572 310.857143c0 57.161143-34.852571 112.566857-88.576 134.290286a31.780571 31.780571 0 0 1-14.299429 2.852571c-20.004571 0-36.571429-16.018286-36.571428-36.571428 0-43.446857 66.304-31.414857 66.304-100.571429s-66.304-57.161143-66.304-100.571429c0-20.553143 16.566857-36.571429 36.571428-36.571428 4.571429 0 9.728 0.585143 14.299429 2.852571C660.004571 398.848 694.857143 454.838857 694.857143 512z m146.285714 0c0 116.004571-69.705143 224-177.152 269.129143a42.349714 42.349714 0 0 1-14.299428 2.852571 36.937143 36.937143 0 0 1-37.156572-36.571428c0-16.018286 9.142857-26.843429 22.272-33.718857 15.433143-8.009143 29.696-14.848 43.446857-25.161143 56.576-41.142857 89.709714-106.861714 89.709715-176.566857s-33.133714-135.424-89.709715-176.566858c-13.714286-10.276571-28.013714-17.152-43.446857-25.161142-13.129143-6.838857-22.272-17.700571-22.272-33.718858 0-20.004571 16.566857-36.571429 36.571429-36.571428 5.156571 0 10.276571 1.133714 14.848 2.852571 107.446857 45.129143 177.152 153.161143 177.152 269.129143z m146.285714 0c0 175.433143-104.557714 334.299429-265.728 403.419429a42.861714 42.861714 0 0 1-14.848 2.852571c-20.004571 0-36.571429-16.566857-36.571428-36.571429 0-16.566857 8.557714-25.709714 22.272-33.718857 8.009143-4.571429 17.152-7.424 25.709714-11.995428 16.018286-8.557714 32-18.285714 46.848-29.147429 93.696-69.156571 149.138286-178.285714 149.138286-294.838857s-55.442286-225.718857-149.138286-294.838857a402.505143 402.505143 0 0 0-46.848-29.147429c-8.557714-4.571429-17.700571-7.424-25.709714-11.995428-13.714286-8.009143-22.272-17.152-22.272-33.718857 0-20.004571 16.566857-36.571429 36.571428-36.571429 5.156571 0 10.276571 1.133714 14.848 2.852571A439.186286 439.186286 0 0 1 987.428571 512z"}})]),t._e()])]),n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("svg",{staticClass:"icon",staticStyle:{visibility:"hidden"},attrs:{width:"24px",height:"25.34px",viewBox:"0 0 1293 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("snap")}}},[n("path",{attrs:{fill:"#ffffff",d:"M646.682947 336.949895a235.304421 235.304421 0 0 0-235.034947 235.627789 235.304421 235.304421 0 0 0 234.981053 235.681684 235.304421 235.304421 0 0 0 235.088842-235.681684A235.304421 235.304421 0 0 0 646.736842 336.949895zM1209.936842 160.282947h-245.65221C951.242105 120.185263 906.725053 0 841.566316 0H451.799579C391.437474 0 342.554947 120.185263 327.68 160.282947H83.536842C37.402947 160.282947 0 199.949474 0 248.993684v686.403369C0 984.225684 37.402947 1024 83.536842 1024h1126.4c46.133895 0 83.536842-39.612632 83.536842-88.656842V248.832c-0.107789-48.882526-37.402947-88.549053-83.536842-88.549053z m-563.469474 707.098948c-162.169263 0-293.726316-131.934316-293.726315-294.534737a294.103579 294.103579 0 0 1 293.726315-294.534737c162.223158 0 293.834105 131.934316 293.834106 294.534737 0 162.708211-131.610947 294.534737-293.834106 294.534737z m421.241264-530.324211a49.044211 49.044211 0 0 1-48.882527-49.098105 48.936421 48.936421 0 1 1 97.765053 0 49.044211 49.044211 0 0 1-48.882526 49.098105zM286.72 83.806316c0 17.623579-14.174316 31.797895-31.690105 31.797895H107.466105a31.690105 31.690105 0 0 1-31.690105-31.797895c0-17.569684 14.174316-31.797895 31.690105-31.797895h147.56379c17.515789 0 31.690105 14.228211 31.690105 31.797895z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!t.isFullscreen,expression:"!isFullscreen"}],staticClass:"icon",attrs:{id:"fullscreen",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("fullscreen")}}},[n("title",[t._v("全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M919.920093 725.414549q3.014188 26.122962 7.033105 58.776664t7.53547 66.814498 7.53547 67.819227 7.033105 60.786122q6.028376 47.222277-41.193901 44.208089-25.118232-2.009459-56.767205-5.526011t-64.805039-7.53547-65.809769-8.037834-59.781393-7.033105q-29.137149-3.014188-37.174984-16.578033t9.042564-30.644243q11.052022-10.047293 27.127691-27.630056t27.127691-28.634785q11.052022-12.056752 7.033105-22.104044t-16.075669-23.108774q-28.13242-27.127691-51.241194-49.231735t-51.241194-51.241194q-6.028376-6.028376-12.056752-13.061481t-9.042564-15.573304-1.004729-18.085127 13.061481-20.59695q6.028376-6.028376 10.047293-10.549658t8.037834-8.037834 8.540199-8.037834 11.554387-12.559116q20.094586-20.094586 37.174984-17.080398t37.174984 23.108774 41.193901 40.691536 47.222277 46.719912q19.089857 18.085127 32.653702 25.118232t26.625326-6.028376q9.042564-9.042564 22.606409-21.60168t23.611138-22.606409q17.080398-17.080398 30.644243-13.061481t16.578033 30.141879zM43.79615 383.80659q-3.014188-26.122962-7.033105-58.776664t-7.53547-66.814498-7.53547-67.819227-7.033105-60.786122q-3.014188-26.122962 6.53074-36.170255t33.658431-8.037834q25.118232 2.009459 56.767205 5.526011t64.805039 7.53547 65.809769 8.037834 59.781393 7.033105q30.141879 3.014188 37.677348 16.578033t-9.544928 30.644243q-10.047293 10.047293-24.615868 26.122962t-25.620597 27.127691q-12.056752 12.056752-8.037834 22.104044t17.080398 23.108774q13.061481 14.06621 24.615868 24.615868t22.606409 21.099315 23.108774 22.606409l25.118232 25.118232q6.028376 6.028376 11.554387 14.06621t8.037834 17.080398-0.502365 19.089857-13.061481 20.094586l-11.052022 11.052022q-4.018917 4.018917-7.53547 8.037834t-8.540199 8.037834l-11.052022 12.056752q-20.094586 20.094586-34.663161 15.070939t-34.663161-25.118232-38.179713-37.677348-44.208089-43.705724q-18.085127-18.085127-32.151337-25.118232t-27.127691 6.028376q-9.042564 10.047293-25.118232 24.615868t-26.122962 24.615868q-17.080398 17.080398-30.141879 13.061481t-16.075669-30.141879zM905.853883 84.397261q26.122962-3.014188 36.170255 6.53074t8.037834 34.663161-5.526011 56.767205-7.53547 64.805039-8.037834 65.809769-7.033105 59.781393q-3.014188 29.137149-16.578033 37.174984t-30.644243-10.047293q-10.047293-10.047293-26.122962-24.615868t-27.127691-25.620597q-12.056752-11.052022-22.104044-7.53547t-23.108774 16.578033q-27.127691 27.127691-47.724641 49.231735t-48.729371 50.236465q-6.028376 6.028376-14.06621 11.554387t-17.080398 8.037834-19.089857-0.502365-20.094586-14.06621q-6.028376-6.028376-10.549658-10.047293t-8.540199-8.037834-8.540199-8.037834-11.554387-12.056752q-20.094586-20.094586-16.075669-35.165525t25.118232-35.165525l38.179713-40.189172q19.089857-20.094586 45.212818-46.217547 19.089857-18.085127 26.122962-32.151337t-7.033105-26.122962q-9.042564-9.042564-23.108774-24.615868t-24.113503-25.620597q-17.080398-17.080398-13.061481-30.141879t30.141879-16.075669 58.776664-7.033105 67.316863-7.53547 67.819227-7.53547 60.283758-7.033105zM350.238584 640.012559q6.028376 6.028376 10.549658 10.047293t8.540199 8.037834l8.037834 9.042564 12.056752 11.052022q20.094586 20.094586 17.582763 36.672619t-23.611138 37.677348q-19.089857 19.089857-40.189172 40.691536t-47.222277 47.724641q-18.085127 18.085127-22.606409 29.639514t8.540199 24.615868q10.047293 9.042564 22.606409 22.606409t22.606409 23.611138q17.080398 17.080398 12.559116 30.141879t-30.644243 16.075669-58.274299 7.033105-66.814498 8.037834-68.321592 8.037834-60.786122 7.033105q-25.118232 2.009459-35.66789-7.53547t-8.540199-33.658431q2.009459-25.118232 5.526011-56.767205t7.53547-64.805039 8.037834-65.809769 7.033105-59.781393q3.014188-30.141879 16.578033-37.677348t30.644243 9.544928q10.047293 10.047293 27.630056 26.122962t28.634785 27.127691q12.056752 12.056752 20.094586 10.549658t20.094586-14.568575q13.061481-13.061481 25.118232-25.620597t24.113503-24.615868 24.615868-25.118232 26.625326-27.127691q6.028376-6.028376 13.061481-12.056752t15.573304-9.042564 18.085127-0.502365 20.59695 13.563845z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.isFullscreen,expression:"isFullscreen"}],staticClass:"icon",attrs:{width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("cancel-fullscreen")}}},[n("title",[t._v("取消全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M638.272 128.064l82.048 82.112L930.56 0l91.52 91.456-210.176 210.112 81.856 82.048c0 35.328-28.352 63.872-63.808 63.872L638.272 447.488c-35.2 0-63.808-28.544-63.808-63.872L574.464 192C574.464 156.736 603.072 128.064 638.272 128.064L638.272 128.064 638.272 128.064zM128.064 638.336c0-35.136 28.672-63.808 63.872-63.808l191.68 0c35.328 0 63.872 28.672 63.872 63.808l0 191.68c0 35.392-28.544 63.808-63.872 63.808l-82.048-81.792-210.176 210.112L0 930.752l210.176-210.304L128.064 638.336 128.064 638.336 128.064 638.336zM638.272 574.528l191.68 0c35.456 0 63.808 28.672 63.808 63.808l-81.856 82.112 210.176 210.304-91.52 91.392-210.24-210.112-82.048 81.792c-35.2 0-63.808-28.416-63.808-63.808L574.464 638.336C574.464 603.2 603.072 574.528 638.272 574.528L638.272 574.528 638.272 574.528zM91.392 0l210.176 210.24 82.048-82.112c35.328 0 63.872 28.608 63.872 63.872l0 191.68c0 35.328-28.544 63.872-63.872 63.872L191.936 447.552c-35.2 0-63.872-28.544-63.872-63.872l82.112-82.048L0 91.456 91.392 0 91.392 0 91.392 0zM91.392 0"}})])])])}),[],!1,null,"4bb55d15",null)).exports,Re=(n("7514"),function(){function t(){o(this,t),this.records=[]}return l(t,[{key:"add",value:function(t){if(0===this.records.length)this.records.push(t);else{var e=this.indexRecord(t.startTime);e>=this.records.length?this.records.push(t):this.records[e].startTime>t.startTime?this.records.splice(e,0,t):this.records[e].endTime<=t.startTime?this.records.splice(e+1,0,t):this.records[e].endTime<t.endTime&&(this.records[e].endTime=t.endTime)}}},{key:"merge",value:function(t,e){if(0!==this.records.length){var n=this.indexRecord(t);if(n>=this.records.length)this.records.push({startTime:t,endTime:e,type:0});else if(this.records[n].startTime>e)this.records.splice(n,0,{startTime:t,endTime:e,type:0});else if(this.records[n].startTime=Math.min(this.records[n].startTime,t),this.records[n].endTime<e)for(this.records[n].endTime=e,n+=1;n<this.records.length&&this.records[n].startTime<=e;)this.records[n-1].endTime=Math.max(this.records[n].endTime,e),this.records.splice(n,1)}else this.records.push({startTime:t,endTime:e,type:0})}},{key:"isInclude",value:function(t,e){if(0===this.records.length)return!1;if(e<=this.records[0].startTime)return!1;if(t>=this.records[this.records.length-1].endTime)return!1;for(var n=0,i=this.records.length-1;n<=i;){var r=n+Math.floor((i-n)/2);if(e<this.records[r].startTime)i=r-1;else{if(!(t>this.records[r].endTime))return this.records[r].startTime<=t&&this.records[r].endTime>=e;n=r+1}}return!1}},{key:"clear",value:function(){this.records=[]}},{key:"range",value:function(t,e){if(0===this.records.length)return[];var n=this.indexRecord(t);if(n>=this.records.length)return[];for(var i=n;i<this.records.length;){var r=this.records[i];if(r.endTime<t||r.startTime>e)break;i++}return this.records.slice(n,i)}},{key:"find",value:function(t){var e=this.indexRecord(t);return e>=0&&e<this.records.length&&this.records[e].startTime<=t?this.records[e]:null}},{key:"findNext",value:function(t){if(0===this.records.length)return null;var e=this.indexRecord(t);return e>=this.records.length?null:(this.records[e].endTime===t&&e++,e>=this.records.length?null:this.records[e])}},{key:"indexRecord",value:function(t){if(0===this.records.length)return 0;if(t<=this.records[0].startTime)return 0;if(t>this.records[this.records.length-1].endTime)return this.records.length;for(var e=0,n=this.records.length-1;e<=n;){var i=e+Math.floor((n-e)/2);if(t<this.records[i].startTime)n=i-1;else{if(!(t>this.records[i].endTime))return i;e=i+1}}return e}}]),t}());function Oe(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Me=Ie=function(t){u(n,t);var e=Pe(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).timerId=0,t.oldWidth=0,t.oldHeight=0,t.curTime=Math.floor(Date.now()/1e3),t.timeCtx=null,t.timeCanvas=null,t.recordCtx=null,t.recordCanvas=null,t.isDragging=!1,t.startDragTime=0,t.xOffset=0,t.tmpDate=new Date,t.timeScale=2,t.startDrawTime=0,t.startDrawOffset=0,t.normalRecords=new Re,t.alarmRecords=new Re,t.eventRecords=new Re,t.queryCache=new Re,t.streamProxy=null,t.prevMouseX=0,t}return l(n,[{key:"setTime",value:function(t){this.isDragging||(this.curTime=t,this.updateTimeLine(),this.updateRecordLine(),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime))}},{key:"getTime",value:function(){return this.curTime}},{key:"setScale",value:function(t){this.timeScale=t,this.updateTimeLine(),this.updateRecordLine()}},{key:"findRecord",value:function(t){this.curTime=t;var e=this.normalRecords.findNext(this.curTime);return null!==e||(e=this.alarmRecords.findNext(this.curTime)),e}},{key:"setDevice",value:function(t){this.deviceInfo=t,null!==this.streamProxy&&this.streamProxy.open(this.deviceInfo),this.queryCache.clear(),this.normalRecords.clear(),this.alarmRecords.clear(),this.eventRecords.clear(),this.updateTimeLine(),this.updateRecordLine()}},{key:"setWsPort",value:function(t){var e=this;t===this.wsPort&&null!==this.streamProxy||(null===this.streamProxy&&(this.streamProxy=new we(t,this.proxy,bt.VOD_CHANNEL),this.streamProxy.onRecords=function(t,n,i){e.addRecords(t,n,i)}),void 0!==this.deviceInfo&&this.streamProxy.open(this.deviceInfo))}},{key:"addRecords",value:function(t,e,n){var i,r=Oe(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;1===o.type?this.normalRecords.add(o):2===o.type?this.alarmRecords.add(o):3===o.type&&this.eventRecords.add(o)}}catch(t){r.e(t)}finally{r.f()}this.queryCache.merge(t,e),this.updateRecordLine()}},{key:"mounted",value:function(){var t=this;this.timeCanvas=this.$refs.timeCanvas,this.timeCtx=this.timeCanvas.getContext("2d"),this.recordCanvas=this.$refs.recordCanvas,this.recordCtx=this.recordCanvas.getContext("2d"),this.timerId=setInterval((function(){null!==t.timeCanvas&&(t.oldWidth===t.$el.clientWidth&&t.oldHeight===t.$el.clientHeight||(t.oldWidth=t.$el.clientWidth,t.oldHeight=t.$el.clientHeight,t.onReSize()))}),500),void 0!==this.wsPort&&(this.streamProxy=new we(this.wsPort,this.proxy,bt.VOD_CHANNEL),this.streamProxy.onRecords=function(e,n,i){t.addRecords(e,n,i)}),0!==this.initTime&&(this.curTime=this.initTime),this.curTime<this.minTime?this.curTime=this.minTime:this.maxTime>0&&this.curTime>this.maxTime&&(this.curTime=Math.floor((this.minTime+this.maxTime)/2)),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime)}},{key:"onReSize",value:function(){null!==this.timeCanvas&&(this.timeCanvas.style.top="0px",this.timeCanvas.style.height="60px",this.timeCanvas.width=2*this.oldWidth,this.timeCanvas.height=60,this.timeCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.timeCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateTimeLine()),null!==this.recordCanvas&&(this.recordCanvas.style.top="18px",this.recordCanvas.style.height="15px",this.recordCanvas.width=2*this.oldWidth,this.recordCanvas.height=15,this.recordCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.recordCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateRecordLine())}},{key:"destroy",value:function(){this.timeCtx=null,this.recordCtx=null,0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.streamProxy&&this.streamProxy.close()}},{key:"mouseDown",value:function(t){this.isDragging=!0,this.startDragTime=this.curTime,this.prevMouseX=t.screenX}},{key:"mouseMove",value:function(t){if(this.isDragging&&null!==this.timeCanvas){var e=this.curTime%Ie.TIME_SCALE[this.timeScale];0!==e&&(this.curTime-=e);var n=t.movementX;n||(n=t.screenX-this.prevMouseX),this.prevMouseX=t.screenX;var i=this.curTime-n*Ie.TIME_SCALE[this.timeScale];i<this.minTime||this.maxTime>0&&i>this.maxTime||(this.xOffset+=n,this.curTime=i,this.xOffset>-10||this.xOffset<-(this.oldWidth-10)?(this.updateTimeLine(),this.updateRecordLine()):(this.timeCanvas.style.left="".concat(this.xOffset,"px"),null!==this.recordCanvas&&(this.recordCanvas.style.left=this.timeCanvas.style.left)),this.$emit("onMove",this.winIndex,this.curTime))}else this.prevMouseX=t.screenX}},{key:"mouseUp",value:function(){this.isDragging&&this.startDragTime!==this.curTime&&this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime),this.isDragging=!1}},{key:"mouseLeave",value:function(){this.isDragging&&this.mouseUp(),this.isDragging=!1}},{key:"getCurrentRecord",value:function(){var t=this.normalRecords.find(this.curTime),e=this.alarmRecords.find(this.curTime);return null!==t&&null!==e?t.endTime>e.endTime?t:e:null!==t?t:null!==e?e:null}},{key:"updateTimeLine",value:function(){if(null!==this.timeCtx&&null!==this.timeCanvas&&0!==this.oldWidth){this.xOffset=-this.oldWidth/2,this.timeCanvas.style.left="".concat(this.xOffset,"px"),this.timeCtx.clearRect(0,0,this.timeCanvas.width,this.oldHeight),this.timeCtx.fillStyle="rgb(180, 180, 180)",this.timeCtx.strokeStyle="rgb(180, 180, 180)",this.timeCtx.font="11px Arial",this.timeCtx.lineWidth=1,this.timeCtx.beginPath(),this.timeCtx.moveTo(0,15.5),this.timeCtx.lineTo(this.timeCanvas.width,15.5);var t=this.curTime-this.curTime%Ie.TIME_SCALE[this.timeScale],e=Math.floor(t-Math.floor(this.oldWidth)*Ie.TIME_SCALE[this.timeScale]),n=60*Ie.TIME_SCALE[this.timeScale],i=10*Ie.TIME_SCALE[this.timeScale],r=e%i;e-=r,this.startDrawTime=e,this.startDrawOffset=-r/Ie.TIME_SCALE[this.timeScale]+.5;for(var o=new Date,a=this.startDrawOffset;a<=this.timeCanvas.width;a+=10){if(this.timeCtx.moveTo(a,17),e<this.minTime||this.maxTime>0&&e>this.maxTime);else if(e%n==0){this.timeCtx.lineTo(a,40),o.setTime(1e3*e);var s,l=o.getHours(),c=o.getMinutes();s=l>9&&c>9?"".concat(l,":").concat(c):l>9?"".concat(l,":0").concat(c):c>9?"0".concat(l,":").concat(c):"0".concat(l,":0").concat(c),this.timeCtx.fillText(s,a-14,50)}else this.timeCtx.lineTo(a,33);e+=i}this.timeCtx.closePath(),this.timeCtx.stroke();var u=Math.round(this.startDrawTime+Ie.TIME_SCALE[this.timeScale]*(this.timeCanvas.width-this.startDrawOffset));this.queryCache.isInclude(this.startDrawTime,u)||null!==this.streamProxy&&this.streamProxy.query(this.startDrawTime,u)}}},{key:"updateRecordLine",value:function(){null!==this.recordCtx&&null!==this.recordCanvas&&0!==this.oldWidth&&(this.recordCanvas.style.left="".concat(this.xOffset,"px"),this.recordCtx.clearRect(0,0,this.recordCanvas.width,this.recordCanvas.height),this.recordCtx.lineWidth=3,this.recordCtx.strokeStyle="rgba(220, 0, 0, 0.8)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.alarmRecords,1,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke(),this.recordCtx.strokeStyle="rgba(3,127,220,0.9)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.normalRecords,12,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke())}},{key:"drawRecordLine",value:function(t,e,n,i){var r,o=Oe(e.range(this.startDrawTime,this.startDrawTime+Ie.TIME_SCALE[this.timeScale]*i));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=Math.floor((a.startTime-this.startDrawTime)/Ie.TIME_SCALE[this.timeScale]),l=Math.round((a.endTime-this.startDrawTime)/Ie.TIME_SCALE[this.timeScale]);t.moveTo(s+this.startDrawOffset,n),t.lineTo(l+this.startDrawOffset,n)}}catch(t){o.e(t)}finally{o.f()}}},{key:"curTimeStr",get:function(){return this.tmpDate.setTime(1e3*this.curTime),Ie.formatTime(this.tmpDate)}},{key:"scaleStr",get:function(){return Ie.TIME_SCALE_TIP[this.timeScale]}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}},{key:"formatTime",value:function(t){var e=Ie.pad;return"".concat(e(t.getFullYear()),"-").concat(e(t.getMonth()+1),"-").concat(e(t.getDate())," ").concat(e(t.getHours()),":").concat(e(t.getMinutes()),":").concat(e(t.getSeconds()))}}]),n}(v.a);Me.MAX_TIME_SCALE=3,Me.TIME_SCALE=[1,10,30,60],Me.TIME_SCALE_TIP=["缩放比例: 1分钟","缩放比例: 10分钟","缩放比例: 30分钟","缩放比例: 60分钟"],p([L({default:0})],Me.prototype,"initTime",void 0),p([L({default:0})],Me.prototype,"minTime",void 0),p([L({default:0})],Me.prototype,"maxTime",void 0),p([L({default:0})],Me.prototype,"winIndex",void 0),p([L()],Me.prototype,"wsPort",void 0),p([L()],Me.prototype,"proxy",void 0);var Ne=Me=Ie=p([R({components:{}})],Me),Be=(n("1d01"),se(Ne,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeline"},[n("canvas",{ref:"timeCanvas",staticClass:"ruler",attrs:{width:"400",height:"40"},on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseleave:t.mouseLeave,mouseup:t.mouseUp}}),n("canvas",{ref:"recordCanvas",staticClass:"records",attrs:{width:"400",height:"40"}}),n("span",{staticClass:"scale"},[t._v(t._s(t.scaleStr))]),n("span",{staticClass:"time"},[t._v(t._s(t.curTimeStr))]),n("div",{staticClass:"time-p"})])}),[],!1,null,"85562768",null)).exports,We=(n("7da8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"calendarPanel"},[n("div",{staticClass:"calendar-header"},[n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preYear")}}},[t._v("<<")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preMonth")}}},[t._v("<")]),n("span",{staticClass:"currentDate"},[t._v(t._s(t.year+"年"+t.month+"月"))]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextMonth")}}},[t._v(">")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextYear")}}},[t._v(">>")])]),n("div",{staticClass:"calendar-main"},[n("ul",{staticClass:"main-header"},t._l(t.week,(function(e,i){return n("li",{key:i},[t._v("\n "+t._s(e)+"\n ")])})),0),n("ul",{staticClass:"main"},[t._l(t.weekDay,(function(e){return n("li",{key:e,staticClass:"disabled"},[t._v("\n "+t._s(t.preMonthSize-t.weekDay+e)+"\n ")])})),t._l(t.monthList[t.month-1],(function(e){return n("li",{key:e},[n("span",{class:{currentDay:e===t.day}},[t._v("\n "+t._s(e)+"\n ")])])})),t._l(t.lastWeekDay,(function(e){return n("li",{key:e,staticClass:"disabled"},[t._v(t._s(e))])}))],2)])])});function Fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Ue,ze=function(t){u(n,t);var e=Fe(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).year=0,t.month=0,t.day=0,t.week=["日","一","二","三","四","五","六"],t.monthList=[31,28,31,30,31,30,31,31,30,31,30,31],t.weekDay=1,t.lastWeekDay=1,t}return l(n,[{key:"created",value:function(){this.getCurrentDate(),this.initDate()}},{key:"getCurrentDate",value:function(){var t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()}},{key:"getWeekDay",value:function(t,e,n){return new Date("".concat(t,"/").concat(e,"/").concat(n)).getDay()}},{key:"initDate",value:function(){this.year%4==0&&this.year%100!=0||this.year%400==0?this.monthList[1]=29:this.monthList[1]=28;var t=this.getWeekDay(this.year,this.month,1);this.weekDay=7===t?0:t;var e=this.getWeekDay(this.year,this.month,this.monthList[this.month-1]);this.lastWeekDay=7===e?6:6-e}},{key:"changeDate",value:function(t){switch(t){case"preYear":this.year-=1;break;case"preMonth":1===this.month?(this.month=12,this.year-=1):this.month-=1;break;case"nextYear":this.year+=1;break;case"nextMonth":12===this.month?(this.month=1,this.year+=1):this.month+=1}this.initDate()}},{key:"preMonthSize",get:function(){return this.month-1==0?31:this.monthList[this.month-2]}}]),n}(v.a),je=ze=p([R],ze),Ye=(n("b5f0"),se(je,We,[],!1,null,"48879689",null)).exports;function He(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Ve=Ue=function(t){u(n,t);var e=He(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).pos=0,t.date=new Date,t.dragging=!1,t}return l(n,[{key:"formatTime",value:function(t){if(0===t)return"";var e=Ue.pad;return this.date.setTime(1e3*t),this.utc?"".concat(e(this.date.getUTCHours()),":").concat(e(this.date.getUTCMinutes()),":").concat(e(this.date.getUTCSeconds())):"".concat(e(this.date.getHours()),":").concat(e(this.date.getMinutes()),":").concat(e(this.date.getSeconds()))}},{key:"onTimeChange",value:function(t,e){this.time>0?!this.dragging&&this.time>=this.record.startTime&&this.time<=this.record.endTime&&(this.pos=this.time):this.pos=this.record.startTime}},{key:"onDragEnd",value:function(){this.dragging=!1;var t=this.$refs.vs;this.$emit("onDrag",t.getValue())}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}}]),n}(v.a);p([L({default:{startTime:0,endTime:0,type:0}})],Ve.prototype,"record",void 0),p([L({default:0})],Ve.prototype,"time",void 0),p([L({default:!1})],Ve.prototype,"utc",void 0),p([P("$attrs.time",{immediate:!0,deep:!0})],Ve.prototype,"onTimeChange",null);var Ke,Ge=Ve=Ue=p([R({components:{VueSlider:Ce.a}})],Ve),qe=(n("1820"),se(Ge,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"play-pb"},[n("vue-slider",{ref:"vs",attrs:{silent:!0,min:t.record.startTime,max:t.record.endTime,"tooltip-formatter":function(e){return t.formatTime(e)},"rail-style":{backgroundColor:"#3d3d3d"},clickable:!1},on:{dragstart:function(e){t.dragging=!0},"drag-end":t.onDragEnd},model:{value:t.pos,callback:function(e){t.pos=e},expression:"pos"}})],1)}),[],!1,null,"44448bc0",null)).exports;!function(t){t[t.STOPPED=0]="STOPPED",t[t.DOWNLOADING=1]="DOWNLOADING",t[t.DOWNLOAD_FAILED=2]="DOWNLOAD_FAILED",t[t.FINISHED=3]="FINISHED"}(Ke||(Ke={}));var Qe=function(){function t(e,n,i,r){o(this,t),this.websocket=null,this.downloading=!1,this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.channelId=e,this.deviceId=n,this.record=i,this.targetPath=r||""}return l(t,[{key:"start",value:function(e){var n=this,i=At.createWebsocket(e,null);this.websocket=i;var r=At.stringToUnix(this.record.beginTime),o=At.stringToUnix(this.record.endTime),a=this.targetPath;return this.websocket.onopen=function(){i.send(JSON.stringify({cmd:we.CMD_INIT_CHANNEL,type:"vod"})),i.send(JSON.stringify({cmd:t.CMD_DOWNLOAD_RECORD,id:n.deviceId,startTime:r,endTime:o,path:a}))},this.websocket.onclose=function(){n.downloading&&n.onStatus(n.channelId,Ke.DOWNLOAD_FAILED,_t.NETWORK_ERROR,"")},this.websocket.onerror=function(){n.downloading&&n.onStatus(n.channelId,Ke.DOWNLOAD_FAILED,_t.NETWORK_ERROR,"")},this.websocket.onmessage=function(t){if("string"==typeof t.data){var e=JSON.parse(t.data);"download_status"===e.cmd?n.onStatus(n.channelId,e.status,e.code,e.path):"download_progress"===e.cmd&&n.onProgress(n.channelId,Math.min(Math.max(100*e.progress,0),99.99),e.size)}},this.downloading=!0,_t.OK}},{key:"stop",value:function(){if(this.downloading=!1,null===this.websocket)return null;this.websocket.close()}}]),t}();Qe.CMD_DOWNLOAD_RECORD="download_record";var Je,Xe,Ze=function(){function t(e){o(this,t),this.idSeed=1,this.channels={},this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.wsPort=e}return l(t,[{key:"create",value:function(t,e,n){var i="".concat(this.idSeed),r=new Qe(i,t,e,n);return r.onStatus=this.onStatus,r.onProgress=this.onProgress,this.channels[i]=r,this.idSeed+=1,i}},{key:"start",value:function(t){var e=this.channels[t];return e?e.start(this.wsPort):_t.NO_TASK}},{key:"stop",value:function(t){var e=this.channels[t];return e?(e.stop(),_t.OK):_t.NO_TASK}},{key:"delete",value:function(t){var e=this.channels[t];return e?(e.stop(),this.channels[t]=void 0,_t.OK):_t.NO_TASK}},{key:"destroy",value:function(){for(var t=0,e=Object.keys(this.channels);t<e.length;t++){var n=e[t],i=this.channels[n];i&&i.stop()}this.channels={}}}]),t}();function $e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function nn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}!function(t){t[t.NONE=0]="NONE",t[t.SERVICE_CONNECTING=1]="SERVICE_CONNECTING",t[t.SERVICE_ESTABLISH=2]="SERVICE_ESTABLISH",t[t.CHANNEL_ESTABLISH=3]="CHANNEL_ESTABLISH",t[t.SERVICE_DISCONNECTED=4]="SERVICE_DISCONNECTED",t[t.CHANNEL_DISCONNECTED=5]="CHANNEL_DISCONNECTED",t[t.SERVICE_ERROR=6]="SERVICE_ERROR"}(Xe||(Xe={}));var rn=Je=function(t){u(n,t);var e=nn(n);function n(){var t;return o(this,n),(t=e.call(this)).dcs=null,t.timeScaleIndex=2,t.isFullscreen=!1,t.fullScreenCheckTimer=0,t.ps=null,t.expandTimeline=!1,t.errorMsg="",t.wsPort=0,t.heartTimer=0,t.singleMode=!0,t.syncPlayTimer=0,t.syncPlayWindows=[],t.syncFirstTick=0,t.syncFirstTime=0,t.loaded=!1,t.downloader=null,t.lastDeviceId=null,t.wsInitChannel=null,t.windowInfos=[],t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t),this.updateLayoutShow()}},{key:"openDevice",value:function(t,e,n,i){var r=this;if(null===this.windowLayout||0===this.wsPort)return!1;this.lastDeviceId=t,this.windowInfos[0].deviceInfo.id=t,this.windowInfos[0].minTime=this.windowInfos[0].deviceInfo.minTime=At.stringToUnix(e),this.windowInfos[0].maxTime=this.windowInfos[0].deviceInfo.maxTime=At.stringToUnix(n);var o={id:t,minTime:this.windowInfos[0].deviceInfo.minTime,maxTime:this.windowInfos[0].deviceInfo.maxTime},a=this.windowLayout.getWindow(0);return a.setDevice(o),this.singleMode=!1,this.$nextTick((function(){r.getTimeLine(0).setDevice(o),e&&n&&r.getTimeLine(0).setTime(o.minTime),i&&a.playPos(o.minTime,ye.FORWARD)})),!0}},{key:"playVodStream",value:function(t,e,n){if(this.singleMode=!0,null!==this.windowLayout){for(var i=this.windowLayout.getWindowCount(),r=0;r<i;r++)this.windowLayout.getWindow(r).stop();0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0);var o=this.windowLayout.getWindow(0),a=At.stringToUnix(e.beginTime),s=At.stringToUnix(e.endTime),l=At.stringToUnix(n);o.setDevice({id:t,minTime:a,maxTime:s}),this.lastDeviceId=t,o.playPos(l,ye.FORWARD)}}},{key:"stopPlay",value:function(){this.stop(0)}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout&&!(t<0||t>=this.windowInfos.length)){var e=this.windowLayout.getWindow(t);if(null!==e){if(this.windowInfos[e.index].timeline.sync){cancelAnimationFrame(this.syncPlayTimer);var n,i=tn(this.getSyncIndexes(e.index));try{for(i.s();!(n=i.n()).done;){var r=n.value;this.windowLayout.getWindow(r).stop(),this.syncPlayTimer=0}}catch(t){i.e(t)}finally{i.f()}}else e.stop();this.$emit("onStop",t)}}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"login",value:function(t,e,n,i){return 0===this.wsPort?_t.INVALID_STATE:this.getDcs().login(t,e,n,i)}},{key:"createDownloadTask",value:function(t,e,n){return 0===this.wsPort||this.wsInitChannel&&this.wsInitChannel.isProxy()?"":this.getDownloader().create(t,e,n)}},{key:"startDownload",value:function(t){return 0===this.wsPort?_t.INVALID_STATE:this.getDownloader().start(t)}},{key:"stopDownload",value:function(t){return 0===this.wsPort?_t.INVALID_STATE:this.getDownloader().stop(t)}},{key:"destroyDownloadTask",value:function(t){return 0===this.wsPort?_t.INVALID_STATE:this.getDownloader().delete(t)}},{key:"openFolder",value:function(t){null!=this.wsInitChannel&&this.wsInitChannel.openFolder(t)}},{key:"setExtRenderCallback",value:function(t){if(this.windowLayout){var e=this.windowLayout.getWindow(0);e&&e.setExtRenderCallback(t)}}},{key:"onLayoutChange",value:function(t,e){0!==this.wsPort&&this.setLayout(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&"undefined"!==this.server&&this.loaded&&this.tryLogin()}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new de(this.$refs.win_table,(function(n,i){var r=new ke(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp(),bt.VOD_CHANNEL);return r.onStatus=function(t){e.onWindowStatus(n,t)},r.onPosChange=function(t){e.onPlayPos(n,t)},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(i,r){if(t.singleMode)e.$emit("onPlayFinished",n,i,r);else if(null!==e.windowLayout){var o=e.windowLayout.getWindow(n);null!==o&&e.playNext(o,r)}},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r})),this.windowLayout.setup(),this.wsInitChannel=new Zt(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(n,i){e.wsPort=i,null!==e.windowLayout&&e.setLayout(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.layout)),e.onLoad(n)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=Q.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0,t.$emit("onLoadFailed",Q.PLUGIN_SERVICE_NOTFOUND)},this.wsInitChannel.onDisconnected=function(){t.errorMsg=Q.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0,t.$emit("onDisconnected",Q.PLUGIN_SERVICE_NOTFOUND)}}},{key:"beforeDestroy",value:function(){0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0),0!==this.heartTimer&&window.clearInterval(this.heartTimer),null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.ps&&(this.ps.destroy(),this.ps=null),null!==this.wsInitChannel&&this.wsInitChannel.close(),null!==this.dcs&&(this.dcs.destroy(),this.dcs=null),this.getDownloader().destroy()}},{key:"tryLogin",value:function(){this.server.length>0&&this.getDcs().loginByUrl(this.server)}},{key:"getDcs",value:function(){var t=this;return null===this.dcs&&(this.dcs=new Vt(this.wsPort,null===this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp()),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)}),this.dcs}},{key:"getDownloader",value:function(){var t=this;return null===this.downloader&&(this.downloader=new Ze(this.wsPort),this.downloader.onStatus=function(e,n,i,r){t.$emit("onDownloadStatus",e,n,i,r)},this.downloader.onProgress=function(e,n,i){t.$emit("onDownloadProgress",e,n,i)}),this.downloader}},{key:"onWindowStatus",value:function(t,e){this.windowInfos[t].status=e}},{key:"onPlayPos",value:function(t,e){this.singleMode||null===this.windowLayout||this.getTimeLine(t).setTime(e)}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return _t.INVALID_STATE;if(t<0||t>=this.windowInfos.length)return _t.INVALID_PARAM;var n=this.windowLayout.getWindow(0);return null===n?_t.UNKNOWN_ERROR:e(n)}},{key:"updateLayoutShow",value:function(){if(null!==this.windowLayout){for(var t=this.windowInfos.length;t<this.windowLayout.getWindowCount();t++){var e={timeline:{time:0,scale:2,sync:!1},id:t,time:0,minTime:Math.floor(Date.now()/1e3)-172800,maxTime:Math.floor(Date.now()/1e3)+172800,deviceInfo:{id:"",streamIp:"",streamPort:0,queryIp:"",queryPort:0,name:"",minTime:0,maxTime:0},status:ge.STOPPED,record:{startTime:0,endTime:0,type:0},syncPlayTimer:0};this.windowInfos.push(e)}for(;this.windowInfos.length>this.windowLayout.getWindowCount();)this.windowInfos.pop()}else this.windowInfos=[]}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy()),this.tryLogin()}},{key:"getTimeLine",value:function(t){return this.$refs.timelines[t]}},{key:"onTimeLineMove",value:function(t,e){if(!this.singleMode&&this.windowInfos[t].timeline.sync)for(var n=0;n<this.windowInfos.length;n++)n!==t&&this.windowInfos[n].timeline.sync&&this.getTimeLine(n).setTime(e)}},{key:"onTimeLineRecord",value:function(t,e,n){this.singleMode||null===this.windowLayout||this.windowLayout.getWindow(t).moveTo(n)}},{key:"onToolButton",value:function(t,e){var n=this;if("scale-up"===t){if(this.timeScaleIndex<Je.MAX_TIME_SCALE&&this.timeScaleIndex++,!this.singleMode){var i,r=tn(this.$refs.timelines);try{for(r.s();!(i=r.n()).done;)i.value.setScale(this.timeScaleIndex)}catch(t){r.e(t)}finally{r.f()}}}else if("scale-down"===t){if(this.timeScaleIndex>0&&this.timeScaleIndex--,!this.singleMode){var o,a=tn(this.$refs.timelines);try{for(a.s();!(o=a.n()).done;)o.value.setScale(this.timeScaleIndex)}catch(t){a.e(t)}finally{a.f()}}}else if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("expand"===t)this.expandTimeline=!0;else if("shrink"===t)this.expandTimeline=!1;else if("snap"===t){var s=this.selectedWindow();null!==s&&s.snapshot()}else if("play"===t){var l=this.selectedWindow(),c=-1===e?ye.BACKWARD:ye.FORWARD,u=this.getSyncIndexes(l.index);if(u.length>1){this.syncPlayWindows=[];var h,d=this.getTimeLine(u[0]).getTime(),f=tn(u);try{for(f.s();!(h=f.n()).done;){var p=h.value;if(null!==this.windowLayout){this.getTimeLine(p).setTime(d);var m=this.windowLayout.getWindow(p);m.syncPlay(d),this.syncPlayWindows.push(m)}}}catch(t){f.e(t)}finally{f.f()}this.syncPlayTimer=requestAnimationFrame((function(){return n.syncPlay()})),this.syncFirstTick=0,this.syncFirstTime=0}else l.play(c)}else if("stop"===t){var v=this.selectedWindow();this.stop(v.index)}else if("pause"===t){var g=this.selectedWindow();null!==g&&g.pause()}else if("back"===t){var y=this.selectedWindow();null!==y&&y.subSpeed()}else if("forward"===t){var w=this.selectedWindow();null!==w&&w.addSpeed()}else if("speed"===t){var b=e,A=this.selectedWindow();null!==A&&A.setSpeed(b)}else if("prev"===t){var x=this.selectedWindow();null!==x&&x.stepPrev()}else if("next"===t){var k=this.selectedWindow();null!==k&&k.stepNext()}}},{key:"playNext",value:function(t,e){if(ye.FORWARD===e){var n=t.posSec;t.record.endTime>0&&t.posSec<t.record.endTime&&(n=t.record.endTime);var i=this.getTimeLine(t.index).findRecord(n);null!==i&&i.startTime<=n?t.play(e):null!==i&&(t.moveTo(i.startTime),t.play(e))}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"getSyncIndexes",value:function(t){var e=[];if(!this.windowInfos[t].timeline.sync)return e;for(var n=0;n<this.windowInfos.length;n++)this.windowInfos[n].timeline.sync&&e.push(n);return e}},{key:"syncPlay",value:function(){var t,e=this,n=72057594037927940,i=null,r=tn(this.syncPlayWindows);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.minFrameTime();a>0&&a<n&&(n=a,i=o)}}catch(t){r.e(t)}finally{r.f()}if(null===i)this.syncFirstTick=0;else if(0===this.syncFirstTick)this.syncFirstTick=performance.now()+10,this.syncFirstTime=n,i.syncStep();else{var s=performance.now(),l=s-this.syncFirstTick-(n-this.syncFirstTime);(l>1e3||l<-1e3)&&(this.syncFirstTick=s,this.syncFirstTime=n),l>0&&i.syncStep()}requestAnimationFrame((function(){return e.syncPlay()}))}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?ge.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ye.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"syncMode",get:function(){var t=this.selectedWindow();if(null===t)return!1;if(!this.windowInfos[t.index].timeline.sync)return!1;for(var e=0;e<this.windowInfos.length;e++)if(e!==t.index&&this.windowInfos[e].timeline.sync)return!0;return!1}},{key:"showError",get:function(){return 0===this.wsPort}},{key:"timesHeight",get:function(){return this.expandTimeline?"".concat(60*this.windowInfos.length,"px"):"60px"}},{key:"timesTop",get:function(){if(this.expandTimeline||null===this.windowLayout)return"0px";var t=60*this.windowLayout.getSelectedIndex();return"-".concat(t,"px")}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(v.a);rn.MAX_TIME_SCALE=3,p([L({default:function(){return{rows:1,cols:1,combines:{}}}})],rn.prototype,"layout",void 0),p([L({default:"dark"})],rn.prototype,"theme",void 0),p([L({default:!1})],rn.prototype,"dbClick",void 0),p([L({default:!0})],rn.prototype,"timeLine",void 0),p([L({default:""})],rn.prototype,"server",void 0),p([L({default:""})],rn.prototype,"proxy",void 0),p([P("layout",{immediate:!0,deep:!1})],rn.prototype,"onLayoutChange",null),p([P("$attrs.server",{immediate:!0})],rn.prototype,"onServerChange",null);var on=rn=Je=p([R({components:{ProgressBar:qe,Calendar:Ye,VodToolBar:De,VodTimeLine:Be}})],rn),an=(n("d3b2"),n("2ed9"),se(on,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.singleMode&&t.wsPort>0&&t.lastDeviceId,expression:"singleMode && wsPort > 0 && lastDeviceId"}],ref:"pb",attrs:{record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.lastDeviceId,expression:"lastDeviceId"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":t.windowInfos.length>1&&t.expandTimeline,"is-single":t.singleMode||!t.timeLine,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":t.syncMode},on:{onBtnClick:t.onToolButton}}),!t.singleMode&&t.timeLine?n("div",{ref:"times",staticClass:"vod-times",style:{height:t.timesHeight,overflow:"hidden"}},[n("div",{staticClass:"times-panel",style:{left:0,top:t.timesTop}},t._l(t.windowInfos,(function(e){return n("div",{key:e.id,staticClass:"vod-time-row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.windowInfos.length>1&&t.expandTimeline,expression:"windowInfos.length > 1 && expandTimeline"}],staticClass:"vod-time-left"},[n("label",[t._v(t._s(e.deviceInfo.name))]),n("label",[t._v("\n 同步\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.timeline.sync,expression:"win.timeline.sync"}],attrs:{type:"checkbox",disabled:t.syncPlayTimer>0||0!==e.status},domProps:{checked:Array.isArray(e.timeline.sync)?t._i(e.timeline.sync,null)>-1:e.timeline.sync},on:{change:function(n){var i=e.timeline.sync,r=n.target,o=!!r.checked;if(Array.isArray(i)){var a=t._i(i,null);r.checked?a<0&&t.$set(e.timeline,"sync",i.concat([null])):a>-1&&t.$set(e.timeline,"sync",i.slice(0,a).concat(i.slice(a+1)))}else t.$set(e.timeline,"sync",o)}}})])]),n("vod-time-line",{key:e.id,ref:"timelines",refInFor:!0,attrs:{"win-index":e.id,"min-time":e.minTime,"max-time":e.maxTime,"ws-port":t.wsPort,proxy:t.proxyIp},on:{onMove:t.onTimeLineMove,onRecord:t.onTimeLineRecord}})],1)})),0)]):t._e()],1)}),[],!1,null,"7eb6e3ed",null)).exports;function sn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ln(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function cn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var un=function(t){u(n,t);var e=cn(n);function n(){var t;return o(this,n),(t=e.call(this)).isFullscreen=!1,t.fullScreenCheckTimer=0,t.errorMsg="",t.wsPort=0,t.loaded=!1,t.fileOpened=!1,t.wsInitChannel=null,t.initPos=0,t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t)}},{key:"playFile",value:function(t,e){if(null===this.windowLayout)return _t.INVALID_STATE;for(var n=this.windowLayout.getWindowCount(),i=0;i<n;i++)this.windowLayout.getWindow(i).stop();var r,o=this.windowLayout.getWindow(0),a=[],s=sn(this.addrs);try{for(s.s();!(r=s.n()).done;){var l=r.value.split(":",2);if(2!==l.length)return _t.INVALID_PARAM;a.push({addr:l[0],port:parseInt(l[1],10)})}}catch(t){s.e(t)}finally{s.f()}return o.setFile({addrs:a,pool:this.pool,username:this.username,password:this.password,path:t}),this.initPos=e||0,_t.OK}},{key:"stopPlay",value:function(){return this.stop(0),_t.OK}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout){var e=this.windowLayout.getWindow(t);null!==e&&(e.stop(),this.$emit("onStop",t))}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new de(this.$refs.win_table,(function(n,i){var r=new ke(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp(),bt.FILE_CHANNEL);return r.onStatus=function(t){},r.onPosChange=function(t){},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(t,i){e.$emit("onPlayFinished",n,t,i)},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r.onOpenFileState=function(n,i){0===n?(r.record.startTime=0,r.record.endTime=Math.floor(i/1e3),t.fileOpened=!0,r.playPos(t.initPos,ye.FORWARD)):(t.errorMsg="打开文件失败 ("+n+")",e.$emit("onPlayState",!1,n))},r})),this.windowLayout.setup(),this.wsInitChannel=new Zt(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(t,n){e.wsPort=n,null!==e.windowLayout&&e.setLayout({rows:1,cols:1,combines:{}}),e.onLoad(t)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=Q.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0,t.$emit("onLoadFailed",Q.PLUGIN_SERVICE_NOTFOUND)},this.wsInitChannel.onDisconnected=function(){t.errorMsg=Q.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0,t.$emit("onDisconnected",Q.PLUGIN_SERVICE_NOTFOUND)}}},{key:"beforeDestroy",value:function(){null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return _t.INVALID_STATE;var n=this.windowLayout.getWindow(0);return null===n?_t.UNKNOWN_ERROR:e(n)}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy())}},{key:"onToolButton",value:function(t,e){if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("snap"===t){var n=this.selectedWindow();null!==n&&n.snapshot()}else if("play"===t){var i=this.selectedWindow(),r=-1===e?ye.BACKWARD:ye.FORWARD;i.play(r)}else if("stop"===t){var o=this.selectedWindow();this.stop(o.index)}else if("pause"===t){var a=this.selectedWindow();null!==a&&a.pause()}else if("back"===t){var s=this.selectedWindow();null!==s&&s.subSpeed()}else if("forward"===t){var l=this.selectedWindow();null!==l&&l.addSpeed()}else if("speed"===t){var c=e,u=this.selectedWindow();null!==u&&u.setSpeed(c)}else if("prev"===t){var h=this.selectedWindow();null!==h&&h.stepPrev()}else if("next"===t){var d=this.selectedWindow();null!==d&&d.stepNext()}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?ge.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ye.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"showError",get:function(){return 0===this.wsPort||this.errorMsg}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(v.a);un.MAX_TIME_SCALE=3,p([L({default:"dark"})],un.prototype,"theme",void 0),p([L({default:""})],un.prototype,"proxy",void 0),p([L({default:[]})],un.prototype,"addrs",void 0),p([L({default:""})],un.prototype,"username",void 0),p([L({default:""})],un.prototype,"password",void 0),p([L({default:""})],un.prototype,"pool",void 0);var hn=un=p([R({components:{ProgressBar:qe,VodToolBar:De}})],un),dn=(n("7aa1"),n("227c"),se(hn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.wsPort>0&&t.fileOpened,expression:" wsPort > 0 && fileOpened"}],ref:"pb",attrs:{utc:!0,record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.fileOpened,expression:"fileOpened"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":!1,"is-single":!0,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":!1,"no-back":!0},on:{onBtnClick:t.onToolButton}})],1)}),[],!1,null,"9bb76214",null)).exports,fn=n("c0e8"),pn={install:function(t,e){t.component("live-player",le),t.component("vod-player",an),t.component("vod-file-player",dn)}};e.default=pn}})},"object"===s(e)&&"object"===s(t)?t.exports=a(n(4)):(r=[],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o))}).call(this,n(32)(t))},,,,,,function(t,e,n){(e=n(2)(!1)).push([t.i,'@font-face {\n font-family: "qz-player";\n src: url(data:application/x-font-woff;base64,d09GRgABAAAAAASwAAsAAAAAB1QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFYz/UCgY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAANIAAAEkmlTsGmhlYWQAAAK4AAAALwAAADYXuckiaGhlYQAAAugAAAAXAAAAJACeAFZobXR4AAADAAAAABAAAAAYAU8AAGxvY2EAAAMQAAAADgAAAA4BVgDobWF4cAAAAyAAAAAfAAAAIAETAENuYW1lAAADQAAAAS8AAAIieIN8EHBvc3QAAARwAAAAPgAAAFWUfn3KeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGSwYJzAwMrAwGDEYAYkuaC0KgMzgwgDAxMDKzMDVhCQ5prC4PCK8RUrgx+Qyw4kGYE0CDMAAOeaBg4AAHic7ZGxDcRACAQHHzh4fSUvl+LYkfsProkzC1+GkWYRK0SwAAGM5Egc7MZQXela+YNP+c6vdlz+jLVSTZqzl26567poO299S8//FEqrqfy2BvXR6A/TGyU6oyEeULURXXicbY9La8MwEIR3JFmvNpaT2NalheCUKFc/sMCQ1Kce1f//a1I59NYOLCzMt8MscaLHg74pEac3moni2Jzj1MnGt3WJLkTVO/jYjsMdUxi8iv0ngrp0JWrft8N8w2W6Ayl9MQZuSieZBgSXylb2wyhhASb0cW8KMBTapRSRJSunmRJgVnGzP3ghGfAiC1vVZvP1oTREjDYttOZN5nbKh3MzLiGE3W49nW4L/WVyx/yE/IeZM8NJ/X6Zxzr37tyalV08memZs6W8Xq/5nH4Al/cY5AAAeJxjYGRgYADi8M/XbsTz23xl4GbwA4ow3FE9ehRB///P4A8W52BgAokCAHPFDK4AeJxjYGRgYPBjAAF/KMnIgArYABdkAPUAeJxjYAACfyB2QMUADvUBUAAAAAAAUABiAHQAhgCSAAB4nGNgZGBgYGMwZ2BmAAEmIOYCQgaG/2A+AwAOkAFXAHicbZBLbsIwFEVvIFAVpAq1UqXOrA46qQifAQMWAHMGzAM4fJTEwRgkWEBX0DV0DV1Bh11Dl8KN+8SgxZaezju+fpEDoIUvBChXgFtfy1XBDbtfrpJawiH5SbiGJp6F6/Rt4QZeMRBu4gExJwRhOe0eTriCO7wJV+nfhUPyh3ANj/gUrtN/CzcwxY9wEy/BYHtqF2l81Hail/s0tpf+AlNtd2uTq17UvbixzrWNnV6o2VHtDsu+c4lKrMnUyOROp6lRhTUbPXfRyrli2Okk4qO5ybDFiS8ukPJ9R2hYTFiX2Htjr5z/N1Nfd1jDIIdCDxG6V3Jj1txTzD+osWB2xjPFuwd+s0/rkLBPmDHISCM/s0yn3Iam8Gcbmjl9hJW/VWCIDnfyJx8xxUlnKiFhMgB4nGNgYsAP2BiZGJkZWRhZGdkY2RnYEovyS/NSOJISk7PLE4tS2NPyi0A0a0FiaXEqa3FJYlEJAwMAD5oNUgAA) format(\'woff\');\n}\n\n.qz-player-icon {\n font-family: "qz-player" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.around::before {\n content: "\\ea01";\n}\n\n.backward::before {\n content: "\\ea02";\n}\n\n.forward::before {\n content: "\\ea03";\n}\n\n.pause::before {\n content: "\\ea04";\n}\n\n.start::before {\n content: "\\ea05";\n}\n',""]),t.exports=e},function(t,n){t.exports=e},,,,,,,,,,,,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var i=n(8);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".rtsp-player-component{position:relative}.rtsp-player-component .new-version-tip{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red;display:flex;flex-flow:column;align-items:center;justify-content:center;background-color:#080808}.rtsp-player-component .new-version-tip .vat-down{color:red;padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\");background-repeat:no-repeat}.rtsp-player-component .new-version-tip .vat-down span{display:table-cell;vertical-align:middle;height:32px}.rtsp-player-component .img,.rtsp-player-component .player,.rtsp-player-component .error-message{position:absolute;height:100%;width:100%;top:0;left:0}.rtsp-player-component .img{z-index:100;background-repeat:no-repeat;background-size:100% 100%;border:2px solid #fff0;box-sizing:border-box}.rtsp-player-component .error-message{z-index:100;color:#f56c6c;display:flex;justify-content:center;align-items:center}.rtsp-player-component .error-message .reconnect{cursor:pointer;color:#409eff}.fc-player .rtsp-player .el-loading-mask{background-color:#101010}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(9);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,".player-control-bar{position:absolute;z-index:3;display:flex;justify-content:center;width:100%;height:60px;bottom:135px}.player-control-bar .center{display:flex;align-items:center;justify-content:center;width:180px}.player-control-bar .center .qz-player-control-icon{font-size:18px;margin:0 16px;cursor:pointer;transition:all .3s}.player-control-bar .center .qz-player-control-icon.start,.player-control-bar .center .qz-player-control-icon.pause{font-size:30px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(10);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-time-select-bar{position:relative;z-index:2;display:flex;padding:0 10px;height:60px;border-top:1px solid}.player-time-select-bar .calendar{flex:1;display:flex;align-items:center}.player-time-select-bar .calendar .title{margin-left:20px;margin-right:20px;font-size:14px;color:#fff}.player-time-select-bar .calendar .el-date-editor{width:160px}.player-time-select-bar .calendar .el-date-editor .el-input__inner{border-radius:2px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(11);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-progress-bar{position:relative;z-index:2;height:75px}.player-progress-bar .progress-outer{height:100%;background:#505f67}.player-progress-bar .progress-outer .time-title{font-size:14px;font-weight:bold}.player-progress-bar .progress-outer .time-rect{width:160px;height:30px}.player-progress-bar .progress-outer .ticks-container{background-color:#000}.player-progress-bar .progress-outer .ticks-container .enter{font-size:12px;font-weight:normal;user-select:none}.player-progress-bar .progress-outer .ticks-container .update{fill:#333}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(12);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,'.qz-player{position:relative;z-index:1;height:100%;width:100%}.qz-player .el-loading-mask{background-color:#10101080}.qz-player .el-loading-mask .el-loading-spinner{margin-top:0;transform:translateY(-50%)}.qz-player .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c;border-radius:100%;padding:9px}.qz-player .el-loading-mask .el-loading-spinner .circular .path{stroke-width:3px}.qz-player .load-fail-mask{background-color:#72849b;width:100%;height:100%;display:flex;flex-flow:column;align-items:center;justify-content:center}.qz-player .load-fail-mask .fail-icon{width:39px;height:39px}.qz-player .load-fail-mask .error-text{margin-top:20px;margin-bottom:20px;font-size:16px;color:#e1e9ee}.qz-player .load-fail-mask .download-button{min-width:80px}.qz-player .rtsp-player{position:relative;z-index:2;height:100%}.qz-player .rtsp-player.playback-player-rtsp{height:calc(100% - 135px)}.qz-player .start-player-icon{position:absolute;z-index:998;width:60px;height:60px;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%);background-repeat:no-repeat;background-size:100%;background-position:center;cursor:pointer;opacity:.9;border-radius:100%;font-size:20px}.qz-player .start-player-icon::before{position:absolute;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%)}.qz-player .player-control-bar{opacity:0;transition:all .3s}.qz-player .player-control-bar:hover,.qz-player .playback-player:hover+.player-control-bar{opacity:1}.qz-player.light-theme .start-player-icon{color:#0091ff;background-color:#fff;box-shadow:0px 0px 30px 0px rgba(255,255,255,.5),0px 5px 15px 0px rgba(255,255,255,.3)}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular{background-color:#fff}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#0091ff}.qz-player.light-theme .player-control-bar{background-color:rgba(255,255,255,.9);color:#7b858f}.qz-player.light-theme .player-control-bar .qz-player-control-icon:hover{color:#0091ff}.qz-player.light-theme .player-progress-bar .progress-outer{background:#fff}.qz-player.light-theme .player-progress-bar .times-tick{fill:#666}.qz-player.light-theme .player-progress-bar .tick-path{stroke:#dde0e7}.qz-player.light-theme .player-progress-bar .time-title{fill:#fff}.qz-player.light-theme .player-progress-bar .time-rect{fill:#0091ff}.qz-player.light-theme .player-progress-bar .available-path,.qz-player.light-theme .player-progress-bar .domain{stroke:#0091ff}.qz-player.light-theme .player-time-select-bar{border-top-color:#f1f2f5;background-color:#fff}.qz-player.light-theme .player-time-select-bar .title{color:#333}.qz-player.light-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#333;border-color:#e3e6ec;background-color:#fff}.qz-player.dark-theme .start-player-icon{color:#ffc124;background-color:#2f4c5c;box-shadow:0px 0px 30px 0px rgba(0,0,0,.5),0px 5px 15px 0px rgba(0,0,0,.3)}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#fff}.qz-player.dark-theme .player-control-bar{background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #18272f 100%)}.qz-player.dark-theme .player-control-bar .qz-player-control-icon:hover{color:#ffc124}.qz-player.dark-theme .player-progress-bar .progress-outer{background:#505f67}.qz-player.dark-theme .player-progress-bar .times-tick{fill:#fff}.qz-player.dark-theme .player-progress-bar .tick-path{stroke:#868f94}.qz-player.dark-theme .player-progress-bar .time-title{fill:#38474f}.qz-player.dark-theme .player-progress-bar .time-rect{fill:#ffc124}.qz-player.dark-theme .player-progress-bar .available-path,.qz-player.dark-theme .player-progress-bar .domain{stroke:#ffc124}.qz-player.dark-theme .player-time-select-bar{border-top-color:#6e7f88;background-color:#6e7f88}.qz-player.dark-theme .player-time-select-bar .title{color:#fff}.qz-player.dark-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#fff;border-color:#586870;background-color:#586870}.el-picker-panel.qz-player-date-picker.dark-theme{border-radius:2px;background-color:#3c4852;border-color:#3c4852}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-picker-panel__icon-btn{color:#ffc124}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-date-picker__header-label{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table th{color:#e1e9ee;border-bottom:1px solid;border-color:#56646e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.available span{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.current:not(.disabled) span{background-color:#ffc124;border-radius:2px;color:#38474f}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.prev-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.next-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.today span{background-color:#2e3a40;border-radius:2px}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div{position:relative}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div::after{content:"";position:absolute;height:4px;width:4px;border-radius:100%;background-color:#d8d8d8;bottom:-2px;left:50%;transform:translate(-50%, 0px)}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow{border-top-color:#3c4852}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow::after{border-top-color:#3c4852}',""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"renderPlayer",class:"qz-player "+(t.basicConfig&&t.basicConfig.theme||"light-theme"),style:{height:t.playerHeight?t.playerHeight+"px":""}},[t.pluginLoadSuccess?[n("rtsp-player",{ref:"player",staticClass:"rtsp-player",class:"playback"===t.type&&""===t.playerServer&&t.showControlBar?"playback-player-rtsp":"",attrs:{type:t.type,urls:t.urls,config:t.basicConfig,pluginUrl:t.pluginUrl,playerServer:t.playerServer,fileServer:t.fileServer,vodTime:t.vodTime,errorCode:t.errorCode},on:{pluginOnload:t.pluginOnload,pluginStatus:t.pluginStatusChange,pluginOnLogin:t.playerOnLogin,onStreamStatus:t.onStreamStatus,onPlayFinished:t.onPlayFinished,reconnect:t.reconnect,onWinSwap:t.onWinSwap,onWinOp:t.onWinOp,onWinDrop:t.onWinDrop,onDownloadStatus:t.onDownloadStatus,onDownloadProgress:t.onDownloadProgress,onAudioState:t.onAudioState,onRecord:t.onRecord}}),t._v(" "),"live"===t.type&&!this.isPlaying&&t.pluginLoadSuccess&&!t.basicConfig.autoPlay&&t.showPlayBtn?n("div",{staticClass:"start-player-icon start qz-player-icon",on:{click:t.controlIconClick}}):t._e(),t._v(" "),"playback"===t.type&&""===t.playerServer&&t.showControlBar?[n("player-control-bar",{attrs:{type:t.type,paused:t.paused,date:t.date},on:{"update:paused":function(e){t.paused=e},play:t.play,pause:t.pause,backward:t.backward,forward:t.forward}}),t._v(" "),n("player-progress-bar",{ref:"playerProgressBar",attrs:{theme:t.basicConfig&&t.basicConfig.theme||"light-theme",currentTimeProp:t.date},on:{"update:currentTimeProp":function(e){t.date=e},"update:current-time-prop":function(e){t.date=e},updateBackwordList:t.onUpdateBackwordList,updateForwardList:t.onUpdateForwardList,updateCurrentPlay:t.onUpdateCurrentPlay,updatePlayState:t.onUpdatePlayState}}),t._v(" "),n("player-time-select-bar",{attrs:{date:t.date,config:t.basicConfig,theme:t.basicConfig&&t.basicConfig.theme||"light-theme",monthRecord:t.monthRecord},on:{"update:date":t.dateChange,focus:t.dateFocus},scopedSlots:t._u([{key:"datePicker",fn:function(e){return[t._t("datePicker",null,{datePicker:e})]}}],null,!0)})]:t._e()]:[n("div",{staticClass:"load-fail-mask"},[n("img",{staticClass:"fail-icon",attrs:{src:t.imgAround,alt:""}}),t._v(" "),n("p",{staticClass:"error-text"},[t._v(t._s(t.loadFailedMsg))]),t._v(" "),n("player-button",{attrs:{type:"primary",size:t.basicConfig.buttonSize},on:{click:t.downloadPlugin}},[t._v("下载")])],1)]],2)};i._withStripped=!0;var r=n(4),o=n.n(r),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rtsp-player-component"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.img,expression:"img"}],staticClass:"img",style:{backgroundImage:t.img?"url("+t.img+")":""}}),t._v(" "),"file"===t.type?[n("vod-file-player",{ref:"player",attrs:{addrs:t.fileServer.addrs,username:t.fileServer.username,password:t.fileServer.password,pool:t.fileServer.pool,proxy:t.fileServer.proxy},on:{onLoad:t.pluginOnload,onPlayState:t.onPlayState,onPlayFinished:t.onPlayFinished}})]:t.isDcsPlayback?[n("vod-player",{ref:"player",attrs:{theme:"dark",server:t.playerServer},on:{onLoad:t.pluginOnload,onLoadFailed:t.pluginOnloadFailed,onDisconnected:t.pluginOnDisconnected,onLogin:t.onLogin,onPlayState:t.onPlayState,onPlayFinished:t.onPlayFinished,onDownloadStatus:t.onDownloadStatus,onDownloadProgress:t.onDownloadProgress}})]:[t.isNewPlayer?n("live-player",{ref:"player",attrs:{theme:"dark",config:t.playerConfig,server:t.playerServer},on:{onLoad:t.pluginOnload,onLoadFailed:t.pluginOnloadFailed,onDisconnected:t.pluginOnDisconnected,onLogin:t.onLogin,onStreamStatus:t.onStreamStatus,onAudioState:t.onAudioState,onSnapshot:t.onSnapshot,onWinOp:t.onWinOp,onRecord:t.onRecord}}):t._e()],t._v(" "),t.isNewPlayer?t._e():n("div",{staticClass:"new-version-tip vatrender"},[n("div",[t._v("请下载最新的插件")]),t._v(" "),n("a",{staticClass:"vat-down",attrs:{href:t.pluginDownloadUrl}},[n("span",[t._v("下载")])])]),t._v(" "),t.singleScreen&&3===t.statusCode?n("div",{staticClass:"error-message"},[n("span",[t._v("连接失败!")]),t._v(" "),n("span",{staticClass:"reconnect",on:{click:function(e){return t.$emit("reconnect")}}},[t._v("重新连接")]),t._v(" "),-1===t.errorCode?n("div",[t._v("获取失败,请检查设备状态是否正常!")]):t._e()]):t._e(),t._v(" "),t.singleScreen&&-1===t.statusCode?n("div",{staticClass:"error-message"},[t._v("\n 获取失败,请检查设备状态是否正常!\n ")]):t._e()],2)};a._withStripped=!0;var s,l=n(13);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"RtspPlayer",props:{type:{type:String,required:!1},urls:{type:Array,required:!1},errorCode:{type:Number,required:!1},config:{type:Object,required:!1,default:function(){}},playerServer:{type:String,default:""},fileServer:{type:Object,default:function(){}},pluginUrl:{type:String,default:""},vodTime:{type:Object,default:function(){}}},components:{LivePlayer:l.LivePlayer,VodPlayer:l.VodPlayer,VodFilePlayer:l.VodFilePlayer},computed:{pluginDownloadUrl:function(){var t="./player/DCSPlugin-".concat(this.require_version,".exe");return this.pluginUrl||t},isDcsPlayback:function(){return"playback"===this.type&&this.urls.length>0&&this.urls[0].dcs}},data:function(){return{img:"",isPluginLoaded:!1,isLogin:!1,loading:!1,playerConfig:{titleBar:!0,toolBar:!0,roiMenu:!1,dragWindow:!0,dbClick:!0},singleScreen:!0,isNewPlayer:!0,installed_version:"",statusCode:2,require_version:"",dcs:null,currentRenderId:null,dragLayerList:[]}},methods:(s={pluginOnload:function(t,e,n){if(this.installed_version=e,this.require_version===this.installed_version){if(this.isPluginLoaded=!0,!this.isDcsPlayback){var i=this.playerConfig.layout.rows||1,r=this.playerConfig.layout.cols||1,o=this.playerConfig.layout.combines||{};this.$refs.player.setLayout({rows:i,cols:r,combines:o}),this.singleScreen=1===i&&1===r}this.bindDrop(),this.$emit("pluginOnload",this.isPluginLoaded,n),this.urls&&0!==this.urls.length&&this.config.autoPlay&&this.play()}else this.isNewPlayer=!1},pluginOnloadFailed:function(t){this.$emit("pluginStatus","pluginOnloadFailed",t,this.pluginDownloadUrl)},pluginOnDisconnected:function(t){this.$emit("pluginStatus","pluginOnDisconnected",t,this.pluginDownloadUrl)},onLogin:function(t,e){this.isLogin=t,this.dcs=this.$refs.player&&this.$refs.player.dcs,this.$emit("pluginOnLogin",this.isLogin)},onStreamStatus:function(t,e,n){if(this.statusCode=e,2===e&&(this.$parent.loading=!1,this.img=""),3===e)try{var i=this.getLayout().streams,r=-1;for(var o in i)if(t+""==i[o].id+""){r=Number(o);break}this.stop(r)}catch(t){}var a=-1;try{a=Number(this.getStreamItem(t,"id").index)}catch(t){}this.$emit("onStreamStatus",{id:t,status:e,code:n,errorText:this.getErrorText(n),index:a})},onAudioState:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)},onPlayState:function(t,e){t?(this.hideLoading(),this.img=""):this.stop,this.$emit("onStreamStatus",{index:0,status:t?2:-1,code:e,errorText:this.getErrorText(e)})},onPlayFinished:function(t,e,n){this.$emit("onPlayFinished",t,e,n)},onSnapshot:function(t,e){this.$emit("snapshot",t,e)},onDownloadStatus:function(t,e,n,i){this.$emit("onDownloadStatus",t,e,n,i)},onDownloadProgress:function(t,e,n){this.$emit("onDownloadProgress",t,e,n)},onRecord:function(t,e,n){this.$emit("onRecord",t,e,n)},onWinOp:function(t,e,n){var i={},r=0,o=this.getLayout().streams;for(var a in o)if(e===o[a].id){r=Number(a),i=o[a];break}"swap"===n?this.$emit("onWinSwap",{index:t,swapTargetIndex:r,streamItem:i,state:n}):this.$emit("onWinOp",{index:t,streamItem:i,state:n})},streamPlay:function(t){1===this.playerConfig.layout.rows&&1===this.playerConfig.layout.cols?this.urls.length>0&&(this.showLoading(),this.openStreamInServer(0,this.urls[0])):void 0!==t?(this.showLoading(),this.openStreamInServer(t,this.urls[t])):(this.showLoading(),this.multiplePlayStream())},streamClose:function(t){this.isPluginLoaded&&(void 0!==t?this.$refs.player.closeStream(t):this.$refs.player.closeStream(-1))},capture:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.isPluginLoaded)return this.$refs.player.snapshot(e),new Promise((function(e){t.$on("snapshot",(function(t,n){e({id:t,data:n})}))}))},play:function(t){this.isPluginLoaded&&(this.playerServer&&!this.isLogin||this.streamPlay(t))},pause:function(){var t=this;if(this.isPluginLoaded)return new Promise((function(e,n){t.capture().then((function(n){var i=n.data;t.img=i,t.streamClose(),e()}))}))},stop:function(t){this.hideLoading(),this.isPluginLoaded&&this.closeStreamInServer(t)},openStreamInServer:function(t,e,n){if(e){var i="".concat(e.dcs?"dcs://":"").concat(e.rtspUrl),r=u({id:+new Date,url:i},n||{});this.currentRenderId=r.id,"live"===this.type?(this.$refs.player.openStreamEx(t,r),this.$emit("onStreamStatus",{id:r.id,status:1,code:0,errorText:this.getErrorText(0),index:t})):"playback"===this.type?e.dcs?(this.hideLoading(),this.vodTime&&Object.keys(this.vodTime).length>0&&this.vodTime.beginTime&&this.vodTime.endTime?this.$refs.player.playVodStream&&this.$refs.player.playVodStream(i,{beginTime:this.vodTime.beginTime,endTime:this.vodTime.endTime}):this.$refs.player.openDevice&&this.$refs.player.openDevice(i)):(this.$refs.player.openStreamEx(t,r),this.$emit("onStreamStatus",{id:r.id,status:1,code:0,errorText:this.getErrorText(0),index:t})):"file"===this.type&&this.$refs.player.playFile(e.rtspUrl,e.pos||0)}},closeStreamInServer:function(t){this.$refs.player&&(this.isDcsPlayback?this.$refs.player.stopPlay():"file"!==this.type?void 0===t||"[object Array]"===Object.prototype.toString.call(t)?this.$refs.player.closeStreams(t):this.$refs.player.closeStream(t):this.$refs.player.stopPlay())},showLoading:function(){this.$parent.loading=!0},hideLoading:function(){this.$parent.loading=!1},multiplePlayStream:function(){var t=this;this.urls.map((function(e,n){t.openStreamInServer(n,e)}))},streamCloses:function(t){this.closeStreamInServer(t)},getStreamInfo:function(t){return 2===this.statusCode&&this.$refs.player&&this.$refs.player.getStreamInfo?this.$refs.player.getStreamInfo(t):null},getLayout:function(){return this.$refs.player&&this.$refs.player.getLayout()},setLayout:function(t){var e=this;this.$refs.player&&this.$refs.player.setLayout(t),this.$nextTick((function(){e.bindDrop()}))},bindDrop:function(){var t=this;this.dragLayerList=this.$refs.player.$el.querySelectorAll("div.drag-layer"),this.dragLayerList.forEach((function(e){e.addEventListener("drop",t.dropEvent)}))},dropEvent:function(t){var e=-1,n=this.$refs.player.getLayout().streams,i={};try{i=JSON.parse(t.dataTransfer.getData("text").split("vat-live:").join(""))}catch(e){}for(var r in n)if(i.id===n[r].id){e=r;break}this.$emit("onWinDrop",e)},getErrorText:function(t){try{t=Number(t)}catch(e){t=99999999999}var e="";switch(t){case 99999999999:e="未知错误,code:".concat(t);break;case 0:e="正常";break;case-1:e="连接失败";break;case-2:e="找不到流";break;case-3:e="用户名或密码错误";break;case-5:e="对方协议错误";break;case-100:e="不支持流类型";break;case-101:e="打开流失败";break;case 8:e="路数达到限制";break;case-20040:e="录像段不存在"}return e},showFullscreen:function(){return this.$refs.player&&this.$refs.player.showFullscreen()},ptzControl:function(t,e,n){return this.$refs.player&&this.$refs.player.ptzControl(t,e,n)},swapWindow:function(t,e){return this.$refs.player&&this.$refs.player.swapWindow(t,e)},selectWindow:function(t){return this.$refs.player&&this.$refs.player.selectWindow(t)},getStreamItem:function(t,e){var n=0,i={},r=this.$refs.player.getLayout().streams;for(var o in r)if(r[o][e]===t){i=r[o],n=o;break}return u(u({},i),{},{index:n})}},h(s,"showFullscreen",(function(){return this.$refs.player&&this.$refs.player.showFullscreen()})),h(s,"toggleWindow",(function(){return this.$refs.player&&this.$refs.player.toggleWindow()})),h(s,"downloadRecord",(function(t,e,n){if(this.isDcsPlayback){var i=this.$refs.player.createDownloadTask(t,e);this.$refs.player.startDownload(i),this.$emit("downloadRecord",i)}})),h(s,"stopDownload",(function(t){t&&this.$refs.player.stopDownload&&this.$refs.player.stopDownload(t)})),h(s,"destroyDownloadTask",(function(t){this.$refs.player.destroyDownloadTask(t)})),h(s,"startRecord",(function(t,e,n){return this.$refs.player.startRecord(t,e,n)})),h(s,"stopRecord",(function(t){return this.$refs.player.stopRecord(t)})),s),created:function(){if(this.pluginUrl?this.require_version=this.pluginUrl.split("DCSPlugin-")[1].split(".exe")[0]:this.require_version="1.1.12",this.config&&this.config.defaultSetting){var t=this.playerConfig;for(var e in t=Object.assign(t,this.config.defaultSetting))this.$set(this.playerConfig,e,t[e])}if(this.config){var n=this.config;void 0===n.rows&&(n.rows=1),void 0===n.cols&&(n.cols=1),void 0===n.combines&&(n.combines={}),this.$set(this.playerConfig,"layout",u({},n))}else this.$set(this.playerConfig,"layout",{rows:1,cols:1,combines:{}})}};function f(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n(33);var p=f(d,a,[],!1,null,null,null);p.options.__file="src/components/rtsp-player.vue";var m=p.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-control-bar"},[n("div",{staticClass:"center"},["live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon backward",on:{click:t.backward}}):t._e(),t._v(" "),[t.paused?n("div",{staticClass:"qz-player-control-icon qz-player-icon start",on:{click:t.play}}):n("div",{staticClass:"qz-player-control-icon qz-player-icon pause",on:{click:t.pause}})],t._v(" "),"live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon forward",on:{click:t.forward}}):t._e()],2)])};v._withStripped=!0;var g={name:"PlayerControlBar",props:{type:{type:String,default:"live"},paused:{type:Boolean,default:!1}},methods:{play:function(){this.$emit("play"),this.updatePaused(!1)},pause:function(){this.$emit("pause"),this.updatePaused(!0)},backward:function(){this.$emit("backward")},forward:function(){this.$emit("forward")},updatePaused:function(t){this.$emit("update:paused",t)}}},y=(n(35),f(g,v,[],!1,null,null,null));y.options.__file="src/components/player-control-bar.vue";var w=y.exports,b=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"player-time-select-bar"},[e("div",{staticClass:"calendar"},[e("span",{staticClass:"title"},[this._v("选择日期")]),this._v(" "),this._t("datePicker",null,null,this.datePickerBind)],2)])};b._withStripped=!0;var A=n(20),x=n.n(A),k={name:"PlayerControlBar",props:{date:{type:Number,required:!0},monthRecord:{type:Array,default:function(){return[]}},config:{type:Object,required:!1,default:function(){}},theme:{type:String,default:"light-theme"}},data:function(){return{datePicker:"",datePickerBind:{defaultValue:x()(),listen:this.handleDateChange}}},computed:{pickerOptions:function(){var t=this;return{cellClassName:function(e){return e.getMonth()===new Date(t.date).getMonth()&&e.getFullYear()===new Date(t.date).getFullYear()&&1===t.monthRecord[e.getDate()-1]?"has-video":""}}}},methods:{handleDateChange:function(t){var e=Object.prototype.toString.call(t);if(t._isAMomentObject)this.$emit("update:date",+new Date(t.format("YYYY-MM-DD 00:00:00")));else if("[object Date]"===e)this.$emit("update:date",+t);else if("[object Number]"===e)this.$emit("update:date",t);else if("[object String]"===e){var n=new Date(t).getTime();isNaN(n)||this.$emit("update:date",n)}},handleFocus:function(){this.$emit("focus")}},created:function(){},mounted:function(){}},S=(n(37),f(k,b,[],!1,null,null,null));S.options.__file="src/components/player-time-select-bar.vue";var C=S.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"progressCtnr",staticClass:"player-progress-bar"},[n("svg",{staticClass:"progress-outer",attrs:{width:"100%",viewBox:t.viewBox}},[n("g",{staticClass:"progress-inner",attrs:{fill:"none","font-size":"10","font-family":"sans-serif","text-anchor":"middle",transform:"translate(0,0)"}},[n("g",{staticClass:"ticks-container"}),t._v(" "),n("g",{staticClass:"available-container"})]),t._v(" "),n("g",[n("line",{staticClass:"domain",attrs:{"stroke-width":"2",x1:t.middle,x2:t.middle,y1:"0",y2:"50"}})]),t._v(" "),n("g",[n("rect",{staticClass:"time-rect",attrs:{rx:"light-theme"===t.theme?15:0,ry:"light-theme"===t.theme?15:0,x:t.curTimeX,y:"35"}}),t._v(" "),n("text",{staticClass:"time-title",attrs:{x:t.curTimeX+10,y:"55"}},[t._v("\n "+t._s(t.dateFormat(new Date(t.currentTime)))+"\n ")])])])])};E._withStripped=!0;var _=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},I=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return _(e(t),n)}),{left:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var o=i+r>>>1;t(e[o],n)<0?i=o+1:r=o}return i},right:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var o=i+r>>>1;t(e[o],n)>0?r=o:i=o+1}return i}}},T=I(_);T.right,T.left;var D=Array.prototype;D.slice,D.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Array.prototype.slice;var R={value:function(){}};function O(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new L(i)}function L(t){this._=t}function P(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function M(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function N(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=R,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}L.prototype=O.prototype={constructor:L,on:function(t,e){var n,i=this._,r=P(t+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=r[o]).type)i[n]=N(i[n],t.name,e);else if(null==e)for(n in i)i[n]=N(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=r[o]).type)&&(n=M(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new L(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var B=O;function W(){}var F=function(t){return null==t?W:function(){return this.querySelector(t)}};function U(){return[]}var z=function(t){return null==t?U:function(){return this.querySelectorAll(t)}},j=function(t){return function(){return this.matches(t)}},Y=function(t){return new Array(t.length)};function H(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function V(t,e,n,i,r,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new H(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function K(t,e,n,i,r,o,a){var s,l,c,u={},h=e.length,d=o.length,f=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(f[s]=c="$"+a.call(l,l.__data__,s,e),c in u?r[s]=l:u[c]=l);for(s=0;s<d;++s)(l=u[c="$"+a.call(t,o[s],s,o)])?(i[s]=l,l.__data__=o[s],u[c]=null):n[s]=new H(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&u[f[s]]===l&&(r[s]=l)}function G(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}H.prototype={constructor:H,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var q="http://www.w3.org/1999/xhtml",Q={svg:"http://www.w3.org/2000/svg",xhtml:q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},J=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Q.hasOwnProperty(e)?{space:Q[e],local:t}:t};function X(t){return function(){this.removeAttribute(t)}}function Z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $(t,e){return function(){this.setAttribute(t,e)}}function tt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function et(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var it=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function rt(t){return function(){this.style.removeProperty(t)}}function ot(t,e,n){return function(){this.style.setProperty(t,e,n)}}function at(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function st(t,e){return t.style.getPropertyValue(e)||it(t).getComputedStyle(t,null).getPropertyValue(e)}function lt(t){return function(){delete this[t]}}function ct(t,e){return function(){this[t]=e}}function ut(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ht(t){return t.trim().split(/^|\s+/)}function dt(t){return t.classList||new ft(t)}function ft(t){this._node=t,this._names=ht(t.getAttribute("class")||"")}function pt(t,e){for(var n=dt(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function mt(t,e){for(var n=dt(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function vt(t){return function(){pt(this,t)}}function gt(t){return function(){mt(this,t)}}function yt(t,e){return function(){(e.apply(this,arguments)?pt:mt)(this,t)}}function wt(){this.textContent=""}function bt(t){return function(){this.textContent=t}}function At(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function xt(){this.innerHTML=""}function kt(t){return function(){this.innerHTML=t}}function St(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Ct(){this.nextSibling&&this.parentNode.appendChild(this)}function Et(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _t(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===q&&e.documentElement.namespaceURI===q?e.createElement(t):e.createElementNS(n,t)}}function It(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}ft.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Tt=function(t){var e=J(t);return(e.local?It:_t)(e)};function Dt(){return null}function Rt(){var t=this.parentNode;t&&t.removeChild(this)}function Ot(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Lt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Pt={},Mt=null;function Nt(t,e,n){return t=Bt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Bt(t,e,n){return function(i){var r=Mt;Mt=i;try{t.call(this,this.__data__,e,n)}finally{Mt=r}}}function Wt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ft(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function Ut(t,e,n){var i=Pt.hasOwnProperty(t.type)?Nt:Bt;return function(r,o,a){var s,l=this.__on,c=i(e,o,a);if(l)for(var u=0,h=l.length;u<h;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function zt(t,e,n,i){var r=Mt;t.sourceEvent=Mt,Mt=t;try{return e.apply(n,i)}finally{Mt=r}}function jt(t,e,n){var i=it(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Yt(t,e){return function(){return jt(this,t,e)}}function Ht(t,e){return function(){return jt(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Pt={mouseenter:"mouseover",mouseleave:"mouseout"}));var Vt=[null];function Kt(t,e){this._groups=t,this._parents=e}function Gt(){return new Kt([[document.documentElement]],Vt)}Kt.prototype=Gt.prototype={constructor:Kt,select:function(t){"function"!=typeof t&&(t=F(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a,s=e[r],l=s.length,c=i[r]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=t.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new Kt(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=z(t));for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(i.push(t.call(a,a.__data__,c,s)),r.push(a));return new Kt(i,r)},filter:function(t){"function"!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,l=i[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Kt(i,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),u=-1,this.each((function(t){p[++u]=t})),p;var n,i=e?K:V,r=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var h=r[u],d=o[u],f=d.length,p=t.call(h,h&&h.__data__,u,r),m=p.length,v=l[u]=new Array(m),g=s[u]=new Array(m);i(h,d,v,g,c[u]=new Array(f),p,e);for(var y,w,b=0,A=0;b<m;++b)if(y=v[b]){for(b>=A&&(A=b+1);!(w=g[A])&&++A<m;);y._next=w||null}}return(s=new Kt(s,r))._enter=l,s._exit=c,s},enter:function(){return new Kt(this._enter||this._groups.map(Y),this._parents)},exit:function(){return new Kt(this._exit||this._groups.map(Y),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var l,c=e[s],u=n[s],h=c.length,d=a[s]=new Array(h),f=0;f<h;++f)(l=c[f]||u[f])&&(d[f]=l);for(;s<i;++s)a[s]=e[s];return new Kt(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=G);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,s=n[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new Kt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],a=0,s=o.length;a<s;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,e){var n=J(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Z:X:"function"==typeof e?n.local?nt:et:n.local?tt:$)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?rt:"function"==typeof e?at:ot)(t,e,null==n?"":n)):st(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?lt:"function"==typeof e?ut:ct)(t,e)):this.node()[t]},classed:function(t,e){var n=ht(t+"");if(arguments.length<2){for(var i=dt(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?yt:e?vt:gt)(n,e))},text:function(t){return arguments.length?this.each(null==t?wt:("function"==typeof t?At:bt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?xt:("function"==typeof t?St:kt)(t)):this.node().innerHTML},raise:function(){return this.each(Ct)},lower:function(){return this.each(Et)},append:function(t){var e="function"==typeof t?t:Tt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Tt(t),i=null==e?Dt:"function"==typeof e?e:F(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Rt)},clone:function(t){return this.select(t?Lt:Ot)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=Wt(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Ut:Ft,null==n&&(n=!1),i=0;i<a;++i)this.each(s(o[i],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<a;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ht:Yt)(t,e))}};var qt=Gt,Qt=function(t){return"string"==typeof t?new Kt([[document.querySelector(t)]],[document.documentElement]):new Kt([[t]],Vt)};function Jt(){Mt.stopImmediatePropagation()}var Xt=function(){Mt.preventDefault(),Mt.stopImmediatePropagation()},Zt=function(t){var e=t.document.documentElement,n=Qt(t).on("dragstart.drag",Xt,!0);"onselectstart"in e?n.on("selectstart.drag",Xt,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function $t(t,e){var n=t.document.documentElement,i=Qt(t).on("dragstart.drag",null);e&&(i.on("click.drag",Xt,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var te=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function ee(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ne(){}var ie="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,se=new RegExp("^rgb\\("+[ie,ie,ie]+"\\)$"),le=new RegExp("^rgb\\("+[oe,oe,oe]+"\\)$"),ce=new RegExp("^rgba\\("+[ie,ie,ie,re]+"\\)$"),ue=new RegExp("^rgba\\("+[oe,oe,oe,re]+"\\)$"),he=new RegExp("^hsl\\("+[re,oe,oe]+"\\)$"),de=new RegExp("^hsla\\("+[re,oe,oe,re]+"\\)$"),fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pe(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function ve(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ae.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ge(e):3===n?new Ae(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ye(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ye(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=se.exec(t))?new Ae(e[1],e[2],e[3],1):(e=le.exec(t))?new Ae(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ce.exec(t))?ye(e[1],e[2],e[3],e[4]):(e=ue.exec(t))?ye(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=he.exec(t))?Ce(e[1],e[2]/100,e[3]/100,1):(e=de.exec(t))?Ce(e[1],e[2]/100,e[3]/100,e[4]):fe.hasOwnProperty(t)?ge(fe[t]):"transparent"===t?new Ae(NaN,NaN,NaN,0):null}function ge(t){return new Ae(t>>16&255,t>>8&255,255&t,1)}function ye(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ae(t,e,n,i)}function we(t){return t instanceof ne||(t=ve(t)),t?new Ae((t=t.rgb()).r,t.g,t.b,t.opacity):new Ae}function be(t,e,n,i){return 1===arguments.length?we(t):new Ae(t,e,n,null==i?1:i)}function Ae(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function xe(){return"#"+Se(this.r)+Se(this.g)+Se(this.b)}function ke(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Se(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ce(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _e(t,e,n,i)}function Ee(t){if(t instanceof _e)return new _e(t.h,t.s,t.l,t.opacity);if(t instanceof ne||(t=ve(t)),!t)return new _e;if(t instanceof _e)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new _e(a,s,l,t.opacity)}function _e(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ie(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Te(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}te(ne,ve,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHsl:function(){return Ee(this).formatHsl()},formatRgb:me,toString:me}),te(Ae,be,ee(ne,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xe,formatHex:xe,formatRgb:ke,toString:ke})),te(_e,(function(t,e,n,i){return 1===arguments.length?Ee(t):new _e(t,e,n,null==i?1:i)}),ee(ne,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _e(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _e(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ae(Ie(t>=240?t-240:t+120,r,i),Ie(t,r,i),Ie(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var De=function(t){return function(){return t}};function Re(t,e){return function(n){return t+n*e}}function Oe(t){return 1==(t=+t)?Le:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):De(isNaN(e)?n:e)}}function Le(t,e){var n=e-t;return n?Re(t,n):De(isNaN(t)?e:t)}var Pe=function t(e){var n=Oe(e);function i(t,e){var i=n((t=be(t)).r,(e=be(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=Le(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function Me(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=be(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}Me((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return Te((n-i/e)*e,a,r,o,s)}})),Me((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return Te((n-i/e)*e,r,o,a,s)}}));var Ne=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Be=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,We=new RegExp(Be.source,"g"),Fe=function(t,e){var n,i,r,o=Be.lastIndex=We.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Be.exec(t))&&(i=We.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Ne(n,i)})),o=We.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})},Ue=function(){for(var t,e=Mt;t=e.sourceEvent;)e=t;return e},ze=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]},je=function(t,e,n){arguments.length<3&&(n=e,e=Ue().changedTouches);for(var i,r=0,o=e?e.length:0;r<o;++r)if((i=e[r]).identifier===n)return ze(t,i);return null},Ye=function(t){var e=Ue();return e.changedTouches&&(e=e.changedTouches[0]),ze(t,e)};function He(t){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ve,Ke,Ge=0,qe=0,Qe=0,Je=0,Xe=0,Ze=0,$e="object"===("undefined"==typeof performance?"undefined":He(performance))&&performance.now?performance:Date,tn="object"===("undefined"==typeof window?"undefined":He(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function en(){return Xe||(tn(nn),Xe=$e.now()+Ze)}function nn(){Xe=0}function rn(){this._call=this._time=this._next=null}function on(t,e,n){var i=new rn;return i.restart(t,e,n),i}function an(){Xe=(Je=$e.now())+Ze,Ge=qe=0;try{!function(){en(),++Ge;for(var t,e=Ve;e;)(t=Xe-e._time)>=0&&e._call.call(null,t),e=e._next;--Ge}()}finally{Ge=0,function(){for(var t,e,n=Ve,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ve=e);Ke=t,ln(i)}(),Xe=0}}function sn(){var t=$e.now(),e=t-Je;e>1e3&&(Ze-=e,Je=t)}function ln(t){Ge||(qe&&(qe=clearTimeout(qe)),t-Xe>24?(t<1/0&&(qe=setTimeout(an,t-$e.now()-Ze)),Qe&&(Qe=clearInterval(Qe))):(Qe||(Je=$e.now(),Qe=setInterval(sn,1e3)),Ge=1,tn(an)))}rn.prototype=on.prototype={constructor:rn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?en():+n)+(null==e?0:+e),this._next||Ke===this||(Ke?Ke._next=this:Ve=this,Ke=this),this._call=t,this._time=n,ln()},stop:function(){this._call&&(this._call=null,this._time=1/0,ln())}};var cn=function(t,e,n){var i=new rn;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i},un=B("start","end","cancel","interrupt"),hn=[],dn=function(t,e,n,i,r,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(l){var c,u,h,d;if(1!==n.state)return s();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return cn(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(cn((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=i.length;++o<a;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=on((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:un,tween:hn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function fn(t,e){var n=mn(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function pn(t,e){var n=mn(t,e);if(n.state>3)throw new Error("too late; already running");return n}function mn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var vn,gn,yn,wn,bn=function(t,e){var n,i,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete t.__transition}},An=180/Math.PI,xn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},kn=function(t,e,n,i,r,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),t*i<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*An,skewX:Math.atan(l)*An,scaleX:a,scaleY:s}};function Sn(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,i,r,o,a,s){if(t!==r||i!==o){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:Ne(t,r)},{i:l-2,x:Ne(i,o)})}else(r||o)&&a.push("translate("+r+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Ne(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Ne(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,a.skewX,s,l),function(t,e,n,i,o,a){if(t!==n||e!==i){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Ne(t,n)},{i:s-2,x:Ne(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,i=l.length;++n<i;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var Cn=Sn((function(t){return"none"===t?xn:(vn||(vn=document.createElement("DIV"),gn=document.documentElement,yn=document.defaultView),vn.style.transform=t,t=yn.getComputedStyle(gn.appendChild(vn),null).getPropertyValue("transform"),gn.removeChild(vn),t=t.slice(7,-1).split(","),kn(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),En=Sn((function(t){return null==t?xn:(wn||(wn=document.createElementNS("http://www.w3.org/2000/svg","g")),wn.setAttribute("transform",t),(t=wn.transform.baseVal.consolidate())?(t=t.matrix,kn(t.a,t.b,t.c,t.d,t.e,t.f)):xn)}),", ",")",")");function _n(t,e){var n,i;return function(){var r=pn(this,t),o=r.tween;if(o!==n)for(var a=0,s=(i=n=o).length;a<s;++a)if(i[a].name===e){(i=i.slice()).splice(a,1);break}r.tween=i}}function In(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=pn(this,t),a=o.tween;if(a!==i){r=(i=a).slice();for(var s={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=s;break}l===c&&r.push(s)}o.tween=r}}function Tn(t,e,n){var i=t._id;return t.each((function(){var t=pn(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return mn(t,i).value[e]}}var Dn=function(t,e){var n;return("number"==typeof e?Ne:e instanceof ve?Pe:(n=ve(e))?(e=n,Pe):Fe)(t,e)};function Rn(t){return function(){this.removeAttribute(t)}}function On(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ln(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===i?r:r=e(i=a,n)}}function Pn(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?r:r=e(i=a,n)}}function Mn(t,e,n){var i,r,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,l));this.removeAttribute(t)}}function Nn(t,e,n){var i,r,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,l));this.removeAttributeNS(t.space,t.local)}}function Bn(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Wn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Fn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Wn(t,r)),n}return r._value=e,r}function Un(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Bn(t,r)),n}return r._value=e,r}function zn(t,e){return function(){fn(this,t).delay=+e.apply(this,arguments)}}function jn(t,e){return e=+e,function(){fn(this,t).delay=e}}function Yn(t,e){return function(){pn(this,t).duration=+e.apply(this,arguments)}}function Hn(t,e){return e=+e,function(){pn(this,t).duration=e}}function Vn(t,e){if("function"!=typeof e)throw new Error;return function(){pn(this,t).ease=e}}function Kn(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fn:pn;return function(){var a=o(this,t),s=a.on;s!==i&&(r=(i=s).copy()).on(e,n),a.on=r}}var Gn=qt.prototype.constructor;function qn(t){return function(){this.style.removeProperty(t)}}function Qn(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Jn(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Qn(t,o,n)),i}return o._value=e,o}function Xn(t){return function(e){this.textContent=t.call(this,e)}}function Zn(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Xn(i)),e}return i._value=t,i}var $n=0;function ti(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ei(){return++$n}var ni=qt.prototype;ti.prototype=function(t){return qt().transition(t)}.prototype={constructor:ti,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=F(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var s,l,c=i[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=t.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,dn(h[d],e,n,d,h,mn(s,n)));return new ti(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=z(t));for(var i=this._groups,r=i.length,o=[],a=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,f=t.call(l,l.__data__,h,c),p=mn(l,n),m=0,v=f.length;m<v;++m)(d=f[m])&&dn(d,e,n,m,f,p);o.push(f),a.push(l)}return new ti(o,a,e,n)},filter:function(t){"function"!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,l=i[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new ti(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var l,c=e[s],u=n[s],h=c.length,d=a[s]=new Array(h),f=0;f<h;++f)(l=c[f]||u[f])&&(d[f]=l);for(;s<i;++s)a[s]=e[s];return new ti(a,this._parents,this._name,this._id)},selection:function(){return new Gn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ei(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=mn(a,e);dn(a,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ti(i,this._parents,t,n)},call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:function(t,e){var n=this._id;return arguments.length<2?mn(this.node(),n).on.on(t):this.each(Kn(n,t,e))},attr:function(t,e){var n=J(t),i="transform"===n?En:Dn;return this.attrTween(t,"function"==typeof e?(n.local?Nn:Mn)(n,i,Tn(this,"attr."+t,e)):null==e?(n.local?On:Rn)(n):(n.local?Pn:Ln)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=J(t);return this.tween(n,(i.local?Fn:Un)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Cn:Dn;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=st(this,t),a=(this.style.removeProperty(t),st(this,t));return o===a?null:o===n&&a===i?r:r=e(n=o,i=a)}}(t,i)).on("end.style."+t,qn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var a=st(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=st(this,t)),a===l?null:a===i&&l===r?o:(r=l,o=e(i=a,s))}}(t,i,Tn(this,"style."+t,e))).each(function(t,e){var n,i,r,o,a="style."+e,s="end."+a;return function(){var l=pn(this,t),c=l.on,u=null==l.value[a]?o||(o=qn(e)):void 0;c===n&&r===u||(i=(n=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var a=st(this,t);return a===o?null:a===i?r:r=e(i=a,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,Jn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Tn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Zn(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=mn(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?_n:In)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?zn:jn)(e,t)):mn(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Yn:Hn)(e,t)):mn(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Vn(e,t)):mn(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0==--r&&o()}};n.each((function(){var n=pn(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e}))}))}};var ii={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ri(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return ii.time=en(),ii;return n}function oi(t){return{type:t}}qt.prototype.interrupt=function(t){return this.each((function(){bn(this,t)}))},qt.prototype.transition=function(t){var e,n;t instanceof ti?(e=t._id,t=t._name):(e=ei(),(n=ii).time=en(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],l=s.length,c=0;c<l;++c)(a=s[c])&&dn(a,t,e,c,s,n||ri(a,e));return new ti(i,this._parents,t,e)},["w","e"].map(oi),["n","s"].map(oi),["n","w","e","s","nw","ne","sw","se"].map(oi),Math.cos,Math.sin,Math.PI,Math.max,Array.prototype.slice;var ai=Math.PI,si=2*ai,li=si-1e-6;function ci(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ui(){return new ci}function hi(){}function di(t,e){var n=new hi;if(t instanceof hi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,r=-1,o=t.length;if(null==e)for(;++r<o;)n.set(r,t[r]);else for(;++r<o;)n.set(e(i=t[r],r,t),i)}else if(t)for(var a in t)n.set(a,t[a]);return n}ci.prototype=ui.prototype={constructor:ci,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,a=this._y1,s=n-t,l=i-e,c=o-t,u=a-e,h=c*c+u*u;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&r){var d=n-o,f=i-a,p=s*s+l*l,m=d*d+f*f,v=Math.sqrt(p),g=Math.sqrt(h),y=r*Math.tan((ai-Math.acos((p+h-m)/(2*v*g)))/2),w=y/g,b=y/v;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*c)+","+(e+w*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),l=t+a,c=e+s,u=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%si+si),h>li?this._+="A"+n+","+n+",0,1,"+u+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=ai)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},hi.prototype=di.prototype={constructor:hi,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var fi=di;function pi(){}var mi=fi.prototype;function vi(t,e){var n=new pi;if(t instanceof pi)t.each((function(t){n.add(t)}));else if(t){var i=-1,r=t.length;if(null==e)for(;++i<r;)n.add(t[i]);else for(;++i<r;)n.add(e(t[i],i,t))}return n}pi.prototype=vi.prototype={constructor:pi,has:mi.has,add:function(t){return this["$"+(t+="")]=t,this},remove:mi.remove,clear:mi.clear,values:mi.keys,size:mi.size,empty:mi.empty,each:mi.each},Array.prototype.slice;var gi=function(t){return function(){return t}};function yi(t,e,n,i,r,o,a,s,l,c){this.target=t,this.type=e,this.subject=n,this.identifier=i,this.active=r,this.x=o,this.y=a,this.dx=s,this.dy=l,this._=c}function wi(){return!Mt.ctrlKey&&!Mt.button}function bi(){return this.parentNode}function Ai(t){return null==t?{x:Mt.x,y:Mt.y}:t}function xi(){return navigator.maxTouchPoints||"ontouchstart"in this}function ki(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,o,a,s,l,c,u,h,d,f=t._root,p={data:i},m=t._x0,v=t._y0,g=t._x1,y=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((c=e>=(o=(m+g)/2))?m=o:g=o,(u=n>=(a=(v+y)/2))?v=a:y=a,r=f,!(f=f[h=u<<1|c]))return r[h]=p,t;if(s=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===s&&n===l)return p.next=f,r?r[h]=p:t._root=p,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(m+g)/2))?m=o:g=o,(u=n>=(a=(v+y)/2))?v=a:y=a}while((h=u<<1|c)==(d=(l>=a)<<1|s>=o));return r[d]=f,r[h]=p,t}yi.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Si=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function Ci(t){return t[0]}function Ei(t){return t[1]}function _i(t,e,n){var i=new Ii(null==e?Ci:e,null==n?Ei:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function Ii(t,e,n,i,r,o){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function Ti(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Di=_i.prototype=Ii.prototype;Di.copy=function(){var t,e,n=new Ii(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=Ti(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=Ti(e));return n},Di.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return ki(this.cover(e,n),e,n,t)},Di.addAll=function(t){var e,n,i,r,o=t.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(a[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>h&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<o;++n)ki(this,a[n],s[n],t[n]);return this},Di.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,o=(i=Math.floor(e))+1;else{for(var a,s,l=r-n,c=this._root;n>t||t>=r||i>e||e>=o;)switch(s=(e<i)<<1|t<n,(a=new Array(4))[s]=c,c=a,l*=2,s){case 0:r=n+l,o=i+l;break;case 1:n=r-l,o=i+l;break;case 2:r=n+l,i=o-l;break;case 3:n=r-l,i=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},Di.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Di.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Di.find=function(t,e,n){var i,r,o,a,s,l,c,u=this._x0,h=this._y0,d=this._x1,f=this._y1,p=[],m=this._root;for(m&&p.push(new Si(m,u,h,d,f)),null==n?n=1/0:(u=t-n,h=e-n,d=t+n,f=e+n,n*=n);l=p.pop();)if(!(!(m=l.node)||(r=l.x0)>d||(o=l.y0)>f||(a=l.x1)<u||(s=l.y1)<h))if(m.length){var v=(r+a)/2,g=(o+s)/2;p.push(new Si(m[3],v,g,a,s),new Si(m[2],r,g,v,s),new Si(m[1],v,o,a,g),new Si(m[0],r,o,v,g)),(c=(e>=g)<<1|t>=v)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var y=t-+this._x.call(null,m.data),w=e-+this._y.call(null,m.data),b=y*y+w*w;if(b<n){var A=Math.sqrt(n=b);u=t-A,h=e-A,d=t+A,f=e+A,i=m.data}}return i},Di.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,i,r,o,a,s,l,c,u,h,d,f=this._root,p=this._x0,m=this._y0,v=this._x1,g=this._y1;if(!f)return this;if(f.length)for(;;){if((c=o>=(s=(p+v)/2))?p=s:v=s,(u=a>=(l=(m+g)/2))?m=l:g=l,e=f,!(f=f[h=u<<1|c]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=r,this)},Di.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Di.root=function(){return this._root},Di.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Di.visit=function(t){var e,n,i,r,o,a,s=[],l=this._root;for(l&&s.push(new Si(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,i=e.x0,r=e.y0,o=e.x1,a=e.y1)&&l.length){var c=(i+o)/2,u=(r+a)/2;(n=l[3])&&s.push(new Si(n,c,u,o,a)),(n=l[2])&&s.push(new Si(n,i,u,c,a)),(n=l[1])&&s.push(new Si(n,c,r,o,u)),(n=l[0])&&s.push(new Si(n,i,r,c,u))}return this},Di.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new Si(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var o,a=e.x0,s=e.y0,l=e.x1,c=e.y1,u=(a+l)/2,h=(s+c)/2;(o=r[0])&&n.push(new Si(o,a,s,u,h)),(o=r[1])&&n.push(new Si(o,u,s,l,h)),(o=r[2])&&n.push(new Si(o,a,h,u,c)),(o=r[3])&&n.push(new Si(o,u,h,l,c))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Di.x=function(t){return arguments.length?(this._x=t,this):this._x},Di.y=function(t){return arguments.length?(this._y=t,this):this._y},Math.PI,Math.sqrt(5);var Ri=function(){return Math.random()},Oi=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(Ri),function t(e){function n(t,n){var i,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=i)o=i,i=null;else do{i=2*e()-1,o=2*e()-1,r=i*i+o*o}while(!r||r>1);return t+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=t,n}(Ri)),Li=(function t(e){function n(){var t=Oi.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Ri),function t(e){function n(t){return function(){for(var n=0,i=0;i<t;++i)n+=e();return n}}return n.source=t,n}(Ri));(function t(e){function n(t){var n=Li.source(e)(t);return function(){return n()/t}}return n.source=t,n})(Ri),function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Ri);var Pi=Array.prototype;Pi.map,Pi.slice;var Mi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ni(t){if(!(e=Mi.exec(t)))throw new Error("invalid format: "+t);var e;return new Bi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Bi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Wi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}Ni.prototype=Bi.prototype,Bi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Fi,Ui,zi=function(t){return(t=Wi(Math.abs(t)))?t[1]:NaN},ji=function(t,e){var n=Wi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Yi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ji(100*t,e)},r:ji,s:function(t,e){var n=Wi(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(Fi=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Wi(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Hi=function(t){return t},Vi=Array.prototype.map,Ki=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ui=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Hi:(e=Vi.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,o=[],a=0,s=e[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(t.substring(r-=s,r+s)),!((l+=s+1)>i));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Hi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Vi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ni(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,v=t.precision,g=t.trim,y=t.type;"n"===y?(m=!0,y="g"):Yi[y]||(void 0===v&&(v=12),g=!0,y="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var w="$"===d?r:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===d?o:/[%p]/.test(y)?l:"",A=Yi[y],x=/[defgprs%]/.test(y);function k(t){var r,o,l,d=w,k=b;if("c"===y)k=A(t)+k,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:A(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),d=(S?"("===h?h:c:"-"===h||"("===h?"":h)+d,k=("s"===y?Ki[8+Fi/3]:"")+k+(S&&"("===h?")":""),x)for(r=-1,o=t.length;++r<o;)if(48>(l=t.charCodeAt(r))||l>57){k=(46===l?a+t.slice(r+1):t.slice(r))+k,t=t.slice(0,r);break}}m&&!f&&(t=i(t,1/0));var C=d.length+t.length+k.length,E=C<p?new Array(p-C+1).join(e):"";switch(m&&f&&(t=i(E+t,E.length?p-k.length:1/0),E=""),n){case"<":t=d+t+k+E;break;case"=":t=d+E+t+k;break;case"^":t=E.slice(0,C=E.length>>1)+d+t+k+E.slice(C);break;default:t=E+d+t+k}return s(t)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ni(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(zi(e)/3))),r=Math.pow(10,-i),o=Ki[8+i/3];return function(t){return n(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ui.format,Ui.formatPrefix;var Gi=new Date,qi=new Date;function Qi(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<i);return s},r.filter=function(n){return Qi((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return Gi.setTime(+e),qi.setTime(+i),t(Gi),t(qi),Math.floor(n(Gi,qi))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var Ji=Qi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ji.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qi((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Xi=Ji,Zi=(Ji.range,Qi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));function $i(t){return Qi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}Zi.range;var tr=$i(0),er=$i(1),nr=$i(2),ir=$i(3),rr=$i(4),or=$i(5),ar=$i(6),sr=(tr.range,er.range,nr.range,ir.range,rr.range,or.range,ar.range,Qi((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),lr=sr,cr=(sr.range,Qi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),ur=(cr.range,Qi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),hr=(ur.range,Qi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),dr=(hr.range,Qi((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));function fr(t){return Qi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}dr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Qi((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):dr:null},dr.range;var pr=fr(0),mr=fr(1),vr=fr(2),gr=fr(3),yr=fr(4),wr=fr(5),br=fr(6),Ar=(pr.range,mr.range,vr.range,gr.range,yr.range,wr.range,br.range,Qi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),xr=Ar,kr=(Ar.range,Qi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));kr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Qi((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Sr=kr;function Cr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Er(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _r(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}kr.range;var Ir,Tr={"-":"",_:" ",0:"0"},Dr=/^\s*\d+/,Rr=/^%/,Or=/[\\^$*+?|[\]().{}]/g;function Lr(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Pr(t){return t.replace(Or,"\\$&")}function Mr(t){return new RegExp("^(?:"+t.map(Pr).join("|")+")","i")}function Nr(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function Br(t,e,n){var i=Dr.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Wr(t,e,n){var i=Dr.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Fr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Ur(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function zr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function jr(t,e,n){var i=Dr.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Yr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Hr(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Vr(t,e,n){var i=Dr.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Kr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Gr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function qr(t,e,n){var i=Dr.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Qr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Jr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Xr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Zr(t,e,n){var i=Dr.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function $r(t,e,n){var i=Dr.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function to(t,e,n){var i=Rr.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function eo(t,e,n){var i=Dr.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function no(t,e,n){var i=Dr.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function io(t,e){return Lr(t.getDate(),e,2)}function ro(t,e){return Lr(t.getHours(),e,2)}function oo(t,e){return Lr(t.getHours()%12||12,e,2)}function ao(t,e){return Lr(1+lr.count(Xi(t),t),e,3)}function so(t,e){return Lr(t.getMilliseconds(),e,3)}function lo(t,e){return so(t,e)+"000"}function co(t,e){return Lr(t.getMonth()+1,e,2)}function uo(t,e){return Lr(t.getMinutes(),e,2)}function ho(t,e){return Lr(t.getSeconds(),e,2)}function fo(t){var e=t.getDay();return 0===e?7:e}function po(t,e){return Lr(tr.count(Xi(t)-1,t),e,2)}function mo(t){var e=t.getDay();return e>=4||0===e?rr(t):rr.ceil(t)}function vo(t,e){return t=mo(t),Lr(rr.count(Xi(t),t)+(4===Xi(t).getDay()),e,2)}function go(t){return t.getDay()}function yo(t,e){return Lr(er.count(Xi(t)-1,t),e,2)}function wo(t,e){return Lr(t.getFullYear()%100,e,2)}function bo(t,e){return Lr((t=mo(t)).getFullYear()%100,e,2)}function Ao(t,e){return Lr(t.getFullYear()%1e4,e,4)}function xo(t,e){var n=t.getDay();return Lr((t=n>=4||0===n?rr(t):rr.ceil(t)).getFullYear()%1e4,e,4)}function ko(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Lr(e/60|0,"0",2)+Lr(e%60,"0",2)}function So(t,e){return Lr(t.getUTCDate(),e,2)}function Co(t,e){return Lr(t.getUTCHours(),e,2)}function Eo(t,e){return Lr(t.getUTCHours()%12||12,e,2)}function _o(t,e){return Lr(1+xr.count(Sr(t),t),e,3)}function Io(t,e){return Lr(t.getUTCMilliseconds(),e,3)}function To(t,e){return Io(t,e)+"000"}function Do(t,e){return Lr(t.getUTCMonth()+1,e,2)}function Ro(t,e){return Lr(t.getUTCMinutes(),e,2)}function Oo(t,e){return Lr(t.getUTCSeconds(),e,2)}function Lo(t){var e=t.getUTCDay();return 0===e?7:e}function Po(t,e){return Lr(pr.count(Sr(t)-1,t),e,2)}function Mo(t){var e=t.getUTCDay();return e>=4||0===e?yr(t):yr.ceil(t)}function No(t,e){return t=Mo(t),Lr(yr.count(Sr(t),t)+(4===Sr(t).getUTCDay()),e,2)}function Bo(t){return t.getUTCDay()}function Wo(t,e){return Lr(mr.count(Sr(t)-1,t),e,2)}function Fo(t,e){return Lr(t.getUTCFullYear()%100,e,2)}function Uo(t,e){return Lr((t=Mo(t)).getUTCFullYear()%100,e,2)}function zo(t,e){return Lr(t.getUTCFullYear()%1e4,e,4)}function jo(t,e){var n=t.getUTCDay();return Lr((t=n>=4||0===n?yr(t):yr.ceil(t)).getUTCFullYear()%1e4,e,4)}function Yo(){return"+0000"}function Ho(){return"%"}function Vo(t){return+t}function Ko(t){return Math.floor(+t/1e3)}!function(t){Ir=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Mr(r),u=Nr(r),h=Mr(o),d=Nr(o),f=Mr(a),p=Nr(a),m=Mr(s),v=Nr(s),g=Mr(l),y=Nr(l),w={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:io,e:io,f:lo,g:bo,G:xo,H:ro,I:oo,j:ao,L:so,m:co,M:uo,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Vo,s:Ko,S:ho,u:fo,U:po,V:vo,w:go,W:yo,x:null,X:null,y:wo,Y:Ao,Z:ko,"%":Ho},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:So,e:So,f:To,g:Uo,G:jo,H:Co,I:Eo,j:_o,L:Io,m:Do,M:Ro,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Vo,s:Ko,S:Oo,u:Lo,U:Po,V:No,w:Bo,W:Wo,x:null,X:null,y:Fo,Y:zo,Z:Yo,"%":Ho},A={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=p[i[0].toLowerCase()],n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d[i[0].toLowerCase()],n+i[0].length):-1},b:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=y[i[0].toLowerCase()],n+i[0].length):-1},B:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=v[i[0].toLowerCase()],n+i[0].length):-1},c:function(t,n,i){return S(t,e,n,i)},d:Gr,e:Gr,f:$r,g:Yr,G:jr,H:Qr,I:Qr,j:qr,L:Zr,m:Kr,M:Jr,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=u[i[0].toLowerCase()],n+i[0].length):-1},q:Vr,Q:eo,s:no,S:Xr,u:Wr,U:Fr,V:Ur,w:Br,W:zr,x:function(t,e,i){return S(t,n,e,i)},X:function(t,e,n){return S(t,i,e,n)},y:Yr,Y:jr,Z:Hr,"%":to};function x(t,e){return function(n){var i,r,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(r=Tr[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),a.push(i),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function k(t,e){return function(n){var i,r,o=_r(1900,void 0,1);if(S(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=Er(_r(o.y,0,1))).getUTCDay(),i=r>4||0===r?mr.ceil(i):mr(i),i=xr.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=Cr(_r(o.y,0,1))).getDay(),i=r>4||0===r?er.ceil(i):er(i),i=lr.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Er(_r(o.y,0,1)).getUTCDay():Cr(_r(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Er(o)):Cr(o)}}function S(t,e,n,i){for(var r,o,a=0,s=e.length,l=n.length;a<s;){if(i>=l)return-1;if(37===(r=e.charCodeAt(a++))){if(r=e.charAt(a++),!(o=A[r in Tr?e.charAt(a++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return w.x=x(n,w),w.X=x(i,w),w.c=x(e,w),b.x=x(n,b),b.X=x(i,b),b.c=x(e,b),{format:function(t){var e=x(t+="",w);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),Ir.format,Ir.parse,Ir.utcFormat,Ir.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Go=Qi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),qo=(Go.range,Qi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Qo=(qo.range,Qi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})));function Jo(){this._=null}function Xo(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Zo(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function $o(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function ta(t){for(;t.L;)t=t.L;return t}Qo.range,Jo.prototype={constructor:Jo,insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ta(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&(Zo(this,n),n=(t=n).U),n.C=!1,i.C=!0,$o(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&($o(this,n),n=(t=n).U),n.C=!1,i.C=!0,Zo(this,i)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,o=t.L,a=t.R;if(n=o?a?ta(a):o:a,r?r.L===t?r.L=n:r.R=n:this._=n,o&&a?(i=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(r=n.U,n.U=t.U,t=n.R,r.L=t,n.R=a,a.U=n):(n.U=r,r=n,t=n.R)):(i=t.C,t=n),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((e=r.R).C&&(e.C=!1,r.C=!0,Zo(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,$o(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,Zo(this,r),t=this._;break}}else if((e=r.L).C&&(e.C=!1,r.C=!0,$o(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Zo(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,$o(this,r),t=this._;break}e.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}};var ea=Jo;function na(t,e,n,i){var r=[null,null],o=Ea.push(r)-1;return r.left=t,r.right=e,n&&ra(r,t,e,n),i&&ra(r,e,t,i),Sa[t.index].halfedges.push(o),Sa[e.index].halfedges.push(o),r}function ia(t,e,n){var i=[e,n];return i.left=t,i}function ra(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function oa(t,e,n,i,r){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=0,h=1,d=s[0]-l,f=s[1]-c;if(o=e-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}if(o=n-c,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=r-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*d,c+u*f]),h<1&&(t[1]=[l+h*d,c+h*f]),!0)}}}}}function aa(t,e,n,i,r){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],f=u[0],p=u[1],m=(h+f)/2,v=(d+p)/2;if(p===d){if(m<e||m>=i)return;if(h>f){if(l){if(l[1]>=r)return}else l=[m,n];o=[m,r]}else{if(l){if(l[1]<n)return}else l=[m,r];o=[m,n]}}else if(s=v-(a=(h-f)/(p-d))*m,a<-1||a>1)if(h>f){if(l){if(l[1]>=r)return}else l=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(l){if(l[1]<n)return}else l=[(r-s)/a,r];o=[(n-s)/a,n]}else if(d<p){if(l){if(l[0]>=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0]<e)return}else l=[i,a*i+s];o=[e,a*e+s]}return t[0]=l,t[1]=o,!0}function sa(t,e){var n=t.site,i=e.left,r=e.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=e[1],r=e[0]):(i=e[0],r=e[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function la(t,e){return e[+(e.left!==t.site)]}function ca(t,e){return e[+(e.left===t.site)]}var ua,ha=[];function da(){Xo(this),this.x=this.y=this.arc=this.site=this.cy=null}function fa(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,o=n.site;if(i!==o){var a=r[0],s=r[1],l=i[0]-a,c=i[1]-s,u=o[0]-a,h=o[1]-s,d=2*(l*h-c*u);if(!(d>=-Ia)){var f=l*l+c*c,p=u*u+h*h,m=(h*f-c*p)/d,v=(l*p-u*f)/d,g=ha.pop()||new da;g.arc=t,g.site=r,g.x=m+a,g.y=(g.cy=v+s)+Math.sqrt(m*m+v*v),t.circle=g;for(var y=null,w=Ca._;w;)if(g.y<w.y||g.y===w.y&&g.x<=w.x){if(!w.L){y=w.P;break}w=w.L}else{if(!w.R){y=w;break}w=w.R}Ca.insert(y,g),y||(ua=g)}}}}function pa(t){var e=t.circle;e&&(e.P||(ua=e.N),Ca.remove(e),ha.push(e),Xo(e),t.circle=null)}var ma=[];function va(){Xo(this),this.edge=this.site=this.circle=null}function ga(t){var e=ma.pop()||new va;return e.site=t,e}function ya(t){pa(t),ka.remove(t),ma.push(t),Xo(t)}function wa(t){var e=t.circle,n=e.x,i=e.cy,r=[n,i],o=t.P,a=t.N,s=[t];ya(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<_a&&Math.abs(i-l.circle.cy)<_a;)o=l.P,s.unshift(l),ya(l),l=o;s.unshift(l),pa(l);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<_a&&Math.abs(i-c.circle.cy)<_a;)a=c.N,s.push(c),ya(c),c=a;s.push(c),pa(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],ra(c.edge,l.site,c.site,r);l=s[0],(c=s[h-1]).edge=na(l.site,c.site,null,r),fa(l),fa(c)}function ba(t){for(var e,n,i,r,o=t[0],a=t[1],s=ka._;s;)if((i=Aa(s,a)-o)>_a)s=s.L;else{if(!((r=o-xa(s,a))>_a)){i>-_a?(e=s.P,n=s):r>-_a?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){Sa[t.index]={site:t,halfedges:[]}}(t);var l=ga(t);if(ka.insert(e,l),e||n){if(e===n)return pa(e),n=ga(e.site),ka.insert(l,n),l.edge=n.edge=na(e.site,l.site),fa(e),void fa(n);if(n){pa(e),pa(n);var c=e.site,u=c[0],h=c[1],d=t[0]-u,f=t[1]-h,p=n.site,m=p[0]-u,v=p[1]-h,g=2*(d*v-f*m),y=d*d+f*f,w=m*m+v*v,b=[(v*y-f*w)/g+u,(d*w-m*y)/g+h];ra(n.edge,c,p,b),l.edge=na(c,t,null,b),n.edge=na(t,p,null,b),fa(e),fa(n)}else l.edge=na(e.site,l.site)}}function Aa(t,e){var n=t.site,i=n[0],r=n[1],o=r-e;if(!o)return i;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-e;if(!c)return s;var u=s-i,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+r-o/2)))/h+i:(i+s)/2}function xa(t,e){var n=t.N;if(n)return Aa(n,e);var i=t.site;return i[1]===e?i[0]:1/0}var ka,Sa,Ca,Ea,_a=1e-6,Ia=1e-12;function Ta(t,e){return e[1]-t[1]||e[0]-t[0]}function Da(t,e){var n,i,r,o=t.sort(Ta).pop();for(Ea=[],Sa=new Array(t.length),ka=new ea,Ca=new ea;;)if(r=ua,o&&(!r||o[1]<r.y||o[1]===r.y&&o[0]<r.x))o[0]===n&&o[1]===i||(ba(o),n=o[0],i=o[1]),o=t.pop();else{if(!r)break;wa(r.arc)}if(function(){for(var t,e,n,i,r=0,o=Sa.length;r<o;++r)if((t=Sa[r])&&(i=(e=t.halfedges).length)){var a=new Array(i),s=new Array(i);for(n=0;n<i;++n)a[n]=n,s[n]=sa(t,Ea[e[n]]);for(a.sort((function(t,e){return s[e]-s[t]})),n=0;n<i;++n)s[n]=e[a[n]];for(n=0;n<i;++n)e[n]=s[n]}}(),e){var a=+e[0][0],s=+e[0][1],l=+e[1][0],c=+e[1][1];!function(t,e,n,i){for(var r,o=Ea.length;o--;)aa(r=Ea[o],t,e,n,i)&&oa(r,t,e,n,i)&&(Math.abs(r[0][0]-r[1][0])>_a||Math.abs(r[0][1]-r[1][1])>_a)||delete Ea[o]}(a,s,l,c),function(t,e,n,i){var r,o,a,s,l,c,u,h,d,f,p,m,v=Sa.length,g=!0;for(r=0;r<v;++r)if(o=Sa[r]){for(a=o.site,s=(l=o.halfedges).length;s--;)Ea[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=ca(o,Ea[l[s]]))[0],m=f[1],h=(u=la(o,Ea[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>_a||Math.abs(m-d)>_a)&&(l.splice(s,0,Ea.push(ia(a,f,Math.abs(p-t)<_a&&i-m>_a?[t,Math.abs(h-t)<_a?d:i]:Math.abs(m-i)<_a&&n-p>_a?[Math.abs(d-i)<_a?h:n,i]:Math.abs(p-n)<_a&&m-e>_a?[n,Math.abs(h-n)<_a?d:e]:Math.abs(m-e)<_a&&p-t>_a?[Math.abs(d-e)<_a?h:t,e]:null))-1),++c);c&&(g=!1)}if(g){var y,w,b,A=1/0;for(r=0,g=null;r<v;++r)(o=Sa[r])&&(b=(y=(a=o.site)[0]-t)*y+(w=a[1]-e)*w)<A&&(A=b,g=o);if(g){var x=[t,e],k=[t,i],S=[n,i],C=[n,e];g.halfedges.push(Ea.push(ia(a=g.site,x,k))-1,Ea.push(ia(a,k,S))-1,Ea.push(ia(a,S,C))-1,Ea.push(ia(a,C,x))-1)}}for(r=0;r<v;++r)(o=Sa[r])&&(o.halfedges.length||delete Sa[r])}(a,s,l,c)}this.edges=Ea,this.cells=Sa,ka=Ca=Ea=Sa=null}function Ra(t,e,n){this.k=t,this.x=e,this.y=n}function Oa(t,e){for(var n=t.toString();n.length<e;)n="0"+n;return n}function La(t){return Oa(t,2)}Da.prototype={constructor:Da,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return la(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,i){if(o=(r=n.halfedges).length)for(var r,o,a,s,l,c,u=n.site,h=-1,d=e[r[o-1]],f=d.left===u?d.right:d.left;++h<o;)a=f,f=(d=e[r[h]]).left===u?d.right:d.left,a&&f&&i<a.index&&i<f.index&&(l=a,c=f,((s=u)[0]-c[0])*(l[1]-s[1])-(s[0]-l[0])*(c[1]-s[1])<0)&&t.push([u.data,a.data,f.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var i,r,o=this,a=o._found||0,s=o.cells.length;!(r=o.cells[a]);)if(++a>=s)return null;var l=t-r.site[0],c=e-r.site[1],u=l*l+c*c;do{r=o.cells[i=a],a=null,r.halfedges.forEach((function(n){var i=o.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=i,null==n||u<=n*n?r.site:null}},Math.SQRT2,Ra.prototype={constructor:Ra,scale:function(t){return 1===t?this:new Ra(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ra(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Ra(1,0,0),Ra.prototype;var Pa=function(t,e){void 0===e&&(e="yyyy-MM-dd hh:mm:ss");var n,i,r,o,a=La(t.getDate()),s=La(t.getMonth()+1),l=La(t.getFullYear()),c=La(l.substring(2,4)),u=e.indexOf("yyyy")>-1?l:c,h=La(t.getHours()),d=La(t.getMinutes()),f=La(t.getSeconds()),p=Oa(t.getMilliseconds(),3),m=(n=t.getTimezoneOffset(),i=Math.abs(n),r=String(Math.floor(i/60)),o=String(i%60),1===r.length&&(r="0"+r),1===o.length&&(o="0"+o),n<0?"+"+r+o:"-"+r+o);return e.replace(/dd/g,a).replace(/MM/g,s).replace(/y{1,4}/g,u).replace(/hh/g,h).replace(/mm/g,d).replace(/ss/g,f).replace(/SSS/g,p).replace(/O/g,m)};function Ma(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Na(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Na(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ba={name:"PlaybackProgressBar",props:{currentTimeProp:{type:Number,required:!0},theme:{type:String}},data:function(){return{width:850,curTimeX:0,dateFormat:Pa,updateMoveLen:null,availableArray:[]}},computed:{middle:function(){return this.width/2},viewBox:function(){return"0 0 ".concat(this.width," 75")},currentTime:function(){return this.checkIfTimeAvailable(this.availableArray,this.currentTimeProp)||this.$emit("updatePlayState",!1),this.updateMoveLen&&this.updateMoveLen(this.currentTimeProp),this.currentTimeProp}},mounted:function(){this.curTimeX=(this.width-150)/2,this.renderBar()},methods:{checkIfTimeAvailable:function(t,e){var n,i=Ma(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.startTime<=e&&r.endTime>e)return!0}}catch(t){i.e(t)}finally{i.f()}return!1},rerenderBar:function(t,e){this.clearBar(),this.renderBar(t,e)},clearBar:function(){var t=Qt("g.progress-inner");t.selectAll("g.ticks-container > *").remove(),t.selectAll("g.available-container > *").remove()},formatHourMinute:function(t){return Pa(new Date(t),"hh:mm")},renderBar:function(t,e){var n=this,i=t||n.currentTimeProp,r=36e5,o=[{time:i-5*r,label:n.formatHourMinute(i-5*r)},{time:i-4*r,label:n.formatHourMinute(i-4*r)},{time:i-3*r,label:n.formatHourMinute(i-3*r)},{time:i-2*r,label:n.formatHourMinute(i-2*r)},{time:i-1*r,label:n.formatHourMinute(i-1*r)},{time:i,label:n.formatHourMinute(i)},{time:i+1*r,label:n.formatHourMinute(i+1*r)},{time:i+2*r,label:n.formatHourMinute(i+2*r)},{time:i+3*r,label:n.formatHourMinute(i+3*r)},{time:i+4*r,label:n.formatHourMinute(i+4*r)},{time:i+5*r,label:n.formatHourMinute(i+5*r)}];e||(e=[]),n.availableArray=e;var a=n.width/6,s=i,l=s-3*r;n.updateCurrentTime(s);var c=Qt("g.progress-inner"),u=0,h=0;function d(){var t=c.select("g.ticks-container").selectAll("g").data(o,(function(t,e){return t.time})).enter().append("g").attr("class","tick-item"),e=function(t){return(t.time-l)/r*a};t.append("text").attr("x",e).attr("class","enter times-tick").attr("dy",20).text((function(t){return t.label})),t.append("line").attr("x1",(function(t,n){return e(t)})).attr("x2",(function(t,n){return e(t)})).attr("class","tick-path").attr("y1",30).attr("y2",75).attr("stroke-width",1),t.append("line").attr("x1",(function(t,n){return e(t)-a/2})).attr("x2",(function(t,n){return e(t)+a/2})).attr("y1",40).attr("y2",38).attr("stroke","rgba(255,255,255,0)").attr("stroke-width",74),t.append("line").attr("x1",(function(t,n){return e(t)-a/2})).attr("x2",(function(t,n){return e(t)+a/2})).attr("class","tick-path").attr("y1",30).attr("y2",30).attr("stroke-width",3),c.select("g.available-container").selectAll("g").data(n.availableArray,(function(t){return t.startTime})).enter().append("g").attr("class","available-item").append("line").attr("x1",(function(t,e){return(t.startTime-l)/r*a})).attr("x2",(function(t,e){return(t.endTime-l)/r*a})).attr("y1",30).attr("y2",30).attr("stroke-width",3).attr("class","available-path")}n.updateMoveLen=function(t){var e=-(t-s)/r*a;Qt(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))},d();var f=i+6*r,p=0,m=i-6*r,v=0,g=n.debounceFunc((function(){n.$emit("updateCurrentPlay",n.currentTime)}),1e3),y=function(){var t,e,n,i,r=wi,o=bi,a=Ai,s=xi,l={},c=B("start","drag","end"),u=0,h=0;function d(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",v).on("touchmove.drag",g).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!i&&r.apply(this,arguments)){var a=w("mouse",o.apply(this,arguments),Ye,this,arguments);a&&(Qt(Mt.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),Zt(Mt.view),Jt(),n=!1,t=Mt.clientX,e=Mt.clientY,a("start"))}}function p(){if(Xt(),!n){var i=Mt.clientX-t,r=Mt.clientY-e;n=i*i+r*r>h}l.mouse("drag")}function m(){Qt(Mt.view).on("mousemove.drag mouseup.drag",null),$t(Mt.view,n),Xt(),l.mouse("end")}function v(){if(r.apply(this,arguments)){var t,e,n=Mt.changedTouches,i=o.apply(this,arguments),a=n.length;for(t=0;t<a;++t)(e=w(n[t].identifier,i,je,this,arguments))&&(Jt(),e("start"))}}function g(){var t,e,n=Mt.changedTouches,i=n.length;for(t=0;t<i;++t)(e=l[n[t].identifier])&&(Xt(),e("drag"))}function y(){var t,e,n=Mt.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),t=0;t<r;++t)(e=l[n[t].identifier])&&(Jt(),e("end"))}function w(t,e,n,i,r){var o,s,h,f=n(e,t),p=c.copy();if(zt(new yi(d,"beforestart",o,t,u,f[0],f[1],0,0,p),(function(){return null!=(Mt.subject=o=a.apply(i,r))&&(s=o.x-f[0]||0,h=o.y-f[1]||0,!0)})))return function a(c){var m,v=f;switch(c){case"start":l[t]=a,m=u++;break;case"end":delete l[t],--u;case"drag":f=n(e,t),m=u}zt(new yi(d,c,o,t,m,f[0]+s,f[1]+h,f[0]-v[0],f[1]-v[1],p),p.apply,p,[c,i,r])}}return d.filter=function(t){return arguments.length?(r="function"==typeof t?t:gi(!!t),d):r},d.container=function(t){return arguments.length?(o="function"==typeof t?t:gi(t),d):o},d.subject=function(t){return arguments.length?(a="function"==typeof t?t:gi(t),d):a},d.touchable=function(t){return arguments.length?(s="function"==typeof t?t:gi(!!t),d):s},d.on=function(){var t=c.on.apply(c,arguments);return t===c?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d}().subject((function(){return c})).on("start",(function(){u=Mt.sourceEvent.screenX})).on("drag",(function(t){var e=Mt.sourceEvent.screenX-u+h;n.updateCurrentTime(parseInt(s+-1*e/a*r)),e<=-p*a?(function(){for(var t=0;t<3;t++){var e=new Date(f);o.push({time:f,label:n.dateFormat(e,"hh:mm")}),f+=36e5,p++}var i=f;n.$emit("updateForwardList",(function(t){n.availableArray=n.availableArray.concat(t),d()}),i-4*r,i-r)}(),d()):e>=v*a&&(function(){for(var t=0;t<3;t++){var e=new Date(m);o.unshift({time:m,label:n.dateFormat(e,"hh:mm")}),m-=r,v++}var i=m;n.$emit("updateBackwordList",(function(t){n.availableArray=t.concat(n.availableArray),d()}),i+r,i+4*r)}(),d()),Qt(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))})).on("end",(function(){h=h+Mt.sourceEvent.screenX-u,g()}));Qt(".progress-inner").call(y)},debounceFunc:function(t,e){var n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){t.apply(void 0,r)}),e)}},updateCurrentTime:function(t){this.$emit("update:currentTimeProp",t)}}},Wa=(n(39),f(Ba,E,[],!1,null,null,null));Wa.options.__file="src/components/player-progress-bar.vue";var Fa=Wa.exports,Ua=function(){var t=this.$createElement;return(this._self._c||t)("button",{on:{click:this.onClick}},[this._t("default")],2)};Ua._withStripped=!0;var za=f(o.a.extend({data:function(){return{}},methods:{onClick:function(t){this.$emit("click",t)}}}),Ua,[],!1,null,null,null);za.options.__file="src/components/button.vue";var ja,Ya=za.exports;function Ha(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Va={name:"QzPlayer",props:{devices:{type:Array,default:function(){return[]}},type:{type:String,default:"live"},basicConfig:{type:Object,default:function(){return{rows:1,cols:1,combines:{},autoPlay:!0,autoFitView:!0,theme:"light-theme",delay:3e3}}},pluginUrl:{type:String,default:""},playerServer:{type:String,default:""},fileServer:{type:Object,default:function(){}},vodTime:{type:Object,default:function(){}},message:{type:Object,default:function(){}}},components:{RtspPlayer:m,PlayerControlBar:w,PlayerProgressBar:Fa,PlayerTimeSelectBar:C},data:function(){var t=new Date;return{imgAround:"data:image/png;base64,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",urls:[],date:new Date("".concat(Pa(t,"yyyy-MM-dd")," 00:00:00")).getTime(),isPlaying:!1,isCanPlay:!1,pluginLoadSuccess:!0,loadFailedMsg:"",playerHeight:0,loading:!1,vodRecord:{beginTime:"",endTime:""},monthRecord:[],fileList:[],paused:!0,interval:null,request:null,playingId:"",errorCode:0,showControlBar:!0,pluginDownloadUrl:"",dcs:null,showPlayBtn:!0}},created:function(){this.loading=!1;var t=this.isVueOptions(this.basicConfig.button||null);this.isVueOptions(this.basicConfig.button||null),o.a.component("player-button",t?this.basicConfig.button:Ya)},watch:{pluginLoadSuccess:{handler:function(t,e){var n=this;if(t&&t!==e)if("playback"===this.type)this.devices.length>0&&void 0!==this.devices[0].id&&!this.playerServer&&setTimeout((function(){n.getPlaybackUrl()}),300);else if(this.urls=[],this.devices&&0!==this.devices.length&&(this.urls=this.devices.map((function(t){return t})),0===this.urls.length))return void this.message.warning("暂无可播放的".concat("file"===this.type?"文件":"流地址","!"))}},devices:{handler:function(t,e){var n=this;if(!(this.isPlaying&&t&&1===t.length&&e&&1===e.length&&t[0].rtspUrl===e[0].rtspUrl)){this.stop(),this.basicConfig.rows,this.basicConfig.cols;var i=t.filter((function(t){return""!==t.rtspUrl}));0!==i.length?(this.urls=i,0!==this.urls.length&&this.$nextTick((function(){n.basicConfig.autoPlay&&n.play()}))):this.urls=[]}},deep:!0,immediate:!0},loading:{handler:function(t){this.$emit("loading")},deep:!0},basicConfig:{handler:function(t){t.rows&&t.cols&&t.rows>1&&t.cols>1?this.showPlayBtn=!1:this.showPlayBtn=!0},immediate:!0,deep:!0}},beforeDestroy:function(){this.$refs.player&&this.$refs.player.streamCloses(),window.onbeforeunload=null},computed:{playerProgressBar:function(){return"playback"===this.type?this.$refs.playerProgressBar:null},deviceTimeOffsetHour:function(){return this.devices&&this.devices.length>0&&this.devices[0].timeOffsetHour||0},isDcsPlayback:function(){return"playback"===this.type&&""!==this.playerServer}},methods:(ja={pluginOnload:function(t,e){this.$emit("onLoad",t,e)},pluginStatusChange:function(t,e,n){this.pluginLoadSuccess=!1,this.loadFailedMsg=e,this.pluginDownloadUrl=n,this.$emit(t,e,n)},playerOnLogin:function(){this.isCanPlay=!0,this.dcs=this.$refs.player&&this.$refs.player.dcs,this.play(),this.$emit("onLogin")},onStreamStatus:function(t){var e=this,n=t.id,i=t.status,r=t.code,o=t.errorText,a=t.index;this.loading=!1,2===i?(this.isPlaying=!this.isPlaying,this.basicConfig.autoFitView&&setTimeout((function(){e.autoFitView()}),this.basicConfig.delay||3e3),"playback"===this.type&&this.updateTime()):this.pauseTime(),this.$emit("onStreamStatus",{id:n,status:i,code:r,errorText:o,index:a})},onPlayFinished:function(t){this.$emit("onPlayFinished",t)},onWinOp:function(t){var e=t.index,n=t.streamItem,i=t.state;this.$emit("onWinOp",{index:e,streamItem:n,state:i})},onWinSwap:function(t){var e=t.index,n=t.swapTargetIndex,i=t.streamItem,r=t.state;this.$emit("onWinSwap",{index:e,swapTargetIndex:n,streamItem:i,state:r})},onWinDrop:function(t){this.$emit("onWinDrop",t)},onDownloadStatus:function(t,e,n,i){this.$emit("onDownloadStatus",t,e,n,i)},onDownloadProgress:function(t,e,n){this.$emit("onDownloadProgress",t,e,n)},onAudioState:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)},onRecord:function(t,e,n){this.$emit("onRecord",t,e,n)},play:function(){var t=this;"live"===this.type||"file"===this.type?1===this.urls.length?this.$refs.player&&this.$refs.player.play():this.urls.map((function(e,n){t.$refs.player&&t.$refs.player.play(n)})):"playback"===this.type&&(this.isDcsPlayback?this.$refs.player&&this.$refs.player.play():(this.updateTime(),this.getPlaybackUrl()))},pause:function(){var t=this;this.isPlaying=!this.isPlaying,this.$refs.player&&this.$refs.player.pause().then((function(){"playback"===t.type&&t.stop()}))},stop:function(t){this.isPlaying=!1,this.$refs.player&&this.$refs.player.stop(t),this.pauseTime()},reconnect:function(){var t=this;this.$refs.player&&this.$refs.player.stop(),this.errorCode=0,this.urls=[],this.devices.map((function(e){t.urls.push(e)})),this.$refs.player&&this.$refs.player.play()},getStreamInfo:function(t){return this.$refs.player&&this.$refs.player.getStreamInfo(t||-1)},capture:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n){t.$refs.player&&t.$refs.player.capture(e).then((function(t){n(t)}))}))},autoFitView:function(){if(!this.getStreamInfo()){var t=this.getStreamInfo();if(!t)return;var e=t.width,n=t.height;if(e&&n){var i=e/n,r=this.$refs.renderPlayer.getBoundingClientRect();this.playerHeight=r.width/i}}},getLayout:function(){return this.$refs.player&&this.$refs.player.getLayout()},setLayout:function(t){return this.$refs.player&&this.$refs.player.setLayout(t)},setControlBar:function(t){this.showControlBar=t},getPlaybackUrl:function(){var t=this;if(this.devices&&this.devices.length>0&&!this.playerServer){this.setControlBar(!0);var e=Pa(new Date(this.date),"yyyyMMddhhmmss"),n=Pa(new Date,"yyyyMMddhhmmss"),i="".concat(this.devices[0].dcs?"dcs://":"").concat(this.devices[0].rtspUrl,"?begin=").concat(e,"&end=").concat(n);this.devices[0].rtspUrl.includes("begin")&&this.devices[0].rtspUrl.includes("end")&&(i=this.devices[0].rtspUrl,this.setControlBar(!1)),this.urls=[{rtspUrl:i}],this.$forceUpdate(),this.$nextTick((function(){t.$refs.player&&t.$refs.player.play()}))}},backward:function(){var t=this;this.date-=15e3,this.pauseTime(),this.stop(),setTimeout((function(){t.getPlaybackUrl()}),300)},forward:function(){var t=this;this.date+=15e3,this.pauseTime(),this.stop(),setTimeout((function(){t.getPlaybackUrl()}),300)},onUpdateBackwordList:function(t,e,n){},onUpdateForwardList:function(t,e,n){},onUpdateCurrentPlay:function(t){var e=this;t>(new Date).getTime()?this.date=(new Date).getTime():this.date=t,this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){e.getPlaybackUrl()}),300)},onUpdatePlayState:function(t){t&&this.getPlaybackUrl()},updateTime:function(t,e){var n=this;if("playback"===this.type){if(this.interval)return;this.paused=!1,this.interval=window.setInterval((function(){n.date+=1e3}),1e3)}},pauseTime:function(){"playback"===this.type&&(clearInterval(this.interval),this.interval=null)},dateChange:function(t){this.judgeSelectData(t),this.getPlaybackUrl(),this.playerProgressBar.rerenderBar(this.date)},dateFocus:function(){},judgeSelectData:function(t){this.date=t},controlIconClick:function(){"playback"!==this.type&&(0!==this.devices.map((function(t){return t.rtspUrl})).length?this.isPlaying?this.pause():this.play():this.message.warning("暂无可播放的".concat("file"===this.type?"文件":"流地址","!")))},downloadPlugin:function(){window.open(this.pluginDownloadUrl)},showFullscreen:function(){return this.$refs.player&&this.$refs.player.showFullscreen()},ptzControl:function(t,e,n){return this.$refs.player&&this.$refs.player.ptzControl(t,e,n)},swapWindow:function(t,e){return this.$refs.player&&this.$refs.player.swapWindow(t,e)},playIndex:function(t,e,n){return this.$refs.player&&this.$refs.player.openStreamInServer(t,e,n||{})},selectWindow:function(t){return this.$refs.player&&this.$refs.player.selectWindow(t)},getStreamItem:function(t,e){return this.$refs.player&&this.$refs.player.getStreamItem(t,e)}},Ha(ja,"showFullscreen",(function(){return this.$refs.player&&this.$refs.player.showFullscreen()})),Ha(ja,"toggleWindow",(function(){return this.$refs.player&&this.$refs.player.toggleWindow()})),Ha(ja,"startRecord",(function(t,e,n){return"live"===this.type&&this.$refs.player&&this.$refs.player.startRecord(t,e,n)})),Ha(ja,"stopRecord",(function(t){return"live"===this.type&&this.$refs.player&&this.$refs.player.stopRecord(t)})),Ha(ja,"isVueOptions",(function(t){return!!t&&("string"==typeof t.template||"function"==typeof t.render)})),ja)},Ka=(n(41),f(Va,i,[],!1,null,null,null));Ka.options.__file="src/components/player.vue";var Ga=Ka.exports;e.default=Ga}]).default}))}}]); |