!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e=e||self).vuescroll=t(e.Vue)}(this,function(e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e};function i(e,t){for(var o=0;o container's height!");else v("refresh must be enabled!")}else v("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){return function(e,t){for(var o,i,r,n,s,l,a,c,h,u,_=e.children,d=[],f=0;f<_.length;f++){var p=_.item(f);void 0,o=p.getBoundingClientRect(),i=o.left,r=o.top,n=o.width,s=o.height,l=t.getBoundingClientRect(),a=l.left,c=l.top,h=l.height,u=l.width,0n.__maxScrollLeft?l=n.__maxScrollLeft:l<0&&(l=0),a>n.__maxScrollTop?a=n.__maxScrollTop:a<0&&(a=0),n.__publish(l,a,e,t)},zoomBy:function(e,t,o,i,r){this.zoomTo(this.__zoomLevel*e,t,o,i,r)},scrollTo:function(e,t,o,i,r,n,s){var l=this;if(l.__isDecelerating&&(re.effect.Animate.stop(l.__isDecelerating),l.__isDecelerating=!1),null!=i&&i!==l.__zoomLevel){if(!l.options.zooming)throw new Error("Zooming is not enabled!");e*=i,t*=i,l.__computeScrollMax(i)}else i=l.__zoomLevel;l.options.scrollingX||r?l.options.paging?e=Math.round(e/l.__clientWidth)*l.__clientWidth:l.options.snapping&&(e=Math.round(e/l.__snapWidth)*l.__snapWidth):e=l.__scrollLeft,l.options.scrollingY||r?l.options.paging?t=Math.round(t/l.__clientHeight)*l.__clientHeight:l.options.snapping&&(t=Math.round(t/l.__snapHeight)*l.__snapHeight):t=l.__scrollTop,r||(e=Math.max(Math.min(l.__maxScrollLeft,e),0),t=Math.max(Math.min(l.__maxScrollTop,t),0)),e===l.__scrollLeft&&t===l.__scrollTop&&(o=!1),l.__isTracking||l.__publish(e,t,i,o,n,s)},scrollBy:function(e,t,o){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,n=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(e||0),n+(t||0),o)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(e,t){var o=e.x,i=e.y;isNaN(o)&&(o=1),isNaN(i)&&(i=1),this.scrollTo((o-1)*this.__clientWidth,(i-1)*this.__clientHeight,t)},doMouseZoom:function(e,t,o,i){var r=0-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&h>=i.__maxScrollTop+i.__loadHeight&&0t.__lastTouchMove-100;n-=3)r=n;if(r!==i){var s=o[i]-o[r],l=t.__scrollLeft-o[r-2],a=t.__scrollTop-o[r-1];t.__decelerationVelocityX=l/s*(1e3/60),t.__decelerationVelocityY=a/s*(1e3/60);var c=t.options.paging||t.options.snapping?4:1;Math.abs(t.__decelerationVelocityX)>c||Math.abs(t.__decelerationVelocityY)>c?t.__refreshActive||t.__loadActive||t.__startDeceleration(e):t.__scrollComplete()}else t.__scrollComplete()}else 100=n||Math.abs(i.__decelerationVelocityY)>=n;return e||(i.__didDecelerationComplete=!0),e},function(){i.__isDecelerating&&(i.__isDecelerating=!1,i.__didDecelerationComplete&&i.__scrollComplete(),i.scrollTo(i.__scrollLeft,i.__scrollTop,i.options.snapping))})},__stepThroughDeceleration:function(e){var t=this,o=t.options.bouncing,i=t.__minDecelerationScrollLeft,r=t.__maxDecelerationScrollLeft,n=t.__minDecelerationScrollTop,s=t.__maxDecelerationScrollTop,l=t.__scrollLeft+t.__decelerationVelocityX,a=t.__scrollTop+t.__decelerationVelocityY,c=lt.__maxDecelerationScrollLeft&&(d=t.__maxDecelerationScrollLeft-l)),h&&(at.__maxDecelerationScrollTop&&(f=t.__maxDecelerationScrollTop-a)),0!==d&&(d*t.__decelerationVelocityX<=0?(t.__decelerationVelocityX+=d*p,d<0&&-d>=o.right&&0=o.left&&t.__decelerationVelocityX<0&&(t.__decelerationVelocityX=o.left/2)):t.__decelerationVelocityX=d*v),0!==f&&(f*t.__decelerationVelocityY<=0?(t.__decelerationVelocityY+=f*p,f<0&&-f>=o.bottom&&0=o.top&&t.__decelerationVelocityY<0&&(t.__decelerationVelocityY=o.top/2)):t.__decelerationVelocityY=f*v/2)}};for(var he in ce)ae.prototype[he]=ce[he];var ue=new g;!function(e,t){if(!a()&&!document.getElementById(e)){var o=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=e,i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),o.appendChild(i)}}("vuescroll-silde-mode-style","\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ");var _e=function(e,t,o,i){var r,n=2i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(n=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(n=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,e=a/(h+n),t=l/(c+r);var u=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),_=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(u+n)/o.clientHeight,this.bar.hBar.state.posValue=100*(_+r)/o.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=e<1?e:0,this.bar.hBar.state.size=t<1?t:0},registryEvent:function(e){var t,o,i,r,n,s,l,a="refresh"==e?M:P,c="refresh"==e?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,h="refresh"==e?"refreshStage":"loadStage",u=this.$refs[a].elm||this.$refs[a],_=(t=e,o=h,r=u,n=(i=this).$listeners,s=function(){i.vuescroll.state[o]="start",setTimeout(function(){i.scroller.finishRefreshOrLoad()},2e3)},l=void 0,n[t+"-before-deactivate"]&&(l=function(e){i.vuescroll.state[o]="beforeDeactive",i.$emit(t+"-before-deactivate",i,r,e.bind(i.scroller))}),n[t+"-start"]&&(s=function(){i.vuescroll.state[o]="start",i.$emit(t+"-start",i,r,i.scroller.finishRefreshOrLoad.bind(i.scroller))}),{activateCallback:function(){i.vuescroll.state[o]="active",i.$emit(t+"-activate",i,r)},deactivateCallback:function(){i.vuescroll.state[o]="deactive",i.$emit(t+"-deactivate",i,r)},startCallback:s,beforeDeactivateCallback:l,beforeDeactiveEnd:function(){i.vuescroll.state[o]="beforeDeactiveEnd",i.$emit(t+"-before-deactivate-end",i,r)}}),d=u.offsetHeight;c.bind(this.scroller)(d,_)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}}],mounted:function(){var e=this;this.$nextTick(function(){e._isDestroyed||e.renderError||(e.updatedCbs.push(function(){e.updateScroller()}),e.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(e){this.scroller&&(this.scroller.__disable=e)}}))})},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},getCurrentviewDom:function(){return this.getCurrentviewDomSlide()},internalScrollTo:function(e,t,o,i){this.slideScrollTo(e,t,o,i)},handleScroll:function(e){this.updateBarStateAndEmitEvent("handle-scroll",e)},updateBarStateAndEmitEvent:function(e,t){var o=1