(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=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)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&&el?(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=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\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-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(in[e]})):i.sort()),i}function L(t,e){var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;while(o1&&!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=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-1&&i.splice(t,1)};setTimeout(r,Wt)}}function Yt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-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))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=le},canEmit:function(){var t=0;while(te.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.distancee.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{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=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;lo&&(l=o),cs&&(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:ha?d=a-u:dJSON.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{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,iVBORw0KGgoAAAANSUhEUgAAACoAAAA3CAYAAAB6i9geAAAHj0lEQVRoQ+2Yf2xUVRbH773vzXvTXzOgtKUt05mCtuIA0h9KW1qKtV0VXJQ1WRXlhwjFn0QSQVyzK8YYWdFgsv7ACoLU1EjiKkZAREenrVBW2ipsKcUUpqU/pAV0ZtrOvDfv3bu5sLOZlvfevOkMyZL4/mmad945n3vOvd9zz0BwlTwwGs5H9pLcp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b3d1snVvWR7D4bpmB/7rilpf+xOnTROivhRch+X0Wgt1+qGDXb+GgiiXhnm4aDHxnerD3ixOHD7d0qVZV3DU6s8Hxhe+hzsG7TMYFIgB2AsWJPwB4nof2UWRp9qmZjzartFqu1X9DwMVatdLGKOax3qdFAuFxoUD4HSz3Mkin8cU20nDMPLbjmca03uW+OwN3Z2DLZuAfJo6pknH6fWQAAAAASUVORK5CYII=";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{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{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{null!==document.fullscreenElement?this.isFullScreen=!0:this.isFullScreen=!1})}});const g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAYAAACrHtS+AAAL0klEQVR4Xu2deWwU9xXH32/2Xt/4Xq/Xu14bc5gYwhVQUAKlUkWOpi3QUFRSRfmjaoWCoUmvKKFRE6ltFEgjWlVKKqUqTQS0CSRp/2jKoRBKIYVSjhjwsWt2F5/4XK9nj3nVLDWx3bU9v/HMMtv5jeS//H5v3vt+fu+3s79jlgC7dKUA0VW2LFlgwHXWCRhwBlxnCugsXVbhDLjOFNBZuqzCGXCdKaCzdFmFM+A6U0Bn6bIKZ8B1poDO0mUVzoDrTAGdpaupCnf9Cgsi/OguBLIQAJoNgH/pbLQd1RkTVdPVDHDH3tG6qIBNhJB9BMhRRJiHBJ/hAF/varQ9r6oKOnKuCeDF+zAbovxFIOTZ7h2Wg2P6F+3BcsDREDGQh7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oLXZqo3Rlix0eA1lC3hupGSjc8qKFBvYBdXRm+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+c735PvPe977iFM5qvcYQakGQ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ogfRg0S7piOWI5YjliNWtFk4YjliPSwUFUQFUUFUEBUkI3AbpUm/WJP+leQZi8CUBKKnqqaMXFAIBAQIEkAypC4BgtTNvcgDAgQJIBlSlwBB6uZe5AEBggSQDKlLgCB1cy/ygABBAkiG1CVAkLq5F3lAgCABJEPqEiBI3dyLPCBAkACSIXUJEKRu7kUeECBIAMmQugQIUjf3Ig8IECSAZEhdAgSpm3uRBwQIEkAypC4BgtTNvcgDAgQJIBlSlwBB6uZe5AEBggSQDKlLgCB1cy/ygABBAkiG1CVAkLq5F3lAgCABJEPqEiBI3dyLPCBAkACSIXUJ/A8iAlH2GCW/6AAAAABJRU5ErkJggg==",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:''}})]),(()=>{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,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAWqElEQVR4Xu2dC5QcVZnH/191HgSCwIYAy0NBjhBAQCAg4TFdPQkgICAuIghIuiYhK7u8lgV1V9dw5CHBlSwvF5KuTjywJwYxBBZQEzI1ExABkYfIEYQEjIgSVJZggqG7vj2300FMuruqbt2u7q766pw+M0nf7/X7+j9VXXXrFkE2ISAEmhIgYSMEhEBzAiIQ+XQIgRYERCDy8RACIhD5DAgBPQKyB9HjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMNFrK1CMgAtHjJlYZISACyUijpUw9AiIQPW5ilRECIpCMN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psSd8NIDHEwQMV6qYt3x666nsneaaKoG8H6Za4Z1RX93dxw5kYUtfre5exercSKwIuseg043p5fhqhXcC9mUfO6gV3lUtamV3svA6V/CMzvpUneKRWoF0CqjETRcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJiEAMAxV36SIgAklXP6UawwREIIaBirt0ERCBpKufUo1hAiIQw0DFXboIiEDS1U+pxjABEYhhoOIuXQREIOnqp1RjmIAIxDBQcZcuAiKQdPVTqjFMQARiGKi4SxcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJiEAMAxV36SIgAklXP6UawwREIIaBirt0ERCBpKufUo1hAiIQw0DFXboIiEDS1U+pxjABEYhhoOIuXQREIOnqp1RjmIAIxDBQcZcuAiKQdPVTqjFMQARiGKi4SxcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJiEAMAxV36SIgAklXP6UawwREIIaBirt0ERCBpKufUo1hAiIQw0DFXboIiEDS1U+pxjABEYhhoOIuXQREIOnqp1RjmIAIxDBQcZcuAiKQdPVTqjFMQARiGKi4SxcBEUi6+inVGCYgAjEMVNyli4AIJF39lGoMExCBGAYq7tJFQASSrn5KNYYJ/D/yYYsjzqIhfQAAAABJRU5ErkJggg==",q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAWSElEQVR4Xu2dC5QU1ZnH/1/3oJ4QTcz63KjB6PqIWV01kU0c6GoQFBOjh0Q30Qh09RAevp/JGt1oohsF8YGKInQVDx/xHZP4CDJ0NaCru0dN4iOii2E35hxdFOODqMDUt6cG0GGYma66dW91VffX53Biznzf/373/93fdPf07XsJ8kiFA6MX8C4fbcC3ARxAwK745N9uBAxm4A0E/xhvIIfXu///Bjxam0jLUjGBJi2CmnRemZiW5fIQIoxmHycAGKNY9J8ZuDOXw6LqBOpU1JC0fhwQQBqwNKy5fAxymArgOJ3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C/+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/3POqqumZmuYIXmp0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TF15vb8DkE4EXjslHFS8ck89Qyy0fgw93vv0og0+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{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{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{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"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{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{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{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{this.normalConfig.AMapMarkerList[e]=null,this.setSwitchDeviceButtonText()}))}cancelAlarm(t=[]){for(let e=0;et.objectId),r=Object.keys(this.locationStore);for(let o=0;o{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,d09GRgABAAAAAAW8AAsAAAAACTAAAQAAAAAAAAAAA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lqMjVLCw2lVPx0UBf9/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=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+"]>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,"$")})),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;r1||""[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=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=[];xdocument.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;on.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r-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([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;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-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;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nthis.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?ni.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 tn[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.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;e1)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;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n-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++):n0&&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;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;rw;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;uo;)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=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;npath[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;sc)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;sf[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;n2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),h=1;for(l0;)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:ru;)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=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;r1?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(;o255?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>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<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<>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$;)(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=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);e1&&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);n1&&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='',B.MAXIMIZE='',B.ROI_RECT='',B.ROI_POLYGON='',B.SCALE_VIEW='',B.STOP='',B.STATE_GREEN='',B.STATE_RED='',B.STATE_YELLOW='',B.VOLUME_ON='',B.VOLUME_OFF='',B.RECORD='',B.TALK_ON='',B.TALK_OFF='',B.PTZ_CTL='',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=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);n0&&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;vthis.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;hi.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);n0||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=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=.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=.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();s0&&(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;l0&&(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;s0&&(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;e6&&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;n0&&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=.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=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);n6&&(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=0&&i.selectedIndex1&&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;e0?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;n0&&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&&o1&&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="".concat(Q.PLUGIN_DOWNLOAD,""),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=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;a1)for(var d=0;d0&&(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);n2&&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=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.selectedIndex1){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=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;a1)for(var d=0;d0&&(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;e0)this.onStream(t);else if(0===this.backwardCaches.length)this.backwardCaches.push(t);else if(t.time100){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;e6?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.timen.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=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=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=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.framePosn.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=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=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=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(ethis.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;ie)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?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(tthis.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);n0&&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];i0&&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),e0&&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=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=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;e0&&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;tthis.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;n0&&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.posSec0&&a1e3||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;e0&&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);n0&&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/UCgY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAANIAAAEkmlTsGmhlYWQAAAK4AAAALwAAADYXuckiaGhlYQAAAugAAAAXAAAAJACeAFZobXR4AAADAAAAABAAAAAYAU8AAGxvY2EAAAMQAAAADgAAAA4BVgDobWF4cAAAAyAAAAAfAAAAIAETAENuYW1lAAADQAAAAS8A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9R2hYTFiX2Htjr5z/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;e0&&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 te?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>>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>>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=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;i0)for(var n,i,r=new Array(n),o=0;oe?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=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=A&&(A=b+1);!(w=g[A])&&++A=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;o1?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>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*(n0&&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=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=io&&(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=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]):+c0)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*i180?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=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;a1e-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=(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;nu&&(u=i),rh&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;nt||t>=r||i>e||e>=o;)switch(s=(ed||(o=l.y0)>f||(a=l.x1)=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=(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;e1);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=^]))?([+\-( ])?([$#])?(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;i0&&(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(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>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-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=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+(o68?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));++s53)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=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(o0){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(o0)){if(o/=f,f<0){if(o0){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(o0||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=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]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]=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0]=-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_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]_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_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=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-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);ne)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=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;o0&&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}))}}]);